[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentythirteen/ -> taxonomy-post_format.php (source)

   1  <?php
   2  /**
   3   * The template for displaying Post Format pages
   4   *
   5   * Used to display archive-type pages for posts with a post format.
   6   * If you'd like to further customize these Post Format views, you may create a
   7   * new template file for each specific one.
   8   *
   9   * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
  10   *
  11   * @package WordPress
  12   * @subpackage Twenty_Thirteen
  13   * @since Twenty Thirteen 1.0
  14   */
  15  
  16  get_header(); ?>
  17  
  18      <div id="primary" class="content-area">
  19          <div id="content" class="site-content" role="main">
  20  
  21          <?php if ( have_posts() ) : ?>
  22              <header class="archive-header">
  23                  <h1 class="archive-title">
  24                  <?php
  25                  /* translators: %s: Post format name. */
  26                  printf( __( '%s Archives', 'twentythirteen' ), '<span>' . esc_html( get_post_format_string( get_post_format() ) ) . '</span>' );
  27                  ?>
  28                  </h1>
  29              </header><!-- .archive-header -->
  30  
  31              <?php
  32              // Start the loop.
  33              while ( have_posts() ) :
  34                  the_post();
  35                  ?>
  36                  <?php get_template_part( 'content', get_post_format() ); ?>
  37              <?php endwhile; ?>
  38  
  39              <?php twentythirteen_paging_nav(); ?>
  40  
  41          <?php else : ?>
  42              <?php get_template_part( 'content', 'none' ); ?>
  43          <?php endif; ?>
  44  
  45          </div><!-- #content -->
  46      </div><!-- #primary -->
  47  
  48  <?php get_sidebar(); ?>
  49  <?php get_footer(); ?>


Generated : Sat Dec 21 08:20:01 2024 Cross-referenced by PHPXref