[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

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


Generated : Sat Nov 23 08:20:01 2024 Cross-referenced by PHPXref