26 lines
559 B
PHP
26 lines
559 B
PHP
<?php
|
|
/**
|
|
* The template for displaying featured content
|
|
*
|
|
* @package Canard
|
|
*/
|
|
$featured_posts = canard_get_featured_posts();
|
|
if ( empty( $featured_posts ) ) {
|
|
return;
|
|
}
|
|
?>
|
|
|
|
<div id="featured-content" class="featured-content">
|
|
<div class="featured-content-inner">
|
|
<?php
|
|
foreach ( $featured_posts as $post ) {
|
|
setup_postdata( $post );
|
|
|
|
// Include the featured content template.
|
|
get_template_part( 'content', 'featured-post' );
|
|
}
|
|
|
|
wp_reset_postdata();
|
|
?>
|
|
</div><!-- .featured-content-inner -->
|
|
</div><!-- #featured-content -->
|