updated theme Twenty Sixteen version 2.3

This commit is contained in:
KawaiiPunk 2020-12-10 10:44:00 +00:00 committed by Gitium
parent fe5ce864ee
commit 6c33b565cb
6 changed files with 195 additions and 25 deletions

View File

@ -197,7 +197,6 @@ Description: Used to style blocks in the editor.
.edit-post-visual-editor ol, .edit-post-visual-editor ol,
.editor-block-list__block ol, .editor-block-list__block ol,
.block-library-list ol { .block-library-list ol {
margin: 0 0 1.75em 1.25em;
padding: 0; padding: 0;
} }
@ -231,22 +230,22 @@ Description: Used to style blocks in the editor.
margin-bottom: 0; margin-bottom: 0;
} }
.rtl .edit-post-visual-editor ul:not(.wp-block-gallery), .rtl .editor-styles-wrapper ul ul,
.rtl .editor-block-list__block ul:not(.wp-block-gallery), .rtl .editor-styles-wrapper ol ol,
.rtl .block-library-list ul, .rtl .editor-styles-wrapper ul ol,
.rtl .edit-post-visual-editor ol, .rtl .editor-styles-wrapper ol ul {
.rtl .editor-block-list__block ol,
.rtl .block-library-list ol {
margin-left: 0; margin-left: 0;
margin-right: 1.25em; margin-right: 1.5em;
padding: 0;
} }
.rtl .edit-post-visual-editor ol, .wp-block-freeform.block-library-rich-text__tinymce ul,
.rtl .editor-block-list__block ol, .wp-block-freeform.block-library-rich-text__tinymce ol {
.rtl .block-library-list ol { padding-left: 1.5em;
margin-left: 1.5em; }
margin-right: 1.5em;
.rtl .wp-block-freeform.block-library-rich-text__tinymce ul,
.rtl .wp-block-freeform.block-library-rich-text__tinymce ol {
padding: 0;
} }
/* Quotes */ /* Quotes */

View File

@ -108,6 +108,7 @@ if ( ! function_exists( 'twentysixteen_setup' ) ) :
'caption', 'caption',
'script', 'script',
'style', 'style',
'navigation-widgets',
) )
); );
@ -215,6 +216,9 @@ if ( ! function_exists( 'twentysixteen_setup' ) ) :
// Indicate widget sidebars can use selective refresh in the Customizer. // Indicate widget sidebars can use selective refresh in the Customizer.
add_theme_support( 'customize-selective-refresh-widgets' ); add_theme_support( 'customize-selective-refresh-widgets' );
// Add support for custom line height controls.
add_theme_support( 'custom-line-height' );
} }
endif; // twentysixteen_setup() endif; // twentysixteen_setup()
add_action( 'after_setup_theme', 'twentysixteen_setup' ); add_action( 'after_setup_theme', 'twentysixteen_setup' );
@ -376,10 +380,10 @@ function twentysixteen_scripts() {
wp_enqueue_style( 'twentysixteen-fonts', twentysixteen_fonts_url(), array(), null ); wp_enqueue_style( 'twentysixteen-fonts', twentysixteen_fonts_url(), array(), null );
// Add Genericons, used in the main stylesheet. // Add Genericons, used in the main stylesheet.
wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.4.1' ); wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '20201208' );
// Theme stylesheet. // Theme stylesheet.
wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri(), array(), '20190507' ); wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri(), array(), '20201208' );
// Theme block stylesheet. // Theme block stylesheet.
wp_enqueue_style( 'twentysixteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentysixteen-style' ), '20190102' ); wp_enqueue_style( 'twentysixteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentysixteen-style' ), '20190102' );
@ -430,7 +434,7 @@ add_action( 'wp_enqueue_scripts', 'twentysixteen_scripts' );
*/ */
function twentysixteen_block_editor_styles() { function twentysixteen_block_editor_styles() {
// Block styles. // Block styles.
wp_enqueue_style( 'twentysixteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20190102' ); wp_enqueue_style( 'twentysixteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20201208' );
// Add custom fonts. // Add custom fonts.
wp_enqueue_style( 'twentysixteen-fonts', twentysixteen_fonts_url(), array(), null ); wp_enqueue_style( 'twentysixteen-fonts', twentysixteen_fonts_url(), array(), null );
} }
@ -505,6 +509,11 @@ function twentysixteen_hex2rgb( $color ) {
*/ */
require get_template_directory() . '/inc/template-tags.php'; require get_template_directory() . '/inc/template-tags.php';
/**
* Block Patterns.
*/
require get_template_directory() . '/inc/block-patterns.php';
/** /**
* Customizer additions. * Customizer additions.
*/ */

View File

@ -54,7 +54,7 @@
text-transform: none; text-transform: none;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
speak: none; speak: never;
} }

