WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/23/2016 12:28:27 PM (5 years ago)
Author:
karmatosed
Message:

Twenty Seventeen: Renaming of directory structure

This changes components directory to be called template-parts. Changes reflected in all files that call those sections.

Props bronsonquick, dd32

Fixes #38375

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/front-page.php

    r38874 r38875  
    2121        if ( have_posts() ) :
    2222            while ( have_posts() ) : the_post();
    23                 get_template_part( 'components/page/content', 'front-page' );
     23                get_template_part( 'template-parts/page/content', 'front-page' );
    2424            endwhile;
    2525        else : // I'm not sure it's possible to have no posts when this page is shown, but WTH.
    26             get_template_part( 'components/post/content', 'none' );
     26            get_template_part( 'template-parts/post/content', 'none' );
    2727        endif; ?>
    2828
     
    3232        $titles = array();
    3333
    34         global $twentyseventeencounter; // Used in components/page/content-front-page-panels.php file.
     34        global $twentyseventeencounter; // Used in template-parts/page/content-front-page-panels.php file.
    3535
    3636        if ( 0 !== twentyseventeen_panel_count() || is_customize_preview() ) : // If we have pages to show.
     
    4545
    4646                    $titles[] = get_the_title(); // Put page titles in an array for use in navigation.
    47                     get_template_part( 'components/page/content', 'front-page-panels' );
     47                    get_template_part( 'template-parts/page/content', 'front-page-panels' );
    4848
    4949                    wp_reset_postdata();
Note: See TracChangeset for help on using the changeset viewer.