Wordpress 3.7
[autoinstalls/wordpress.git] / wp-content / themes / twentytwelve / single.php
1 <?php
2 /**
3  * The Template for displaying all single posts
4  *
5  * @package WordPress
6  * @subpackage Twenty_Twelve
7  * @since Twenty Twelve 1.0
8  */
9
10 get_header(); ?>
11
12         <div id="primary" class="site-content">
13                 <div id="content" role="main">
14
15                         <?php while ( have_posts() ) : the_post(); ?>
16
17                                 <?php get_template_part( 'content', get_post_format() ); ?>
18
19                                 <nav class="nav-single">
20                                         <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3>
21                                         <span class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'twentytwelve' ) . '</span> %title' ); ?></span>
22                                         <span class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'twentytwelve' ) . '</span>' ); ?></span>
23                                 </nav><!-- .nav-single -->
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_sidebar(); ?>
33 <?php get_footer(); ?>