mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-20 09:36:15 +01:00
ff4d0e5249
git-svn-id: http://svn.automattic.com/wordpress/trunk@17787 1a063a9b-81f0-0310-95a4-ce76da25c4cd
34 lines
944 B
PHP
34 lines
944 B
PHP
<?php
|
|
/**
|
|
* The Template for displaying all single posts.
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Twenty Eleven
|
|
* @since Twenty Eleven 1.0
|
|
*/
|
|
|
|
get_header(); ?>
|
|
|
|
<div id="primary">
|
|
<div id="content" role="main">
|
|
|
|
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
|
|
|
|
<nav id="nav-single">
|
|
<h1 class="section-heading"><?php _e( 'Post navigation', 'toolbox' ); ?></h1>
|
|
<span class="nav-previous"><?php previous_post_link( '%link', __( '← Previous', 'twentyeleven' ) ); ?></span>
|
|
<span class="nav-next"><?php next_post_link( '%link', __( 'Next →', 'twentyeleven' ) ); ?></span>
|
|
</nav><!-- #nav-single -->
|
|
|
|
<?php get_template_part( 'content', 'single' ); ?>
|
|
|
|
<?php twentyeleven_content_nav( 'nav-below' ); ?>
|
|
|
|
<?php comments_template( '', true ); ?>
|
|
|
|
<?php endwhile; // end of the loop. ?>
|
|
|
|
</div><!-- #content -->
|
|
</div><!-- #primary -->
|
|
|
|
<?php get_footer(); ?>
|