updated theme Twenty Sixteen
version 2.2
This commit is contained in:
parent
b3cd4e0a59
commit
de9808fd12
@ -200,7 +200,7 @@ p.has-drop-cap:not(:focus)::first-letter {
|
||||
.wp-block-table {
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
border-width: 1px 0 0 1px;
|
||||
border-width: 0;
|
||||
margin: 0 0 1.75em;
|
||||
table-layout: fixed;
|
||||
width: 100%;
|
||||
|
@ -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
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
@ -614,3 +615,103 @@ Description: Used to style blocks in the editor.
|
||||
.edit-post-visual-editor .wp-block-latest-posts.is-grid li {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
7.0 Blocks - Colors
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
:root .editor-styles-wrapper .has-dark-gray-color {
|
||||
color: #1a1a1a;
|
||||
}
|
||||
|
||||
:root .editor-styles-wrapper .has-dark-gray-background-color {
|
||||
background-color: #1a1a1a;
|
||||
}
|
||||
|
||||
:root .editor-styles-wrapper .has-medium-gray-color {
|
||||
color: #686868;
|
||||
}
|
||||
|
||||
:root .editor-styles-wrapper .has-medium-gray-background-color {
|
||||
background-color: #686868;
|
||||
}
|
||||
|
||||
:root .editor-styles-wrapper .has-light-gray-color {
|
||||
color: #e5e5e5;
|
||||
}
|
||||
|
||||
:root .editor-styles-wrapper .has-light-gray-background-color {
|
||||
background-color: #e5e5e5;
|
||||
}
|
||||
|
||||
: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-blue-gray-color {
|
||||
color: #4d545c;
|
||||
}
|
||||
|
||||
:root .editor-styles-wrapper .has-blue-gray-background-color {
|
||||
background-color: #4d545c;
|
||||
}
|
||||
|
||||
:root .editor-styles-wrapper .has-bright-blue-color {
|
||||
color: #007acc;
|
||||
}
|
||||
|
||||
:root .editor-styles-wrapper .has-bright-blue-background-color {
|
||||
background-color: #007acc;
|
||||
}
|
||||
|
||||
:root .editor-styles-wrapper .has-light-blue-color {
|
||||
color: #9adffd;
|
||||
}
|
||||
|
||||
:root .editor-styles-wrapper .has-light-blue-background-color {
|
||||
background-color: #9adffd;
|
||||
}
|
||||
|
||||
:root .editor-styles-wrapper .has-dark-brown-color {
|
||||
color: #402b30;
|
||||
}
|
||||
|
||||
:root .editor-styles-wrapper .has-dark-brown-background-color {
|
||||
background-color: #402b30;
|
||||
}
|
||||
|
||||
:root .editor-styles-wrapper .has-medium-brown-color {
|
||||
color: #774e24;
|
||||
}
|
||||
|
||||
:root .editor-styles-wrapper .has-medium-brown-background-color {
|
||||
background-color: #774e24;
|
||||
}
|
||||
|
||||
:root .editor-styles-wrapper .has-dark-red-color {
|
||||
color: #640c1f;
|
||||
}
|
||||
|
||||
:root .editor-styles-wrapper .has-dark-red-background-color {
|
||||
background-color: #640c1f;
|
||||
}
|
||||
|
||||
:root .editor-styles-wrapper .has-bright-red-color {
|
||||
color: #ff675f;
|
||||
}
|
||||
|
||||
:root .editor-styles-wrapper .has-bright-red-background-color {
|
||||
background-color: #ff675f;
|
||||
}
|
||||
|
||||
:root .editor-styles-wrapper .has-yellow-color {
|
||||
color: #ffef8e;
|
||||
}
|
||||
|
||||
:root .editor-styles-wrapper .has-yellow-background-color {
|
||||
background-color: #ffef8e;
|
||||
}
|
||||
|
@ -238,9 +238,9 @@ add_action( 'after_setup_theme', 'twentysixteen_content_width', 0 );
|
||||
*
|
||||
* @since Twenty Sixteen 1.6
|
||||
*
|
||||
* @param array $urls URLs to print for resource hints.
|
||||
* @param string $relation_type The relation type the URLs are printed.
|
||||
* @return array $urls URLs to print for resource hints.
|
||||
* @param array $urls URLs to print for resource hints.
|
||||
* @param string $relation_type The relation type the URLs are printed.
|
||||
* @return array URLs to print for resource hints.
|
||||
*/
|
||||
function twentysixteen_resource_hints( $urls, $relation_type ) {
|
||||
if ( wp_style_is( 'twentysixteen-fonts', 'queue' ) && 'preconnect' === $relation_type ) {
|
||||
|
@ -14,7 +14,7 @@
|
||||
<head>
|
||||
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="profile" href="http://gmpg.org/xfn/11">
|
||||
<link rel="profile" href="https://gmpg.org/xfn/11">
|
||||
<?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
|
||||
<link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
|
||||
<?php endif; ?>
|
||||
@ -85,7 +85,7 @@
|
||||
<?php if ( get_header_image() ) : ?>
|
||||
<?php
|
||||
/**
|
||||
* Filter the default twentysixteen custom header sizes attribute.
|
||||
* Filters the default twentysixteen custom header sizes attribute.
|
||||
*
|
||||
* @since Twenty Sixteen 1.0
|
||||
*
|
||||
|
@ -36,7 +36,7 @@ get_header(); ?>
|
||||
<div class="entry-attachment">
|
||||
<?php
|
||||
/**
|
||||
* Filter the default twentysixteen image attachment size.
|
||||
* Filters the default twentysixteen image attachment size.
|
||||
*
|
||||
* @since Twenty Sixteen 1.0
|
||||
*
|
||||
|
@ -19,19 +19,19 @@ function twentysixteen_custom_header_and_background() {
|
||||
$default_background_color = trim( $color_scheme[0], '#' );
|
||||
$default_text_color = trim( $color_scheme[3], '#' );
|
||||
|
||||
/**
|
||||
* Filter the arguments used when adding 'custom-background' support in Twenty Sixteen.
|
||||
*
|
||||
* @since Twenty Sixteen 1.0
|
||||
*
|
||||
* @param array $args {
|
||||
* An array of custom-background support arguments.
|
||||
*
|
||||
* @type string $default-color Default color of the background.
|
||||
* }
|
||||
*/
|
||||
add_theme_support(
|
||||
'custom-background',
|
||||
/**
|
||||
* Filters the arguments used when adding 'custom-background' support in Twenty Sixteen.
|
||||
*
|
||||
* @since Twenty Sixteen 1.0
|
||||
*
|
||||
* @param array $args {
|
||||
* An array of custom-background support arguments.
|
||||
*
|
||||
* @type string $default-color Default color of the background.
|
||||
* }
|
||||
*/
|
||||
apply_filters(
|
||||
'twentysixteen_custom_background_args',
|
||||
array(
|
||||
@ -40,24 +40,24 @@ function twentysixteen_custom_header_and_background() {
|
||||
)
|
||||
);
|
||||
|
||||
/**
|
||||
* Filter the arguments used when adding 'custom-header' support in Twenty Sixteen.
|
||||
*
|
||||
* @since Twenty Sixteen 1.0
|
||||
*
|
||||
* @param array $args {
|
||||
* An array of custom-header support arguments.
|
||||
*
|
||||
* @type string $default-text-color Default color of the header text.
|
||||
* @type int $width Width in pixels of the custom header image. Default 1200.
|
||||
* @type int $height Height in pixels of the custom header image. Default 280.
|
||||
* @type bool $flex-height Whether to allow flexible-height header images. Default true.
|
||||
* @type callable $wp-head-callback Callback function used to style the header image and text
|
||||
* displayed on the blog.
|
||||
* }
|
||||
*/
|
||||
add_theme_support(
|
||||
'custom-header',
|
||||
/**
|
||||
* Filters the arguments used when adding 'custom-header' support in Twenty Sixteen.
|
||||
*
|
||||
* @since Twenty Sixteen 1.0
|
||||
*
|
||||
* @param array $args {
|
||||
* An array of custom-header support arguments.
|
||||
*
|
||||
* @type string $default-text-color Default color of the header text.
|
||||
* @type int $width Width in pixels of the custom header image. Default 1200.
|
||||
* @type int $height Height in pixels of the custom header image. Default 280.
|
||||
* @type bool $flex-height Whether to allow flexible-height header images. Default true.
|
||||
* @type callable $wp-head-callback Callback function used to style the header image and text
|
||||
* displayed on the blog.
|
||||
* }
|
||||
*/
|
||||
apply_filters(
|
||||
'twentysixteen_custom_header_args',
|
||||
array(
|
||||
@ -251,6 +251,7 @@ add_action( 'customize_register', 'twentysixteen_customize_register', 11 );
|
||||
* Render the site title for the selective refresh partial.
|
||||
*
|
||||
* @since Twenty Sixteen 1.2
|
||||
*
|
||||
* @see twentysixteen_customize_register()
|
||||
*
|
||||
* @return void
|
||||
@ -263,6 +264,7 @@ function twentysixteen_customize_partial_blogname() {
|
||||
* Render the site tagline for the selective refresh partial.
|
||||
*
|
||||
* @since Twenty Sixteen 1.2
|
||||
*
|
||||
* @see twentysixteen_customize_register()
|
||||
*
|
||||
* @return void
|
||||
@ -289,7 +291,7 @@ function twentysixteen_customize_partial_blogdescription() {
|
||||
*/
|
||||
function twentysixteen_get_color_schemes() {
|
||||
/**
|
||||
* Filter the color schemes registered for use with Twenty Sixteen.
|
||||
* Filters the color schemes registered for use with Twenty Sixteen.
|
||||
*
|
||||
* The default schemes include 'default', 'dark', 'gray', 'red', and 'yellow'.
|
||||
*
|
||||
|
@ -29,7 +29,7 @@ if ( ! function_exists( 'twentysixteen_entry_meta' ) ) :
|
||||
);
|
||||
}
|
||||
|
||||
if ( in_array( get_post_type(), array( 'post', 'attachment' ) ) ) {
|
||||
if ( in_array( get_post_type(), array( 'post', 'attachment' ), true ) ) {
|
||||
twentysixteen_entry_date();
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
=== Twenty Sixteen ===
|
||||
Contributors: wordpressdotorg
|
||||
Tested up to: 5.0
|
||||
Version: 2.1
|
||||
Tested up to: 5.5
|
||||
Version: 2.2
|
||||
License: GPLv2 or later
|
||||
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
|
||||
@ -55,6 +55,11 @@ Image used in screenshot.png: A photo by Austin Schmid (https://unsplash.com/sch
|
||||
|
||||
== Changelog ==
|
||||
|
||||
= 2.2 =
|
||||
* Released: August 11, 2020
|
||||
|
||||
https://codex.wordpress.org/Twenty_Sixteen_Theme_Changelog#Version_2.2
|
||||
|
||||
= 2.1 =
|
||||
* Released: March 31, 2020
|
||||
|
||||
|
@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentysixteen/
|
||||
Author: the WordPress team
|
||||
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.
|
||||
Version: 2.1
|
||||
Version: 2.2
|
||||
Requires at least: 4.4
|
||||
Requires PHP: 5.2.4
|
||||
License: GNU General Public License v2 or later
|
||||
|
@ -12,7 +12,7 @@
|
||||
<div class="author-avatar">
|
||||
<?php
|
||||
/**
|
||||
* Filter the Twenty Sixteen author bio avatar size.
|
||||
* Filters the Twenty Sixteen author bio avatar size.
|
||||
*
|
||||
* @since Twenty Sixteen 1.0
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user