2013-09-02 17:21:09 -04:00
|
|
|
<?php
|
|
|
|
/**
|
2013-10-11 18:02:11 -04:00
|
|
|
* The template for displaying Post Format pages
|
2013-09-02 17:21:09 -04:00
|
|
|
*
|
|
|
|
* Used to display archive-type pages for posts with a post format.
|
|
|
|
* If you'd like to further customize these Post Format views, you may create a
|
|
|
|
* new template file for each specific one.
|
|
|
|
*
|
2013-10-11 18:02:11 -04:00
|
|
|
* @link http://codex.wordpress.org/Template_Hierarchy
|
2013-09-02 17:21:09 -04:00
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Twenty_Fourteen
|
2013-10-11 18:02:11 -04:00
|
|
|
* @since Twenty Fourteen 1.0
|
2013-09-02 17:21:09 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
get_header(); ?>
|
|
|
|
|
|
|
|
<section id="primary" class="content-area">
|
|
|
|
<div id="content" class="site-content" role="main">
|
|
|
|
|
|
|
|
<?php if ( have_posts() ) : ?>
|
|
|
|
|
|
|
|
<header class="archive-header">
|
|
|
|
<h1 class="archive-title">
|
|
|
|
<?php
|
|
|
|
if ( is_tax( 'post_format', 'post-format-aside' ) ) :
|
|
|
|
_e( 'Asides', 'twentyfourteen' );
|
|
|
|
|
|
|
|
elseif ( is_tax( 'post_format', 'post-format-image' ) ) :
|
|
|
|
_e( 'Images', 'twentyfourteen');
|
|
|
|
|
|
|
|
elseif ( is_tax( 'post_format', 'post-format-video' ) ) :
|
|
|
|
_e( 'Videos', 'twentyfourteen' );
|
|
|
|
|
|
|
|
elseif ( is_tax( 'post_format', 'post-format-quote' ) ) :
|
|
|
|
_e( 'Quotes', 'twentyfourteen' );
|
|
|
|
|
|
|
|
elseif ( is_tax( 'post_format', 'post-format-link' ) ) :
|
|
|
|
_e( 'Links', 'twentyfourteen' );
|
|
|
|
|
|
|
|
elseif ( is_tax( 'post_format', 'post-format-gallery' ) ) :
|
|
|
|
_e( 'Galleries', 'twentyfourteen' );
|
|
|
|
|
|
|
|
else :
|
|
|
|
_e( 'Archives', 'twentyfourteen' );
|
|
|
|
|
|
|
|
endif;
|
|
|
|
?>
|
|
|
|
</h1>
|
|
|
|
</header><!-- .archive-header -->
|
|
|
|
|
|
|
|
<?php
|
|
|
|
while ( have_posts() ) :
|
|
|
|
the_post();
|
|
|
|
|
|
|
|
get_template_part( 'content', get_post_format() );
|
|
|
|
endwhile;
|
|
|
|
twentyfourteen_paging_nav();
|
|
|
|
|
|
|
|
else :
|
|
|
|
get_template_part( 'content', 'none' );
|
|
|
|
|
|
|
|
endif;
|
|
|
|
?>
|
|
|
|
</div><!-- #content -->
|
|
|
|
</section><!-- #primary -->
|
|
|
|
|
|
|
|
<?php
|
|
|
|
get_sidebar( 'content' );
|
|
|
|
get_sidebar();
|
|
|
|
get_footer();
|