[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

   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
  16              while ( have_posts() ) :
  17                  the_post();
  18                  ?>
  19  
  20                  <?php get_template_part( 'content', get_post_format() ); ?>
  21  
  22                  <nav class="nav-single">
  23                      <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3>
  24                      <span class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'twentytwelve' ) . '</span> %title' ); ?></span>
  25                      <span class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'twentytwelve' ) . '</span>' ); ?></span>
  26                  </nav><!-- .nav-single -->
  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_sidebar(); ?>
  36  <?php get_footer(); ?>


Generated: Thu Nov 21 01:00:03 2024 Cross-referenced by PHPXref 0.7.1