2013-08-14 23:13:44 -04:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* The template for displaying featured content.
|
|
|
|
*
|
|
|
|
* @todo: Add support for featured content.
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Twenty_Fourteen
|
|
|
|
*/
|
|
|
|
?>
|
|
|
|
|
2013-09-20 14:22:09 -04:00
|
|
|
<div id="featured-content" class="featured-content">
|
2013-07-28 18:55:10 -04:00
|
|
|
|
2013-09-20 14:22:09 -04:00
|
|
|
<?php
|
|
|
|
do_action( 'twentyfourteen_featured_posts_before' );
|
2013-07-28 18:55:10 -04:00
|
|
|
|
2013-09-20 14:22:09 -04:00
|
|
|
$featured_posts = twentyfourteen_get_featured_posts();
|
|
|
|
foreach ( (array) $featured_posts as $order => $post ) :
|
|
|
|
setup_postdata( $post );
|
2013-08-14 23:13:29 -04:00
|
|
|
|
2013-09-20 14:22:09 -04:00
|
|
|
get_template_part( 'content', 'featured-post' );
|
|
|
|
endforeach;
|
2013-07-28 18:55:10 -04:00
|
|
|
|
2013-09-20 14:22:09 -04:00
|
|
|
do_action( 'twentyfourteen_featured_posts_after' );
|
2013-07-28 18:55:10 -04:00
|
|
|
|
2013-09-20 14:22:09 -04:00
|
|
|
wp_reset_postdata();
|
|
|
|
?>
|
2013-07-28 18:55:10 -04:00
|
|
|
|
2013-09-20 14:22:09 -04:00
|
|
|
</div><!-- #featured-content .featured-content -->
|