3 * The template for displaying Search Results pages.
6 * @subpackage Twenty_Eleven
7 * @since Twenty Eleven 1.0
12 <section id="primary">
13 <div id="content" role="main">
15 <?php if ( have_posts() ) : ?>
17 <header class="page-header">
18 <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyeleven' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
21 <?php twentyeleven_content_nav( 'nav-above' ); ?>
23 <?php /* Start the Loop */ ?>
24 <?php while ( have_posts() ) : the_post(); ?>
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.
31 get_template_part( 'content', get_post_format() );
36 <?php twentyeleven_content_nav( 'nav-below' ); ?>
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 -->
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 -->
53 </div><!-- #content -->
54 </section><!-- #primary -->
56 <?php get_sidebar(); ?>
57 <?php get_footer(); ?>