Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Commit 49eaf46

Browse files
committed
Update to 1.5 of Twenty Seventeen
1 parent 345dc83 commit 49eaf46

32 files changed

+692
-524
lines changed

www/wp-content/themes/twentyseventeen/404.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@
3131
</div><!-- #primary -->
3232
</div><!-- .wrap -->
3333

34-
<?php get_footer();
34+
<?php
35+
get_footer();

www/wp-content/themes/twentyseventeen/README.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Contributors: the WordPress team
33
Requires at least: WordPress 4.7
44
Tested up to: WordPress 5.0-trunk
5-
Version: 1.4
5+
Version: 1.5
66
License: GPLv2 or later
77
License URI: http://www.gnu.org/licenses/gpl-2.0.html
88
Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
@@ -60,6 +60,11 @@ Source: https://unsplash.com/@englr?photo=bIhpiQA009k
6060

6161
== Changelog ==
6262

63+
= 1.5 =
64+
* Released: April 4, 2018
65+
66+
https://codex.wordpress.org/Twenty_Seventeen_Theme_Changelog#Version_1.5
67+
6368
= 1.4 =
6469
* Released: November 14, 2017
6570

www/wp-content/themes/twentyseventeen/archive.php

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@
2727
<main id="main" class="site-main" role="main">
2828

2929
<?php
30-
if ( have_posts() ) : ?>
30+
if ( have_posts() ) :
31+
?>
3132
<?php
3233
/* Start the Loop */
33-
while ( have_posts() ) : the_post();
34+
while ( have_posts() ) :
35+
the_post();
3436

