Wordpress 3.5.2
[autoinstalls/wordpress.git] / wp-content / themes / twentyeleven / single.php
1 <?php
2 /**
3  * The Template for displaying all single posts.
4  *
5  * @package WordPress
6  * @subpackage Twenty_Eleven
7  * @since Twenty Eleven 1.0
8  */
9
10 get_header(); ?>
11
12                 <div id="primary">
13                         <div id="content" role="main">
14
15                                 <?php while ( have_posts() ) : the_post(); ?>
16
17                                         <nav id="nav-single">
18                                                 <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></h3>
19                                                 <span class="nav-previous"><?php previous_post_link( '%link', __( '<span class="meta-nav">&larr;</span> Previous', 'twentyeleven' ) ); ?></span>
20                                                 <span class="nav-next"><?php next_post_link( '%link', __( 'Next <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?></span>
21                                         </nav><!-- #nav-single -->
22
23                                         <?php get_template_part( 'content-single', get_post_format() ); ?>
24
25                                         <?php comments_template( '', true ); ?>
26
27                                 <?php endwhile; // end of the loop. ?>
28
29                         </div><!-- #content -->
30                 </div><!-- #primary -->
31
32 <?php get_footer(); ?>