<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[49583] trunk/src/wp-content/themes/twentysixteen: Bundled Themes: Introduce block patterns for Twenty Sixteen.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="https://core.trac.wordpress.org/changeset/49583">49583</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"https://core.trac.wordpress.org/changeset/49583","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>SergeyBiryukov</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2020-11-12 21:12:32 +0000 (Thu, 12 Nov 2020)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Bundled Themes: Introduce block patterns for Twenty Sixteen.
Props melchoyce, kjellr, onemaggie, ryelle, beafialho, bridgetwillard, poena, jffng.
Fixes <a href="https://core.trac.wordpress.org/ticket/51101">#51101</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpcontentthemestwentysixteenfunctionsphp">trunk/src/wp-content/themes/twentysixteen/functions.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentysixteenreadmetxt">trunk/src/wp-content/themes/twentysixteen/readme.txt</a></li>
<li><a href="#trunksrcwpcontentthemestwentysixteenstylecss">trunk/src/wp-content/themes/twentysixteen/style.css</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li><a href="#trunksrcwpcontentthemestwentysixteenincblockpatternsphp">trunk/src/wp-content/themes/twentysixteen/inc/block-patterns.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpcontentthemestwentysixteenfunctionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentysixteen/functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentysixteen/functions.php 2020-11-12 20:40:13 UTC (rev 49582)
+++ trunk/src/wp-content/themes/twentysixteen/functions.php 2020-11-12 21:12:32 UTC (rev 49583)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -216,6 +216,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Indicate widget sidebars can use selective refresh in the Customizer.
</span><span class="cx" style="display: block; padding: 0 10px"> add_theme_support( 'customize-selective-refresh-widgets' );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ // Add support for custom line height controls.
+ add_theme_support( 'custom-line-height' );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> endif; // twentysixteen_setup()
</span><span class="cx" style="display: block; padding: 0 10px"> add_action( 'after_setup_theme', 'twentysixteen_setup' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -507,6 +510,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> require get_template_directory() . '/inc/template-tags.php';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Block Patterns.
+ */
+require get_template_directory() . '/inc/block-patterns.php';
+
+/**
</ins><span class="cx" style="display: block; padding: 0 10px"> * Customizer additions.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> require get_template_directory() . '/inc/customizer.php';
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentysixteenincblockpatternsphp"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-content/themes/twentysixteen/inc/block-patterns.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentysixteen/inc/block-patterns.php (rev 0)
+++ trunk/src/wp-content/themes/twentysixteen/inc/block-patterns.php 2020-11-12 21:12:32 UTC (rev 49583)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,156 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?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 -->',
+ )
+ );
+}
</ins><span class="cx" style="display: block; padding: 0 10px">Property changes on: trunk/src/wp-content/themes/twentysixteen/inc/block-patterns.php
</span><span class="cx" style="display: block; padding: 0 10px">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: svn:eol-style</h4></div>
<ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+native
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span><a id="trunksrcwpcontentthemestwentysixteenreadmetxt"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentysixteen/readme.txt</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentysixteen/readme.txt 2020-11-12 20:40:13 UTC (rev 49582)
+++ trunk/src/wp-content/themes/twentysixteen/readme.txt 2020-11-12 21:12:32 UTC (rev 49583)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4,7 +4,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> Version: 2.2
</span><span class="cx" style="display: block; padding: 0 10px"> License: GPLv2 or later
</span><span class="cx" style="display: block; padding: 0 10px"> License URI: http://www.gnu.org/licenses/gpl-2.0.html
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-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
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+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
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> == Description ==
</span><span class="cx" style="display: block; padding: 0 10px"> 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.
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentysixteenstylecss"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentysixteen/style.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentysixteen/style.css 2020-11-12 20:40:13 UTC (rev 49582)
+++ trunk/src/wp-content/themes/twentysixteen/style.css 2020-11-12 21:12:32 UTC (rev 49583)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -9,7 +9,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> Requires PHP: 5.2.4
</span><span class="cx" style="display: block; padding: 0 10px"> License: GNU General Public License v2 or later
</span><span class="cx" style="display: block; padding: 0 10px"> License URI: http://www.gnu.org/licenses/gpl-2.0.html
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-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
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+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
</ins><span class="cx" style="display: block; padding: 0 10px"> Text Domain: twentysixteen
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> This theme, like WordPress, is licensed under the GPL.
</span></span></pre>
</div>
</div>
</body>
</html>