Пример #1
0
</h1>
	  	<div class="note"><?php 
    echo $description ? $description : '去分类设置中添加分类描述吧';
    ?>
</div>
	</div>
</div>
<?php 
}
?>

<section class="container">
	<div class="content-wrap">
		<div class="content">
			<?php 
_the_ads($name = 'ads_cat_01', $class = 'asb-cat asb-cat-01');
?>
			<?php 
if (mo_is_minicat()) {
    $p_meta = _hui('post_plugin');
    while (have_posts()) {
        the_post();
        echo '<article class="excerpt-minic">';
        echo '<h2><a' . _post_target_blank() . ' href="' . get_permalink() . '" title="' . get_the_title() . _get_delimiter() . get_bloginfo('name') . '">' . get_the_title() . '</a></h2>';
        echo '<p class="meta">';
        if ($p_meta && $p_meta['date']) {
            echo '<time><i class="fa fa-clock-o"></i>' . get_the_time('Y-m-d') . '</time>';
        }
        if ($p_meta && $p_meta['author']) {
            $author = get_the_author();
            if (_hui('author_link')) {
Пример #2
0
_moloader('mo_share');
?>
    </div>
    <div class="article-tags"><?php 
the_tags('标签:', '', '');
?>
</div>
    <?php 
_the_ads($name = 'ads_post_02', $class = 'asb-post asb-post-02');
?>
    <?php 
if (_wedn_option('post_related_s')) {
    _moloader('mo_posts_related', false);
    mo_posts_related(_wedn_option('related_title'), _wedn_option('post_related_n'));
}
?>
    <?php 
_the_ads($name = 'ads_post_03', $class = 'asb-post asb-post-03');
?>
    <?php 
comments_template('', true);
?>
  </div>
  </div>
  <?php 
get_sidebar();
?>
</section>

<?php 
get_footer();
Пример #3
0
<?php

get_header();
?>

<section class="container">
	<div class="content-wrap">
	<div class="content">
		<?php 
_the_ads($name = 'ads_tag_01', $class = 'asb-tag asb-tag-01');
?>
		<?php 
$pagedtext = '';
if ($paged && $paged > 1) {
    $pagedtext = ' <small>第' . $paged . '页</small>';
}
echo '<div class="pagetitle"><h1>标签:', single_tag_title(), '</h1>' . $pagedtext . '</div>';
get_template_part('excerpt');
?>
	</div>
	</div>
	<?php 
get_sidebar();
?>
</section>

<?php 
get_footer();
Пример #4
0
<?php

get_header();
if (!have_posts()) {
    get_template_part('content-404');
    get_footer();
    exit;
}
?>

<section class="container">
	<div class="content-wrap">
		<div class="content">
			<?php 
_the_ads($name = 'ads_search_01', $class = 'asb-search asb-search-01');
?>
			<div class="pagetitle"><h1><?php 
echo $s;
?>
 的搜索结果</h1></div>
			<?php 
get_template_part('excerpt');
?>
		</div>
	</div>
	<?php 
get_sidebar();
?>
</section>

<?php 
Пример #5
0
$args = array('ignore_sticky_posts' => 1, 'paged' => $paged);
if (_hui('notinhome')) {
    $pool = array();
    foreach (_hui('notinhome') as $key => $value) {
        if ($value) {
            $pool[] = $key;
        }
    }
    $args['cat'] = '-' . implode($pool, ',-');
}
if (_hui('notinhome_post')) {
    $pool = _hui('notinhome_post');
    $args['post__not_in'] = explode("\n", $pool);
}
query_posts($args);
?>
 
		<?php 
get_template_part('excerpt');
?>
		<?php 
_the_ads($name = 'ads_index_02', $class = 'asb-index asb-index-02');
?>
	</div>
	</div>
	<?php 
get_sidebar();
?>
</section>
<?php 
get_footer();