WordPress/wp-content/themes/twentyfourteen/featured-content.php
Andrew Nacin d0cfa40983 Add jshintrc to qunit.
props jorbin.
see #25187.

Built from https://develop.svn.wordpress.org/trunk@25992


git-svn-id: http://core.svn.wordpress.org/trunk@25925 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-30 14:39:10 +00:00

31 lines
738 B
PHP

<?php
/**
* The template for displaying featured content
*
* @todo: Add support for featured content.
*
* @package WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 1.0
*/
?>
<div id="featured-content" class="featured-content">
<div class="featured-content-inner">
<?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-inner -->
</div><!-- #featured-content .featured-content -->