View File

@ -0,0 +1,156 @@
<?php
/**
* Twenty Sixteen Theme: Block Patterns
*
* @package Twenty Sixteen
* @since 2.2
*/
/**
* Register Block Pattern Category.
*/
if ( function_exists( 'register_block_pattern_category' ) ) {
register_block_pattern_category(
'twentysixteen',
array( 'label' => __( 'Twenty Sixteen', 'twentysixteen' ) )
);
}
/**
* Register Block Patterns.
*/
if ( function_exists( 'register_block_pattern' ) ) {
register_block_pattern(
'twentysixteen/large-heading-short-description',
array(
'title' => __( 'Large heading with short description', 'twentysixteen' ),
'categories' => array( 'twentysixteen' ),
'content' => '<!-- wp:group {"align":"full","backgroundColor":"background"} -->
<div class="wp-block-group alignfull has-background-background-color has-background"><div class="wp-block-group__inner-container"><!-- wp:spacer {"height":60} -->
<div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:heading {"level":6,"style":{"typography":{"lineHeight":"1.5","fontSize":35}}} -->
<h6 style="font-size:35px;line-height:1.5"><strong>' . esc_html__( 'Twenty Sixteen is a modern take on the horizontal masthead with an optional right sidebar. It works perfectly for WordPress websites and blogs.', 'twentysixteen' ) . '</strong></h6>
<!-- /wp:heading -->
<!-- wp:paragraph {"style":{"typography":{"lineHeight":"1.8"}}} -->
<p style="line-height:1.8">' . esc_html__( 'Twenty Sixteen will make your WordPress website look beautiful everywhere. Take advantage of custom color options, beautiful default color schemes, a harmonious fluid grid using a mobile-first approach, and impeccable polish in every detail.', 'twentysixteen' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:spacer {"height":60} -->
<div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer --></div></div>
<!-- /wp:group -->',
)
);
register_block_pattern(
'twentysixteen/big-title-two-columns-text',
array(
'title' => __( 'Big Title with Two Columns Text', 'twentysixteen' ),
'categories' => array( 'twentysixteen' ),
'content' => '<!-- wp:spacer -->
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:heading {"level":1,"style":{"typography":{"fontSize":55}}} -->
<h1 style="font-size:55px">' . esc_html__( 'Twenty Sixteen' ) . '</h1>
<!-- /wp:heading -->
<!-- wp:spacer {"height":30} -->
<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph {"dropCap":true} -->
<p class="has-drop-cap">' . esc_html__( 'Twenty Sixteen will make your WordPress website look beautiful everywhere. Take advantage of its custom color options and beautiful default color schemes.', 'twentysixteen' ) . '</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>' . esc_html__( 'The theme features a harmonious fluid grid using a mobile-first approach. The layout is a modern take on the horizontal masthead with an optional right sidebar. ', 'twentysixteen' ) . '</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
<!-- wp:spacer -->
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->',
)
);
register_block_pattern(
'twentysixteen/large-blockquote',
array(
'title' => __( 'Large Blockquote', 'twentysixteen' ),
'categories' => array( 'twentysixteen' ),
'content' => '<!-- wp:spacer -->
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:separator {"color":"dark-gray","className":"is-style-wide"} -->
<hr class="wp-block-separator has-text-color has-background has-dark-gray-background-color has-dark-gray-color is-style-wide"/>
<!-- /wp:separator -->
<!-- wp:heading {"style":{"typography":{"lineHeight":"1.5","fontSize":40}}} -->
<h2 style="font-size:40px;line-height:1.5"><em>' . esc_html__( 'Twenty Sixteen will make your WordPress look beautiful everywhere.', 'twentysixteen' ) . '</em></h2>
<!-- /wp:heading -->
<!-- wp:paragraph {"textColor":"medium-gray"} -->
<p class="has-medium-gray-color has-text-color">' . esc_html__( ' Takashi Irie', 'twentysixteen' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:spacer {"height":52} -->
<div style="height:52px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:separator {"color":"dark-gray","className":"is-style-wide"} -->
<hr class="wp-block-separator has-text-color has-background has-dark-gray-background-color has-dark-gray-color is-style-wide"/>
<!-- /wp:separator -->
<!-- wp:spacer -->
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->',
)
);
register_block_pattern(
'twentysixteen/call-to-action',
array(
'title' => __( 'Call to Action', 'twentysixteen' ),
'categories' => array( 'twentysixteen' ),
'content' => '<!-- wp:spacer -->
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:separator {"color":"dark-gray","className":"is-style-wide"} -->
<hr class="wp-block-separator has-text-color has-background has-dark-gray-background-color has-dark-gray-color is-style-wide"/>
<!-- /wp:separator -->
<!-- wp:heading {"level":1,"style":{"typography":{"fontSize":35,"lineHeight":"1.5"}}} -->
<h1 style="font-size:35px;line-height:1.5">' . esc_html__( 'My new book “Twenty Sixteen” is available for pre-order.', 'twentysixteen' ) . '</h1>
<!-- /wp:heading -->
<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:buttons -->
<div class="wp-block-buttons"><!-- wp:button {"borderRadius":0,"backgroundColor":"bright-blue"} -->
<div class="wp-block-button"><a class="wp-block-button__link has-bright-blue-background-color has-background no-border-radius">' . esc_html__( 'Pre-Order Now', 'twentysixteen' ) . '</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:spacer {"height":54} -->
<div style="height:54px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
<!-- wp:spacer -->
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->',
)
);
}

