Example #1
0
 function updater_install()
 {
     $screen = get_current_screen();
     if (pl_is_wporg() && 'appearance_page_PageLines-Admin' != $screen->id) {
         return false;
     }
     $message = pl_updater_txt();
     if ($message) {
         echo '<div class="updated fade"><p>' . $message . '</p></div>' . "\n";
     }
 }
Example #2
0
function pagelines_check_updater($note)
{
    $message = pl_updater_txt();
    if ($message) {
        ob_start();
        ?>
		<div class="editor-alert alert">		
		  	<p>
			<?php 
        echo $message;
        ?>
			</p>
		</div>
		<?php 
        $note .= ob_get_clean();
    }
    return $note;
}