mirror of
https://github.com/KevinMidboe/rohnenedre.git
synced 2026-02-14 21:39:18 +00:00
Initial commit. State 04.2021.
This commit is contained in:
39
wp-content/themes/twentyfourteen/featured-content.php
Normal file
39
wp-content/themes/twentyfourteen/featured-content.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?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 -->
|
||||
Reference in New Issue
Block a user