-
Notifications
You must be signed in to change notification settings - Fork 2
/
search.php
22 lines (20 loc) · 992 Bytes
/
search.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php get_header(); ?>
<div class="single-main cat"> <!--Single-Main-->
<?php if (have_posts()) : ?>
<h2>搜索结果</h2>
<?php while (have_posts()) : the_post(); ?>
<div class="list">
<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Read more on <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
<div class="category"><?php the_category(', ') ?></div>
</div>
<?php endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div>
</div><!--Single-Main-->
<?php get_sidebar(); ?>
<div class="ffix"></div>
<?php get_footer(); ?>