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-07-28 18:55:10 -04:00
|
|
|
<div class="featured-content-wrapper">
|
2013-08-14 23:13:29 -04:00
|
|
|
<div id="featured-content" class="featured-content">
|
2013-07-28 18:55:10 -04:00
|
|
|
|
|
|
|
<?php
|
|
|
|
do_action( 'twentyfourteen_featured_posts_before' );
|
|
|
|
|
|
|
|
$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-07-28 18:55:10 -04:00
|
|
|
get_template_part( 'content', 'featured-post' );
|
|
|
|
endforeach;
|
|
|
|
|
|
|
|
do_action( 'twentyfourteen_featured_posts_after' );
|
|
|
|
|
|
|
|
wp_reset_postdata();
|
|
|
|
?>
|
|
|
|
|
|
|
|
</div><!-- .featured-content -->
|
|
|
|
</div><!-- .featured-content-wrapper -->
|