/**
  * Alert the user to enter the license key, if needed.
  */
 function key_warning()
 {
     $msg = '';
     $license_key = null;
     if (!empty($_POST) && !empty($_POST['license_key'])) {
         $license_key = $_POST['license_key'];
     }
     if (!$this->check_license_key($license_key)) {
         $msg = "<p><strong>" . sprintf(__('%s is almost ready.'), $this->plugin_name) . "</strong> " . sprintf(__('You must <a href="%s">enter a valid License Key</a> for it to work.'), "admin.php?page={$this->options_page}") . __(' Need a license key?', 'all_in_one_seo_pack') . ' <a href="' . $this->renewal_page . '" target="_blank">' . __('Purchase one now', 'all_in_one_seo_pack') . '</a>';
     } else {
         if ($this->has_update()) {
             $msg = sprintf(__("There is a new version of %s available. Go to <a href='%s'>the plugins page</a> for details.", 'all_in_one_seo_pack'), AIOSEOP_PLUGIN_NAME, network_admin_url('plugins.php'));
         }
     }
     if (!empty($msg)) {
         aioseop_output_dismissable_notice($msg, 'aioseop-warning');
     }
 }
示例#2
0
    function display_right_sidebar()
    {
        global $wpdb;
        if (!get_option('aioseop_options')) {
            $msg = "<div style='text-align:center;'><p><strong>Your database options need to be updated.</strong><em>(Back up your database before updating.)</em>\n\t\t\t\t<FORM action='' method='post' name='aioseop-migrate-options'>\n\t\t\t\t\t<input type='hidden' name='nonce-aioseop-migrate-options' value='" . wp_create_nonce('aioseop-migrate-nonce-options') . "' />\n\t\t\t\t\t<input type='submit' name='aioseop_migrate_options' class='button-primary' value='Update Database Options'>\n\t\t \t\t</FORM>\n\t\t\t</p></div>";
            aioseop_output_dismissable_notice($msg, '', 'error');
        }
        ?>
		<div class="aioseop_top">
			<div class="aioseop_top_sidebar aioseop_options_wrapper">
				<?php 
        do_meta_boxes('aioseop_metaboxes', 'normal', array('test'));
        ?>
			</div>
		</div>
		<style>
			#wpbody-content {
				min-width: 900px;
			}
		</style>
		<div class="aioseop_right_sidebar aioseop_options_wrapper">

			<div class="aioseop_sidebar">
				<?php 
        do_meta_boxes('aioseop_metaboxes', 'side', array('test'));
        ?>
				<script type="text/javascript">
					//<![CDATA[
					jQuery(document).ready(function ($) {
						// Close postboxes that should be closed.
						$('.if-js-closed').removeClass('if-js-closed').addClass('closed');
						// Postboxes setup.
						if (typeof postboxes !== 'undefined')
							postboxes.add_postbox_toggles('<?php 
        echo $this->pagehook;
        ?>
');
					});
					//]]>
				</script>
				<?php 
        if (!AIOSEOPPRO) {
            ?>
					<div class="aioseop_advert aioseop_nopad_all">
						<?php 
            $adid = mt_rand(21, 23);
            if ($adid == 23) {
                ?>
							<div
								style="height: 220px; background-image: url('https://www.wincher.com/Content/Images/plugin/wp/banner30.jpg')">
								<form style="position: relative; top: 170px; left: 40px;"
								      action="https://www.wincher.com/FastReg" method="post" target="_blank">
									<input type="hidden" name="adreferer" value="banner<?php 
                echo $adid;
                ?>
"/>
									<input type="hidden" name="referer" value="all-in-one-seo-pack"/>
									<input type="text" name="email" placeholder="Email"
									       style="padding-left: 7px; height: 30px; width: 290px; border: solid 1px #DDD;"/>
									<input type="submit" name="sub" value="Sign up!"
									       style="height: 30px; width: 90px; background-color: #42DA76; color: #FFF; font-weight: bold; border:none; margin-left:5px;"/>
								</form>
							</div>
							<?
						} else {
							?>
							<a href="https://www.wincher.com/?referer=all-in-one-seo-pack&adreferer=banner<?php 
                echo $adid;
                ?>
"
							   target="_blank">
								<div class=wincherad id=wincher<?php 
                echo $adid;
                ?>
>
								</div>
							</a>
						<?php 
            }
            ?>
					</div>
					<div class="aioseop_advert headwaythemes">
						<div>
							<h3>Drag and Drop WordPress Design</h3>
							<p><a href="http://semperfiwebdesign.com/headwayaio/" target="_blank">Headway Themes</a>
								allows you to easily create your own stunning website designs! Stop using premade themes
								start making your own design with Headway's easy to use Drag and Drop interface. All in
								One SEO Pack users have an exclusive discount by using coupon code
								<strong>SEMPERFI30</strong> at checkout.</p>
						</div>
						<a href="http://semperfiwebdesign.com/headwayaio/" target="_blank"><img
								src="<?php 
            echo AIOSEOP_PLUGIN_IMAGES_URL;
            ?>
headwaybanner.png"></a>
					</div>
				<?php 
        }
        ?>
			</div>
		</div>
		<?php 
    }
    function display_right_sidebar()
    {
        ?>
		
<?php 
        /* <label class="aioseop_generic_label"><?php _e('Click on option titles to get help!', 'all_in_one_seo_pack' ); ?></label> */
        global $wpdb;
        if (!get_option('aioseop_options')) {
            $msg = "<div style='text-align:center;'><p><strong>Your database options need to be updated.</strong><em>(Back up your database before updating.)</em>\n\t\t\t\t<FORM action='' method='post' name='aioseop-migrate-options'>\n\t\t\t\t\t<input type='hidden' name='nonce-aioseop-migrate-options' value='" . wp_create_nonce('aioseop-migrate-nonce-options') . "' />\n\t\t\t\t\t<input type='submit' name='aioseop_migrate_options' class='button-primary' value='Update Database Options'>\n\t\t \t\t</FORM>\n\t\t\t</p></div>";
            aioseop_output_dismissable_notice($msg, "", "error");
        }
        ?>
		<div class="aioseop_top">
			<div class="aioseop_top_sidebar aioseop_options_wrapper">
				<?php 
        do_meta_boxes('aioseop_metaboxes', 'normal', array('test'));
        ?>
			</div>
		</div>
		<style>
			#wpbody-content {
				min-width: 900px;
			}
		</style>
		<div class="aioseop_right_sidebar aioseop_options_wrapper">
		
		<div class="aioseop_sidebar">
			<?php 
        do_meta_boxes('aioseop_metaboxes', 'side', array('test'));
        ?>
			<script type="text/javascript">
				//<![CDATA[
				jQuery(document).ready( function($) {
					// close postboxes that should be closed
					$('.if-js-closed').removeClass('if-js-closed').addClass('closed');
					// postboxes setup
					if ( typeof postboxes !== 'undefined' )
						postboxes.add_postbox_toggles('<?php 
        echo $this->pagehook;
        ?>
');
					// $('.meta-box-sortables').removeClass('meta-box-sortables');
				});
				//]]>
			</script>
		<div class="aioseop_advert aioseop_nopad">
			<a href="https://wp.wincher.com/v1/link" target="_blank"><img src="<?php 
        echo AIOSEOP_PLUGIN_IMAGES_URL;
        ?>
wincherbanner.png"></a>
		</div>
		<!-- Headway Themes-->
		<div class="aioseop_advert">
					<div>
					<h3>Drag and Drop WordPress Design</h3>
					<p><a href="http://semperfiwebdesign.com/headwayaio/" target="_blank">Headway Themes</a> allows you to easily create your own stunning website designs! Stop using premade themes start making your own design with Headway's easy to use Drag and Drop interface. All in One SEO Pack users have an exclusive discount by using coupon code <strong>SEMPERFI30</strong> at checkout.</p>
					</div>
				<a href="http://semperfiwebdesign.com/headwayaio/" target="_blank"><img src="<?php 
        echo AIOSEOP_PLUGIN_IMAGES_URL;
        ?>
headwaybanner.png"></a>
		</div>
		
	</div>
</div>	
<?php 
    }
