From a5d69e176a3c5db3a886ec55c35ccbaec5807095 Mon Sep 17 00:00:00 2001 From: Tammie Lister Date: Sun, 23 Oct 2016 12:06:10 +0000 Subject: [PATCH] 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 git-svn-id: https://develop.svn.wordpress.org/trunk@38873 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentyseventeen/archive.php | 4 ++-- src/wp-content/themes/twentyseventeen/footer.php | 4 ++-- src/wp-content/themes/twentyseventeen/front-page.php | 8 ++++---- src/wp-content/themes/twentyseventeen/header.php | 4 ++-- src/wp-content/themes/twentyseventeen/index.php | 4 ++-- src/wp-content/themes/twentyseventeen/page.php | 2 +- src/wp-content/themes/twentyseventeen/search.php | 2 +- src/wp-content/themes/twentyseventeen/single.php | 2 +- .../footer/footer-widgets.php | 0 .../{components => template-parts}/footer/site-info.php | 0 .../header/header-image.php | 4 ++-- .../header/site-branding.php | 0 .../navigation/navigation-top.php | 0 .../page/content-front-page-panels.php | 2 +- .../page/content-front-page.php | 0 .../{components => template-parts}/page/content-page.php | 0 .../{components => template-parts}/post/content-audio.php | 0 .../post/content-excerpt.php | 0 .../post/content-gallery.php | 0 .../{components => template-parts}/post/content-image.php | 0 .../{components => template-parts}/post/content-none.php | 0 .../{components => template-parts}/post/content-video.php | 0 .../{components => template-parts}/post/content.php | 0 23 files changed, 18 insertions(+), 18 deletions(-) rename src/wp-content/themes/twentyseventeen/{components => template-parts}/footer/footer-widgets.php (100%) rename src/wp-content/themes/twentyseventeen/{components => template-parts}/footer/site-info.php (100%) rename src/wp-content/themes/twentyseventeen/{components => template-parts}/header/header-image.php (79%) rename src/wp-content/themes/twentyseventeen/{components => template-parts}/header/site-branding.php (100%) rename src/wp-content/themes/twentyseventeen/{components => template-parts}/navigation/navigation-top.php (100%) rename src/wp-content/themes/twentyseventeen/{components => template-parts}/page/content-front-page-panels.php (97%) rename src/wp-content/themes/twentyseventeen/{components => template-parts}/page/content-front-page.php (100%) rename src/wp-content/themes/twentyseventeen/{components => template-parts}/page/content-page.php (100%) rename src/wp-content/themes/twentyseventeen/{components => template-parts}/post/content-audio.php (100%) rename src/wp-content/themes/twentyseventeen/{components => template-parts}/post/content-excerpt.php (100%) rename src/wp-content/themes/twentyseventeen/{components => template-parts}/post/content-gallery.php (100%) rename src/wp-content/themes/twentyseventeen/{components => template-parts}/post/content-image.php (100%) rename src/wp-content/themes/twentyseventeen/{components => template-parts}/post/content-none.php (100%) rename src/wp-content/themes/twentyseventeen/{components => template-parts}/post/content-video.php (100%) rename src/wp-content/themes/twentyseventeen/{components => template-parts}/post/content.php (100%) diff --git a/src/wp-content/themes/twentyseventeen/archive.php b/src/wp-content/themes/twentyseventeen/archive.php index 8aa139f546..6623321353 100644 --- a/src/wp-content/themes/twentyseventeen/archive.php +++ b/src/wp-content/themes/twentyseventeen/archive.php @@ -37,7 +37,7 @@ get_header(); ?> * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Format name) and that will be used instead. */ - get_template_part( 'components/post/content', get_post_format() ); + get_template_part( 'template-parts/post/content', get_post_format() ); endwhile; @@ -49,7 +49,7 @@ get_header(); ?> else : - get_template_part( 'components/post/content', 'none' ); + get_template_part( 'template-parts/post/content', 'none' ); endif; ?> diff --git a/src/wp-content/themes/twentyseventeen/footer.php b/src/wp-content/themes/twentyseventeen/footer.php index e911c1a7da..2d72029b00 100644 --- a/src/wp-content/themes/twentyseventeen/footer.php +++ b/src/wp-content/themes/twentyseventeen/footer.php @@ -19,7 +19,7 @@ diff --git a/src/wp-content/themes/twentyseventeen/front-page.php b/src/wp-content/themes/twentyseventeen/front-page.php index ea4ddc996d..555688857b 100644 --- a/src/wp-content/themes/twentyseventeen/front-page.php +++ b/src/wp-content/themes/twentyseventeen/front-page.php @@ -20,10 +20,10 @@ get_header(); ?> $panels = array( '1', '2', '3', '4' ); $titles = array(); - global $twentyseventeencounter; // Used in components/page/content-front-page-panels.php file. + global $twentyseventeencounter; // Used in template-parts/page/content-front-page-panels.php file. if ( 0 !== twentyseventeen_panel_count() || is_customize_preview() ) : // If we have pages to show. @@ -44,7 +44,7 @@ get_header(); ?> set_query_var( 'panel', $panel ); $titles[] = get_the_title(); // Put page titles in an array for use in navigation. - get_template_part( 'components/page/content', 'front-page-panels' ); + get_template_part( 'template-parts/page/content', 'front-page-panels' ); wp_reset_postdata(); else : diff --git a/src/wp-content/themes/twentyseventeen/header.php b/src/wp-content/themes/twentyseventeen/header.php index f76bbf379a..dc173d67e8 100644 --- a/src/wp-content/themes/twentyseventeen/header.php +++ b/src/wp-content/themes/twentyseventeen/header.php @@ -28,12 +28,12 @@