-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
41 lines (41 loc) · 1.56 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php get_header(); ?>
<div class="list-page">
<?php if (have_posts()) : ?>
<h2 class="pagetitle">Search results for ‘<?php the_search_query() ?>’</h2>
<?php while (have_posts()) : the_post(); ?>
<div <?php post_class('post') ?>>
<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
<?php if ($post->post_type=='post'): ?>
<div class="date">
<div class="bg">
<span class="day"><?php the_time('d') ?></span>
<span><?php the_time('M') ?></span>
</div>
</div>
<?php endif ?>
<div class="entry">
<?php the_content('Read the rest of this entry »'); ?>
<div class="cl"> </div>
</div>
<?php if ($post->post_type=='post'): ?>
<div class="meta">
<div class="bg">
<span class="comments-num"><?php comments_popup_link('No Comments', '1 Comment', '% Comments') ?></span>
<p>Posted <!-- by <?php the_author_link() ?> --> in <?php the_category(', ') ?></p>
</div>
<div class="bot"> </div>
</div>
<?php endif; ?>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div>
<?php else : ?>
<h2 class="center">No posts found. Try a different search?</h2>
<?php get_search_form(); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>