示例#4
0
    function display_right_sidebar()
    {
        global $wpdb;
        if (!get_option('aioseop_options')) {
            $msg = "<div style='text-align:center;'><p><strong>Your database options need to be updated.</strong><em>(Back up your database before updating.)</em>\n\t\t\t\t<FORM action='' method='post' name='aioseop-migrate-options'>\n\t\t\t\t\t<input type='hidden' name='nonce-aioseop-migrate-options' value='" . wp_create_nonce('aioseop-migrate-nonce-options') . "' />\n\t\t\t\t\t<input type='submit' name='aioseop_migrate_options' class='button-primary' value='Update Database Options'>\n\t\t \t\t</FORM>\n\t\t\t</p></div>";
            aioseop_output_dismissable_notice($msg, "", "error");
        }
        ?>
		<div class="aioseop_top">
			<div class="aioseop_top_sidebar aioseop_options_wrapper">
				<?php 
        do_meta_boxes('aioseop_metaboxes', 'normal', array('test'));
        ?>
			</div>
		</div>
		<style>
			#wpbody-content {
				min-width: 900px;
			}
		</style>
		<div class="aioseop_right_sidebar aioseop_options_wrapper">
		
		<div class="aioseop_sidebar">
			<?php 
        do_meta_boxes('aioseop_metaboxes', 'side', array('test'));
        ?>
			<script type="text/javascript">
				//<![CDATA[
				jQuery(document).ready( function($) {
					// close postboxes that should be closed
					$('.if-js-closed').removeClass('if-js-closed').addClass('closed');
					// postboxes setup
					if ( typeof postboxes !== 'undefined' )
						postboxes.add_postbox_toggles('<?php 
        echo $this->pagehook;
        ?>
');
					//$('.meta-box-sortables').removeClass('meta-box-sortables');
				});
				//]]>
			</script>
	</div>
</div>	
<?php 
    }