Commit e4594c4c authored by lucha's avatar lucha

[auto] theme: twentyfourteen 2.1

parent 40564fca
......@@ -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() );
......
......@@ -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() );
......
......@@ -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() );
......
......@@ -24,8 +24,24 @@ if ( post_password_required() ) {
<h2 class="comments-title">
<?php
printf( _n( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', 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 &ldquo;%s&rdquo;', 'comments title', 'twentyfourteen' ), get_the_title() );
} else {
printf(
/* translators: 1: number of comments, 2: post title */
_nx(
'%1$s thought on &ldquo;%2$s&rdquo;',
'%1$s thoughts on &ldquo;%2$s&rdquo;',
$comments_number,
'comments title',
'twentyfourteen'
),
number_format_i18n( $comments_number ),
get_the_title()
);
}
?>
</h2>
......
......@@ -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';
......
......@@ -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' );
}
}
......
......@@ -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() );
......
=== 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
......
......@@ -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() );
......
......@@ -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() );
......
......@@ -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 {
......
......@@ -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() );
......
......@@ -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() );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment