Exemple #1
0
/**
 * Includes an options page postbox.
 *
 * @since 2.4
 *
 * @uses tarski_options_fragment
 *
 * @param string $block
 * @param string $title
 */
function tarski_options_block($block, $title)
{
    echo "<div class=\"postbox\"><h3 class=\"hndle\">{$title}</h3>\n\t<div class=\"inside\">";
    tarski_options_fragment($block);
    echo "\t</div>\n</div>";
}
<?php 
if (is_multisite()) {
    // WP Multisite users
    ?>
    <p><?php 
    _e('Tarski allows you to select an alternate style that modifies the default one. Choose from the list above.', 'tarski');
    ?>
</p>
<?php 
} else {
    // non-WP Multisite users
    ?>
    <p><?php 
    printf(__('Tarski allows you to select an %1$s that modifies the default one. Choose from the list above, or upload your own to %2$s.', 'tarski'), '<a href="http://tarskitheme.com/help/styles/">' . __('alternate style', 'tarski') . '</a>', '<kbd>wp-content/themes/' . get_template() . '/styles/</kbd>');
    ?>
</p>
<?php 
}
?>

<?php 
if (count($styles) < 1) {
    ?>
    <p><strong><?php 
    _e('No alternate stylesheets appear to be present.', 'tarski');
    ?>
</strong></p>
    <?php 
    tarski_options_fragment('missing_files');
}
Exemple #3
0
				| <a href="http://tarskitheme.com/forum/"><?php 
_e('Forum', 'tarski');
?>
</a>
			</p>
			
			<div class="clearer"></div>
		</div>
		
		<?php 
tarski_options_fragment('messages');
?>
		
		<div class="secondary">
			<?php 
tarski_options_fragment('update_notifier');
?>
		</div>
		
		<div class="primary">
			<?php 
tarski_options_fn_block('tarski_navbar_select', __('Navigation Display', 'tarski'));
?>
			<?php 
tarski_options_block('nav_options', __('Navigation Options', 'tarski'));
?>
		</div>
		
		<div class="secondary">
			<?php 
tarski_options_block('alternate_style', __('Alternate Style', 'tarski'));
Exemple #4
0
            <p id="tarski-info">
                <a href="http://tarskitheme.com/help/"><?php 
_e('Tarski documentation', 'tarski');
?>
</a>
                | <a href="http://tarskitheme.com/credits/"><?php 
_e('Credits &amp; Thanks', 'tarski');
?>
</a>
            </p>
            
            <div class="clearer"></div>
        </div>
        
        <?php 
tarski_options_fragment('messages');
?>
        
        <div class="primary">
            <?php 
tarski_options_block('alternate_style', __('Alternate Style', 'tarski'));
?>
            <?php 
tarski_options_fn_block('tarski_miscellaneous_options', __('Miscellaneous Options', 'tarski'));
?>
            <p><input type="submit" class="button-primary" name="submit" value="<?php 
_e('Save Options', 'tarski');
?>
" /></p>
        </div>