1 |
commit: 099bb1ab7c867dcc4ad4dcf73591c64c5d1bd7ea |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 20 21:43:13 2017 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 20 21:43:13 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/blogs-gentoo.git/commit/?id=099bb1ab |
7 |
|
8 |
Update twentyfourteen 2.1 |
9 |
|
10 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
11 |
|
12 |
themes/twentyfourteen/archive.php | 2 +- |
13 |
themes/twentyfourteen/author.php | 2 +- |
14 |
themes/twentyfourteen/category.php | 2 +- |
15 |
themes/twentyfourteen/comments.php | 20 +++++++++++++++-- |
16 |
themes/twentyfourteen/functions.php | 21 ++++++++++++++++++ |
17 |
themes/twentyfourteen/inc/widgets.php | 1 + |
18 |
themes/twentyfourteen/index.php | 2 +- |
19 |
themes/twentyfourteen/readme.txt | 11 +++++++--- |
20 |
themes/twentyfourteen/search.php | 2 +- |
21 |
themes/twentyfourteen/single.php | 2 +- |
22 |
themes/twentyfourteen/style.css | 30 +++++++++++++++++++++++--- |
23 |
themes/twentyfourteen/tag.php | 2 +- |
24 |
themes/twentyfourteen/taxonomy-post_format.php | 2 +- |
25 |
13 files changed, 83 insertions(+), 16 deletions(-) |
26 |
|
27 |
diff --git a/themes/twentyfourteen/archive.php b/themes/twentyfourteen/archive.php |
28 |
index f4c9181..6a4deed 100644 |
29 |
--- a/themes/twentyfourteen/archive.php |
30 |
+++ b/themes/twentyfourteen/archive.php |
31 |
@@ -50,7 +50,7 @@ get_header(); ?> |
32 |
|
33 |
/* |
34 |
* Include the post format-specific template for the content. If you want to |
35 |
- * use this in a child theme, then include a file called called content-___.php |
36 |
+ * use this in a child theme, then include a file called content-___.php |
37 |
* (where ___ is the post format) and that will be used instead. |
38 |
*/ |
39 |
get_template_part( 'content', get_post_format() ); |
40 |
|
41 |
diff --git a/themes/twentyfourteen/author.php b/themes/twentyfourteen/author.php |
42 |
index 62d9165..a40f209 100644 |
43 |
--- a/themes/twentyfourteen/author.php |
44 |
+++ b/themes/twentyfourteen/author.php |
45 |
@@ -49,7 +49,7 @@ get_header(); ?> |
46 |
|
47 |
/* |
48 |
* Include the post format-specific template for the content. If you want to |
49 |
- * use this in a child theme, then include a file called called content-___.php |
50 |
+ * use this in a child theme, then include a file called content-___.php |
51 |
* (where ___ is the post format) and that will be used instead. |
52 |
*/ |
53 |
get_template_part( 'content', get_post_format() ); |
54 |
|
55 |
diff --git a/themes/twentyfourteen/category.php b/themes/twentyfourteen/category.php |
56 |
index 2b05f8d..97745ff 100644 |
57 |
--- a/themes/twentyfourteen/category.php |
58 |
+++ b/themes/twentyfourteen/category.php |
59 |
@@ -34,7 +34,7 @@ get_header(); ?> |
60 |
|
61 |
/* |
62 |
* Include the post format-specific template for the content. If you want to |
63 |
- * use this in a child theme, then include a file called called content-___.php |
64 |
+ * use this in a child theme, then include a file called content-___.php |
65 |
* (where ___ is the post format) and that will be used instead. |
66 |
*/ |
67 |
get_template_part( 'content', get_post_format() ); |
68 |
|
69 |
diff --git a/themes/twentyfourteen/comments.php b/themes/twentyfourteen/comments.php |
70 |
index 781c06d..d62e91a 100644 |
71 |
--- a/themes/twentyfourteen/comments.php |
72 |
+++ b/themes/twentyfourteen/comments.php |
73 |
@@ -24,8 +24,24 @@ if ( post_password_required() ) { |
74 |
|
75 |
<h2 class="comments-title"> |
76 |
<?php |
77 |
- printf( _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentyfourteen' ), |
78 |
- number_format_i18n( get_comments_number() ), get_the_title() ); |
79 |
+ $comments_number = get_comments_number(); |
80 |
+ if ( '1' === $comments_number ) { |
81 |
+ /* translators: %s: post title */ |
82 |
+ printf( _x( 'One thought on “%s”', 'comments title', 'twentyfourteen' ), get_the_title() ); |
83 |
+ } else { |
84 |
+ printf( |
85 |
+ /* translators: 1: number of comments, 2: post title */ |
86 |
+ _nx( |
87 |
+ '%1$s thought on “%2$s”', |
88 |
+ '%1$s thoughts on “%2$s”', |
89 |
+ $comments_number, |
90 |
+ 'comments title', |
91 |
+ 'twentyfourteen' |
92 |
+ ), |
93 |
+ number_format_i18n( $comments_number ), |
94 |
+ get_the_title() |
95 |
+ ); |
96 |
+ } |
97 |
?> |
98 |
</h2> |
99 |
|
100 |
|
101 |
diff --git a/themes/twentyfourteen/functions.php b/themes/twentyfourteen/functions.php |
102 |
index b815e77..2946d19 100644 |
103 |
--- a/themes/twentyfourteen/functions.php |
104 |
+++ b/themes/twentyfourteen/functions.php |
105 |
@@ -527,6 +527,27 @@ function twentyfourteen_wp_title( $title, $sep ) { |
106 |
} |
107 |
add_filter( 'wp_title', 'twentyfourteen_wp_title', 10, 2 ); |
108 |
|
109 |
+ |
110 |
+/** |
111 |
+ * Modifies tag cloud widget arguments to display all tags in the same font size |
112 |
+ * and use list format for better accessibility. |
113 |
+ * |
114 |
+ * @since Twenty Fourteen 2.1 |
115 |
+ * |
116 |
+ * @param array $args Arguments for tag cloud widget. |
117 |
+ * @return array The filtered arguments for tag cloud widget. |
118 |
+ */ |
119 |
+function twentyfourteen_widget_tag_cloud_args( $args ) { |
120 |
+ $args['largest'] = 22; |
121 |
+ $args['smallest'] = 8; |
122 |
+ $args['unit'] = 'pt'; |
123 |
+ $args['format'] = 'list'; |
124 |
+ |
125 |
+ return $args; |
126 |
+} |
127 |
+add_filter( 'widget_tag_cloud_args', 'twentyfourteen_widget_tag_cloud_args' ); |
128 |
+ |
129 |
+ |
130 |
// Implement Custom Header features. |
131 |
require get_template_directory() . '/inc/custom-header.php'; |
132 |
|
133 |
|
134 |
diff --git a/themes/twentyfourteen/inc/widgets.php b/themes/twentyfourteen/inc/widgets.php |
135 |
index ee766cb..533f34a 100644 |
136 |
--- a/themes/twentyfourteen/inc/widgets.php |
137 |
+++ b/themes/twentyfourteen/inc/widgets.php |
138 |
@@ -54,6 +54,7 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget { |
139 |
$video_library = apply_filters( 'wp_video_shortcode_library', 'mediaelement' ); |
140 |
if ( in_array( 'mediaelement', array( $video_library, $audio_library ), true ) ) { |
141 |
wp_enqueue_style( 'wp-mediaelement' ); |
142 |
+ wp_enqueue_script( 'mediaelement-vimeo' ); |
143 |
wp_enqueue_script( 'wp-mediaelement' ); |
144 |
} |
145 |
} |
146 |
|
147 |
diff --git a/themes/twentyfourteen/index.php b/themes/twentyfourteen/index.php |
148 |
index 21f4842..3f46be2 100644 |
149 |
--- a/themes/twentyfourteen/index.php |
150 |
+++ b/themes/twentyfourteen/index.php |
151 |
@@ -35,7 +35,7 @@ get_header(); ?> |
152 |
|
153 |
/* |
154 |
* Include the post format-specific template for the content. If you want to |
155 |
- * use this in a child theme, then include a file called called content-___.php |
156 |
+ * use this in a child theme, then include a file called content-___.php |
157 |
* (where ___ is the post format) and that will be used instead. |
158 |
*/ |
159 |
get_template_part( 'content', get_post_format() ); |
160 |
|
161 |
diff --git a/themes/twentyfourteen/readme.txt b/themes/twentyfourteen/readme.txt |
162 |
index 20e7d8c..bb02724 100644 |
163 |
--- a/themes/twentyfourteen/readme.txt |
164 |
+++ b/themes/twentyfourteen/readme.txt |
165 |
@@ -1,8 +1,8 @@ |
166 |
=== Twenty Fourteen === |
167 |
Contributors: the WordPress team |
168 |
Requires at least: WordPress 3.6 |
169 |
-Tested up to: WordPress 4.9-trunk |
170 |
-Stable tag: 2.0 |
171 |
+Tested up to: WordPress 5.0-trunk |
172 |
+Stable tag: 2.1 |
173 |
License: GPLv2 or later |
174 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html |
175 |
Tags: blog, news, two-columns, three-columns, left-sidebar, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready |
176 |
@@ -44,12 +44,17 @@ HTML5 Shiv v3.7.0, Copyright 2014 Alexander Farkas |
177 |
Licenses: MIT/GPL2 |
178 |
Source: https://github.com/aFarkas/html5shiv |
179 |
|
180 |
-Genericons icon font, Copyright 2013-2016 Automattic.com |
181 |
+Genericons icon font, Copyright 2013-2017 Automattic.com |
182 |
License: GNU GPL, Version 2 (or later) |
183 |
Source: http://www.genericons.com |
184 |
|
185 |
== Changelog == |
186 |
|
187 |
+= 2.1 = |
188 |
+* Released: November 14, 2017 |
189 |
+ |
190 |
+https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_2.1 |
191 |
+ |
192 |
= 2.0 = |
193 |
* Released: June 8, 2017 |
194 |
|
195 |
|
196 |
diff --git a/themes/twentyfourteen/search.php b/themes/twentyfourteen/search.php |
197 |
index 3fe9bdb..d90d88a 100644 |
198 |
--- a/themes/twentyfourteen/search.php |
199 |
+++ b/themes/twentyfourteen/search.php |
200 |
@@ -24,7 +24,7 @@ get_header(); ?> |
201 |
|
202 |
/* |
203 |
* Include the post format-specific template for the content. If you want to |
204 |
- * use this in a child theme, then include a file called called content-___.php |
205 |
+ * use this in a child theme, then include a file called content-___.php |
206 |
* (where ___ is the post format) and that will be used instead. |
207 |
*/ |
208 |
get_template_part( 'content', get_post_format() ); |
209 |
|
210 |
diff --git a/themes/twentyfourteen/single.php b/themes/twentyfourteen/single.php |
211 |
index e2db3b0..e089165 100644 |
212 |
--- a/themes/twentyfourteen/single.php |
213 |
+++ b/themes/twentyfourteen/single.php |
214 |
@@ -17,7 +17,7 @@ get_header(); ?> |
215 |
|
216 |
/* |
217 |
* Include the post format-specific template for the content. If you want to |
218 |
- * use this in a child theme, then include a file called called content-___.php |
219 |
+ * use this in a child theme, then include a file called content-___.php |
220 |
* (where ___ is the post format) and that will be used instead. |
221 |
*/ |
222 |
get_template_part( 'content', get_post_format() ); |
223 |
|
224 |
diff --git a/themes/twentyfourteen/style.css b/themes/twentyfourteen/style.css |
225 |
index b0a3554..32ed837 100644 |
226 |
--- a/themes/twentyfourteen/style.css |
227 |
+++ b/themes/twentyfourteen/style.css |
228 |
@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentyfourteen/ |
229 |
Author: the WordPress team |
230 |
Author URI: https://wordpress.org/ |
231 |
Description: In 2014, our default theme lets you create a responsive magazine website with a sleek, modern design. Feature your favorite homepage content in either a grid or a slider. Use the three widget areas to customize your website, and change your content's layout with a full-width page template and a contributor page to show off your authors. Creating a magazine website with WordPress has never been easier. |
232 |
-Version: 2.0 |
233 |
+Version: 2.1 |
234 |
License: GNU General Public License v2 or later |
235 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html |
236 |
Tags: blog, news, two-columns, three-columns, left-sidebar, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready |
237 |
@@ -1612,7 +1612,15 @@ a.post-thumbnail:hover { |
238 |
.gallery-columns-1.gallery-size-medium figure.gallery-item:nth-of-type(1n+1), |
239 |
.gallery-columns-1.gallery-size-thumbnail figure.gallery-item:nth-of-type(1n+1), |
240 |
.gallery-columns-2.gallery-size-thumbnail figure.gallery-item:nth-of-type(2n+1), |
241 |
-.gallery-columns-3.gallery-size-thumbnail figure.gallery-item:nth-of-type(3n+1) { |
242 |
+.gallery-columns-3.gallery-size-thumbnail figure.gallery-item:nth-of-type(3n+1), |
243 |
+.widget-area .gallery-columns-2 figure.gallery-item:nth-of-type(2n+1), |
244 |
+.widget-area .gallery-columns-3 figure.gallery-item:nth-of-type(3n+1), |
245 |
+.widget-area .gallery-columns-4 figure.gallery-item:nth-of-type(4n+1), |
246 |
+.widget-area .gallery-columns-5 figure.gallery-item:nth-of-type(5n+1), |
247 |
+.widget-area .gallery-columns-6 figure.gallery-item:nth-of-type(6n+1), |
248 |
+.widget-area .gallery-columns-7 figure.gallery-item:nth-of-type(7n+1), |
249 |
+.widget-area .gallery-columns-8 figure.gallery-item:nth-of-type(8n+1), |
250 |
+.widget-area .gallery-columns-9 figure.gallery-item:nth-of-type(9n+1) { |
251 |
clear: left; |
252 |
} |
253 |
|
254 |
@@ -1651,7 +1659,15 @@ a.post-thumbnail:hover { |
255 |
|
256 |
.gallery-columns-7 .gallery-caption, |
257 |
.gallery-columns-8 .gallery-caption, |
258 |
-.gallery-columns-9 .gallery-caption { |
259 |
+.gallery-columns-9 .gallery-caption, |
260 |
+.widget-area .gallery-columns-2 .gallery-caption, |
261 |
+.widget-area .gallery-columns-3 .gallery-caption, |
262 |
+.widget-area .gallery-columns-4 .gallery-caption, |
263 |
+.widget-area .gallery-columns-5 .gallery-caption, |
264 |
+.widget-area .gallery-columns-6 .gallery-caption, |
265 |
+.widget-area .gallery-columns-7 .gallery-caption, |
266 |
+.widget-area .gallery-columns-8 .gallery-caption, |
267 |
+.widget-area .gallery-columns-9 .gallery-caption { |
268 |
display: none; |
269 |
} |
270 |
|
271 |
@@ -2583,6 +2599,14 @@ a.post-thumbnail:hover { |
272 |
padding-bottom: 0; |
273 |
} |
274 |
|
275 |
+.tagcloud ul { |
276 |
+ list-style-type: none; |
277 |
+} |
278 |
+ |
279 |
+.tagcloud ul li { |
280 |
+ display: inline-block; |
281 |
+} |
282 |
+ |
283 |
/* Recent Posts Widget */ |
284 |
|
285 |
.widget_recent_entries .post-date { |
286 |
|
287 |
diff --git a/themes/twentyfourteen/tag.php b/themes/twentyfourteen/tag.php |
288 |
index 208455d..5930d2c 100644 |
289 |
--- a/themes/twentyfourteen/tag.php |
290 |
+++ b/themes/twentyfourteen/tag.php |
291 |
@@ -36,7 +36,7 @@ get_header(); ?> |
292 |
|
293 |
/* |
294 |
* Include the post format-specific template for the content. If you want to |
295 |
- * use this in a child theme, then include a file called called content-___.php |
296 |
+ * use this in a child theme, then include a file called content-___.php |
297 |
* (where ___ is the post format) and that will be used instead. |
298 |
*/ |
299 |
get_template_part( 'content', get_post_format() ); |
300 |
|
301 |
diff --git a/themes/twentyfourteen/taxonomy-post_format.php b/themes/twentyfourteen/taxonomy-post_format.php |
302 |
index 2ef44a4..f7cee9f 100644 |
303 |
--- a/themes/twentyfourteen/taxonomy-post_format.php |
304 |
+++ b/themes/twentyfourteen/taxonomy-post_format.php |
305 |
@@ -61,7 +61,7 @@ get_header(); ?> |
306 |
|
307 |
/* |
308 |
* Include the post format-specific template for the content. If you want to |
309 |
- * use this in a child theme, then include a file called called content-___.php |
310 |
+ * use this in a child theme, then include a file called content-___.php |
311 |
* (where ___ is the post format) and that will be used instead. |
312 |
*/ |
313 |
get_template_part( 'content', get_post_format() ); |