[ 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">
  13          <div id="content" role="main">
  14  
  15              <?php while ( have_posts() ) : the_post(); ?>
  16  
  17                  <?php get_template_part( 'content', 'single' ); ?>
  18                  <?php
  19                      // If comments are open or we have at least one comment, load up the comment template
  20                      if ( comments_open() || '0' != get_comments_number() )
  21                          comments_template( '', true );
  22                  ?>
  23  
  24              <?php endwhile; // end of the loop. ?>
  25  
  26          </div><!-- #content -->
  27      </div><!-- #primary -->
  28  
  29  <?php get_sidebar(); ?>
  30  <?php get_footer(); ?>


Generated: Tue Mar 20 03:55:56 2012 Hosted by follow the white rabbit.