示例#1
0
文件: single.php 项目: wdq233/BYMT2
        ?>
				<div class="post-content">
					<?php 
        the_content('Read more...');
        ?>
					<?php 
        wp_link_pages(array('before' => '<div class="fanye">翻页继续:', 'after' => '</div>', 'next_or_number' => 'number', 'link_before' => '<span>', 'link_after' => '</span>'));
        ?>
				</div>
                <?php 
        if (bymt_c('txtad2')) {
            ?>
				<div id="adsense6">
					<div id="adsense-loader6" style="display:none;">
						<?php 
            bymt('txtadcode2');
            ?>
					</div>
				</div>
				<?php 
        }
        ?>
                <div class="post-footer">
                <?php 
        if (bymt_c('txttag') || bymt_c('txtshare')) {
            ?>
				<div class="post-tagsshare">
                	<?php 
            if (bymt_c('txttag')) {
                ?>
					<div class="post-tags">
示例#2
0
文件: archive.php 项目: wdq233/BYMT2
    ?>
		<?php 
    if (bymt_c('sd_config_lis_ck')) {
        bymt_slides('lis', '760', '210');
    }
    ?>
		<?php 
    get_template_part('loop');
    ?>
		<?php 
    if (bymt_c('categoryad2')) {
        ?>
		<div id="adsense4">
			<div id="adsense-loader4" style="display:none;">
				<?php 
        bymt('categoryadcode2');
        ?>
			</div>
		</div>
		<?php 
    }
    ?>
		<?php 
    bymt_pagenav();
    ?>
	</div>
	<?php 
    if (!wp_is_mobile()) {
        get_sidebar();
    }
    ?>
示例#3
0
function bymt_head()
{
    if (!isset($paged)) {
        $paged = 1;
    }
    echo "<title>";
    if (is_home()) {
        if (bymt_c('title_content')) {
            bymt('title_content', 'e');
            if ($paged > 1) {
                bymt_r('title_split', ' | ', 'e');
                printf('第%s页', $paged);
            }
        } else {
            esc_attr_e(bloginfo('name'));
            if ($paged > 1) {
                bymt_r('title_split', ' | ', 'e');
                printf('第%s页', $paged);
            }
            bymt_r('title_split', ' | ', 'e');
            esc_attr_e(bloginfo('description'));
        }
    } else {
        if (is_search()) {
            echo '"';
            the_search_query();
            echo '"的搜索结果';
        } elseif (is_single() || is_page()) {
            echo trim(wp_title('', 0));
        } elseif (is_category()) {
            single_cat_title();
        } elseif (is_year()) {
            the_time('Y年的文章');
        } elseif (is_month()) {
            the_time('Y年m月的文章');
        } elseif (is_day()) {
            the_time('Y年m月d日的文章');
        } elseif (is_404()) {
            echo '404错误:' . trim(wp_title('', 0));
        } elseif (is_author()) {
            global $author;
            $userdata = get_userdata($author);
            echo $userdata->display_name . '发表的文章';
        } elseif (function_exists('is_tag')) {
            if (is_tag()) {
                echo 'Tag:';
                single_tag_title("", true);
            }
        }
        if (get_query_var('page')) {
            bymt_r('title_split', ' | ', 'e');
            echo '第' . get_query_var('page') . '页';
        }
        if ($paged > 1) {
            bymt_r('title_split', ' | ', 'e');
            printf('第%s页', $paged);
        }
        bymt_r('title_split', ' | ', 'e');
        esc_attr_e(bloginfo('name'));
    }
    echo "</title>\n";
    global $post;
    if (is_singular()) {
        if ($post->post_excerpt) {
            $post_excerpt = $post->post_excerpt;
        } else {
            $post_excerpt = trim(preg_replace('/((\\s)*(\\n)+(\\s)*)/i', '', strip_tags($post->post_content)));
        }
        if (!empty($post_excerpt)) {
            $description = mb_substr($post_excerpt, 0, 200, 'UTF-8');
            $description .= mb_strlen($post_excerpt, 'UTF-8') > 200 ? '...' : '';
        } else {
            $description = trim(wp_title('', 0));
        }
        $tags = wp_get_post_tags($post->ID);
        if (empty($tags)) {
            $keywords = trim(wp_title('', 0));
        } else {
            $keywords = '';
        }
        foreach ($tags as $tag) {
            $keywords = $keywords . $tag->name . ",";
        }
    } elseif (is_home()) {
        $keywords = bymt_c('keyword_content');
        $description = bymt_c('description_content');
    } elseif (is_category()) {
        $keywords = single_cat_title('', false);
        $description = category_description();
    } elseif (is_tag()) {
        $keywords = single_tag_title('', false);
        $description = tag_description();
    }
    if (!isset($keywords)) {
        $keywords = '';
    }
    if (!isset($description)) {
        $description = '';
    }
    $keywords = esc_attr(trim(strip_tags($keywords)));
    $description = esc_attr(trim(strip_tags($description)));
    ?>
<meta name="description" content="<?php 
    echo $description;
    ?>
" />
<meta name="keywords" content="<?php 
    echo rtrim($keywords, ',');
    ?>
" />
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php 
    bloginfo('pingback_url');
    ?>
" />
<link rel="shortcut icon" href="<?php 
    if (bymt_c('favicon_ck')) {
        bymt('custom_favicon', 'u');
    } else {
        echo TPLDIR . "/images/favicon.png";
    }
    ?>
" type="image/x-icon" />
<link rel="icon" href="<?php 
    if (bymt_c('favicon_ck')) {
        bymt('custom_favicon', 'u');
    } else {
        echo TPLDIR . "/images/favicon.png";
    }
    ?>
" type="image/x-icon" />
<?php 
    if (wp_is_mobile()) {
        ?>
<link rel="stylesheet" type="text/css" href="<?php 
        echo TPLDIR . '/css/mobile.css';
        ?>
" media="all" />
<?php 
    } else {
        ?>
<link rel="stylesheet" type="text/css" href="<?php 
        echo TPLDIR . '/style.css';
        ?>
" media="all" />
<!--[if IE 7]><link rel="stylesheet" href="<?php 
        echo TPLDIR . '/css/ie7.css';
        ?>
" type="text/css" /><![endif]-->
<!--[if IE 8]><link rel="stylesheet" href="<?php 
        echo TPLDIR . '/css/ie8.css';
        ?>
" type="text/css" /><![endif]-->
<?php 
    }
}
示例#4
0
文件: header.php 项目: wdq233/BYMT2
    ?>
        <?php 
    if (bymt_c('emailrss')) {
        ?>
		<li><a href="<?php 
        bymt('emailrsslink', 'u');
        ?>
" rel="external" target="_blank" class="icons-em" title="邮件订阅"></a></li>
		<?php 
    }
    ?>
		<?php 
    if (bymt_c('weixin')) {
        ?>
		<li class="weixin"><a href="javascript:;" title="关注我的微信" class="icons-wx"><b><span></span><i><img src="<?php 
        bymt('weixinimg', 'u');
        ?>
" alt="微信" /></i></b></a></li>
		<?php 
    }
    ?>
	</ul>
</div>
<?php 
}
?>
</div>
<?php 
if (bymt_c('sd_config_bul_ck')) {
    bymt_slides('bul', '1060', '120');
}
示例#5
0
    function widget($args, $instance)
    {
        extract($args);
        if (bymt_c('sidebarad120')) {
            ?>
<div class="widget<?php 
            if (bymt_c('s_fixed') == 's_fixed_2') {
                echo ' fixed';
            }
            ?>
" id="widget_12090ad">
<div id="adsense10"><div id="adsense-loader10">
<div class="widget_12090ad">
<ul>
<li>
<?php 
            bymt('sidebarad120code1');
            ?>
</li>
<li style="margin-left:6px;">
<?php 
            bymt('sidebarad120code2');
            ?>
</li>
<li style="margin-top:6px;">
<?php 
            bymt('sidebarad120code3');
            ?>
</li>
<li style="margin:6px 0 0 6px;">
<?php 
            bymt('sidebarad120code4');
            ?>
</li>
</ul>
</div>
</div></div>
</div>
<?php 
        }
    }
示例#6
0
文件: page.php 项目: wdq233/BYMT2
      </div>
    <?php 
        comments_template();
        ?>
    </div>
    <?php 
    }
}
?>
    <?php 
