Exemple #1
0
<div class="postbox">
	<h3><?php 
_e('Tarski Updates', 'tarski');
?>
</h3>
	
	<div class="inside">
		<?php 
echo tarski_update_notifier();
?>
		
		<?php 
if (!detectWPMU() || detectWPMUadmin()) {
    ?>
			<?php 
    if (can_get_remote()) {
        ?>
				<label for="update-on"><input type="radio" id="update-on" name="update_notification" value ="on" <?php 
        if (get_tarski_option('update_notification')) {
            echo 'checked="checked" ';
        }
        ?>
/> <?php 
        _e('Update notification on (recommended)', 'tarski');
        ?>
</label>
				<label for="update-off"><input type="radio" id="update-off" name="update_notification" value ="off" <?php 
        if (!get_tarski_option('update_notification')) {
            echo 'checked="checked" ';
        }
        ?>
/**
 * tarski_admin() - Saves Tarski's options, and displays the Options page.
 * 
 * @since 1.0
 */
function tarski_admin()
{
    if (current_user_can('edit_themes')) {
        save_tarski_options();
        tarski_update_notifier('options_page');
        $widgets_link = admin_url('widgets.php');
        $tarski_options_link = admin_url('themes.php?page=tarski-options');
        include TARSKIDISPLAY . '/options_page.php';
    }
}