commit: 099bb1ab7c867dcc4ad4dcf73591c64c5d1bd7ea Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> AuthorDate: Mon Nov 20 21:43:13 2017 +0000 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> CommitDate: Mon Nov 20 21:43:13 2017 +0000 URL: https://gitweb.gentoo.org/proj/blogs-gentoo.git/commit/?id=099bb1ab
Update twentyfourteen 2.1 Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> themes/twentyfourteen/archive.php | 2 +- themes/twentyfourteen/author.php | 2 +- themes/twentyfourteen/category.php | 2 +- themes/twentyfourteen/comments.php | 20 +++++++++++++++-- themes/twentyfourteen/functions.php | 21 ++++++++++++++++++ themes/twentyfourteen/inc/widgets.php | 1 + themes/twentyfourteen/index.php | 2 +- themes/twentyfourteen/readme.txt | 11 +++++++--- themes/twentyfourteen/search.php | 2 +- themes/twentyfourteen/single.php | 2 +- themes/twentyfourteen/style.css | 30 +++++++++++++++++++++++--- themes/twentyfourteen/tag.php | 2 +- themes/twentyfourteen/taxonomy-post_format.php | 2 +- 13 files changed, 83 insertions(+), 16 deletions(-) diff --git a/themes/twentyfourteen/archive.php b/themes/twentyfourteen/archive.php index f4c9181..6a4deed 100644 --- a/themes/twentyfourteen/archive.php +++ b/themes/twentyfourteen/archive.php @@ -50,7 +50,7 @@ get_header(); ?> /* * Include the post format-specific template for the content. If you want to - * use this in a child theme, then include a file called called content-___.php + * use this in a child theme, then include a file called content-___.php * (where ___ is the post format) and that will be used instead. */ get_template_part( 'content', get_post_format() ); diff --git a/themes/twentyfourteen/author.php b/themes/twentyfourteen/author.php index 62d9165..a40f209 100644 --- a/themes/twentyfourteen/author.php +++ b/themes/twentyfourteen/author.php @@ -49,7 +49,7 @@ get_header(); ?> /* * Include the post format-specific template for the content. If you want to - * use this in a child theme, then include a file called called content-___.php + * use this in a child theme, then include a file called content-___.php * (where ___ is the post format) and that will be used instead. */ get_template_part( 'content', get_post_format() ); diff --git a/themes/twentyfourteen/category.php b/themes/twentyfourteen/category.php index 2b05f8d..97745ff 100644 --- a/themes/twentyfourteen/category.php +++ b/themes/twentyfourteen/category.php @@ -34,7 +34,7 @@ get_header(); ?> /* * Include the post format-specific template for the content. If you want to - * use this in a child theme, then include a file called called content-___.php + * use this in a child theme, then include a file called content-___.php * (where ___ is the post format) and that will be used instead. */ get_template_part( 'content', get_post_format() ); diff --git a/themes/twentyfourteen/comments.php b/themes/twentyfourteen/comments.php index 781c06d..d62e91a 100644 --- a/themes/twentyfourteen/comments.php +++ b/themes/twentyfourteen/comments.php @@ -24,8 +24,24 @@ if ( post_password_required() ) { <h2 class="comments-title"> <?php - printf( _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentyfourteen' ), - number_format_i18n( get_comments_number() ), get_the_title() ); + $comments_number = get_comments_number(); + if ( '1' === $comments_number ) { + /* translators: %s: post title */ + printf( _x( 'One thought on “%s”', 'comments title', 'twentyfourteen' ), get_the_title() ); + } else { + printf( + /* translators: 1: number of comments, 2: post title */ + _nx( + '%1$s thought on “%2$s”', + '%1$s thoughts on “%2$s”', + $comments_number, + 'comments title', + 'twentyfourteen' + ), + number_format_i18n( $comments_number ), + get_the_title() + ); + } ?> </h2> diff --git a/themes/twentyfourteen/functions.php b/themes/twentyfourteen/functions.php index b815e77..2946d19 100644 --- a/themes/twentyfourteen/functions.php +++ b/themes/twentyfourteen/functions.php @@ -527,6 +527,27 @@ function twentyfourteen_wp_title( $title, $sep ) { } add_filter( 'wp_title', 'twentyfourteen_wp_title', 10, 2 ); + +/** + * Modifies tag cloud widget arguments to display all tags in the same font size + * and use list format for better accessibility. + * + * @since Twenty Fourteen 2.1 + * + * @param array $args Arguments for tag cloud widget. + * @return array The filtered arguments for tag cloud widget. + */ +function twentyfourteen_widget_tag_cloud_args( $args ) { + $args['largest'] = 22; + $args['smallest'] = 8; + $args['unit'] = 'pt'; + $args['format'] = 'list'; + + return $args; +} +add_filter( 'widget_tag_cloud_args', 'twentyfourteen_widget_tag_cloud_args' ); + + // Implement Custom Header features. require get_template_directory() . '/inc/custom-header.php'; diff --git a/themes/twentyfourteen/inc/widgets.php b/themes/twentyfourteen/inc/widgets.php index ee766cb..533f34a 100644 --- a/themes/twentyfourteen/inc/widgets.php +++ b/themes/twentyfourteen/inc/widgets.php @@ -54,6 +54,7 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget { $video_library = apply_filters( 'wp_video_shortcode_library', 'mediaelement' ); if ( in_array( 'mediaelement', array( $video_library, $audio_library ), true ) ) { wp_enqueue_style( 'wp-mediaelement' ); + wp_enqueue_script( 'mediaelement-vimeo' ); wp_enqueue_script( 'wp-mediaelement' ); } } diff --git a/themes/twentyfourteen/index.php b/themes/twentyfourteen/index.php index 21f4842..3f46be2 100644 --- a/themes/twentyfourteen/index.php +++ b/themes/twentyfourteen/index.php @@ -35,7 +35,7 @@ get_header(); ?> /* * Include the post format-specific template for the content. If you want to - * use this in a child theme, then include a file called called content-___.php + * use this in a child theme, then include a file called content-___.php * (where ___ is the post format) and that will be used instead. */ get_template_part( 'content', get_post_format() ); diff --git a/themes/twentyfourteen/readme.txt b/themes/twentyfourteen/readme.txt index 20e7d8c..bb02724 100644 --- a/themes/twentyfourteen/readme.txt +++ b/themes/twentyfourteen/readme.txt @@ -1,8 +1,8 @@ === Twenty Fourteen === Contributors: the WordPress team Requires at least: WordPress 3.6 -Tested up to: WordPress 4.9-trunk -Stable tag: 2.0 +Tested up to: WordPress 5.0-trunk +Stable tag: 2.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html 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 @@ -44,12 +44,17 @@ HTML5 Shiv v3.7.0, Copyright 2014 Alexander Farkas Licenses: MIT/GPL2 Source: https://github.com/aFarkas/html5shiv -Genericons icon font, Copyright 2013-2016 Automattic.com +Genericons icon font, Copyright 2013-2017 Automattic.com License: GNU GPL, Version 2 (or later) Source: http://www.genericons.com == Changelog == += 2.1 = +* Released: November 14, 2017 + +https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_2.1 + = 2.0 = * Released: June 8, 2017 diff --git a/themes/twentyfourteen/search.php b/themes/twentyfourteen/search.php index 3fe9bdb..d90d88a 100644 --- a/themes/twentyfourteen/search.php +++ b/themes/twentyfourteen/search.php @@ -24,7 +24,7 @@ get_header(); ?> /* * Include the post format-specific template for the content. If you want to - * use this in a child theme, then include a file called called content-___.php + * use this in a child theme, then include a file called content-___.php * (where ___ is the post format) and that will be used instead. */ get_template_part( 'content', get_post_format() ); diff --git a/themes/twentyfourteen/single.php b/themes/twentyfourteen/single.php index e2db3b0..e089165 100644 --- a/themes/twentyfourteen/single.php +++ b/themes/twentyfourteen/single.php @@ -17,7 +17,7 @@ get_header(); ?> /* * Include the post format-specific template for the content. If you want to - * use this in a child theme, then include a file called called content-___.php + * use this in a child theme, then include a file called content-___.php * (where ___ is the post format) and that will be used instead. */ get_template_part( 'content', get_post_format() ); diff --git a/themes/twentyfourteen/style.css b/themes/twentyfourteen/style.css index b0a3554..32ed837 100644 --- a/themes/twentyfourteen/style.css +++ b/themes/twentyfourteen/style.css @@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentyfourteen/ Author: the WordPress team Author URI: https://wordpress.org/ 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. -Version: 2.0 +Version: 2.1 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html 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 @@ -1612,7 +1612,15 @@ a.post-thumbnail:hover { .gallery-columns-1.gallery-size-medium figure.gallery-item:nth-of-type(1n+1), .gallery-columns-1.gallery-size-thumbnail figure.gallery-item:nth-of-type(1n+1), .gallery-columns-2.gallery-size-thumbnail figure.gallery-item:nth-of-type(2n+1), -.gallery-columns-3.gallery-size-thumbnail figure.gallery-item:nth-of-type(3n+1) { +.gallery-columns-3.gallery-size-thumbnail figure.gallery-item:nth-of-type(3n+1), +.widget-area .gallery-columns-2 figure.gallery-item:nth-of-type(2n+1), +.widget-area .gallery-columns-3 figure.gallery-item:nth-of-type(3n+1), +.widget-area .gallery-columns-4 figure.gallery-item:nth-of-type(4n+1), +.widget-area .gallery-columns-5 figure.gallery-item:nth-of-type(5n+1), +.widget-area .gallery-columns-6 figure.gallery-item:nth-of-type(6n+1), +.widget-area .gallery-columns-7 figure.gallery-item:nth-of-type(7n+1), +.widget-area .gallery-columns-8 figure.gallery-item:nth-of-type(8n+1), +.widget-area .gallery-columns-9 figure.gallery-item:nth-of-type(9n+1) { clear: left; } @@ -1651,7 +1659,15 @@ a.post-thumbnail:hover { .gallery-columns-7 .gallery-caption, .gallery-columns-8 .gallery-caption, -.gallery-columns-9 .gallery-caption { +.gallery-columns-9 .gallery-caption, +.widget-area .gallery-columns-2 .gallery-caption, +.widget-area .gallery-columns-3 .gallery-caption, +.widget-area .gallery-columns-4 .gallery-caption, +.widget-area .gallery-columns-5 .gallery-caption, +.widget-area .gallery-columns-6 .gallery-caption, +.widget-area .gallery-columns-7 .gallery-caption, +.widget-area .gallery-columns-8 .gallery-caption, +.widget-area .gallery-columns-9 .gallery-caption { display: none; } @@ -2583,6 +2599,14 @@ a.post-thumbnail:hover { padding-bottom: 0; } +.tagcloud ul { + list-style-type: none; +} + +.tagcloud ul li { + display: inline-block; +} + /* Recent Posts Widget */ .widget_recent_entries .post-date { diff --git a/themes/twentyfourteen/tag.php b/themes/twentyfourteen/tag.php index 208455d..5930d2c 100644 --- a/themes/twentyfourteen/tag.php +++ b/themes/twentyfourteen/tag.php @@ -36,7 +36,7 @@ get_header(); ?> /* * Include the post format-specific template for the content. If you want to - * use this in a child theme, then include a file called called content-___.php + * use this in a child theme, then include a file called content-___.php * (where ___ is the post format) and that will be used instead. */ get_template_part( 'content', get_post_format() ); diff --git a/themes/twentyfourteen/taxonomy-post_format.php b/themes/twentyfourteen/taxonomy-post_format.php index 2ef44a4..f7cee9f 100644 --- a/themes/twentyfourteen/taxonomy-post_format.php +++ b/themes/twentyfourteen/taxonomy-post_format.php @@ -61,7 +61,7 @@ get_header(); ?> /* * Include the post format-specific template for the content. If you want to - * use this in a child theme, then include a file called called content-___.php + * use this in a child theme, then include a file called content-___.php * (where ___ is the post format) and that will be used instead. */ get_template_part( 'content', get_post_format() );