-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsearch.php
50 lines (35 loc) · 1.69 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
42
43
44
45
46
47
48
49
50
<?php query_posts($query_string.'&posts_per_page=15') ?>
<?php get_header(); ?>
<div id="content-container">
<div id="content">
<div id="body">
<?php if (have_posts()) : ?>
<h2 class="pagetitle"><?php _e('Search Results', 'elegant-grunge') ?></h2>
<?php while (have_posts()) : the_post(); ?>
<div class="search_result">
<h4><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'elegant-grunge'), get_the_title()); ?>"><?php the_title(); ?></a></h4>
<small><?php the_excerpt(); ?></small>
<p class="metadata">
<?php comments_popup_link(__('no comments', 'elegant-grunge'), __('1 comment', 'elegant-grunge'), __('% comments', 'elegant-grunge')); ?>
<?php the_tags(' | '.__('tags:', 'elegant-grunge').' ', ', ', ''); ?>
<?php if ( count(($categories=get_the_category())) > 1 || $categories[0]->cat_ID != 1 ) : ?>
| <?php _e('posted in', 'elegant-grunge') ?> <?php the_category(', ') ?>
<?php endif; ?>
<?php edit_post_link(__('Edit', 'elegant-grunge'), ' | ', ''); ?>
</p>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link(__('« Older Entries', 'elegant-grunge')) ?></div>
<div class="alignright"><?php previous_posts_link(__('Newer Entries »', 'elegant-grunge')) ?></div>
</div>
<?php else : ?>
<h2 class="center"><?php _e('No posts found. Try a different search?', 'elegant-grunge') ?></h2>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<?php endif; ?>
</div>
<?php if ( get_option('page_setup') != 'no-sidebar' ) get_sidebar(); ?>
</div>
<div class="clear"></div>
</div>
<?php get_footer(); ?>