3 * The main template file.
5 * This is the most generic template file in a WordPress theme
6 * and one of the two required files for a theme (the other being style.css).
7 * It is used to display a page when nothing more specific matches a query.
8 * E.g., it puts together the home page when no home.php file exists.
9 * Learn more: http://codex.wordpress.org/Template_Hierarchy
12 * @subpackage Twenty_Eleven
18 <div id="content" role="main">
20 <?php if ( have_posts() ) : ?>
22 <?php twentyeleven_content_nav( 'nav-above' ); ?>
24 <?php /* Start the Loop */ ?>
25 <?php while ( have_posts() ) : the_post(); ?>
27 <?php get_template_part( 'content', get_post_format() ); ?>
31 <?php twentyeleven_content_nav( 'nav-below' ); ?>
35 <article id="post-0" class="post no-results not-found">
36 <header class="entry-header">
37 <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
38 </header><!-- .entry-header -->
40 <div class="entry-content">
41 <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
42 <?php get_search_form(); ?>
43 </div><!-- .entry-content -->
44 </article><!-- #post-0 -->
48 </div><!-- #content -->
49 </div><!-- #primary -->
51 <?php get_sidebar(); ?>
52 <?php get_footer(); ?>