diff --git a/wp-content/themes/twentysixteen/css/blocks.css b/wp-content/themes/twentysixteen/css/blocks.css index 732a2c887174c704c3065c550adaeae314dc2e7a..9a7a2717c4a99737ef2874d3f633e7887abc97bf 100644 --- a/wp-content/themes/twentysixteen/css/blocks.css +++ b/wp-content/themes/twentysixteen/css/blocks.css @@ -145,12 +145,14 @@ p.has-drop-cap:not(:focus)::first-letter { .wp-block-code { border: 0; font-family: Inconsolata, monospace; - font-size: 16px; - font-size: 1rem; line-height: 1.75; padding: 0; } +.wp-block-code code { + font-size: inherit; +} + /* Pullquote */ .wp-block-pullquote { @@ -200,7 +202,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%; diff --git a/wp-content/themes/twentysixteen/css/editor-blocks.css b/wp-content/themes/twentysixteen/css/editor-blocks.css index cc7411ae87604ca851339ad0d116aa358f54018f..b952291fe13fe57b216bf9abf14c3feaa2e942fd 100644 --- a/wp-content/themes/twentysixteen/css/editor-blocks.css +++ b/wp-content/themes/twentysixteen/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 --------------------------------------------------------------*/ /*-------------------------------------------------------------- @@ -196,7 +197,6 @@ Description: Used to style blocks in the editor. .edit-post-visual-editor ol, .editor-block-list__block ol, .block-library-list ol { - margin: 0 0 1.75em 1.25em; padding: 0; } @@ -230,22 +230,22 @@ 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 { +.rtl .editor-styles-wrapper ul ul, +.rtl .editor-styles-wrapper ol ol, +.rtl .editor-styles-wrapper ul ol, +.rtl .editor-styles-wrapper ol ul { margin-left: 0; - margin-right: 1.25em; - padding: 0; + margin-right: 1.5em; } -.rtl .edit-post-visual-editor ol, -.rtl .editor-block-list__block ol, -.rtl .block-library-list ol { - margin-left: 1.5em; - margin-right: 1.5em; +.wp-block-freeform.block-library-rich-text__tinymce ul, +.wp-block-freeform.block-library-rich-text__tinymce ol { + padding-left: 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 */ @@ -365,15 +365,6 @@ Description: Used to style blocks in the editor. width: -webkit-calc(50% - 0.736842105em); width: calc(50% - 0.736842105em); } - - .wp-block-quote:not(.alignleft):not(.alignright) { - margin-left: -1.473684211em; - } - - .rtl .wp-block-quote:not(.alignleft):not(.alignright) { - margin-left: 0; - margin-right: -1.473684211em; - } } @media screen and (min-width: 80em) { @@ -410,9 +401,10 @@ Description: Used to style blocks in the editor. /* Code */ -.wp-block-code { +.editor-styles-wrapper .wp-block-code { border: 0; padding: 0.125em 0.25em; + background-color: #d1d1d1; } /* Classic */ @@ -535,6 +527,12 @@ Description: Used to style blocks in the editor. text-align: right; } +/* Verse */ + +.editor-styles-wrapper .wp-block-verse { + font-family: inherit; +} + /*-------------------------------------------------------------- 5.0 Blocks - Layout Elements --------------------------------------------------------------*/ @@ -614,3 +612,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; +} diff --git a/wp-content/themes/twentysixteen/css/editor-style.css b/wp-content/themes/twentysixteen/css/editor-style.css index a4cab64b15c0d9378620f469aa25a5ef8a6d9df5..fd10b5331507429596295582824b9c7eeabb7199 100644 --- a/wp-content/themes/twentysixteen/css/editor-style.css +++ b/wp-content/themes/twentysixteen/css/editor-style.css @@ -28,7 +28,7 @@ body { font-size: 16px; font-weight: 400; line-height: 1.75; - margin: 20px 40px; + margin: auto 20px; max-width: 600px; vertical-align: baseline; } @@ -120,10 +120,6 @@ blockquote { padding: 0 0 0 24px; } -blockquote:not(.alignleft):not(.alignright) { - margin-left: -28px; -} - blockquote blockquote:not(.alignleft):not(.alignright) { margin-left: 0; } @@ -188,7 +184,6 @@ pre { font-size: 16px; line-height: 1.3125; margin: 0 0 28px; - max-width: 100%; overflow: auto; padding: 14px; white-space: pre; @@ -519,7 +514,6 @@ fieldset { } .rtl blockquote:not(.alignleft):not(.alignright) { - margin-right: -28px; padding: 0 24px 0 0; } diff --git a/wp-content/themes/twentysixteen/functions.php b/wp-content/themes/twentysixteen/functions.php index 561f00e7a9c0bdddc91fd04ec1cab57b23a81b6d..e49f39864cc1b1df4329860202375a28083c1ef4 100644 --- a/wp-content/themes/twentysixteen/functions.php +++ b/wp-content/themes/twentysixteen/functions.php @@ -108,6 +108,7 @@ if ( ! function_exists( 'twentysixteen_setup' ) ) : 'caption', 'script', 'style', + 'navigation-widgets', ) ); @@ -215,6 +216,9 @@ if ( ! function_exists( 'twentysixteen_setup' ) ) : // Indicate widget sidebars can use selective refresh in the Customizer. add_theme_support( 'customize-selective-refresh-widgets' ); + + // Add support for custom line height controls. + add_theme_support( 'custom-line-height' ); } endif; // twentysixteen_setup() add_action( 'after_setup_theme', 'twentysixteen_setup' ); @@ -238,9 +242,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 ) { @@ -376,10 +380,10 @@ function twentysixteen_scripts() { wp_enqueue_style( 'twentysixteen-fonts', twentysixteen_fonts_url(), array(), null ); // 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. - wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri(), array(), '20190507' ); + wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri(), array(), '20201208' ); // Theme block stylesheet. 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() { // 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. 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'; +/** + * Block Patterns. + */ +require get_template_directory() . '/inc/block-patterns.php'; + /** * Customizer additions. */ diff --git a/wp-content/themes/twentysixteen/genericons/genericons.css b/wp-content/themes/twentysixteen/genericons/genericons.css index a91abdda5edaa69de2449b83e19bc4bed201d755..b7b8a11c28b93c2805816d1ff88c0a5dce8aa238 100644 --- a/wp-content/themes/twentysixteen/genericons/genericons.css +++ b/wp-content/themes/twentysixteen/genericons/genericons.css @@ -54,7 +54,7 @@ text-transform: none; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; - speak: none; + speak: never; } diff --git a/wp-content/themes/twentysixteen/header.php b/wp-content/themes/twentysixteen/header.php index d28debf7d7951f6c9f50a2aaa13ad82c23a79f17..f2fb9a8cfd3b524a5605259a83de848283c5e1ed 100644 --- a/wp-content/themes/twentysixteen/header.php +++ b/wp-content/themes/twentysixteen/header.php @@ -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 * diff --git a/wp-content/themes/twentysixteen/image.php b/wp-content/themes/twentysixteen/image.php index 492f40be019785dd00ad934ed32d1ebd83d5a71d..6cb60c3e26f35de1a7d71c26100d96fc21d324a4 100644 --- a/wp-content/themes/twentysixteen/image.php +++ b/wp-content/themes/twentysixteen/image.php @@ -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 * diff --git a/wp-content/themes/twentysixteen/inc/block-patterns.php b/wp-content/themes/twentysixteen/inc/block-patterns.php new file mode 100644 index 0000000000000000000000000000000000000000..7b361c562ef25eac4d53b0b6eaacaf835507368f --- /dev/null +++ b/wp-content/themes/twentysixteen/inc/block-patterns.php @@ -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 -->', + ) + ); +} diff --git a/wp-content/themes/twentysixteen/inc/customizer.php b/wp-content/themes/twentysixteen/inc/customizer.php index 677a5f84d4becb5703d8baca327b4dbcd59b46b8..1b2c5ef359e5bb86624bb1c4b4de1caeccc08d30 100644 --- a/wp-content/themes/twentysixteen/inc/customizer.php +++ b/wp-content/themes/twentysixteen/inc/customizer.php @@ -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'. * diff --git a/wp-content/themes/twentysixteen/inc/template-tags.php b/wp-content/themes/twentysixteen/inc/template-tags.php index da15431f4ff7036d0388d32c8cd2e4db8270241f..0f791843d2b8a8d02dbe3dd81142292b46d09702 100644 --- a/wp-content/themes/twentysixteen/inc/template-tags.php +++ b/wp-content/themes/twentysixteen/inc/template-tags.php @@ -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(); } diff --git a/wp-content/themes/twentysixteen/js/functions.js b/wp-content/themes/twentysixteen/js/functions.js index a15af117cbba432d155d9bb58d8e21fbadceb811..d7aed1bde9d1ff3e32c5565f5378b82c244ecb34 100644 --- a/wp-content/themes/twentysixteen/js/functions.js +++ b/wp-content/themes/twentysixteen/js/functions.js @@ -28,7 +28,7 @@ // Add menu items with submenus to aria-haspopup="true". container.find( '.menu-item-has-children' ).attr( 'aria-haspopup', 'true' ); - container.find( '.dropdown-toggle' ).click( function( e ) { + container.find( '.dropdown-toggle' ).on( 'click', function( e ) { var _this = $( this ), screenReaderSpan = _this.find( '.screen-reader-text' ); diff --git a/wp-content/themes/twentysixteen/readme.txt b/wp-content/themes/twentysixteen/readme.txt index 0de9136bc86d26810272f880105fbb3ff6431d74..c82d411f931e7f9ace060ce2f72a21104bd0b6f5 100644 --- a/wp-content/themes/twentysixteen/readme.txt +++ b/wp-content/themes/twentysixteen/readme.txt @@ -1,10 +1,10 @@ === Twenty Sixteen === Contributors: wordpressdotorg -Tested up to: 5.0 -Version: 2.1 +Tested up to: 5.6 +Version: 2.4 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 +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 == 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. @@ -28,7 +28,7 @@ For more information about Twenty Sixteen please go to https://wordpress.org/sup == Copyright == -Twenty Sixteen WordPress Theme, Copyright 2014-2020 WordPress.org +Twenty Sixteen WordPress Theme, Copyright 2014-2021 WordPress.org Twenty Sixteen is distributed under the terms of the GNU GPL This program is free software: you can redistribute it and/or modify @@ -55,6 +55,21 @@ Image used in screenshot.png: A photo by Austin Schmid (https://unsplash.com/sch == Changelog == += 2.4 = +* Released: March 9, 2021 + +https://codex.wordpress.org/Twenty_Sixteen_Theme_Changelog#Version_2.4 + += 2.3 = +* Released: December 8, 2020 + +https://codex.wordpress.org/Twenty_Sixteen_Theme_Changelog#Version_2.3 + += 2.2 = +* Released: August 11, 2020 + +https://codex.wordpress.org/Twenty_Sixteen_Theme_Changelog#Version_2.2 + = 2.1 = * Released: March 31, 2020 diff --git a/wp-content/themes/twentysixteen/style.css b/wp-content/themes/twentysixteen/style.css index 33bcaceb576fe597811dff16407c4167a298c592..d9a85ed5900cb4b657643d4c324fa171b6a11c22 100644 --- a/wp-content/themes/twentysixteen/style.css +++ b/wp-content/themes/twentysixteen/style.css @@ -4,12 +4,12 @@ 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.4 Requires at least: 4.4 Requires PHP: 5.2.4 License: GNU General Public License v2 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 +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 This theme, like WordPress, is licensed under the GPL. @@ -288,7 +288,7 @@ optgroup { font-variant: normal; font-weight: normal; line-height: 1; - speak: none; + speak: never; text-align: center; text-decoration: inherit; text-transform: none; @@ -1413,7 +1413,8 @@ blockquote:after, } .widget-area > :last-child, -.widget > :last-child { +.widget > :last-child, +.widget > nav > :last-child { margin-bottom: 0; } diff --git a/wp-content/themes/twentysixteen/template-parts/biography.php b/wp-content/themes/twentysixteen/template-parts/biography.php index 5430f2bb39d778ac3a0db1ee5f4b5e5dae72091b..1eb477ecbe876ff437af1a421a52a7d189f4f396 100644 --- a/wp-content/themes/twentysixteen/template-parts/biography.php +++ b/wp-content/themes/twentysixteen/template-parts/biography.php @@ -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 *