mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-25 02:27:50 +01:00
a872d95778
Built from https://develop.svn.wordpress.org/trunk@25023 git-svn-id: http://core.svn.wordpress.org/trunk@25014 1a063a9b-81f0-0310-95a4-ce76da25c4cd
32 lines
707 B
PHP
32 lines
707 B
PHP
<?php
|
|
/**
|
|
* The template for displaying featured content.
|
|
*
|
|
* @todo: Add support for featured content.
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Twenty_Fourteen
|
|
*/
|
|
?>
|
|
|
|
<div class="featured-content-wrapper">
|
|
<div id="featured-content" class="featured-content">
|
|
|
|
<?php
|
|
do_action( 'twentyfourteen_featured_posts_before' );
|
|
|
|
$featured_posts = twentyfourteen_get_featured_posts();
|
|
foreach ( (array) $featured_posts as $order => $post ) :
|
|
setup_postdata( $post );
|
|
|
|
get_template_part( 'content', 'featured-post' );
|
|
endforeach;
|
|
|
|
do_action( 'twentyfourteen_featured_posts_after' );
|
|
|
|
wp_reset_postdata();
|
|
?>
|
|
|
|
</div><!-- .featured-content -->
|
|
</div><!-- .featured-content-wrapper -->
|