-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathsearch.php
More file actions
67 lines (47 loc) · 1.69 KB
/
search.php
File metadata and controls
67 lines (47 loc) · 1.69 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php get_header(); ?>
<div id="page">
<div class="column span-9 first" id="maincontent">
<div class="content">
<?php if (have_posts()) : ?>
<h2 class="pagetitle">Search Results for "<?php echo $s ?>"</h2>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Previous') ?></div>
<div class="alignright"><?php previous_posts_link('Next »') ?></div>
</div>
<div class="clear"></div>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<p class="large nomargin"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></p>
<?php
// Support for "Search Excerpt" plugin
// http://fucoder.com/code/search-excerpt/
if ( function_exists('the_excerpt') && is_search() ) {
the_excerpt();
} ?>
<p class="small">
<?php the_time('F jS, Y') ?> |
<!-- by <?php the_author() ?> -->
Published in
<?php the_category(', ');
if($post->comment_count > 0) {
echo ' | ';
comments_popup_link('', '1 Comment', '% Comments');
}
?>
</p>
</div>
<hr>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Previous') ?></div>
<div class="alignright"><?php previous_posts_link('Next »') ?></div>
</div>
<?php else : ?>
<h2 class="center">No posts found. Try a different search?</h2>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<?php endif; ?>
</div> <!-- /content -->
</div> <!-- /maincontent-->
<?php get_sidebar(); ?>
</div> <!-- /page -->
<?php get_footer(); ?>