From bf02276a173855bc36326ea5f9dca54f550446e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helen=20Hou-Sand=C3=AD?= Date: Tue, 27 Oct 2020 21:15:12 +0000 Subject: [PATCH] Bundled Themes: Introduce block patterns for Twenty Nineteen. Including some props I missed on the commit for Twenty Twenty, I am sorry. Props: kjellr, beafialho, melchoyce, ryelle, jffng, bridgetwillard. Fixes #51099. Built from https://develop.svn.wordpress.org/trunk@49348 git-svn-id: http://core.svn.wordpress.org/trunk@49108 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../themes/twentynineteen/functions.php | 8 + .../twentynineteen/inc/block-patterns.php | 201 ++++++++++++++++++ wp-content/themes/twentynineteen/readme.txt | 6 + .../themes/twentynineteen/style-rtl.css | 6 + wp-content/themes/twentynineteen/style.css | 6 + wp-content/themes/twentynineteen/style.scss | 6 + wp-includes/version.php | 2 +- 7 files changed, 234 insertions(+), 1 deletion(-) create mode 100644 wp-content/themes/twentynineteen/inc/block-patterns.php diff --git a/wp-content/themes/twentynineteen/functions.php b/wp-content/themes/twentynineteen/functions.php index 7751e1b17b..ed23d3e0d9 100644 --- a/wp-content/themes/twentynineteen/functions.php +++ b/wp-content/themes/twentynineteen/functions.php @@ -175,6 +175,9 @@ if ( ! function_exists( 'twentynineteen_setup' ) ) : // Add support for responsive embedded content. add_theme_support( 'responsive-embeds' ); + + // Add support for custom line height. + add_theme_support( 'custom-line-height' ); } endif; add_action( 'after_setup_theme', 'twentynineteen_setup' ); @@ -329,3 +332,8 @@ require get_template_directory() . '/inc/template-tags.php'; * Customizer additions. */ require get_template_directory() . '/inc/customizer.php'; + +/** + * Block Patterns. + */ +require get_template_directory() . '/inc/block-patterns.php'; diff --git a/wp-content/themes/twentynineteen/inc/block-patterns.php b/wp-content/themes/twentynineteen/inc/block-patterns.php new file mode 100644 index 0000000000..a65378e06c --- /dev/null +++ b/wp-content/themes/twentynineteen/inc/block-patterns.php @@ -0,0 +1,201 @@ + esc_html__( 'Twenty Nineteen', 'twentynineteen' ) ) + ); +} + +/** + * Register Block Patterns. + */ +if ( function_exists( 'register_block_pattern' ) ) { + + // About. + register_block_pattern( + 'twentynineteen/about', + array( + 'title' => esc_html__( 'About', 'twentynineteen' ), + 'categories' => array( 'twentynineteen' ), + 'content' => implode( + '', + array( + '', + '

' . esc_html__( 'Advocating for Businesses and Entrepreneurs since 2014', 'twentynineteen' ) . '

', + '', + '', + '

' . esc_html__( 'Eva Young Consulting was founded in 2014 to meet the needs of small businesses in the San Francisco Bay Area. We help startups define a clear brand identity and digital strategy that will carry them through their financing rounds and scale as their business grows. Discover how we can boost your brand with a unique and powerful digital marketing strategy.', 'twentynineteen' ) . '

', + '', + '', + '
', + '', + '
', + '', + ) + ), + ) + ); + + // Get In Touch. + register_block_pattern( + 'twentynineteen/get-in-touch', + array( + 'title' => esc_html__( 'Get In Touch', 'twentynineteen' ), + 'categories' => array( 'twentynineteen' ), + 'content' => implode( + '', + array( + '', + '

' . esc_html__( 'Get In Touch', 'twentynineteen' ) . '

', + '', + '', + '
', + '
', + '

' . esc_html__( '20 Cooper Avenue', 'twentynineteen' ) . '
' . esc_html__( 'New York, New York 10023', 'twentynineteen' ) . '

', + '
', + '', + '', + '
', + '

' . esc_html__( '(555) 555-5555', 'twentynineteen' ) . '
' . esc_html__( 'example@example.com', 'twentynineteen' ) . '

