From 60dcf56ed82fb335c6862e03ce6e65388319beba Mon Sep 17 00:00:00 2001 From: samba <samba@autistici.org> Date: Sun, 19 May 2019 22:12:47 +0200 Subject: [PATCH] [auto] theme: twentyeleven 3.3 --- wp-content/themes/twentyeleven/archive.php | 2 +- .../themes/twentyeleven/colors/dark.css | 2 +- wp-content/themes/twentyeleven/comments.php | 13 +- .../themes/twentyeleven/content-gallery.php | 16 +-- wp-content/themes/twentyeleven/functions.php | 30 ++++- wp-content/themes/twentyeleven/header.php | 3 +- .../themes/twentyeleven/inc/theme-options.php | 2 +- .../themes/twentyeleven/inc/widgets.php | 1 - wp-content/themes/twentyeleven/index.php | 2 +- .../twentyeleven/languages/twentyeleven.pot | 112 ++++++++++-------- wp-content/themes/twentyeleven/readme.txt | 15 ++- wp-content/themes/twentyeleven/style.css | 4 +- 12 files changed, 125 insertions(+), 77 deletions(-) diff --git a/wp-content/themes/twentyeleven/archive.php b/wp-content/themes/twentyeleven/archive.php index 9684c7b57..c87794768 100644 --- a/wp-content/themes/twentyeleven/archive.php +++ b/wp-content/themes/twentyeleven/archive.php @@ -5,7 +5,7 @@ * Used to display archive-type pages if nothing more specific matches a query. * For example, puts together date-based pages if no date.php file exists. * - * @link https://codex.wordpress.org/Template_Hierarchy + * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package WordPress * @subpackage Twenty_Eleven diff --git a/wp-content/themes/twentyeleven/colors/dark.css b/wp-content/themes/twentyeleven/colors/dark.css index 63b809fd6..d2868d67a 100644 --- a/wp-content/themes/twentyeleven/colors/dark.css +++ b/wp-content/themes/twentyeleven/colors/dark.css @@ -335,7 +335,7 @@ section.feature-image.large img { background: -o-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* Opera11.10+ */ background: -ms-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* IE10+ */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#000000',GradientType=0 ); /* IE6-9 */ - background: linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* W3C */ + background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* W3C */ } .feature-slider a { background: #c3c3c3; diff --git a/wp-content/themes/twentyeleven/comments.php b/wp-content/themes/twentyeleven/comments.php index 68028598b..2fec43aba 100644 --- a/wp-content/themes/twentyeleven/comments.php +++ b/wp-content/themes/twentyeleven/comments.php @@ -24,18 +24,27 @@ */ return; endif; -?> + ?> <?php // You can start editing here -- including this comment! ?> <?php if ( have_comments() ) : ?> <h2 id="comments-title"> <?php + if ( 1 === get_comments_number() ) { + printf( + /* translators: %s: The post title. */ + __( 'One thought on “%1$s”', 'twentyeleven' ), + '<span>' . get_the_title() . '</span>' + ); + } else { printf( - _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentyeleven' ), + /* translators: %1$s: The number of comments. %2$s: The post title. */ + _n( '%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentyeleven' ), number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' ); + } ?> </h2> diff --git a/wp-content/themes/twentyeleven/content-gallery.php b/wp-content/themes/twentyeleven/content-gallery.php index a95f92c1e..834568678 100644 --- a/wp-content/themes/twentyeleven/content-gallery.php +++ b/wp-content/themes/twentyeleven/content-gallery.php @@ -55,14 +55,14 @@ <?php endif; // end twentyeleven_get_gallery_images() check ?> <?php the_excerpt(); ?> <?php endif; ?> - <?php - wp_link_pages( - array( - 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', - 'after' => '</div>', - ) - ); - ?> + <?php + wp_link_pages( + array( + 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', + 'after' => '</div>', + ) + ); + ?> </div><!-- .entry-content --> <?php endif; ?> diff --git a/wp-content/themes/twentyeleven/functions.php b/wp-content/themes/twentyeleven/functions.php index 1654d391e..52b53ba90 100644 --- a/wp-content/themes/twentyeleven/functions.php +++ b/wp-content/themes/twentyeleven/functions.php @@ -9,11 +9,13 @@ * The first function, twentyeleven_setup(), sets up the theme by registering support * for various features in WordPress, such as post thumbnails, navigation menus, and the like. * - * When using a child theme (see https://codex.wordpress.org/Theme_Development and - * https://codex.wordpress.org/Child_Themes), you can override certain functions - * (those wrapped in a function_exists() call) by defining them first in your child theme's - * functions.php file. The child theme's functions.php file is included before the parent - * theme's file, so the child theme functions would be used. + * When using a child theme you can override certain functions (those wrapped + * in a function_exists() call) by defining them first in your child theme's + * functions.php file. The child theme's functions.php file is included before + * the parent theme's file, so the child theme functions would be used. + * + * @link https://codex.wordpress.org/Theme_Development + * @link https://developer.wordpress.org/themes/advanced-topics/child-themes/ * * Functions that are not pluggable (not wrapped in function_exists()) are instead attached * to a filter or action hook. The hook can be removed by using remove_action() or @@ -881,3 +883,21 @@ function twentyeleven_widget_tag_cloud_args( $args ) { return $args; } add_filter( 'widget_tag_cloud_args', 'twentyeleven_widget_tag_cloud_args' ); + +if ( ! function_exists( 'wp_body_open' ) ) : + /** + * Fire the wp_body_open action. + * + * Added for backwards compatibility to support pre 5.2.0 WordPress versions. + * + * @since Twenty Eleven 3.3 + */ + function wp_body_open() { + /** + * Triggered after the opening <body> tag. + * + * @since Twenty Eleven 3.3 + */ + do_action( 'wp_body_open' ); + } +endif; diff --git a/wp-content/themes/twentyeleven/header.php b/wp-content/themes/twentyeleven/header.php index 78e9264f8..39cbe89c1 100644 --- a/wp-content/themes/twentyeleven/header.php +++ b/wp-content/themes/twentyeleven/header.php @@ -49,7 +49,7 @@ if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) { </title> <link rel="profile" href="http://gmpg.org/xfn/11" /> <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" /> -<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> +<link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>"> <!--[if lt IE 9]> <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script> <![endif]--> @@ -73,6 +73,7 @@ if ( is_singular() && get_option( 'thread_comments' ) ) { </head> <body <?php body_class(); ?>> +<?php wp_body_open(); ?> <div id="page" class="hfeed"> <header id="branding" role="banner"> <hgroup> diff --git a/wp-content/themes/twentyeleven/inc/theme-options.php b/wp-content/themes/twentyeleven/inc/theme-options.php index f296c982e..fb2ff32ad 100644 --- a/wp-content/themes/twentyeleven/inc/theme-options.php +++ b/wp-content/themes/twentyeleven/inc/theme-options.php @@ -119,7 +119,7 @@ function twentyeleven_theme_options_help() { $sidebar = '<p><strong>' . __( 'For more information:', 'twentyeleven' ) . '</strong></p>' . '<p>' . __( '<a href="https://codex.wordpress.org/Appearance_Theme_Options_Screen" target="_blank">Documentation on Theme Options</a>', 'twentyeleven' ) . '</p>' . - '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>', 'twentyeleven' ) . '</p>'; + '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support</a>', 'twentyeleven' ) . '</p>'; $screen = get_current_screen(); diff --git a/wp-content/themes/twentyeleven/inc/widgets.php b/wp-content/themes/twentyeleven/inc/widgets.php index 17e9a7ce1..2a0cdb4f5 100644 --- a/wp-content/themes/twentyeleven/inc/widgets.php +++ b/wp-content/themes/twentyeleven/inc/widgets.php @@ -68,7 +68,6 @@ class Twenty_Eleven_Ephemera_Widget extends WP_Widget { } ob_start(); - extract( $args, EXTR_SKIP ); /** This filter is documented in wp-includes/default-widgets.php */ $args['title'] = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Ephemera', 'twentyeleven' ) : $instance['title'], $instance, $this->id_base ); diff --git a/wp-content/themes/twentyeleven/index.php b/wp-content/themes/twentyeleven/index.php index b43b3f526..a7e3c141d 100644 --- a/wp-content/themes/twentyeleven/index.php +++ b/wp-content/themes/twentyeleven/index.php @@ -6,7 +6,7 @@ * and one of the two required files for a theme (the other being style.css). * It is used to display a page when nothing more specific matches a query. * E.g., it puts together the home page when no home.php file exists. - * Learn more: https://codex.wordpress.org/Template_Hierarchy + * Learn more: https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package WordPress * @subpackage Twenty_Eleven diff --git a/wp-content/themes/twentyeleven/languages/twentyeleven.pot b/wp-content/themes/twentyeleven/languages/twentyeleven.pot index 5eeef09fa..c4cf638ce 100644 --- a/wp-content/themes/twentyeleven/languages/twentyeleven.pot +++ b/wp-content/themes/twentyeleven/languages/twentyeleven.pot @@ -2,9 +2,9 @@ # This file is distributed under the GNU General Public License v2 or later. msgid "" msgstr "" -"Project-Id-Version: Twenty Eleven 3.1\n" +"Project-Id-Version: Twenty Eleven 3.3\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/theme/twentyeleven\n" -"POT-Creation-Date: 2019-01-02 18:09:07+00:00\n" +"POT-Creation-Date: 2019-05-07 18:19:59+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -81,25 +81,33 @@ msgstr "" msgid "This post is password protected. Enter the password to view any comments." msgstr "" -#: comments.php:35 -msgid "One thought on “%2$s”" +#. translators: %s: The post title. + +#: comments.php:37 +msgid "One thought on “%1$s”" +msgstr "" + +#. translators: %1$s: The number of comments. %2$s: The post title. + +#: comments.php:43 +msgid "%1$s thought on “%2$s”" msgid_plural "%1$s thoughts on “%2$s”" msgstr[0] "" msgstr[1] "" -#: comments.php:44 comments.php:65 +#: comments.php:53 comments.php:74 msgid "Comment navigation" msgstr "" -#: comments.php:45 comments.php:66 +#: comments.php:54 comments.php:75 msgid "← Older Comments" msgstr "" -#: comments.php:46 comments.php:67 +#: comments.php:55 comments.php:76 msgid "Newer Comments →" msgstr "" -#: comments.php:78 +#: comments.php:87 msgid "Comments are closed." msgstr "" @@ -126,7 +134,7 @@ msgstr "" #: content-aside.php:35 content-gallery.php:34 content-image.php:29 #: content-link.php:35 content-quote.php:35 content-status.php:48 -#: content.php:41 functions.php:457 +#: content.php:41 functions.php:459 msgid "Continue reading <span class=\"meta-nav\">→</span>" msgstr "" @@ -158,7 +166,7 @@ msgstr "" #: content-aside.php:53 content-featured.php:52 content-gallery.php:106 #: content-image.php:79 content-intro.php:26 content-link.php:53 #: content-page.php:28 content-quote.php:84 content-single.php:59 -#: content-status.php:66 content.php:94 functions.php:710 functions.php:741 +#: content-status.php:66 content.php:94 functions.php:712 functions.php:743 #: image.php:45 msgid "Edit" msgstr "" @@ -212,7 +220,7 @@ msgstr "" msgid "<a href=\"%1$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%2$s\">%3$s</time></a><span class=\"by-author\"> <span class=\"sep\"> by </span> <span class=\"author vcard\"><a class=\"url fn n\" href=\"%4$s\" title=\"%5$s\" rel=\"author\">%6$s</a></span></span>" msgstr "" -#: content-image.php:49 functions.php:791 +#: content-image.php:49 functions.php:793 msgid "View all posts by %s" msgstr "" @@ -260,147 +268,147 @@ msgstr "" msgid "Proudly powered by %s" msgstr "" -#: functions.php:100 +#: functions.php:102 msgid "Blue" msgstr "" -#: functions.php:105 +#: functions.php:107 msgid "Black" msgstr "" -#: functions.php:110 +#: functions.php:112 msgid "Dark Gray" msgstr "" -#: functions.php:115 +#: functions.php:117 msgid "Medium Gray" msgstr "" -#: functions.php:120 +#: functions.php:122 msgid "Light Gray" msgstr "" -#: functions.php:125 +#: functions.php:127 msgid "White" msgstr "" -#: functions.php:142 +#: functions.php:144 msgid "Primary Menu" msgstr "" #. translators: header image description -#: functions.php:236 +#: functions.php:238 msgid "Wheel" msgstr "" #. translators: header image description -#: functions.php:242 +#: functions.php:244 msgid "Shore" msgstr "" #. translators: header image description -#: functions.php:248 +#: functions.php:250 msgid "Trolley" msgstr "" #. translators: header image description -#: functions.php:254 +#: functions.php:256 msgid "Pine Cone" msgstr "" #. translators: header image description -#: functions.php:260 +#: functions.php:262 msgid "Chessboard" msgstr "" #. translators: header image description -#: functions.php:266 +#: functions.php:268 msgid "Lanterns" msgstr "" #. translators: header image description -#: functions.php:272 +#: functions.php:274 msgid "Willow" msgstr "" #. translators: header image description -#: functions.php:278 +#: functions.php:280 msgid "Hanoi Plant" msgstr "" -#: functions.php:530 +#: functions.php:532 msgid "Main Sidebar" msgstr "" -#: functions.php:541 +#: functions.php:543 msgid "Showcase Sidebar" msgstr "" -#: functions.php:543 +#: functions.php:545 msgid "The sidebar for the optional Showcase Template" msgstr "" -#: functions.php:553 +#: functions.php:555 msgid "Footer Area One" msgstr "" -#: functions.php:555 functions.php:567 functions.php:579 +#: functions.php:557 functions.php:569 functions.php:581 msgid "An optional widget area for your site footer" msgstr "" -#: functions.php:565 +#: functions.php:567 msgid "Footer Area Two" msgstr "" -#: functions.php:577 +#: functions.php:579 msgid "Footer Area Three" msgstr "" -#: functions.php:603 single.php:21 +#: functions.php:605 single.php:21 msgid "Post navigation" msgstr "" -#: functions.php:604 +#: functions.php:606 msgid "<span class=\"meta-nav\">←</span> Older posts" msgstr "" -#: functions.php:605 +#: functions.php:607 msgid "Newer posts <span class=\"meta-nav\">→</span>" msgstr "" -#: functions.php:710 +#: functions.php:712 msgid "Pingback:" msgstr "" #. translators: 1: comment author, 2: date and time -#: functions.php:729 +#: functions.php:731 msgid "%1$s on %2$s <span class=\"says\">said:</span>" msgstr "" #. translators: 1: date, 2: time -#: functions.php:736 +#: functions.php:738 msgid "%1$s at %2$s" msgstr "" -#: functions.php:745 +#: functions.php:747 msgid "Your comment is awaiting moderation." msgstr "" -#: functions.php:759 +#: functions.php:761 msgid "Reply <span>↓</span>" msgstr "" -#: functions.php:785 +#: functions.php:787 msgid "<span class=\"sep\">Posted on </span><a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%3$s\">%4$s</time></a><span class=\"by-author\"> <span class=\"sep\"> by </span> <span class=\"author vcard\"><a class=\"url fn n\" href=\"%5$s\" title=\"%6$s\" rel=\"author\">%7$s</a></span></span>" msgstr "" @@ -408,15 +416,15 @@ msgstr "" msgid "Page %s" msgstr "" -#: header.php:142 +#: header.php:143 msgid "Main menu" msgstr "" -#: header.php:144 +#: header.php:145 msgid "Skip to primary content" msgstr "" -#: header.php:146 +#: header.php:147 msgid "Skip to secondary content" msgstr "" @@ -481,7 +489,7 @@ msgid "<a href=\"https://codex.wordpress.org/Appearance_Theme_Options_Screen\" t msgstr "" #: inc/theme-options.php:122 -msgid "<a href=\"https://wordpress.org/support/\" target=\"_blank\">Support Forums</a>" +msgid "<a href=\"https://wordpress.org/support/\" target=\"_blank\">Support</a>" msgstr "" #: inc/theme-options.php:130 @@ -532,27 +540,27 @@ msgstr "" msgid "Use this widget to list your recent Aside, Status, Quote, and Link posts" msgstr "" -#: inc/widgets.php:74 +#: inc/widgets.php:73 msgid "Ephemera" msgstr "" -#: inc/widgets.php:118 inc/widgets.php:127 +#: inc/widgets.php:117 inc/widgets.php:126 msgid "0 <span class=\"reply\">comments →</span>" msgstr "" -#: inc/widgets.php:118 inc/widgets.php:127 +#: inc/widgets.php:117 inc/widgets.php:126 msgid "1 <span class=\"reply\">comment →</span>" msgstr "" -#: inc/widgets.php:118 inc/widgets.php:127 +#: inc/widgets.php:117 inc/widgets.php:126 msgid "% <span class=\"reply\">comments →</span>" msgstr "" -#: inc/widgets.php:194 +#: inc/widgets.php:193 msgid "Title:" msgstr "" -#: inc/widgets.php:197 +#: inc/widgets.php:196 msgid "Number of posts to show:" msgstr "" diff --git a/wp-content/themes/twentyeleven/readme.txt b/wp-content/themes/twentyeleven/readme.txt index e37ab80fb..e67e5225d 100644 --- a/wp-content/themes/twentyeleven/readme.txt +++ b/wp-content/themes/twentyeleven/readme.txt @@ -1,8 +1,9 @@ === Twenty Eleven === -Contributors: the WordPress team +Contributors: wordpressdotorg Requires at least: WordPress 3.2 Tested up to: WordPress 5.0 -Stable tag: 3.1 +Requires PHP: 5.2.4 +Stable tag: 3.3 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: blog, one-column, two-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready @@ -43,6 +44,16 @@ Source: https://github.com/aFarkas/html5shiv == Changelog == += 3.3 = +* Released: May 7, 2019 + +https://codex.wordpress.org/Twenty_Eleven_Theme_Changelog#Version_3.3 + += 3.2 = +* Released: February 21, 2019 + +https://codex.wordpress.org/Twenty_Eleven_Theme_Changelog#Version_3.2 + = 3.1 = * Released: January 9, 2019 diff --git a/wp-content/themes/twentyeleven/style.css b/wp-content/themes/twentyeleven/style.css index c2b497243..bda46c7df 100644 --- a/wp-content/themes/twentyeleven/style.css +++ b/wp-content/themes/twentyeleven/style.css @@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentyeleven/ Author: the WordPress team Author URI: https://wordpress.org/ Description: The 2011 theme for WordPress is sophisticated, lightweight, and adaptable. Make it yours with a custom menu, header image, and background -- then go further with available theme options for light or dark color scheme, custom link colors, and three layout choices. Twenty Eleven comes equipped with a Showcase page template that transforms your front page into a showcase to show off your best content, widget support galore (sidebar, three footer areas, and a Showcase page widget area), and a custom "Ephemera" widget to display your Aside, Link, Quote, or Status posts. Included are styles for print and for the admin editor, support for featured images (as custom header images on posts and pages and as large images on featured "sticky" posts), and special styles for six different post formats. -Version: 3.1 +Version: 3.3 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: blog, one-column, two-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready @@ -1584,7 +1584,7 @@ section.feature-image.large img { background: -o-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* Opera11.10+ */ background: -ms-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* IE10+ */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */ - background: linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* W3C */ + background: linear-gradient(to bottom, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* W3C */ width: 100%; height: 45px; position: absolute; -- GitLab