2013-08-15 05:13:44 +02:00
|
|
|
<?php
|
|
|
|
/**
|
2013-10-12 00:02:11 +02:00
|
|
|
* The template for displaying featured content
|
2013-08-15 05:13:44 +02:00
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Twenty_Fourteen
|
2013-10-12 00:02:11 +02:00
|
|
|
* @since Twenty Fourteen 1.0
|
2013-08-15 05:13:44 +02:00
|
|
|
*/
|
|
|
|
?>
|
|
|
|
|
2013-09-20 20:22:09 +02:00
|
|
|
<div id="featured-content" class="featured-content">
|
2013-10-30 15:39:10 +01:00
|
|
|
<div class="featured-content-inner">
|
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-10-30 15:39:10 +01:00
|
|
|
</div><!-- .featured-content-inner -->
|
2013-09-20 20:22:09 +02:00
|
|
|
</div><!-- #featured-content .featured-content -->
|