', + '
', + '
', + '', + '', + '
', + '', + '
', + '', + ) + ), + ) + ); + + // Services. + register_block_pattern( + 'twentynineteen/services', + array( + 'title' => esc_html__( 'Services', 'twentynineteen' ), + 'categories' => array( 'twentynineteen' ), + 'content' => implode( + '', + array( + '', + '

' . esc_html__( 'Services', 'twentynineteen' ) . '

', + '', + '', + '
', + '
', + '
' . esc_html__( 'Gradient', 'twentynineteen' ) . '
', + '

' . esc_html__( 'Website Design', 'twentynineteen' ) . '

', + '
', + '', + '', + '
' . esc_html__( 'Gradient', 'twentynineteen' ) . '
', + '

' . esc_html__( 'Mobile', 'twentynineteen' ) . '

', + '
', + '', + '', + '
' . esc_html__( 'Gradient', 'twentynineteen' ) . '
', + '

' . esc_html__( 'Social Media', 'twentynineteen' ) . '

', + '
', + '
', + '', + '', + '
', + '
' . esc_html__( 'Gradient', 'twentynineteen' ) . '
', + '

' . esc_html__( 'Marketing', 'twentynineteen' ) . '

', + '
', + '', + '', + '
' . esc_html__( 'Gradient', 'twentynineteen' ) . '
', + '

' . esc_html__( 'Copywriting', 'twentynineteen' ) . '

', + '
', + '', + '', + '
' . esc_html__( 'Gradient', 'twentynineteen' ) . '
', + '

' . esc_html__( 'Content Strategy', 'twentynineteen' ) . '

', + '
', + '
', + '
', + '', + ) + ), + ) + ); + + // Team. + register_block_pattern( + 'twentynineteen/team', + array( + 'title' => esc_html__( 'Team', 'twentynineteen' ), + 'categories' => array( 'twentynineteen' ), + 'viewportWidth' => 1400, + 'content' => implode( + '', + array( + '', + '

' . esc_html__( 'Team', 'twentynineteen' ) . '

', + '', + '', + '
' . esc_html__( 'Gradient', 'twentynineteen' ) . '
', + '

' . esc_html__( 'Eva Young', 'twentynineteen' ) . '

', + '', + '', + '

' . esc_html__( 'Eva Young grew up working alongside her parents at their restaurant in Queens, NY. She opened Eva Young Consulting in 2014 to help small businesses like her parents’ restaurant adapt to the digital age.', 'twentynineteen' ) . '

', + '
', + '', + '', + '
' . esc_html__( 'Gradient', 'twentynineteen' ) . '
', + '

' . esc_html__( 'Doug Watson', 'twentynineteen' ) . '

', + '', + '', + '

' . esc_html__( 'Oddly enough, Doug Watson also grew up working alongside his parents at a family-owned restaurant in Queens, NY. He  worked on digital campaigns for Fortune 500 Companies before joining Eva Green Consulting.', 'twentynineteen' ) . '

', + '
', + '', + ) + ), + ) + ); + + // What We Do. + register_block_pattern( + 'twentynineteen/what-we-do', + array( + 'title' => esc_html__( 'What We Do', 'twentynineteen' ), + 'categories' => array( 'twentynineteen' ), + 'viewportWidth' => 1400, + 'content' => implode( + '', + array( + '', + '

' . esc_html__( 'What We Do', 'twentynineteen' ) . '

', + '', + '', + '

' . esc_html__( 'Redefine brands', 'twentynineteen' ) . '

' . esc_html__( 'We help startups define (or refine) a clear brand identity.', 'twentynineteen' ) . '
', + '', + '', + '

' . esc_html__( 'Activate new customers', 'twentynineteen' ) . '

' . esc_html__( 'We help businesses grow.', 'twentynineteen' ) . '
', + '', + '', + '

' . esc_html__( 'Spark interest on social media', 'twentynineteen' ) . '

