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.
|
|
|
|
*
|
2014-09-29 09:28:16 -04:00
|
|
|
* @todo https://core.trac.wordpress.org/ticket/23257: Add plural versions of Post Format strings
|
2013-12-05 12:57:09 -05:00
|
|
|
* and remove plurals below.
|
2013-12-05 13:31:11 -05:00
|
|
|
*
|
2019-01-09 00:09:51 -05:00
|
|
|
* @link https://developer.wordpress.org/themes/basics/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
|
2017-11-30 18:11:00 -05:00
|
|
|
if ( is_tax( 'post_format', 'post-format-aside' ) ) :
|
|
|
|
_e( 'Asides', 'twentyfourteen' );
|
2013-09-02 17:21:09 -04:00
|
|
|
|
|
|
|
elseif ( is_tax( 'post_format', 'post-format-image' ) ) :
|
2013-11-06 18:54:10 -05:00
|
|
|
_e( 'Images', 'twentyfourteen' );
|
2013-09-02 17:21:09 -04:00
|
|
|
|
|
|
|
elseif ( is_tax( 'post_format', 'post-format-video' ) ) :
|
|
|
|
_e( 'Videos', 'twentyfourteen' );
|
|
|
|
|
2013-11-05 16:52:09 -05:00
|
|
|
elseif ( is_tax( 'post_format', 'post-format-audio' ) ) :
|
|
|
|
_e( 'Audio', 'twentyfourteen' );
|
|
|
|
|
2013-09-02 17:21:09 -04:00
|
|
|
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;
|
2018-08-16 21:51:36 -04:00
|
|
|
?>
|
2013-09-02 17:21:09 -04:00
|
|
|
</h1>
|
|
|
|
</header><!-- .archive-header -->
|
|
|
|
|
2018-08-16 21:51:36 -04:00
|
|
|
<?php
|
2013-12-03 12:06:11 -05:00
|
|
|
// Start the Loop.
|
2018-08-16 21:51:36 -04:00
|
|
|
while ( have_posts() ) :
|
|
|
|
the_post();
|
2017-11-30 18:11:00 -05:00
|
|
|
|
2018-08-16 21:51:36 -04:00
|
|
|
/*
|
|
|
|
* Include the post format-specific template for the content. If you want to
|
|
|
|
* use this in a child theme, then include a file called content-___.php
|
|
|
|
* (where ___ is the post format) and that will be used instead.
|
|
|
|
*/
|
|
|
|
get_template_part( 'content', get_post_format() );
|
2013-12-03 12:06:11 -05:00
|
|
|
|
2013-09-02 17:21:09 -04:00
|
|
|
endwhile;
|
2013-12-03 12:06:11 -05:00
|
|
|
// Previous/next page navigation.
|
2013-09-02 17:21:09 -04:00
|
|
|
twentyfourteen_paging_nav();
|
|
|
|
|
|
|
|
else :
|
2013-12-03 12:06:11 -05:00
|
|
|
// If no content, include the "No posts found" template.
|
2013-09-02 17:21:09 -04:00
|
|
|
get_template_part( 'content', 'none' );
|
|
|
|
|
|
|
|
endif;
|
2018-08-16 21:51:36 -04:00
|
|
|
?>
|
2013-09-02 17:21:09 -04:00
|
|
|
</div><!-- #content -->
|
|
|
|
</section><!-- #primary -->
|
|
|
|
|
|
|
|
<?php
|
2013-11-15 14:01:09 -05:00
|
|
|
get_sidebar( 'content' );
|
2013-09-02 17:21:09 -04:00
|
|
|
get_sidebar();
|
|
|
|
get_footer();
|