diff --git a/src/wp-content/themes/twentyseventeen/archive.php b/src/wp-content/themes/twentyseventeen/archive.php
index 8aa139f..6623321 100644
a
|
b
|
get_header(); ?> |
37 | 37 | * If you want to override this in a child theme, then include a file |
38 | 38 | * called content-___.php (where ___ is the Post Format name) and that will be used instead. |
39 | 39 | */ |
40 | | get_template_part( 'components/post/content', get_post_format() ); |
| 40 | get_template_part( 'template-parts/post/content', get_post_format() ); |
41 | 41 | |
42 | 42 | endwhile; |
43 | 43 | |
… |
… |
get_header(); ?> |
49 | 49 | |
50 | 50 | else : |
51 | 51 | |
52 | | get_template_part( 'components/post/content', 'none' ); |
| 52 | get_template_part( 'template-parts/post/content', 'none' ); |
53 | 53 | |
54 | 54 | endif; ?> |
55 | 55 | |
diff --git a/src/wp-content/themes/twentyseventeen/footer.php b/src/wp-content/themes/twentyseventeen/footer.php
index e911c1a..2d72029 100644
a
|
b
|
|
19 | 19 | <footer id="colophon" class="site-footer" role="contentinfo"> |
20 | 20 | <div class="wrap"> |
21 | 21 | <?php |
22 | | get_template_part( 'components/footer/footer', 'widgets' ); |
| 22 | get_template_part( 'template-parts/footer/footer', 'widgets' ); |
23 | 23 | |
24 | 24 | if ( has_nav_menu( 'social' ) ) : ?> |
25 | 25 | <nav class="social-navigation" role="navigation" aria-label="<?php _e( 'Footer Social Links Menu', 'twentyseventeen' ); ?>"> |
… |
… |
|
35 | 35 | </nav><!-- .social-navigation --> |
36 | 36 | <?php endif; |
37 | 37 | |
38 | | get_template_part( 'components/footer/site', 'info' ); |
| 38 | get_template_part( 'template-parts/footer/site', 'info' ); |
39 | 39 | ?> |
40 | 40 | </div><!-- .wrap --> |
41 | 41 | </footer><!-- #colophon --> |
diff --git a/src/wp-content/themes/twentyseventeen/front-page.php b/src/wp-content/themes/twentyseventeen/front-page.php
index ea4ddc9..5556888 100644
a
|
b
|
get_header(); ?> |
20 | 20 | <?php // Show the selected frontpage content. |
21 | 21 | if ( have_posts() ) : |
22 | 22 | while ( have_posts() ) : the_post(); |
23 | | get_template_part( 'components/page/content', 'front-page' ); |
| 23 | get_template_part( 'template-parts/page/content', 'front-page' ); |
24 | 24 | endwhile; |
25 | 25 | 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' ); |
27 | 27 | endif; ?> |
28 | 28 | |
29 | 29 | <?php |
… |
… |
get_header(); ?> |
31 | 31 | $panels = array( '1', '2', '3', '4' ); |
32 | 32 | $titles = array(); |
33 | 33 | |
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. |
35 | 35 | |
36 | 36 | if ( 0 !== twentyseventeen_panel_count() || is_customize_preview() ) : // If we have pages to show. |
37 | 37 | |
… |
… |
get_header(); ?> |
44 | 44 | set_query_var( 'panel', $panel ); |
45 | 45 | |
46 | 46 | $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' ); |
48 | 48 | |
49 | 49 | wp_reset_postdata(); |
50 | 50 | else : |
diff --git a/src/wp-content/themes/twentyseventeen/header.php b/src/wp-content/themes/twentyseventeen/header.php
index f76bbf3..dc173d6 100644
a
|
b
|
|
28 | 28 | |
29 | 29 | <header id="masthead" class="site-header" role="banner"> |
30 | 30 | |
31 | | <?php get_template_part( 'components/header/header', 'image' ); ?> |
| 31 | <?php get_template_part( 'template-parts/header/header', 'image' ); ?> |
32 | 32 | |
33 | 33 | <?php if ( has_nav_menu( 'top' ) ) : ?> |
34 | 34 | <div class="navigation-top"> |
35 | 35 | <div class="wrap"> |
36 | | <?php get_template_part( 'components/navigation/navigation', 'top' ); ?> |
| 36 | <?php get_template_part( 'template-parts/navigation/navigation', 'top' ); ?> |
37 | 37 | </div><!-- .wrap --> |
38 | 38 | </div><!-- .navigation-top --> |
39 | 39 | <?php endif; ?> |
diff --git a/src/wp-content/themes/twentyseventeen/index.php b/src/wp-content/themes/twentyseventeen/index.php
index 144ef9a..4e1186b 100644
a
|
b
|
get_header(); ?> |
42 | 42 | * If you want to override this in a child theme, then include a file |
43 | 43 | * called content-___.php (where ___ is the Post Format name) and that will be used instead. |
44 | 44 | */ |
45 | | get_template_part( 'components/post/content', get_post_format() ); |
| 45 | get_template_part( 'template-parts/post/content', get_post_format() ); |
46 | 46 | |
47 | 47 | endwhile; |
48 | 48 | |
… |
… |
get_header(); ?> |
54 | 54 | |
55 | 55 | else : |
56 | 56 | |
57 | | get_template_part( 'components/post/content', 'none' ); |
| 57 | get_template_part( 'template-parts/post/content', 'none' ); |
58 | 58 | |
59 | 59 | endif; |
60 | 60 | ?> |
diff --git a/src/wp-content/themes/twentyseventeen/page.php b/src/wp-content/themes/twentyseventeen/page.php
index 850b2ba..96211f4 100644
a
|
b
|
get_header(); ?> |
24 | 24 | <?php |
25 | 25 | while ( have_posts() ) : the_post(); |
26 | 26 | |
27 | | get_template_part( 'components/page/content', 'page' ); |
| 27 | get_template_part( 'template-parts/page/content', 'page' ); |
28 | 28 | |
29 | 29 | // If comments are open or we have at least one comment, load up the comment template. |
30 | 30 | if ( comments_open() || get_comments_number() ) : |
diff --git a/src/wp-content/themes/twentyseventeen/search.php b/src/wp-content/themes/twentyseventeen/search.php
index 6a22181..a521e4b 100644
a
|
b
|
get_header(); ?> |
35 | 35 | * If you want to overload this in a child theme then include a file |
36 | 36 | * called content-search.php and that will be used instead. |
37 | 37 | */ |
38 | | get_template_part( 'components/post/content', 'excerpt' ); |
| 38 | get_template_part( 'template-parts/post/content', 'excerpt' ); |
39 | 39 | |
40 | 40 | endwhile; // End of the loop. |
41 | 41 | |
diff --git a/src/wp-content/themes/twentyseventeen/single.php b/src/wp-content/themes/twentyseventeen/single.php
index f1b3721..704560b 100644
a
|
b
|
get_header(); ?> |
20 | 20 | /* Start the Loop */ |
21 | 21 | while ( have_posts() ) : the_post(); |
22 | 22 | |
23 | | get_template_part( 'components/post/content', get_post_format() ); |
| 23 | get_template_part( 'template-parts/post/content', get_post_format() ); |
24 | 24 | |
25 | 25 | // If comments are open or we have at least one comment, load up the comment template. |
26 | 26 | if ( comments_open() || get_comments_number() ) : |
diff --git a/src/wp-content/themes/twentyseventeen/components/footer/footer-widgets.php b/src/wp-content/themes/twentyseventeen/template-parts/footer/footer-widgets.php
similarity index 100%
rename from src/wp-content/themes/twentyseventeen/components/footer/footer-widgets.php
rename to src/wp-content/themes/twentyseventeen/template-parts/footer/footer-widgets.php
diff --git a/src/wp-content/themes/twentyseventeen/components/footer/site-info.php b/src/wp-content/themes/twentyseventeen/template-parts/footer/site-info.php
similarity index 100%
rename from src/wp-content/themes/twentyseventeen/components/footer/site-info.php
rename to src/wp-content/themes/twentyseventeen/template-parts/footer/site-info.php
diff --git a/src/wp-content/themes/twentyseventeen/components/header/header-image.php b/src/wp-content/themes/twentyseventeen/template-parts/header/header-image.php
similarity index 79%
rename from src/wp-content/themes/twentyseventeen/components/header/header-image.php
rename to src/wp-content/themes/twentyseventeen/template-parts/header/header-image.php
index 102456d..2c4b0f8 100644
old
|
new
|
|
17 | 17 | if ( ! empty( $header_image ) ) : ?> |
18 | 18 | |
19 | 19 | <div class="custom-header-image" style="background-image: url(<?php echo esc_url( $header_image ); ?>)"></div> |
20 | | <?php get_template_part( 'components/header/site', 'branding' ); ?> |
| 20 | <?php get_template_part( 'template-parts/header/site', 'branding' ); ?> |
21 | 21 | |
22 | 22 | <?php else : ?> |
23 | 23 | <?php // Otherwise, show a blank header. ?> |
24 | 24 | <div class="custom-header-simple"> |
25 | | <?php get_template_part( 'components/header/site', 'branding' ); ?> |
| 25 | <?php get_template_part( 'template-parts/header/site', 'branding' ); ?> |
26 | 26 | </div><!-- .custom-header-simple --> |
27 | 27 | |
28 | 28 | <?php endif; ?> |
diff --git a/src/wp-content/themes/twentyseventeen/components/header/site-branding.php b/src/wp-content/themes/twentyseventeen/template-parts/header/site-branding.php
similarity index 100%
rename from src/wp-content/themes/twentyseventeen/components/header/site-branding.php
rename to src/wp-content/themes/twentyseventeen/template-parts/header/site-branding.php
diff --git a/src/wp-content/themes/twentyseventeen/components/navigation/navigation-top.php b/src/wp-content/themes/twentyseventeen/template-parts/navigation/navigation-top.php
similarity index 100%
rename from src/wp-content/themes/twentyseventeen/components/navigation/navigation-top.php
rename to src/wp-content/themes/twentyseventeen/template-parts/navigation/navigation-top.php
diff --git a/src/wp-content/themes/twentyseventeen/components/page/content-front-page-panels.php b/src/wp-content/themes/twentyseventeen/template-parts/page/content-front-page-panels.php
similarity index 97%
rename from src/wp-content/themes/twentyseventeen/components/page/content-front-page-panels.php
rename to src/wp-content/themes/twentyseventeen/template-parts/page/content-front-page-panels.php
index aa45a2b..9e0ffff 100644
old
|
new
|
global $twentyseventeencounter; |
73 | 73 | |
74 | 74 | <?php |
75 | 75 | while ( $recent_posts->have_posts() ) : $recent_posts->the_post(); |
76 | | get_template_part( 'components/post/content', 'excerpt' ); |
| 76 | get_template_part( 'template-parts/post/content', 'excerpt' ); |
77 | 77 | endwhile; |
78 | 78 | wp_reset_postdata(); |
79 | 79 | ?> |