]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-content/themes/default/search.php
WordPress 4.0-scripts
[autoinstalls/wordpress.git] / wp-content / themes / default / search.php
1 <?php
2 /**
3  * @package WordPress
4  * @subpackage Default_Theme
5  */
6
7 get_header(); ?>
8
9         <div id="content" class="narrowcolumn" role="main">
10
11         <?php if (have_posts()) : ?>
12
13                 <h2 class="pagetitle">Search Results</h2>
14
15                 <div class="navigation">
16                         <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
17                         <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
18                 </div>
19
20
21                 <?php while (have_posts()) : the_post(); ?>
22
23                         <div <?php post_class() ?>>
24                                 <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
25                                 <small><?php the_time('l, F jS, Y') ?></small>
26
27                                 <p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
28                         </div>
29
30                 <?php endwhile; ?>
31
32                 <div class="navigation">
33                         <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
34                         <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
35                 </div>
36
37         <?php else : ?>
38
39                 <h2 class="center">No posts found. Try a different search?</h2>
40                 <?php get_search_form(); ?>
41
42         <?php endif; ?>
43
44         </div>
45
46 <?php get_sidebar(); ?>
47
48 <?php get_footer(); ?>