[ XREF Home ] [ Index ]

PHP Cross Reference of WordPress Trunk

Provided by Yoast

title

Body

[close]

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

   1  <?php
   2  /**
   3   * The template used to display Tag Archive pages
   4   *
   5   * @package WordPress
   6   * @subpackage Twenty_Eleven
   7   * @since Twenty Eleven 1.0
   8   */
   9  
  10  get_header(); ?>
  11  
  12          <section id="primary">
  13              <div id="content" role="main">
  14  
  15                  <?php the_post(); ?>
  16  
  17                  <header class="page-header">
  18                      <h1 class="page-title"><?php
  19                          printf( __( 'Tag Archives: %s', 'twentyeleven' ), '<span>' . single_tag_title( '', false ) . '</span>' );
  20                      ?></h1>
  21  
  22                      <?php
  23                          $tag_description = tag_description();
  24                          if ( ! empty( $tag_description ) )
  25                              echo apply_filters( 'tag_archive_meta', '<div class="tag-archive-meta">' . $tag_description . '</div>' );
  26                      ?>
  27                  </header>
  28  
  29                  <?php rewind_posts(); ?>
  30  
  31                  <?php twentyeleven_content_nav( 'nav-above' ); ?>
  32  
  33                  <?php /* Start the Loop */ ?>
  34                  <?php while ( have_posts() ) : the_post(); ?>
  35  
  36                      <?php
  37                          /* Include the Post-Format-specific template for the content.
  38                           * If you want to overload this in a child theme then include a file
  39                           * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  40                           */
  41                          get_template_part( 'content', get_post_format() );
  42                      ?>
  43  
  44                  <?php endwhile; ?>
  45  
  46                  <?php twentyeleven_content_nav( 'nav-below' ); ?>
  47  
  48              </div><!-- #content -->
  49          </section><!-- #primary -->
  50  
  51  <?php get_sidebar(); ?>
  52  <?php get_footer(); ?>


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