コード例 #1
0
ファイル: single.php プロジェクト: Germey/xjdssyzx
    ?>
					<?php 
    edit_post_link('编辑', '<span class="edit">', '</span>');
    ?>
				</div>
			</header>

			<div class="entry-content">
				<?php 
    the_content();
    ?>
			</div>
			
			<footer>
				<?php 
    tagtext();
    ?>
			
				<?php 
    if (get_option('hui_bdshare_id')) {
        ?>
				<!-- Baidu Button BEGIN -->
				<div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare">
					<span class="bds_more">分享到:</span>
					<a class="bds_qzone">QQ空间</a>
					<a class="bds_tsina">新浪微博</a>
					<a class="bds_tqq">腾讯微博</a>
					<a class="bds_renren">人人网</a>
					<a class="shareCount"></a>
				</div>
				<script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=<?php 
コード例 #2
0
ファイル: header.php プロジェクト: w392807287/FirstRepository
    bloginfo('description');
}
wp_title('|', true, 'left');
?>
</title>
<meta name="format-detection" content="telephone=no"/>
<meta name="apple-mobile-app-status-bar-style" content="black" />
<meta name="apple-touch-fullscreen" content="YES" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="viewport" content="width=device-width, initial-scale=1.0,  minimum-scale=1.0, maximum-scale=1.0" />
<?php 
if (is_home()) {
    $keywords = get_option('mytheme_keywords');
    $description = get_option('mytheme_description');
} elseif (is_single() || is_page()) {
    $keywords = tagtext();
    $description = get_the_title();
} elseif (is_category()) {
    $description = category_description();
    if (!empty($description) && get_query_var('paged')) {
        $description .= '(第' . get_query_var('paged') . '页)';
    }
    $keywords = single_cat_title('', false);
} elseif (is_tag()) {
    $description = tag_description();
    if (!empty($description) && get_query_var('paged')) {
        $description .= '(第' . get_query_var('paged') . '页)';
    }
    $keywords = single_tag_title('', false);
}
?>