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