示例#1
0
				<h3 class="hndle">
                    <?php 
_e('Theme Info', 'spyropress');
?>

				</h3>
				<div class="inside">
					<ul>
						<li>
							<?php 
_e('Framework Version:', 'spyropress');
?>

							<strong>
								<?php 
echo spyropress_get_version();
?>

							</strong>
						</li>
                        <li>
							<?php 
_e('Product Version:', 'spyropress');
?>

							<strong>
								<?php 
echo $spyropress->theme_version;
?>

							</strong>
function get_spyropress_badge($class = '')
{
    printf('<div class="wp-badge%2$s">' . __('Version %1$s', 'spyropress') . '</div>', spyropress_get_version(), $class ? ' ' . $class : '');
}
/**
 * Display meta tags in <head> tag
 */
function display_meta_tags()
{
    $meta = array();
    $meta['charset'] = '<meta charset="' . get_bloginfo('charset') . '" />';
    $meta['viewport'] = '<meta name="viewport" content="width=device-width, initial-scale=1"/>';
    $meta['generator'] = '<meta name="generator" content="Spyropress ' . spyropress_get_version() . '" />';
    $meta['alternate'] = '<link rel="alternate" type="application/rss+xml" title="' . get_bloginfo('name') . ' RSS Feed" href="' . get_bloginfo('rss2_url') . '" />';
    $meta['pingback'] = '<link rel="pingback" href="' . get_bloginfo('pingback_url') . '" />';
    foreach ($meta as $tag) {
        echo "\t" . $tag . "\n";
    }
}