From 0ba58e76c6eb668b5a4ee284e56528be759f6a55 Mon Sep 17 00:00:00 2001 From: agata <automa@insicuri.net> Date: Sat, 24 Apr 2021 21:44:59 +0200 Subject: [PATCH] [auto] theme: twentythirteen 3.3 --- .../themes/twentythirteen/author-bio.php | 2 +- .../themes/twentythirteen/css/blocks.css | 14 ++ .../twentythirteen/css/editor-blocks.css | 153 +++++++++++++++--- .../themes/twentythirteen/functions.php | 23 +-- wp-content/themes/twentythirteen/header.php | 2 +- wp-content/themes/twentythirteen/image.php | 2 +- .../themes/twentythirteen/js/functions.js | 4 +- .../twentythirteen/js/theme-customizer.js | 4 +- wp-content/themes/twentythirteen/readme.txt | 23 ++- wp-content/themes/twentythirteen/style.css | 12 +- 10 files changed, 184 insertions(+), 55 deletions(-) diff --git a/wp-content/themes/twentythirteen/author-bio.php b/wp-content/themes/twentythirteen/author-bio.php index 46248a8fb..9d16e0c92 100644 --- a/wp-content/themes/twentythirteen/author-bio.php +++ b/wp-content/themes/twentythirteen/author-bio.php @@ -12,7 +12,7 @@ <div class="author-avatar"> <?php /** - * Filter the author bio avatar size. + * Filters the author bio avatar size. * * @since Twenty Thirteen 1.0 * diff --git a/wp-content/themes/twentythirteen/css/blocks.css b/wp-content/themes/twentythirteen/css/blocks.css index 331be5131..f14cde769 100644 --- a/wp-content/themes/twentythirteen/css/blocks.css +++ b/wp-content/themes/twentythirteen/css/blocks.css @@ -194,6 +194,20 @@ p.has-drop-cap:not(:focus)::first-letter { display: flex; } +body:not(.sidebar) .wp-block-cover > .wp-block-cover__inner-container > * { + width: 604px; + max-width: 100%; + margin-left: auto; + margin-right: auto; +} + +@media screen and (min-width: 665px) { + body:not(.sidebar) .wp-block-cover__inner-container > .wp-block-group.alignfull, + body:not(.sidebar) .wp-block-cover__inner-container > .wp-block-group.has-background.alignfull { + padding: 20px; + } +} + /* File */ .wp-block-file .wp-block-file__button { diff --git a/wp-content/themes/twentythirteen/css/editor-blocks.css b/wp-content/themes/twentythirteen/css/editor-blocks.css index 9f4db3b82..632b29161 100644 --- a/wp-content/themes/twentythirteen/css/editor-blocks.css +++ b/wp-content/themes/twentythirteen/css/editor-blocks.css @@ -12,6 +12,7 @@ Description: Used to style blocks in the editor. 4.0 Blocks - Formatting 5.0 Blocks - Layout Elements 6.0 Blocks - Widgets +7.0 Blocks - Colors --------------------------------------------------------------*/ /*-------------------------------------------------------------- @@ -82,13 +83,9 @@ Description: Used to style blocks in the editor. .block-library-list ul, .edit-post-visual-editor ol, .editor-block-list__block ol, -.block-library-list ol { - margin: 16px 0; - padding: 0 0 0 40px; -} - +.block-library-list ol, .block-library-list .editor-rich-text__tinymce { - padding: 0 0 0 40px; + padding: 0; } .edit-post-visual-editor ul:not(.wp-block-gallery), @@ -120,19 +117,26 @@ Description: Used to style blocks in the editor. margin-bottom: 0; } -.rtl .edit-post-visual-editor ul:not(.wp-block-gallery), -.rtl .editor-block-list__block ul:not(.wp-block-gallery), -.rtl .block-library-list ul, -.rtl .edit-post-visual-editor ol, -.rtl .editor-block-list__block ol, -.rtl .block-library-list ol { - padding-left: 0; - padding-right: 40px; +.editor-styles-wrapper ul.block-editor-block-list__block, +.editor-styles-wrapper ol.block-editor-block-list__block, +.editor-styles-wrapper ol ul:not(.wp-block-gallery), +.editor-styles-wrapper ul ul:not(.wp-block-gallery), +.editor-styles-wrapper ul ol, +.editor-styles-wrapper ol ol, +.wp-block-freeform.block-library-rich-text__tinymce ul, +.wp-block-freeform.block-library-rich-text__tinymce ol { + padding: 0 0 0 40px; } -.rtl .block-library-list .editor-rich-text__tinymce { - padding-left: 0; - padding-right: 40px; +.rtl .editor-styles-wrapper ul.block-editor-block-list__block, +.rtl .editor-styles-wrapper ol.block-editor-block-list__block, +.rtl .editor-styles-wrapper ol ul:not(.wp-block-gallery), +.rtl .editor-styles-wrapper ul ul:not(.wp-block-gallery), +.rtl .editor-styles-wrapper ul ol, +.rtl .editor-styles-wrapper ol ol, +.rtl .wp-block-freeform.block-library-rich-text__tinymce ul, +.rtl .wp-block-freeform.block-library-rich-text__tinymce ol { + padding: 0 40px 0 0; } /* Quote */ @@ -160,7 +164,8 @@ Description: Used to style blocks in the editor. /* Code */ -.wp-block-freeform.block-library-rich-text__tinymce code { +.wp-block-freeform.block-library-rich-text__tinymce code, +.editor-styles-wrapper .wp-block-code { background: transparent; } @@ -216,14 +221,16 @@ p.has-drop-cap:not(:focus)::first-letter { .wp-block-quote:not(.is-large):not(.is-style-large) { border-left: 0; border-right: 0; - padding-left: 0; - padding-right: 0; + padding-left: 40px; + padding-right: 40px; } -.wp-block-quote .wp-block-quote__citation.editor-rich-text__tinymce.mce-content-body { +.wp-block-quote .wp-block-quote__citation.editor-rich-text__tinymce.mce-content-body, +.wp-block-quote .wp-block-quote__citation { color: inherit; font-size: 16px; font-style: italic; + font-weight: normal; text-transform: uppercase; } @@ -265,13 +272,19 @@ p.has-drop-cap:not(:focus)::first-letter { text-decoration: none; } +/* Verse */ + +.editor-styles-wrapper .wp-block-verse { + font-family: inherit; +} + /*-------------------------------------------------------------- 5.0 Blocks - Formatting --------------------------------------------------------------*/ /* Code */ -.wp-block-code { +.editor-styles-wrapper .wp-block-code { border: 0; padding: 0; } @@ -363,7 +376,9 @@ p.has-drop-cap:not(:focus)::first-letter { /* Group */ -.wp-block[data-type="core/group"] > .editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block { +.wp-block[data-type="core/group"] > .editor-block-list__block-edit > div > .wp-block-group > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block, +[data-align="wide"] .wp-block, +[data-align="full"] .wp-block { max-width: 634px; } @@ -436,3 +451,95 @@ p.has-drop-cap:not(:focus)::first-letter { .edit-post-visual-editor .wp-block-latest-posts.is-grid li { margin-bottom: 1em; } + +/*-------------------------------------------------------------- +7.0 Blocks - Colors +--------------------------------------------------------------*/ + +:root .editor-styles-wrapper .has-dark-gray-color { + color: #141412; +} + +:root .editor-styles-wrapper .has-dark-gray-background-color { + background-color: #141412; +} + +:root .editor-styles-wrapper .has-red-color { + color: #bc360a; +} + +:root .editor-styles-wrapper .has-red-background-color { + background-color: #bc360a; +} + +:root .editor-styles-wrapper .has-medium-orange-color { + color: #db572f; +} + +:root .editor-styles-wrapper .has-medium-orange-background-color { + background-color: #db572f; +} + +:root .editor-styles-wrapper .has-light-orange-color { + color: #ea9629; +} + +:root .editor-styles-wrapper .has-light-orange-background-color { + background-color: #ea9629; +} + +:root .editor-styles-wrapper .has-yellow-color { + color: #fbca3c; +} + +:root .editor-styles-wrapper .has-yellow-background-color { + background-color: #fbca3c; +} + +:root .editor-styles-wrapper .has-white-color { + color: #fff; +} + +:root .editor-styles-wrapper .has-white-background-color { + background-color: #fff; +} + +:root .editor-styles-wrapper .has-dark-brown-color { + color: #220e10; +} + +:root .editor-styles-wrapper .has-dark-brown-background-color { + background-color: #220e10; +} + +:root .editor-styles-wrapper .has-medium-brown-color { + color: #722d19; +} + +:root .editor-styles-wrapper .has-medium-brown-background-color { + background-color: #722d19; +} + +:root .editor-styles-wrapper .has-light-brown-color { + color: #eadaa6; +} + +:root .editor-styles-wrapper .has-light-brown-background-color { + background-color: #eadaa6; +} + +:root .editor-styles-wrapper .has-beige-color { + color: #e8e5ce; +} + +:root .editor-styles-wrapper .has-beige-background-color { + background-color: #e8e5ce; +} + +:root .editor-styles-wrapper .has-off-white-color { + color: #f7f5e7; +} + +:root .editor-styles-wrapper .has-off-white-background-color { + background-color: #f7f5e7; +} diff --git a/wp-content/themes/twentythirteen/functions.php b/wp-content/themes/twentythirteen/functions.php index 596b5dc02..ff1b7c891 100644 --- a/wp-content/themes/twentythirteen/functions.php +++ b/wp-content/themes/twentythirteen/functions.php @@ -168,6 +168,7 @@ function twentythirteen_setup() { 'caption', 'script', 'style', + 'navigation-widgets', ) ); @@ -284,7 +285,7 @@ function twentythirteen_scripts_styles() { wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.0.3' ); // Loads our main stylesheet. - wp_enqueue_style( 'twentythirteen-style', get_stylesheet_uri(), array(), '20190507' ); + wp_enqueue_style( 'twentythirteen-style', get_stylesheet_uri(), array(), '20201208' ); // Theme block stylesheet. wp_enqueue_style( 'twentythirteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentythirteen-style' ), '20190102' ); @@ -327,7 +328,7 @@ add_filter( 'wp_resource_hints', 'twentythirteen_resource_hints', 10, 2 ); */ function twentythirteen_block_editor_styles() { // Block styles. - wp_enqueue_style( 'twentythirteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20190102' ); + wp_enqueue_style( 'twentythirteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20201208' ); // Add custom fonts. wp_enqueue_style( 'twentythirteen-fonts', twentythirteen_fonts_url(), array(), null ); } @@ -478,7 +479,7 @@ if ( ! function_exists( 'twentythirteen_entry_meta' ) ) : echo '<span class="featured-post">' . esc_html__( 'Sticky', 'twentythirteen' ) . '</span>'; } - if ( ! has_post_format( 'link' ) && 'post' == get_post_type() ) { + if ( ! has_post_format( 'link' ) && 'post' === get_post_type() ) { twentythirteen_entry_date(); } @@ -489,13 +490,13 @@ if ( ! function_exists( 'twentythirteen_entry_meta' ) ) : } /* translators: Used between list items, there is a space after the comma. */ - $tag_list = get_the_tag_list( '', __( ', ', 'twentythirteen' ) ); - if ( $tag_list ) { - echo '<span class="tags-links">' . $tag_list . '</span>'; + $tags_list = get_the_tag_list( '', __( ', ', 'twentythirteen' ) ); + if ( $tags_list && ! is_wp_error( $tags_list ) ) { + echo '<span class="tags-links">' . $tags_list . '</span>'; } // Post author. - if ( 'post' == get_post_type() ) { + if ( 'post' === get_post_type() ) { printf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), @@ -515,7 +516,7 @@ if ( ! function_exists( 'twentythirteen_entry_date' ) ) : * * @since Twenty Thirteen 1.0 * - * @param boolean $echo (optional) Whether to echo the date. Default true. + * @param bool $echo (optional) Whether to echo the date. Default true. * @return string The HTML-formatted post date. */ function twentythirteen_entry_date( $echo = true ) { @@ -551,7 +552,7 @@ if ( ! function_exists( 'twentythirteen_the_attached_image' ) ) : */ function twentythirteen_the_attached_image() { /** - * Filter the image attachment size to use. + * Filters the image attachment size to use. * * @since Twenty thirteen 1.0 * @@ -734,6 +735,7 @@ add_action( 'customize_register', 'twentythirteen_customize_register' ); * Render the site title for the selective refresh partial. * * @since Twenty Thirteen 1.9 + * * @see twentythirteen_customize_register() * * @return void @@ -746,6 +748,7 @@ function twentythirteen_customize_partial_blogname() { * Render the site tagline for the selective refresh partial. * * @since Twenty Thirteen 1.9 + * * @see twentythirteen_customize_register() * * @return void @@ -755,7 +758,7 @@ function twentythirteen_customize_partial_blogdescription() { } /** - * Enqueue Javascript postMessage handlers for the Customizer. + * Enqueue JavaScript postMessage handlers for the Customizer. * * Binds JavaScript handlers to make the Customizer preview * reload changes asynchronously. diff --git a/wp-content/themes/twentythirteen/header.php b/wp-content/themes/twentythirteen/header.php index 78ce0ffa4..118a921e3 100644 --- a/wp-content/themes/twentythirteen/header.php +++ b/wp-content/themes/twentythirteen/header.php @@ -22,7 +22,7 @@ <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta name="viewport" content="width=device-width"> <title><?php wp_title( '|', true, 'right' ); ?></title> - <link rel="profile" href="http://gmpg.org/xfn/11"> + <link rel="profile" href="https://gmpg.org/xfn/11"> <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?ver=3.7.0"></script> diff --git a/wp-content/themes/twentythirteen/image.php b/wp-content/themes/twentythirteen/image.php index e1779003d..fddb7afc6 100644 --- a/wp-content/themes/twentythirteen/image.php +++ b/wp-content/themes/twentythirteen/image.php @@ -27,7 +27,7 @@ get_header(); ?> <div class="entry-meta"> <?php /* translators: 1: Date, 2: Date, 3, Parent permalink, 4, Post title, 5: Post title. */ - $published_text = __( '<span class="attachment-meta">Published on <time class="entry-date" datetime="%1$s">%2$s</time> in <a href="%3$s" title="Return to %4$s" rel="gallery">%5$s</a></span>', 'twentythirteen' ); + $published_text = __( '<span class="attachment-meta">Published on <time class="entry-date" datetime="%1$s">%2$s</time> in <a href="%3$s" title="Go to %4$s" rel="gallery">%5$s</a></span>', 'twentythirteen' ); $post_title = get_the_title( $post->post_parent ); if ( empty( $post_title ) || 0 == $post->post_parent ) { $published_text = '<span class="attachment-meta"><time class="entry-date" datetime="%1$s">%2$s</time></span>'; diff --git a/wp-content/themes/twentythirteen/js/functions.js b/wp-content/themes/twentythirteen/js/functions.js index fd92ad0f3..92c7376b1 100644 --- a/wp-content/themes/twentythirteen/js/functions.js +++ b/wp-content/themes/twentythirteen/js/functions.js @@ -123,7 +123,7 @@ */ $( function() { var columnWidth, widgetArea; - if ( ! $.isFunction( $.fn.masonry ) ) { + if ( typeof $.fn.masonry !== 'function' ) { return; } columnWidth = body.is( '.sidebar' ) ? 228 : 245; @@ -164,4 +164,4 @@ } ); } } ); -} )( jQuery ); \ No newline at end of file +} )( jQuery ); diff --git a/wp-content/themes/twentythirteen/js/theme-customizer.js b/wp-content/themes/twentythirteen/js/theme-customizer.js index 33b5f9d26..72370dd1b 100644 --- a/wp-content/themes/twentythirteen/js/theme-customizer.js +++ b/wp-content/themes/twentythirteen/js/theme-customizer.js @@ -20,8 +20,8 @@ // Header text color. wp.customize( 'header_textcolor', function( value ) { value.bind( function( to ) { - if ( 'blank' == to ) { - if ( 'remove-header' == wp.customize.instance( 'header_image' ).get() ) { + if ( 'blank' === to ) { + if ( 'remove-header' === wp.customize.instance( 'header_image' ).get() ) { $( '.home-link' ).css( 'min-height', '0' ); } $( '.site-title, .site-description' ).css( { diff --git a/wp-content/themes/twentythirteen/readme.txt b/wp-content/themes/twentythirteen/readme.txt index ee83cfd8e..138dbff64 100644 --- a/wp-content/themes/twentythirteen/readme.txt +++ b/wp-content/themes/twentythirteen/readme.txt @@ -1,7 +1,7 @@ === Twenty Thirteen === Contributors: wordpressdotorg -Tested up to: 5.0 -Stable tag: 3.0 +Tested up to: 5.6 +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, right-sidebar, custom-header, custom-menu, editor-style, featured-images, footer-widgets, microformats, post-formats, rtl-language-support, sticky-post, translation-ready, accessibility-ready @@ -21,7 +21,7 @@ For more information about Twenty Thirteen please go to https://codex.wordpress. == Copyright == -Twenty Thirteen WordPress Theme, Copyright 2013-2020 WordPress.org & Automattic.com +Twenty Thirteen WordPress Theme, Copyright 2013-2021 WordPress.org & Automattic.com Twenty Thirteen is Distributed under the terms of the GNU GPL This program is free software: you can redistribute it and/or modify @@ -46,8 +46,23 @@ Source: http://www.genericons.com == Changelog == += 3.3 = +* Released: March 9, 2021 + +https://codex.wordpress.org/Twenty_Thirteen_Theme_Changelog#Version_3.3 + += 3.2 = +* Released: December 8, 2020 + +https://codex.wordpress.org/Twenty_Thirteen_Theme_Changelog#Version_3.2 + += 3.1 = +* Released: August 11, 2020 + +https://codex.wordpress.org/Twenty_Thirteen_Theme_Changelog#Version_3.1 + = 3.0 = -* Released: March, 2020 +* Released: March 31, 2020 https://codex.wordpress.org/Twenty_Thirteen_Theme_Changelog#Version_3.0 diff --git a/wp-content/themes/twentythirteen/style.css b/wp-content/themes/twentythirteen/style.css index af78cf49e..f9040c86a 100644 --- a/wp-content/themes/twentythirteen/style.css +++ b/wp-content/themes/twentythirteen/style.css @@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentythirteen/ Author: the WordPress team Author URI: https://wordpress.org/ Description: The 2013 theme for WordPress takes us back to the blog, featuring a full range of post formats, each displayed beautifully in their own unique way. Design details abound, starting with a vibrant color scheme and matching header images, beautiful typography and icons, and a flexible layout that looks great on any device, big or small. -Version: 3.0 +Version: 3.3 Requires at least: 3.6 Requires PHP: 5.2.4 License: GNU General Public License v2 or later @@ -1135,16 +1135,6 @@ ul.nav-menu .focus > ul, word-wrap: break-word; } -.entry-content a, -.comment-content a { - color: #bc360a; -} - -.entry-content a:hover, -.comment-content a:hover { - color: #ea9629; -} - .entry-content .more-link { white-space: nowrap; } -- GitLab