1 |
commit: 803ee77b72af622394ef14eff997102c57b0ddf8 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 2 03:28:29 2019 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 2 03:28:29 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/blogs-gentoo.git/commit/?id=803ee77b |
7 |
|
8 |
Update twentyfifteen 2.2 |
9 |
|
10 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
11 |
|
12 |
themes/twentyfifteen/archive.php | 19 +- |
13 |
themes/twentyfifteen/comments.php | 50 +- |
14 |
themes/twentyfifteen/content-link.php | 36 +- |
15 |
themes/twentyfifteen/content-page.php | 18 +- |
16 |
themes/twentyfifteen/content.php | 36 +- |
17 |
themes/twentyfifteen/css/blocks.css | 650 ++++++++++++++++++++++ |
18 |
themes/twentyfifteen/css/editor-blocks.css | 866 +++++++++++++++++++++++++++++ |
19 |
themes/twentyfifteen/functions.php | 460 ++++++++------- |
20 |
themes/twentyfifteen/header.php | 12 +- |
21 |
themes/twentyfifteen/image.php | 77 ++- |
22 |
themes/twentyfifteen/inc/back-compat.php | 8 +- |
23 |
themes/twentyfifteen/inc/custom-header.php | 70 ++- |
24 |
themes/twentyfifteen/inc/customizer.php | 358 ++++++------ |
25 |
themes/twentyfifteen/inc/template-tags.php | 319 +++++------ |
26 |
themes/twentyfifteen/index.php | 19 +- |
27 |
themes/twentyfifteen/js/functions.js | 3 +- |
28 |
themes/twentyfifteen/page.php | 5 +- |
29 |
themes/twentyfifteen/readme.txt | 14 +- |
30 |
themes/twentyfifteen/search.php | 22 +- |
31 |
themes/twentyfifteen/sidebar.php | 26 +- |
32 |
themes/twentyfifteen/single.php | 25 +- |
33 |
themes/twentyfifteen/style.css | 2 +- |
34 |
22 files changed, 2298 insertions(+), 797 deletions(-) |
35 |
|
36 |
diff --git a/themes/twentyfifteen/archive.php b/themes/twentyfifteen/archive.php |
37 |
index 7d100c5..bb6021e 100644 |
38 |
--- a/themes/twentyfifteen/archive.php |
39 |
+++ b/themes/twentyfifteen/archive.php |
40 |
@@ -32,8 +32,7 @@ get_header(); ?> |
41 |
|
42 |
<?php |
43 |
// Start the Loop. |
44 |
- while ( have_posts() ) : |
45 |
- the_post(); |
46 |
+ while ( have_posts() ) : the_post(); |
47 |
|
48 |
/* |
49 |
* Include the Post-Format-specific template for the content. |
50 |
@@ -42,19 +41,17 @@ get_header(); ?> |
51 |
*/ |
52 |
get_template_part( 'content', get_post_format() ); |
53 |
|
54 |
- // End the loop. |
55 |
+ // End the loop. |
56 |
endwhile; |
57 |
|
58 |
// Previous/next page navigation. |
59 |
- the_posts_pagination( |
60 |
- array( |
61 |
- 'prev_text' => __( 'Previous page', 'twentyfifteen' ), |
62 |
- 'next_text' => __( 'Next page', 'twentyfifteen' ), |
63 |
- 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>', |
64 |
- ) |
65 |
- ); |
66 |
+ the_posts_pagination( array( |
67 |
+ 'prev_text' => __( 'Previous page', 'twentyfifteen' ), |
68 |
+ 'next_text' => __( 'Next page', 'twentyfifteen' ), |
69 |
+ 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>', |
70 |
+ ) ); |
71 |
|
72 |
- // If no content, include the "No posts found" template. |
73 |
+ // If no content, include the "No posts found" template. |
74 |
else : |
75 |
get_template_part( 'content', 'none' ); |
76 |
|
77 |
|
78 |
diff --git a/themes/twentyfifteen/comments.php b/themes/twentyfifteen/comments.php |
79 |
index 1c1b5a4..6b97ec3 100644 |
80 |
--- a/themes/twentyfifteen/comments.php |
81 |
+++ b/themes/twentyfifteen/comments.php |
82 |
@@ -26,23 +26,23 @@ if ( post_password_required() ) { |
83 |
<h2 class="comments-title"> |
84 |
<?php |
85 |
$comments_number = get_comments_number(); |
86 |
- if ( '1' === $comments_number ) { |
87 |
- /* translators: %s: post title */ |
88 |
- printf( _x( 'One thought on “%s”', 'comments title', 'twentyfifteen' ), get_the_title() ); |
89 |
- } else { |
90 |
- printf( |
91 |
- /* translators: 1: number of comments, 2: post title */ |
92 |
- _nx( |
93 |
- '%1$s thought on “%2$s”', |
94 |
- '%1$s thoughts on “%2$s”', |
95 |
- $comments_number, |
96 |
- 'comments title', |
97 |
- 'twentyfifteen' |
98 |
- ), |
99 |
- number_format_i18n( $comments_number ), |
100 |
- get_the_title() |
101 |
- ); |
102 |
- } |
103 |
+ if ( '1' === $comments_number ) { |
104 |
+ /* translators: %s: post title */ |
105 |
+ printf( _x( 'One thought on “%s”', 'comments title', 'twentyfifteen' ), get_the_title() ); |
106 |
+ } else { |
107 |
+ printf( |
108 |
+ /* translators: 1: number of comments, 2: post title */ |
109 |
+ _nx( |
110 |
+ '%1$s thought on “%2$s”', |
111 |
+ '%1$s thoughts on “%2$s”', |
112 |
+ $comments_number, |
113 |
+ 'comments title', |
114 |
+ 'twentyfifteen' |
115 |
+ ), |
116 |
+ number_format_i18n( $comments_number ), |
117 |
+ get_the_title() |
118 |
+ ); |
119 |
+ } |
120 |
?> |
121 |
</h2> |
122 |
|
123 |
@@ -50,13 +50,11 @@ if ( post_password_required() ) { |
124 |
|
125 |
<ol class="comment-list"> |
126 |
<?php |
127 |
- wp_list_comments( |
128 |
- array( |
129 |
- 'style' => 'ol', |
130 |
- 'short_ping' => true, |
131 |
- 'avatar_size' => 56, |
132 |
- ) |
133 |
- ); |
134 |
+ wp_list_comments( array( |
135 |
+ 'style' => 'ol', |
136 |
+ 'short_ping' => true, |
137 |
+ 'avatar_size' => 56, |
138 |
+ ) ); |
139 |
?> |
140 |
</ol><!-- .comment-list --> |
141 |
|
142 |
@@ -66,9 +64,9 @@ if ( post_password_required() ) { |
143 |
|
144 |
<?php |
145 |
// If comments are closed and there are comments, let's leave a little note, shall we? |
146 |
- if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : |
147 |
+ if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : |
148 |
?> |
149 |
- <p class="no-comments"><?php _e( 'Comments are closed.', 'twentyfifteen' ); ?></p> |
150 |
+ <p class="no-comments"><?php _e( 'Comments are closed.', 'twentyfifteen' ); ?></p> |
151 |
<?php endif; ?> |
152 |
|
153 |
<?php comment_form(); ?> |
154 |
|
155 |
diff --git a/themes/twentyfifteen/content-link.php b/themes/twentyfifteen/content-link.php |
156 |
index 17aaf78..2beb1f7 100644 |
157 |
--- a/themes/twentyfifteen/content-link.php |
158 |
+++ b/themes/twentyfifteen/content-link.php |
159 |
@@ -15,8 +15,8 @@ |
160 |
|
161 |
<header class="entry-header"> |
162 |
<?php |
163 |
- if ( is_single() ) : |
164 |
- the_title( sprintf( '<h1 class="entry-title"><a href="%s">', esc_url( twentyfifteen_get_link_url() ) ), '</a></h1>' ); |
165 |
+ if ( is_single() ) : |
166 |
+ the_title( sprintf( '<h1 class="entry-title"><a href="%s">', esc_url( twentyfifteen_get_link_url() ) ), '</a></h1>' ); |
167 |
else : |
168 |
the_title( sprintf( '<h2 class="entry-title"><a href="%s">', esc_url( twentyfifteen_get_link_url() ) ), '</a></h2>' ); |
169 |
endif; |
170 |
@@ -27,31 +27,27 @@ |
171 |
<div class="entry-content"> |
172 |
<?php |
173 |
/* translators: %s: Name of current post */ |
174 |
- the_content( |
175 |
- sprintf( |
176 |
- __( 'Continue reading %s', 'twentyfifteen' ), |
177 |
- the_title( '<span class="screen-reader-text">', '</span>', false ) |
178 |
- ) |
179 |
- ); |
180 |
+ the_content( sprintf( |
181 |
+ __( 'Continue reading %s', 'twentyfifteen' ), |
182 |
+ the_title( '<span class="screen-reader-text">', '</span>', false ) |
183 |
+ ) ); |
184 |
|
185 |
- wp_link_pages( |
186 |
- array( |
187 |
- 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfifteen' ) . '</span>', |
188 |
- 'after' => '</div>', |
189 |
- 'link_before' => '<span>', |
190 |
- 'link_after' => '</span>', |
191 |
- 'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%', |
192 |
- 'separator' => '<span class="screen-reader-text">, </span>', |
193 |
- ) |
194 |
- ); |
195 |
+ wp_link_pages( array( |
196 |
+ 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfifteen' ) . '</span>', |
197 |
+ 'after' => '</div>', |
198 |
+ 'link_before' => '<span>', |
199 |
+ 'link_after' => '</span>', |
200 |
+ 'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%', |
201 |
+ 'separator' => '<span class="screen-reader-text">, </span>', |
202 |
+ ) ); |
203 |
?> |
204 |
</div> |
205 |
<!-- .entry-content --> |
206 |
|
207 |
<?php |
208 |
// Author bio. |
209 |
- if ( is_single() && get_the_author_meta( 'description' ) ) : |
210 |
- get_template_part( 'author-bio' ); |
211 |
+ if ( is_single() && get_the_author_meta( 'description' ) ) : |
212 |
+ get_template_part( 'author-bio' ); |
213 |
endif; |
214 |
?> |
215 |
|
216 |
|
217 |
diff --git a/themes/twentyfifteen/content-page.php b/themes/twentyfifteen/content-page.php |
218 |
index 225eaff..7d37daa 100644 |
219 |
--- a/themes/twentyfifteen/content-page.php |
220 |
+++ b/themes/twentyfifteen/content-page.php |
221 |
@@ -21,16 +21,14 @@ |
222 |
<div class="entry-content"> |
223 |
<?php the_content(); ?> |
224 |
<?php |
225 |
- wp_link_pages( |
226 |
- array( |
227 |
- 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfifteen' ) . '</span>', |
228 |
- 'after' => '</div>', |
229 |
- 'link_before' => '<span>', |
230 |
- 'link_after' => '</span>', |
231 |
- 'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%', |
232 |
- 'separator' => '<span class="screen-reader-text">, </span>', |
233 |
- ) |
234 |
- ); |
235 |
+ wp_link_pages( array( |
236 |
+ 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfifteen' ) . '</span>', |
237 |
+ 'after' => '</div>', |
238 |
+ 'link_before' => '<span>', |
239 |
+ 'link_after' => '</span>', |
240 |
+ 'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%', |
241 |
+ 'separator' => '<span class="screen-reader-text">, </span>', |
242 |
+ ) ); |
243 |
?> |
244 |
</div><!-- .entry-content --> |
245 |
|
246 |
|
247 |
diff --git a/themes/twentyfifteen/content.php b/themes/twentyfifteen/content.php |
248 |
index 5ad1580..2475600 100644 |
249 |
--- a/themes/twentyfifteen/content.php |
250 |
+++ b/themes/twentyfifteen/content.php |
251 |
@@ -18,8 +18,8 @@ |
252 |
|
253 |
<header class="entry-header"> |
254 |
<?php |
255 |
- if ( is_single() ) : |
256 |
- the_title( '<h1 class="entry-title">', '</h1>' ); |
257 |
+ if ( is_single() ) : |
258 |
+ the_title( '<h1 class="entry-title">', '</h1>' ); |
259 |
else : |
260 |
the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); |
261 |
endif; |
262 |
@@ -29,30 +29,26 @@ |
263 |
<div class="entry-content"> |
264 |
<?php |
265 |
/* translators: %s: Name of current post */ |
266 |
- the_content( |
267 |
- sprintf( |
268 |
- __( 'Continue reading %s', 'twentyfifteen' ), |
269 |
- the_title( '<span class="screen-reader-text">', '</span>', false ) |
270 |
- ) |
271 |
- ); |
272 |
+ the_content( sprintf( |
273 |
+ __( 'Continue reading %s', 'twentyfifteen' ), |
274 |
+ the_title( '<span class="screen-reader-text">', '</span>', false ) |
275 |
+ ) ); |
276 |
|
277 |
- wp_link_pages( |
278 |
- array( |
279 |
- 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfifteen' ) . '</span>', |
280 |
- 'after' => '</div>', |
281 |
- 'link_before' => '<span>', |
282 |
- 'link_after' => '</span>', |
283 |
- 'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%', |
284 |
- 'separator' => '<span class="screen-reader-text">, </span>', |
285 |
- ) |
286 |
- ); |
287 |
+ wp_link_pages( array( |
288 |
+ 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfifteen' ) . '</span>', |
289 |
+ 'after' => '</div>', |
290 |
+ 'link_before' => '<span>', |
291 |
+ 'link_after' => '</span>', |
292 |
+ 'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%', |
293 |
+ 'separator' => '<span class="screen-reader-text">, </span>', |
294 |
+ ) ); |
295 |
?> |
296 |
</div><!-- .entry-content --> |
297 |
|
298 |
<?php |
299 |
// Author bio. |
300 |
- if ( is_single() && get_the_author_meta( 'description' ) ) : |
301 |
- get_template_part( 'author-bio' ); |
302 |
+ if ( is_single() && get_the_author_meta( 'description' ) ) : |
303 |
+ get_template_part( 'author-bio' ); |
304 |
endif; |
305 |
?> |
306 |
|
307 |
|
308 |
diff --git a/themes/twentyfifteen/css/blocks.css b/themes/twentyfifteen/css/blocks.css |
309 |
new file mode 100644 |
310 |
index 0000000..8256390 |
311 |
--- /dev/null |
312 |
+++ b/themes/twentyfifteen/css/blocks.css |
313 |
@@ -0,0 +1,650 @@ |
314 |
+/* |
315 |
+Theme Name: Twenty Fifteen |
316 |
+Description: Used to style blocks. |
317 |
+*/ |
318 |
+ |
319 |
+/*-------------------------------------------------------------- |
320 |
+>>> TABLE OF CONTENTS: |
321 |
+---------------------------------------------------------------- |
322 |
+1.0 General Block Styles |
323 |
+2.0 Blocks - Common Blocks |
324 |
+3.0 Blocks - Formatting |
325 |
+4.0 Blocks - Layout Elements |
326 |
+5.0 Blocks - Widgets |
327 |
+6.0 Blocks - Colors |
328 |
+--------------------------------------------------------------*/ |
329 |
+ |
330 |
+/*-------------------------------------------------------------- |
331 |
+1.0 General Block Styles |
332 |
+--------------------------------------------------------------*/ |
333 |
+ |
334 |
+/* Captions */ |
335 |
+ |
336 |
+[class^="wp-block-"] figcaption { |
337 |
+ color: #707070; |
338 |
+ font-family: "Noto Sans", sans-serif; |
339 |
+ font-size: 12px; |
340 |
+ line-height: 1.5; |
341 |
+ margin-bottom: 0; |
342 |
+ padding: 0.5em 0; |
343 |
+} |
344 |
+ |
345 |
+@media screen and (min-width: 46.25em) { |
346 |
+ [class^="wp-block-"] figcaption { |
347 |
+ font-size: 14px; |
348 |
+ } |
349 |
+} |
350 |
+ |
351 |
+@media screen and (min-width: 55em) { |
352 |
+ [class^="wp-block-"] figcaption { |
353 |
+ font-size: 16px; |
354 |
+ } |
355 |
+} |
356 |
+ |
357 |
+@media screen and (min-width: 59.6875em) { |
358 |
+ [class^="wp-block-"] figcaption { |
359 |
+ font-size: 12px; |
360 |
+ } |
361 |
+} |
362 |
+ |
363 |
+@media screen and (min-width: 68.75em) { |
364 |
+ [class^="wp-block-"] figcaption { |
365 |
+ font-size: 14px; |
366 |
+ } |
367 |
+} |
368 |
+ |
369 |
+@media screen and (min-width: 77.5em) { |
370 |
+ [class^="wp-block-"] figcaption { |
371 |
+ font-size: 16px; |
372 |
+ } |
373 |
+} |
374 |
+ |
375 |
+/* Alignments */ |
376 |
+ |
377 |
+[class^="wp-block-"].alignleft, |
378 |
+[class^="wp-block-"] .alignleft { |
379 |
+ margin-right: 1em; |
380 |
+} |
381 |
+ |
382 |
+[class^="wp-block-"].alignright, |
383 |
+[class^="wp-block-"] .alignright { |
384 |
+ margin-left: 1em; |
385 |
+} |
386 |
+ |
387 |
+ |
388 |
+/*-------------------------------------------------------------- |
389 |
+2.0 Blocks - Common Blocks |
390 |
+--------------------------------------------------------------*/ |
391 |
+ |
392 |
+/* Paragraph */ |
393 |
+ |
394 |
+p.has-drop-cap:not(:focus)::first-letter { |
395 |
+ font-size: 5em; |
396 |
+} |
397 |
+ |
398 |
+/* Gallery */ |
399 |
+ |
400 |
+.wp-block-gallery { |
401 |
+ margin-bottom: 1.6em; |
402 |
+} |
403 |
+ |
404 |
+/* Audio */ |
405 |
+ |
406 |
+.wp-block-audio audio { |
407 |
+ display: block; |
408 |
+ width: 100%; |
409 |
+} |
410 |
+ |
411 |
+/* Cover */ |
412 |
+ |
413 |
+.wp-block-cover-image .wp-block-cover-image-text, |
414 |
+.wp-block-cover .wp-block-cover-text, |
415 |
+.wp-block-cover-image h2, |
416 |
+.wp-block-cover h2 { |
417 |
+ font-size: 29px; |
418 |
+ line-height: 1.2069; |
419 |
+} |
420 |
+ |
421 |
+/* Quote */ |
422 |
+ |
423 |
+.wp-block-quote, |
424 |
+.wp-block-quote:not(.is-large):not(.is-style-large), |
425 |
+[class^="wp-block-"] blockquote { |
426 |
+ border-color: #707070; |
427 |
+} |
428 |
+ |
429 |
+.wp-block-quote cite, |
430 |
+.wp-block-quote__citation { |
431 |
+ color: #333; |
432 |
+ font-family: "Noto Sans", sans-serif; |
433 |
+ font-size: 15px; |
434 |
+ font-style: normal; |
435 |
+ line-height: 1.6; |
436 |
+ text-transform: none; |
437 |
+} |
438 |
+ |
439 |
+.wp-block-quote em, |
440 |
+.wp-block-quote i { |
441 |
+ font-style: normal; |
442 |
+} |
443 |
+ |
444 |
+.wp-block-quote strong, |
445 |
+.wp-block-quote b { |
446 |
+ font-weight: 400; |
447 |
+} |
448 |
+ |
449 |
+ |
450 |
+@media screen and (min-width: 46.25em) { |
451 |
+ .edit-post-visual-editor .wp-block-quote p { |
452 |
+ font-size: 20px; |
453 |
+ line-height: 1.75; |
454 |
+ } |
455 |
+ |
456 |
+ .wp-block-quote cite, |
457 |
+ .wp-block-quote__citation { |
458 |
+ font-size: 17px; |
459 |
+ line-height: 1.6471; |
460 |
+ } |
461 |
+} |
462 |
+ |
463 |
+@media screen and (min-width: 55em) { |
464 |
+ .edit-post-visual-editor .wp-block-quote p { |
465 |
+ font-size: 22px; |
466 |
+ line-height: 1.8182; |
467 |
+ } |
468 |
+ |
469 |
+ .wp-block-quote cite, |
470 |
+ .wp-block-quote__citation { |
471 |
+ font-size: 19px; |
472 |
+ line-height: 1.6842; |
473 |
+ } |
474 |
+} |
475 |
+ |
476 |
+@media screen and (min-width: 59.6875em) { |
477 |
+ .edit-post-visual-editor .wp-block-quote p { |
478 |
+ font-size: 18px; |
479 |
+ line-height: 1.6667; |
480 |
+ } |
481 |
+ |
482 |
+ .wp-block-quote cite, |
483 |
+ .wp-block-quote__citation { |
484 |
+ font-size: 15px; |
485 |
+ line-height: 1.6; |
486 |
+ } |
487 |
+} |
488 |
+ |
489 |
+@media screen and (min-width: 68.75em) { |
490 |
+ .edit-post-visual-editor .wp-block-quote p { |
491 |
+ font-size: 20px; |
492 |
+ line-height: 1.75; |
493 |
+ } |
494 |
+ |
495 |
+ .wp-block-quote cite, |
496 |
+ .wp-block-quote__citation { |
497 |
+ font-size: 17px; |
498 |
+ line-height: 1.6471; |
499 |
+ } |
500 |
+} |
501 |
+ |
502 |
+@media screen and (min-width: 77.5em) { |
503 |
+ .edit-post-visual-editor .wp-block-quote p { |
504 |
+ font-size: 22px; |
505 |
+ line-height: 1.8182; |
506 |
+ } |
507 |
+ |
508 |
+ .wp-block-quote cite, |
509 |
+ .wp-block-quote__citation { |
510 |
+ font-size: 19px; |
511 |
+ line-height: 1.6842; |
512 |
+ } |
513 |
+} |
514 |
+ |
515 |
+/* Cover Image */ |
516 |
+ |
517 |
+.wp-block-cover-image.aligncenter, |
518 |
+.wp-block-cover.aligncenter, |
519 |
+.wp-block-cover-image.alignleft, |
520 |
+.wp-block-cover.alignleft, |
521 |
+.wp-block-cover-image.alignright, |
522 |
+.wp-block-cover.alignright { |
523 |
+ display: flex; |
524 |
+} |
525 |
+ |
526 |
+/* File */ |
527 |
+ |
528 |
+.wp-block-file a.wp-block-file__button { |
529 |
+ background-color: #333; |
530 |
+ border: 0; |
531 |
+ border-radius: 0; |
532 |
+ color: #fff; |
533 |
+ cursor: pointer; |
534 |
+ font-family: "Noto Sans", sans-serif; |
535 |
+ font-size: 12px; |
536 |
+ font-weight: 700; |
537 |
+ line-height: 1.5; |
538 |
+ padding: 0.7917em 1.5em; |
539 |
+ text-transform: uppercase; |
540 |
+ vertical-align: baseline; |
541 |
+} |
542 |
+ |
543 |
+.wp-block-file a.wp-block-file__button:hover, |
544 |
+.wp-block-file a.wp-block-file__button:focus { |
545 |
+ background-color: #707070; |
546 |
+ background-color: rgba(51, 51, 51, 0.7); |
547 |
+ outline: 0; |
548 |
+} |
549 |
+ |
550 |
+.rtl .wp-block-file * + .wp-block-file__button { |
551 |
+ margin-left: 0.75em; |
552 |
+ margin-right: 0; |
553 |
+} |
554 |
+ |
555 |
+@media screen and (min-width: 46.25em) { |
556 |
+ .wp-block-file a.wp-block-file__button { |
557 |
+ font-size: 14px; |
558 |
+ font-size: 1.4rem; |
559 |
+ padding: 0.8214em 1.6429em; |
560 |
+ } |
561 |
+} |
562 |
+ |
563 |
+@media screen and (min-width: 55em) { |
564 |
+ .wp-block-file a.wp-block-file__button { |
565 |
+ font-size: 16px; |
566 |
+ font-size: 1.6rem; |
567 |
+ padding: 0.8125em 1.625em; |
568 |
+ } |
569 |
+} |
570 |
+ |
571 |
+@media screen and (min-width: 59.6875em) { |
572 |
+ .wp-block-file a.wp-block-file__button { |
573 |
+ font-size: 12px; |
574 |
+ font-size: 1.2rem; |
575 |
+ padding: 0.7917em 1.5833em; |
576 |
+ } |
577 |
+} |
578 |
+ |
579 |
+@media screen and (min-width: 68.75em) { |
580 |
+ .wp-block-file a.wp-block-file__button { |
581 |
+ font-size: 14px; |
582 |
+ font-size: 1.4rem; |
583 |
+ padding: 0.8214em 1.5714em; |
584 |
+ } |
585 |
+} |
586 |
+ |
587 |
+@media screen and (min-width: 77.5em) { |
588 |
+ .wp-block-file a.wp-block-file__button { |
589 |
+ font-size: 16px; |
590 |
+ font-size: 1.6rem; |
591 |
+ padding: 0.8125em 1.625em; |
592 |
+ } |
593 |
+} |
594 |
+ |
595 |
+/*-------------------------------------------------------------- |
596 |
+3.0 Blocks - Formatting |
597 |
+--------------------------------------------------------------*/ |
598 |
+ |
599 |
+/* Code */ |
600 |
+ |
601 |
+.wp-block-code { |
602 |
+ background-color: transparent; |
603 |
+ border: 0; |
604 |
+ padding: 0; |
605 |
+} |
606 |
+ |
607 |
+.wp-block-code code { |
608 |
+ font-family: Inconsolata, monospace; |
609 |
+ font-size: inherit; |
610 |
+} |
611 |
+ |
612 |
+/* Preformatted */ |
613 |
+ |
614 |
+.wp-block-preformatted { |
615 |
+ background-color: rgba(0, 0, 0, 0.01); |
616 |
+ border: 1px solid #eaeaea; |
617 |
+ line-height: 1.2; |
618 |
+ margin-bottom: 1.6em; |
619 |
+ max-width: 100%; |
620 |
+ overflow: auto; |
621 |
+ padding: 0.8em; |
622 |
+ white-space: pre; |
623 |
+ white-space: pre-wrap; |
624 |
+ word-wrap: break-word; |
625 |
+} |
626 |
+ |
627 |
+/* Pullquote */ |
628 |
+ |
629 |
+.wp-block-pullquote { |
630 |
+ border: 0; |
631 |
+} |
632 |
+ |
633 |
+.wp-block-pullquote blockquote { |
634 |
+ border: 0; |
635 |
+ margin-left: 0; |
636 |
+ margin-right: 0; |
637 |
+ padding-left: 0; |
638 |
+ padding-right: 0; |
639 |
+} |
640 |
+ |
641 |
+.wp-block-pullquote cite { |
642 |
+ color: #333; |
643 |
+ font-family: "Noto Sans", sans-serif; |
644 |
+ font-size: 15px; |
645 |
+ font-style: normal; |
646 |
+ line-height: 1.6; |
647 |
+ text-transform: none; |
648 |
+} |
649 |
+ |
650 |
+@media screen and (min-width: 46.25em) { |
651 |
+ .wp-block-pullquote cite { |
652 |
+ font-size: 17px; |
653 |
+ line-height: 1.6471; |
654 |
+ } |
655 |
+} |
656 |
+ |
657 |
+@media screen and (min-width: 55em) { |
658 |
+ .wp-block-pullquote cite { |
659 |
+ font-size: 19px; |
660 |
+ line-height: 1.6842; |
661 |
+ } |
662 |
+} |
663 |
+ |
664 |
+@media screen and (min-width: 59.6875em) { |
665 |
+ .wp-block-pullquote cite { |
666 |
+ font-size: 15px; |
667 |
+ line-height: 1.6; |
668 |
+ } |
669 |
+} |
670 |
+ |
671 |
+@media screen and (min-width: 68.75em) { |
672 |
+ .wp-block-pullquote cite { |
673 |
+ font-size: 17px; |
674 |
+ line-height: 1.6471; |
675 |
+ } |
676 |
+} |
677 |
+ |
678 |
+@media screen and (min-width: 77.5em) { |
679 |
+ .wp-block-pullquote cite { |
680 |
+ font-size: 19px; |
681 |
+ line-height: 1.6842; |
682 |
+ } |
683 |
+} |
684 |
+ |
685 |
+/* Table */ |
686 |
+ |
687 |
+.wp-block-table th, |
688 |
+.wp-block-table td { |
689 |
+ border-color: #eaeaea; |
690 |
+ border-width: 0 1px 1px 0; |
691 |
+} |
692 |
+ |
693 |
+/*-------------------------------------------------------------- |
694 |
+4.0 Blocks - Layout Elements |
695 |
+--------------------------------------------------------------*/ |
696 |
+ |
697 |
+/* Button */ |
698 |
+ |
699 |
+.wp-block-button .wp-block-button__link { |
700 |
+ border: 0; |
701 |
+ border-radius: 0; |
702 |
+ cursor: pointer; |
703 |
+ font-family: "Noto Sans", sans-serif; |
704 |
+ font-size: 12px; |
705 |
+ font-size: 1.2rem; |
706 |
+ font-weight: 700; |
707 |
+ line-height: 1.5; |
708 |
+ padding: 0.7917em 1.5em; |
709 |
+ text-transform: uppercase; |
710 |
+ vertical-align: baseline; |
711 |
+} |
712 |
+ |
713 |
+.wp-block-button__link { |
714 |
+ background-color: #333; |
715 |
+ color: #fff; |
716 |
+} |
717 |
+ |
718 |
+.wp-block-button__link:hover, |
719 |
+.wp-block-button__link:focus { |
720 |
+ background-color: #707070; |
721 |
+ background-color: rgba(51, 51, 51, 0.7); |
722 |
+ color: #fff; |
723 |
+} |
724 |
+ |
725 |
+@media screen and (min-width: 46.25em) { |
726 |
+ .wp-block-button .wp-block-button__link { |
727 |
+ font-size: 14px; |
728 |
+ font-size: 1.4rem; |
729 |
+ padding: 0.8214em 1.6429em; |
730 |
+ } |
731 |
+} |
732 |
+ |
733 |
+@media screen and (min-width: 55em) { |
734 |
+ .wp-block-button .wp-block-button__link { |
735 |
+ font-size: 16px; |
736 |
+ font-size: 1.6rem; |
737 |
+ padding: 0.8125em 1.625em; |
738 |
+ } |
739 |
+} |
740 |
+ |
741 |
+@media screen and (min-width: 59.6875em) { |
742 |
+ .wp-block-button .wp-block-button__link { |
743 |
+ font-size: 12px; |
744 |
+ font-size: 1.2rem; |
745 |
+ padding: 0.7917em 1.5833em; |
746 |
+ } |
747 |
+} |
748 |
+ |
749 |
+@media screen and (min-width: 68.75em) { |
750 |
+ .wp-block-button .wp-block-button__link { |
751 |
+ font-size: 14px; |
752 |
+ font-size: 1.4rem; |
753 |
+ padding: 0.8214em 1.5714em; |
754 |
+ } |
755 |
+} |
756 |
+ |
757 |
+@media screen and (min-width: 77.5em) { |
758 |
+ .wp-block-button .wp-block-button__link { |
759 |
+ font-size: 16px; |
760 |
+ font-size: 1.6rem; |
761 |
+ padding: 0.8125em 1.625em; |
762 |
+ } |
763 |
+} |
764 |
+ |
765 |
+/* Seperators */ |
766 |
+ |
767 |
+.wp-block-separator { |
768 |
+ border: 0; |
769 |
+ max-width: 100px; |
770 |
+} |
771 |
+ |
772 |
+.wp-block-separator.is-style-wide { |
773 |
+ max-width: 100%; |
774 |
+} |
775 |
+ |
776 |
+/* Media & Text */ |
777 |
+ |
778 |
+.wp-block-media-text { |
779 |
+ margin-bottom: 1.6em; |
780 |
+} |
781 |
+ |
782 |
+.wp-block-media-text *:last-child { |
783 |
+ margin-bottom: 0; |
784 |
+} |
785 |
+ |
786 |
+/*-------------------------------------------------------------- |
787 |
+5.0 Blocks - Widgets |
788 |
+--------------------------------------------------------------*/ |
789 |
+ |
790 |
+/* Archives, Categories & Latest Posts */ |
791 |
+ |
792 |
+.wp-block-archives.aligncenter, |
793 |
+.wp-block-categories.aligncenter, |
794 |
+.wp-block-latest-posts.aligncenter { |
795 |
+ list-style-position: inside; |
796 |
+ text-align: center; |
797 |
+} |
798 |
+ |
799 |
+/* Latest Comments */ |
800 |
+ |
801 |
+.wp-block-latest-comments { |
802 |
+ margin: 0; |
803 |
+} |
804 |
+ |
805 |
+.wp-block-latest-comments__comment, |
806 |
+.wp-block-latest-comments__comment-excerpt, |
807 |
+.wp-block-latest-comments__comment-excerpt p { |
808 |
+ font-size: inherit; |
809 |
+} |
810 |
+ |
811 |
+.wp-block-latest-comments__comment-meta a { |
812 |
+ border-bottom-color: transparent; |
813 |
+ font-weight: 700; |
814 |
+} |
815 |
+ |
816 |
+.wp-block-latest-comments__comment-excerpt p:last-child { |
817 |
+ margin-bottom: 0; |
818 |
+} |
819 |
+ |
820 |
+.wp-block-latest-comments__comment-date { |
821 |
+ color: #707070; |
822 |
+ font-family: "Noto Sans", sans-serif; |
823 |
+ font-size: 12px; |
824 |
+ line-height: 1.5; |
825 |
+ margin-bottom: 1.6em; |
826 |
+} |
827 |
+ |
828 |
+@media screen and (min-width: 46.25em) { |
829 |
+ .wp-block-latest-comments__comment-date { |
830 |
+ font-size: 14px; |
831 |
+ } |
832 |
+} |
833 |
+ |
834 |
+@media screen and (min-width: 55em) { |
835 |
+ .wp-block-latest-comments__comment-date { |
836 |
+ font-size: 16px; |
837 |
+ } |
838 |
+} |
839 |
+ |
840 |
+@media screen and (min-width: 59.6875em) { |
841 |
+ .wp-block-latest-comments__comment-date { |
842 |
+ font-size: 12px; |
843 |
+ } |
844 |
+} |
845 |
+ |
846 |
+@media screen and (min-width: 68.75em) { |
847 |
+ .wp-block-latest-comments__comment-date { |
848 |
+ font-size: 14px; |
849 |
+ } |
850 |
+} |
851 |
+ |
852 |
+@media screen and (min-width: 77.5em) { |
853 |
+ .wp-block-latest-comments__comment-date { |
854 |
+ font-size: 16px; |
855 |
+ } |
856 |
+} |
857 |
+ |
858 |
+.wp-block-latest-comments .wp-block-latest-comments__comment { |
859 |
+ border-top: 1px solid #eaeaea; |
860 |
+ border-top: 1px solid rgba(51, 51, 51, 0.1); |
861 |
+ margin-bottom: 0; |
862 |
+ padding: 1.6em 0; |
863 |
+} |
864 |
+ |
865 |
+/*-------------------------------------------------------------- |
866 |
+6.0 Blocks - Colors |
867 |
+--------------------------------------------------------------*/ |
868 |
+ |
869 |
+.has-dark-gray-color { |
870 |
+ color: #111; |
871 |
+} |
872 |
+ |
873 |
+.has-dark-gray-background-color { |
874 |
+ background-color: #111; |
875 |
+} |
876 |
+ |
877 |
+.has-light-gray-color { |
878 |
+ color: #f1f1f1; |
879 |
+} |
880 |
+ |
881 |
+.has-light-gray-background-color { |
882 |
+ background-color: #f1f1f1; |
883 |
+} |
884 |
+ |
885 |
+.has-white-color { |
886 |
+ color: #fff; |
887 |
+} |
888 |
+ |
889 |
+.has-white-background-color { |
890 |
+ background-color: #fff; |
891 |
+} |
892 |
+ |
893 |
+.has-yellow-color { |
894 |
+ color: #f4ca16; |
895 |
+} |
896 |
+ |
897 |
+.has-yellow-background-color { |
898 |
+ background-color: #f4ca16; |
899 |
+} |
900 |
+ |
901 |
+.has-dark-brown-color { |
902 |
+ color: #352712; |
903 |
+} |
904 |
+ |
905 |
+.has-dark-brown-background-color { |
906 |
+ background-color: #352712; |
907 |
+} |
908 |
+ |
909 |
+.has-medium-pink-color { |
910 |
+ color: #e53b51; |
911 |
+} |
912 |
+ |
913 |
+.has-medium-pink-background-color { |
914 |
+ background-color: #e53b51; |
915 |
+} |
916 |
+ |
917 |
+.has-light-pink-color { |
918 |
+ color: #ffe5d1; |
919 |
+} |
920 |
+ |
921 |
+.has-light-pink-background-color { |
922 |
+ background-color: #ffe5d1; |
923 |
+} |
924 |
+ |
925 |
+.has-dark-purple-color { |
926 |
+ color: #2e2256; |
927 |
+} |
928 |
+ |
929 |
+.has-dark-purple-background-color { |
930 |
+ background-color: #2e2256; |
931 |
+} |
932 |
+ |
933 |
+.has-purple-color { |
934 |
+ color: #674970; |
935 |
+} |
936 |
+ |
937 |
+.has-purple-background-color { |
938 |
+ background-color: #674970; |
939 |
+} |
940 |
+ |
941 |
+.has-blue-gray-color { |
942 |
+ color: #22313f; |
943 |
+} |
944 |
+ |
945 |
+.has-blue-gray-background-color { |
946 |
+ background-color: #22313f; |
947 |
+} |
948 |
+ |
949 |
+.has-bright-blue-color { |
950 |
+ color: #55c3dc; |
951 |
+} |
952 |
+ |
953 |
+.has-bright-blue-background-color { |
954 |
+ background-color: #55c3dc; |
955 |
+} |
956 |
+ |
957 |
+.has-light-blue-color { |
958 |
+ color: #e9f2f9; |
959 |
+} |
960 |
+ |
961 |
+.has-light-blue-background-color { |
962 |
+ background-color: #e9f2f9; |
963 |
+} |
964 |
|
965 |
diff --git a/themes/twentyfifteen/css/editor-blocks.css b/themes/twentyfifteen/css/editor-blocks.css |
966 |
new file mode 100644 |
967 |
index 0000000..6076cab |
968 |
--- /dev/null |
969 |
+++ b/themes/twentyfifteen/css/editor-blocks.css |
970 |
@@ -0,0 +1,866 @@ |
971 |
+/* |
972 |
+Theme Name: Twenty Fifteen |
973 |
+Description: Used to style blocks in the editor. |
974 |
+*/ |
975 |
+ |
976 |
+/*-------------------------------------------------------------- |
977 |
+>>> TABLE OF CONTENTS: |
978 |
+---------------------------------------------------------------- |
979 |
+1.0 General Typography |
980 |
+2.0 General Block Styles |
981 |
+3.0 Blocks - Common Blocks |
982 |
+4.0 Blocks - Formatting |
983 |
+5.0 Blocks - Layout Elements |
984 |
+6.0 Blocks - Widgets |
985 |
+--------------------------------------------------------------*/ |
986 |
+ |
987 |
+/*-------------------------------------------------------------- |
988 |
+1.0 General Typography |
989 |
+--------------------------------------------------------------*/ |
990 |
+ |
991 |
+.edit-post-visual-editor .editor-block-list__block, |
992 |
+.edit-post-visual-editor .editor-block-list__block p, |
993 |
+.editor-default-block-appender textarea.editor-default-block-appender__content { |
994 |
+ font-size: 15px; |
995 |
+ line-height: 1.6; |
996 |
+} |
997 |
+ |
998 |
+.edit-post-visual-editor .editor-block-list__block { |
999 |
+ color: #333; |
1000 |
+} |
1001 |
+ |
1002 |
+.editor-post-title__block .editor-post-title__input { |
1003 |
+ color: #333; |
1004 |
+ font-size: 26px; |
1005 |
+ line-height: 1.1538; |
1006 |
+} |
1007 |
+ |
1008 |
+.edit-post-visual-editor h1, |
1009 |
+.edit-post-visual-editor h2, |
1010 |
+.edit-post-visual-editor h3, |
1011 |
+.edit-post-visual-editor h4, |
1012 |
+.edit-post-visual-editor h5, |
1013 |
+.edit-post-visual-editor h6 { |
1014 |
+ clear: both; |
1015 |
+ font-weight: 700; |
1016 |
+} |
1017 |
+ |
1018 |
+.edit-post-visual-editor .editor-block-list__block h1 { |
1019 |
+ font-size: 26px; |
1020 |
+ line-height: 1.1538; |
1021 |
+ padding: 0.9em 0 0.45em; |
1022 |
+} |
1023 |
+ |
1024 |
+.edit-post-visual-editor .editor-block-list__block h2 { |
1025 |
+ font-size: 22px; |
1026 |
+ line-height: 1.3636; |
1027 |
+ padding: 1em 0 0.5em; |
1028 |
+} |
1029 |
+ |
1030 |
+.edit-post-visual-editor .editor-block-list__block h3 { |
1031 |
+ font-size: 18px; |
1032 |
+ line-height: 1.3333; |
1033 |
+ padding: 1.3em 0 0.65em; |
1034 |
+} |
1035 |
+ |
1036 |
+.edit-post-visual-editor .editor-block-list__block h4, |
1037 |
+.edit-post-visual-editor .editor-block-list__block h5, |
1038 |
+.edit-post-visual-editor .editor-block-list__block h6 { |
1039 |
+ font-size: 15px; |
1040 |
+ line-height: 1.2; |
1041 |
+ padding: 0.8em 0 0.4em; |
1042 |
+} |
1043 |
+ |
1044 |
+.edit-post-visual-editor .editor-block-list__block h5, |
1045 |
+.edit-post-visual-editor .editor-block-list__block h6 { |
1046 |
+ letter-spacing: 0.1em; |
1047 |
+ text-transform: uppercase; |
1048 |
+} |
1049 |
+ |
1050 |
+.edit-post-visual-editor > h1:first-child, |
1051 |
+.edit-post-visual-editor > h2:first-child, |
1052 |
+.edit-post-visual-editor > h3:first-child, |
1053 |
+.edit-post-visual-editor > h4:first-child, |
1054 |
+.edit-post-visual-editor > h5:first-child, |
1055 |
+.edit-post-visual-editor > h6:first-child { |
1056 |
+ padding-top: 0; |
1057 |
+} |
1058 |
+ |
1059 |
+@media screen and (min-width: 46.25em) { |
1060 |
+ .edit-post-visual-editor .editor-block-list__block, |
1061 |
+ .edit-post-visual-editor .editor-block-list__block p, |
1062 |
+ .editor-default-block-appender input[type="text"].editor-default-block-appender__content { |
1063 |
+ font-size: 17px; |
1064 |
+ line-height: 1.6471; |
1065 |
+ } |
1066 |
+ |
1067 |
+ .editor-post-title__block .editor-post-title__input { |
1068 |
+ font-size: 35px; |
1069 |
+ line-height: 1.2; |
1070 |
+ } |
1071 |
+ |
1072 |
+ .edit-post-visual-editor .editor-block-list__block h1 { |
1073 |
+ font-size: 35px; |
1074 |
+ line-height: 1.2; |
1075 |
+ padding: 0.8em 0 0.4em; |
1076 |
+ } |
1077 |
+ |
1078 |
+ .edit-post-visual-editor .editor-block-list__block h2 { |
1079 |
+ font-size: 29px; |
1080 |
+ line-height: 1.2069; |
1081 |
+ padding: 1.0em 0 0.5em; |
1082 |
+ } |
1083 |
+ |
1084 |
+ .edit-post-visual-editor .editor-block-list__block h3 { |
1085 |
+ font-size: 24px; |
1086 |
+ line-height: 1.1667; |
1087 |
+ padding: 1.15em 0 0.6em; |
1088 |
+ } |
1089 |
+ |
1090 |
+ .edit-post-visual-editor .editor-block-list__block h4 { |
1091 |
+ font-size: 20px; |
1092 |
+ line-height: 1.4; |
1093 |
+ padding: .7em 0 0.35em; |
1094 |
+ } |
1095 |
+ |
1096 |
+ .edit-post-visual-editor .editor-block-list__block h5, |
1097 |
+ .edit-post-visual-editor .editor-block-list__block h6 { |
1098 |
+ font-size: 17px; |
1099 |
+ line-height: 1.2353; |
1100 |
+ padding: 0.8em 0 0.4em; |
1101 |
+ } |
1102 |
+} |
1103 |
+ |
1104 |
+@media screen and (min-width: 55em) { |
1105 |
+ .edit-post-visual-editor .editor-block-list__block, |
1106 |
+ .edit-post-visual-editor .editor-block-list__block p, |
1107 |
+ .editor-default-block-appender input[type="text"].editor-default-block-appender__content { |
1108 |
+ font-size: 19px; |
1109 |
+ line-height: 1.6842; |
1110 |
+ } |
1111 |
+ |
1112 |
+ .editor-post-title__block .editor-post-title__input { |
1113 |
+ font-size: 39px; |
1114 |
+ line-height: 1.2308; |
1115 |
+ } |
1116 |
+ |
1117 |
+ .edit-post-visual-editor .editor-block-list__block h1 { |
1118 |
+ font-size: 39px; |
1119 |
+ line-height: 1.2308; |
1120 |
+ padding: 0.8em 0 0.4em; |
1121 |
+ } |
1122 |
+ |
1123 |
+ .edit-post-visual-editor .editor-block-list__block h2 { |
1124 |
+ font-size: 32px; |
1125 |
+ line-height: 1.25; |
1126 |
+ padding: 1em 0 0.5em; |
1127 |
+ } |
1128 |
+ |
1129 |
+ .edit-post-visual-editor .editor-block-list__block h3 { |
1130 |
+ font-size: 27px; |
1131 |
+ line-height: 1.1852; |
1132 |
+ padding: 1.2em 0 0.6em; |
1133 |
+ } |
1134 |
+ |
1135 |
+ .edit-post-visual-editor .editor-block-list__block h4 { |
1136 |
+ font-size: 22px; |
1137 |
+ line-height: 1.4545; |
1138 |
+ padding: 0.75em 0 0.35em; |
1139 |
+ } |
1140 |
+ |
1141 |
+ .edit-post-visual-editor .editor-block-list__block h5, |
1142 |
+ .edit-post-visual-editor .editor-block-list__block h6 { |
1143 |
+ font-size: 19px; |
1144 |
+ line-height: 1.2632; |
1145 |
+ padding: 0.8em 0 0.4em; |
1146 |
+ } |
1147 |
+} |
1148 |
+ |
1149 |
+@media screen and (min-width: 59.6875em) { |
1150 |
+ .edit-post-visual-editor .editor-block-list__block, |
1151 |
+ .edit-post-visual-editor .editor-block-list__block p, |
1152 |
+ .editor-default-block-appender input[type="text"].editor-default-block-appender__content { |
1153 |
+ font-size: 15px; |
1154 |
+ line-height: 1.6; |
1155 |
+ } |
1156 |
+ |
1157 |
+ .editor-post-title__block .editor-post-title__input { |
1158 |
+ font-size: 31px; |
1159 |
+ line-height: 1.1613; |
1160 |
+ } |
1161 |
+ |
1162 |
+ .edit-post-visual-editor .editor-block-list__block h1 { |
1163 |
+ font-size: 31px; |
1164 |
+ line-height: 1.1613; |
1165 |
+ padding: 0.8em 0 0.4em; |
1166 |
+ } |
1167 |
+ |
1168 |
+ .edit-post-visual-editor .editor-block-list__block h2 { |
1169 |
+ font-size: 26px; |
1170 |
+ line-height: 1.3846; |
1171 |
+ padding: 0.9em 0 0.45em; |
1172 |
+ } |
1173 |
+ |
1174 |
+ .edit-post-visual-editor .editor-block-list__block h3 { |
1175 |
+ font-size: 22px; |
1176 |
+ line-height: 1.3636; |
1177 |
+ padding: 1.1em 0 0.55em; |
1178 |
+ } |
1179 |
+ |
1180 |
+ .edit-post-visual-editor .editor-block-list__block h4 { |
1181 |
+ font-size: 18px; |
1182 |
+ line-height: 1.3333; |
1183 |
+ padding: 0.65em 0 0.3em; |
1184 |
+ } |
1185 |
+ |
1186 |
+ .edit-post-visual-editor .editor-block-list__block h5, |
1187 |
+ .edit-post-visual-editor .editor-block-list__block h6 { |
1188 |
+ font-size: 15px; |
1189 |
+ line-height: 1.2; |
1190 |
+ padding: 0.8em 0 0.4em; |
1191 |
+ } |
1192 |
+} |
1193 |
+ |
1194 |
+@media screen and (min-width: 68.75em) { |
1195 |
+ .edit-post-visual-editor .editor-block-list__block, |
1196 |
+ .edit-post-visual-editor .editor-block-list__block p, |
1197 |
+ .editor-default-block-appender input[type="text"].editor-default-block-appender__content { |
1198 |
+ font-size: 17px; |
1199 |
+ line-height: 1.6471; |
1200 |
+ } |
1201 |
+ |
1202 |
+ .editor-post-title__block .editor-post-title__input { |
1203 |
+ font-size: 35px; |
1204 |
+ line-height: 1.2; |
1205 |
+ } |
1206 |
+ |
1207 |
+ .edit-post-visual-editor .editor-block-list__block h1 { |
1208 |
+ font-size: 35px; |
1209 |
+ line-height: 1.2; |
1210 |
+ padding: 0.8em 0 0.4em; |
1211 |
+ } |
1212 |
+ |
1213 |
+ .edit-post-visual-editor .editor-block-list__block h2 { |
1214 |
+ font-size: 29px; |
1215 |
+ line-height: 1.2069; |
1216 |
+ padding: 1.0em 0 0.5em; |
1217 |
+ } |
1218 |
+ |
1219 |
+ .edit-post-visual-editor .editor-block-list__block h3 { |
1220 |
+ font-size: 24px; |
1221 |
+ line-height: 1.1667; |
1222 |
+ padding: 1.2em 0 0.6em; |
1223 |
+ } |
1224 |
+ |
1225 |
+ .edit-post-visual-editor .editor-block-list__block h4 { |
1226 |
+ font-size: 20px; |
1227 |
+ line-height: 1.4; |
1228 |
+ padding: 0.7em 0 0.35em; |
1229 |
+ } |
1230 |
+ |
1231 |
+ .edit-post-visual-editor .editor-block-list__block h5, |
1232 |
+ .edit-post-visual-editor .editor-block-list__block h6 { |
1233 |
+ font-size: 17px; |
1234 |
+ line-height: 1.2353; |
1235 |
+ padding: 0.8em 0 0.4em; |
1236 |
+ } |
1237 |
+} |
1238 |
+ |
1239 |
+@media screen and (min-width: 77.5em) { |
1240 |
+ .edit-post-visual-editor .editor-block-list__block, |
1241 |
+ .edit-post-visual-editor .editor-block-list__block p, |
1242 |
+ .editor-default-block-appender input[type="text"].editor-default-block-appender__content { |
1243 |
+ font-size: 19px; |
1244 |
+ line-height: 1.6842; |
1245 |
+ } |
1246 |
+ |
1247 |
+ .editor-post-title__block .editor-post-title__input { |
1248 |
+ font-size: 39px; |
1249 |
+ line-height: 1.2308; |
1250 |
+ } |
1251 |
+ |
1252 |
+ .edit-post-visual-editor .editor-block-list__block h3 { |
1253 |
+ font-size: 27px; |
1254 |
+ line-height: 1.1852; |
1255 |
+ padding: 1.2em 0 0.6em; |
1256 |
+ } |
1257 |
+ |
1258 |
+ .edit-post-visual-editor .editor-block-list__block h4 { |
1259 |
+ font-size: 22px; |
1260 |
+ line-height: 1.4545; |
1261 |
+ padding: 0.75em 0 0.35em; |
1262 |
+ } |
1263 |
+ |
1264 |
+ .edit-post-visual-editor .editor-block-list__block h5, |
1265 |
+ .edit-post-visual-editor .editor-block-list__block h6 { |
1266 |
+ font-size: 19px; |
1267 |
+ line-height: 1.2632; |
1268 |
+ padding: 0.85em 0 0.45em; |
1269 |
+ } |
1270 |
+} |
1271 |
+ |
1272 |
+/*-------------------------------------------------------------- |
1273 |
+2.0 General Block Styles |
1274 |
+--------------------------------------------------------------*/ |
1275 |
+ |
1276 |
+/* Main column width */ |
1277 |
+ |
1278 |
+.editor-styles-wrapper { |
1279 |
+ max-width: 100% !important; /* Override where editor-style.css is affecting this. */ |
1280 |
+} |
1281 |
+ |
1282 |
+.wp-block { |
1283 |
+ max-width: 690px; /* 660px + 30px to account for padding. */ |
1284 |
+} |
1285 |
+ |
1286 |
+/* Link styles */ |
1287 |
+ |
1288 |
+.edit-post-visual-editor a, |
1289 |
+.editor-block-list__block a, |
1290 |
+.wp-block-freeform.block-library-rich-text__tinymce a { |
1291 |
+ border-bottom: 1px solid #333; |
1292 |
+ color: #333; |
1293 |
+ text-decoration: none; |
1294 |
+} |
1295 |
+ |
1296 |
+/* List styles */ |
1297 |
+ |
1298 |
+.edit-post-visual-editor ul:not(.wp-block-gallery), |
1299 |
+.editor-block-list__block ul:not(.wp-block-gallery), |
1300 |
+.block-library-list ul, |
1301 |
+.edit-post-visual-editor ol, |
1302 |
+.editor-block-list__block ol, |
1303 |
+.block-library-list ol { |
1304 |
+ margin: 0 0 1.6em 1.3333em; |
1305 |
+ padding: 0; |
1306 |
+} |
1307 |
+ |
1308 |
+.block-library-list .editor-rich-text__tinymce { |
1309 |
+ padding: 0; |
1310 |
+} |
1311 |
+ |
1312 |
+.edit-post-visual-editor ul:not(.wp-block-gallery), |
1313 |
+.editor-block-list__block ul:not(.wp-block-gallery), |
1314 |
+.block-library-list ul { |
1315 |
+ list-style: disc; |
1316 |
+} |
1317 |
+ |
1318 |
+.edit-post-visual-editor ol, |
1319 |
+.editor-block-list__block ol, |
1320 |
+.block-library-list ol { |
1321 |
+ list-style: decimal; |
1322 |
+} |
1323 |
+ |
1324 |
+.edit-post-visual-editor ul:not(.wp-block-gallery) li > ul, |
1325 |
+.editor-block-list__block ul:not(.wp-block-gallery) li > ul, |
1326 |
+.block-library-list li > ul, |
1327 |
+.edit-post-visual-editor li > ol, |
1328 |
+.editor-block-list__block li > ol, |
1329 |
+.block-library-list li > ol { |
1330 |
+ margin-bottom: 0; |
1331 |
+} |
1332 |
+ |
1333 |
+.wp-block-freeform.block-library-rich-text__tinymce li, |
1334 |
+.editor-block-list__block li { |
1335 |
+ margin-bottom: 0; |
1336 |
+} |
1337 |
+ |
1338 |
+.rtl .edit-post-visual-editor ul:not(.wp-block-gallery), |
1339 |
+.rtl .editor-block-list__block ul:not(.wp-block-gallery), |
1340 |
+.rtl .block-library-list ul, |
1341 |
+.rtl .edit-post-visual-editor ol, |
1342 |
+.rtl .editor-block-list__block ol, |
1343 |
+.rtl .block-library-list ol { |
1344 |
+ margin-left: 0; |
1345 |
+ margin-right: 1.3333em; |
1346 |
+} |
1347 |
+ |
1348 |
+/* Quote */ |
1349 |
+ |
1350 |
+.rtl .editor-block-list__block blockquote { |
1351 |
+ border-left: 0; |
1352 |
+ padding-left: 0; |
1353 |
+} |
1354 |
+ |
1355 |
+/* Captions */ |
1356 |
+ |
1357 |
+[class^="wp-block-"] figcaption { |
1358 |
+ color: #707070; |
1359 |
+ font-family: "Noto Sans", sans-serif; |
1360 |
+ font-size: 12px; |
1361 |
+ margin-bottom: 0; |
1362 |
+ padding: 0.5em 0; |
1363 |
+} |
1364 |
+ |
1365 |
+.editor-block-list__block [class^="wp-block-"] figcaption { |
1366 |
+ line-height: 1.5; |
1367 |
+} |
1368 |
+ |
1369 |
+@media screen and (min-width: 46.25em) { |
1370 |
+ [class^="wp-block-"] figcaption { |
1371 |
+ font-size: 14px; |
1372 |
+ } |
1373 |
+} |
1374 |
+ |
1375 |
+@media screen and (min-width: 55em) { |
1376 |
+ [class^="wp-block-"] figcaption { |
1377 |
+ font-size: 16px; |
1378 |
+ } |
1379 |
+} |
1380 |
+ |
1381 |
+@media screen and (min-width: 59.6875em) { |
1382 |
+ [class^="wp-block-"] figcaption { |
1383 |
+ font-size: 12px; |
1384 |
+ } |
1385 |
+} |
1386 |
+ |
1387 |
+@media screen and (min-width: 68.75em) { |
1388 |
+ [class^="wp-block-"] figcaption { |
1389 |
+ font-size: 14px; |
1390 |
+ } |
1391 |
+} |
1392 |
+ |
1393 |
+@media screen and (min-width: 77.5em) { |
1394 |
+ [class^="wp-block-"] figcaption { |
1395 |
+ font-size: 16px; |
1396 |
+ } |
1397 |
+} |
1398 |
+ |
1399 |
+/* Pre */ |
1400 |
+ |
1401 |
+[class^="wp-block-"] pre { |
1402 |
+ font-size: inherit; |
1403 |
+} |
1404 |
+ |
1405 |
+/* Alignments */ |
1406 |
+ |
1407 |
+.wp-block-quote.alignright, |
1408 |
+.wp-block-freeform.block-library-rich-text__tinymce .alignright { |
1409 |
+ margin: 0.4211em 0 1.6842em 1.6842em; |
1410 |
+} |
1411 |
+ |
1412 |
+.wp-block-quote.alignleft, |
1413 |
+.wp-block-freeform.block-library-rich-text__tinymce .alignleft { |
1414 |
+ margin: 0.4211em 1.6842em 1.6842em 0; |
1415 |
+} |
1416 |
+ |
1417 |
+/*-------------------------------------------------------------- |
1418 |
+3.0 Blocks - Common Blocks |
1419 |
+--------------------------------------------------------------*/ |
1420 |
+ |
1421 |
+/* Paragraph */ |
1422 |
+ |
1423 |
+p.has-drop-cap:not(:focus)::first-letter { |
1424 |
+ font-size: 5em; |
1425 |
+} |
1426 |
+ |
1427 |
+/* Quotes */ |
1428 |
+ |
1429 |
+.wp-block-quote, |
1430 |
+.wp-block-freeform.block-library-rich-text__tinymce blockquote { |
1431 |
+ color: #707070; |
1432 |
+ margin-bottom: 1.6667em; |
1433 |
+ padding-left: 0.7778em; |
1434 |
+} |
1435 |
+ |
1436 |
+.wp-block-quote:not(.is-large):not(.is-style-large), |
1437 |
+.wp-block-freeform.block-library-rich-text__tinymce blockquote { |
1438 |
+ border-color: #707070; |
1439 |
+} |
1440 |
+ |
1441 |
+.edit-post-visual-editor .wp-block-quote p { |
1442 |
+ font-size: 18px; |
1443 |
+ font-style: italic; |
1444 |
+ line-height: 1.6667; |
1445 |
+ margin-bottom: 1.6667em; |
1446 |
+} |
1447 |
+ |
1448 |
+.edit-post-visual-editor .wp-block-quote > p:last-child { |
1449 |
+ margin-bottom: 0; |
1450 |
+} |
1451 |
+ |
1452 |
+.wp-block-quote__citation { |
1453 |
+ color: #333; |
1454 |
+ font-family: "Noto Sans", sans-serif; |
1455 |
+ font-size: 15px; |
1456 |
+ font-style: normal; |
1457 |
+ line-height: 1.6; |
1458 |
+ text-transform: none; |
1459 |
+} |
1460 |
+ |
1461 |
+.wp-block-quote em, |
1462 |
+.wp-block-quote i { |
1463 |
+ font-style: normal; |
1464 |
+} |
1465 |
+ |
1466 |
+.wp-block-quote strong, |
1467 |
+.wp-block-quote b { |
1468 |
+ font-weight: 400; |
1469 |
+} |
1470 |
+ |
1471 |
+@media screen and (min-width: 46.25em) { |
1472 |
+ .edit-post-visual-editor .wp-block-quote p { |
1473 |
+ font-size: 20px; |
1474 |
+ line-height: 1.75; |
1475 |
+ } |
1476 |
+ |
1477 |
+ .wp-block-quote__citation { |
1478 |
+ font-size: 17px; |
1479 |
+ line-height: 1.6471; |
1480 |
+ } |
1481 |
+} |
1482 |
+ |
1483 |
+@media screen and (min-width: 55em) { |
1484 |
+ .edit-post-visual-editor .wp-block-quote p { |
1485 |
+ font-size: 22px; |
1486 |
+ line-height: 1.8182; |
1487 |
+ } |
1488 |
+ |
1489 |
+ .wp-block-quote__citation { |
1490 |
+ font-size: 19px; |
1491 |
+ line-height: 1.6842; |
1492 |
+ } |
1493 |
+} |
1494 |
+ |
1495 |
+@media screen and (min-width: 59.6875em) { |
1496 |
+ .edit-post-visual-editor .wp-block-quote p { |
1497 |
+ font-size: 18px; |
1498 |
+ line-height: 1.6667; |
1499 |
+ } |
1500 |
+ |
1501 |
+ .wp-block-quote__citation { |
1502 |
+ font-size: 15px; |
1503 |
+ line-height: 1.6; |
1504 |
+ } |
1505 |
+} |
1506 |
+ |
1507 |
+@media screen and (min-width: 68.75em) { |
1508 |
+ .edit-post-visual-editor .wp-block-quote p { |
1509 |
+ font-size: 20px; |
1510 |
+ line-height: 1.75; |
1511 |
+ } |
1512 |
+ |
1513 |
+ .wp-block-quote__citation { |
1514 |
+ font-size: 17px; |
1515 |
+ line-height: 1.6471; |
1516 |
+ } |
1517 |
+} |
1518 |
+ |
1519 |
+@media screen and (min-width: 77.5em) { |
1520 |
+ .edit-post-visual-editor .wp-block-quote p { |
1521 |
+ font-size: 22px; |
1522 |
+ line-height: 1.8182; |
1523 |
+ } |
1524 |
+ |
1525 |
+ .wp-block-quote__citation { |
1526 |
+ font-size: 19px; |
1527 |
+ line-height: 1.6842; |
1528 |
+ } |
1529 |
+} |
1530 |
+ |
1531 |
+/* Cover */ |
1532 |
+ |
1533 |
+.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image p, |
1534 |
+.edit-post-visual-editor .editor-block-list__block .wp-block-cover p, |
1535 |
+.wp-block-cover-image h2, |
1536 |
+.wp-block-cover h2 { |
1537 |
+ font-size: 29px; |
1538 |
+ line-height: 1.2069; |
1539 |
+} |
1540 |
+ |
1541 |
+/* File */ |
1542 |
+ |
1543 |
+.wp-block-file .editor-rich-text__tinymce { |
1544 |
+ border-bottom: 1px solid #333; |
1545 |
+} |
1546 |
+ |
1547 |
+.wp-block-file .wp-block-file__button { |
1548 |
+ background-color: #333; |
1549 |
+ border: 0; |
1550 |
+ border-radius: 0; |
1551 |
+ color: #fff; |
1552 |
+ cursor: pointer; |
1553 |
+ font-family: "Noto Sans", sans-serif; |
1554 |
+ font-size: 12px; |
1555 |
+ font-weight: 700; |
1556 |
+ line-height: 1.5; |
1557 |
+ padding: 0.7917em 1.5em; |
1558 |
+ text-transform: uppercase; |
1559 |
+ vertical-align: baseline; |
1560 |
+} |
1561 |
+ |
1562 |
+@media screen and (min-width: 46.25em) { |
1563 |
+ .wp-block-file .wp-block-file__button { |
1564 |
+ font-size: 14px; |
1565 |
+ padding: 0.8214em 1.6429em; |
1566 |
+ } |
1567 |
+} |
1568 |
+ |
1569 |
+@media screen and (min-width: 55em) { |
1570 |
+ .wp-block-file .wp-block-file__button { |
1571 |
+ font-size: 16px; |
1572 |
+ padding: 0.8125em 1.625em; |
1573 |
+ } |
1574 |
+} |
1575 |
+ |
1576 |
+@media screen and (min-width: 59.6875em) { |
1577 |
+ .wp-block-file .wp-block-file__button { |
1578 |
+ font-size: 12px; |
1579 |
+ padding: 0.7917em 1.5833em; |
1580 |
+ } |
1581 |
+} |
1582 |
+ |
1583 |
+@media screen and (min-width: 68.75em) { |
1584 |
+ .wp-block-file .wp-block-file__button { |
1585 |
+ font-size: 14px; |
1586 |
+ padding: 0.8214em 1.5714em; |
1587 |
+ } |
1588 |
+} |
1589 |
+ |
1590 |
+@media screen and (min-width: 77.5em) { |
1591 |
+ .wp-block-file .wp-block-file__button { |
1592 |
+ font-size: 16px; |
1593 |
+ padding: 0.8125em 1.625em; |
1594 |
+ } |
1595 |
+} |
1596 |
+ |
1597 |
+/*-------------------------------------------------------------- |
1598 |
+4.0 Blocks - Formatting |
1599 |
+--------------------------------------------------------------*/ |
1600 |
+ |
1601 |
+/* Code */ |
1602 |
+ |
1603 |
+.wp-block-code, |
1604 |
+.wp-block-freeform.block-library-rich-text__tinymce code { |
1605 |
+ background: transparent; |
1606 |
+ border: 0; |
1607 |
+ padding: 0; |
1608 |
+} |
1609 |
+ |
1610 |
+/* Pullquote */ |
1611 |
+ |
1612 |
+.wp-block-pullquote, |
1613 |
+.editor-block-list__block .wp-block-pullquote blockquote { |
1614 |
+ border: 0; |
1615 |
+ margin: 0; |
1616 |
+ padding-left: 0; |
1617 |
+} |
1618 |
+ |
1619 |
+.wp-block-pullquote .wp-block-pullquote__citation { |
1620 |
+ color: #333; |
1621 |
+ font-family: "Noto Sans", sans-serif; |
1622 |
+ font-size: 15px; |
1623 |
+ font-style: normal; |
1624 |
+ line-height: 1.6; |
1625 |
+ text-transform: none; |
1626 |
+} |
1627 |
+ |
1628 |
+@media screen and (min-width: 46.25em) { |
1629 |
+ .wp-block-pullquote .wp-block-pullquote__citation { |
1630 |
+ font-size: 17px; |
1631 |
+ line-height: 1.6471; |
1632 |
+ } |
1633 |
+} |
1634 |
+ |
1635 |
+@media screen and (min-width: 55em) { |
1636 |
+ .wp-block-pullquote .wp-block-pullquote__citation { |
1637 |
+ font-size: 19px; |
1638 |
+ line-height: 1.6842; |
1639 |
+ } |
1640 |
+} |
1641 |
+ |
1642 |
+@media screen and (min-width: 59.6875em) { |
1643 |
+ .wp-block-pullquote .wp-block-pullquote__citation { |
1644 |
+ font-size: 15px; |
1645 |
+ line-height: 1.6; |
1646 |
+ } |
1647 |
+} |
1648 |
+ |
1649 |
+@media screen and (min-width: 68.75em) { |
1650 |
+ .wp-block-pullquote .wp-block-pullquote__citation { |
1651 |
+ font-size: 17px; |
1652 |
+ line-height: 1.6471; |
1653 |
+ } |
1654 |
+} |
1655 |
+ |
1656 |
+@media screen and (min-width: 77.5em) { |
1657 |
+ .wp-block-pullquote .wp-block-pullquote__citation { |
1658 |
+ font-size: 19px; |
1659 |
+ line-height: 1.6842; |
1660 |
+ } |
1661 |
+} |
1662 |
+ |
1663 |
+/* Tables */ |
1664 |
+ |
1665 |
+.editor-block-list__block .wp-block-table th, |
1666 |
+.editor-block-list__block .wp-block-table td { |
1667 |
+ padding: 0; |
1668 |
+} |
1669 |
+ |
1670 |
+.rtl .editor-block-list__block .wp-block-table th { |
1671 |
+ text-align: right; |
1672 |
+} |
1673 |
+ |
1674 |
+/*-------------------------------------------------------------- |
1675 |
+5.0 Blocks - Layout Elements |
1676 |
+--------------------------------------------------------------*/ |
1677 |
+ |
1678 |
+/* Button */ |
1679 |
+ |
1680 |
+.wp-block-button .wp-block-button__link { |
1681 |
+ background-color: #333; |
1682 |
+ border: 0; |
1683 |
+ border-radius: 0; |
1684 |
+ color: #fff; |
1685 |
+ cursor: pointer; |
1686 |
+ font-family: "Noto Sans", sans-serif; |
1687 |
+ font-size: 12px; |
1688 |
+ font-weight: 700; |
1689 |
+ line-height: 1.5; |
1690 |
+ padding: 0.7917em 1.5em; |
1691 |
+ text-transform: uppercase; |
1692 |
+ vertical-align: baseline; |
1693 |
+} |
1694 |
+ |
1695 |
+@media screen and (min-width: 46.25em) { |
1696 |
+ .wp-block-button .wp-block-button__link { |
1697 |
+ font-size: 14px; |
1698 |
+ padding: 0.8214em 1.6429em; |
1699 |
+ } |
1700 |
+} |
1701 |
+ |
1702 |
+@media screen and (min-width: 55em) { |
1703 |
+ .wp-block-button .wp-block-button__link { |
1704 |
+ font-size: 16px; |
1705 |
+ padding: 0.8125em 1.625em; |
1706 |
+ } |
1707 |
+} |
1708 |
+ |
1709 |
+@media screen and (min-width: 59.6875em) { |
1710 |
+ .wp-block-button .wp-block-button__link { |
1711 |
+ font-size: 12px; |
1712 |
+ padding: 0.7917em 1.5833em; |
1713 |
+ } |
1714 |
+} |
1715 |
+ |
1716 |
+@media screen and (min-width: 68.75em) { |
1717 |
+ .wp-block-button .wp-block-button__link { |
1718 |
+ font-size: 14px; |
1719 |
+ padding: 0.8214em 1.5714em; |
1720 |
+ } |
1721 |
+} |
1722 |
+ |
1723 |
+@media screen and (min-width: 77.5em) { |
1724 |
+ .wp-block-button .wp-block-button__link { |
1725 |
+ font-size: 16px; |
1726 |
+ padding: 0.8125em 1.625em; |
1727 |
+ } |
1728 |
+} |
1729 |
+ |
1730 |
+/* Seperator */ |
1731 |
+ |
1732 |
+.wp-block-separator { |
1733 |
+ max-width: 100px; |
1734 |
+} |
1735 |
+ |
1736 |
+.wp-block-separator.is-style-wide { |
1737 |
+ max-width: 100%; |
1738 |
+} |
1739 |
+ |
1740 |
+/* Media & Text */ |
1741 |
+ |
1742 |
+.wp-block-media-text *:last-child { |
1743 |
+ margin-bottom: 0; |
1744 |
+} |
1745 |
+ |
1746 |
+ |
1747 |
+/*-------------------------------------------------------------- |
1748 |
+6.0 Blocks - Widgets |
1749 |
+--------------------------------------------------------------*/ |
1750 |
+ |
1751 |
+/* Archives, Categories & Latest Posts */ |
1752 |
+ |
1753 |
+[data-align="center"] .wp-block-archives ul, |
1754 |
+[data-align="center"] .wp-block-categories ul, |
1755 |
+[data-align="center"] .wp-block-latest-posts ul { |
1756 |
+ list-style-position: inside; |
1757 |
+} |
1758 |
+ |
1759 |
+ |
1760 |
+/* Latest Comments */ |
1761 |
+ |
1762 |
+.wp-block-latest-comments { |
1763 |
+ margin: 0; |
1764 |
+} |
1765 |
+ |
1766 |
+.wp-block-latest-comments__comment, |
1767 |
+.wp-block-latest-comments__comment-excerpt, |
1768 |
+.wp-block-latest-comments__comment-excerpt p { |
1769 |
+ font-size: inherit; |
1770 |
+} |
1771 |
+ |
1772 |
+.wp-block-latest-comments__comment-meta a { |
1773 |
+ border-bottom-color: transparent; |
1774 |
+ font-weight: 700; |
1775 |
+} |
1776 |
+ |
1777 |
+.wp-block-latest-comments__comment-excerpt p:last-child { |
1778 |
+ margin-bottom: 0; |
1779 |
+} |
1780 |
+ |
1781 |
+.wp-block-latest-comments__comment-date { |
1782 |
+ color: #707070; |
1783 |
+ font-family: "Noto Sans", sans-serif; |
1784 |
+ font-size: 12px; |
1785 |
+ line-height: 1.5; |
1786 |
+ margin-bottom: 1.6em; |
1787 |
+} |
1788 |
+ |
1789 |
+@media screen and (min-width: 46.25em) { |
1790 |
+ .wp-block-latest-comments__comment-date { |
1791 |
+ font-size: 14px; |
1792 |
+ } |
1793 |
+} |
1794 |
+ |
1795 |
+@media screen and (min-width: 55em) { |
1796 |
+ .wp-block-latest-comments__comment-date { |
1797 |
+ font-size: 16px; |
1798 |
+ } |
1799 |
+} |
1800 |
+ |
1801 |
+@media screen and (min-width: 59.6875em) { |
1802 |
+ .wp-block-latest-comments__comment-date { |
1803 |
+ font-size: 12px; |
1804 |
+ } |
1805 |
+} |
1806 |
+ |
1807 |
+@media screen and (min-width: 68.75em) { |
1808 |
+ .wp-block-latest-comments__comment-date { |
1809 |
+ font-size: 14px; |
1810 |
+ } |
1811 |
+} |
1812 |
+ |
1813 |
+@media screen and (min-width: 77.5em) { |
1814 |
+ .wp-block-latest-comments__comment-date { |
1815 |
+ font-size: 16px; |
1816 |
+ } |
1817 |
+} |
1818 |
+ |
1819 |
+.wp-block-latest-comments .wp-block-latest-comments__comment { |
1820 |
+ border-top: 1px solid #eaeaea; |
1821 |
+ border-top: 1px solid rgba(51, 51, 51, 0.1); |
1822 |
+ margin-bottom: 0; |
1823 |
+ padding: 1.6em 0; |
1824 |
+} |
1825 |
+ |
1826 |
+/* Latest Posts */ |
1827 |
+ |
1828 |
+.edit-post-visual-editor .wp-block-latest-posts.is-grid { |
1829 |
+ list-style: none; |
1830 |
+ margin-left: 0; |
1831 |
+ margin-right: 0; |
1832 |
+} |
1833 |
+ |
1834 |
+.edit-post-visual-editor .wp-block-latest-posts.is-grid li { |
1835 |
+ margin-bottom: 16px; |
1836 |
+} |
1837 |
|
1838 |
diff --git a/themes/twentyfifteen/functions.php b/themes/twentyfifteen/functions.php |
1839 |
index 3f678a9..168bedd 100644 |
1840 |
--- a/themes/twentyfifteen/functions.php |
1841 |
+++ b/themes/twentyfifteen/functions.php |
1842 |
@@ -42,133 +42,182 @@ if ( version_compare( $GLOBALS['wp_version'], '4.1-alpha', '<' ) ) { |
1843 |
} |
1844 |
|
1845 |
if ( ! function_exists( 'twentyfifteen_setup' ) ) : |
1846 |
- /** |
1847 |
- * Sets up theme defaults and registers support for various WordPress features. |
1848 |
+/** |
1849 |
+ * Sets up theme defaults and registers support for various WordPress features. |
1850 |
+ * |
1851 |
+ * Note that this function is hooked into the after_setup_theme hook, which |
1852 |
+ * runs before the init hook. The init hook is too late for some features, such |
1853 |
+ * as indicating support for post thumbnails. |
1854 |
+ * |
1855 |
+ * @since Twenty Fifteen 1.0 |
1856 |
+ */ |
1857 |
+function twentyfifteen_setup() { |
1858 |
+ |
1859 |
+ /* |
1860 |
+ * Make theme available for translation. |
1861 |
+ * Translations can be filed at WordPress.org. See: https://translate.wordpress.org/projects/wp-themes/twentyfifteen |
1862 |
+ * If you're building a theme based on twentyfifteen, use a find and replace |
1863 |
+ * to change 'twentyfifteen' to the name of your theme in all the template files |
1864 |
+ */ |
1865 |
+ load_theme_textdomain( 'twentyfifteen' ); |
1866 |
+ |
1867 |
+ // Add default posts and comments RSS feed links to head. |
1868 |
+ add_theme_support( 'automatic-feed-links' ); |
1869 |
+ |
1870 |
+ /* |
1871 |
+ * Let WordPress manage the document title. |
1872 |
+ * By adding theme support, we declare that this theme does not use a |
1873 |
+ * hard-coded <title> tag in the document head, and expect WordPress to |
1874 |
+ * provide it for us. |
1875 |
+ */ |
1876 |
+ add_theme_support( 'title-tag' ); |
1877 |
+ |
1878 |
+ /* |
1879 |
+ * Enable support for Post Thumbnails on posts and pages. |
1880 |
+ * |
1881 |
+ * See: https://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails |
1882 |
+ */ |
1883 |
+ add_theme_support( 'post-thumbnails' ); |
1884 |
+ set_post_thumbnail_size( 825, 510, true ); |
1885 |
+ |
1886 |
+ // This theme uses wp_nav_menu() in two locations. |
1887 |
+ register_nav_menus( array( |
1888 |
+ 'primary' => __( 'Primary Menu', 'twentyfifteen' ), |
1889 |
+ 'social' => __( 'Social Links Menu', 'twentyfifteen' ), |
1890 |
+ ) ); |
1891 |
+ |
1892 |
+ /* |
1893 |
+ * Switch default core markup for search form, comment form, and comments |
1894 |
+ * to output valid HTML5. |
1895 |
+ */ |
1896 |
+ add_theme_support( 'html5', array( |
1897 |
+ 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' |
1898 |
+ ) ); |
1899 |
+ |
1900 |
+ /* |
1901 |
+ * Enable support for Post Formats. |
1902 |
* |
1903 |
- * Note that this function is hooked into the after_setup_theme hook, which |
1904 |
- * runs before the init hook. The init hook is too late for some features, such |
1905 |
- * as indicating support for post thumbnails. |
1906 |
+ * See: https://codex.wordpress.org/Post_Formats |
1907 |
+ */ |
1908 |
+ add_theme_support( 'post-formats', array( |
1909 |
+ 'aside', 'image', 'video', 'quote', 'link', 'gallery', 'status', 'audio', 'chat' |
1910 |
+ ) ); |
1911 |
+ |
1912 |
+ /* |
1913 |
+ * Enable support for custom logo. |
1914 |
+ * |
1915 |
+ * @since Twenty Fifteen 1.5 |
1916 |
+ */ |
1917 |
+ add_theme_support( 'custom-logo', array( |
1918 |
+ 'height' => 248, |
1919 |
+ 'width' => 248, |
1920 |
+ 'flex-height' => true, |
1921 |
+ ) ); |
1922 |
+ |
1923 |
+ $color_scheme = twentyfifteen_get_color_scheme(); |
1924 |
+ $default_color = trim( $color_scheme[0], '#' ); |
1925 |
+ |
1926 |
+ // Setup the WordPress core custom background feature. |
1927 |
+ |
1928 |
+ /** |
1929 |
+ * Filter Twenty Fifteen custom-header support arguments. |
1930 |
* |
1931 |
* @since Twenty Fifteen 1.0 |
1932 |
+ * |
1933 |
+ * @param array $args { |
1934 |
+ * An array of custom-header support arguments. |
1935 |
+ * |
1936 |
+ * @type string $default-color Default color of the header. |
1937 |
+ * @type string $default-attachment Default attachment of the header. |
1938 |
+ * } |
1939 |
*/ |
1940 |
- function twentyfifteen_setup() { |
1941 |
- |
1942 |
- /* |
1943 |
- * Make theme available for translation. |
1944 |
- * Translations can be filed at WordPress.org. See: https://translate.wordpress.org/projects/wp-themes/twentyfifteen |
1945 |
- * If you're building a theme based on twentyfifteen, use a find and replace |
1946 |
- * to change 'twentyfifteen' to the name of your theme in all the template files |
1947 |
- */ |
1948 |
- load_theme_textdomain( 'twentyfifteen' ); |
1949 |
- |
1950 |
- // Add default posts and comments RSS feed links to head. |
1951 |
- add_theme_support( 'automatic-feed-links' ); |
1952 |
- |
1953 |
- /* |
1954 |
- * Let WordPress manage the document title. |
1955 |
- * By adding theme support, we declare that this theme does not use a |
1956 |
- * hard-coded <title> tag in the document head, and expect WordPress to |
1957 |
- * provide it for us. |
1958 |
- */ |
1959 |
- add_theme_support( 'title-tag' ); |
1960 |
- |
1961 |
- /* |
1962 |
- * Enable support for Post Thumbnails on posts and pages. |
1963 |
- * |
1964 |
- * See: https://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails |
1965 |
- */ |
1966 |
- add_theme_support( 'post-thumbnails' ); |
1967 |
- set_post_thumbnail_size( 825, 510, true ); |
1968 |
- |
1969 |
- // This theme uses wp_nav_menu() in two locations. |
1970 |
- register_nav_menus( |
1971 |
- array( |
1972 |
- 'primary' => __( 'Primary Menu', 'twentyfifteen' ), |
1973 |
- 'social' => __( 'Social Links Menu', 'twentyfifteen' ), |
1974 |
- ) |
1975 |
- ); |
1976 |
- |
1977 |
- /* |
1978 |
- * Switch default core markup for search form, comment form, and comments |
1979 |
- * to output valid HTML5. |
1980 |
- */ |
1981 |
- add_theme_support( |
1982 |
- 'html5', array( |
1983 |
- 'search-form', |
1984 |
- 'comment-form', |
1985 |
- 'comment-list', |
1986 |
- 'gallery', |
1987 |
- 'caption', |
1988 |
- ) |
1989 |
- ); |
1990 |
- |
1991 |
- /* |
1992 |
- * Enable support for Post Formats. |
1993 |
- * |
1994 |
- * See: https://codex.wordpress.org/Post_Formats |
1995 |
- */ |
1996 |
- add_theme_support( |
1997 |
- 'post-formats', array( |
1998 |
- 'aside', |
1999 |
- 'image', |
2000 |
- 'video', |
2001 |
- 'quote', |
2002 |
- 'link', |
2003 |
- 'gallery', |
2004 |
- 'status', |
2005 |
- 'audio', |
2006 |
- 'chat', |
2007 |
- ) |
2008 |
- ); |
2009 |
- |
2010 |
- /* |
2011 |
- * Enable support for custom logo. |
2012 |
- * |
2013 |
- * @since Twenty Fifteen 1.5 |
2014 |
- */ |
2015 |
- add_theme_support( |
2016 |
- 'custom-logo', array( |
2017 |
- 'height' => 248, |
2018 |
- 'width' => 248, |
2019 |
- 'flex-height' => true, |
2020 |
- ) |
2021 |
- ); |
2022 |
- |
2023 |
- $color_scheme = twentyfifteen_get_color_scheme(); |
2024 |
- $default_color = trim( $color_scheme[0], '#' ); |
2025 |
- |
2026 |
- // Setup the WordPress core custom background feature. |
2027 |
- |
2028 |
- /** |
2029 |
- * Filter Twenty Fifteen custom-header support arguments. |
2030 |
- * |
2031 |
- * @since Twenty Fifteen 1.0 |
2032 |
- * |
2033 |
- * @param array $args { |
2034 |
- * An array of custom-header support arguments. |
2035 |
- * |
2036 |
- * @type string $default-color Default color of the header. |
2037 |
- * @type string $default-attachment Default attachment of the header. |
2038 |
- * } |
2039 |
- */ |
2040 |
- add_theme_support( |
2041 |
- 'custom-background', apply_filters( |
2042 |
- 'twentyfifteen_custom_background_args', array( |
2043 |
- 'default-color' => $default_color, |
2044 |
- 'default-attachment' => 'fixed', |
2045 |
- ) |
2046 |
- ) |
2047 |
- ); |
2048 |
- |
2049 |
- /* |
2050 |
- * This theme styles the visual editor to resemble the theme style, |
2051 |
- * specifically font, colors, icons, and column width. |
2052 |
- */ |
2053 |
- add_editor_style( array( 'css/editor-style.css', 'genericons/genericons.css', twentyfifteen_fonts_url() ) ); |
2054 |
- |
2055 |
- // Indicate widget sidebars can use selective refresh in the Customizer. |
2056 |
- add_theme_support( 'customize-selective-refresh-widgets' ); |
2057 |
- } |
2058 |
+ add_theme_support( 'custom-background', apply_filters( 'twentyfifteen_custom_background_args', array( |
2059 |
+ 'default-color' => $default_color, |
2060 |
+ 'default-attachment' => 'fixed', |
2061 |
+ ) ) ); |
2062 |
+ |
2063 |
+ /* |
2064 |
+ * This theme styles the visual editor to resemble the theme style, |
2065 |
+ * specifically font, colors, icons, and column width. |
2066 |
+ */ |
2067 |
+ add_editor_style( array( 'css/editor-style.css', 'genericons/genericons.css', twentyfifteen_fonts_url() ) ); |
2068 |
+ |
2069 |
+ // Load regular editor styles into the new block-based editor. |
2070 |
+ add_theme_support( 'editor-styles' ); |
2071 |
+ |
2072 |
+ // Load default block styles. |
2073 |
+ add_theme_support( 'wp-block-styles' ); |
2074 |
+ |
2075 |
+ // Add support for responsive embeds. |
2076 |
+ add_theme_support( 'responsive-embeds' ); |
2077 |
+ |
2078 |
+ // Add support for custom color scheme. |
2079 |
+ add_theme_support( 'editor-color-palette', array( |
2080 |
+ array( |
2081 |
+ 'name' => __( 'Dark Gray', 'twentyfifteen' ), |
2082 |
+ 'slug' => 'dark-gray', |
2083 |
+ 'color' => '#111', |
2084 |
+ ), |
2085 |
+ array( |
2086 |
+ 'name' => __( 'Light Gray', 'twentyfifteen' ), |
2087 |
+ 'slug' => 'light-gray', |
2088 |
+ 'color' => '#f1f1f1', |
2089 |
+ ), |
2090 |
+ array( |
2091 |
+ 'name' => __( 'White', 'twentyfifteen' ), |
2092 |
+ 'slug' => 'white', |
2093 |
+ 'color' => '#fff', |
2094 |
+ ), |
2095 |
+ array( |
2096 |
+ 'name' => __( 'Yellow', 'twentyfifteen' ), |
2097 |
+ 'slug' => 'yellow', |
2098 |
+ 'color' => '#f4ca16', |
2099 |
+ ), |
2100 |
+ array( |
2101 |
+ 'name' => __( 'Dark Brown', 'twentyfifteen' ), |
2102 |
+ 'slug' => 'dark-brown', |
2103 |
+ 'color' => '#352712', |
2104 |
+ ), |
2105 |
+ array( |
2106 |
+ 'name' => __( 'Medium Pink', 'twentyfifteen' ), |
2107 |
+ 'slug' => 'medium-pink', |
2108 |
+ 'color' => '#e53b51', |
2109 |
+ ), |
2110 |
+ array( |
2111 |
+ 'name' => __( 'Light Pink', 'twentyfifteen' ), |
2112 |
+ 'slug' => 'light-pink', |
2113 |
+ 'color' => '#ffe5d1', |
2114 |
+ ), |
2115 |
+ array( |
2116 |
+ 'name' => __( 'Dark Purple', 'twentyfifteen' ), |
2117 |
+ 'slug' => 'dark-purple', |
2118 |
+ 'color' => '#2e2256', |
2119 |
+ ), |
2120 |
+ array( |
2121 |
+ 'name' => __( 'Purple', 'twentyfifteen' ), |
2122 |
+ 'slug' => 'purple', |
2123 |
+ 'color' => '#674970', |
2124 |
+ ), |
2125 |
+ array( |
2126 |
+ 'name' => __( 'Blue Gray', 'twentyfifteen' ), |
2127 |
+ 'slug' => 'blue-gray', |
2128 |
+ 'color' => '#22313f', |
2129 |
+ ), |
2130 |
+ array( |
2131 |
+ 'name' => __( 'Bright Blue', 'twentyfifteen' ), |
2132 |
+ 'slug' => 'bright-blue', |
2133 |
+ 'color' => '#55c3dc', |
2134 |
+ ), |
2135 |
+ array( |
2136 |
+ 'name' => __( 'Light Blue', 'twentyfifteen' ), |
2137 |
+ 'slug' => 'light-blue', |
2138 |
+ 'color' => '#e9f2f9', |
2139 |
+ ), |
2140 |
+ ) ); |
2141 |
+ |
2142 |
+ // Indicate widget sidebars can use selective refresh in the Customizer. |
2143 |
+ add_theme_support( 'customize-selective-refresh-widgets' ); |
2144 |
+} |
2145 |
endif; // twentyfifteen_setup |
2146 |
add_action( 'after_setup_theme', 'twentyfifteen_setup' ); |
2147 |
|
2148 |
@@ -180,84 +229,80 @@ add_action( 'after_setup_theme', 'twentyfifteen_setup' ); |
2149 |
* @link https://codex.wordpress.org/Function_Reference/register_sidebar |
2150 |
*/ |
2151 |
function twentyfifteen_widgets_init() { |
2152 |
- register_sidebar( |
2153 |
- array( |
2154 |
- 'name' => __( 'Widget Area', 'twentyfifteen' ), |
2155 |
- 'id' => 'sidebar-1', |
2156 |
- 'description' => __( 'Add widgets here to appear in your sidebar.', 'twentyfifteen' ), |
2157 |
- 'before_widget' => '<aside id="%1$s" class="widget %2$s">', |
2158 |
- 'after_widget' => '</aside>', |
2159 |
- 'before_title' => '<h2 class="widget-title">', |
2160 |
- 'after_title' => '</h2>', |
2161 |
- ) |
2162 |
- ); |
2163 |
+ register_sidebar( array( |
2164 |
+ 'name' => __( 'Widget Area', 'twentyfifteen' ), |
2165 |
+ 'id' => 'sidebar-1', |
2166 |
+ 'description' => __( 'Add widgets here to appear in your sidebar.', 'twentyfifteen' ), |
2167 |
+ 'before_widget' => '<aside id="%1$s" class="widget %2$s">', |
2168 |
+ 'after_widget' => '</aside>', |
2169 |
+ 'before_title' => '<h2 class="widget-title">', |
2170 |
+ 'after_title' => '</h2>', |
2171 |
+ ) ); |
2172 |
} |
2173 |
add_action( 'widgets_init', 'twentyfifteen_widgets_init' ); |
2174 |
|
2175 |
if ( ! function_exists( 'twentyfifteen_fonts_url' ) ) : |
2176 |
- /** |
2177 |
- * Register Google fonts for Twenty Fifteen. |
2178 |
- * |
2179 |
- * @since Twenty Fifteen 1.0 |
2180 |
- * |
2181 |
- * @return string Google fonts URL for the theme. |
2182 |
+/** |
2183 |
+ * Register Google fonts for Twenty Fifteen. |
2184 |
+ * |
2185 |
+ * @since Twenty Fifteen 1.0 |
2186 |
+ * |
2187 |
+ * @return string Google fonts URL for the theme. |
2188 |
+ */ |
2189 |
+function twentyfifteen_fonts_url() { |
2190 |
+ $fonts_url = ''; |
2191 |
+ $fonts = array(); |
2192 |
+ $subsets = 'latin,latin-ext'; |
2193 |
+ |
2194 |
+ /* |
2195 |
+ * Translators: If there are characters in your language that are not supported |
2196 |
+ * by Noto Sans, translate this to 'off'. Do not translate into your own language. |
2197 |
*/ |
2198 |
- function twentyfifteen_fonts_url() { |
2199 |
- $fonts_url = ''; |
2200 |
- $fonts = array(); |
2201 |
- $subsets = 'latin,latin-ext'; |
2202 |
- |
2203 |
- /* |
2204 |
- * Translators: If there are characters in your language that are not supported |
2205 |
- * by Noto Sans, translate this to 'off'. Do not translate into your own language. |
2206 |
- */ |
2207 |
- if ( 'off' !== _x( 'on', 'Noto Sans font: on or off', 'twentyfifteen' ) ) { |
2208 |
- $fonts[] = 'Noto Sans:400italic,700italic,400,700'; |
2209 |
- } |
2210 |
- |
2211 |
- /* |
2212 |
- * Translators: If there are characters in your language that are not supported |
2213 |
- * by Noto Serif, translate this to 'off'. Do not translate into your own language. |
2214 |
- */ |
2215 |
- if ( 'off' !== _x( 'on', 'Noto Serif font: on or off', 'twentyfifteen' ) ) { |
2216 |
- $fonts[] = 'Noto Serif:400italic,700italic,400,700'; |
2217 |
- } |
2218 |
+ if ( 'off' !== _x( 'on', 'Noto Sans font: on or off', 'twentyfifteen' ) ) { |
2219 |
+ $fonts[] = 'Noto Sans:400italic,700italic,400,700'; |
2220 |
+ } |
2221 |
|
2222 |
- /* |
2223 |
- * Translators: If there are characters in your language that are not supported |
2224 |
- * by Inconsolata, translate this to 'off'. Do not translate into your own language. |
2225 |
- */ |
2226 |
- if ( 'off' !== _x( 'on', 'Inconsolata font: on or off', 'twentyfifteen' ) ) { |
2227 |
- $fonts[] = 'Inconsolata:400,700'; |
2228 |
- } |
2229 |
+ /* |
2230 |
+ * Translators: If there are characters in your language that are not supported |
2231 |
+ * by Noto Serif, translate this to 'off'. Do not translate into your own language. |
2232 |
+ */ |
2233 |
+ if ( 'off' !== _x( 'on', 'Noto Serif font: on or off', 'twentyfifteen' ) ) { |
2234 |
+ $fonts[] = 'Noto Serif:400italic,700italic,400,700'; |
2235 |
+ } |
2236 |
|
2237 |
- /* |
2238 |
- * Translators: To add an additional character subset specific to your language, |
2239 |
- * translate this to 'greek', 'cyrillic', 'devanagari' or 'vietnamese'. Do not translate into your own language. |
2240 |
- */ |
2241 |
- $subset = _x( 'no-subset', 'Add new subset (greek, cyrillic, devanagari, vietnamese)', 'twentyfifteen' ); |
2242 |
- |
2243 |
- if ( 'cyrillic' == $subset ) { |
2244 |
- $subsets .= ',cyrillic,cyrillic-ext'; |
2245 |
- } elseif ( 'greek' == $subset ) { |
2246 |
- $subsets .= ',greek,greek-ext'; |
2247 |
- } elseif ( 'devanagari' == $subset ) { |
2248 |
- $subsets .= ',devanagari'; |
2249 |
- } elseif ( 'vietnamese' == $subset ) { |
2250 |
- $subsets .= ',vietnamese'; |
2251 |
- } |
2252 |
+ /* |
2253 |
+ * Translators: If there are characters in your language that are not supported |
2254 |
+ * by Inconsolata, translate this to 'off'. Do not translate into your own language. |
2255 |
+ */ |
2256 |
+ if ( 'off' !== _x( 'on', 'Inconsolata font: on or off', 'twentyfifteen' ) ) { |
2257 |
+ $fonts[] = 'Inconsolata:400,700'; |
2258 |
+ } |
2259 |
|
2260 |
- if ( $fonts ) { |
2261 |
- $fonts_url = add_query_arg( |
2262 |
- array( |
2263 |
- 'family' => urlencode( implode( '|', $fonts ) ), |
2264 |
- 'subset' => urlencode( $subsets ), |
2265 |
- ), 'https://fonts.googleapis.com/css' |
2266 |
- ); |
2267 |
- } |
2268 |
+ /* |
2269 |
+ * Translators: To add an additional character subset specific to your language, |
2270 |
+ * translate this to 'greek', 'cyrillic', 'devanagari' or 'vietnamese'. Do not translate into your own language. |
2271 |
+ */ |
2272 |
+ $subset = _x( 'no-subset', 'Add new subset (greek, cyrillic, devanagari, vietnamese)', 'twentyfifteen' ); |
2273 |
+ |
2274 |
+ if ( 'cyrillic' == $subset ) { |
2275 |
+ $subsets .= ',cyrillic,cyrillic-ext'; |
2276 |
+ } elseif ( 'greek' == $subset ) { |
2277 |
+ $subsets .= ',greek,greek-ext'; |
2278 |
+ } elseif ( 'devanagari' == $subset ) { |
2279 |
+ $subsets .= ',devanagari'; |
2280 |
+ } elseif ( 'vietnamese' == $subset ) { |
2281 |
+ $subsets .= ',vietnamese'; |
2282 |
+ } |
2283 |
|
2284 |
- return $fonts_url; |
2285 |
+ if ( $fonts ) { |
2286 |
+ $fonts_url = add_query_arg( array( |
2287 |
+ 'family' => urlencode( implode( '|', $fonts ) ), |
2288 |
+ 'subset' => urlencode( $subsets ), |
2289 |
+ ), 'https://fonts.googleapis.com/css' ); |
2290 |
} |
2291 |
+ |
2292 |
+ return $fonts_url; |
2293 |
+} |
2294 |
endif; |
2295 |
|
2296 |
/** |
2297 |
@@ -287,6 +332,9 @@ function twentyfifteen_scripts() { |
2298 |
// Load our main stylesheet. |
2299 |
wp_enqueue_style( 'twentyfifteen-style', get_stylesheet_uri() ); |
2300 |
|
2301 |
+ // Theme block stylesheet. |
2302 |
+ wp_enqueue_style( 'twentyfifteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfifteen-style' ), '20181018' ); |
2303 |
+ |
2304 |
// Load the Internet Explorer specific stylesheet. |
2305 |
wp_enqueue_style( 'twentyfifteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfifteen-style' ), '20141010' ); |
2306 |
wp_style_add_data( 'twentyfifteen-ie', 'conditional', 'lt IE 9' ); |
2307 |
@@ -306,15 +354,27 @@ function twentyfifteen_scripts() { |
2308 |
} |
2309 |
|
2310 |
wp_enqueue_script( 'twentyfifteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20150330', true ); |
2311 |
- wp_localize_script( |
2312 |
- 'twentyfifteen-script', 'screenReaderText', array( |
2313 |
- 'expand' => '<span class="screen-reader-text">' . __( 'expand child menu', 'twentyfifteen' ) . '</span>', |
2314 |
- 'collapse' => '<span class="screen-reader-text">' . __( 'collapse child menu', 'twentyfifteen' ) . '</span>', |
2315 |
- ) |
2316 |
- ); |
2317 |
+ wp_localize_script( 'twentyfifteen-script', 'screenReaderText', array( |
2318 |
+ 'expand' => '<span class="screen-reader-text">' . __( 'expand child menu', 'twentyfifteen' ) . '</span>', |
2319 |
+ 'collapse' => '<span class="screen-reader-text">' . __( 'collapse child menu', 'twentyfifteen' ) . '</span>', |
2320 |
+ ) ); |
2321 |
} |
2322 |
add_action( 'wp_enqueue_scripts', 'twentyfifteen_scripts' ); |
2323 |
|
2324 |
+/** |
2325 |
+ * Enqueue styles for the block-based editor. |
2326 |
+ * |
2327 |
+ * @since Twenty Fifteen 2.1 |
2328 |
+ */ |
2329 |
+function twentyfifteen_block_editor_styles() { |
2330 |
+ // Block styles. |
2331 |
+ wp_enqueue_style( 'twentyfifteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css' ); |
2332 |
+ // Add custom fonts. |
2333 |
+ wp_enqueue_style( 'twentyfifteen-fonts', twentyfifteen_fonts_url(), array(), null ); |
2334 |
+} |
2335 |
+add_action( 'enqueue_block_editor_assets', 'twentyfifteen_block_editor_styles' ); |
2336 |
+ |
2337 |
+ |
2338 |
/** |
2339 |
* Add preconnect for Google Fonts. |
2340 |
* |
2341 |
@@ -360,9 +420,9 @@ function twentyfifteen_post_nav_background() { |
2342 |
return; |
2343 |
} |
2344 |
|
2345 |
- if ( $previous && has_post_thumbnail( $previous->ID ) ) { |
2346 |
+ if ( $previous && has_post_thumbnail( $previous->ID ) ) { |
2347 |
$prevthumb = wp_get_attachment_image_src( get_post_thumbnail_id( $previous->ID ), 'post-thumbnail' ); |
2348 |
- $css .= ' |
2349 |
+ $css .= ' |
2350 |
.post-navigation .nav-previous { background-image: url(' . esc_url( $prevthumb[0] ) . '); } |
2351 |
.post-navigation .nav-previous .post-title, .post-navigation .nav-previous a:hover .post-title, .post-navigation .nav-previous .meta-nav { color: #fff; } |
2352 |
.post-navigation .nav-previous a:before { background-color: rgba(0, 0, 0, 0.4); } |
2353 |
@@ -371,7 +431,7 @@ function twentyfifteen_post_nav_background() { |
2354 |
|
2355 |
if ( $next && has_post_thumbnail( $next->ID ) ) { |
2356 |
$nextthumb = wp_get_attachment_image_src( get_post_thumbnail_id( $next->ID ), 'post-thumbnail' ); |
2357 |
- $css .= ' |
2358 |
+ $css .= ' |
2359 |
.post-navigation .nav-next { background-image: url(' . esc_url( $nextthumb[0] ) . '); border-top: 0; } |
2360 |
.post-navigation .nav-next .post-title, .post-navigation .nav-next a:hover .post-title, .post-navigation .nav-next .meta-nav { color: #fff; } |
2361 |
.post-navigation .nav-next a:before { background-color: rgba(0, 0, 0, 0.4); } |
2362 |
|
2363 |
diff --git a/themes/twentyfifteen/header.php b/themes/twentyfifteen/header.php |
2364 |
index a088d85..28de34e 100644 |
2365 |
--- a/themes/twentyfifteen/header.php |
2366 |
+++ b/themes/twentyfifteen/header.php |
2367 |
@@ -31,20 +31,16 @@ |
2368 |
<?php |
2369 |
twentyfifteen_the_custom_logo(); |
2370 |
|
2371 |
- if ( is_front_page() && is_home() ) : |
2372 |
- ?> |
2373 |
+ if ( is_front_page() && is_home() ) : ?> |
2374 |
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> |
2375 |
<?php else : ?> |
2376 |
<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p> |
2377 |
- <?php |
2378 |
- endif; |
2379 |
+ <?php endif; |
2380 |
|
2381 |
$description = get_bloginfo( 'description', 'display' ); |
2382 |
-if ( $description || is_customize_preview() ) : |
2383 |
- ?> |
2384 |
+ if ( $description || is_customize_preview() ) : ?> |
2385 |
<p class="site-description"><?php echo $description; ?></p> |
2386 |
- <?php |
2387 |
- endif; |
2388 |
+ <?php endif; |
2389 |
?> |
2390 |
<button class="secondary-toggle"><?php _e( 'Menu and widgets', 'twentyfifteen' ); ?></button> |
2391 |
</div><!-- .site-branding --> |
2392 |
|
2393 |
diff --git a/themes/twentyfifteen/image.php b/themes/twentyfifteen/image.php |
2394 |
index ed07d05..5a471d4 100644 |
2395 |
--- a/themes/twentyfifteen/image.php |
2396 |
+++ b/themes/twentyfifteen/image.php |
2397 |
@@ -14,39 +14,38 @@ get_header(); ?> |
2398 |
|
2399 |
<?php |
2400 |
// Start the loop. |
2401 |
- while ( have_posts() ) : |
2402 |
- the_post(); |
2403 |
+ while ( have_posts() ) : the_post(); |
2404 |
?> |
2405 |
|
2406 |
- <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
2407 |
+ <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
2408 |
|
2409 |
- <nav id="image-navigation" class="navigation image-navigation"> |
2410 |
- <div class="nav-links"> |
2411 |
- <div class="nav-previous"><?php previous_image_link( false, __( 'Previous Image', 'twentyfifteen' ) ); ?></div><div class="nav-next"><?php next_image_link( false, __( 'Next Image', 'twentyfifteen' ) ); ?></div> |
2412 |
- </div><!-- .nav-links --> |
2413 |
- </nav><!-- .image-navigation --> |
2414 |
+ <nav id="image-navigation" class="navigation image-navigation"> |
2415 |
+ <div class="nav-links"> |
2416 |
+ <div class="nav-previous"><?php previous_image_link( false, __( 'Previous Image', 'twentyfifteen' ) ); ?></div><div class="nav-next"><?php next_image_link( false, __( 'Next Image', 'twentyfifteen' ) ); ?></div> |
2417 |
+ </div><!-- .nav-links --> |
2418 |
+ </nav><!-- .image-navigation --> |
2419 |
|
2420 |
- <header class="entry-header"> |
2421 |
- <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> |
2422 |
- </header><!-- .entry-header --> |
2423 |
+ <header class="entry-header"> |
2424 |
+ <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> |
2425 |
+ </header><!-- .entry-header --> |
2426 |
|
2427 |
- <div class="entry-content"> |
2428 |
+ <div class="entry-content"> |
2429 |
|
2430 |
- <div class="entry-attachment"> |
2431 |
- <?php |
2432 |
- /** |
2433 |
- * Filter the default Twenty Fifteen image attachment size. |
2434 |
- * |
2435 |
- * @since Twenty Fifteen 1.0 |
2436 |
- * |
2437 |
- * @param string $image_size Image size. Default 'large'. |
2438 |
- */ |
2439 |
- $image_size = apply_filters( 'twentyfifteen_attachment_size', 'large' ); |
2440 |
- |
2441 |
- echo wp_get_attachment_image( get_the_ID(), $image_size ); |
2442 |
- ?> |
2443 |
+ <div class="entry-attachment"> |
2444 |
+ <?php |
2445 |
+ /** |
2446 |
+ * Filter the default Twenty Fifteen image attachment size. |
2447 |
+ * |
2448 |
+ * @since Twenty Fifteen 1.0 |
2449 |
+ * |
2450 |
+ * @param string $image_size Image size. Default 'large'. |
2451 |
+ */ |
2452 |
+ $image_size = apply_filters( 'twentyfifteen_attachment_size', 'large' ); |
2453 |
|
2454 |
- <?php if ( has_excerpt() ) : ?> |
2455 |
+ echo wp_get_attachment_image( get_the_ID(), $image_size ); |
2456 |
+ ?> |
2457 |
+ |
2458 |
+ <?php if ( has_excerpt() ) : ?> |
2459 |
<div class="entry-caption"> |
2460 |
<?php the_excerpt(); ?> |
2461 |
</div><!-- .entry-caption --> |
2462 |
@@ -55,39 +54,35 @@ get_header(); ?> |
2463 |
</div><!-- .entry-attachment --> |
2464 |
|
2465 |
<?php |
2466 |
- the_content(); |
2467 |
- wp_link_pages( |
2468 |
- array( |
2469 |
+ the_content(); |
2470 |
+ wp_link_pages( array( |
2471 |
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfifteen' ) . '</span>', |
2472 |
'after' => '</div>', |
2473 |
'link_before' => '<span>', |
2474 |
'link_after' => '</span>', |
2475 |
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%', |
2476 |
'separator' => '<span class="screen-reader-text">, </span>', |
2477 |
- ) |
2478 |
- ); |
2479 |
- ?> |
2480 |
+ ) ); |
2481 |
+ ?> |
2482 |
</div><!-- .entry-content --> |
2483 |
|
2484 |
<footer class="entry-footer"> |
2485 |
- <?php twentyfifteen_entry_meta(); ?> |
2486 |
+ <?php twentyfifteen_entry_meta(); ?> |
2487 |
<?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<span class="edit-link">', '</span>' ); ?> |
2488 |
</footer><!-- .entry-footer --> |
2489 |
|
2490 |
</article><!-- #post-## --> |
2491 |
|
2492 |
<?php |
2493 |
- // If comments are open or we have at least one comment, load up the comment template |
2494 |
- if ( comments_open() || get_comments_number() ) : |
2495 |
- comments_template(); |
2496 |
+ // If comments are open or we have at least one comment, load up the comment template |
2497 |
+ if ( comments_open() || get_comments_number() ) : |
2498 |
+ comments_template(); |
2499 |
endif; |
2500 |
|
2501 |
- // Previous/next post navigation. |
2502 |
- the_post_navigation( |
2503 |
- array( |
2504 |
+ // Previous/next post navigation. |
2505 |
+ the_post_navigation( array( |
2506 |
'prev_text' => _x( '<span class="meta-nav">Published in</span><span class="post-title">%title</span>', 'Parent post link', 'twentyfifteen' ), |
2507 |
- ) |
2508 |
- ); |
2509 |
+ ) ); |
2510 |
|
2511 |
// End the loop. |
2512 |
endwhile; |
2513 |
|
2514 |
diff --git a/themes/twentyfifteen/inc/back-compat.php b/themes/twentyfifteen/inc/back-compat.php |
2515 |
index 2f828d6..73cd44d 100644 |
2516 |
--- a/themes/twentyfifteen/inc/back-compat.php |
2517 |
+++ b/themes/twentyfifteen/inc/back-compat.php |
2518 |
@@ -44,11 +44,9 @@ function twentyfifteen_upgrade_notice() { |
2519 |
* @since Twenty Fifteen 1.0 |
2520 |
*/ |
2521 |
function twentyfifteen_customize() { |
2522 |
- wp_die( |
2523 |
- sprintf( __( 'Twenty Fifteen requires at least WordPress version 4.1. You are running version %s. Please upgrade and try again.', 'twentyfifteen' ), $GLOBALS['wp_version'] ), '', array( |
2524 |
- 'back_link' => true, |
2525 |
- ) |
2526 |
- ); |
2527 |
+ wp_die( sprintf( __( 'Twenty Fifteen requires at least WordPress version 4.1. You are running version %s. Please upgrade and try again.', 'twentyfifteen' ), $GLOBALS['wp_version'] ), '', array( |
2528 |
+ 'back_link' => true, |
2529 |
+ ) ); |
2530 |
} |
2531 |
add_action( 'load-customize.php', 'twentyfifteen_customize' ); |
2532 |
|
2533 |
|
2534 |
diff --git a/themes/twentyfifteen/inc/custom-header.php b/themes/twentyfifteen/inc/custom-header.php |
2535 |
index 5f90789..10d0ef1 100644 |
2536 |
--- a/themes/twentyfifteen/inc/custom-header.php |
2537 |
+++ b/themes/twentyfifteen/inc/custom-header.php |
2538 |
@@ -13,8 +13,8 @@ |
2539 |
* @uses twentyfifteen_header_style() |
2540 |
*/ |
2541 |
function twentyfifteen_custom_header_setup() { |
2542 |
- $color_scheme = twentyfifteen_get_color_scheme(); |
2543 |
- $default_text_color = trim( $color_scheme[4], '#' ); |
2544 |
+ $color_scheme = twentyfifteen_get_color_scheme(); |
2545 |
+ $default_text_color = trim( $color_scheme[4], '#' ); |
2546 |
|
2547 |
/** |
2548 |
* Filter Twenty Fifteen custom-header support arguments. |
2549 |
@@ -31,16 +31,12 @@ function twentyfifteen_custom_header_setup() { |
2550 |
* displayed on the blog. |
2551 |
* } |
2552 |
*/ |
2553 |
- add_theme_support( |
2554 |
- 'custom-header', apply_filters( |
2555 |
- 'twentyfifteen_custom_header_args', array( |
2556 |
- 'default-text-color' => $default_text_color, |
2557 |
- 'width' => 954, |
2558 |
- 'height' => 1300, |
2559 |
- 'wp-head-callback' => 'twentyfifteen_header_style', |
2560 |
- ) |
2561 |
- ) |
2562 |
- ); |
2563 |
+ add_theme_support( 'custom-header', apply_filters( 'twentyfifteen_custom_header_args', array( |
2564 |
+ 'default-text-color' => $default_text_color, |
2565 |
+ 'width' => 954, |
2566 |
+ 'height' => 1300, |
2567 |
+ 'wp-head-callback' => 'twentyfifteen_header_style', |
2568 |
+ ) ) ); |
2569 |
} |
2570 |
add_action( 'after_setup_theme', 'twentyfifteen_custom_header_setup' ); |
2571 |
|
2572 |
@@ -57,10 +53,10 @@ function twentyfifteen_hex2rgb( $color ) { |
2573 |
$color = trim( $color, '#' ); |
2574 |
|
2575 |
if ( strlen( $color ) == 3 ) { |
2576 |
- $r = hexdec( substr( $color, 0, 1 ) . substr( $color, 0, 1 ) ); |
2577 |
- $g = hexdec( substr( $color, 1, 1 ) . substr( $color, 1, 1 ) ); |
2578 |
- $b = hexdec( substr( $color, 2, 1 ) . substr( $color, 2, 1 ) ); |
2579 |
- } elseif ( strlen( $color ) == 6 ) { |
2580 |
+ $r = hexdec( substr( $color, 0, 1 ).substr( $color, 0, 1 ) ); |
2581 |
+ $g = hexdec( substr( $color, 1, 1 ).substr( $color, 1, 1 ) ); |
2582 |
+ $b = hexdec( substr( $color, 2, 1 ).substr( $color, 2, 1 ) ); |
2583 |
+ } else if ( strlen( $color ) == 6 ) { |
2584 |
$r = hexdec( substr( $color, 0, 2 ) ); |
2585 |
$g = hexdec( substr( $color, 2, 2 ) ); |
2586 |
$b = hexdec( substr( $color, 4, 2 ) ); |
2587 |
@@ -68,33 +64,29 @@ function twentyfifteen_hex2rgb( $color ) { |
2588 |
return array(); |
2589 |
} |
2590 |
|
2591 |
- return array( |
2592 |
- 'red' => $r, |
2593 |
- 'green' => $g, |
2594 |
- 'blue' => $b, |
2595 |
- ); |
2596 |
+ return array( 'red' => $r, 'green' => $g, 'blue' => $b ); |
2597 |
} |
2598 |
|
2599 |
if ( ! function_exists( 'twentyfifteen_header_style' ) ) : |
2600 |
- /** |
2601 |
- * Styles the header image and text displayed on the blog. |
2602 |
- * |
2603 |
- * @since Twenty Fifteen 1.0 |
2604 |
- * |
2605 |
- * @see twentyfifteen_custom_header_setup() |
2606 |
- */ |
2607 |
- function twentyfifteen_header_style() { |
2608 |
- $header_image = get_header_image(); |
2609 |
+/** |
2610 |
+ * Styles the header image and text displayed on the blog. |
2611 |
+ * |
2612 |
+ * @since Twenty Fifteen 1.0 |
2613 |
+ * |
2614 |
+ * @see twentyfifteen_custom_header_setup() |
2615 |
+ */ |
2616 |
+function twentyfifteen_header_style() { |
2617 |
+ $header_image = get_header_image(); |
2618 |
|
2619 |
- // If no custom options for text are set, let's bail. |
2620 |
- if ( empty( $header_image ) && display_header_text() ) { |
2621 |
- return; |
2622 |
- } |
2623 |
+ // If no custom options for text are set, let's bail. |
2624 |
+ if ( empty( $header_image ) && display_header_text() ) { |
2625 |
+ return; |
2626 |
+ } |
2627 |
|
2628 |
- // If we get this far, we have custom styles. Let's do this. |
2629 |
- ?> |
2630 |
- <style type="text/css" id="twentyfifteen-header-css"> |
2631 |
- <?php |
2632 |
+ // If we get this far, we have custom styles. Let's do this. |
2633 |
+ ?> |
2634 |
+ <style type="text/css" id="twentyfifteen-header-css"> |
2635 |
+ <?php |
2636 |
// Short header for when there is no Custom Header and Header Text is hidden. |
2637 |
if ( empty( $header_image ) && ! display_header_text() ) : |
2638 |
?> |
2639 |
@@ -190,7 +182,7 @@ if ( ! function_exists( 'twentyfifteen_header_style' ) ) : |
2640 |
<?php endif; ?> |
2641 |
</style> |
2642 |
<?php |
2643 |
- } |
2644 |
+} |
2645 |
endif; // twentyfifteen_header_style |
2646 |
|
2647 |
/** |
2648 |
|
2649 |
diff --git a/themes/twentyfifteen/inc/customizer.php b/themes/twentyfifteen/inc/customizer.php |
2650 |
index 9cc00a8..c31c57e 100644 |
2651 |
--- a/themes/twentyfifteen/inc/customizer.php |
2652 |
+++ b/themes/twentyfifteen/inc/customizer.php |
2653 |
@@ -21,81 +21,61 @@ function twentyfifteen_customize_register( $wp_customize ) { |
2654 |
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; |
2655 |
|
2656 |
if ( isset( $wp_customize->selective_refresh ) ) { |
2657 |
- $wp_customize->selective_refresh->add_partial( |
2658 |
- 'blogname', array( |
2659 |
- 'selector' => '.site-title a', |
2660 |
- 'container_inclusive' => false, |
2661 |
- 'render_callback' => 'twentyfifteen_customize_partial_blogname', |
2662 |
- ) |
2663 |
- ); |
2664 |
- $wp_customize->selective_refresh->add_partial( |
2665 |
- 'blogdescription', array( |
2666 |
- 'selector' => '.site-description', |
2667 |
- 'container_inclusive' => false, |
2668 |
- 'render_callback' => 'twentyfifteen_customize_partial_blogdescription', |
2669 |
- ) |
2670 |
- ); |
2671 |
+ $wp_customize->selective_refresh->add_partial( 'blogname', array( |
2672 |
+ 'selector' => '.site-title a', |
2673 |
+ 'container_inclusive' => false, |
2674 |
+ 'render_callback' => 'twentyfifteen_customize_partial_blogname', |
2675 |
+ ) ); |
2676 |
+ $wp_customize->selective_refresh->add_partial( 'blogdescription', array( |
2677 |
+ 'selector' => '.site-description', |
2678 |
+ 'container_inclusive' => false, |
2679 |
+ 'render_callback' => 'twentyfifteen_customize_partial_blogdescription', |
2680 |
+ ) ); |
2681 |
} |
2682 |
|
2683 |
// Add color scheme setting and control. |
2684 |
- $wp_customize->add_setting( |
2685 |
- 'color_scheme', array( |
2686 |
- 'default' => 'default', |
2687 |
- 'sanitize_callback' => 'twentyfifteen_sanitize_color_scheme', |
2688 |
- 'transport' => 'postMessage', |
2689 |
- ) |
2690 |
- ); |
2691 |
- |
2692 |
- $wp_customize->add_control( |
2693 |
- 'color_scheme', array( |
2694 |
- 'label' => __( 'Base Color Scheme', 'twentyfifteen' ), |
2695 |
- 'section' => 'colors', |
2696 |
- 'type' => 'select', |
2697 |
- 'choices' => twentyfifteen_get_color_scheme_choices(), |
2698 |
- 'priority' => 1, |
2699 |
- ) |
2700 |
- ); |
2701 |
+ $wp_customize->add_setting( 'color_scheme', array( |
2702 |
+ 'default' => 'default', |
2703 |
+ 'sanitize_callback' => 'twentyfifteen_sanitize_color_scheme', |
2704 |
+ 'transport' => 'postMessage', |
2705 |
+ ) ); |
2706 |
+ |
2707 |
+ $wp_customize->add_control( 'color_scheme', array( |
2708 |
+ 'label' => __( 'Base Color Scheme', 'twentyfifteen' ), |
2709 |
+ 'section' => 'colors', |
2710 |
+ 'type' => 'select', |
2711 |
+ 'choices' => twentyfifteen_get_color_scheme_choices(), |
2712 |
+ 'priority' => 1, |
2713 |
+ ) ); |
2714 |
|
2715 |
// Add custom header and sidebar text color setting and control. |
2716 |
- $wp_customize->add_setting( |
2717 |
- 'sidebar_textcolor', array( |
2718 |
- 'default' => $color_scheme[4], |
2719 |
- 'sanitize_callback' => 'sanitize_hex_color', |
2720 |
- 'transport' => 'postMessage', |
2721 |
- ) |
2722 |
- ); |
2723 |
- |
2724 |
- $wp_customize->add_control( |
2725 |
- new WP_Customize_Color_Control( |
2726 |
- $wp_customize, 'sidebar_textcolor', array( |
2727 |
- 'label' => __( 'Header and Sidebar Text Color', 'twentyfifteen' ), |
2728 |
- 'description' => __( 'Applied to the header on small screens and the sidebar on wide screens.', 'twentyfifteen' ), |
2729 |
- 'section' => 'colors', |
2730 |
- ) |
2731 |
- ) |
2732 |
- ); |
2733 |
+ $wp_customize->add_setting( 'sidebar_textcolor', array( |
2734 |
+ 'default' => $color_scheme[4], |
2735 |
+ 'sanitize_callback' => 'sanitize_hex_color', |
2736 |
+ 'transport' => 'postMessage', |
2737 |
+ ) ); |
2738 |
+ |
2739 |
+ $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'sidebar_textcolor', array( |
2740 |
+ 'label' => __( 'Header and Sidebar Text Color', 'twentyfifteen' ), |
2741 |
+ 'description' => __( 'Applied to the header on small screens and the sidebar on wide screens.', 'twentyfifteen' ), |
2742 |
+ 'section' => 'colors', |
2743 |
+ ) ) ); |
2744 |
|
2745 |
// Remove the core header textcolor control, as it shares the sidebar text color. |
2746 |
$wp_customize->remove_control( 'header_textcolor' ); |
2747 |
|
2748 |
// Add custom header and sidebar background color setting and control. |
2749 |
- $wp_customize->add_setting( |
2750 |
- 'header_background_color', array( |
2751 |
- 'default' => $color_scheme[1], |
2752 |
- 'sanitize_callback' => 'sanitize_hex_color', |
2753 |
- 'transport' => 'postMessage', |
2754 |
- ) |
2755 |
- ); |
2756 |
- |
2757 |
- $wp_customize->add_control( |
2758 |
- new WP_Customize_Color_Control( |
2759 |
- $wp_customize, 'header_background_color', array( |
2760 |
- 'label' => __( 'Header and Sidebar Background Color', 'twentyfifteen' ), |
2761 |
- 'description' => __( 'Applied to the header on small screens and the sidebar on wide screens.', 'twentyfifteen' ), |
2762 |
- 'section' => 'colors', |
2763 |
- ) |
2764 |
- ) |
2765 |
- ); |
2766 |
+ $wp_customize->add_setting( 'header_background_color', array( |
2767 |
+ 'default' => $color_scheme[1], |
2768 |
+ 'sanitize_callback' => 'sanitize_hex_color', |
2769 |
+ 'transport' => 'postMessage', |
2770 |
+ ) ); |
2771 |
+ |
2772 |
+ $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'header_background_color', array( |
2773 |
+ 'label' => __( 'Header and Sidebar Background Color', 'twentyfifteen' ), |
2774 |
+ 'description' => __( 'Applied to the header on small screens and the sidebar on wide screens.', 'twentyfifteen' ), |
2775 |
+ 'section' => 'colors', |
2776 |
+ ) ) ); |
2777 |
|
2778 |
// Add an additional description to the header image section. |
2779 |
$wp_customize->get_section( 'header_image' )->description = __( 'Applied to the header on small screens and the sidebar on wide screens.', 'twentyfifteen' ); |
2780 |
@@ -165,136 +145,134 @@ function twentyfifteen_get_color_schemes() { |
2781 |
* } |
2782 |
* } |
2783 |
*/ |
2784 |
- return apply_filters( |
2785 |
- 'twentyfifteen_color_schemes', array( |
2786 |
- 'default' => array( |
2787 |
- 'label' => __( 'Default', 'twentyfifteen' ), |
2788 |
- 'colors' => array( |
2789 |
- '#f1f1f1', |
2790 |
- '#ffffff', |
2791 |
- '#ffffff', |
2792 |
- '#333333', |
2793 |
- '#333333', |
2794 |
- '#f7f7f7', |
2795 |
- ), |
2796 |
+ return apply_filters( 'twentyfifteen_color_schemes', array( |
2797 |
+ 'default' => array( |
2798 |
+ 'label' => __( 'Default', 'twentyfifteen' ), |
2799 |
+ 'colors' => array( |
2800 |
+ '#f1f1f1', |
2801 |
+ '#ffffff', |
2802 |
+ '#ffffff', |
2803 |
+ '#333333', |
2804 |
+ '#333333', |
2805 |
+ '#f7f7f7', |
2806 |
), |
2807 |
- 'dark' => array( |
2808 |
- 'label' => __( 'Dark', 'twentyfifteen' ), |
2809 |
- 'colors' => array( |
2810 |
- '#111111', |
2811 |
- '#202020', |
2812 |
- '#202020', |
2813 |
- '#bebebe', |
2814 |
- '#bebebe', |
2815 |
- '#1b1b1b', |
2816 |
- ), |
2817 |
+ ), |
2818 |
+ 'dark' => array( |
2819 |
+ 'label' => __( 'Dark', 'twentyfifteen' ), |
2820 |
+ 'colors' => array( |
2821 |
+ '#111111', |
2822 |
+ '#202020', |
2823 |
+ '#202020', |
2824 |
+ '#bebebe', |
2825 |
+ '#bebebe', |
2826 |
+ '#1b1b1b', |
2827 |
), |
2828 |
- 'yellow' => array( |
2829 |
- 'label' => __( 'Yellow', 'twentyfifteen' ), |
2830 |
- 'colors' => array( |
2831 |
- '#f4ca16', |
2832 |
- '#ffdf00', |
2833 |
- '#ffffff', |
2834 |
- '#111111', |
2835 |
- '#111111', |
2836 |
- '#f1f1f1', |
2837 |
- ), |
2838 |
+ ), |
2839 |
+ 'yellow' => array( |
2840 |
+ 'label' => __( 'Yellow', 'twentyfifteen' ), |
2841 |
+ 'colors' => array( |
2842 |
+ '#f4ca16', |
2843 |
+ '#ffdf00', |
2844 |
+ '#ffffff', |
2845 |
+ '#111111', |
2846 |
+ '#111111', |
2847 |
+ '#f1f1f1', |
2848 |
), |
2849 |
- 'pink' => array( |
2850 |
- 'label' => __( 'Pink', 'twentyfifteen' ), |
2851 |
- 'colors' => array( |
2852 |
- '#ffe5d1', |
2853 |
- '#e53b51', |
2854 |
- '#ffffff', |
2855 |
- '#352712', |
2856 |
- '#ffffff', |
2857 |
- '#f1f1f1', |
2858 |
- ), |
2859 |
+ ), |
2860 |
+ 'pink' => array( |
2861 |
+ 'label' => __( 'Pink', 'twentyfifteen' ), |
2862 |
+ 'colors' => array( |
2863 |
+ '#ffe5d1', |
2864 |
+ '#e53b51', |
2865 |
+ '#ffffff', |
2866 |
+ '#352712', |
2867 |
+ '#ffffff', |
2868 |
+ '#f1f1f1', |
2869 |
), |
2870 |
- 'purple' => array( |
2871 |
- 'label' => __( 'Purple', 'twentyfifteen' ), |
2872 |
- 'colors' => array( |
2873 |
- '#674970', |
2874 |
- '#2e2256', |
2875 |
- '#ffffff', |
2876 |
- '#2e2256', |
2877 |
- '#ffffff', |
2878 |
- '#f1f1f1', |
2879 |
- ), |
2880 |
+ ), |
2881 |
+ 'purple' => array( |
2882 |
+ 'label' => __( 'Purple', 'twentyfifteen' ), |
2883 |
+ 'colors' => array( |
2884 |
+ '#674970', |
2885 |
+ '#2e2256', |
2886 |
+ '#ffffff', |
2887 |
+ '#2e2256', |
2888 |
+ '#ffffff', |
2889 |
+ '#f1f1f1', |
2890 |
), |
2891 |
- 'blue' => array( |
2892 |
- 'label' => __( 'Blue', 'twentyfifteen' ), |
2893 |
- 'colors' => array( |
2894 |
- '#e9f2f9', |
2895 |
- '#55c3dc', |
2896 |
- '#ffffff', |
2897 |
- '#22313f', |
2898 |
- '#ffffff', |
2899 |
- '#f1f1f1', |
2900 |
- ), |
2901 |
+ ), |
2902 |
+ 'blue' => array( |
2903 |
+ 'label' => __( 'Blue', 'twentyfifteen' ), |
2904 |
+ 'colors' => array( |
2905 |
+ '#e9f2f9', |
2906 |
+ '#55c3dc', |
2907 |
+ '#ffffff', |
2908 |
+ '#22313f', |
2909 |
+ '#ffffff', |
2910 |
+ '#f1f1f1', |
2911 |
), |
2912 |
- ) |
2913 |
- ); |
2914 |
+ ), |
2915 |
+ ) ); |
2916 |
} |
2917 |
|
2918 |
if ( ! function_exists( 'twentyfifteen_get_color_scheme' ) ) : |
2919 |
- /** |
2920 |
- * Get the current Twenty Fifteen color scheme. |
2921 |
- * |
2922 |
- * @since Twenty Fifteen 1.0 |
2923 |
- * |
2924 |
- * @return array An associative array of either the current or default color scheme hex values. |
2925 |
- */ |
2926 |
- function twentyfifteen_get_color_scheme() { |
2927 |
- $color_scheme_option = get_theme_mod( 'color_scheme', 'default' ); |
2928 |
- $color_schemes = twentyfifteen_get_color_schemes(); |
2929 |
- |
2930 |
- if ( array_key_exists( $color_scheme_option, $color_schemes ) ) { |
2931 |
- return $color_schemes[ $color_scheme_option ]['colors']; |
2932 |
- } |
2933 |
+/** |
2934 |
+ * Get the current Twenty Fifteen color scheme. |
2935 |
+ * |
2936 |
+ * @since Twenty Fifteen 1.0 |
2937 |
+ * |
2938 |
+ * @return array An associative array of either the current or default color scheme hex values. |
2939 |
+ */ |
2940 |
+function twentyfifteen_get_color_scheme() { |
2941 |
+ $color_scheme_option = get_theme_mod( 'color_scheme', 'default' ); |
2942 |
+ $color_schemes = twentyfifteen_get_color_schemes(); |
2943 |
|
2944 |
- return $color_schemes['default']['colors']; |
2945 |
+ if ( array_key_exists( $color_scheme_option, $color_schemes ) ) { |
2946 |
+ return $color_schemes[ $color_scheme_option ]['colors']; |
2947 |
} |
2948 |
+ |
2949 |
+ return $color_schemes['default']['colors']; |
2950 |
+} |
2951 |
endif; // twentyfifteen_get_color_scheme |
2952 |
|
2953 |
if ( ! function_exists( 'twentyfifteen_get_color_scheme_choices' ) ) : |
2954 |
- /** |
2955 |
- * Returns an array of color scheme choices registered for Twenty Fifteen. |
2956 |
- * |
2957 |
- * @since Twenty Fifteen 1.0 |
2958 |
- * |
2959 |
- * @return array Array of color schemes. |
2960 |
- */ |
2961 |
- function twentyfifteen_get_color_scheme_choices() { |
2962 |
- $color_schemes = twentyfifteen_get_color_schemes(); |
2963 |
- $color_scheme_control_options = array(); |
2964 |
- |
2965 |
- foreach ( $color_schemes as $color_scheme => $value ) { |
2966 |
- $color_scheme_control_options[ $color_scheme ] = $value['label']; |
2967 |
- } |
2968 |
+/** |
2969 |
+ * Returns an array of color scheme choices registered for Twenty Fifteen. |
2970 |
+ * |
2971 |
+ * @since Twenty Fifteen 1.0 |
2972 |
+ * |
2973 |
+ * @return array Array of color schemes. |
2974 |
+ */ |
2975 |
+function twentyfifteen_get_color_scheme_choices() { |
2976 |
+ $color_schemes = twentyfifteen_get_color_schemes(); |
2977 |
+ $color_scheme_control_options = array(); |
2978 |
|
2979 |
- return $color_scheme_control_options; |
2980 |
+ foreach ( $color_schemes as $color_scheme => $value ) { |
2981 |
+ $color_scheme_control_options[ $color_scheme ] = $value['label']; |
2982 |
} |
2983 |
+ |
2984 |
+ return $color_scheme_control_options; |
2985 |
+} |
2986 |
endif; // twentyfifteen_get_color_scheme_choices |
2987 |
|
2988 |
if ( ! function_exists( 'twentyfifteen_sanitize_color_scheme' ) ) : |
2989 |
- /** |
2990 |
- * Sanitization callback for color schemes. |
2991 |
- * |
2992 |
- * @since Twenty Fifteen 1.0 |
2993 |
- * |
2994 |
- * @param string $value Color scheme name value. |
2995 |
- * @return string Color scheme name. |
2996 |
- */ |
2997 |
- function twentyfifteen_sanitize_color_scheme( $value ) { |
2998 |
- $color_schemes = twentyfifteen_get_color_scheme_choices(); |
2999 |
- |
3000 |
- if ( ! array_key_exists( $value, $color_schemes ) ) { |
3001 |
- $value = 'default'; |
3002 |
- } |
3003 |
+/** |
3004 |
+ * Sanitization callback for color schemes. |
3005 |
+ * |
3006 |
+ * @since Twenty Fifteen 1.0 |
3007 |
+ * |
3008 |
+ * @param string $value Color scheme name value. |
3009 |
+ * @return string Color scheme name. |
3010 |
+ */ |
3011 |
+function twentyfifteen_sanitize_color_scheme( $value ) { |
3012 |
+ $color_schemes = twentyfifteen_get_color_scheme_choices(); |
3013 |
|
3014 |
- return $value; |
3015 |
+ if ( ! array_key_exists( $value, $color_schemes ) ) { |
3016 |
+ $value = 'default'; |
3017 |
} |
3018 |
+ |
3019 |
+ return $value; |
3020 |
+} |
3021 |
endif; // twentyfifteen_sanitize_color_scheme |
3022 |
|
3023 |
/** |
3024 |
@@ -317,7 +295,7 @@ function twentyfifteen_color_scheme_css() { |
3025 |
// Convert main and sidebar text hex color to rgba. |
3026 |
$color_textcolor_rgb = twentyfifteen_hex2rgb( $color_scheme[3] ); |
3027 |
$color_sidebar_textcolor_rgb = twentyfifteen_hex2rgb( $color_scheme[4] ); |
3028 |
- $colors = array( |
3029 |
+ $colors = array( |
3030 |
'background_color' => $color_scheme[0], |
3031 |
'header_background_color' => $color_scheme[1], |
3032 |
'box_background_color' => $color_scheme[2], |
3033 |
@@ -370,22 +348,20 @@ add_action( 'customize_preview_init', 'twentyfifteen_customize_preview_js' ); |
3034 |
* @return string Color scheme CSS. |
3035 |
*/ |
3036 |
function twentyfifteen_get_color_scheme_css( $colors ) { |
3037 |
- $colors = wp_parse_args( |
3038 |
- $colors, array( |
3039 |
- 'background_color' => '', |
3040 |
- 'header_background_color' => '', |
3041 |
- 'box_background_color' => '', |
3042 |
- 'textcolor' => '', |
3043 |
- 'secondary_textcolor' => '', |
3044 |
- 'border_color' => '', |
3045 |
- 'border_focus_color' => '', |
3046 |
- 'sidebar_textcolor' => '', |
3047 |
- 'sidebar_border_color' => '', |
3048 |
- 'sidebar_border_focus_color' => '', |
3049 |
- 'secondary_sidebar_textcolor' => '', |
3050 |
- 'meta_box_background_color' => '', |
3051 |
- ) |
3052 |
- ); |
3053 |
+ $colors = wp_parse_args( $colors, array( |
3054 |
+ 'background_color' => '', |
3055 |
+ 'header_background_color' => '', |
3056 |
+ 'box_background_color' => '', |
3057 |
+ 'textcolor' => '', |
3058 |
+ 'secondary_textcolor' => '', |
3059 |
+ 'border_color' => '', |
3060 |
+ 'border_focus_color' => '', |
3061 |
+ 'sidebar_textcolor' => '', |
3062 |
+ 'sidebar_border_color' => '', |
3063 |
+ 'sidebar_border_focus_color' => '', |
3064 |
+ 'secondary_sidebar_textcolor' => '', |
3065 |
+ 'meta_box_background_color' => '', |
3066 |
+ ) ); |
3067 |
|
3068 |
$css = <<<CSS |
3069 |
/* Color Scheme */ |
3070 |
|
3071 |
diff --git a/themes/twentyfifteen/inc/template-tags.php b/themes/twentyfifteen/inc/template-tags.php |
3072 |
index baa98d2..7b4ffeb 100644 |
3073 |
--- a/themes/twentyfifteen/inc/template-tags.php |
3074 |
+++ b/themes/twentyfifteen/inc/template-tags.php |
3075 |
@@ -10,127 +10,120 @@ |
3076 |
*/ |
3077 |
|
3078 |
if ( ! function_exists( 'twentyfifteen_comment_nav' ) ) : |
3079 |
- /** |
3080 |
- * Display navigation to next/previous comments when applicable. |
3081 |
- * |
3082 |
- * @since Twenty Fifteen 1.0 |
3083 |
- */ |
3084 |
- function twentyfifteen_comment_nav() { |
3085 |
- // Are there comments to navigate through? |
3086 |
- if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : |
3087 |
- ?> |
3088 |
- <nav class="navigation comment-navigation" role="navigation"> |
3089 |
+/** |
3090 |
+ * Display navigation to next/previous comments when applicable. |
3091 |
+ * |
3092 |
+ * @since Twenty Fifteen 1.0 |
3093 |
+ */ |
3094 |
+function twentyfifteen_comment_nav() { |
3095 |
+ // Are there comments to navigate through? |
3096 |
+ if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : |
3097 |
+ ?> |
3098 |
+ <nav class="navigation comment-navigation" role="navigation"> |
3099 |
<h2 class="screen-reader-text"><?php _e( 'Comment navigation', 'twentyfifteen' ); ?></h2> |
3100 |
<div class="nav-links"> |
3101 |
<?php |
3102 |
- if ( $prev_link = get_previous_comments_link( __( 'Older Comments', 'twentyfifteen' ) ) ) : |
3103 |
- printf( '<div class="nav-previous">%s</div>', $prev_link ); |
3104 |
+ if ( $prev_link = get_previous_comments_link( __( 'Older Comments', 'twentyfifteen' ) ) ) : |
3105 |
+ printf( '<div class="nav-previous">%s</div>', $prev_link ); |
3106 |
endif; |
3107 |
|
3108 |
- if ( $next_link = get_next_comments_link( __( 'Newer Comments', 'twentyfifteen' ) ) ) : |
3109 |
- printf( '<div class="nav-next">%s</div>', $next_link ); |
3110 |
+ if ( $next_link = get_next_comments_link( __( 'Newer Comments', 'twentyfifteen' ) ) ) : |
3111 |
+ printf( '<div class="nav-next">%s</div>', $next_link ); |
3112 |
endif; |
3113 |
?> |
3114 |
- </div><!-- .nav-links --> |
3115 |
- </nav><!-- .comment-navigation --> |
3116 |
- <?php |
3117 |
- endif; |
3118 |
- } |
3119 |
+ </div><!-- .nav-links --> |
3120 |
+ </nav><!-- .comment-navigation --> |
3121 |
+ <?php |
3122 |
+ endif; |
3123 |
+} |
3124 |
endif; |
3125 |
|
3126 |
if ( ! function_exists( 'twentyfifteen_entry_meta' ) ) : |
3127 |
- /** |
3128 |
- * Prints HTML with meta information for the categories, tags. |
3129 |
- * |
3130 |
- * @since Twenty Fifteen 1.0 |
3131 |
- */ |
3132 |
- function twentyfifteen_entry_meta() { |
3133 |
- if ( is_sticky() && is_home() && ! is_paged() ) { |
3134 |
- printf( '<span class="sticky-post">%s</span>', __( 'Featured', 'twentyfifteen' ) ); |
3135 |
- } |
3136 |
+/** |
3137 |
+ * Prints HTML with meta information for the categories, tags. |
3138 |
+ * |
3139 |
+ * @since Twenty Fifteen 1.0 |
3140 |
+ */ |
3141 |
+function twentyfifteen_entry_meta() { |
3142 |
+ if ( is_sticky() && is_home() && ! is_paged() ) { |
3143 |
+ printf( '<span class="sticky-post">%s</span>', __( 'Featured', 'twentyfifteen' ) ); |
3144 |
+ } |
3145 |
|
3146 |
- $format = get_post_format(); |
3147 |
- if ( current_theme_supports( 'post-formats', $format ) ) { |
3148 |
- printf( |
3149 |
- '<span class="entry-format">%1$s<a href="%2$s">%3$s</a></span>', |
3150 |
- sprintf( '<span class="screen-reader-text">%s </span>', _x( 'Format', 'Used before post format.', 'twentyfifteen' ) ), |
3151 |
- esc_url( get_post_format_link( $format ) ), |
3152 |
- get_post_format_string( $format ) |
3153 |
- ); |
3154 |
+ $format = get_post_format(); |
3155 |
+ if ( current_theme_supports( 'post-formats', $format ) ) { |
3156 |
+ printf( '<span class="entry-format">%1$s<a href="%2$s">%3$s</a></span>', |
3157 |
+ sprintf( '<span class="screen-reader-text">%s </span>', _x( 'Format', 'Used before post format.', 'twentyfifteen' ) ), |
3158 |
+ esc_url( get_post_format_link( $format ) ), |
3159 |
+ get_post_format_string( $format ) |
3160 |
+ ); |
3161 |
+ } |
3162 |
+ |
3163 |
+ if ( in_array( get_post_type(), array( 'post', 'attachment' ) ) ) { |
3164 |
+ $time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>'; |
3165 |
+ |
3166 |
+ if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { |
3167 |
+ $time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>'; |
3168 |
} |
3169 |
|
3170 |
- if ( in_array( get_post_type(), array( 'post', 'attachment' ) ) ) { |
3171 |
- $time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>'; |
3172 |
+ $time_string = sprintf( $time_string, |
3173 |
+ esc_attr( get_the_date( 'c' ) ), |
3174 |
+ get_the_date(), |
3175 |
+ esc_attr( get_the_modified_date( 'c' ) ), |
3176 |
+ get_the_modified_date() |
3177 |
+ ); |
3178 |
|
3179 |
- if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { |
3180 |
- $time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>'; |
3181 |
- } |
3182 |
+ printf( '<span class="posted-on"><span class="screen-reader-text">%1$s </span><a href="%2$s" rel="bookmark">%3$s</a></span>', |
3183 |
+ _x( 'Posted on', 'Used before publish date.', 'twentyfifteen' ), |
3184 |
+ esc_url( get_permalink() ), |
3185 |
+ $time_string |
3186 |
+ ); |
3187 |
+ } |
3188 |
|
3189 |
- $time_string = sprintf( |
3190 |
- $time_string, |
3191 |
- esc_attr( get_the_date( 'c' ) ), |
3192 |
- get_the_date(), |
3193 |
- esc_attr( get_the_modified_date( 'c' ) ), |
3194 |
- get_the_modified_date() |
3195 |
+ if ( 'post' == get_post_type() ) { |
3196 |
+ if ( is_singular() || is_multi_author() ) { |
3197 |
+ printf( '<span class="byline"><span class="author vcard"><span class="screen-reader-text">%1$s </span><a class="url fn n" href="%2$s">%3$s</a></span></span>', |
3198 |
+ _x( 'Author', 'Used before post author name.', 'twentyfifteen' ), |
3199 |
+ esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), |
3200 |
+ get_the_author() |
3201 |
); |
3202 |
+ } |
3203 |
|
3204 |
- printf( |
3205 |
- '<span class="posted-on"><span class="screen-reader-text">%1$s </span><a href="%2$s" rel="bookmark">%3$s</a></span>', |
3206 |
- _x( 'Posted on', 'Used before publish date.', 'twentyfifteen' ), |
3207 |
- esc_url( get_permalink() ), |
3208 |
- $time_string |
3209 |
+ $categories_list = get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfifteen' ) ); |
3210 |
+ if ( $categories_list && twentyfifteen_categorized_blog() ) { |
3211 |
+ printf( '<span class="cat-links"><span class="screen-reader-text">%1$s </span>%2$s</span>', |
3212 |
+ _x( 'Categories', 'Used before category names.', 'twentyfifteen' ), |
3213 |
+ $categories_list |
3214 |
); |
3215 |
} |
3216 |
|
3217 |
- if ( 'post' == get_post_type() ) { |
3218 |
- if ( is_singular() || is_multi_author() ) { |
3219 |
- printf( |
3220 |
- '<span class="byline"><span class="author vcard"><span class="screen-reader-text">%1$s </span><a class="url fn n" href="%2$s">%3$s</a></span></span>', |
3221 |
- _x( 'Author', 'Used before post author name.', 'twentyfifteen' ), |
3222 |
- esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), |
3223 |
- get_the_author() |
3224 |
- ); |
3225 |
- } |
3226 |
- |
3227 |
- $categories_list = get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfifteen' ) ); |
3228 |
- if ( $categories_list && twentyfifteen_categorized_blog() ) { |
3229 |
- printf( |
3230 |
- '<span class="cat-links"><span class="screen-reader-text">%1$s </span>%2$s</span>', |
3231 |
- _x( 'Categories', 'Used before category names.', 'twentyfifteen' ), |
3232 |
- $categories_list |
3233 |
- ); |
3234 |
- } |
3235 |
- |
3236 |
- $tags_list = get_the_tag_list( '', _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfifteen' ) ); |
3237 |
- if ( $tags_list && ! is_wp_error( $tags_list ) ) { |
3238 |
- printf( |
3239 |
- '<span class="tags-links"><span class="screen-reader-text">%1$s </span>%2$s</span>', |
3240 |
- _x( 'Tags', 'Used before tag names.', 'twentyfifteen' ), |
3241 |
- $tags_list |
3242 |
- ); |
3243 |
- } |
3244 |
+ $tags_list = get_the_tag_list( '', _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfifteen' ) ); |
3245 |
+ if ( $tags_list && ! is_wp_error( $tags_list ) ) { |
3246 |
+ printf( '<span class="tags-links"><span class="screen-reader-text">%1$s </span>%2$s</span>', |
3247 |
+ _x( 'Tags', 'Used before tag names.', 'twentyfifteen' ), |
3248 |
+ $tags_list |
3249 |
+ ); |
3250 |
} |
3251 |
+ } |
3252 |
|
3253 |
- if ( is_attachment() && wp_attachment_is_image() ) { |
3254 |
- // Retrieve attachment metadata. |
3255 |
- $metadata = wp_get_attachment_metadata(); |
3256 |
+ if ( is_attachment() && wp_attachment_is_image() ) { |
3257 |
+ // Retrieve attachment metadata. |
3258 |
+ $metadata = wp_get_attachment_metadata(); |
3259 |
|
3260 |
- printf( |
3261 |
- '<span class="full-size-link"><span class="screen-reader-text">%1$s </span><a href="%2$s">%3$s × %4$s</a></span>', |
3262 |
- _x( 'Full size', 'Used before full size attachment link.', 'twentyfifteen' ), |
3263 |
- esc_url( wp_get_attachment_url() ), |
3264 |
- $metadata['width'], |
3265 |
- $metadata['height'] |
3266 |
- ); |
3267 |
- } |
3268 |
+ printf( '<span class="full-size-link"><span class="screen-reader-text">%1$s </span><a href="%2$s">%3$s × %4$s</a></span>', |
3269 |
+ _x( 'Full size', 'Used before full size attachment link.', 'twentyfifteen' ), |
3270 |
+ esc_url( wp_get_attachment_url() ), |
3271 |
+ $metadata['width'], |
3272 |
+ $metadata['height'] |
3273 |
+ ); |
3274 |
+ } |
3275 |
|
3276 |
- if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { |
3277 |
- echo '<span class="comments-link">'; |
3278 |
- /* translators: %s: post title */ |
3279 |
- comments_popup_link( sprintf( __( 'Leave a comment<span class="screen-reader-text"> on %s</span>', 'twentyfifteen' ), get_the_title() ) ); |
3280 |
- echo '</span>'; |
3281 |
- } |
3282 |
+ if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { |
3283 |
+ echo '<span class="comments-link">'; |
3284 |
+ /* translators: %s: post title */ |
3285 |
+ comments_popup_link( sprintf( __( 'Leave a comment<span class="screen-reader-text"> on %s</span>', 'twentyfifteen' ), get_the_title() ) ); |
3286 |
+ echo '</span>'; |
3287 |
} |
3288 |
+} |
3289 |
endif; |
3290 |
|
3291 |
/** |
3292 |
@@ -143,15 +136,13 @@ endif; |
3293 |
function twentyfifteen_categorized_blog() { |
3294 |
if ( false === ( $all_the_cool_cats = get_transient( 'twentyfifteen_categories' ) ) ) { |
3295 |
// Create an array of all the categories that are attached to posts. |
3296 |
- $all_the_cool_cats = get_categories( |
3297 |
- array( |
3298 |
- 'fields' => 'ids', |
3299 |
- 'hide_empty' => 1, |
3300 |
+ $all_the_cool_cats = get_categories( array( |
3301 |
+ 'fields' => 'ids', |
3302 |
+ 'hide_empty' => 1, |
3303 |
|
3304 |
- // We only need to know if there is more than one category. |
3305 |
- 'number' => 2, |
3306 |
- ) |
3307 |
- ); |
3308 |
+ // We only need to know if there is more than one category. |
3309 |
+ 'number' => 2, |
3310 |
+ ) ); |
3311 |
|
3312 |
// Count the number of categories that are attached to the posts. |
3313 |
$all_the_cool_cats = count( $all_the_cool_cats ); |
3314 |
@@ -178,26 +169,26 @@ function twentyfifteen_category_transient_flusher() { |
3315 |
delete_transient( 'twentyfifteen_categories' ); |
3316 |
} |
3317 |
add_action( 'edit_category', 'twentyfifteen_category_transient_flusher' ); |
3318 |
-add_action( 'save_post', 'twentyfifteen_category_transient_flusher' ); |
3319 |
+add_action( 'save_post', 'twentyfifteen_category_transient_flusher' ); |
3320 |
|
3321 |
if ( ! function_exists( 'twentyfifteen_post_thumbnail' ) ) : |
3322 |
- /** |
3323 |
- * Display an optional post thumbnail. |
3324 |
- * |
3325 |
- * Wraps the post thumbnail in an anchor element on index views, or a div |
3326 |
- * element when on single views. |
3327 |
- * |
3328 |
- * @since Twenty Fifteen 1.0 |
3329 |
- */ |
3330 |
- function twentyfifteen_post_thumbnail() { |
3331 |
- if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) { |
3332 |
- return; |
3333 |
- } |
3334 |
+/** |
3335 |
+ * Display an optional post thumbnail. |
3336 |
+ * |
3337 |
+ * Wraps the post thumbnail in an anchor element on index views, or a div |
3338 |
+ * element when on single views. |
3339 |
+ * |
3340 |
+ * @since Twenty Fifteen 1.0 |
3341 |
+ */ |
3342 |
+function twentyfifteen_post_thumbnail() { |
3343 |
+ if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) { |
3344 |
+ return; |
3345 |
+ } |
3346 |
|
3347 |
- if ( is_singular() ) : |
3348 |
- ?> |
3349 |
+ if ( is_singular() ) : |
3350 |
+ ?> |
3351 |
|
3352 |
- <div class="post-thumbnail"> |
3353 |
+ <div class="post-thumbnail"> |
3354 |
<?php the_post_thumbnail(); ?> |
3355 |
</div><!-- .post-thumbnail --> |
3356 |
|
3357 |
@@ -209,61 +200,59 @@ if ( ! function_exists( 'twentyfifteen_post_thumbnail' ) ) : |
3358 |
?> |
3359 |
</a> |
3360 |
|
3361 |
- <?php |
3362 |
- endif; // End is_singular() |
3363 |
- } |
3364 |
+ <?php endif; // End is_singular() |
3365 |
+} |
3366 |
endif; |
3367 |
|
3368 |
if ( ! function_exists( 'twentyfifteen_get_link_url' ) ) : |
3369 |
- /** |
3370 |
- * Return the post URL. |
3371 |
- * |
3372 |
- * Falls back to the post permalink if no URL is found in the post. |
3373 |
- * |
3374 |
- * @since Twenty Fifteen 1.0 |
3375 |
- * |
3376 |
- * @see get_url_in_content() |
3377 |
- * |
3378 |
- * @return string The Link format URL. |
3379 |
- */ |
3380 |
- function twentyfifteen_get_link_url() { |
3381 |
- $has_url = get_url_in_content( get_the_content() ); |
3382 |
+/** |
3383 |
+ * Return the post URL. |
3384 |
+ * |
3385 |
+ * Falls back to the post permalink if no URL is found in the post. |
3386 |
+ * |
3387 |
+ * @since Twenty Fifteen 1.0 |
3388 |
+ * |
3389 |
+ * @see get_url_in_content() |
3390 |
+ * |
3391 |
+ * @return string The Link format URL. |
3392 |
+ */ |
3393 |
+function twentyfifteen_get_link_url() { |
3394 |
+ $has_url = get_url_in_content( get_the_content() ); |
3395 |
|
3396 |
- return $has_url ? $has_url : apply_filters( 'the_permalink', get_permalink() ); |
3397 |
- } |
3398 |
+ return $has_url ? $has_url : apply_filters( 'the_permalink', get_permalink() ); |
3399 |
+} |
3400 |
endif; |
3401 |
|
3402 |
if ( ! function_exists( 'twentyfifteen_excerpt_more' ) && ! is_admin() ) : |
3403 |
- /** |
3404 |
- * Replaces "[...]" (appended to automatically generated excerpts) with ... and a 'Continue reading' link. |
3405 |
- * |
3406 |
- * @since Twenty Fifteen 1.0 |
3407 |
- * |
3408 |
- * @return string 'Continue reading' link prepended with an ellipsis. |
3409 |
- */ |
3410 |
- function twentyfifteen_excerpt_more( $more ) { |
3411 |
- $link = sprintf( |
3412 |
- '<a href="%1$s" class="more-link">%2$s</a>', |
3413 |
- esc_url( get_permalink( get_the_ID() ) ), |
3414 |
- /* translators: %s: Name of current post */ |
3415 |
- sprintf( __( 'Continue reading %s', 'twentyfifteen' ), '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span>' ) |
3416 |
+/** |
3417 |
+ * Replaces "[...]" (appended to automatically generated excerpts) with ... and a 'Continue reading' link. |
3418 |
+ * |
3419 |
+ * @since Twenty Fifteen 1.0 |
3420 |
+ * |
3421 |
+ * @return string 'Continue reading' link prepended with an ellipsis. |
3422 |
+ */ |
3423 |
+function twentyfifteen_excerpt_more( $more ) { |
3424 |
+ $link = sprintf( '<a href="%1$s" class="more-link">%2$s</a>', |
3425 |
+ esc_url( get_permalink( get_the_ID() ) ), |
3426 |
+ /* translators: %s: Name of current post */ |
3427 |
+ sprintf( __( 'Continue reading %s', 'twentyfifteen' ), '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span>' ) |
3428 |
); |
3429 |
- return ' … ' . $link; |
3430 |
- } |
3431 |
- add_filter( 'excerpt_more', 'twentyfifteen_excerpt_more' ); |
3432 |
+ return ' … ' . $link; |
3433 |
+} |
3434 |
+add_filter( 'excerpt_more', 'twentyfifteen_excerpt_more' ); |
3435 |
endif; |
3436 |
|
3437 |
if ( ! function_exists( 'twentyfifteen_the_custom_logo' ) ) : |
3438 |
- /** |
3439 |
- * Displays the optional custom logo. |
3440 |
- * |
3441 |
- * Does nothing if the custom logo is not available. |
3442 |
- * |
3443 |
- * @since Twenty Fifteen 1.5 |
3444 |
- */ |
3445 |
- function twentyfifteen_the_custom_logo() { |
3446 |
- if ( function_exists( 'the_custom_logo' ) ) { |
3447 |
- the_custom_logo(); |
3448 |
- } |
3449 |
+/** |
3450 |
+ * Displays the optional custom logo. |
3451 |
+ * |
3452 |
+ * Does nothing if the custom logo is not available. |
3453 |
+ * |
3454 |
+ * @since Twenty Fifteen 1.5 |
3455 |
+ */ |
3456 |
+function twentyfifteen_the_custom_logo() { |
3457 |
+ if ( function_exists( 'the_custom_logo' ) ) { |
3458 |
+ the_custom_logo(); |
3459 |
} |
3460 |
+} |
3461 |
endif; |
3462 |
|
3463 |
diff --git a/themes/twentyfifteen/index.php b/themes/twentyfifteen/index.php |
3464 |
index 4ad3d38..db77651 100644 |
3465 |
--- a/themes/twentyfifteen/index.php |
3466 |
+++ b/themes/twentyfifteen/index.php |
3467 |
@@ -29,8 +29,7 @@ get_header(); ?> |
3468 |
|
3469 |
<?php |
3470 |
// Start the loop. |
3471 |
- while ( have_posts() ) : |
3472 |
- the_post(); |
3473 |
+ while ( have_posts() ) : the_post(); |
3474 |
|
3475 |
/* |
3476 |
* Include the Post-Format-specific template for the content. |
3477 |
@@ -39,19 +38,17 @@ get_header(); ?> |
3478 |
*/ |
3479 |
get_template_part( 'content', get_post_format() ); |
3480 |
|
3481 |
- // End the loop. |
3482 |
+ // End the loop. |
3483 |
endwhile; |
3484 |
|
3485 |
// Previous/next page navigation. |
3486 |
- the_posts_pagination( |
3487 |
- array( |
3488 |
- 'prev_text' => __( 'Previous page', 'twentyfifteen' ), |
3489 |
- 'next_text' => __( 'Next page', 'twentyfifteen' ), |
3490 |
- 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>', |
3491 |
- ) |
3492 |
- ); |
3493 |
+ the_posts_pagination( array( |
3494 |
+ 'prev_text' => __( 'Previous page', 'twentyfifteen' ), |
3495 |
+ 'next_text' => __( 'Next page', 'twentyfifteen' ), |
3496 |
+ 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>', |
3497 |
+ ) ); |
3498 |
|
3499 |
- // If no content, include the "No posts found" template. |
3500 |
+ // If no content, include the "No posts found" template. |
3501 |
else : |
3502 |
get_template_part( 'content', 'none' ); |
3503 |
|
3504 |
|
3505 |
diff --git a/themes/twentyfifteen/js/functions.js b/themes/twentyfifteen/js/functions.js |
3506 |
index b9dddc8..2da5cbc 100644 |
3507 |
--- a/themes/twentyfifteen/js/functions.js |
3508 |
+++ b/themes/twentyfifteen/js/functions.js |
3509 |
@@ -77,8 +77,7 @@ |
3510 |
} )(); |
3511 |
|
3512 |
/** |
3513 |
- * Add or remove ARIA attributes. |
3514 |
- * |
3515 |
+ * @summary Add or remove ARIA attributes. |
3516 |
* Uses jQuery's width() function to determine the size of the window and add |
3517 |
* the default ARIA attributes for the menu toggle if it's visible. |
3518 |
* @since Twenty Fifteen 1.1 |
3519 |
|
3520 |
diff --git a/themes/twentyfifteen/page.php b/themes/twentyfifteen/page.php |
3521 |
index 50d0bf1..5c7a0b0 100644 |
3522 |
--- a/themes/twentyfifteen/page.php |
3523 |
+++ b/themes/twentyfifteen/page.php |
3524 |
@@ -18,8 +18,7 @@ get_header(); ?> |
3525 |
|
3526 |
<?php |
3527 |
// Start the loop. |
3528 |
- while ( have_posts() ) : |
3529 |
- the_post(); |
3530 |
+ while ( have_posts() ) : the_post(); |
3531 |
|
3532 |
// Include the page content template. |
3533 |
get_template_part( 'content', 'page' ); |
3534 |
@@ -29,7 +28,7 @@ get_header(); ?> |
3535 |
comments_template(); |
3536 |
endif; |
3537 |
|
3538 |
- // End the loop. |
3539 |
+ // End the loop. |
3540 |
endwhile; |
3541 |
?> |
3542 |
|
3543 |
|
3544 |
diff --git a/themes/twentyfifteen/readme.txt b/themes/twentyfifteen/readme.txt |
3545 |
index 8231e09..7bc7d62 100644 |
3546 |
--- a/themes/twentyfifteen/readme.txt |
3547 |
+++ b/themes/twentyfifteen/readme.txt |
3548 |
@@ -1,8 +1,8 @@ |
3549 |
=== Twenty Fifteen === |
3550 |
Contributors: the WordPress team |
3551 |
Requires at least: WordPress 4.1 |
3552 |
-Tested up to: WordPress 5.0-trunk |
3553 |
-Version: 2.0 |
3554 |
+Tested up to: WordPress 5.0 |
3555 |
+Version: 2.2 |
3556 |
License: GPLv2 or later |
3557 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html |
3558 |
Tags: blog, two-columns, left-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready |
3559 |
@@ -55,6 +55,16 @@ Source: http://www.genericons.com |
3560 |
|
3561 |
== Changelog == |
3562 |
|
3563 |
+= 2.2 = |
3564 |
+* Released: December 19, 2018 |
3565 |
+ |
3566 |
+https://codex.wordpress.org/Twenty_Fifteen_Theme_Changelog#Version_2.2 |
3567 |
+ |
3568 |
+= 2.1 = |
3569 |
+* Released: December 6, 2018 |
3570 |
+ |
3571 |
+https://codex.wordpress.org/Twenty_Fifteen_Theme_Changelog#Version_2.1 |
3572 |
+ |
3573 |
= 2.0 = |
3574 |
* Released: May 17, 2018 |
3575 |
|
3576 |
|
3577 |
diff --git a/themes/twentyfifteen/search.php b/themes/twentyfifteen/search.php |
3578 |
index 174c9f6..3352841 100644 |
3579 |
--- a/themes/twentyfifteen/search.php |
3580 |
+++ b/themes/twentyfifteen/search.php |
3581 |
@@ -20,9 +20,7 @@ get_header(); ?> |
3582 |
|
3583 |
<?php |
3584 |
// Start the loop. |
3585 |
- while ( have_posts() ) : |
3586 |
- the_post(); |
3587 |
- ?> |
3588 |
+ while ( have_posts() ) : the_post(); ?> |
3589 |
|
3590 |
<?php |
3591 |
/* |
3592 |
@@ -32,19 +30,17 @@ get_header(); ?> |
3593 |
*/ |
3594 |
get_template_part( 'content', 'search' ); |
3595 |
|
3596 |
- // End the loop. |
3597 |
+ // End the loop. |
3598 |
endwhile; |
3599 |
|
3600 |
// Previous/next page navigation. |
3601 |
- the_posts_pagination( |
3602 |
- array( |
3603 |
- 'prev_text' => __( 'Previous page', 'twentyfifteen' ), |
3604 |
- 'next_text' => __( 'Next page', 'twentyfifteen' ), |
3605 |
- 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>', |
3606 |
- ) |
3607 |
- ); |
3608 |
- |
3609 |
- // If no content, include the "No posts found" template. |
3610 |
+ the_posts_pagination( array( |
3611 |
+ 'prev_text' => __( 'Previous page', 'twentyfifteen' ), |
3612 |
+ 'next_text' => __( 'Next page', 'twentyfifteen' ), |
3613 |
+ 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>', |
3614 |
+ ) ); |
3615 |
+ |
3616 |
+ // If no content, include the "No posts found" template. |
3617 |
else : |
3618 |
get_template_part( 'content', 'none' ); |
3619 |
|
3620 |
|
3621 |
diff --git a/themes/twentyfifteen/sidebar.php b/themes/twentyfifteen/sidebar.php |
3622 |
index f2326a8..02308ef 100644 |
3623 |
--- a/themes/twentyfifteen/sidebar.php |
3624 |
+++ b/themes/twentyfifteen/sidebar.php |
3625 |
@@ -7,19 +7,17 @@ |
3626 |
* @since Twenty Fifteen 1.0 |
3627 |
*/ |
3628 |
|
3629 |
-if ( has_nav_menu( 'primary' ) || has_nav_menu( 'social' ) || is_active_sidebar( 'sidebar-1' ) ) : ?> |
3630 |
+if ( has_nav_menu( 'primary' ) || has_nav_menu( 'social' ) || is_active_sidebar( 'sidebar-1' ) ) : ?> |
3631 |
<div id="secondary" class="secondary"> |
3632 |
|
3633 |
<?php if ( has_nav_menu( 'primary' ) ) : ?> |
3634 |
<nav id="site-navigation" class="main-navigation" role="navigation"> |
3635 |
<?php |
3636 |
// Primary navigation menu. |
3637 |
- wp_nav_menu( |
3638 |
- array( |
3639 |
- 'menu_class' => 'nav-menu', |
3640 |
- 'theme_location' => 'primary', |
3641 |
- ) |
3642 |
- ); |
3643 |
+ wp_nav_menu( array( |
3644 |
+ 'menu_class' => 'nav-menu', |
3645 |
+ 'theme_location' => 'primary', |
3646 |
+ ) ); |
3647 |
?> |
3648 |
</nav><!-- .main-navigation --> |
3649 |
<?php endif; ?> |
3650 |
@@ -28,14 +26,12 @@ if ( has_nav_menu( 'primary' ) || has_nav_menu( 'social' ) || is_active_sidebar( |
3651 |
<nav id="social-navigation" class="social-navigation" role="navigation"> |
3652 |
<?php |
3653 |
// Social links navigation menu. |
3654 |
- wp_nav_menu( |
3655 |
- array( |
3656 |
- 'theme_location' => 'social', |
3657 |
- 'depth' => 1, |
3658 |
- 'link_before' => '<span class="screen-reader-text">', |
3659 |
- 'link_after' => '</span>', |
3660 |
- ) |
3661 |
- ); |
3662 |
+ wp_nav_menu( array( |
3663 |
+ 'theme_location' => 'social', |
3664 |
+ 'depth' => 1, |
3665 |
+ 'link_before' => '<span class="screen-reader-text">', |
3666 |
+ 'link_after' => '</span>', |
3667 |
+ ) ); |
3668 |
?> |
3669 |
</nav><!-- .social-navigation --> |
3670 |
<?php endif; ?> |
3671 |
|
3672 |
diff --git a/themes/twentyfifteen/single.php b/themes/twentyfifteen/single.php |
3673 |
index 4de3a49..fda8b5e 100644 |
3674 |
--- a/themes/twentyfifteen/single.php |
3675 |
+++ b/themes/twentyfifteen/single.php |
3676 |
@@ -14,8 +14,7 @@ get_header(); ?> |
3677 |
|
3678 |
<?php |
3679 |
// Start the loop. |
3680 |
- while ( have_posts() ) : |
3681 |
- the_post(); |
3682 |
+ while ( have_posts() ) : the_post(); |
3683 |
|
3684 |
/* |
3685 |
* Include the post format-specific template for the content. If you want to |
3686 |
@@ -30,18 +29,16 @@ get_header(); ?> |
3687 |
endif; |
3688 |
|
3689 |
// Previous/next post navigation. |
3690 |
- the_post_navigation( |
3691 |
- array( |
3692 |
- 'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next', 'twentyfifteen' ) . '</span> ' . |
3693 |
- '<span class="screen-reader-text">' . __( 'Next post:', 'twentyfifteen' ) . '</span> ' . |
3694 |
- '<span class="post-title">%title</span>', |
3695 |
- 'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous', 'twentyfifteen' ) . '</span> ' . |
3696 |
- '<span class="screen-reader-text">' . __( 'Previous post:', 'twentyfifteen' ) . '</span> ' . |
3697 |
- '<span class="post-title">%title</span>', |
3698 |
- ) |
3699 |
- ); |
3700 |
- |
3701 |
- // End the loop. |
3702 |
+ the_post_navigation( array( |
3703 |
+ 'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next', 'twentyfifteen' ) . '</span> ' . |
3704 |
+ '<span class="screen-reader-text">' . __( 'Next post:', 'twentyfifteen' ) . '</span> ' . |
3705 |
+ '<span class="post-title">%title</span>', |
3706 |
+ 'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous', 'twentyfifteen' ) . '</span> ' . |
3707 |
+ '<span class="screen-reader-text">' . __( 'Previous post:', 'twentyfifteen' ) . '</span> ' . |
3708 |
+ '<span class="post-title">%title</span>', |
3709 |
+ ) ); |
3710 |
+ |
3711 |
+ // End the loop. |
3712 |
endwhile; |
3713 |
?> |
3714 |
|
3715 |
|
3716 |
diff --git a/themes/twentyfifteen/style.css b/themes/twentyfifteen/style.css |
3717 |
index e36ffa5..d53b3eb 100644 |
3718 |
--- a/themes/twentyfifteen/style.css |
3719 |
+++ b/themes/twentyfifteen/style.css |
3720 |
@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentyfifteen/ |
3721 |
Author: the WordPress team |
3722 |
Author URI: https://wordpress.org/ |
3723 |
Description: Our 2015 default theme is clean, blog-focused, and designed for clarity. Twenty Fifteen's simple, straightforward typography is readable on a wide variety of screen sizes, and suitable for multiple languages. We designed it using a mobile-first approach, meaning your content takes center-stage, regardless of whether your visitors arrive by smartphone, tablet, laptop, or desktop computer. |
3724 |
-Version: 2.0 |
3725 |
+Version: 2.2 |
3726 |
License: GNU General Public License v2 or later |
3727 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html |
3728 |
Tags: blog, two-columns, left-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready |