-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.php
27 lines (27 loc) · 1.03 KB
/
search.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php get_header(); ?>
<div class="content-wrap">
<div class="content">
<?php if (!have_posts()) : ?>
<header class="archive-header">
<h1>没有找到有关【<?php echo $s; ?>】的内容</h1>
<p class="muted">给您推荐以下内容:</p>
</header>
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array(
'showposts' => 4,
'caller_get_posts' => 1,
'paged' => $paged
);
query_posts($args);
?>
<?php include('modules/excerpt.php'); ?>
<?php else: ?>
<header class="archive-header">
<h1>有关【<?php echo $s; ?>】的内容</h1>
</header>
<?php include('modules/archive_title.php'); ?>
<?php endif; ?>
</div>
</div>
<?php get_sidebar(); get_footer(); ?>