[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentyten/ -> category.php (source)

   1  <?php
   2  /**
   3   * Template for displaying Category Archive pages
   4   *
   5   * @package WordPress
   6   * @subpackage Twenty_Ten
   7   * @since Twenty Ten 1.0
   8   */
   9  
  10  get_header(); ?>
  11  
  12          <div id="container">
  13              <div id="content" role="main">
  14  
  15                  <h1 class="page-title">
  16                  <?php
  17                      /* translators: %s: Category title. */
  18                      printf( __( 'Category Archives: %s', 'twentyten' ), '<span>' . single_cat_title( '', false ) . '</span>' );
  19                  ?>
  20                  </h1>
  21                  <?php
  22                      $category_description = category_description();
  23                  if ( ! empty( $category_description ) ) {
  24                      echo '<div class="archive-meta">' . $category_description . '</div>';
  25                  }
  26  
  27                  /*
  28                   * Run the loop for the category page to output the posts.
  29                   * If you want to overload this in a child theme then include a file
  30                   * called loop-category.php and that will be used instead.
  31                   */
  32                  get_template_part( 'loop', 'category' );
  33                  ?>
  34  
  35              </div><!-- #content -->
  36          </div><!-- #container -->
  37  
  38  <?php get_sidebar(); ?>
  39  <?php get_footer(); ?>


Generated : Sun Dec 22 08:20:01 2024 Cross-referenced by PHPXref