]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-content/themes/twentyeleven/search.php
WordPress 3.5.1
[autoinstalls/wordpress.git] / wp-content / themes / twentyeleven / search.php
1 <?php
2 /**
3  * The template for displaying Search Results pages.
4  *
5  * @package WordPress
6  * @subpackage Twenty_Eleven
7  * @since Twenty Eleven 1.0
8  */
9
10 get_header(); ?>
11
12                 <section id="primary">
13                         <div id="content" role="main">
14
15                         <?php if ( have_posts() ) : ?>
16
17                                 <header class="page-header">
18                                         <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyeleven' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
19                                 </header>
20
21                                 <?php twentyeleven_content_nav( 'nav-above' ); ?>
22
23                                 <?php /* Start the Loop */ ?>
24                                 <?php while ( have_posts() ) : the_post(); ?>
25
26                                         <?php
27                                                 /* Include the Post-Format-specific template for the content.
28                                                  * If you want to overload this in a child theme then include a file
29                                                  * called content-___.php (where ___ is the Post Format name) and that will be used instead.
30                                                  */
31                                                 get_template_part( 'content', get_post_format() );
32                                         ?>
33
34                                 <?php endwhile; ?>
35
36                                 <?php twentyeleven_content_nav( 'nav-below' ); ?>
37
38                         <?php else : ?>
39
40                                 <article id="post-0" class="post no-results not-found">
41                                         <header class="entry-header">
42                                                 <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
43                                         </header><!-- .entry-header -->
44
45                                         <div class="entry-content">
46                                                 <p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'twentyeleven' ); ?></p>
47                                                 <?php get_search_form(); ?>
48                                         </div><!-- .entry-content -->
49                                 </article><!-- #post-0 -->
50
51                         <?php endif; ?>
52
53                         </div><!-- #content -->
54                 </section><!-- #primary -->
55
56 <?php get_sidebar(); ?>
57 <?php get_footer(); ?>