mirror of
https://github.com/WordPress/WordPress.git
synced 2024-08-20 12:54:00 +02:00
WordPress' code just... wasn't. This is now dealt with. Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS. Fixes #41057. Built from https://develop.svn.wordpress.org/trunk@42343 git-svn-id: http://core.svn.wordpress.org/trunk@42172 1a063a9b-81f0-0310-95a4-ce76da25c4cd
40 lines
941 B
PHP
40 lines
941 B
PHP
<?php
|
|
/**
|
|
* The template for displaying 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
|
|
/**
|
|
* Fires before the Twenty Fourteen featured content.
|
|
*
|
|
* @since Twenty Fourteen 1.0
|
|
*/
|
|
do_action( 'twentyfourteen_featured_posts_before' );
|
|
|
|
$featured_posts = twentyfourteen_get_featured_posts();
|
|
foreach ( (array) $featured_posts as $order => $post ) :
|
|
setup_postdata( $post );
|
|
|
|
// Include the featured content template.
|
|
get_template_part( 'content', 'featured-post' );
|
|
endforeach;
|
|
|
|
/**
|
|
* Fires after the Twenty Fourteen featured content.
|
|
*
|
|
* @since Twenty Fourteen 1.0
|
|
*/
|
|
do_action( 'twentyfourteen_featured_posts_after' );
|
|
|
|
wp_reset_postdata();
|
|
?>
|
|
</div><!-- .featured-content-inner -->
|
|
</div><!-- #featured-content .featured-content -->
|