diff --git a/wp-content/themes/twentyten/block-patterns.php b/wp-content/themes/twentyten/block-patterns.php new file mode 100644 index 0000000000..57460dab28 --- /dev/null +++ b/wp-content/themes/twentyten/block-patterns.php @@ -0,0 +1,61 @@ + esc_html__( 'Twenty Ten', 'twentyten' ) ) + ); +} + +/** + * Register Block Patterns. + */ +if ( function_exists( 'register_block_pattern' ) ) { + + // Image with large heading and paragraph. + register_block_pattern( + 'twentyten/intro', + array( + 'title' => esc_html__( 'Introduction', 'twentyten' ), + 'categories' => array( 'twentyten' ), + 'viewportWidth' => 700, + 'content' => '
' . esc_attr__( 'A red barn with a white roof in a field.', 'twentyten' ) . '
' . esc_html__( 'An old barn we passed on the drive', 'twentyten' ) . '

' . esc_html__( 'A Weekend Away', 'twentyten' ) . '

' . esc_html__( 'It’s amazing what a good weekend can do. After a tough couple weeks at work, I knew I needed to get away and be in nature. My partner and I decided to take a long weekend and stay in a cabin in the woods. We packed up after work on Friday and drove out into the country, passing through fields full of horses, old farms, and quaint little town squares. It was an idyllic drive. Eventually, we reached our destination and unpacked the car. We couldn’t wait to cook up a simple dinner and then relax by the fireplace.', 'twentyten' ) . '

', + ) + ); + + // Cover block with a pullquote. + register_block_pattern( + 'twentyten/highlighted-quote', + array( + 'title' => esc_html__( 'Highlighted Quote', 'twentyten' ), + 'categories' => array( 'twentyten' ), + 'viewportWidth' => 700, + 'content' => '

' . esc_html__( '"Take time off… The world will not fall apart without you."', 'twentyten' ) . '

' . esc_html__( '— Malebo Sephodi', 'twentyten' ) . '
', + ) + ); + + // Column blocks featuring two images with text on the side. + register_block_pattern( + 'twentyten/alternating-images', + array( + 'title' => esc_html__( 'Alternating Images', 'twentyten' ), + 'categories' => array( 'twentyten' ), + 'viewportWidth' => 700, + 'content' => '
' . esc_attr__( 'A lake with several boats docked. The sun is rising behind mountains in the background.', 'twentyten' ) . '
' . esc_html__( 'The lake at 6:54 AM', 'twentyten' ) . '

' . esc_html__( 'Nearby our cabin was a lake. The sunrise looked beautiful as it rose over the hills beyond the water, reflecting down onto the gentle morning waves. I sat on the dock and drank a cup of coffee, enjoying the cool air on my skin. The coffee kept me warm inside.', 'twentyten' ) . '

' . esc_html__( 'Later that night, we went back to the lake and sat by the shore. It felt different at night; quieter, as if all of nature had gone to sleep for a little while. The only noises were the chirp of crickets and the soft splash of the waves lapping at the shore. What a beautiful way to end the day.', 'twentyten' ) . '

' . esc_attr__( 'A lake at night, with Adirondack chairs in the foreground. The sun sets in the background.', 'twentyten' ) . '
' . esc_html__( 'Relaxing at the lake after dinner', 'twentyten' ) . '
', + ) + ); +} diff --git a/wp-content/themes/twentyten/functions.php b/wp-content/themes/twentyten/functions.php index 68c4c5101e..efa7e5f8f9 100644 --- a/wp-content/themes/twentyten/functions.php +++ b/wp-content/themes/twentyten/functions.php @@ -739,6 +739,9 @@ function twentyten_block_editor_styles() { } add_action( 'enqueue_block_editor_assets', 'twentyten_block_editor_styles' ); +// Block Patterns. +require get_stylesheet_directory() . '/block-patterns.php'; + if ( ! function_exists( 'wp_body_open' ) ) : /** * Fire the wp_body_open action. diff --git a/wp-content/themes/twentyten/images/patterns/pattern-barn.jpg b/wp-content/themes/twentyten/images/patterns/pattern-barn.jpg new file mode 100644 index 0000000000..9a53476055 Binary files /dev/null and b/wp-content/themes/twentyten/images/patterns/pattern-barn.jpg differ diff --git a/wp-content/themes/twentyten/images/patterns/pattern-dock.jpg b/wp-content/themes/twentyten/images/patterns/pattern-dock.jpg new file mode 100644 index 0000000000..58ae59ec80 Binary files /dev/null and b/wp-content/themes/twentyten/images/patterns/pattern-dock.jpg differ diff --git a/wp-content/themes/twentyten/images/patterns/pattern-lake.jpg b/wp-content/themes/twentyten/images/patterns/pattern-lake.jpg new file mode 100644 index 0000000000..c11cc8041c Binary files /dev/null and b/wp-content/themes/twentyten/images/patterns/pattern-lake.jpg differ diff --git a/wp-content/themes/twentyten/readme.txt b/wp-content/themes/twentyten/readme.txt index b742e12d05..2a92b3981a 100644 --- a/wp-content/themes/twentyten/readme.txt +++ b/wp-content/themes/twentyten/readme.txt @@ -4,7 +4,7 @@ Tested up to: 5.8 Stable tag: 3.3 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html -Tags: blog, two-columns, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu, flexible-header, featured-images, footer-widgets, featured-image-header +Tags: blog, two-columns, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu, flexible-header, featured-images, footer-widgets, featured-image-header, block-patterns == Description == The 2010 theme for WordPress is stylish, customizable, simple, and readable -- make it yours with a custom menu, header image, and background. Twenty Ten supports six widgetized areas (two in the sidebar, four in the footer) and featured images (thumbnails for gallery posts and custom header images for posts and pages). It includes stylesheets for print and the admin Visual Editor, special styles for posts in the "Asides" and "Gallery" categories, and has an optional one-column page template that removes the sidebar. @@ -34,6 +34,12 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +Images + +“Boats Water Photo” by Bonnie Moreland. CC0. https://stocksnap.io/photo/boats-water-JZETH8NO7I +“Lake Sunset Photo” by Bonnie Moreland. CC0. https://stocksnap.io/photo/lake-sunset-XYK6WMBSOJ +“Old Barn Photo” by Bonnie Moreland. CC0. https://stocksnap.io/photo/old-barn-4HMJ2KQVX9 + == Changelog == = 3.3 = diff --git a/wp-content/themes/twentyten/style.css b/wp-content/themes/twentyten/style.css index e65ab4bdad..762a3ab531 100644 --- a/wp-content/themes/twentyten/style.css +++ b/wp-content/themes/twentyten/style.css @@ -9,7 +9,7 @@ Requires at least: 3.0 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: blog, two-columns, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu, flexible-header, featured-images, footer-widgets, featured-image-header +Tags: blog, two-columns, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu, flexible-header, featured-images, footer-widgets, featured-image-header, block-patterns Text Domain: twentyten */ diff --git a/wp-includes/version.php b/wp-includes/version.php index 40b07feb35..304eea9638 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-51105'; +$wp_version = '5.8-alpha-51106'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.