-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsearch.php
More file actions
executable file
·48 lines (33 loc) · 1.47 KB
/
search.php
File metadata and controls
executable file
·48 lines (33 loc) · 1.47 KB
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
42
43
44
45
46
47
48
<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<?php if ( have_posts() ) : ?>
<h2 class="pagetitle">Search Results</h2>
<div class="navigation">
<div class="alignleft"><?php posts_nav_link( '', '', '« Previous Entries' ); ?></div>
<div class="alignright"><?php posts_nav_link( '', 'Next Entries »', '' ); ?></div>
</div>
<?php
while ( have_posts() ) :
the_post();
?>
<div class="entry">
<h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
<?php the_excerpt(); ?>
<ul class="post-info">
<li><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_time( 'F jS, Y' ); ?></a></li>
<li><address class="vcard"><a class="url fn" href="<?php the_author_url(); ?>"><?php the_author( 'namefl' ); ?></a></address></li>
<li><?php comments_popup_link( 'Add Comment', '1 Comment', '% Comments' ); ?></li>
</ul>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php posts_nav_link( '', '', '« Previous Entries' ); ?></div>
<div class="alignright"><?php posts_nav_link( '', 'Next Entries »', '' ); ?></div>
</div>
<?php else : ?>
<h2 class="center">Not Found</h2>
<?php include TEMPLATEPATH . '/searchform.php'; ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>