コード例 #1
0
ファイル: footer.php プロジェクト: 64kbytes/stayinba
<div id="footer">

	<?php 
$styleinfo = get_k2info('style_info');
if ($styleinfo != '') {
    ?>
<p class="footerstyledwith"><?php 
    printf(__('Styled with %s', 'k2_domain'), $styleinfo);
    ?>
</p><?php 
}
?>

	<p class="footerpoweredby"><?php 
printf(__('Powered by %1$s and %2$s', 'k2_domain'), sprintf('<a href="http://wordpress.org/">%1$s <!--%2$s--></a>', __('WordPress', 'k2_domain'), get_bloginfo('version')), sprintf('<a href="http://getk2.com/" title="%1$s">K2<!--%2$s--></a>', __('Loves you like a kitten.', 'k2_domain'), get_k2info('version')));
?>
</p>

	<p class="footerfeedlinks"><?php 
printf(__('<a href="%1$s">Entries Feed</a> and <a href="%2$s">Comments Feed</a>', 'k2_domain'), get_bloginfo('rss2_url'), get_bloginfo('comments_rss2_url'));
?>
</p>
	<!-- <?php 
printf(__('%d queries. %.4f seconds.', 'k2_domain'), $wpdb->num_queries, timer_stop());
?>
 -->
</div>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
コード例 #2
0
ファイル: k2-footer.php プロジェクト: r15ch13/unwakeable
 *
 * This file is loaded by footer.php and used for content inside the #footer div
 *
 * @package K2
 * @subpackage Templates
 */
?>

<p class="footerpoweredby">
	<?php 
printf(_x('Powered by %1$s and %2$s', 'unwakeable'), sprintf('<a href="http://wordpress.org/">%1$s<span class="wp-version">%2$s</span></a>', __('WordPress', 'unwakeable'), get_bloginfo('version')), sprintf('<a href="http://www.longren.org/wordpress/unwakeable/" title="%1$s">Unwakeable %2$s<span class="k2-version">%2$s</span></a>', __('Unwakeable WordPress Theme.', 'unwakeable'), get_k2info('version')));
?>
</p>

<?php 
if (get_k2info('style_footer') != '') {
    ?>
	<p class="footerstyledwith">
		<?php 
    k2info('style_footer');
    ?>
	</p>
<?php 
}
?>

<p class="footerfeedlinks">
	<?php 
printf(_x('%1$s and %2$s', 'k2_footer', 'unwakeable'), '<a href="' . get_bloginfo('rss2_url') . '">' . __('Entries Feed', 'unwakeable') . '</a>', '<a href="' . get_bloginfo('comments_rss2_url') . '">' . __('Comments Feed', 'unwakeable') . '</a>');
?>
</p>
コード例 #3
0
ファイル: info.php プロジェクト: 64kbytes/stayinba
function k2info($show = '')
{
    echo get_k2info($show);
}
コード例 #4
0
 function output_footer($style_path = '')
 {
     //Get the plugin options array
     $existing_options = $this->get_plugin_options();
     //Get the directory that the k2 style files are stored in
     $styles_dir = get_option('k2stylesdir');
     //Get the relative path to the current style
     $current_style_path = $this->get_current_style_path();
     //The style to render the footer for has been passed in, override the current style
     if (!empty($style_path)) {
         $current_style_path = $style_path;
     }
     //Get the metadata associated with $current_style_path
     $current_style_data = $this->get_style_data($current_style_path, $styles_dir);
     //Get the style meta data from the array
     $authorname = $current_style_data['author'];
     $authoruri = $current_style_data['site'];
     $stylename = $current_style_data['stylename'];
     $styleuri = $current_style_data['stylelink'];
     $stylefooter = $current_style_data['footer'];
     $styleversion = $current_style_data['version'];
     $stylecomments = $current_style_data['comments'];
     //Get the other field values
     $wporglink = sprintf('<a title="%1s" href="http://wordpress.org">%2s</a>', __('WordPress', 'k2-style-switcher'), __('WordPress', 'k2-style-switcher'));
     $k2comlink = sprintf('<a title="%1s" href="http://getk2.com">%2s</a>', __('Loves you like a kitten.', 'k2-style-switcher'), __('K2', 'k2-style-switcher'));
     $bloginfoname = get_bloginfo('name');
     $bloginfoversion = get_bloginfo('version');
     $k2infoversion = get_k2info('version');
     $rssentries = sprintf('<a href="%1s">%2s</a>', get_bloginfo('rss2_url'), __('Entries Feed', 'k2-style-switcher'));
     $rsscomments = sprintf('<a href="%1s">%2s</a>', get_bloginfo('comments_rss2_url'), __('Comments Feed', 'k2-style-switcher'));
     //Get the footer template
     $footer_output = $existing_options['footer_code'];
     //Replace all the macros with the values
     $footer_output = str_replace("%authorname%", $authorname, $footer_output);
     $footer_output = str_replace("%authoruri%", $authoruri, $footer_output);
     $footer_output = str_replace("%stylename%", $stylename, $footer_output);
     $footer_output = str_replace("%styleuri%", $styleuri, $footer_output);
     $footer_output = str_replace("%stylefooter%", $stylefooter, $footer_output);
     $footer_output = str_replace("%styleversion%", $styleversion, $footer_output);
     $footer_output = str_replace("%stylecomments%", $stylecomments, $footer_output);
     $footer_output = str_replace("%wporglink%", $wporglink, $footer_output);
     $footer_output = str_replace("%k2comlink%", $k2comlink, $footer_output);
     $footer_output = str_replace("%bloginfoname%", $bloginfoname, $footer_output);
     $footer_output = str_replace("%bloginfoversion%", $bloginfoversion, $footer_output);
     $footer_output = str_replace("%k2infoversion%", $k2infoversion, $footer_output);
     $footer_output = str_replace("%rssentries%", $rssentries, $footer_output);
     $footer_output = str_replace("%rsscomments%", $rsscomments, $footer_output);
     //Output the footer
     echo '<p class="footerk2ss">' . $footer_output . '</p>';
 }
コード例 #5
0
ファイル: header.php プロジェクト: 64kbytes/stayinba
    function output_header_css()
    {
        if (get_option('k2imagerandomfeature') == '1') {
            $picture = K2Header::random_picture();
        } else {
            $picture = get_option('k2header_picture');
        }
        ?>
		<style type="text/css">
		<?php 
        if (!empty($picture)) {
            ?>
		#header {
			background: url("<?php 
            echo get_k2info('headers_url') . $picture;
            ?>
");
		}
		<?php 
        }
        ?>
		<?php 
        if (function_exists('add_custom_image_header')) {
            ?>
			<?php 
            if ('blank' == get_header_textcolor()) {
                ?>
			#header h1, #header .description {
				display: none;
			}
			<?php 
            } else {
                ?>
			#header h1 a, #header .description {
				color: #<?php 
                header_textcolor();
                ?>
;
			}
			<?php 
            }
            ?>
		<?php 
        }
        ?>
		</style>
		<?php 
    }