2013-08-14 23:13:44 -04:00
|
|
|
<?php
|
|
|
|
/**
|
2013-10-11 18:02:11 -04:00
|
|
|
* The template for displaying featured content
|
2013-08-14 23:13:44 -04:00
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Twenty_Fourteen
|
2013-10-11 18:02:11 -04:00
|
|
|
* @since Twenty Fourteen 1.0
|
2013-08-14 23:13:44 -04:00
|
|
|
*/
|
2024-10-02 15:03:19 -04:00
|
|
|
|
2013-08-14 23:13:44 -04:00
|
|
|
?>
|
|
|
|
|
2013-09-20 14:22:09 -04:00
|
|
|
<div id="featured-content" class="featured-content">
|
2013-10-30 10:39:10 -04:00
|
|
|
<div class="featured-content-inner">
|
2013-09-20 14:22:09 -04:00
|
|
|
<?php
|
2013-12-03 12:06:11 -05:00
|
|
|
/**
|
|
|
|
* Fires before the Twenty Fourteen featured content.
|
|
|
|
*
|
|
|
|
* @since Twenty Fourteen 1.0
|
|
|
|
*/
|
2013-09-20 14:22:09 -04:00
|
|
|
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();
|
2017-11-30 18:11:00 -05:00
|
|
|
foreach ( (array) $featured_posts as $order => $post ) :
|
|
|
|
setup_postdata( $post );
|
2013-08-14 23:13:29 -04:00
|
|
|
|
2017-11-30 18:11:00 -05:00
|
|
|
// Include the featured content template.
|
|
|
|
get_template_part( 'content', 'featured-post' );
|
2013-09-20 14:22:09 -04:00
|
|
|
endforeach;
|
2013-07-28 18:55:10 -04:00
|
|
|
|
2013-12-03 12:06:11 -05:00
|
|
|
/**
|
|
|
|
* Fires after the Twenty Fourteen featured content.
|
|
|
|
*
|
|
|
|
* @since Twenty Fourteen 1.0
|
|
|
|
*/
|
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-10-30 10:39:10 -04:00
|
|
|
</div><!-- .featured-content-inner -->
|
2013-09-20 14:22:09 -04:00
|
|
|
</div><!-- #featured-content .featured-content -->
|