' . esc_html__( 'We help companies communicate with their customers.', 'twentynineteen' ) . '
', + '', + ) + ), + ) + ); +} diff --git a/wp-content/themes/twentynineteen/readme.txt b/wp-content/themes/twentynineteen/readme.txt index 01f001f855..bde4ac8b24 100644 --- a/wp-content/themes/twentynineteen/readme.txt +++ b/wp-content/themes/twentynineteen/readme.txt @@ -82,3 +82,9 @@ Initial release == Resources == * normalize.css, © 2012-2018 Nicolas Gallagher and Jonathan Neal, MIT * Underscores, © 2012-2019 Automattic, Inc., GNU GPL v2 or later +* Bundled block pattern images: + * Abstract Background by HD Wallpapers, CC0. https://stocksnap.io/photo/abstract-background-0SRRVNMKBX + * Abstract Waves by HD Wallpapers, CC0. https://stocksnap.io/photo/abstract-waves-0KREGLTZQ3 + * Abstract Bokeh by HD Wallpapers, CC0. https://stocksnap.io/photo/abstract-bokeh-P4KVZBMQ6L + * Colorful Bokeh by HD Wallpapers, CC0. https://stocksnap.io/photo/colorful-bokeh-VN4G84GL8H + diff --git a/wp-content/themes/twentynineteen/style-rtl.css b/wp-content/themes/twentynineteen/style-rtl.css index e68150f4e5..929019e234 100644 --- a/wp-content/themes/twentynineteen/style-rtl.css +++ b/wp-content/themes/twentynineteen/style-rtl.css @@ -21,6 +21,12 @@ Underscores is distributed under the terms of the GNU GPL v2 or later. Normalizing styles have been helped along thanks to the fine work of Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/ + +Bundled block pattern images: +Abstract Background by HD Wallpapers, CC0. https://stocksnap.io/photo/abstract-background-0SRRVNMKBX +Abstract Waves by HD Wallpapers, CC0. https://stocksnap.io/photo/abstract-waves-0KREGLTZQ3 +Abstract Bokeh by HD Wallpapers, CC0. https://stocksnap.io/photo/abstract-bokeh-P4KVZBMQ6L +Colorful Bokeh by HD Wallpapers, CC0. https://stocksnap.io/photo/colorful-bokeh-VN4G84GL8H */ /*-------------------------------------------------------------- >>> TABLE OF CONTENTS: diff --git a/wp-content/themes/twentynineteen/style.css b/wp-content/themes/twentynineteen/style.css index fe34abed4d..2b753ab245 100644 --- a/wp-content/themes/twentynineteen/style.css +++ b/wp-content/themes/twentynineteen/style.css @@ -21,6 +21,12 @@ Underscores is distributed under the terms of the GNU GPL v2 or later. Normalizing styles have been helped along thanks to the fine work of Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/ + +Bundled block pattern images: +Abstract Background by HD Wallpapers, CC0. https://stocksnap.io/photo/abstract-background-0SRRVNMKBX +Abstract Waves by HD Wallpapers, CC0. https://stocksnap.io/photo/abstract-waves-0KREGLTZQ3 +Abstract Bokeh by HD Wallpapers, CC0. https://stocksnap.io/photo/abstract-bokeh-P4KVZBMQ6L +Colorful Bokeh by HD Wallpapers, CC0. https://stocksnap.io/photo/colorful-bokeh-VN4G84GL8H */ /*-------------------------------------------------------------- >>> TABLE OF CONTENTS: diff --git a/wp-content/themes/twentynineteen/style.scss b/wp-content/themes/twentynineteen/style.scss index bd1f3f733a..600214b025 100644 --- a/wp-content/themes/twentynineteen/style.scss +++ b/wp-content/themes/twentynineteen/style.scss @@ -20,6 +20,12 @@ Underscores is distributed under the terms of the GNU GPL v2 or later. Normalizing styles have been helped along thanks to the fine work of Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/ + +Bundled block pattern images: +Abstract Background by HD Wallpapers, CC0. https://stocksnap.io/photo/abstract-background-0SRRVNMKBX +Abstract Waves by HD Wallpapers, CC0. https://stocksnap.io/photo/abstract-waves-0KREGLTZQ3 +Abstract Bokeh by HD Wallpapers, CC0. https://stocksnap.io/photo/abstract-bokeh-P4KVZBMQ6L +Colorful Bokeh by HD Wallpapers, CC0. https://stocksnap.io/photo/colorful-bokeh-VN4G84GL8H */ /*-------------------------------------------------------------- diff --git a/wp-includes/version.php b/wp-includes/version.php index 1dcbd49be8..87579be70a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-beta1-49347'; +$wp_version = '5.6-beta1-49348'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.