Gentoo Archives: gentoo-commits

From: Yury German <blueknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/blogs-gentoo:master commit in: themes/twentyfourteen/page-templates/, themes/twentyfourteen/images/, ...
Date: Mon, 24 Jan 2022 00:12:40
Message-Id: 1642983132.856daf897233b153771276d227f05f8f33a6189e.blueknight@gentoo
1 commit: 856daf897233b153771276d227f05f8f33a6189e
2 Author: Yury German <blueknight <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 24 00:12:12 2022 +0000
4 Commit: Yury German <blueknight <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 24 00:12:12 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/blogs-gentoo.git/commit/?id=856daf89
7
8 twentyfourteen upg 2.7 to 3.2 and twentysixteen from 2.0 to 2.5
9
10 Signed-off-by: Yury German <blueknight <AT> gentoo.org>
11
12 themes/twentyfourteen/archive.php | 31 ++--
13 themes/twentyfourteen/author.php | 13 +-
14 themes/twentyfourteen/category.php | 13 +-
15 themes/twentyfourteen/comments.php | 4 +-
16 themes/twentyfourteen/content-aside.php | 4 +-
17 themes/twentyfourteen/content-audio.php | 4 +-
18 themes/twentyfourteen/content-featured-post.php | 6 +-
19 themes/twentyfourteen/content-gallery.php | 4 +-
20 themes/twentyfourteen/content-image.php | 4 +-
21 themes/twentyfourteen/content-link.php | 4 +-
22 themes/twentyfourteen/content-none.php | 7 +-
23 themes/twentyfourteen/content-quote.php | 4 +-
24 themes/twentyfourteen/content-video.php | 4 +-
25 themes/twentyfourteen/content.php | 6 +-
26 themes/twentyfourteen/css/blocks.css | 13 ++
27 themes/twentyfourteen/css/editor-blocks.css | 95 +++++++++++--
28 themes/twentyfourteen/css/editor-style.css | 1 -
29 themes/twentyfourteen/footer.php | 5 +-
30 themes/twentyfourteen/functions.php | 66 ++++++---
31 themes/twentyfourteen/header.php | 4 +-
32 themes/twentyfourteen/image.php | 4 +-
33 themes/twentyfourteen/images/bridge.jpg | Bin 0 -> 138675 bytes
34 themes/twentyfourteen/images/clouds.jpg | Bin 0 -> 93526 bytes
35 themes/twentyfourteen/images/pattern-dark.svg | 32 ++---
36 themes/twentyfourteen/images/pattern-light.svg | 12 +-
37 themes/twentyfourteen/images/person.jpg | Bin 0 -> 155463 bytes
38 themes/twentyfourteen/images/street.jpg | Bin 0 -> 177017 bytes
39 themes/twentyfourteen/images/sunset.jpg | Bin 0 -> 114946 bytes
40 themes/twentyfourteen/inc/back-compat.php | 24 +++-
41 themes/twentyfourteen/inc/block-patterns.php | 73 ++++++++++
42 themes/twentyfourteen/inc/custom-header.php | 46 +++---
43 themes/twentyfourteen/inc/customizer.php | 10 +-
44 themes/twentyfourteen/inc/featured-content.php | 17 +--
45 themes/twentyfourteen/inc/template-tags.php | 21 +--
46 themes/twentyfourteen/inc/widgets.php | 29 ++--
47 themes/twentyfourteen/index.php | 4 +-
48 themes/twentyfourteen/js/functions.js | 7 +-
49 .../twentyfourteen/page-templates/contributors.php | 2 +-
50 .../twentyfourteen/page-templates/full-width.php | 2 +-
51 themes/twentyfourteen/page.php | 2 +-
52 themes/twentyfourteen/readme.txt | 42 +++++-
53 themes/twentyfourteen/rtl.css | 7 +
54 themes/twentyfourteen/search.php | 13 +-
55 themes/twentyfourteen/single.php | 6 +-
56 themes/twentyfourteen/style.css | 104 ++++++++++++--
57 themes/twentyfourteen/tag.php | 13 +-
58 themes/twentyfourteen/taxonomy-post_format.php | 6 +-
59 themes/twentysixteen/archive.php | 5 +-
60 themes/twentysixteen/comments.php | 4 +-
61 themes/twentysixteen/css/blocks.css | 35 +++--
62 themes/twentysixteen/css/editor-blocks.css | 147 +++++++++++++++----
63 themes/twentysixteen/css/editor-style.css | 8 +-
64 themes/twentysixteen/footer.php | 5 +-
65 themes/twentysixteen/functions.php | 65 ++++++---
66 themes/twentysixteen/genericons/genericons.css | 2 +-
67 themes/twentysixteen/header.php | 4 +-
68 themes/twentysixteen/image.php | 6 +-
69 themes/twentysixteen/inc/back-compat.php | 24 +++-
70 themes/twentysixteen/inc/block-patterns.php | 157 +++++++++++++++++++++
71 themes/twentysixteen/inc/customizer.php | 70 ++++-----
72 themes/twentysixteen/inc/template-tags.php | 16 ++-
73 themes/twentysixteen/index.php | 3 +-
74 themes/twentysixteen/js/functions.js | 2 +-
75 themes/twentysixteen/page.php | 2 +-
76 themes/twentysixteen/readme.txt | 39 +++--
77 themes/twentysixteen/rtl.css | 2 +-
78 themes/twentysixteen/search.php | 7 +-
79 themes/twentysixteen/single.php | 2 +-
80 themes/twentysixteen/style.css | 31 +++-
81 themes/twentysixteen/template-parts/biography.php | 7 +-
82 .../twentysixteen/template-parts/content-none.php | 7 +-
83 .../twentysixteen/template-parts/content-page.php | 2 +-
84 .../template-parts/content-search.php | 4 +-
85 .../template-parts/content-single.php | 2 +-
86 themes/twentysixteen/template-parts/content.php | 4 +-
87 75 files changed, 1079 insertions(+), 351 deletions(-)
88
89 diff --git a/themes/twentyfourteen/archive.php b/themes/twentyfourteen/archive.php
90 index 9d2ba95f..f11a57ff 100644
91 --- a/themes/twentyfourteen/archive.php
92 +++ b/themes/twentyfourteen/archive.php
93 @@ -27,31 +27,30 @@ get_header(); ?>
94 <header class="page-header">
95 <h1 class="page-title">
96 <?php
97 - if ( is_day() ) :
98 + if ( is_day() ) {
99 + /* translators: %s: Date. */
100 printf( __( 'Daily Archives: %s', 'twentyfourteen' ), get_the_date() );
101 -
102 - elseif ( is_month() ) :
103 - printf( __( 'Monthly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyfourteen' ) ) );
104 -
105 - elseif ( is_year() ) :
106 - printf( __( 'Yearly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyfourteen' ) ) );
107 -
108 - else :
109 - _e( 'Archives', 'twentyfourteen' );
110 -
111 - endif;
112 - ?>
113 + } elseif ( is_month() ) {
114 + /* translators: %s: Date. */
115 + printf( __( 'Monthly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyfourteen' ) ) );
116 + } elseif ( is_year() ) {
117 + /* translators: %s: Date. */
118 + printf( __( 'Yearly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyfourteen' ) ) );
119 + } else {
120 + _e( 'Archives', 'twentyfourteen' );
121 + }
122 + ?>
123 </h1>
124 </header><!-- .page-header -->
125
126 <?php
127 - // Start the Loop.
128 + // Start the Loop.
129 while ( have_posts() ) :
130 the_post();
131
132 /*
133 - * Include the post format-specific template for the content. If you want to
134 - * use this in a child theme, then include a file called content-___.php
135 + * Include the post format-specific template for the content. If you want
136 + * to use this in a child theme, then include a file called content-___.php
137 * (where ___ is the post format) and that will be used instead.
138 */
139 get_template_part( 'content', get_post_format() );
140
141 diff --git a/themes/twentyfourteen/author.php b/themes/twentyfourteen/author.php
142 index 2f1d47fb..fc3ba043 100644
143 --- a/themes/twentyfourteen/author.php
144 +++ b/themes/twentyfourteen/author.php
145 @@ -28,6 +28,7 @@ get_header(); ?>
146 */
147 the_post();
148
149 + /* translators: %s: Author display name. */
150 printf( __( 'All posts by %s', 'twentyfourteen' ), get_the_author() );
151 ?>
152 </h1>
153 @@ -38,19 +39,19 @@ get_header(); ?>
154
155 <?php
156 /*
157 - * Since we called the_post() above, we need to rewind
158 - * the loop back to the beginning that way we can run
159 - * the loop properly, in full.
160 + * Since we called the_post() above, we need
161 + * to rewind the loop back to the beginning.
162 + * That way we can run the loop properly, in full.
163 */
164 rewind_posts();
165
166 - // Start the Loop.
167 + // Start the Loop.
168 while ( have_posts() ) :
169 the_post();
170
171 /*
172 - * Include the post format-specific template for the content. If you want to
173 - * use this in a child theme, then include a file called content-___.php
174 + * Include the post format-specific template for the content. If you want
175 + * to use this in a child theme, then include a file called content-___.php
176 * (where ___ is the post format) and that will be used instead.
177 */
178 get_template_part( 'content', get_post_format() );
179
180 diff --git a/themes/twentyfourteen/category.php b/themes/twentyfourteen/category.php
181 index c193cc7b..16ccf12c 100644
182 --- a/themes/twentyfourteen/category.php
183 +++ b/themes/twentyfourteen/category.php
184 @@ -17,7 +17,12 @@ get_header(); ?>
185 <?php if ( have_posts() ) : ?>
186
187 <header class="archive-header">
188 - <h1 class="archive-title"><?php printf( __( 'Category Archives: %s', 'twentyfourteen' ), single_cat_title( '', false ) ); ?></h1>
189 + <h1 class="archive-title">
190 + <?php
191 + /* translators: %s: Category title. */
192 + printf( __( 'Category Archives: %s', 'twentyfourteen' ), single_cat_title( '', false ) );
193 + ?>
194 + </h1>
195
196 <?php
197 // Show an optional term description.
198 @@ -29,13 +34,13 @@ get_header(); ?>
199 </header><!-- .archive-header -->
200
201 <?php
202 - // Start the Loop.
203 + // Start the Loop.
204 while ( have_posts() ) :
205 the_post();
206
207 /*
208 - * Include the post format-specific template for the content. If you want to
209 - * use this in a child theme, then include a file called content-___.php
210 + * Include the post format-specific template for the content. If you want
211 + * to use this in a child theme, then include a file called content-___.php
212 * (where ___ is the post format) and that will be used instead.
213 */
214 get_template_part( 'content', get_post_format() );
215
216 diff --git a/themes/twentyfourteen/comments.php b/themes/twentyfourteen/comments.php
217 index 0b81703f..35992933 100644
218 --- a/themes/twentyfourteen/comments.php
219 +++ b/themes/twentyfourteen/comments.php
220 @@ -26,11 +26,11 @@ if ( post_password_required() ) {
221 <?php
222 $comments_number = get_comments_number();
223 if ( '1' === $comments_number ) {
224 - /* translators: %s: post title */
225 + /* translators: %s: Post title. */
226 printf( _x( 'One thought on &ldquo;%s&rdquo;', 'comments title', 'twentyfourteen' ), get_the_title() );
227 } else {
228 printf(
229 - /* translators: 1: number of comments, 2: post title */
230 + /* translators: 1: Number of comments, 2: Post title. */
231 _nx(
232 '%1$s thought on &ldquo;%2$s&rdquo;',
233 '%1$s thoughts on &ldquo;%2$s&rdquo;',
234
235 diff --git a/themes/twentyfourteen/content-aside.php b/themes/twentyfourteen/content-aside.php
236 index b180826d..ba9f1e15 100644
237 --- a/themes/twentyfourteen/content-aside.php
238 +++ b/themes/twentyfourteen/content-aside.php
239 @@ -12,7 +12,7 @@
240 <?php twentyfourteen_post_thumbnail(); ?>
241
242 <header class="entry-header">
243 - <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
244 + <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?>
245 <div class="entry-meta">
246 <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
247 </div><!-- .entry-meta -->
248 @@ -43,9 +43,9 @@
249
250 <div class="entry-content">
251 <?php
252 - /* translators: %s: Name of current post */
253 the_content(
254 sprintf(
255 + /* translators: %s: Post title. */
256 __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
257 the_title( '<span class="screen-reader-text">', '</span>', false )
258 )
259
260 diff --git a/themes/twentyfourteen/content-audio.php b/themes/twentyfourteen/content-audio.php
261 index 36aa5a9d..4ae2dbc1 100644
262 --- a/themes/twentyfourteen/content-audio.php
263 +++ b/themes/twentyfourteen/content-audio.php
264 @@ -12,7 +12,7 @@
265 <?php twentyfourteen_post_thumbnail(); ?>
266
267 <header class="entry-header">
268 - <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
269 + <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?>
270 <div class="entry-meta">
271 <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
272 </div><!-- .entry-meta -->
273 @@ -43,9 +43,9 @@
274
275 <div class="entry-content">
276 <?php
277 - /* translators: %s: Name of current post */
278 the_content(
279 sprintf(
280 + /* translators: %s: Post title. */
281 __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
282 the_title( '<span class="screen-reader-text">', '</span>', false )
283 )
284
285 diff --git a/themes/twentyfourteen/content-featured-post.php b/themes/twentyfourteen/content-featured-post.php
286 index 707b9570..803451fc 100644
287 --- a/themes/twentyfourteen/content-featured-post.php
288 +++ b/themes/twentyfourteen/content-featured-post.php
289 @@ -11,9 +11,9 @@
290 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
291 <a class="post-thumbnail" href="<?php the_permalink(); ?>">
292 <?php
293 - // Output the featured image.
294 + // Output the featured image.
295 if ( has_post_thumbnail() ) :
296 - if ( 'grid' == get_theme_mod( 'featured_content_layout' ) ) {
297 + if ( 'grid' === get_theme_mod( 'featured_content_layout' ) ) {
298 the_post_thumbnail();
299 } else {
300 the_post_thumbnail( 'twentyfourteen-full-width' );
301 @@ -23,7 +23,7 @@
302 </a>
303
304 <header class="entry-header">
305 - <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
306 + <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?>
307 <div class="entry-meta">
308 <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
309 </div><!-- .entry-meta -->
310
311 diff --git a/themes/twentyfourteen/content-gallery.php b/themes/twentyfourteen/content-gallery.php
312 index 2f793a8e..1d04b85d 100644
313 --- a/themes/twentyfourteen/content-gallery.php
314 +++ b/themes/twentyfourteen/content-gallery.php
315 @@ -12,7 +12,7 @@
316 <?php twentyfourteen_post_thumbnail(); ?>
317
318 <header class="entry-header">
319 - <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
320 + <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?>
321 <div class="entry-meta">
322 <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
323 </div><!-- .entry-meta -->
324 @@ -43,9 +43,9 @@
325
326 <div class="entry-content">
327 <?php
328 - /* translators: %s: Name of current post */
329 the_content(
330 sprintf(
331 + /* translators: %s: Post title. */
332 __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
333 the_title( '<span class="screen-reader-text">', '</span>', false )
334 )
335
336 diff --git a/themes/twentyfourteen/content-image.php b/themes/twentyfourteen/content-image.php
337 index 5e58bf00..27985af9 100644
338 --- a/themes/twentyfourteen/content-image.php
339 +++ b/themes/twentyfourteen/content-image.php
340 @@ -12,7 +12,7 @@
341 <?php twentyfourteen_post_thumbnail(); ?>
342
343 <header class="entry-header">
344 - <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
345 + <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?>
346 <div class="entry-meta">
347 <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
348 </div><!-- .entry-meta -->
349 @@ -43,9 +43,9 @@
350
351 <div class="entry-content">
352 <?php
353 - /* translators: %s: Name of current post */
354 the_content(
355 sprintf(
356 + /* translators: %s: Post title. */
357 __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
358 the_title( '<span class="screen-reader-text">', '</span>', false )
359 )
360
361 diff --git a/themes/twentyfourteen/content-link.php b/themes/twentyfourteen/content-link.php
362 index d4c7c8bd..df30b8d2 100644
363 --- a/themes/twentyfourteen/content-link.php
364 +++ b/themes/twentyfourteen/content-link.php
365 @@ -12,7 +12,7 @@
366 <?php twentyfourteen_post_thumbnail(); ?>
367
368 <header class="entry-header">
369 - <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
370 + <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?>
371 <div class="entry-meta">
372 <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
373 </div><!-- .entry-meta -->
374 @@ -43,9 +43,9 @@
375
376 <div class="entry-content">
377 <?php
378 - /* translators: %s: Name of current post */
379 the_content(
380 sprintf(
381 + /* translators: %s: Post title. */
382 __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
383 the_title( '<span class="screen-reader-text">', '</span>', false )
384 )
385
386 diff --git a/themes/twentyfourteen/content-none.php b/themes/twentyfourteen/content-none.php
387 index a97f84c8..7e35a720 100644
388 --- a/themes/twentyfourteen/content-none.php
389 +++ b/themes/twentyfourteen/content-none.php
390 @@ -15,7 +15,12 @@
391 <div class="page-content">
392 <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
393
394 - <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentyfourteen' ), admin_url( 'post-new.php' ) ); ?></p>
395 + <p>
396 + <?php
397 + /* translators: %s: Post editor URL. */
398 + printf( __( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentyfourteen' ), admin_url( 'post-new.php' ) );
399 + ?>
400 + </p>
401
402 <?php elseif ( is_search() ) : ?>
403
404
405 diff --git a/themes/twentyfourteen/content-quote.php b/themes/twentyfourteen/content-quote.php
406 index 29e6ec37..9726792c 100644
407 --- a/themes/twentyfourteen/content-quote.php
408 +++ b/themes/twentyfourteen/content-quote.php
409 @@ -12,7 +12,7 @@
410 <?php twentyfourteen_post_thumbnail(); ?>
411
412 <header class="entry-header">
413 - <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
414 + <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?>
415 <div class="entry-meta">
416 <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
417 </div><!-- .entry-meta -->
418 @@ -43,9 +43,9 @@
419
420 <div class="entry-content">
421 <?php
422 - /* translators: %s: Name of current post */
423 the_content(
424 sprintf(
425 + /* translators: %s: Post title. */
426 __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
427 the_title( '<span class="screen-reader-text">', '</span>', false )
428 )
429
430 diff --git a/themes/twentyfourteen/content-video.php b/themes/twentyfourteen/content-video.php
431 index 1c1a0efb..814061ce 100644
432 --- a/themes/twentyfourteen/content-video.php
433 +++ b/themes/twentyfourteen/content-video.php
434 @@ -12,7 +12,7 @@
435 <?php twentyfourteen_post_thumbnail(); ?>
436
437 <header class="entry-header">
438 - <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
439 + <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?>
440 <div class="entry-meta">
441 <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
442 </div><!-- .entry-meta -->
443 @@ -43,9 +43,9 @@
444
445 <div class="entry-content">
446 <?php
447 - /* translators: %s: Name of current post */
448 the_content(
449 sprintf(
450 + /* translators: %s: Post title. */
451 __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
452 the_title( '<span class="screen-reader-text">', '</span>', false )
453 )
454
455 diff --git a/themes/twentyfourteen/content.php b/themes/twentyfourteen/content.php
456 index bf053633..1c480433 100644
457 --- a/themes/twentyfourteen/content.php
458 +++ b/themes/twentyfourteen/content.php
459 @@ -14,7 +14,7 @@
460 <?php twentyfourteen_post_thumbnail(); ?>
461
462 <header class="entry-header">
463 - <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
464 + <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?>
465 <div class="entry-meta">
466 <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
467 </div>
468 @@ -30,7 +30,7 @@
469
470 <div class="entry-meta">
471 <?php
472 - if ( 'post' == get_post_type() ) {
473 + if ( 'post' === get_post_type() ) {
474 twentyfourteen_posted_on();
475 }
476
477 @@ -52,9 +52,9 @@
478 <?php else : ?>
479 <div class="entry-content">
480 <?php
481 - /* translators: %s: Name of current post */
482 the_content(
483 sprintf(
484 + /* translators: %s: Post title. */
485 __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
486 the_title( '<span class="screen-reader-text">', '</span>', false )
487 )
488
489 diff --git a/themes/twentyfourteen/css/blocks.css b/themes/twentyfourteen/css/blocks.css
490 index e0f0e231..31691c97 100644
491 --- a/themes/twentyfourteen/css/blocks.css
492 +++ b/themes/twentyfourteen/css/blocks.css
493 @@ -168,6 +168,10 @@ p.has-drop-cap:not(:focus)::first-letter {
494 padding: 0;
495 }
496
497 +.wp-block-code code {
498 + font-size: inherit;
499 +}
500 +
501 /* Pullquote */
502
503 .wp-block-pullquote {
504 @@ -327,6 +331,15 @@ p.has-drop-cap:not(:focus)::first-letter {
505 color: #41a62a;
506 }
507
508 +.widget-area .wp-block-latest-comments__comment-meta a {
509 + color: #fff;
510 +}
511 +
512 +.widget-area .wp-block-latest-comments__comment-meta a:hover,
513 +.widget-area .wp-block-latest-comments__comment-meta a:focus {
514 + color: #41a62a;
515 +}
516 +
517 .wp-block-latest-comments__comment-excerpt p:last-child {
518 }
519
520
521 diff --git a/themes/twentyfourteen/css/editor-blocks.css b/themes/twentyfourteen/css/editor-blocks.css
522 index 079896cb..e611e16b 100644
523 --- a/themes/twentyfourteen/css/editor-blocks.css
524 +++ b/themes/twentyfourteen/css/editor-blocks.css
525 @@ -12,6 +12,7 @@ Description: Used to style blocks in the editor.
526 4.0 Blocks - Formatting
527 5.0 Blocks - Layout Elements
528 6.0 Blocks - Widgets
529 +7.0 Blocks - Colors
530 --------------------------------------------------------------*/
531
532 /*--------------------------------------------------------------
533 @@ -96,11 +97,7 @@ Description: Used to style blocks in the editor.
534 .block-library-list ul,
535 .edit-post-visual-editor ol,
536 .editor-block-list__block ol,
537 -.block-library-list ol {
538 - margin: 0 0 1.6em 1.3333em;
539 - padding: 0;
540 -}
541 -
542 +.block-library-list ol,
543 .block-library-list .editor-rich-text__tinymce {
544 padding: 0;
545 }
546 @@ -131,14 +128,22 @@ Description: Used to style blocks in the editor.
547 margin-bottom: 0;
548 }
549
550 -.rtl .edit-post-visual-editor ul:not(.wp-block-gallery),
551 -.rtl .editor-block-list__block ul:not(.wp-block-gallery),
552 -.rtl .block-library-list ul,
553 -.rtl .edit-post-visual-editor ol,
554 -.rtl .editor-block-list__block ol,
555 -.rtl .block-library-list ol {
556 +.rtl .editor-styles-wrapper ul ul,
557 +.rtl .editor-styles-wrapper ol ol,
558 +.rtl .editor-styles-wrapper ul ol,
559 +.rtl .editor-styles-wrapper ol ul {
560 margin-left: 0;
561 - margin-right: 1.3333em;
562 + margin-right: 20px;
563 +}
564 +
565 +.wp-block-freeform.block-library-rich-text__tinymce ul,
566 +.wp-block-freeform.block-library-rich-text__tinymce ol {
567 + padding-left: 20px;
568 +}
569 +
570 +.rtl .wp-block-freeform.block-library-rich-text__tinymce ul,
571 +.rtl .wp-block-freeform.block-library-rich-text__tinymce ol {
572 + padding: 0;
573 }
574
575 /* Code */
576 @@ -345,13 +350,17 @@ p.has-drop-cap:not(:focus)::first-letter {
577 4.0 Blocks - Formatting
578 --------------------------------------------------------------*/
579
580 -/* Code */
581 +/* Code (Added specficity required to override TinyMCE styles) */
582
583 -.wp-block-code {
584 +.editor-styles-wrapper .wp-block-code {
585 border: 0;
586 padding: 0;
587 }
588
589 +.editor-styles-wrapper .wp-block-code code {
590 + font-size: inherit;
591 +}
592 +
593 /* Pullquote */
594
595 .wp-block-pullquote {
596 @@ -382,6 +391,12 @@ p.has-drop-cap:not(:focus)::first-letter {
597 }
598 }
599
600 +/* Verse */
601 +
602 +.editor-styles-wrapper .wp-block-verse {
603 + font-family: inherit;
604 +}
605 +
606 /*--------------------------------------------------------------
607 5.0 Blocks - Layout Elements
608 --------------------------------------------------------------*/
609 @@ -482,3 +497,55 @@ p.has-drop-cap:not(:focus)::first-letter {
610 margin-left: 0;
611 margin-right: 0;
612 }
613 +
614 +/*--------------------------------------------------------------
615 +7.0 Blocks - Colors
616 +--------------------------------------------------------------*/
617 +
618 +:root .editor-styles-wrapper .has-green-color {
619 + color: #24890d;
620 +}
621 +
622 +:root .editor-styles-wrapper .has-green-background-color {
623 + background-color: #24890d;
624 +}
625 +
626 +:root .editor-styles-wrapper .has-black-color {
627 + color: #000;
628 +}
629 +
630 +:root .editor-styles-wrapper .has-black-background-color {
631 + background-color: #000;
632 +}
633 +
634 +:root .editor-styles-wrapper .has-dark-gray-color {
635 + color: #2b2b2b;
636 +}
637 +
638 +:root .editor-styles-wrapper .has-dark-gray-background-color {
639 + background-color: #2b2b2b;
640 +}
641 +
642 +:root .editor-styles-wrapper .has-medium-gray-color {
643 + color: #767676;
644 +}
645 +
646 +:root .editor-styles-wrapper .has-medium-gray-background-color {
647 + background-color: #767676;
648 +}
649 +
650 +:root .editor-styles-wrapper .has-light-gray-color {
651 + color: #f5f5f5;
652 +}
653 +
654 +:root .editor-styles-wrapper .has-light-gray-background-color {
655 + background-color: #f5f5f5;
656 +}
657 +
658 +:root .editor-styles-wrapper .has-white-color {
659 + color: #fff;
660 +}
661 +
662 +:root .editor-styles-wrapper .has-white-background-color {
663 + background-color: #fff;
664 +}
665
666 diff --git a/themes/twentyfourteen/css/editor-style.css b/themes/twentyfourteen/css/editor-style.css
667 index 4c5482ad..4f91b420 100644
668 --- a/themes/twentyfourteen/css/editor-style.css
669 +++ b/themes/twentyfourteen/css/editor-style.css
670 @@ -153,7 +153,6 @@ pre {
671 pre {
672 border: 1px solid rgba(0, 0, 0, 0.1);
673 margin-bottom: 24px;
674 - max-width: 100%;
675 overflow: auto;
676 padding: 12px;
677 white-space: pre;
678
679 diff --git a/themes/twentyfourteen/footer.php b/themes/twentyfourteen/footer.php
680 index d1016eb9..c3540bf5 100644
681 --- a/themes/twentyfourteen/footer.php
682 +++ b/themes/twentyfourteen/footer.php
683 @@ -24,7 +24,10 @@
684 }
685 ?>
686 <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyfourteen' ) ); ?>" class="imprint">
687 - <?php printf( __( 'Proudly powered by %s', 'twentyfourteen' ), 'WordPress' ); ?>
688 + <?php
689 + /* translators: %s: WordPress */
690 + printf( __( 'Proudly powered by %s', 'twentyfourteen' ), 'WordPress' );
691 + ?>
692 </a>
693 </div><!-- .site-info -->
694 </footer><!-- #colophon -->
695
696 diff --git a/themes/twentyfourteen/functions.php b/themes/twentyfourteen/functions.php
697 index c017dac6..f39296b1 100644
698 --- a/themes/twentyfourteen/functions.php
699 +++ b/themes/twentyfourteen/functions.php
700 @@ -11,14 +11,14 @@
701 * functions.php file. The child theme's functions.php file is included before
702 * the parent theme's file, so the child theme functions would be used.
703 *
704 - * @link https://codex.wordpress.org/Theme_Development
705 + * @link https://developer.wordpress.org/themes/basics/theme-functions/
706 * @link https://developer.wordpress.org/themes/advanced-topics/child-themes/
707 *
708 * Functions that are not pluggable (not wrapped in function_exists()) are
709 * instead attached to a filter or action hook.
710 *
711 * For more information on hooks, actions, and filters,
712 - * @link https://codex.wordpress.org/Plugin_API
713 + * @link https://developer.wordpress.org/plugins/
714 *
715 * @package WordPress
716 * @subpackage Twenty_Fourteen
717 @@ -144,12 +144,15 @@ if ( ! function_exists( 'twentyfourteen_setup' ) ) :
718 'comment-list',
719 'gallery',
720 'caption',
721 + 'script',
722 + 'style',
723 + 'navigation-widgets',
724 )
725 );
726
727 /*
728 * Enable support for Post Formats.
729 - * See https://codex.wordpress.org/Post_Formats
730 + * See https://wordpress.org/support/article/post-formats/
731 */
732 add_theme_support(
733 'post-formats',
734 @@ -167,6 +170,17 @@ if ( ! function_exists( 'twentyfourteen_setup' ) ) :
735 // This theme allows users to set a custom background.
736 add_theme_support(
737 'custom-background',
738 + /**
739 + * Filters Twenty Fourteen custom-background support arguments.
740 + *
741 + * @since Twenty Fourteen 1.0
742 + *
743 + * @param array $args {
744 + * An array of custom-background support arguments.
745 + *
746 + * @type string $default-color Default color of the background.
747 + * }
748 + */
749 apply_filters(
750 'twentyfourteen_custom_background_args',
751 array(
752 @@ -190,7 +204,7 @@ if ( ! function_exists( 'twentyfourteen_setup' ) ) :
753 // Indicate widget sidebars can use selective refresh in the Customizer.
754 add_theme_support( 'customize-selective-refresh-widgets' );
755 }
756 -endif; // twentyfourteen_setup
757 +endif; // twentyfourteen_setup()
758 add_action( 'after_setup_theme', 'twentyfourteen_setup' );
759
760 /**
761 @@ -214,7 +228,7 @@ add_action( 'template_redirect', 'twentyfourteen_content_width' );
762 */
763 function twentyfourteen_get_featured_posts() {
764 /**
765 - * Filter the featured posts to return in Twenty Fourteen.
766 + * Filters the featured posts to return in Twenty Fourteen.
767 *
768 * @since Twenty Fourteen 1.0
769 *
770 @@ -289,13 +303,14 @@ add_action( 'widgets_init', 'twentyfourteen_widgets_init' );
771 function twentyfourteen_font_url() {
772 $font_url = '';
773 /*
774 - * Translators: If there are characters in your language that are not supported
775 + * translators: If there are characters in your language that are not supported
776 * by Lato, translate this to 'off'. Do not translate into your own language.
777 */
778 if ( 'off' !== _x( 'on', 'Lato font: on or off', 'twentyfourteen' ) ) {
779 $query_args = array(
780 - 'family' => urlencode( 'Lato:300,400,700,900,300italic,400italic,700italic' ),
781 - 'subset' => urlencode( 'latin,latin-ext' ),
782 + 'family' => urlencode( 'Lato:300,400,700,900,300italic,400italic,700italic' ),
783 + 'subset' => urlencode( 'latin,latin-ext' ),
784 + 'display' => urlencode( 'fallback' ),
785 );
786 $font_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );
787 }
788 @@ -316,13 +331,13 @@ function twentyfourteen_scripts() {
789 wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.0.3' );
790
791 // Load our main stylesheet.
792 - wp_enqueue_style( 'twentyfourteen-style', get_stylesheet_uri() );
793 + wp_enqueue_style( 'twentyfourteen-style', get_stylesheet_uri(), array(), '20190507' );
794
795 // Theme block stylesheet.
796 - wp_enqueue_style( 'twentyfourteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfourteen-style' ), '20181230' );
797 + wp_enqueue_style( 'twentyfourteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfourteen-style' ), '20190102' );
798
799 // Load the Internet Explorer specific stylesheet.
800 - wp_enqueue_style( 'twentyfourteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfourteen-style' ), '20131205' );
801 + wp_enqueue_style( 'twentyfourteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfourteen-style' ), '20140701' );
802 wp_style_add_data( 'twentyfourteen-ie', 'conditional', 'lt IE 9' );
803
804 if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
805 @@ -330,15 +345,15 @@ function twentyfourteen_scripts() {
806 }
807
808 if ( is_singular() && wp_attachment_is_image() ) {
809 - wp_enqueue_script( 'twentyfourteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20130402' );
810 + wp_enqueue_script( 'twentyfourteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20150120' );
811 }
812
813 if ( is_active_sidebar( 'sidebar-3' ) ) {
814 wp_enqueue_script( 'jquery-masonry' );
815 }
816
817 - if ( is_front_page() && 'slider' == get_theme_mod( 'featured_content_layout' ) ) {
818 - wp_enqueue_script( 'twentyfourteen-slider', get_template_directory_uri() . '/js/slider.js', array( 'jquery' ), '20131205', true );
819 + if ( is_front_page() && 'slider' === get_theme_mod( 'featured_content_layout' ) ) {
820 + wp_enqueue_script( 'twentyfourteen-slider', get_template_directory_uri() . '/js/slider.js', array( 'jquery' ), '20150120', true );
821 wp_localize_script(
822 'twentyfourteen-slider',
823 'featuredSliderDefaults',
824 @@ -349,7 +364,7 @@ function twentyfourteen_scripts() {
825 );
826 }
827
828 - wp_enqueue_script( 'twentyfourteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20150315', true );
829 + wp_enqueue_script( 'twentyfourteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20171218', true );
830 }
831 add_action( 'wp_enqueue_scripts', 'twentyfourteen_scripts' );
832
833 @@ -395,7 +410,7 @@ add_filter( 'wp_resource_hints', 'twentyfourteen_resource_hints', 10, 2 );
834 */
835 function twentyfourteen_block_editor_styles() {
836 // Block styles.
837 - wp_enqueue_style( 'twentyfourteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20181230' );
838 + wp_enqueue_style( 'twentyfourteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20201208' );
839 // Add custom fonts.
840 wp_enqueue_style( 'twentyfourteen-fonts', twentyfourteen_font_url(), array(), null );
841 }
842 @@ -410,7 +425,7 @@ if ( ! function_exists( 'twentyfourteen_the_attached_image' ) ) :
843 function twentyfourteen_the_attached_image() {
844 $post = get_post();
845 /**
846 - * Filter the default Twenty Fourteen attachment size.
847 + * Filters the default Twenty Fourteen attachment size.
848 *
849 * @since Twenty Fourteen 1.0
850 *
851 @@ -452,11 +467,11 @@ if ( ! function_exists( 'twentyfourteen_the_attached_image' ) ) :
852 }
853 }
854
855 - // get the URL of the next image attachment...
856 if ( $next_id ) {
857 + // ...get the URL of the next image attachment.
858 $next_attachment_url = get_attachment_link( $next_id );
859 } else {
860 - // or get the URL of the first image attachment.
861 + // ...or get the URL of the first image attachment.
862 $next_attachment_url = get_attachment_link( reset( $attachment_ids ) );
863 }
864 }
865 @@ -503,7 +518,10 @@ if ( ! function_exists( 'twentyfourteen_list_authors' ) ) :
866 <?php echo get_the_author_meta( 'description', $contributor_id ); ?>
867 </p>
868 <a class="button contributor-posts-link" href="<?php echo esc_url( get_author_posts_url( $contributor_id ) ); ?>">
869 - <?php printf( _n( '%d Article', '%d Articles', $post_count, 'twentyfourteen' ), $post_count ); ?>
870 + <?php
871 + /* translators: %d: Post count. */
872 + printf( _n( '%d Article', '%d Articles', $post_count, 'twentyfourteen' ), $post_count );
873 + ?>
874 </a>
875 </div><!-- .contributor-summary -->
876 </div><!-- .contributor-info -->
877 @@ -538,7 +556,7 @@ function twentyfourteen_body_classes( $classes ) {
878
879 if ( get_header_image() ) {
880 $classes[] = 'header-image';
881 - } elseif ( ! in_array( $GLOBALS['pagenow'], array( 'wp-activate.php', 'wp-signup.php' ) ) ) {
882 + } elseif ( ! in_array( $GLOBALS['pagenow'], array( 'wp-activate.php', 'wp-signup.php' ), true ) ) {
883 $classes[] = 'masthead-fixed';
884 }
885
886 @@ -561,7 +579,7 @@ function twentyfourteen_body_classes( $classes ) {
887 $classes[] = 'singular';
888 }
889
890 - if ( is_front_page() && 'slider' == get_theme_mod( 'featured_content_layout' ) ) {
891 + if ( is_front_page() && 'slider' === get_theme_mod( 'featured_content_layout' ) ) {
892 $classes[] = 'slider';
893 } elseif ( is_front_page() ) {
894 $classes[] = 'grid';
895 @@ -622,6 +640,7 @@ function twentyfourteen_wp_title( $title, $sep ) {
896
897 // Add a page number if necessary.
898 if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
899 + /* translators: %s: Page number. */
900 $title = "$title $sep " . sprintf( __( 'Page %s', 'twentyfourteen' ), max( $paged, $page ) );
901 }
902
903 @@ -659,6 +678,9 @@ require get_template_directory() . '/inc/template-tags.php';
904 // Add Customizer functionality.
905 require get_template_directory() . '/inc/customizer.php';
906
907 +// Add support for block patterns.
908 +require get_template_directory() . '/inc/block-patterns.php';
909 +
910 /*
911 * Add Featured Content functionality.
912 *
913
914 diff --git a/themes/twentyfourteen/header.php b/themes/twentyfourteen/header.php
915 index 88071ec9..4bedca64 100644
916 --- a/themes/twentyfourteen/header.php
917 +++ b/themes/twentyfourteen/header.php
918 @@ -22,10 +22,10 @@
919 <meta charset="<?php bloginfo( 'charset' ); ?>">
920 <meta name="viewport" content="width=device-width">
921 <title><?php wp_title( '|', true, 'right' ); ?></title>
922 - <link rel="profile" href="http://gmpg.org/xfn/11">
923 + <link rel="profile" href="https://gmpg.org/xfn/11">
924 <link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
925 <!--[if lt IE 9]>
926 - <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script>
927 + <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js?ver=3.7.0"></script>
928 <![endif]-->
929 <?php wp_head(); ?>
930 </head>
931
932 diff --git a/themes/twentyfourteen/image.php b/themes/twentyfourteen/image.php
933 index eb4a1658..ed5a9f2e 100644
934 --- a/themes/twentyfourteen/image.php
935 +++ b/themes/twentyfourteen/image.php
936 @@ -17,7 +17,7 @@ get_header();
937 <div id="content" class="site-content" role="main">
938
939 <?php
940 - // Start the Loop.
941 + // Start the Loop.
942 while ( have_posts() ) :
943 the_post();
944 ?>
945 @@ -72,7 +72,7 @@ get_header();
946
947 <?php comments_template(); ?>
948
949 - <?php endwhile; // end of the loop. ?>
950 + <?php endwhile; // End of the loop. ?>
951
952 </div><!-- #content -->
953 </section><!-- #primary -->
954
955 diff --git a/themes/twentyfourteen/images/bridge.jpg b/themes/twentyfourteen/images/bridge.jpg
956 new file mode 100644
957 index 00000000..d172bb28
958 Binary files /dev/null and b/themes/twentyfourteen/images/bridge.jpg differ
959
960 diff --git a/themes/twentyfourteen/images/clouds.jpg b/themes/twentyfourteen/images/clouds.jpg
961 new file mode 100644
962 index 00000000..f753465d
963 Binary files /dev/null and b/themes/twentyfourteen/images/clouds.jpg differ
964
965 diff --git a/themes/twentyfourteen/images/pattern-dark.svg b/themes/twentyfourteen/images/pattern-dark.svg
966 index ef6d5d83..af4bc9a4 100644
967 --- a/themes/twentyfourteen/images/pattern-dark.svg
968 +++ b/themes/twentyfourteen/images/pattern-dark.svg
969 @@ -1,16 +1,16 @@
970 -<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
971 - width="30px" height="30px" viewBox="0 0 30 30" enable-background="new 0 0 30 30" xml:space="preserve">
972 -<rect x="0" display="none" width="30" height="30"/>
973 -<polygon opacity="0.3" fill="#FFFFFF" points="30,0 0,30 1,30 30,1 "/>
974 -<polygon opacity="0.3" fill="#FFFFFF" points="30,5 0,35 1,35 30,6 "/>
975 -<polygon opacity="0.3" fill="#FFFFFF" points="30,10 0,40 1,40 30,11 "/>
976 -<polygon opacity="0.3" fill="#FFFFFF" points="30,15 0,45 1,45 30,16 "/>
977 -<polygon opacity="0.3" fill="#FFFFFF" points="30,20 0,50 1,50 30,21 "/>
978 -<polygon opacity="0.3" fill="#FFFFFF" points="30,25 0,55 1,55 30,26 "/>
979 -<polygon opacity="0.3" fill="#FFFFFF" points="26,-1 -4,29 -3,29 26,0 "/>
980 -<polygon opacity="0.3" fill="#FFFFFF" points="21,-1 -9,29 -8,29 21,0 "/>
981 -<polygon opacity="0.3" fill="#FFFFFF" points="16,-1 -14,29 -13,29 16,0 "/>
982 -<polygon opacity="0.3" fill="#FFFFFF" points="11,-1 -19,29 -18,29 11,0 "/>
983 -<polygon opacity="0.3" fill="#FFFFFF" points="6,-1 -24,29 -23,29 6,0 "/>
984 -<polygon opacity="0.3" fill="#FFFFFF" points="1,-1 -29,29 -28,29 1,0 "/>
985 -</svg>
986 +<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
987 + width="30px" height="30px" viewBox="0 0 30 30" enable-background="new 0 0 30 30" xml:space="preserve">
988 +<rect x="0" display="none" width="30" height="30"/>
989 +<polygon opacity="0.3" fill="#FFFFFF" points="30,0 0,30 1,30 30,1 "/>
990 +<polygon opacity="0.3" fill="#FFFFFF" points="30,5 0,35 1,35 30,6 "/>
991 +<polygon opacity="0.3" fill="#FFFFFF" points="30,10 0,40 1,40 30,11 "/>
992 +<polygon opacity="0.3" fill="#FFFFFF" points="30,15 0,45 1,45 30,16 "/>
993 +<polygon opacity="0.3" fill="#FFFFFF" points="30,20 0,50 1,50 30,21 "/>
994 +<polygon opacity="0.3" fill="#FFFFFF" points="30,25 0,55 1,55 30,26 "/>
995 +<polygon opacity="0.3" fill="#FFFFFF" points="26,-1 -4,29 -3,29 26,0 "/>
996 +<polygon opacity="0.3" fill="#FFFFFF" points="21,-1 -9,29 -8,29 21,0 "/>
997 +<polygon opacity="0.3" fill="#FFFFFF" points="16,-1 -14,29 -13,29 16,0 "/>
998 +<polygon opacity="0.3" fill="#FFFFFF" points="11,-1 -19,29 -18,29 11,0 "/>
999 +<polygon opacity="0.3" fill="#FFFFFF" points="6,-1 -24,29 -23,29 6,0 "/>
1000 +<polygon opacity="0.3" fill="#FFFFFF" points="1,-1 -29,29 -28,29 1,0 "/>
1001 +</svg>
1002
1003 diff --git a/themes/twentyfourteen/images/pattern-light.svg b/themes/twentyfourteen/images/pattern-light.svg
1004 index 55a48f1b..a8a3be32 100644
1005 --- a/themes/twentyfourteen/images/pattern-light.svg
1006 +++ b/themes/twentyfourteen/images/pattern-light.svg
1007 @@ -1,6 +1,6 @@
1008 -<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
1009 - width="30px" height="30px" viewBox="0 0 30 30" enable-background="new 0 0 30 30" xml:space="preserve">
1010 -<path fill="#FFFFFF" d="M0,15v-4L11,0h4L0,15z M10,0H6L0,6v4L10,0z M20,0h-4L0,16v4L20,0z M25,0h-4L0,21v4L25,0z M26,0L0,26v4L30,0
1011 - H26z M5,0H1L0,1v4L5,0z M5,30L30,5V1L1,30H5z M10,30l20-20V6L6,30H10z M15,30l15-15v-4L11,30H15z M20,30l10-10v-4L16,30H20z M25,30
1012 - l5-5v-4l-9,9H25z M30,30v-4l-4,4H30z"/>
1013 -</svg>
1014 +<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
1015 + width="30px" height="30px" viewBox="0 0 30 30" enable-background="new 0 0 30 30" xml:space="preserve">
1016 +<path fill="#FFFFFF" d="M0,15v-4L11,0h4L0,15z M10,0H6L0,6v4L10,0z M20,0h-4L0,16v4L20,0z M25,0h-4L0,21v4L25,0z M26,0L0,26v4L30,0
1017 + H26z M5,0H1L0,1v4L5,0z M5,30L30,5V1L1,30H5z M10,30l20-20V6L6,30H10z M15,30l15-15v-4L11,30H15z M20,30l10-10v-4L16,30H20z M25,30
1018 + l5-5v-4l-9,9H25z M30,30v-4l-4,4H30z"/>
1019 +</svg>
1020
1021 diff --git a/themes/twentyfourteen/images/person.jpg b/themes/twentyfourteen/images/person.jpg
1022 new file mode 100644
1023 index 00000000..8dbad508
1024 Binary files /dev/null and b/themes/twentyfourteen/images/person.jpg differ
1025
1026 diff --git a/themes/twentyfourteen/images/street.jpg b/themes/twentyfourteen/images/street.jpg
1027 new file mode 100644
1028 index 00000000..71735a04
1029 Binary files /dev/null and b/themes/twentyfourteen/images/street.jpg differ
1030
1031 diff --git a/themes/twentyfourteen/images/sunset.jpg b/themes/twentyfourteen/images/sunset.jpg
1032 new file mode 100644
1033 index 00000000..8c1b379f
1034 Binary files /dev/null and b/themes/twentyfourteen/images/sunset.jpg differ
1035
1036 diff --git a/themes/twentyfourteen/inc/back-compat.php b/themes/twentyfourteen/inc/back-compat.php
1037 index 0e8f34b5..a0e0b118 100644
1038 --- a/themes/twentyfourteen/inc/back-compat.php
1039 +++ b/themes/twentyfourteen/inc/back-compat.php
1040 @@ -34,8 +34,14 @@ add_action( 'after_switch_theme', 'twentyfourteen_switch_theme' );
1041 * @since Twenty Fourteen 1.0
1042 */
1043 function twentyfourteen_upgrade_notice() {
1044 - $message = sprintf( __( 'Twenty Fourteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentyfourteen' ), $GLOBALS['wp_version'] );
1045 - printf( '<div class="error"><p>%s</p></div>', $message );
1046 + printf(
1047 + '<div class="error"><p>%s</p></div>',
1048 + sprintf(
1049 + /* translators: %s: WordPress version. */
1050 + __( 'Twenty Fourteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentyfourteen' ),
1051 + $GLOBALS['wp_version']
1052 + )
1053 + );
1054 }
1055
1056 /**
1057 @@ -45,7 +51,11 @@ function twentyfourteen_upgrade_notice() {
1058 */
1059 function twentyfourteen_customize() {
1060 wp_die(
1061 - sprintf( __( 'Twenty Fourteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentyfourteen' ), $GLOBALS['wp_version'] ),
1062 + sprintf(
1063 + /* translators: %s: WordPress version. */
1064 + __( 'Twenty Fourteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentyfourteen' ),
1065 + $GLOBALS['wp_version']
1066 + ),
1067 '',
1068 array(
1069 'back_link' => true,
1070 @@ -61,7 +71,13 @@ add_action( 'load-customize.php', 'twentyfourteen_customize' );
1071 */
1072 function twentyfourteen_preview() {
1073 if ( isset( $_GET['preview'] ) ) {
1074 - wp_die( sprintf( __( 'Twenty Fourteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentyfourteen' ), $GLOBALS['wp_version'] ) );
1075 + wp_die(
1076 + sprintf(
1077 + /* translators: %s: WordPress version. */
1078 + __( 'Twenty Fourteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentyfourteen' ),
1079 + $GLOBALS['wp_version']
1080 + )
1081 + );
1082 }
1083 }
1084 add_action( 'template_redirect', 'twentyfourteen_preview' );
1085
1086 diff --git a/themes/twentyfourteen/inc/block-patterns.php b/themes/twentyfourteen/inc/block-patterns.php
1087 new file mode 100644
1088 index 00000000..5d653007
1089 --- /dev/null
1090 +++ b/themes/twentyfourteen/inc/block-patterns.php
1091 @@ -0,0 +1,73 @@
1092 +<?php
1093 +/**
1094 + * Block Patterns
1095 + *
1096 + * @link https://developer.wordpress.org/reference/functions/register_block_pattern/
1097 + * @link https://developer.wordpress.org/reference/functions/register_block_pattern_category/
1098 + *
1099 + * @package WordPress
1100 + * @subpackage Twenty_Fourteen
1101 + * @since Twenty Fourteen 3.2
1102 + */
1103 +
1104 +/**
1105 + * Register Block Pattern Category.
1106 + */
1107 +if ( function_exists( 'register_block_pattern_category' ) ) {
1108 +
1109 + register_block_pattern_category(
1110 + 'twentyfourteen',
1111 + array( 'label' => esc_html__( 'Twenty Fourteen', 'twentyfourteen' ) )
1112 + );
1113 +}
1114 +
1115 +/**
1116 + * Register Block Patterns.
1117 + */
1118 +if ( function_exists( 'register_block_pattern' ) ) {
1119 +
1120 + // Description
1121 + register_block_pattern(
1122 + 'twentyfourteen/about',
1123 + array(
1124 + 'title' => esc_html__( 'About', 'twentyfourteen' ),
1125 + 'categories' => array( 'twentyfourteen' ),
1126 + 'viewportWidth' => 1000,
1127 + 'content' => '<!-- wp:image {"id":null,"sizeSlug":"large","linkDestination":"none"} --><figure class="wp-block-image size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/images/person.jpg" alt="' . esc_attr__( 'A person standing in front of a lake', 'twentyfourteen' ) . '"/></figure><!-- /wp:image --><!-- wp:heading {"fontSize":"large","style":{"typography":{"lineHeight":"1.4"}}} --><h2 class="has-large-font-size" style="line-height:1.4">' . esc_html__( 'Hello, my name is Joan. I am passionate about writing, travel, and photography.', 'twentyfourteen' ) . '</h2><!-- /wp:heading --><!-- wp:paragraph --><p>' . esc_html__( 'I’ve traveled to over 60 countries, and have made many friends along the way. I created this website to keep track of the memories I’ve made in my years of traveling.', 'twentyfourteen' ) . '</p><!-- /wp:paragraph -->',
1128 + )
1129 + );
1130 +
1131 + // Description
1132 + register_block_pattern(
1133 + 'twentyfourteen/list',
1134 + array(
1135 + 'title' => esc_html__( 'List', 'twentyfourteen' ),
1136 + 'categories' => array( 'twentyfourteen' ),
1137 + 'viewportWidth' => 1000,
1138 + 'content' => '<!-- wp:columns --><div class="wp-block-columns"><!-- wp:column {"width":"40%"} --><div class="wp-block-column" style="flex-basis:40%"><!-- wp:heading {"style":{"typography":{"fontSize":45}}} --><h2 style="font-size:45px">' . esc_html__( '2001', 'twentyfourteen' ) . '</h2><!-- /wp:heading --></div><!-- /wp:column --><!-- wp:column --><div class="wp-block-column"><!-- wp:paragraph --><p><em>' . esc_html__( 'My first year of traveling. I visited China, Thailand, Japan, and India.', 'twentyfourteen' ) . '</em></p><!-- /wp:paragraph --></div><!-- /wp:column --></div><!-- /wp:columns --><!-- wp:separator {"color":"black","className":"is-style-wide"} --><hr class="wp-block-separator has-text-color has-background has-black-background-color has-black-color is-style-wide"/><!-- /wp:separator --><!-- wp:columns --><div class="wp-block-columns"><!-- wp:column {"width":"40%"} --><div class="wp-block-column" style="flex-basis:40%"><!-- wp:heading {"style":{"typography":{"f
1139 ontSize":50}}} --><h2 style="font-size:50px">' . esc_html__( '2012', 'twentyfourteen' ) . '</h2><!-- /wp:heading --></div><!-- /wp:column --><!-- wp:column --><div class="wp-block-column"><!-- wp:paragraph --><p><em>' . esc_html__( 'In 2012, I expanded my travels to Europe. I spent time in Poland, Germany, Italy, France, and Spain. ', 'twentyfourteen' ) . '</em></p><!-- /wp:paragraph --></div><!-- /wp:column --></div><!-- /wp:columns --><!-- wp:separator {"color":"black","className":"is-style-wide"} --><hr class="wp-block-separator has-text-color has-background has-black-background-color has-black-color is-style-wide"/><!-- /wp:separator --><!-- wp:columns --><div class="wp-block-columns"><!-- wp:column {"width":"40%"} --><div class="wp-block-column" style="flex-basis:40%"><!-- wp:heading {"style":{"typography":{"fontSize":50}}} --><h2 style="font-size:50px">' . esc_html__( '2016', 'twentyfourteen' ) . '</h2><!-- /wp:heading --></div><!-- /wp:column --><!-- wp:column --><div class=
1140 "wp-block-column"><!-- wp:paragraph --><p><em>' . esc_html__( 'This year was devoted entirely to the western hemisphere. I went on a month-long road trip through the U.S.A. and Canada, and also visited Mexico, Brazil, and Colombia.', 'twentyfourteen' ) . '</em></p><!-- /wp:paragraph --></div><!-- /wp:column --></div><!-- /wp:columns -->',
1141 + )
1142 + );
1143 +
1144 + // Heading and paragraph with four images.
1145 + register_block_pattern(
1146 + 'twentyfourteen/summary',
1147 + array(
1148 + 'title' => esc_html__( 'Summary', 'twentyfourteen' ),
1149 + 'categories' => array( 'twentyfourteen' ),
1150 + 'viewportWidth' => 1000,
1151 + 'content' => '<!-- wp:group {"backgroundColor":"light-gray"} --><div class="wp-block-group has-light-gray-background-color has-background"><div class="wp-block-group__inner-container"><!-- wp:spacer {"height":50} --><div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div><!-- /wp:spacer --><!-- wp:heading {"level":3,"style":{"typography":{"lineHeight":"1.5"}}} --><h3 style="line-height:1.5">' . esc_html__( 'Traveling Nostalgia', 'twentyfourteen' ) . '</h3><!-- /wp:heading --><!-- wp:paragraph --><p><em>' . esc_html__( 'Here are some photos from my all-time favorite destinations.', 'twentyfourteen' ) . '</em></p><!-- /wp:paragraph --><!-- wp:columns --><div class="wp-block-columns"><!-- wp:column --><div class="wp-block-column"><!-- wp:image {"id":null,"sizeSlug":"large","linkDestination":"none"} --><figure class="wp-block-image size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/images/sunset.jpg" alt="' . esc_html__( 'Photo of a sunset',
1152 'twentyfourteen' ) . '"/><figcaption><span class="has-inline-color has-dark-gray-color">' . esc_html__( 'Sunset', 'twentyfourteen' ) . '</span></figcaption></figure><!-- /wp:image --><!-- wp:image {"id":null,"sizeSlug":"large","linkDestination":"none"} --><figure class="wp-block-image size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/images/bridge.jpg" alt="' . esc_attr__( 'Photo of a bridge', 'twentyfourteen' ) . '"/><figcaption><span class="has-inline-color has-dark-gray-color">' . esc_html__( 'Bridge', 'twentyfourteen' ) . '</span></figcaption></figure><!-- /wp:image --></div><!-- /wp:column --><!-- wp:column --><div class="wp-block-column"><!-- wp:image {"id":null,"sizeSlug":"large","linkDestination":"none"} --><figure class="wp-block-image size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/images/street.jpg" alt="' . esc_attr__( 'Photo of a streetscape', 'twentyfourteen' ) . '"/><figcaption><span class="has-inline-color has-dark-gray-colo
1153 r">' . esc_html__( 'Streetscape', 'twentyfourteen' ) . '</span></figcaption></figure><!-- /wp:image --><!-- wp:image {"id":null,"sizeSlug":"large","linkDestination":"none"} --><figure class="wp-block-image size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/images/clouds.jpg" alt="' . esc_attr__( 'Photo of a cloudy mountain', 'twentyfourteen' ) . '"/><figcaption><span class="has-inline-color has-dark-gray-color">' . esc_html__( 'Clouds', 'twentyfourteen' ) . '</span></figcaption></figure><!-- /wp:image --></div><!-- /wp:column --></div><!-- /wp:columns --><!-- wp:buttons --><div class="wp-block-buttons"><!-- wp:button {"borderRadius":0,"backgroundColor":"dark-gray"} --><div class="wp-block-button"><a class="wp-block-button__link has-dark-gray-background-color has-background no-border-radius">' . esc_html__( 'Read More', 'twentyfourteen' ) . '</a></div><!-- /wp:button --></div><!-- /wp:buttons --><!-- wp:spacer {"height":50} --><div style="height:50px" aria-hidden="
1154 true" class="wp-block-spacer"></div><!-- /wp:spacer --></div></div><!-- /wp:group -->',
1155 + )
1156 + );
1157 +
1158 + // Cover block with contact message.
1159 + register_block_pattern(
1160 + 'twentyfourteen/contact',
1161 + array(
1162 + 'title' => esc_html__( 'Contact', 'twentyfourteen' ),
1163 + 'categories' => array( 'twentyfourteen' ),
1164 + 'viewportWidth' => 1000,
1165 + 'content' => '<!-- wp:cover {"customOverlayColor":"#e6f0e4","minHeight":450,"contentPosition":"center center","className":"is-style-default"} --><div class="wp-block-cover has-background-dim is-style-default" style="background-color:#e6f0e4;min-height:450px"><div class="wp-block-cover__inner-container"><!-- wp:spacer {"height":10} --><div style="height:10px" aria-hidden="true" class="wp-block-spacer"></div><!-- /wp:spacer --><!-- wp:paragraph {"align":"left","placeholder":"' . esc_attr__( 'Write title…', 'twentyfourteen' ) . '","textColor":"black","fontSize":"large"} --><p class="has-text-align-left has-black-color has-text-color has-large-font-size">' . esc_html__( 'GOT A QUESTION?', 'twentyfourteen' ) . '</p><!-- /wp:paragraph --><!-- wp:paragraph {"align":"left","textColor":"black","style":{"typography":{"fontSize":22}}} --><p class="has-text-align-left has-black-color has-text-color" style="font-size:22px">' . esc_html__( 'Don’t hesitate to reach out.', 'twentyfourt
1166 een' ) . '</p><!-- /wp:paragraph --><!-- wp:buttons --><div class="wp-block-buttons"><!-- wp:button {"borderRadius":0} --><div class="wp-block-button"><a class="wp-block-button__link no-border-radius">' . esc_html__( 'GET IN TOUCH', 'twentyfourteen' ) . '</a></div><!-- /wp:button --></div><!-- /wp:buttons --></div></div><!-- /wp:cover -->',
1167 + )
1168 + );
1169 +
1170 +}
1171
1172 diff --git a/themes/twentyfourteen/inc/custom-header.php b/themes/twentyfourteen/inc/custom-header.php
1173 index 92382eaa..7fb590db 100644
1174 --- a/themes/twentyfourteen/inc/custom-header.php
1175 +++ b/themes/twentyfourteen/inc/custom-header.php
1176 @@ -17,26 +17,26 @@
1177 * @uses twentyfourteen_admin_header_image()
1178 */
1179 function twentyfourteen_custom_header_setup() {
1180 - /**
1181 - * Filter Twenty Fourteen custom-header support arguments.
1182 - *
1183 - * @since Twenty Fourteen 1.0
1184 - *
1185 - * @param array $args {
1186 - * An array of custom-header support arguments.
1187 - *
1188 - * @type bool $header_text Whether to display custom header text. Default false.
1189 - * @type int $width Width in pixels of the custom header image. Default 1260.
1190 - * @type int $height Height in pixels of the custom header image. Default 240.
1191 - * @type bool $flex_height Whether to allow flexible-height header images. Default true.
1192 - * @type string $admin_head_callback Callback function used to style the image displayed in
1193 - * the Appearance > Header screen.
1194 - * @type string $admin_preview_callback Callback function used to create the custom header markup in
1195 - * the Appearance > Header screen.
1196 - * }
1197 - */
1198 add_theme_support(
1199 'custom-header',
1200 + /**
1201 + * Filters Twenty Fourteen custom-header support arguments.
1202 + *
1203 + * @since Twenty Fourteen 1.0
1204 + *
1205 + * @param array $args {
1206 + * An array of custom-header support arguments.
1207 + *
1208 + * @type bool $header_text Whether to display custom header text. Default false.
1209 + * @type int $width Width in pixels of the custom header image. Default 1260.
1210 + * @type int $height Height in pixels of the custom header image. Default 240.
1211 + * @type bool $flex_height Whether to allow flexible-height header images. Default true.
1212 + * @type string $admin_head_callback Callback function used to style the image displayed in
1213 + * the Appearance > Header screen.
1214 + * @type string $admin_preview_callback Callback function used to create the custom header markup in
1215 + * the Appearance > Header screen.
1216 + * }
1217 + */
1218 apply_filters(
1219 'twentyfourteen_custom_header_args',
1220 array(
1221 @@ -63,7 +63,7 @@ if ( ! function_exists( 'twentyfourteen_header_style' ) ) :
1222 $text_color = get_header_textcolor();
1223
1224 // If no custom color for text is set, let's bail.
1225 - if ( display_header_text() && $text_color === get_theme_support( 'custom-header', 'default-text-color' ) ) {
1226 + if ( display_header_text() && get_theme_support( 'custom-header', 'default-text-color' ) === $text_color ) {
1227 return;
1228 }
1229
1230 @@ -82,7 +82,7 @@ if ( ! function_exists( 'twentyfourteen_header_style' ) ) :
1231 }
1232 <?php
1233 // If the user has set a custom color for the text, use that.
1234 - elseif ( $text_color != get_theme_support( 'custom-header', 'default-text-color' ) ) :
1235 + elseif ( get_theme_support( 'custom-header', 'default-text-color' ) != $text_color ) :
1236 ?>
1237 .site-title a {
1238 color: #<?php echo esc_attr( $text_color ); ?>;
1239 @@ -91,7 +91,7 @@ if ( ! function_exists( 'twentyfourteen_header_style' ) ) :
1240 </style>
1241 <?php
1242 }
1243 -endif; // twentyfourteen_header_style
1244 +endif; // twentyfourteen_header_style()
1245
1246
1247 if ( ! function_exists( 'twentyfourteen_admin_header_style' ) ) :
1248 @@ -130,7 +130,7 @@ if ( ! function_exists( 'twentyfourteen_admin_header_style' ) ) :
1249 </style>
1250 <?php
1251 }
1252 -endif; // twentyfourteen_admin_header_style
1253 +endif; // twentyfourteen_admin_header_style()
1254
1255 if ( ! function_exists( 'twentyfourteen_admin_header_image' ) ) :
1256 /**
1257 @@ -150,4 +150,4 @@ if ( ! function_exists( 'twentyfourteen_admin_header_image' ) ) :
1258 </div>
1259 <?php
1260 }
1261 -endif; // twentyfourteen_admin_header_image
1262 +endif; // twentyfourteen_admin_header_image()
1263
1264 diff --git a/themes/twentyfourteen/inc/customizer.php b/themes/twentyfourteen/inc/customizer.php
1265 index 15314093..bcf2e2c6 100644
1266 --- a/themes/twentyfourteen/inc/customizer.php
1267 +++ b/themes/twentyfourteen/inc/customizer.php
1268 @@ -60,6 +60,7 @@ function twentyfourteen_customize_register( $wp_customize ) {
1269 array(
1270 'title' => __( 'Featured Content', 'twentyfourteen' ),
1271 'description' => sprintf(
1272 + /* translators: 1: Featured tag editor URL, 2: Post editor URL. */
1273 __( 'Use a <a href="%1$s">tag</a> to feature your posts. If no posts match the tag, <a href="%2$s">sticky posts</a> will be displayed instead.', 'twentyfourteen' ),
1274 esc_url( add_query_arg( 'tag', _x( 'featured', 'featured content default tag slug', 'twentyfourteen' ), admin_url( 'edit.php' ) ) ),
1275 admin_url( 'edit.php?show_sticky=1' )
1276 @@ -97,6 +98,7 @@ add_action( 'customize_register', 'twentyfourteen_customize_register' );
1277 * Render the site title for the selective refresh partial.
1278 *
1279 * @since Twenty Fourteen 1.7
1280 + *
1281 * @see twentyfourteen_customize_register()
1282 *
1283 * @return void
1284 @@ -109,6 +111,7 @@ function twentyfourteen_customize_partial_blogname() {
1285 * Render the site tagline for the selective refresh partial.
1286 *
1287 * @since Twenty Fourteen 1.7
1288 + *
1289 * @see twentyfourteen_customize_register()
1290 *
1291 * @return void
1292 @@ -126,7 +129,7 @@ function twentyfourteen_customize_partial_blogdescription() {
1293 * @return string Filtered layout type (grid|slider).
1294 */
1295 function twentyfourteen_sanitize_layout( $layout ) {
1296 - if ( ! in_array( $layout, array( 'grid', 'slider' ) ) ) {
1297 + if ( ! in_array( $layout, array( 'grid', 'slider' ), true ) ) {
1298 $layout = 'grid';
1299 }
1300
1301 @@ -139,7 +142,7 @@ function twentyfourteen_sanitize_layout( $layout ) {
1302 * @since Twenty Fourteen 1.0
1303 */
1304 function twentyfourteen_customize_preview_js() {
1305 - wp_enqueue_script( 'twentyfourteen_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20131205', true );
1306 + wp_enqueue_script( 'twentyfourteen_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20141015', true );
1307 }
1308 add_action( 'customize_preview_init', 'twentyfourteen_customize_preview_js' );
1309
1310 @@ -159,8 +162,11 @@ function twentyfourteen_contextual_help() {
1311 'title' => __( 'Twenty Fourteen', 'twentyfourteen' ),
1312 'content' =>
1313 '<ul>' .
1314 + /* translators: 1: Featured tag editor URL, 2: Post editor URL, 3: Customizer URL, 4: Post editor URL. */
1315 '<li>' . sprintf( __( 'The home page features your choice of up to 6 posts prominently displayed in a grid or slider, controlled by a <a href="%1$s">tag</a>; you can change the tag and layout in <a href="%2$s">Appearance &rarr; Customize</a>. If no posts match the tag, <a href="%3$s">sticky posts</a> will be displayed instead.', 'twentyfourteen' ), esc_url( add_query_arg( 'tag', _x( 'featured', 'featured content default tag slug', 'twentyfourteen' ), admin_url( 'edit.php' ) ) ), admin_url( 'customize.php' ), admin_url( 'edit.php?show_sticky=1' ) ) . '</li>' .
1316 + /* translators: %s: Featured images documentation URL. */
1317 '<li>' . sprintf( __( 'Enhance your site design by using <a href="%s">Featured Images</a> for posts you&rsquo;d like to stand out (also known as post thumbnails). This allows you to associate an image with your post without inserting it. Twenty Fourteen uses featured images for posts and pages&mdash;above the title&mdash;and in the Featured Content area on the home page.', 'twentyfourteen' ), 'https://codex.wordpress.org/Post_Thumbnails#Setting_a_Post_Thumbnail' ) . '</li>' .
1318 + /* translators: %s: Twenty Fourteen documentation URL. */
1319 '<li>' . sprintf( __( 'For an in-depth tutorial, and more tips and tricks, visit the <a href="%s">Twenty Fourteen documentation</a>.', 'twentyfourteen' ), 'https://codex.wordpress.org/Twenty_Fourteen' ) . '</li>' .
1320 '</ul>',
1321 )
1322
1323 diff --git a/themes/twentyfourteen/inc/featured-content.php b/themes/twentyfourteen/inc/featured-content.php
1324 index 23fb38d7..da8b76f7 100644
1325 --- a/themes/twentyfourteen/inc/featured-content.php
1326 +++ b/themes/twentyfourteen/inc/featured-content.php
1327 @@ -190,7 +190,7 @@ class Featured_Content {
1328 }
1329
1330 /**
1331 - * Delete featured content ids transient.
1332 + * Delete featured content IDs transient.
1333 *
1334 * Hooks in the "save_post" action.
1335 *
1336 @@ -233,7 +233,7 @@ class Featured_Content {
1337 return;
1338 }
1339
1340 - // We need to respect post ids already in the blacklist.
1341 + // We need to respect post IDs already in the exclude list.
1342 $post__not_in = $query->get( 'post__not_in' );
1343
1344 if ( ! empty( $post__not_in ) ) {
1345 @@ -292,7 +292,7 @@ class Featured_Content {
1346 }
1347
1348 // We only want to hide the featured tag.
1349 - if ( ! in_array( 'post_tag', $taxonomies ) ) {
1350 + if ( ! in_array( 'post_tag', $taxonomies, true ) ) {
1351 return $terms;
1352 }
1353
1354 @@ -302,7 +302,7 @@ class Featured_Content {
1355 }
1356
1357 // Bail if term objects are unavailable.
1358 - if ( 'all' != $args['fields'] ) {
1359 + if ( 'all' !== $args['fields'] ) {
1360 return $terms;
1361 }
1362
1363 @@ -339,7 +339,7 @@ class Featured_Content {
1364 }
1365
1366 // Make sure we are in the correct taxonomy.
1367 - if ( 'post_tag' != $taxonomy ) {
1368 + if ( 'post_tag' !== $taxonomy ) {
1369 return $terms;
1370 }
1371
1372 @@ -380,6 +380,7 @@ class Featured_Content {
1373 array(
1374 'title' => __( 'Featured Content', 'twentyfourteen' ),
1375 'description' => sprintf(
1376 + /* translators: 1: Featured tag editor URL, 2: Post editor URL. */
1377 __( 'Use a <a href="%1$s">tag</a> to feature your posts. If no posts match the tag, <a href="%2$s">sticky posts</a> will be displayed instead.', 'twentyfourteen' ),
1378 esc_url( add_query_arg( 'tag', _x( 'featured', 'featured content default tag slug', 'twentyfourteen' ), admin_url( 'edit.php' ) ) ),
1379 admin_url( 'edit.php?show_sticky=1' )
1380 @@ -433,7 +434,7 @@ class Featured_Content {
1381 * @since Twenty Fourteen 1.0
1382 */
1383 public static function enqueue_scripts() {
1384 - wp_enqueue_script( 'featured-content-suggest', get_template_directory_uri() . '/js/featured-content-admin.js', array( 'jquery', 'suggest' ), '20131022', true );
1385 + wp_enqueue_script( 'featured-content-suggest', get_template_directory_uri() . '/js/featured-content-admin.js', array( 'jquery', 'suggest' ), '20131205', true );
1386 }
1387
1388 /**
1389 @@ -465,7 +466,7 @@ class Featured_Content {
1390 $options = wp_parse_args( $saved, $defaults );
1391 $options = array_intersect_key( $options, $defaults );
1392
1393 - if ( 'all' != $key ) {
1394 + if ( 'all' !== $key ) {
1395 return isset( $options[ $key ] ) ? $options[ $key ] : false;
1396 }
1397
1398 @@ -507,7 +508,7 @@ class Featured_Content {
1399
1400 $output['hide-tag'] = isset( $input['hide-tag'] ) && $input['hide-tag'] ? 1 : 0;
1401
1402 - // Delete the featured post ids transient.
1403 + // Delete the featured post IDs transient.
1404 self::delete_transient();
1405
1406 return $output;
1407
1408 diff --git a/themes/twentyfourteen/inc/template-tags.php b/themes/twentyfourteen/inc/template-tags.php
1409 index f1e95294..09e7fbc6 100644
1410 --- a/themes/twentyfourteen/inc/template-tags.php
1411 +++ b/themes/twentyfourteen/inc/template-tags.php
1412 @@ -24,7 +24,7 @@ if ( ! function_exists( 'twentyfourteen_paging_nav' ) ) :
1413 return;
1414 }
1415
1416 - $paged = get_query_var( 'paged' ) ? intval( get_query_var( 'paged' ) ) : 1;
1417 + $paged = get_query_var( 'paged' ) ? (int) get_query_var( 'paged' ) : 1;
1418 $pagenum_link = html_entity_decode( get_pagenum_link() );
1419 $query_args = array();
1420 $url_parts = explode( '?', $pagenum_link );
1421 @@ -128,28 +128,29 @@ endif;
1422 *
1423 * @since Twenty Fourteen 1.0
1424 *
1425 - * @return boolean true if blog has more than 1 category
1426 + * @return bool true if blog has more than 1 category
1427 */
1428 function twentyfourteen_categorized_blog() {
1429 - if ( false === ( $all_the_cool_cats = get_transient( 'twentyfourteen_category_count' ) ) ) {
1430 - // Create an array of all the categories that are attached to posts
1431 + $all_the_cool_cats = get_transient( 'twentyfourteen_category_count' );
1432 + if ( false === $all_the_cool_cats ) {
1433 + // Create an array of all the categories that are attached to posts.
1434 $all_the_cool_cats = get_categories(
1435 array(
1436 'hide_empty' => 1,
1437 )
1438 );
1439
1440 - // Count the number of categories that are attached to the posts
1441 + // Count the number of categories that are attached to the posts.
1442 $all_the_cool_cats = count( $all_the_cool_cats );
1443
1444 set_transient( 'twentyfourteen_category_count', $all_the_cool_cats );
1445 }
1446
1447 if ( $all_the_cool_cats > 1 || is_preview() ) {
1448 - // This blog has more than 1 category so twentyfourteen_categorized_blog should return true
1449 + // This blog has more than 1 category so twentyfourteen_categorized_blog() should return true.
1450 return true;
1451 } else {
1452 - // This blog has only 1 category so twentyfourteen_categorized_blog should return false
1453 + // This blog has only 1 category so twentyfourteen_categorized_blog() should return false.
1454 return false;
1455 }
1456 }
1457 @@ -207,7 +208,7 @@ if ( ! function_exists( 'twentyfourteen_post_thumbnail' ) ) :
1458 </a>
1459
1460 <?php
1461 - endif; // End is_singular()
1462 + endif; // End is_singular().
1463 }
1464 endif;
1465
1466 @@ -225,7 +226,7 @@ if ( ! function_exists( 'twentyfourteen_excerpt_more' ) && ! is_admin() ) :
1467 $link = sprintf(
1468 '<a href="%1$s" class="more-link">%2$s</a>',
1469 esc_url( get_permalink( get_the_ID() ) ),
1470 - /* translators: %s: Name of current post */
1471 + /* translators: %s: Post title. */
1472 sprintf( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ), '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span>' )
1473 );
1474 return ' &hellip; ' . $link;
1475 @@ -237,7 +238,7 @@ if ( ! function_exists( 'wp_body_open' ) ) :
1476 /**
1477 * Fire the wp_body_open action.
1478 *
1479 - * Added for backwards compatibility to support pre 5.2.0 WordPress versions.
1480 + * Added for backward compatibility to support pre-5.2.0 WordPress versions.
1481 *
1482 * @since Twenty Fourteen 2.7
1483 */
1484
1485 diff --git a/themes/twentyfourteen/inc/widgets.php b/themes/twentyfourteen/inc/widgets.php
1486 index 0b99fe2a..d8d15c2b 100644
1487 --- a/themes/twentyfourteen/inc/widgets.php
1488 +++ b/themes/twentyfourteen/inc/widgets.php
1489 @@ -4,7 +4,7 @@
1490 *
1491 * Displays posts from Aside, Quote, Video, Audio, Image, Gallery, and Link formats.
1492 *
1493 - * @link https://codex.wordpress.org/Widgets_API#Developing_Widgets
1494 + * @link https://developer.wordpress.org/themes/functionality/widgets/#developing-widgets
1495 *
1496 * @package WordPress
1497 * @subpackage Twenty_Fourteen
1498 @@ -71,7 +71,11 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget {
1499 * @param array $instance An array of settings for this widget instance.
1500 */
1501 public function widget( $args, $instance ) {
1502 - $format = isset( $instance['format'] ) && in_array( $instance['format'], $this->formats ) ? $instance['format'] : 'aside';
1503 + $format = isset( $instance['format'] ) ? $instance['format'] : '';
1504 +
1505 + if ( ! $format || ! in_array( $format, $this->formats, true ) ) {
1506 + $format = 'aside';
1507 + }
1508
1509 switch ( $format ) {
1510 case 'image':
1511 @@ -105,8 +109,9 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget {
1512 break;
1513 }
1514
1515 - $number = empty( $instance['number'] ) ? 2 : absint( $instance['number'] );
1516 - $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? $format_string : $instance['title'], $instance, $this->id_base );
1517 + $number = ! empty( $instance['number'] ) ? absint( $instance['number'] ) : 2;
1518 + $title = ! empty( $instance['title'] ) ? $instance['title'] : $format_string;
1519 + $title = apply_filters( 'widget_title', $title, $instance, $this->id_base );
1520
1521 $ephemera = new WP_Query(
1522 array(
1523 @@ -189,6 +194,7 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget {
1524 <p class="wp-caption-text">
1525 <?php
1526 printf(
1527 + /* translators: 1: Post permalink, 2: Number of images in the gallery. */
1528 _n( 'This gallery contains <a href="%1$s" rel="bookmark">%2$s photo</a>.', 'This gallery contains <a href="%1$s" rel="bookmark">%2$s photos</a>.', $total_images, 'twentyfourteen' ),
1529 esc_url( get_permalink() ),
1530 number_format_i18n( $total_images )
1531 @@ -233,7 +239,7 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget {
1532 </ol>
1533 <a class="post-format-archive-link" href="<?php echo esc_url( get_post_format_link( $format ) ); ?>">
1534 <?php
1535 - /* translators: used with More archives link */
1536 + /* translators: Used with More archives link. */
1537 printf( __( '%s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ), $format_string_more );
1538 ?>
1539 </a>
1540 @@ -264,7 +270,8 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget {
1541 function update( $new_instance, $instance ) {
1542 $instance['title'] = strip_tags( $new_instance['title'] );
1543 $instance['number'] = empty( $new_instance['number'] ) ? 2 : absint( $new_instance['number'] );
1544 - if ( in_array( $new_instance['format'], $this->formats ) ) {
1545 +
1546 + if ( in_array( $new_instance['format'], $this->formats, true ) ) {
1547 $instance['format'] = $new_instance['format'];
1548 }
1549
1550 @@ -279,9 +286,13 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget {
1551 * @param array $instance
1552 */
1553 function form( $instance ) {
1554 - $title = empty( $instance['title'] ) ? '' : esc_attr( $instance['title'] );
1555 - $number = empty( $instance['number'] ) ? 2 : absint( $instance['number'] );
1556 - $format = isset( $instance['format'] ) && in_array( $instance['format'], $this->formats ) ? $instance['format'] : 'aside';
1557 + $title = ! empty( $instance['title'] ) ? esc_attr( $instance['title'] ) : '';
1558 + $number = ! empty( $instance['number'] ) ? absint( $instance['number'] ) : 2;
1559 + $format = isset( $instance['format'] ) ? $instance['format'] : '';
1560 +
1561 + if ( ! $format || ! in_array( $format, $this->formats, true ) ) {
1562 + $format = 'aside';
1563 + }
1564 ?>
1565 <p><label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php _e( 'Title:', 'twentyfourteen' ); ?></label>
1566 <input id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" class="widefat" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>"></p>
1567
1568 diff --git a/themes/twentyfourteen/index.php b/themes/twentyfourteen/index.php
1569 index 7f6d04a0..5ed4c35a 100644
1570 --- a/themes/twentyfourteen/index.php
1571 +++ b/themes/twentyfourteen/index.php
1572 @@ -35,8 +35,8 @@ if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
1573 the_post();
1574
1575 /*
1576 - * Include the post format-specific template for the content. If you want to
1577 - * use this in a child theme, then include a file called content-___.php
1578 + * Include the post format-specific template for the content. If you want
1579 + * to use this in a child theme, then include a file called content-___.php
1580 * (where ___ is the post format) and that will be used instead.
1581 */
1582 get_template_part( 'content', get_post_format() );
1583
1584 diff --git a/themes/twentyfourteen/js/functions.js b/themes/twentyfourteen/js/functions.js
1585 index ac4629d7..557cc9f8 100644
1586 --- a/themes/twentyfourteen/js/functions.js
1587 +++ b/themes/twentyfourteen/js/functions.js
1588 @@ -1,5 +1,5 @@
1589 /**
1590 - * Theme functions file
1591 + * Theme functions file.
1592 *
1593 * Contains handlers for navigation, accessibility, header sizing
1594 * footer widgets and Featured Content slider
1595 @@ -126,6 +126,7 @@
1596 *
1597 * Uses jQuery's width() function to determine the size of the window and add
1598 * the default ARIA attributes for the menu toggle if it's visible.
1599 + *
1600 * @since Twenty Fourteen 1.4
1601 */
1602 function onResizeARIA() {
1603 @@ -146,12 +147,12 @@
1604 onResizeARIA();
1605 } );
1606
1607 - _window.load( function() {
1608 + _window.on( 'load', function() {
1609 var footerSidebar,
1610 isCustomizeSelectiveRefresh = ( 'undefined' !== typeof wp && wp.customize && wp.customize.selectiveRefresh );
1611
1612 // Arrange footer widgets vertically.
1613 - if ( $.isFunction( $.fn.masonry ) ) {
1614 + if ( typeof $.fn.masonry === 'function' ) {
1615 footerSidebar = $( '#footer-sidebar' );
1616 footerSidebar.masonry( {
1617 itemSelector: '.widget',
1618
1619 diff --git a/themes/twentyfourteen/page-templates/contributors.php b/themes/twentyfourteen/page-templates/contributors.php
1620 index 635a259c..7756149e 100644
1621 --- a/themes/twentyfourteen/page-templates/contributors.php
1622 +++ b/themes/twentyfourteen/page-templates/contributors.php
1623 @@ -21,7 +21,7 @@ if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
1624 <div id="primary" class="content-area">
1625 <div id="content" class="site-content" role="main">
1626 <?php
1627 - // Start the Loop.
1628 + // Start the Loop.
1629 while ( have_posts() ) :
1630 the_post();
1631 ?>
1632
1633 diff --git a/themes/twentyfourteen/page-templates/full-width.php b/themes/twentyfourteen/page-templates/full-width.php
1634 index ea5fa588..b75ac888 100644
1635 --- a/themes/twentyfourteen/page-templates/full-width.php
1636 +++ b/themes/twentyfourteen/page-templates/full-width.php
1637 @@ -21,7 +21,7 @@ if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
1638 <div id="primary" class="content-area">
1639 <div id="content" class="site-content" role="main">
1640 <?php
1641 - // Start the Loop.
1642 + // Start the Loop.
1643 while ( have_posts() ) :
1644 the_post();
1645
1646
1647 diff --git a/themes/twentyfourteen/page.php b/themes/twentyfourteen/page.php
1648 index bd033aeb..6ff35be7 100644
1649 --- a/themes/twentyfourteen/page.php
1650 +++ b/themes/twentyfourteen/page.php
1651 @@ -25,7 +25,7 @@ if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
1652 <div id="content" class="site-content" role="main">
1653
1654 <?php
1655 - // Start the Loop.
1656 + // Start the Loop.
1657 while ( have_posts() ) :
1658 the_post();
1659
1660
1661 diff --git a/themes/twentyfourteen/readme.txt b/themes/twentyfourteen/readme.txt
1662 index 412c23dc..b4bc3c0a 100644
1663 --- a/themes/twentyfourteen/readme.txt
1664 +++ b/themes/twentyfourteen/readme.txt
1665 @@ -1,12 +1,11 @@
1666 === Twenty Fourteen ===
1667 Contributors: wordpressdotorg
1668 Requires at least: WordPress 3.6
1669 -Tested up to: WordPress 5.0
1670 -Requires PHP: 5.2.4
1671 -Stable tag: 2.7
1672 +Tested up to: 5.8
1673 +Stable tag: 3.2
1674 License: GPLv2 or later
1675 License URI: http://www.gnu.org/licenses/gpl-2.0.html
1676 -Tags: blog, news, two-columns, three-columns, left-sidebar, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
1677 +Tags: blog, news, two-columns, three-columns, left-sidebar, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready, block-patterns
1678
1679 == Description ==
1680 In 2014, our default theme lets you create a responsive magazine website with a sleek, modern design. Feature your favorite homepage content in either a grid or a slider. Use the three widget areas to customize your website, and change your content's layout with a full-width page template and a contributor page to show off your authors. Creating a magazine website with WordPress has never been easier.
1681 @@ -23,7 +22,7 @@ For more information about Twenty Fourteen please go to https://codex.wordpress.
1682
1683 == Copyright ==
1684
1685 -Twenty Fourteen WordPress Theme, Copyright 2013-2018 WordPress.org & Automattic.com
1686 +Twenty Fourteen WordPress Theme, Copyright 2013-2021 WordPress.org & Automattic.com
1687 Twenty Fourteen is Distributed under the terms of the GNU GPL
1688
1689 This program is free software: you can redistribute it and/or modify
1690 @@ -49,8 +48,41 @@ Genericons icon font, Copyright 2013-2017 Automattic.com
1691 License: GNU GPL, Version 2 (or later)
1692 Source: http://www.genericons.com
1693
1694 +Photos from Stocksnap, used in block patterns.
1695 +License: CC0
1696 +Source: https://stocksnap.io/photo/fog-mountain-ZKN6UKFKEO
1697 + https://stocksnap.io/photo/ocean-beach-AEZJXB5LL5
1698 + https://stocksnap.io/photo/architecture-building-BIL5D73PRC
1699 + https://stocksnap.io/photo/sea-ocean-G5GBM522C6
1700 + https://stocksnap.io/photo/guy-man-7CFLDIWXK5
1701 +
1702 == Changelog ==
1703
1704 += 3.2 =
1705 +* Released: July 20, 2021
1706 +
1707 +https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_3.2
1708 +
1709 += 3.1 =
1710 +* Released: March 9, 2021
1711 +
1712 +https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_3.1
1713 +
1714 += 3.0 =
1715 +* Released: December 8, 2020
1716 +
1717 +https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_3.0
1718 +
1719 += 2.9 =
1720 +* Released: August 11, 2020
1721 +
1722 +https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_2.9
1723 +
1724 += 2.8 =
1725 +* Released: March 31, 2020
1726 +
1727 +https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_2.8
1728 +
1729 = 2.7 =
1730 * Released: May 7, 2019
1731
1732
1733 diff --git a/themes/twentyfourteen/rtl.css b/themes/twentyfourteen/rtl.css
1734 index 58d97579..128f64fc 100644
1735 --- a/themes/twentyfourteen/rtl.css
1736 +++ b/themes/twentyfourteen/rtl.css
1737 @@ -166,6 +166,10 @@ td {
1738 padding-left: 7px;
1739 }
1740
1741 +.entry-content p span[id^="more-"] {
1742 + float: right;
1743 +}
1744 +
1745
1746 /**
1747 * 6.5 Galleries
1748 @@ -317,11 +321,14 @@ td {
1749 text-align: right;
1750 }
1751
1752 +.widget_calendar .wp-calendar-nav-prev,
1753 .widget_calendar #prev {
1754 padding-right: 5px;
1755 padding-left: 0;
1756 + text-align: right;
1757 }
1758
1759 +.widget_calendar .wp-calendar-nav-next,
1760 .widget_calendar #next {
1761 padding-right: 0;
1762 padding-left: 5px;
1763
1764 diff --git a/themes/twentyfourteen/search.php b/themes/twentyfourteen/search.php
1765 index 6b20315a..80dc4d1e 100644
1766 --- a/themes/twentyfourteen/search.php
1767 +++ b/themes/twentyfourteen/search.php
1768 @@ -15,17 +15,22 @@ get_header(); ?>
1769 <?php if ( have_posts() ) : ?>
1770
1771 <header class="page-header">
1772 - <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyfourteen' ), get_search_query() ); ?></h1>
1773 + <h1 class="page-title">
1774 + <?php
1775 + /* translators: %s: Search query. */
1776 + printf( __( 'Search Results for: %s', 'twentyfourteen' ), get_search_query() );
1777 + ?>
1778 + </h1>
1779 </header><!-- .page-header -->
1780
1781 <?php
1782 - // Start the Loop.
1783 + // Start the Loop.
1784 while ( have_posts() ) :
1785 the_post();
1786
1787 /*
1788 - * Include the post format-specific template for the content. If you want to
1789 - * use this in a child theme, then include a file called content-___.php
1790 + * Include the post format-specific template for the content. If you want
1791 + * to use this in a child theme, then include a file called content-___.php
1792 * (where ___ is the post format) and that will be used instead.
1793 */
1794 get_template_part( 'content', get_post_format() );
1795
1796 diff --git a/themes/twentyfourteen/single.php b/themes/twentyfourteen/single.php
1797 index 1940c732..352ab377 100644
1798 --- a/themes/twentyfourteen/single.php
1799 +++ b/themes/twentyfourteen/single.php
1800 @@ -12,13 +12,13 @@ get_header(); ?>
1801 <div id="primary" class="content-area">
1802 <div id="content" class="site-content" role="main">
1803 <?php
1804 - // Start the Loop.
1805 + // Start the Loop.
1806 while ( have_posts() ) :
1807 the_post();
1808
1809 /*
1810 - * Include the post format-specific template for the content. If you want to
1811 - * use this in a child theme, then include a file called content-___.php
1812 + * Include the post format-specific template for the content. If you want
1813 + * to use this in a child theme, then include a file called content-___.php
1814 * (where ___ is the post format) and that will be used instead.
1815 */
1816 get_template_part( 'content', get_post_format() );
1817
1818 diff --git a/themes/twentyfourteen/style.css b/themes/twentyfourteen/style.css
1819 index 85133472..b09102a3 100644
1820 --- a/themes/twentyfourteen/style.css
1821 +++ b/themes/twentyfourteen/style.css
1822 @@ -4,10 +4,11 @@ Theme URI: https://wordpress.org/themes/twentyfourteen/
1823 Author: the WordPress team
1824 Author URI: https://wordpress.org/
1825 Description: In 2014, our default theme lets you create a responsive magazine website with a sleek, modern design. Feature your favorite homepage content in either a grid or a slider. Use the three widget areas to customize your website, and change your content's layout with a full-width page template and a contributor page to show off your authors. Creating a magazine website with WordPress has never been easier.
1826 -Version: 2.7
1827 +Version: 3.2
1828 +Requires PHP: 5.2.4
1829 License: GNU General Public License v2 or later
1830 License URI: http://www.gnu.org/licenses/gpl-2.0.html
1831 -Tags: blog, news, two-columns, three-columns, left-sidebar, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
1832 +Tags: blog, news, two-columns, three-columns, left-sidebar, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready, block-patterns
1833 Text Domain: twentyfourteen
1834
1835 This theme, like WordPress, is licensed under the GPL.
1836 @@ -762,10 +763,38 @@ div.wp-caption.alignright .wp-caption-text {
1837 .contributor-info:after,
1838 .search-box:before,
1839 .search-box:after,
1840 -[class*="content"]:before,
1841 -[class*="content"]:after,
1842 -[class*="site"]:before,
1843 -[class*="site"]:after {
1844 +.site:before,
1845 +.site:after,
1846 +.site-header:before,
1847 +.site-header:after,
1848 +.site-description:before,
1849 +.site-description:after,
1850 +.site-navigation:before,
1851 +.site-navigation:after,
1852 +.site-main:before,
1853 +.site-main:after,
1854 +.main-content:before,
1855 +.main-content:after,
1856 +.featured-content:before,
1857 +.featured-content:after,
1858 +.featured-content-inner:before,
1859 +.featured-content-inner:after,
1860 +.content-area:before,
1861 +.content-area:after,
1862 +.site-content:before,
1863 +.site-content:after,
1864 +.page-content:before,
1865 +.page-content:after,
1866 +.entry-content:before,
1867 +.entry-content:after,
1868 +.comment-content:before,
1869 +.comment-content:after,
1870 +.content-sidebar:before,
1871 +.content-sidebar:after,
1872 +.site-footer:before,
1873 +.site-footer:after,
1874 +.site-info:before,
1875 +.site-info:after {
1876 content: "";
1877 display: table;
1878 }
1879 @@ -776,8 +805,22 @@ div.wp-caption.alignright .wp-caption-text {
1880 .slider-direction-nav:after,
1881 .contributor-info:after,
1882 .search-box:after,
1883 -[class*="content"]:after,
1884 -[class*="site"]:after {
1885 +.site:after,
1886 +.site-header:after,
1887 +.site-description:after,
1888 +.site-navigation:after,
1889 +.site-main:after,
1890 +.main-content:after,
1891 +.featured-content:after,
1892 +.featured-content-inner:after,
1893 +.content-area:after,
1894 +.site-content:after,
1895 +.page-content:after,
1896 +.entry-content:after,
1897 +.comment-content:after,
1898 +.content-sidebar:after,
1899 +.site-footer:after,
1900 +.site-info:after {
1901 clear: both;
1902 }
1903
1904 @@ -1261,6 +1304,10 @@ a.post-thumbnail:hover {
1905 padding: 12px 10px 0;
1906 }
1907
1908 +.site-content .entry-content {
1909 + padding-top: 22px;
1910 +}
1911 +
1912 .page .entry-content {
1913 padding-top: 0;
1914 }
1915 @@ -1345,6 +1392,34 @@ a.post-thumbnail:hover {
1916 white-space: nowrap;
1917 }
1918
1919 +.entry-content span[id^="more-"] {
1920 + display: block;
1921 + padding-top: 52px;
1922 + margin-top: -76px;
1923 +}
1924 +
1925 +.admin-bar .entry-content span[id^="more-"] {
1926 + padding-top: 84px;
1927 + margin-top: -108px;
1928 +}
1929 +
1930 +.entry-content span[id^="more-"] + blockquote,
1931 +.entry-content span[id^="more-"] + div,
1932 +.entry-content span[id^="more-"] + figure,
1933 +.entry-content span[id^="more-"] + hr,
1934 +.entry-content span[id^="more-"] + ol,
1935 +.entry-content span[id^="more-"] + ul,
1936 +.entry-content span[id^="more-"] + p,
1937 +.entry-content span[id^="more-"] + pre {
1938 + margin-top: 24px;
1939 +}
1940 +
1941 +.entry-content p span[id^="more-"] {
1942 + width: 1px;
1943 + height: 24px;
1944 + float: left;
1945 +}
1946 +
1947 /* Mediaelements */
1948
1949 .hentry .mejs-container,
1950 @@ -2488,10 +2563,23 @@ a.post-thumbnail:hover {
1951 color: #fff;
1952 }
1953
1954 +.widget_calendar .wp-calendar-nav {
1955 + display: table;
1956 + width: 100%;
1957 + line-height: 2;
1958 +}
1959 +
1960 +.widget_calendar .wp-calendar-nav span {
1961 + display: table-cell;
1962 +}
1963 +
1964 +.widget_calendar .wp-calendar-nav-prev,
1965 .widget_calendar #prev {
1966 padding-left: 5px;
1967 + text-align: left;
1968 }
1969
1970 +.widget_calendar .wp-calendar-nav-next,
1971 .widget_calendar #next {
1972 padding-right: 5px;
1973 text-align: right;
1974
1975 diff --git a/themes/twentyfourteen/tag.php b/themes/twentyfourteen/tag.php
1976 index 3a3a3c5e..55099d15 100644
1977 --- a/themes/twentyfourteen/tag.php
1978 +++ b/themes/twentyfourteen/tag.php
1979 @@ -19,7 +19,12 @@ get_header(); ?>
1980 <?php if ( have_posts() ) : ?>
1981
1982 <header class="archive-header">
1983 - <h1 class="archive-title"><?php printf( __( 'Tag Archives: %s', 'twentyfourteen' ), single_tag_title( '', false ) ); ?></h1>
1984 + <h1 class="archive-title">
1985 + <?php
1986 + /* translators: %s: Tag title. */
1987 + printf( __( 'Tag Archives: %s', 'twentyfourteen' ), single_tag_title( '', false ) );
1988 + ?>
1989 + </h1>
1990
1991 <?php
1992 // Show an optional term description.
1993 @@ -31,13 +36,13 @@ get_header(); ?>
1994 </header><!-- .archive-header -->
1995
1996 <?php
1997 - // Start the Loop.
1998 + // Start the Loop.
1999 while ( have_posts() ) :
2000 the_post();
2001
2002 /*
2003 - * Include the post format-specific template for the content. If you want to
2004 - * use this in a child theme, then include a file called content-___.php
2005 + * Include the post format-specific template for the content. If you want
2006 + * to use this in a child theme, then include a file called content-___.php
2007 * (where ___ is the post format) and that will be used instead.
2008 */
2009 get_template_part( 'content', get_post_format() );
2010
2011 diff --git a/themes/twentyfourteen/taxonomy-post_format.php b/themes/twentyfourteen/taxonomy-post_format.php
2012 index 243e8f0c..9cf9083c 100644
2013 --- a/themes/twentyfourteen/taxonomy-post_format.php
2014 +++ b/themes/twentyfourteen/taxonomy-post_format.php
2015 @@ -56,13 +56,13 @@ get_header(); ?>
2016 </header><!-- .archive-header -->
2017
2018 <?php
2019 - // Start the Loop.
2020 + // Start the Loop.
2021 while ( have_posts() ) :
2022 the_post();
2023
2024 /*
2025 - * Include the post format-specific template for the content. If you want to
2026 - * use this in a child theme, then include a file called content-___.php
2027 + * Include the post format-specific template for the content. If you want
2028 + * to use this in a child theme, then include a file called content-___.php
2029 * (where ___ is the post format) and that will be used instead.
2030 */
2031 get_template_part( 'content', get_post_format() );
2032
2033 diff --git a/themes/twentysixteen/archive.php b/themes/twentysixteen/archive.php
2034 index 079730f3..68a97fc5 100644
2035 --- a/themes/twentysixteen/archive.php
2036 +++ b/themes/twentysixteen/archive.php
2037 @@ -31,14 +31,15 @@ get_header(); ?>
2038 </header><!-- .page-header -->
2039
2040 <?php
2041 - // Start the Loop.
2042 + // Start the loop.
2043 while ( have_posts() ) :
2044 the_post();
2045
2046 /*
2047 * Include the Post-Format-specific template for the content.
2048 * If you want to override this in a child theme, then include a file
2049 - * called content-___.php (where ___ is the Post Format name) and that will be used instead.
2050 + * called content-___.php (where ___ is the Post Format name) and that
2051 + * will be used instead.
2052 */
2053 get_template_part( 'template-parts/content', get_post_format() );
2054
2055
2056 diff --git a/themes/twentysixteen/comments.php b/themes/twentysixteen/comments.php
2057 index a0a29d57..086ecbe0 100644
2058 --- a/themes/twentysixteen/comments.php
2059 +++ b/themes/twentysixteen/comments.php
2060 @@ -27,11 +27,11 @@ if ( post_password_required() ) {
2061 <?php
2062 $comments_number = get_comments_number();
2063 if ( '1' === $comments_number ) {
2064 - /* translators: %s: post title */
2065 + /* translators: %s: Post title. */
2066 printf( _x( 'One thought on &ldquo;%s&rdquo;', 'comments title', 'twentysixteen' ), get_the_title() );
2067 } else {
2068 printf(
2069 - /* translators: 1: number of comments, 2: post title */
2070 + /* translators: 1: Number of comments, 2: Post title. */
2071 _nx(
2072 '%1$s thought on &ldquo;%2$s&rdquo;',
2073 '%1$s thoughts on &ldquo;%2$s&rdquo;',
2074
2075 diff --git a/themes/twentysixteen/css/blocks.css b/themes/twentysixteen/css/blocks.css
2076 index 9ddea807..ba747b44 100644
2077 --- a/themes/twentysixteen/css/blocks.css
2078 +++ b/themes/twentysixteen/css/blocks.css
2079 @@ -145,12 +145,14 @@ p.has-drop-cap:not(:focus)::first-letter {
2080 .wp-block-code {
2081 border: 0;
2082 font-family: Inconsolata, monospace;
2083 - font-size: 16px;
2084 - font-size: 1rem;
2085 line-height: 1.75;
2086 padding: 0;
2087 }
2088
2089 +.wp-block-code code {
2090 + font-size: inherit;
2091 +}
2092 +
2093 /* Pullquote */
2094
2095 .wp-block-pullquote {
2096 @@ -158,17 +160,19 @@ p.has-drop-cap:not(:focus)::first-letter {
2097 }
2098
2099 .wp-block-pullquote blockquote {
2100 - border-left: 0;
2101 + color: #686868;
2102 + border-left: 4px solid #1a1a1a;
2103 margin: 0;
2104 - padding: 0;
2105 + padding: 0 0 0 24px;
2106 }
2107
2108 .rtl .wp-block-pullquote blockquote {
2109 - border-right: 0;
2110 + border-left: none;
2111 + border-right: 4px solid #1a1a1a;
2112 + padding: 0 24px 0 0;
2113 }
2114
2115 .wp-block-pullquote p {
2116 - color: #686868;
2117 font-size: 19px;
2118 font-size: 1.1875rem;
2119 }
2120 @@ -198,7 +202,7 @@ p.has-drop-cap:not(:focus)::first-letter {
2121 .wp-block-table {
2122 border-collapse: separate;
2123 border-spacing: 0;
2124 - border-width: 1px 0 0 1px;
2125 + border-width: 0;
2126 margin: 0 0 1.75em;
2127 table-layout: fixed;
2128 width: 100%;
2129 @@ -323,7 +327,7 @@ hr.wp-block-separator {
2130 line-height: 1.6153846154;
2131 }
2132
2133 -.wp-block-latest-comments .wp-block-latest-comments__comment {
2134 +.wp-block-latest-comments .wp-block-latest-comments__comment:not(:first-child) {
2135 border-top: 1px solid #d1d1d1;
2136 margin-bottom: 0;
2137 padding: 1.75em 0;
2138 @@ -333,6 +337,21 @@ hr.wp-block-separator {
2139 margin-bottom: 0;
2140 }
2141
2142 +/* Query Loop & Post Template */
2143 +
2144 +.wp-block-query .wp-block-post-template {
2145 + margin-left: 0;
2146 +}
2147 +
2148 +.wp-block-query .wp-block-post-template li {
2149 + margin-bottom: 0;
2150 + padding: 1.5em 0 0;
2151 +}
2152 +
2153 +.wp-block-query .wp-block-post-template li:not(:first-child) {
2154 + border-top: 1px solid #d1d1d1;
2155 +}
2156 +
2157 /*--------------------------------------------------------------
2158 6.0 Blocks - Colors
2159 --------------------------------------------------------------*/
2160
2161 diff --git a/themes/twentysixteen/css/editor-blocks.css b/themes/twentysixteen/css/editor-blocks.css
2162 index 4bf8cbf5..9e4c7760 100644
2163 --- a/themes/twentysixteen/css/editor-blocks.css
2164 +++ b/themes/twentysixteen/css/editor-blocks.css
2165 @@ -12,6 +12,7 @@ Description: Used to style blocks in the editor.
2166 4.0 Blocks - Formatting
2167 5.0 Blocks - Layout Elements
2168 6.0 Blocks - Widgets
2169 +7.0 Blocks - Colors
2170 --------------------------------------------------------------*/
2171
2172 /*--------------------------------------------------------------
2173 @@ -196,7 +197,6 @@ Description: Used to style blocks in the editor.
2174 .edit-post-visual-editor ol,
2175 .editor-block-list__block ol,
2176 .block-library-list ol {
2177 - margin: 0 0 1.75em 1.25em;
2178 padding: 0;
2179 }
2180
2181 @@ -230,22 +230,22 @@ Description: Used to style blocks in the editor.
2182 margin-bottom: 0;
2183 }
2184
2185 -.rtl .edit-post-visual-editor ul:not(.wp-block-gallery),
2186 -.rtl .editor-block-list__block ul:not(.wp-block-gallery),
2187 -.rtl .block-library-list ul,
2188 -.rtl .edit-post-visual-editor ol,
2189 -.rtl .editor-block-list__block ol,
2190 -.rtl .block-library-list ol {
2191 +.rtl .editor-styles-wrapper ul ul,
2192 +.rtl .editor-styles-wrapper ol ol,
2193 +.rtl .editor-styles-wrapper ul ol,
2194 +.rtl .editor-styles-wrapper ol ul {
2195 margin-left: 0;
2196 - margin-right: 1.25em;
2197 - padding: 0;
2198 + margin-right: 1.5em;
2199 }
2200
2201 -.rtl .edit-post-visual-editor ol,
2202 -.rtl .editor-block-list__block ol,
2203 -.rtl .block-library-list ol {
2204 - margin-left: 1.5em;
2205 - margin-right: 1.5em;
2206 +.wp-block-freeform.block-library-rich-text__tinymce ul,
2207 +.wp-block-freeform.block-library-rich-text__tinymce ol {
2208 + padding-left: 1.5em;
2209 +}
2210 +
2211 +.rtl .wp-block-freeform.block-library-rich-text__tinymce ul,
2212 +.rtl .wp-block-freeform.block-library-rich-text__tinymce ol {
2213 + padding: 0;
2214 }
2215
2216 /* Quotes */
2217 @@ -365,15 +365,6 @@ Description: Used to style blocks in the editor.
2218 width: -webkit-calc(50% - 0.736842105em);
2219 width: calc(50% - 0.736842105em);
2220 }
2221 -
2222 - .wp-block-quote:not(.alignleft):not(.alignright) {
2223 - margin-left: -1.473684211em;
2224 - }
2225 -
2226 - .rtl .wp-block-quote:not(.alignleft):not(.alignright) {
2227 - margin-left: 0;
2228 - margin-right: -1.473684211em;
2229 - }
2230 }
2231
2232 @media screen and (min-width: 80em) {
2233 @@ -410,9 +401,10 @@ Description: Used to style blocks in the editor.
2234
2235 /* Code */
2236
2237 -.wp-block-code {
2238 +.editor-styles-wrapper .wp-block-code {
2239 border: 0;
2240 padding: 0.125em 0.25em;
2241 + background-color: #d1d1d1;
2242 }
2243
2244 /* Classic */
2245 @@ -505,7 +497,6 @@ Description: Used to style blocks in the editor.
2246 }
2247
2248 .wp-block-pullquote blockquote > .editor-rich-text p {
2249 - color: #686868;
2250 font-size: 19px;
2251 font-size: 1.1875rem;
2252 }
2253 @@ -536,6 +527,12 @@ Description: Used to style blocks in the editor.
2254 text-align: right;
2255 }
2256
2257 +/* Verse */
2258 +
2259 +.editor-styles-wrapper .wp-block-verse {
2260 + font-family: inherit;
2261 +}
2262 +
2263 /*--------------------------------------------------------------
2264 5.0 Blocks - Layout Elements
2265 --------------------------------------------------------------*/
2266 @@ -615,3 +612,103 @@ Description: Used to style blocks in the editor.
2267 .edit-post-visual-editor .wp-block-latest-posts.is-grid li {
2268 margin-bottom: 16px;
2269 }
2270 +
2271 +/*--------------------------------------------------------------
2272 +7.0 Blocks - Colors
2273 +--------------------------------------------------------------*/
2274 +
2275 +:root .editor-styles-wrapper .has-dark-gray-color {
2276 + color: #1a1a1a;
2277 +}
2278 +
2279 +:root .editor-styles-wrapper .has-dark-gray-background-color {
2280 + background-color: #1a1a1a;
2281 +}
2282 +
2283 +:root .editor-styles-wrapper .has-medium-gray-color {
2284 + color: #686868;
2285 +}
2286 +
2287 +:root .editor-styles-wrapper .has-medium-gray-background-color {
2288 + background-color: #686868;
2289 +}
2290 +
2291 +:root .editor-styles-wrapper .has-light-gray-color {
2292 + color: #e5e5e5;
2293 +}
2294 +
2295 +:root .editor-styles-wrapper .has-light-gray-background-color {
2296 + background-color: #e5e5e5;
2297 +}
2298 +
2299 +:root .editor-styles-wrapper .has-white-color {
2300 + color: #fff;
2301 +}
2302 +
2303 +:root .editor-styles-wrapper .has-white-background-color {
2304 + background-color: #fff;
2305 +}
2306 +
2307 +:root .editor-styles-wrapper .has-blue-gray-color {
2308 + color: #4d545c;
2309 +}
2310 +
2311 +:root .editor-styles-wrapper .has-blue-gray-background-color {
2312 + background-color: #4d545c;
2313 +}
2314 +
2315 +:root .editor-styles-wrapper .has-bright-blue-color {
2316 + color: #007acc;
2317 +}
2318 +
2319 +:root .editor-styles-wrapper .has-bright-blue-background-color {
2320 + background-color: #007acc;
2321 +}
2322 +
2323 +:root .editor-styles-wrapper .has-light-blue-color {
2324 + color: #9adffd;
2325 +}
2326 +
2327 +:root .editor-styles-wrapper .has-light-blue-background-color {
2328 + background-color: #9adffd;
2329 +}
2330 +
2331 +:root .editor-styles-wrapper .has-dark-brown-color {
2332 + color: #402b30;
2333 +}
2334 +
2335 +:root .editor-styles-wrapper .has-dark-brown-background-color {
2336 + background-color: #402b30;
2337 +}
2338 +
2339 +:root .editor-styles-wrapper .has-medium-brown-color {
2340 + color: #774e24;
2341 +}
2342 +
2343 +:root .editor-styles-wrapper .has-medium-brown-background-color {
2344 + background-color: #774e24;
2345 +}
2346 +
2347 +:root .editor-styles-wrapper .has-dark-red-color {
2348 + color: #640c1f;
2349 +}
2350 +
2351 +:root .editor-styles-wrapper .has-dark-red-background-color {
2352 + background-color: #640c1f;
2353 +}
2354 +
2355 +:root .editor-styles-wrapper .has-bright-red-color {
2356 + color: #ff675f;
2357 +}
2358 +
2359 +:root .editor-styles-wrapper .has-bright-red-background-color {
2360 + background-color: #ff675f;
2361 +}
2362 +
2363 +:root .editor-styles-wrapper .has-yellow-color {
2364 + color: #ffef8e;
2365 +}
2366 +
2367 +:root .editor-styles-wrapper .has-yellow-background-color {
2368 + background-color: #ffef8e;
2369 +}
2370
2371 diff --git a/themes/twentysixteen/css/editor-style.css b/themes/twentysixteen/css/editor-style.css
2372 index ed48ce7f..e1b3445e 100644
2373 --- a/themes/twentysixteen/css/editor-style.css
2374 +++ b/themes/twentysixteen/css/editor-style.css
2375 @@ -28,7 +28,7 @@ body {
2376 font-size: 16px;
2377 font-weight: 400;
2378 line-height: 1.75;
2379 - margin: 20px 40px;
2380 + margin: auto 20px;
2381 max-width: 600px;
2382 vertical-align: baseline;
2383 }
2384 @@ -120,10 +120,6 @@ blockquote {
2385 padding: 0 0 0 24px;
2386 }
2387
2388 -blockquote:not(.alignleft):not(.alignright) {
2389 - margin-left: -28px;
2390 -}
2391 -
2392 blockquote blockquote:not(.alignleft):not(.alignright) {
2393 margin-left: 0;
2394 }
2395 @@ -188,7 +184,6 @@ pre {
2396 font-size: 16px;
2397 line-height: 1.3125;
2398 margin: 0 0 28px;
2399 - max-width: 100%;
2400 overflow: auto;
2401 padding: 14px;
2402 white-space: pre;
2403 @@ -519,7 +514,6 @@ fieldset {
2404 }
2405
2406 .rtl blockquote:not(.alignleft):not(.alignright) {
2407 - margin-right: -28px;
2408 padding: 0 24px 0 0;
2409 }
2410
2411
2412 diff --git a/themes/twentysixteen/footer.php b/themes/twentysixteen/footer.php
2413 index 5fff3bd9..9f1621ff 100644
2414 --- a/themes/twentysixteen/footer.php
2415 +++ b/themes/twentysixteen/footer.php
2416 @@ -58,7 +58,10 @@
2417 }
2418 ?>
2419 <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentysixteen' ) ); ?>" class="imprint">
2420 - <?php printf( __( 'Proudly powered by %s', 'twentysixteen' ), 'WordPress' ); ?>
2421 + <?php
2422 + /* translators: %s: WordPress */
2423 + printf( __( 'Proudly powered by %s', 'twentysixteen' ), 'WordPress' );
2424 + ?>
2425 </a>
2426 </div><!-- .site-info -->
2427 </footer><!-- .site-footer -->
2428
2429 diff --git a/themes/twentysixteen/functions.php b/themes/twentysixteen/functions.php
2430 index 68e4a5ef..b5b7c207 100644
2431 --- a/themes/twentysixteen/functions.php
2432 +++ b/themes/twentysixteen/functions.php
2433 @@ -11,14 +11,14 @@
2434 * functions.php file. The child theme's functions.php file is included before
2435 * the parent theme's file, so the child theme functions would be used.
2436 *
2437 - * @link https://codex.wordpress.org/Theme_Development
2438 + * @link https://developer.wordpress.org/themes/basics/theme-functions/
2439 * @link https://developer.wordpress.org/themes/advanced-topics/child-themes/
2440 *
2441 * Functions that are not pluggable (not wrapped in function_exists()) are
2442 * instead attached to a filter or action hook.
2443 *
2444 * For more information on hooks, actions, and filters,
2445 - * {@link https://codex.wordpress.org/Plugin_API}
2446 + * {@link https://developer.wordpress.org/plugins/}
2447 *
2448 * @package WordPress
2449 * @subpackage Twenty_Sixteen
2450 @@ -106,13 +106,16 @@ if ( ! function_exists( 'twentysixteen_setup' ) ) :
2451 'comment-list',
2452 'gallery',
2453 'caption',
2454 + 'script',
2455 + 'style',
2456 + 'navigation-widgets',
2457 )
2458 );
2459
2460 /*
2461 * Enable support for Post Formats.
2462 *
2463 - * See: https://codex.wordpress.org/Post_Formats
2464 + * See: https://wordpress.org/support/article/post-formats/
2465 */
2466 add_theme_support(
2467 'post-formats',
2468 @@ -213,8 +216,11 @@ if ( ! function_exists( 'twentysixteen_setup' ) ) :
2469
2470 // Indicate widget sidebars can use selective refresh in the Customizer.
2471 add_theme_support( 'customize-selective-refresh-widgets' );
2472 +
2473 + // Add support for custom line height controls.
2474 + add_theme_support( 'custom-line-height' );
2475 }
2476 -endif; // twentysixteen_setup
2477 +endif; // twentysixteen_setup()
2478 add_action( 'after_setup_theme', 'twentysixteen_setup' );
2479
2480 /**
2481 @@ -236,9 +242,9 @@ add_action( 'after_setup_theme', 'twentysixteen_content_width', 0 );
2482 *
2483 * @since Twenty Sixteen 1.6
2484 *
2485 - * @param array $urls URLs to print for resource hints.
2486 - * @param string $relation_type The relation type the URLs are printed.
2487 - * @return array $urls URLs to print for resource hints.
2488 + * @param array $urls URLs to print for resource hints.
2489 + * @param string $relation_type The relation type the URLs are printed.
2490 + * @return array URLs to print for resource hints.
2491 */
2492 function twentysixteen_resource_hints( $urls, $relation_type ) {
2493 if ( wp_style_is( 'twentysixteen-fonts', 'queue' ) && 'preconnect' === $relation_type ) {
2494 @@ -313,17 +319,26 @@ if ( ! function_exists( 'twentysixteen_fonts_url' ) ) :
2495 $fonts = array();
2496 $subsets = 'latin,latin-ext';
2497
2498 - /* translators: If there are characters in your language that are not supported by Merriweather, translate this to 'off'. Do not translate into your own language. */
2499 + /*
2500 + * translators: If there are characters in your language that are not supported
2501 + * by Merriweather, translate this to 'off'. Do not translate into your own language.
2502 + */
2503 if ( 'off' !== _x( 'on', 'Merriweather font: on or off', 'twentysixteen' ) ) {
2504 $fonts[] = 'Merriweather:400,700,900,400italic,700italic,900italic';
2505 }
2506
2507 - /* translators: If there are characters in your language that are not supported by Montserrat, translate this to 'off'. Do not translate into your own language. */
2508 + /*
2509 + * translators: If there are characters in your language that are not supported
2510 + * by Montserrat, translate this to 'off'. Do not translate into your own language.
2511 + */
2512 if ( 'off' !== _x( 'on', 'Montserrat font: on or off', 'twentysixteen' ) ) {
2513 $fonts[] = 'Montserrat:400,700';
2514 }
2515
2516 - /* translators: If there are characters in your language that are not supported by Inconsolata, translate this to 'off'. Do not translate into your own language. */
2517 + /*
2518 + * translators: If there are characters in your language that are not supported
2519 + * by Inconsolata, translate this to 'off'. Do not translate into your own language.
2520 + */
2521 if ( 'off' !== _x( 'on', 'Inconsolata font: on or off', 'twentysixteen' ) ) {
2522 $fonts[] = 'Inconsolata:400';
2523 }
2524 @@ -331,8 +346,9 @@ if ( ! function_exists( 'twentysixteen_fonts_url' ) ) :
2525 if ( $fonts ) {
2526 $fonts_url = add_query_arg(
2527 array(
2528 - 'family' => urlencode( implode( '|', $fonts ) ),
2529 - 'subset' => urlencode( $subsets ),
2530 + 'family' => urlencode( implode( '|', $fonts ) ),
2531 + 'subset' => urlencode( $subsets ),
2532 + 'display' => urlencode( 'fallback' ),
2533 ),
2534 'https://fonts.googleapis.com/css'
2535 );
2536 @@ -364,41 +380,41 @@ function twentysixteen_scripts() {
2537 wp_enqueue_style( 'twentysixteen-fonts', twentysixteen_fonts_url(), array(), null );
2538
2539 // Add Genericons, used in the main stylesheet.
2540 - wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.4.1' );
2541 + wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '20201208' );
2542
2543 // Theme stylesheet.
2544 - wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri() );
2545 + wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri(), array(), '20201208' );
2546
2547 // Theme block stylesheet.
2548 - wp_enqueue_style( 'twentysixteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentysixteen-style' ), '20181230' );
2549 + wp_enqueue_style( 'twentysixteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentysixteen-style' ), '20190102' );
2550
2551 // Load the Internet Explorer specific stylesheet.
2552 - wp_enqueue_style( 'twentysixteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentysixteen-style' ), '20160816' );
2553 + wp_enqueue_style( 'twentysixteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentysixteen-style' ), '20170530' );
2554 wp_style_add_data( 'twentysixteen-ie', 'conditional', 'lt IE 10' );
2555
2556 // Load the Internet Explorer 8 specific stylesheet.
2557 - wp_enqueue_style( 'twentysixteen-ie8', get_template_directory_uri() . '/css/ie8.css', array( 'twentysixteen-style' ), '20160816' );
2558 + wp_enqueue_style( 'twentysixteen-ie8', get_template_directory_uri() . '/css/ie8.css', array( 'twentysixteen-style' ), '20170530' );
2559 wp_style_add_data( 'twentysixteen-ie8', 'conditional', 'lt IE 9' );
2560
2561 // Load the Internet Explorer 7 specific stylesheet.
2562 - wp_enqueue_style( 'twentysixteen-ie7', get_template_directory_uri() . '/css/ie7.css', array( 'twentysixteen-style' ), '20160816' );
2563 + wp_enqueue_style( 'twentysixteen-ie7', get_template_directory_uri() . '/css/ie7.css', array( 'twentysixteen-style' ), '20170530' );
2564 wp_style_add_data( 'twentysixteen-ie7', 'conditional', 'lt IE 8' );
2565
2566 // Load the html5 shiv.
2567 wp_enqueue_script( 'twentysixteen-html5', get_template_directory_uri() . '/js/html5.js', array(), '3.7.3' );
2568 wp_script_add_data( 'twentysixteen-html5', 'conditional', 'lt IE 9' );
2569
2570 - wp_enqueue_script( 'twentysixteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20160816', true );
2571 + wp_enqueue_script( 'twentysixteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20170530', true );
2572
2573 if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
2574 wp_enqueue_script( 'comment-reply' );
2575 }
2576
2577 if ( is_singular() && wp_attachment_is_image() ) {
2578 - wp_enqueue_script( 'twentysixteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20160816' );
2579 + wp_enqueue_script( 'twentysixteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20170530' );
2580 }
2581
2582 - wp_enqueue_script( 'twentysixteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20181230', true );
2583 + wp_enqueue_script( 'twentysixteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20181217', true );
2584
2585 wp_localize_script(
2586 'twentysixteen-script',
2587 @@ -418,7 +434,7 @@ add_action( 'wp_enqueue_scripts', 'twentysixteen_scripts' );
2588 */
2589 function twentysixteen_block_editor_styles() {
2590 // Block styles.
2591 - wp_enqueue_style( 'twentysixteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20181230' );
2592 + wp_enqueue_style( 'twentysixteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20201208' );
2593 // Add custom fonts.
2594 wp_enqueue_style( 'twentysixteen-fonts', twentysixteen_fonts_url(), array(), null );
2595 }
2596 @@ -493,6 +509,11 @@ function twentysixteen_hex2rgb( $color ) {
2597 */
2598 require get_template_directory() . '/inc/template-tags.php';
2599
2600 +/**
2601 + * Block Patterns.
2602 + */
2603 +require get_template_directory() . '/inc/block-patterns.php';
2604 +
2605 /**
2606 * Customizer additions.
2607 */
2608
2609 diff --git a/themes/twentysixteen/genericons/genericons.css b/themes/twentysixteen/genericons/genericons.css
2610 index 87cf754e..5b25675a 100644
2611 --- a/themes/twentysixteen/genericons/genericons.css
2612 +++ b/themes/twentysixteen/genericons/genericons.css
2613 @@ -54,7 +54,7 @@
2614 text-transform: none;
2615 -moz-osx-font-smoothing: grayscale;
2616 -webkit-font-smoothing: antialiased;
2617 - speak: none;
2618 + speak: never;
2619 }
2620
2621
2622
2623 diff --git a/themes/twentysixteen/header.php b/themes/twentysixteen/header.php
2624 index a5cfee6a..c6d3d8cc 100644
2625 --- a/themes/twentysixteen/header.php
2626 +++ b/themes/twentysixteen/header.php
2627 @@ -14,7 +14,7 @@
2628 <head>
2629 <meta charset="<?php bloginfo( 'charset' ); ?>">
2630 <meta name="viewport" content="width=device-width, initial-scale=1">
2631 - <link rel="profile" href="http://gmpg.org/xfn/11">
2632 + <link rel="profile" href="https://gmpg.org/xfn/11">
2633 <?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
2634 <link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
2635 <?php endif; ?>
2636 @@ -85,7 +85,7 @@
2637 <?php if ( get_header_image() ) : ?>
2638 <?php
2639 /**
2640 - * Filter the default twentysixteen custom header sizes attribute.
2641 + * Filters the default twentysixteen custom header sizes attribute.
2642 *
2643 * @since Twenty Sixteen 1.0
2644 *
2645
2646 diff --git a/themes/twentysixteen/image.php b/themes/twentysixteen/image.php
2647 index ea64a146..5929161a 100644
2648 --- a/themes/twentysixteen/image.php
2649 +++ b/themes/twentysixteen/image.php
2650 @@ -13,7 +13,7 @@ get_header(); ?>
2651 <main id="main" class="site-main" role="main">
2652
2653 <?php
2654 - // Start the loop.
2655 + // Start the loop.
2656 while ( have_posts() ) :
2657 the_post();
2658 ?>
2659 @@ -36,7 +36,7 @@ get_header(); ?>
2660 <div class="entry-attachment">
2661 <?php
2662 /**
2663 - * Filter the default twentysixteen image attachment size.
2664 + * Filters the default twentysixteen image attachment size.
2665 *
2666 * @since Twenty Sixteen 1.0
2667 *
2668 @@ -84,7 +84,7 @@ get_header(); ?>
2669 <?php
2670 edit_post_link(
2671 sprintf(
2672 - /* translators: %s: Name of current post */
2673 + /* translators: %s: Post title. */
2674 __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
2675 get_the_title()
2676 ),
2677
2678 diff --git a/themes/twentysixteen/inc/back-compat.php b/themes/twentysixteen/inc/back-compat.php
2679 index c97940e0..bf1a8d08 100644
2680 --- a/themes/twentysixteen/inc/back-compat.php
2681 +++ b/themes/twentysixteen/inc/back-compat.php
2682 @@ -38,8 +38,14 @@ add_action( 'after_switch_theme', 'twentysixteen_switch_theme' );
2683 * @global string $wp_version WordPress version.
2684 */
2685 function twentysixteen_upgrade_notice() {
2686 - $message = sprintf( __( 'Twenty Sixteen requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'twentysixteen' ), $GLOBALS['wp_version'] );
2687 - printf( '<div class="error"><p>%s</p></div>', $message );
2688 + printf(
2689 + '<div class="error"><p>%s</p></div>',
2690 + sprintf(
2691 + /* translators: %s: The current WordPress version. */
2692 + __( 'Twenty Sixteen requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'twentysixteen' ),
2693 + $GLOBALS['wp_version']
2694 + )
2695 + );
2696 }
2697
2698 /**
2699 @@ -51,7 +57,11 @@ function twentysixteen_upgrade_notice() {
2700 */
2701 function twentysixteen_customize() {
2702 wp_die(
2703 - sprintf( __( 'Twenty Sixteen requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'twentysixteen' ), $GLOBALS['wp_version'] ),
2704 + sprintf(
2705 + /* translators: %s: The current WordPress version. */
2706 + __( 'Twenty Sixteen requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'twentysixteen' ),
2707 + $GLOBALS['wp_version']
2708 + ),
2709 '',
2710 array(
2711 'back_link' => true,
2712 @@ -69,7 +79,13 @@ add_action( 'load-customize.php', 'twentysixteen_customize' );
2713 */
2714 function twentysixteen_preview() {
2715 if ( isset( $_GET['preview'] ) ) {
2716 - wp_die( sprintf( __( 'Twenty Sixteen requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'twentysixteen' ), $GLOBALS['wp_version'] ) );
2717 + wp_die(
2718 + sprintf(
2719 + /* translators: %s: The current WordPress version. */
2720 + __( 'Twenty Sixteen requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'twentysixteen' ),
2721 + $GLOBALS['wp_version']
2722 + )
2723 + );
2724 }
2725 }
2726 add_action( 'template_redirect', 'twentysixteen_preview' );
2727
2728 diff --git a/themes/twentysixteen/inc/block-patterns.php b/themes/twentysixteen/inc/block-patterns.php
2729 new file mode 100644
2730 index 00000000..69a80b2c
2731 --- /dev/null
2732 +++ b/themes/twentysixteen/inc/block-patterns.php
2733 @@ -0,0 +1,157 @@
2734 +<?php
2735 +/**
2736 + * Twenty Sixteen Theme: Block Patterns
2737 + *
2738 + * @package WordPress
2739 + * @subpackage Twenty_Sixteen
2740 + * @since Twenty Sixteen 2.3
2741 + */
2742 +
2743 +/**
2744 + * Register Block Pattern Category.
2745 + */
2746 +if ( function_exists( 'register_block_pattern_category' ) ) {
2747 +
2748 + register_block_pattern_category(
2749 + 'twentysixteen',
2750 + array( 'label' => __( 'Twenty Sixteen', 'twentysixteen' ) )
2751 + );
2752 +}
2753 +
2754 +/**
2755 + * Register Block Patterns.
2756 + */
2757 +if ( function_exists( 'register_block_pattern' ) ) {
2758 + register_block_pattern(
2759 + 'twentysixteen/large-heading-short-description',
2760 + array(
2761 + 'title' => __( 'Large heading with short description', 'twentysixteen' ),
2762 + 'categories' => array( 'twentysixteen' ),
2763 + 'content' => '<!-- wp:group {"align":"full","backgroundColor":"background"} -->
2764 + <div class="wp-block-group alignfull has-background-background-color has-background"><div class="wp-block-group__inner-container"><!-- wp:spacer {"height":60} -->
2765 + <div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>
2766 + <!-- /wp:spacer -->
2767 + <!-- wp:heading {"level":6,"style":{"typography":{"lineHeight":"1.5","fontSize":35}}} -->
2768 + <h6 style="font-size:35px;line-height:1.5"><strong>' . esc_html__( 'Twenty Sixteen is a modern take on the horizontal masthead with an optional right sidebar. It works perfectly for WordPress websites and blogs.', 'twentysixteen' ) . '</strong></h6>
2769 + <!-- /wp:heading -->
2770 + <!-- wp:paragraph {"style":{"typography":{"lineHeight":"1.8"}}} -->
2771 + <p style="line-height:1.8">' . esc_html__( 'Twenty Sixteen will make your WordPress website look beautiful everywhere. Take advantage of custom color options, beautiful default color schemes, a harmonious fluid grid using a mobile-first approach, and impeccable polish in every detail.', 'twentysixteen' ) . '</p>
2772 + <!-- /wp:paragraph -->
2773 + <!-- wp:spacer {"height":60} -->
2774 + <div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>
2775 + <!-- /wp:spacer --></div></div>
2776 + <!-- /wp:group -->',
2777 + )
2778 + );
2779 +
2780 + register_block_pattern(
2781 + 'twentysixteen/big-title-two-columns-text',
2782 + array(
2783 + 'title' => __( 'Big Title with Two Columns Text', 'twentysixteen' ),
2784 + 'categories' => array( 'twentysixteen' ),
2785 + 'content' => '<!-- wp:spacer -->
2786 + <div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
2787 + <!-- /wp:spacer -->
2788 +
2789 + <!-- wp:heading {"level":1,"style":{"typography":{"fontSize":55}}} -->
2790 + <h1 style="font-size:55px">' . esc_html__( 'Twenty Sixteen' ) . '</h1>
2791 + <!-- /wp:heading -->
2792 +
2793 + <!-- wp:spacer {"height":30} -->
2794 + <div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>
2795 + <!-- /wp:spacer -->
2796 +
2797 + <!-- wp:columns -->
2798 + <div class="wp-block-columns"><!-- wp:column -->
2799 + <div class="wp-block-column"><!-- wp:paragraph {"dropCap":true} -->
2800 + <p class="has-drop-cap">' . esc_html__( 'Twenty Sixteen will make your WordPress website look beautiful everywhere. Take advantage of its custom color options and beautiful default color schemes.', 'twentysixteen' ) . '</p>
2801 + <!-- /wp:paragraph --></div>
2802 + <!-- /wp:column -->
2803 +
2804 + <!-- wp:column -->
2805 + <div class="wp-block-column"><!-- wp:paragraph -->
2806 + <p>' . esc_html__( 'The theme features a harmonious fluid grid using a mobile-first approach. The layout is a modern take on the horizontal masthead with an optional right sidebar. ', 'twentysixteen' ) . '</p>
2807 + <!-- /wp:paragraph --></div>
2808 + <!-- /wp:column --></div>
2809 + <!-- /wp:columns -->
2810 +
2811 + <!-- wp:spacer -->
2812 + <div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
2813 + <!-- /wp:spacer -->',
2814 + )
2815 + );
2816 +
2817 + register_block_pattern(
2818 + 'twentysixteen/large-blockquote',
2819 + array(
2820 + 'title' => __( 'Large Blockquote', 'twentysixteen' ),
2821 + 'categories' => array( 'twentysixteen' ),
2822 + 'content' => '<!-- wp:spacer -->
2823 + <div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
2824 + <!-- /wp:spacer -->
2825 +
2826 + <!-- wp:separator {"color":"dark-gray","className":"is-style-wide"} -->
2827 + <hr class="wp-block-separator has-text-color has-background has-dark-gray-background-color has-dark-gray-color is-style-wide"/>
2828 + <!-- /wp:separator -->
2829 +
2830 + <!-- wp:heading {"style":{"typography":{"lineHeight":"1.5","fontSize":40}}} -->
2831 + <h2 style="font-size:40px;line-height:1.5"><em>' . esc_html__( 'Twenty Sixteen will make your WordPress look beautiful everywhere.', 'twentysixteen' ) . '</em></h2>
2832 + <!-- /wp:heading -->
2833 +
2834 + <!-- wp:paragraph {"textColor":"medium-gray"} -->
2835 + <p class="has-medium-gray-color has-text-color">' . esc_html__( '— Takashi Irie', 'twentysixteen' ) . '</p>
2836 + <!-- /wp:paragraph -->
2837 +
2838 + <!-- wp:spacer {"height":52} -->
2839 + <div style="height:52px" aria-hidden="true" class="wp-block-spacer"></div>
2840 + <!-- /wp:spacer -->
2841 +
2842 + <!-- wp:separator {"color":"dark-gray","className":"is-style-wide"} -->
2843 + <hr class="wp-block-separator has-text-color has-background has-dark-gray-background-color has-dark-gray-color is-style-wide"/>
2844 + <!-- /wp:separator -->
2845 +
2846 + <!-- wp:spacer -->
2847 + <div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
2848 + <!-- /wp:spacer -->',
2849 + )
2850 + );
2851 +
2852 + register_block_pattern(
2853 + 'twentysixteen/call-to-action',
2854 + array(
2855 + 'title' => __( 'Call to Action', 'twentysixteen' ),
2856 + 'categories' => array( 'twentysixteen' ),
2857 + 'content' => '<!-- wp:spacer -->
2858 + <div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
2859 + <!-- /wp:spacer -->
2860 +
2861 + <!-- wp:separator {"color":"dark-gray","className":"is-style-wide"} -->
2862 + <hr class="wp-block-separator has-text-color has-background has-dark-gray-background-color has-dark-gray-color is-style-wide"/>
2863 + <!-- /wp:separator -->
2864 +
2865 + <!-- wp:heading {"level":1,"style":{"typography":{"fontSize":35,"lineHeight":"1.5"}}} -->
2866 + <h1 style="font-size:35px;line-height:1.5">' . esc_html__( 'My new book “Twenty Sixteen” is available for pre-order.', 'twentysixteen' ) . '</h1>
2867 + <!-- /wp:heading -->
2868 +
2869 + <!-- wp:columns -->
2870 + <div class="wp-block-columns"><!-- wp:column -->
2871 + <div class="wp-block-column"><!-- wp:buttons -->
2872 + <div class="wp-block-buttons"><!-- wp:button {"borderRadius":0,"backgroundColor":"bright-blue"} -->
2873 + <div class="wp-block-button"><a class="wp-block-button__link has-bright-blue-background-color has-background no-border-radius">' . esc_html__( 'Pre-Order Now', 'twentysixteen' ) . '</a></div>
2874 + <!-- /wp:button --></div>
2875 + <!-- /wp:buttons --></div>
2876 + <!-- /wp:column -->
2877 +
2878 + <!-- wp:column -->
2879 + <div class="wp-block-column"><!-- wp:spacer {"height":54} -->
2880 + <div style="height:54px" aria-hidden="true" class="wp-block-spacer"></div>
2881 + <!-- /wp:spacer --></div>
2882 + <!-- /wp:column --></div>
2883 + <!-- /wp:columns -->
2884 +
2885 + <!-- wp:spacer -->
2886 + <div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
2887 + <!-- /wp:spacer -->',
2888 + )
2889 + );
2890 +}
2891
2892 diff --git a/themes/twentysixteen/inc/customizer.php b/themes/twentysixteen/inc/customizer.php
2893 index 9867d3d9..0cefa79e 100644
2894 --- a/themes/twentysixteen/inc/customizer.php
2895 +++ b/themes/twentysixteen/inc/customizer.php
2896 @@ -19,19 +19,19 @@ function twentysixteen_custom_header_and_background() {
2897 $default_background_color = trim( $color_scheme[0], '#' );
2898 $default_text_color = trim( $color_scheme[3], '#' );
2899
2900 - /**
2901 - * Filter the arguments used when adding 'custom-background' support in Twenty Sixteen.
2902 - *
2903 - * @since Twenty Sixteen 1.0
2904 - *
2905 - * @param array $args {
2906 - * An array of custom-background support arguments.
2907 - *
2908 - * @type string $default-color Default color of the background.
2909 - * }
2910 - */
2911 add_theme_support(
2912 'custom-background',
2913 + /**
2914 + * Filters the arguments used when adding 'custom-background' support in Twenty Sixteen.
2915 + *
2916 + * @since Twenty Sixteen 1.0
2917 + *
2918 + * @param array $args {
2919 + * An array of custom-background support arguments.
2920 + *
2921 + * @type string $default-color Default color of the background.
2922 + * }
2923 + */
2924 apply_filters(
2925 'twentysixteen_custom_background_args',
2926 array(
2927 @@ -40,24 +40,24 @@ function twentysixteen_custom_header_and_background() {
2928 )
2929 );
2930
2931 - /**
2932 - * Filter the arguments used when adding 'custom-header' support in Twenty Sixteen.
2933 - *
2934 - * @since Twenty Sixteen 1.0
2935 - *
2936 - * @param array $args {
2937 - * An array of custom-header support arguments.
2938 - *
2939 - * @type string $default-text-color Default color of the header text.
2940 - * @type int $width Width in pixels of the custom header image. Default 1200.
2941 - * @type int $height Height in pixels of the custom header image. Default 280.
2942 - * @type bool $flex-height Whether to allow flexible-height header images. Default true.
2943 - * @type callable $wp-head-callback Callback function used to style the header image and text
2944 - * displayed on the blog.
2945 - * }
2946 - */
2947 add_theme_support(
2948 'custom-header',
2949 + /**
2950 + * Filters the arguments used when adding 'custom-header' support in Twenty Sixteen.
2951 + *
2952 + * @since Twenty Sixteen 1.0
2953 + *
2954 + * @param array $args {
2955 + * An array of custom-header support arguments.
2956 + *
2957 + * @type string $default-text-color Default color of the header text.
2958 + * @type int $width Width in pixels of the custom header image. Default 1200.
2959 + * @type int $height Height in pixels of the custom header image. Default 280.
2960 + * @type bool $flex-height Whether to allow flexible-height header images. Default true.
2961 + * @type callable $wp-head-callback Callback function used to style the header image and text
2962 + * displayed on the blog.
2963 + * }
2964 + */
2965 apply_filters(
2966 'twentysixteen_custom_header_args',
2967 array(
2968 @@ -103,7 +103,7 @@ if ( ! function_exists( 'twentysixteen_header_style' ) ) :
2969 </style>
2970 <?php
2971 }
2972 -endif; // twentysixteen_header_style
2973 +endif; // twentysixteen_header_style()
2974
2975 /**
2976 * Adds postMessage support for site title and description for the Customizer.
2977 @@ -251,6 +251,7 @@ add_action( 'customize_register', 'twentysixteen_customize_register', 11 );
2978 * Render the site title for the selective refresh partial.
2979 *
2980 * @since Twenty Sixteen 1.2
2981 + *
2982 * @see twentysixteen_customize_register()
2983 *
2984 * @return void
2985 @@ -263,6 +264,7 @@ function twentysixteen_customize_partial_blogname() {
2986 * Render the site tagline for the selective refresh partial.
2987 *
2988 * @since Twenty Sixteen 1.2
2989 + *
2990 * @see twentysixteen_customize_register()
2991 *
2992 * @return void
2993 @@ -289,7 +291,7 @@ function twentysixteen_customize_partial_blogdescription() {
2994 */
2995 function twentysixteen_get_color_schemes() {
2996 /**
2997 - * Filter the color schemes registered for use with Twenty Sixteen.
2998 + * Filters the color schemes registered for use with Twenty Sixteen.
2999 *
3000 * The default schemes include 'default', 'dark', 'gray', 'red', and 'yellow'.
3001 *
3002 @@ -385,7 +387,7 @@ if ( ! function_exists( 'twentysixteen_get_color_scheme' ) ) :
3003
3004 return $color_schemes['default']['colors'];
3005 }
3006 -endif; // twentysixteen_get_color_scheme
3007 +endif; // twentysixteen_get_color_scheme()
3008
3009 if ( ! function_exists( 'twentysixteen_get_color_scheme_choices' ) ) :
3010 /**
3011 @@ -408,7 +410,7 @@ if ( ! function_exists( 'twentysixteen_get_color_scheme_choices' ) ) :
3012
3013 return $color_scheme_control_options;
3014 }
3015 -endif; // twentysixteen_get_color_scheme_choices
3016 +endif; // twentysixteen_get_color_scheme_choices()
3017
3018
3019 if ( ! function_exists( 'twentysixteen_sanitize_color_scheme' ) ) :
3020 @@ -432,7 +434,7 @@ if ( ! function_exists( 'twentysixteen_sanitize_color_scheme' ) ) :
3021
3022 return $value;
3023 }
3024 -endif; // twentysixteen_sanitize_color_scheme
3025 +endif; // twentysixteen_sanitize_color_scheme()
3026
3027 /**
3028 * Enqueues front-end CSS for color scheme.
3029 @@ -484,7 +486,7 @@ add_action( 'wp_enqueue_scripts', 'twentysixteen_color_scheme_css' );
3030 * @since Twenty Sixteen 1.0
3031 */
3032 function twentysixteen_customize_control_js() {
3033 - wp_enqueue_script( 'color-scheme-control', get_template_directory_uri() . '/js/color-scheme-control.js', array( 'customize-controls', 'iris', 'underscore', 'wp-util' ), '20160816', true );
3034 + wp_enqueue_script( 'color-scheme-control', get_template_directory_uri() . '/js/color-scheme-control.js', array( 'customize-controls', 'iris', 'underscore', 'wp-util' ), '20170530', true );
3035 wp_localize_script( 'color-scheme-control', 'colorScheme', twentysixteen_get_color_schemes() );
3036 }
3037 add_action( 'customize_controls_enqueue_scripts', 'twentysixteen_customize_control_js' );
3038 @@ -495,7 +497,7 @@ add_action( 'customize_controls_enqueue_scripts', 'twentysixteen_customize_contr
3039 * @since Twenty Sixteen 1.0
3040 */
3041 function twentysixteen_customize_preview_js() {
3042 - wp_enqueue_script( 'twentysixteen-customize-preview', get_template_directory_uri() . '/js/customize-preview.js', array( 'customize-preview' ), '20160816', true );
3043 + wp_enqueue_script( 'twentysixteen-customize-preview', get_template_directory_uri() . '/js/customize-preview.js', array( 'customize-preview' ), '20170530', true );
3044 }
3045 add_action( 'customize_preview_init', 'twentysixteen_customize_preview_js' );
3046
3047
3048 diff --git a/themes/twentysixteen/inc/template-tags.php b/themes/twentysixteen/inc/template-tags.php
3049 index 55578bea..005e5374 100644
3050 --- a/themes/twentysixteen/inc/template-tags.php
3051 +++ b/themes/twentysixteen/inc/template-tags.php
3052 @@ -29,7 +29,7 @@ if ( ! function_exists( 'twentysixteen_entry_meta' ) ) :
3053 );
3054 }
3055
3056 - if ( in_array( get_post_type(), array( 'post', 'attachment' ) ) ) {
3057 + if ( in_array( get_post_type(), array( 'post', 'attachment' ), true ) ) {
3058 twentysixteen_entry_date();
3059 }
3060
3061 @@ -49,6 +49,7 @@ if ( ! function_exists( 'twentysixteen_entry_meta' ) ) :
3062
3063 if ( ! is_singular() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
3064 echo '<span class="comments-link">';
3065 + /* translators: %s: Post title. */
3066 comments_popup_link( sprintf( __( 'Leave a comment<span class="screen-reader-text"> on %s</span>', 'twentysixteen' ), get_the_title() ) );
3067 echo '</span>';
3068 }
3069 @@ -146,7 +147,7 @@ if ( ! function_exists( 'twentysixteen_post_thumbnail' ) ) :
3070 </a>
3071
3072 <?php
3073 - endif; // End is_singular()
3074 + endif; // End is_singular().
3075 }
3076 endif;
3077
3078 @@ -190,7 +191,7 @@ if ( ! function_exists( 'twentysixteen_excerpt_more' ) && ! is_admin() ) :
3079 $link = sprintf(
3080 '<a href="%1$s" class="more-link">%2$s</a>',
3081 esc_url( get_permalink( get_the_ID() ) ),
3082 - /* translators: %s: Name of current post */
3083 + /* translators: %s: Post title. */
3084 sprintf( __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ), get_the_title( get_the_ID() ) )
3085 );
3086 return ' &hellip; ' . $link;
3087 @@ -209,7 +210,8 @@ if ( ! function_exists( 'twentysixteen_categorized_blog' ) ) :
3088 * @return bool True if there is more than one category, false otherwise.
3089 */
3090 function twentysixteen_categorized_blog() {
3091 - if ( false === ( $all_the_cool_cats = get_transient( 'twentysixteen_categories' ) ) ) {
3092 + $all_the_cool_cats = get_transient( 'twentysixteen_categories' );
3093 + if ( false === $all_the_cool_cats ) {
3094 // Create an array of all the categories that are attached to posts.
3095 $all_the_cool_cats = get_categories(
3096 array(
3097 @@ -226,10 +228,10 @@ if ( ! function_exists( 'twentysixteen_categorized_blog' ) ) :
3098 }
3099
3100 if ( $all_the_cool_cats > 1 || is_preview() ) {
3101 - // This blog has more than 1 category so twentysixteen_categorized_blog should return true.
3102 + // This blog has more than 1 category so twentysixteen_categorized_blog() should return true.
3103 return true;
3104 } else {
3105 - // This blog has only 1 category so twentysixteen_categorized_blog should return false.
3106 + // This blog has only 1 category so twentysixteen_categorized_blog() should return false.
3107 return false;
3108 }
3109 }
3110 @@ -269,7 +271,7 @@ if ( ! function_exists( 'wp_body_open' ) ) :
3111 /**
3112 * Fire the wp_body_open action.
3113 *
3114 - * Added for backwards compatibility to support pre 5.2.0 WordPress versions.
3115 + * Added for backward compatibility to support pre-5.2.0 WordPress versions.
3116 *
3117 * @since Twenty Sixteen 2.0
3118 */
3119
3120 diff --git a/themes/twentysixteen/index.php b/themes/twentysixteen/index.php
3121 index f6ec56c1..0a1a3e01 100644
3122 --- a/themes/twentysixteen/index.php
3123 +++ b/themes/twentysixteen/index.php
3124 @@ -35,7 +35,8 @@ get_header(); ?>
3125 /*
3126 * Include the Post-Format-specific template for the content.
3127 * If you want to override this in a child theme, then include a file
3128 - * called content-___.php (where ___ is the Post Format name) and that will be used instead.
3129 + * called content-___.php (where ___ is the Post Format name) and that
3130 + * will be used instead.
3131 */
3132 get_template_part( 'template-parts/content', get_post_format() );
3133
3134
3135 diff --git a/themes/twentysixteen/js/functions.js b/themes/twentysixteen/js/functions.js
3136 index a15af117..d7aed1bd 100644
3137 --- a/themes/twentysixteen/js/functions.js
3138 +++ b/themes/twentysixteen/js/functions.js
3139 @@ -28,7 +28,7 @@
3140 // Add menu items with submenus to aria-haspopup="true".
3141 container.find( '.menu-item-has-children' ).attr( 'aria-haspopup', 'true' );
3142
3143 - container.find( '.dropdown-toggle' ).click( function( e ) {
3144 + container.find( '.dropdown-toggle' ).on( 'click', function( e ) {
3145 var _this = $( this ),
3146 screenReaderSpan = _this.find( '.screen-reader-text' );
3147
3148
3149 diff --git a/themes/twentysixteen/page.php b/themes/twentysixteen/page.php
3150 index a232c9fc..f5d6b7ad 100644
3151 --- a/themes/twentysixteen/page.php
3152 +++ b/themes/twentysixteen/page.php
3153 @@ -28,7 +28,7 @@ get_header(); ?>
3154 comments_template();
3155 }
3156
3157 - // End of the loop.
3158 + // End the loop.
3159 endwhile;
3160 ?>
3161
3162
3163 diff --git a/themes/twentysixteen/readme.txt b/themes/twentysixteen/readme.txt
3164 index 24b3428c..61bbd5f1 100644
3165 --- a/themes/twentysixteen/readme.txt
3166 +++ b/themes/twentysixteen/readme.txt
3167 @@ -1,12 +1,10 @@
3168 === Twenty Sixteen ===
3169 Contributors: wordpressdotorg
3170 -Requires at least: WordPress 4.4
3171 -Tested up to: WordPress 5.0
3172 -Requires PHP: 5.2.4
3173 -Version: 2.0
3174 +Tested up to: 5.8
3175 +Version: 2.5
3176 License: GPLv2 or later
3177 License URI: http://www.gnu.org/licenses/gpl-2.0.html
3178 -Tags: one-column, two-columns, right-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, blog
3179 +Tags: one-column, two-columns, right-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, blog, block-patterns
3180
3181 == Description ==
3182 Twenty Sixteen is a modernized take on an ever-popular WordPress layout — the horizontal masthead with an optional right sidebar that works perfectly for blogs and websites. It has custom color options with beautiful default color schemes, a harmonious fluid grid using a mobile-first approach, and impeccable polish in every detail. Twenty Sixteen will make your WordPress look beautiful everywhere.
3183 @@ -18,19 +16,19 @@ Twenty Sixteen is a modernized take on an ever-popular WordPress layout — the
3184 * Post Formats
3185 * The GPL v2.0 or later license. :) Use it to make something cool.
3186
3187 -For more information about Twenty Sixteen please go to https://codex.wordpress.org/Twenty_Sixteen.
3188 +For more information about Twenty Sixteen please go to https://wordpress.org/support/article/twenty-sixteen/.
3189
3190 == Installation ==
3191
3192 1. In your admin panel, go to Appearance -> Themes and click the 'Add New' button.
3193 2. Type in Twenty Sixteen in the search form and press the 'Enter' key on your keyboard.
3194 3. Click on the 'Activate' button to use your new theme right away.
3195 -4. Go to https://codex.wordpress.org/Twenty_Sixteen for a guide on how to customize this theme.
3196 +4. Go to https://wordpress.org/support/article/twenty-sixteen/ for a guide on how to customize this theme.
3197 5. Navigate to Appearance > Customize in your admin panel and customize to taste.
3198
3199 == Copyright ==
3200
3201 -Twenty Sixteen WordPress Theme, Copyright 2014-2018 WordPress.org
3202 +Twenty Sixteen WordPress Theme, Copyright 2014-2021 WordPress.org
3203 Twenty Sixteen is distributed under the terms of the GNU GPL
3204
3205 This program is free software: you can redistribute it and/or modify
3206 @@ -57,6 +55,31 @@ Image used in screenshot.png: A photo by Austin Schmid (https://unsplash.com/sch
3207
3208 == Changelog ==
3209
3210 += 2.5 =
3211 +* Released: July 20, 2021
3212 +
3213 +https://codex.wordpress.org/Twenty_Sixteen_Theme_Changelog#Version_2.5
3214 +
3215 += 2.4 =
3216 +* Released: March 9, 2021
3217 +
3218 +https://codex.wordpress.org/Twenty_Sixteen_Theme_Changelog#Version_2.4
3219 +
3220 += 2.3 =
3221 +* Released: December 8, 2020
3222 +
3223 +https://codex.wordpress.org/Twenty_Sixteen_Theme_Changelog#Version_2.3
3224 +
3225 += 2.2 =
3226 +* Released: August 11, 2020
3227 +
3228 +https://codex.wordpress.org/Twenty_Sixteen_Theme_Changelog#Version_2.2
3229 +
3230 += 2.1 =
3231 +* Released: March 31, 2020
3232 +
3233 +https://codex.wordpress.org/Twenty_Sixteen_Theme_Changelog#Version_2.1
3234 +
3235 = 2.0 =
3236 * Released: May 7, 2019
3237
3238
3239 diff --git a/themes/twentysixteen/rtl.css b/themes/twentysixteen/rtl.css
3240 index 48ece280..5add22f5 100644
3241 --- a/themes/twentysixteen/rtl.css
3242 +++ b/themes/twentysixteen/rtl.css
3243 @@ -681,7 +681,7 @@ body:not(.search-results) .entry-summary .alignleft {
3244 margin-right: 1.473684211em;
3245 margin-left: 0;
3246 width: -webkit-calc(50% - 0.736842105em);
3247 - width: calc(50% - 0.736842105em);;
3248 + width: calc(50% - 0.736842105em);
3249 }
3250
3251 body:not(.search-results) article:not(.type-page) .entry-content > blockquote.alignright.below-entry-meta {
3252
3253 diff --git a/themes/twentysixteen/search.php b/themes/twentysixteen/search.php
3254 index 0f893636..37aed863 100644
3255 --- a/themes/twentysixteen/search.php
3256 +++ b/themes/twentysixteen/search.php
3257 @@ -15,7 +15,12 @@ get_header(); ?>
3258 <?php if ( have_posts() ) : ?>
3259
3260 <header class="page-header">
3261 - <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentysixteen' ), '<span>' . esc_html( get_search_query() ) . '</span>' ); ?></h1>
3262 + <h1 class="page-title">
3263 + <?php
3264 + /* translators: %s: The search query. */
3265 + printf( __( 'Search Results for: %s', 'twentysixteen' ), '<span>' . esc_html( get_search_query() ) . '</span>' );
3266 + ?>
3267 + </h1>
3268 </header><!-- .page-header -->
3269
3270 <?php
3271
3272 diff --git a/themes/twentysixteen/single.php b/themes/twentysixteen/single.php
3273 index 34541703..77a44d86 100644
3274 --- a/themes/twentysixteen/single.php
3275 +++ b/themes/twentysixteen/single.php
3276 @@ -45,7 +45,7 @@ get_header(); ?>
3277 );
3278 }
3279
3280 - // End of the loop.
3281 + // End the loop.
3282 endwhile;
3283 ?>
3284
3285
3286 diff --git a/themes/twentysixteen/style.css b/themes/twentysixteen/style.css
3287 index ab7e95da..a34e74d6 100644
3288 --- a/themes/twentysixteen/style.css
3289 +++ b/themes/twentysixteen/style.css
3290 @@ -4,10 +4,12 @@ Theme URI: https://wordpress.org/themes/twentysixteen/
3291 Author: the WordPress team
3292 Author URI: https://wordpress.org/
3293 Description: Twenty Sixteen is a modernized take on an ever-popular WordPress layout — the horizontal masthead with an optional right sidebar that works perfectly for blogs and websites. It has custom color options with beautiful default color schemes, a harmonious fluid grid using a mobile-first approach, and impeccable polish in every detail. Twenty Sixteen will make your WordPress look beautiful everywhere.
3294 -Version: 2.0
3295 +Version: 2.5
3296 +Requires at least: 4.4
3297 +Requires PHP: 5.2.4
3298 License: GNU General Public License v2 or later
3299 License URI: http://www.gnu.org/licenses/gpl-2.0.html
3300 -Tags: one-column, two-columns, right-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, blog
3301 +Tags: one-column, two-columns, right-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, blog, block-patterns
3302 Text Domain: twentysixteen
3303
3304 This theme, like WordPress, is licensed under the GPL.
3305 @@ -286,7 +288,7 @@ optgroup {
3306 font-variant: normal;
3307 font-weight: normal;
3308 line-height: 1;
3309 - speak: none;
3310 + speak: never;
3311 text-align: center;
3312 text-decoration: inherit;
3313 text-transform: none;
3314 @@ -1411,7 +1413,8 @@ blockquote:after,
3315 }
3316
3317 .widget-area > :last-child,
3318 -.widget > :last-child {
3319 +.widget > :last-child,
3320 +.widget > nav > :last-child {
3321 margin-bottom: 0;
3322 }
3323
3324 @@ -1438,8 +1441,23 @@ blockquote:after,
3325 margin: 0;
3326 }
3327
3328 +.widget_calendar .wp-calendar-nav {
3329 + display: table;
3330 + width: 100%;
3331 +}
3332 +
3333 +.widget_calendar .wp-calendar-nav span {
3334 + display: table-cell;
3335 +}
3336 +
3337 +.widget_calendar .wp-calendar-nav-prev,
3338 +.widget_calendar .wp-calendar-nav-next {
3339 + width: 40%;
3340 +}
3341 +
3342 .widget_calendar td,
3343 -.widget_calendar th {
3344 +.widget_calendar th,
3345 +.widget_calendar .wp-calendar-nav span {
3346 line-height: 2.5625;
3347 padding: 0;
3348 text-align: center;
3349 @@ -3302,7 +3320,8 @@ p > video {
3350 }
3351
3352 .widget_calendar td,
3353 - .widget_calendar th {
3354 + .widget_calendar th,
3355 + .widget_calendar .wp-calendar-nav span {
3356 line-height: 2.6923076923;
3357 padding: 0;
3358 }
3359
3360 diff --git a/themes/twentysixteen/template-parts/biography.php b/themes/twentysixteen/template-parts/biography.php
3361 index 9e2e5b87..15aa70cd 100644
3362 --- a/themes/twentysixteen/template-parts/biography.php
3363 +++ b/themes/twentysixteen/template-parts/biography.php
3364 @@ -12,7 +12,7 @@
3365 <div class="author-avatar">
3366 <?php
3367 /**
3368 - * Filter the Twenty Sixteen author bio avatar size.
3369 + * Filters the Twenty Sixteen author bio avatar size.
3370 *
3371 * @since Twenty Sixteen 1.0
3372 *
3373 @@ -30,7 +30,10 @@
3374 <p class="author-bio">
3375 <?php the_author_meta( 'description' ); ?>
3376 <a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
3377 - <?php printf( __( 'View all posts by %s', 'twentysixteen' ), get_the_author() ); ?>
3378 + <?php
3379 + /* translators: %s: The post author display name. */
3380 + printf( __( 'View all posts by %s', 'twentysixteen' ), get_the_author() );
3381 + ?>
3382 </a>
3383 </p><!-- .author-bio -->
3384 </div><!-- .author-description -->
3385
3386 diff --git a/themes/twentysixteen/template-parts/content-none.php b/themes/twentysixteen/template-parts/content-none.php
3387 index b6b7e7c0..ad401cf9 100644
3388 --- a/themes/twentysixteen/template-parts/content-none.php
3389 +++ b/themes/twentysixteen/template-parts/content-none.php
3390 @@ -16,7 +16,12 @@
3391 <div class="page-content">
3392 <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
3393
3394 - <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentysixteen' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
3395 + <p>
3396 + <?php
3397 + /* translators: %s: Post editor URL. */
3398 + printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentysixteen' ), esc_url( admin_url( 'post-new.php' ) ) );
3399 + ?>
3400 + </p>
3401
3402 <?php elseif ( is_search() ) : ?>
3403
3404
3405 diff --git a/themes/twentysixteen/template-parts/content-page.php b/themes/twentysixteen/template-parts/content-page.php
3406 index 689972c0..58af8e0b 100644
3407 --- a/themes/twentysixteen/template-parts/content-page.php
3408 +++ b/themes/twentysixteen/template-parts/content-page.php
3409 @@ -35,7 +35,7 @@
3410 <?php
3411 edit_post_link(
3412 sprintf(
3413 - /* translators: %s: Name of current post */
3414 + /* translators: %s: Post title. */
3415 __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
3416 get_the_title()
3417 ),
3418
3419 diff --git a/themes/twentysixteen/template-parts/content-search.php b/themes/twentysixteen/template-parts/content-search.php
3420 index 7d587f65..6a912eb0 100644
3421 --- a/themes/twentysixteen/template-parts/content-search.php
3422 +++ b/themes/twentysixteen/template-parts/content-search.php
3423 @@ -24,7 +24,7 @@
3424 <?php
3425 edit_post_link(
3426 sprintf(
3427 - /* translators: %s: Name of current post */
3428 + /* translators: %s: Post title. */
3429 __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
3430 get_the_title()
3431 ),
3432 @@ -39,7 +39,7 @@
3433 <?php
3434 edit_post_link(
3435 sprintf(
3436 - /* translators: %s: Name of current post */
3437 + /* translators: %s: Post title. */
3438 __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
3439 get_the_title()
3440 ),
3441
3442 diff --git a/themes/twentysixteen/template-parts/content-single.php b/themes/twentysixteen/template-parts/content-single.php
3443 index 23e18373..1eb9f267 100644
3444 --- a/themes/twentysixteen/template-parts/content-single.php
3445 +++ b/themes/twentysixteen/template-parts/content-single.php
3446 @@ -43,7 +43,7 @@
3447 <?php
3448 edit_post_link(
3449 sprintf(
3450 - /* translators: %s: Name of current post */
3451 + /* translators: %s: Post title. */
3452 __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
3453 get_the_title()
3454 ),
3455
3456 diff --git a/themes/twentysixteen/template-parts/content.php b/themes/twentysixteen/template-parts/content.php
3457 index 03b4cfb6..1497c76c 100644
3458 --- a/themes/twentysixteen/template-parts/content.php
3459 +++ b/themes/twentysixteen/template-parts/content.php
3460 @@ -23,9 +23,9 @@
3461
3462 <div class="entry-content">
3463 <?php
3464 - /* translators: %s: Name of current post */
3465 the_content(
3466 sprintf(
3467 + /* translators: %s: Post title. */
3468 __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
3469 get_the_title()
3470 )
3471 @@ -49,7 +49,7 @@
3472 <?php
3473 edit_post_link(
3474 sprintf(
3475 - /* translators: %s: Name of current post */
3476 + /* translators: %s: Post title. */
3477 __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
3478 get_the_title()
3479 ),