[ XREF Home ] [ Index ]

PHP Cross Reference of WordPress Trunk

Provided by Yoast

title

Body

[close]

/wp-content/themes/twentyeleven/ -> single.php (source)

   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 if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  16  
  17                      <nav id="nav-single">
  18                          <h1 class="section-heading"><?php _e( 'Post navigation', 'toolbox' ); ?></h1>
  19                          <span class="nav-previous"><?php previous_post_link( '%link', __( '&larr; Previous', 'twentyeleven' ) ); ?></span>
  20                          <span class="nav-next"><?php next_post_link( '%link', __( 'Next &rarr;', 'twentyeleven' ) ); ?></span>
  21                      </nav><!-- #nav-single -->
  22  
  23                      <?php get_template_part( 'content', 'single' ); ?>
  24  
  25                      <?php twentyeleven_content_nav( 'nav-below' ); ?>
  26  
  27                      <?php comments_template( '', true ); ?>
  28  
  29                  <?php endwhile; // end of the loop. ?>
  30  
  31              </div><!-- #content -->
  32          </div><!-- #primary -->
  33  
  34  <?php get_footer(); ?>


Generated: Wed Jun 1 08:30:02 2011 Cross-referenced by PHPXref 0.7
Provided by Yoast and awesome WordPress Hosting