Esempio n. 1
0
<?php

get_header();
?>
<div class="content-wrap">
	<div class="content">
		<?php 
echo _hui('ads_search_01_s') ? '<div class="ads ads-content">' . hui_get_adcode('ads_search_01') . '</div>' : '';
?>
		<h1 class="title"><strong><?php 
echo htmlspecialchars($s);
?>
 <?php 
echo __('的搜索结果', 'haoui');
?>
</strong></h1>
		<?php 
if (!have_posts()) {
    ?>
			<h3 class="text-muted text-center"><?php 
    echo __('暂无搜索结果', 'haoui');
    ?>
</h3>
		<?php 
} else {
    ?>
			<?php 
    get_template_part('excerpt');
    ?>
		<?php 
}
Esempio n. 2
0
		<?php 
echo _hui('ads_index_02_s') ? '<div class="ads ads-content">' . hui_get_adcode('ads_index_02') . '</div>' : '';
?>
		<?php 
if ($paged && $paged > 1) {
    printf('<h3 class="title"><strong>' . __('所有文章', 'haoui') . '</strong> <small>' . __('第', 'haoui') . $paged . __('页', 'haoui') . '</small></h3>');
} else {
    printf('<h3 class="title">' . (_hui('recent_posts_number') ? '<small class="pull-right">' . __('24小时更新:', 'haoui') . hui_get_recent_posts_number() . __('篇', 'haoui') . ' &nbsp; &nbsp; ' . __('一周更新:', 'haoui') . hui_get_recent_posts_number(7) . __('篇', 'haoui') . '</small>' : '') . '<strong>' . _hui('index_list_title') . '</strong></h3>');
}
$paged = get_query_var('paged') ? get_query_var('paged') : 1;
$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, ',-');
}
query_posts($args);
get_template_part('excerpt');
?>
		<?php 
echo _hui('ads_index_03_s') ? '<div class="ads ads-content">' . hui_get_adcode('ads_index_03') . '</div>' : '';
?>
	</div>
</div>
<?php 
get_sidebar();
get_footer();