3537
/*
3638
* Include the Post-Format-specific template for the content.
@@ -41,21 +43,25 @@
4143

4244
endwhile;
4345

44-
the_posts_pagination( array(
45-
'prev_text' => twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . __( 'Previous page', 'twentyseventeen' ) . '</span>',
46-
'next_text' => '<span class="screen-reader-text">' . __( 'Next page', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ),
47-
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyseventeen' ) . ' </span>',
48-
) );
46+
the_posts_pagination(
47+
array(
48+
'prev_text' => twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . __( 'Previous page', 'twentyseventeen' ) . '</span>',
49+
'next_text' => '<span class="screen-reader-text">' . __( 'Next page', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ),
50+
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyseventeen' ) . ' </span>',
51+
)
52+
);
4953

5054
else :
5155

5256
get_template_part( 'template-parts/post/content', 'none' );
5357

54-
endif; ?>
58+
endif;
59+
?>
5560

5661
</main><!-- #main -->
5762
</div><!-- #primary -->
5863
<?php get_sidebar(); ?>
5964
</div><!-- .wrap -->
6065

61-
<?php get_footer();
66+
<?php
67+
get_footer();

www/wp-content/themes/twentyseventeen/assets/css/colors-dark.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
.colors-dark .entry-content a:hover,
2020
.colors-dark .entry-summary a:focus,
2121
.colors-dark .entry-summary a:hover,
22+
.colors-dark .comment-content a:focus,
23+
.colors-dark .comment-content a:hover,
2224
.colors-dark .widget a:focus,
2325
.colors-dark .widget a:hover,
2426
.colors-dark .site-footer .widget-area a:focus,
@@ -74,6 +76,8 @@
7476
.colors-dark .entry-content a:hover,
7577
.colors-dark .entry-summary a:focus,
7678
.colors-dark .entry-summary a:hover,
79+
.colors-dark .comment-content a:focus,
80+
.colors-dark .comment-content a:hover,
7781
.colors-dark .widget a:focus,
7882
.colors-dark .widget a:hover,
7983
.colors-dark .site-footer .widget-area a:focus,
@@ -128,6 +132,7 @@
128132

129133
.colors-dark .entry-content a,
130134
.colors-dark .entry-summary a,
135+
.colors-dark .comment-content a,
131136
.colors-dark .widget a,
132137
.colors-dark .site-footer .widget-area a,
133138
.colors-dark .posts-navigation a,
@@ -475,6 +480,7 @@ body.colors-dark,
475480

476481
/* Fixes linked images */
477482
.colors-dark .entry-content a img,
483+
.colors-dark .comment-content a img,
478484
.colors-dark .widget a img {
479485
-webkit-box-shadow: 0 0 0 8px #222;
480486
box-shadow: 0 0 0 8px #222;

www/wp-content/themes/twentyseventeen/comments.php

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727

2828
<?php
2929
// You can start editing here -- including this comment!
30-
if ( have_comments() ) : ?>
30+
if ( have_comments() ) :
31+
?>
3132
<h2 class="comments-title">
3233
<?php
3334
$comments_number = get_comments_number();
@@ -53,24 +54,30 @@
5354

5455
<ol class="comment-list">
5556
<?php
56-
wp_list_comments( array(
57-
'avatar_size' => 100,
58-
'style' => 'ol',
59-
'short_ping' => true,
60-
'reply_text' => twentyseventeen_get_svg( array( 'icon' => 'mail-reply' ) ) . __( 'Reply', 'twentyseventeen' ),
61-
) );
57+
wp_list_comments(
58+
array(
59+
'avatar_size' => 100,
60+
'style' => 'ol',
61+
'short_ping' => true,
62+
'reply_text' => twentyseventeen_get_svg( array( 'icon' => 'mail-reply' ) ) . __( 'Reply', 'twentyseventeen' ),
63+
)
64+
);
6265
?>
6366
</ol>
6467

65-
<?php the_comments_pagination( array(
66-
'prev_text' => twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . __( 'Previous', 'twentyseventeen' ) . '</span>',
67-
'next_text' => '<span class="screen-reader-text">' . __( 'Next', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ),
68-
) );
68+
<?php
69+
the_comments_pagination(
70+
array(
71+
'prev_text' => twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . __( 'Previous', 'twentyseventeen' ) . '</span>',
72+
'next_text' => '<span class="screen-reader-text">' . __( 'Next', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ),
73+
)
74+
);
6975

7076
endif; // Check for have_comments().
7177

7278
// If comments are closed and there are comments, let's leave a little note, shall we?
73-
if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?>
79+
if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
80+
?>
7481

7582
<p class="no-comments"><?php _e( 'Comments are closed.', 'twentyseventeen' ); ?></p>
7683
<?php

www/wp-content/themes/twentyseventeen/footer.php

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,23 @@
2121
<?php
2222
get_template_part( 'template-parts/footer/footer', 'widgets' );
2323

24-
if ( has_nav_menu( 'social' ) ) : ?>
24+
if ( has_nav_menu( 'social' ) ) :
25+
?>
2526
<nav class="social-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Footer Social Links Menu', 'twentyseventeen' ); ?>">
2627
<?php
27-
wp_nav_menu( array(
28-
'theme_location' => 'social',
29-
'menu_class' => 'social-links-menu',
30-
'depth' => 1,
31-
'link_before' => '<span class="screen-reader-text">',
32-
'link_after' => '</span>' . twentyseventeen_get_svg( array( 'icon' => 'chain' ) ),
33-
) );
28+
wp_nav_menu(
29+
array(
30+
'theme_location' => 'social',
31+
'menu_class' => 'social-links-menu',
32+
'depth' => 1,
33+
'link_before' => '<span class="screen-reader-text">',
34+
'link_after' => '</span>' . twentyseventeen_get_svg( array( 'icon' => 'chain' ) ),
35+
)
36+
);
3437
?>
3538
</nav><!-- .social-navigation -->
36-
<?php endif;
39+
<?php
40+
endif;
3741

3842
get_template_part( 'template-parts/footer/site', 'info' );
3943
?>

www/wp-content/themes/twentyseventeen/front-page.php

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,17 @@
1717
<div id="primary" class="content-area">
1818
<main id="main" class="site-main" role="main">
1919

20-
<?php // Show the selected frontpage content.
20+
<?php
21+
// Show the selected front page content.
2122
if ( have_posts() ) :
22-
while ( have_posts() ) : the_post();
23+
while ( have_posts() ) :
24+
the_post();
2325
get_template_part( 'template-parts/page/content', 'front-page' );
2426
endwhile;
25-
else : // I'm not sure it's possible to have no posts when this page is shown, but WTH.
27+
else :
2628
get_template_part( 'template-parts/post/content', 'none' );
27-
endif; ?>
29+
endif;
30+
?>
2831

2932
<?php
3033
// Get each of our panels and show the post data.
@@ -46,9 +49,11 @@
4649
twentyseventeen_front_page_section( null, $i );
4750
}
4851

49-
endif; // The if ( 0 !== twentyseventeen_panel_count() ) ends here. ?>
52+
endif; // The if ( 0 !== twentyseventeen_panel_count() ) ends here.
53+
?>
5054

5155
</main><!-- #main -->
5256
</div><!-- #primary -->
5357

54-
<?php get_footer();
58+
<?php
59+
get_footer();

0 commit comments

Comments
 (0)