[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentyfourteen/ -> featured-content.php (source)

   1  <?php
   2  /**
   3   * The template for displaying featured content
   4   *
   5   * @package WordPress
   6   * @subpackage Twenty_Fourteen
   7   * @since Twenty Fourteen 1.0
   8   */
   9  
  10  ?>
  11  
  12  <div id="featured-content" class="featured-content">
  13      <div class="featured-content-inner">
  14      <?php
  15          /**
  16           * Fires before the Twenty Fourteen featured content.
  17           *
  18           * @since Twenty Fourteen 1.0
  19           */
  20          do_action( 'twentyfourteen_featured_posts_before' );
  21  
  22          $featured_posts = twentyfourteen_get_featured_posts();
  23      foreach ( (array) $featured_posts as $order => $post ) :
  24          setup_postdata( $post );
  25  
  26          // Include the featured content template.
  27          get_template_part( 'content', 'featured-post' );
  28          endforeach;
  29  
  30          /**
  31           * Fires after the Twenty Fourteen featured content.
  32           *
  33           * @since Twenty Fourteen 1.0
  34           */
  35          do_action( 'twentyfourteen_featured_posts_after' );
  36  
  37          wp_reset_postdata();
  38      ?>
  39      </div><!-- .featured-content-inner -->
  40  </div><!-- #featured-content .featured-content -->


Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref