Changeset 26556 for trunk/src/wp-content/themes/twentyfourteen/index.php
- Timestamp:
- 12/03/2013 05:05:53 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/index.php
r26260 r26556 3 3 * The main template file 4 4 * 5 * This is the most generic template file in a WordPress theme 6 * and one of the two required files for a theme (the other being style.css). 7 * It is used to display a page when nothing more specific matches a query. 8 * E.g., it puts together the home page when no home.php file exists. 5 * This is the most generic template file in a WordPress theme and one 6 * of the two required files for a theme (the other being style.css). 7 * It is used to display a page when nothing more specific matches a query, 8 * e.g., it puts together the home page when no home.php file exists. 9 * 9 10 * @link http://codex.wordpress.org/Template_Hierarchy 10 11 * … … 19 20 20 21 <?php 21 if ( is_front_page() && twentyfourteen_has_featured_posts() ) { 22 if ( is_front_page() && twentyfourteen_has_featured_posts() ) : 23 // Include the featured content template. 22 24 get_template_part( 'featured-content' ); 23 }25 endif; 24 26 ?> 25 27 … … 29 31 <?php 30 32 if ( have_posts() ) : 31 while ( have_posts() ) :32 33 // Start the Loop. 34 while ( have_posts() ) : the_post(); 33 35 36 /* 37 * Include the post format-specific template for the content. If you want to 38 * use this in a child theme, then include a file called called content-___.php 39 * (where ___ is the post format) and that will be used instead. 40 */ 34 41 get_template_part( 'content', get_post_format() ); 42 35 43 endwhile; 44 // Previous/next post navigation. 36 45 twentyfourteen_paging_nav(); 37 46 38 47 else : 48 // If no content, include the "No posts found" template. 39 49 get_template_part( 'content', 'none' ); 40 50
Note: See TracChangeset
for help on using the changeset viewer.