Make WordPress Core


Ignore:
Timestamp:
12/03/2013 05:05:53 PM (13 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: update comment blocks to match inline docs standards. Props DrewAPicture, see #25837.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/index.php

    r26260 r26556  
    33 * The main template file
    44 *
    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 *
    910 * @link http://codex.wordpress.org/Template_Hierarchy
    1011 *
    … …  
    1920
    2021<?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.
    2224                get_template_part( 'featured-content' );
    23         }
     25        endif;
    2426?>
    2527
    … …  
    2931                <?php
    3032                        if ( have_posts() ) :
    31                                 while ( have_posts() ) :
    32                                         the_post();
     33                                // Start the Loop.
     34                                while ( have_posts() ) : the_post();
    3335
     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                                         */
    3441                                        get_template_part( 'content', get_post_format() );
     42
    3543                                endwhile;
     44                                // Previous/next post navigation.
    3645                                twentyfourteen_paging_nav();
    3746
    3847                        else :
     48                                // If no content, include the "No posts found" template.
    3949                                get_template_part( 'content', 'none' );
    4050
Note: See TracChangeset for help on using the changeset viewer.