wp/wp-content/themes/twentythirteen/taxonomy-post_format.php
changeset 5 5e2f62d02dcd
parent 0 d970ebf37754
child 7 cf61fcea0001
equal deleted inserted replaced
4:346c88efed21 5:5e2f62d02dcd
     4  *
     4  *
     5  * Used to display archive-type pages for posts with a post format.
     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
     6  * If you'd like to further customize these Post Format views, you may create a
     7  * new template file for each specific one.
     7  * new template file for each specific one.
     8  *
     8  *
     9  * @link http://codex.wordpress.org/Template_Hierarchy
     9  * @link https://codex.wordpress.org/Template_Hierarchy
    10  *
    10  *
    11  * @package WordPress
    11  * @package WordPress
    12  * @subpackage Twenty_Thirteen
    12  * @subpackage Twenty_Thirteen
    13  * @since Twenty Thirteen 1.0
    13  * @since Twenty Thirteen 1.0
    14  */
    14  */
    18 	<div id="primary" class="content-area">
    18 	<div id="primary" class="content-area">
    19 		<div id="content" class="site-content" role="main">
    19 		<div id="content" class="site-content" role="main">
    20 
    20 
    21 		<?php if ( have_posts() ) : ?>
    21 		<?php if ( have_posts() ) : ?>
    22 			<header class="archive-header">
    22 			<header class="archive-header">
    23 				<h1 class="archive-title"><?php printf( __( '%s Archives', 'twentythirteen' ), '<span>' . get_post_format_string( get_post_format() ) . '</span>' ); ?></h1>
    23 				<h1 class="archive-title"><?php printf( __( '%s Archives', 'twentythirteen' ), '<span>' . esc_html( get_post_format_string( get_post_format() ) ) . '</span>' ); ?></h1>
    24 			</header><!-- .archive-header -->
    24 			</header><!-- .archive-header -->
    25 
    25 
    26 			<?php /* The loop */ ?>
    26 			<?php /* The loop */ ?>
    27 			<?php while ( have_posts() ) : the_post(); ?>
    27 			<?php while ( have_posts() ) : the_post(); ?>
    28 				<?php get_template_part( 'content', get_post_format() ); ?>
    28 				<?php get_template_part( 'content', get_post_format() ); ?>