Ejemplo n.º 1
0
<?php

// handle if this is a post
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    update_option('bapi_global_header', stripslashes($_POST['bapi_global_header']));
    update_option('bapi_google_conversion_key', stripslashes($_POST['bapi_google_conversion_key']));
    update_option('bapi_google_conversion_label', stripslashes($_POST['bapi_google_conversion_label']));
    update_option('bapi_google_webmaster_htmltag', sanitize_text_field(stripslashes($_POST['bapi_google_webmaster_htmltag'])));
    bapi_wp_site_options();
    BAPISync::updateLastSettingsUpdate();
    echo '<div id="message" class="updated"><p><strong>Settings saved.</strong></p></div>';
}
global $bapi_all_options;
?>
 
<link rel="stylesheet" type="text/css" href="<?php 
echo plugins_url('/css/jquery.ui/jquery-ui-1.10.2.min.css', __FILE__);
?>
" />
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script>
<script type="text/javascript">
	jQuery(document).ready(function($){
		$('#bapi_google_webmaster_htmltag').click(function() { $("#bapi_google_webmaster_htmltag-large").dialog({ width: $(window).width()-60, height: $(window).height()-60 });});
	});
</script>
<div class="wrap">
<?php 
if (is_newapp_website()) {
    echo '<h1><img src="' . plugins_url('/img/logo_kigo.png', __FILE__) . '"/></h1>';
} else {
    echo '<h1><a href="http://www.bookt.com" target="_blank"><img src="' . plugins_url('/img/logo-im.png', __FILE__) . '" /></a></h1>';