View File

@ -1,10 +1,10 @@
=== Twenty Sixteen === === Twenty Sixteen ===
Contributors: wordpressdotorg Contributors: wordpressdotorg
Tested up to: 5.5 Tested up to: 5.6
Version: 2.2 Version: 2.3
License: GPLv2 or later License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, right-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, blog Tags: one-column, two-columns, right-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, blog, block-patterns
== Description == == Description ==
Twenty Sixteen is a modernized take on an ever-popular WordPress layout — the horizontal masthead with an optional right sidebar that works perfectly for blogs and websites. It has custom color options with beautiful default color schemes, a harmonious fluid grid using a mobile-first approach, and impeccable polish in every detail. Twenty Sixteen will make your WordPress look beautiful everywhere. Twenty Sixteen is a modernized take on an ever-popular WordPress layout — the horizontal masthead with an optional right sidebar that works perfectly for blogs and websites. It has custom color options with beautiful default color schemes, a harmonious fluid grid using a mobile-first approach, and impeccable polish in every detail. Twenty Sixteen will make your WordPress look beautiful everywhere.
@ -55,6 +55,11 @@ Image used in screenshot.png: A photo by Austin Schmid (https://unsplash.com/sch
== Changelog == == Changelog ==
= 2.3 =
* Released: December 8, 2020
https://codex.wordpress.org/Twenty_Sixteen_Theme_Changelog#Version_2.3
= 2.2 = = 2.2 =
* Released: August 11, 2020 * Released: August 11, 2020

View File

@ -4,12 +4,12 @@ Theme URI: https://wordpress.org/themes/twentysixteen/
Author: the WordPress team Author: the WordPress team
Author URI: https://wordpress.org/ Author URI: https://wordpress.org/
Description: Twenty Sixteen is a modernized take on an ever-popular WordPress layout the horizontal masthead with an optional right sidebar that works perfectly for blogs and websites. It has custom color options with beautiful default color schemes, a harmonious fluid grid using a mobile-first approach, and impeccable polish in every detail. Twenty Sixteen will make your WordPress look beautiful everywhere. Description: Twenty Sixteen is a modernized take on an ever-popular WordPress layout the horizontal masthead with an optional right sidebar that works perfectly for blogs and websites. It has custom color options with beautiful default color schemes, a harmonious fluid grid using a mobile-first approach, and impeccable polish in every detail. Twenty Sixteen will make your WordPress look beautiful everywhere.
Version: 2.2 Version: 2.3
Requires at least: 4.4 Requires at least: 4.4
Requires PHP: 5.2.4 Requires PHP: 5.2.4
License: GNU General Public License v2 or later License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, right-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, blog Tags: one-column, two-columns, right-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, blog, block-patterns
Text Domain: twentysixteen Text Domain: twentysixteen
This theme, like WordPress, is licensed under the GPL. This theme, like WordPress, is licensed under the GPL.
@ -288,7 +288,7 @@ optgroup {
font-variant: normal; font-variant: normal;
font-weight: normal; font-weight: normal;
line-height: 1; line-height: 1;
speak: none; speak: never;
text-align: center; text-align: center;
text-decoration: inherit; text-decoration: inherit;
text-transform: none; text-transform: none;
@ -1413,7 +1413,8 @@ blockquote:after,
} }
.widget-area > :last-child, .widget-area > :last-child,
.widget > :last-child { .widget > :last-child,
.widget > nav > :last-child {
margin-bottom: 0; margin-bottom: 0;
} }