if (bymt_c('pagead2')) {
    ?>
    <div id="adsense8">
      <div id="adsense-loader8" style="display:none;">
        <?php 
    bymt('pageadcode2');
    ?>
      </div>
    </div>
    <?php 
}
?>
  </div>
  <?php 
if (!wp_is_mobile()) {
    get_sidebar();
}
?>
</div>
<?php 
get_footer();
示例#7
0
function bymt_txt_share()
{
    if (bymt_c('txtshare_code') != "") {
        bymt('txtshare_code');
    } else {
        echo '<div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare">
	<a class="bds_tsina"></a>
	<a class="bds_qzone"></a>
	<a class="bds_tqq"></a>
	<a class="bds_sqq"></a>
	<a class="bds_tieba"></a>
	<a class="bds_hi"></a>
	<a class="bds_renren"></a>
	<a class="bds_taobao"></a>
	<a class="bds_more"></a>
	<a class="shareCount"></a>
	</div>
	<script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=590440" ></script>
	<script type="text/javascript" id="bdshell_js"></script>
	<script type="text/javascript">
		document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000);
	</script>';
    }
}
示例#8
0
文件: index.php 项目: wdq233/BYMT2
		<?php 
    if (bymt_c('sd_config_lis_ck')) {
        bymt_slides('lis', '760', '210');
    }
    ?>
		<?php 
    get_template_part('loop');
    ?>

		<?php 
    if (bymt_c('indexad2')) {
        ?>
		<div id="adsense2">
			<div id="adsense-loader2" style="display:none;">
				<?php 
        bymt('indexadcode2');
        ?>
			</div>
		</div>
		<?php 
    }
    ?>
		<?php 
    bymt_pagenav();
    ?>
	</div>
	<?php 
    if (!wp_is_mobile()) {
        get_sidebar();
    }
    ?>
示例#9
0
文件: footer.php 项目: wdq233/BYMT2
?>
	<div style="display:none">
	<?php 
if (wp_is_mobile()) {
    ?>
    	<?php 
    if (bymt_c('wap_stat')) {
        bymt('wap_statcode');
    }
    ?>
    <?php 
} else {
    ?>
		<?php 
    if (bymt_c('statistics')) {
        bymt('statisticscode');
    }
    ?>
    <?php 
}
?>
	</div>
</div>
<?php 
if (!wp_is_mobile()) {
    if (bymt_c('custom_circle')) {
        ?>
<div id="circle"></div>
<div id="circletext">加载中</div>
<div id="circle1"></div>
<?php