From f5f46547a7cf9ac288dafba6cba5b3b4d2718d01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20S=C3=A1nchez?= Date: Tue, 24 Mar 2020 18:30:38 -0600 Subject: [PATCH 01/10] Add 'Hero and two columns" pattern --- lib/client-assets.php | 4 +--- lib/patterns/hero-and-two-columns.json | 5 +++++ 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 lib/patterns/hero-and-two-columns.json diff --git a/lib/client-assets.php b/lib/client-assets.php index 4d4ae4bb1e3b24..e73f7bc6c6f643 100644 --- a/lib/client-assets.php +++ b/lib/client-assets.php @@ -688,7 +688,5 @@ function gutenberg_extend_settings_custom_units( $settings ) { register_pattern( 'core/two-buttons', gutenberg_load_block_pattern( 'two-buttons' ) ); register_pattern( 'core/cover-abc', gutenberg_load_block_pattern( 'cover-abc' ) ); register_pattern( 'core/two-images', gutenberg_load_block_pattern( 'two-images' ) ); - register_pattern( 'core/hero-two-columns', gutenberg_load_block_pattern( 'hero-two-columns' ) ); - register_pattern( 'core/numbered-features', gutenberg_load_block_pattern( 'numbered-features' ) ); - register_pattern( 'core/its-time', gutenberg_load_block_pattern( 'its-time' ) ); + register_pattern( 'core/hero-and-two-columns', gutenberg_load_block_pattern( 'hero-and-two-columns' ) ); } diff --git a/lib/patterns/hero-and-two-columns.json b/lib/patterns/hero-and-two-columns.json new file mode 100644 index 00000000000000..9c4a11ad078086 --- /dev/null +++ b/lib/patterns/hero-and-two-columns.json @@ -0,0 +1,5 @@ +{ + "__file": "wp_block", + "title": "Hero and Two Columns", + "content": "\n
\n
\n

Easy and Accessible

\n
\n\n\n\n
\n
\n

Extend it with over 54,000 plugins to help your website meet your needs.

\n\n\n\n\n
\n\n\n\n
\n

Extend it with over 54,000 plugins to help your website meet your needs. Hundreds of thousands of developers and site owners trust it worldwide. Add an online store, galleries, mailing lists, forums, analytics, and much more.

\n\n\n\n

Hundreds of thousands of developers and site owners trust it worldwide. Add an online store, galleries, mailing lists, forums, analytics, and much more.

\n
\n
\n
\n" + } From bebe409283a2629b0b45789333928ad157c61096 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20S=C3=A1nchez?= Date: Mon, 30 Mar 2020 16:34:13 -0600 Subject: [PATCH 02/10] Update gradient --- lib/patterns/hero-and-two-columns.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/patterns/hero-and-two-columns.json b/lib/patterns/hero-and-two-columns.json index 9c4a11ad078086..eda87653b21908 100644 --- a/lib/patterns/hero-and-two-columns.json +++ b/lib/patterns/hero-and-two-columns.json @@ -1,5 +1,5 @@ { "__file": "wp_block", "title": "Hero and Two Columns", - "content": "\n
\n
\n

Easy and Accessible

\n
\n\n\n\n
\n
\n

Extend it with over 54,000 plugins to help your website meet your needs.

\n\n\n\n\n
\n\n\n\n
\n

Extend it with over 54,000 plugins to help your website meet your needs. Hundreds of thousands of developers and site owners trust it worldwide. Add an online store, galleries, mailing lists, forums, analytics, and much more.

\n\n\n\n

Hundreds of thousands of developers and site owners trust it worldwide. Add an online store, galleries, mailing lists, forums, analytics, and much more.

\n
\n
\n
\n" + "content": "\n
\n
\n

Easy and Accessible

\n
\n\n\n\n
\n
\n

Extend it with over 54,000 plugins to help your website meet your needs.

\n\n\n\n\n
\n\n\n\n
\n

Extend it with over 54,000 plugins to help your website meet your needs. Hundreds of thousands of developers and site owners trust it worldwide. Add an online store, galleries, mailing lists, forums, analytics, and much more.

\n\n\n\n

Hundreds of thousands of developers and site owners trust it worldwide. Add an online store, galleries, mailing lists, forums, analytics, and much more.

\n
\n
\n
\n\n" } From 652de5c27177330cfbfb03de5871d57c89a41fd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20S=C3=A1nchez?= Date: Wed, 8 Apr 2020 15:49:54 -0500 Subject: [PATCH 03/10] Updated font styles and spacing --- lib/patterns/hero-and-two-columns.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/patterns/hero-and-two-columns.json b/lib/patterns/hero-and-two-columns.json index eda87653b21908..b8e137c2fe4c78 100644 --- a/lib/patterns/hero-and-two-columns.json +++ b/lib/patterns/hero-and-two-columns.json @@ -1,5 +1,5 @@ { "__file": "wp_block", "title": "Hero and Two Columns", - "content": "\n
\n
\n

Easy and Accessible

\n
\n\n\n\n
\n
\n

Extend it with over 54,000 plugins to help your website meet your needs.

\n\n\n\n\n
\n\n\n\n
\n

Extend it with over 54,000 plugins to help your website meet your needs. Hundreds of thousands of developers and site owners trust it worldwide. Add an online store, galleries, mailing lists, forums, analytics, and much more.

\n\n\n\n

Hundreds of thousands of developers and site owners trust it worldwide. Add an online store, galleries, mailing lists, forums, analytics, and much more.

\n
\n
\n
\n\n" + "content": "\n
\n
\n

Easy and Accesible

\n
\n\n\n\n
\n
\n
\n\n\n\n

Extend it with over 54,000 plugins to help your website meet your needs.

\n\n\n\n\n
\n\n\n\n
\n
\n\n\n\n

Extend it with over 54,000 plugins to help your website meet your needs. Hundreds of thousands of developers and site owners trust it worldwide. Add an online store, galleries, mailing lists, forums, analytics, and much more.

\n\n\n\n

Hundreds of thousands of developers and site owners trust it worldwide. Add an online store, galleries, mailing lists, forums, analytics, and much more.

\n
\n
\n
\n" } From 21c87ddc8ef0ac893f2e166d7809e66ddb7444cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20S=C3=A1nchez?= Date: Mon, 4 May 2020 17:07:57 -0500 Subject: [PATCH 04/10] Change from json to php --- .../{hero-and-two-columns.json => hero-and-two-columns.php} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename lib/patterns/{hero-and-two-columns.json => hero-and-two-columns.php} (100%) diff --git a/lib/patterns/hero-and-two-columns.json b/lib/patterns/hero-and-two-columns.php similarity index 100% rename from lib/patterns/hero-and-two-columns.json rename to lib/patterns/hero-and-two-columns.php From 781d9d93cf2ac1968a036e471c5a7f0309db3b9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20S=C3=A1nchez?= Date: Mon, 4 May 2020 17:09:02 -0500 Subject: [PATCH 05/10] Rename pattern --- lib/patterns/{hero-and-two-columns.php => hero-right-column.php} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename lib/patterns/{hero-and-two-columns.php => hero-right-column.php} (100%) diff --git a/lib/patterns/hero-and-two-columns.php b/lib/patterns/hero-right-column.php similarity index 100% rename from lib/patterns/hero-and-two-columns.php rename to lib/patterns/hero-right-column.php From ce767f9cd7869c403d67e302d95a731e862838f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20S=C3=A1nchez?= Date: Mon, 4 May 2020 17:10:40 -0500 Subject: [PATCH 06/10] Register pattern --- lib/client-assets.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/client-assets.php b/lib/client-assets.php index e73f7bc6c6f643..b953fc2e2b03f5 100644 --- a/lib/client-assets.php +++ b/lib/client-assets.php @@ -689,4 +689,5 @@ function gutenberg_extend_settings_custom_units( $settings ) { register_pattern( 'core/cover-abc', gutenberg_load_block_pattern( 'cover-abc' ) ); register_pattern( 'core/two-images', gutenberg_load_block_pattern( 'two-images' ) ); register_pattern( 'core/hero-and-two-columns', gutenberg_load_block_pattern( 'hero-and-two-columns' ) ); + register_pattern( 'core/hero-and-two-columns', gutenberg_load_block_pattern( 'hero-right-column' ) ); } From fb521255f875798a6794f73bad310986ec4090c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20S=C3=A1nchez?= Date: Mon, 4 May 2020 17:11:01 -0500 Subject: [PATCH 07/10] Update pattern to php --- lib/patterns/hero-right-column.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/lib/patterns/hero-right-column.php b/lib/patterns/hero-right-column.php index b8e137c2fe4c78..19bf4e44fee4fb 100644 --- a/lib/patterns/hero-right-column.php +++ b/lib/patterns/hero-right-column.php @@ -1,5 +1,11 @@ -{ - "__file": "wp_block", - "title": "Hero and Two Columns", - "content": "\n
\n
\n

Easy and Accesible

\n
\n\n\n\n
\n
\n
\n\n\n\n

Extend it with over 54,000 plugins to help your website meet your needs.

\n\n\n\n\n
\n\n\n\n
\n
\n\n\n\n

Extend it with over 54,000 plugins to help your website meet your needs. Hundreds of thousands of developers and site owners trust it worldwide. Add an online store, galleries, mailing lists, forums, analytics, and much more.

\n\n\n\n

Hundreds of thousands of developers and site owners trust it worldwide. Add an online store, galleries, mailing lists, forums, analytics, and much more.

\n
\n
\n
\n" - } + __( 'Hero Right Column', 'gutenberg' ), + 'content' => "\n
\n
\n
\n

Easy & Accessible

\n
\n
\n\n\n\n
\n
\n\n\n\n
\n
\n\n\n\n

Extend it with over 54,000 plugins to help your website meet your needs. Hundreds of thousands of developers and site owners trust it worldwide. Add an online store, galleries, mailing lists, forums, analytics, and much more.

\n\n\n\n

Hundreds of thousands of developers and site owners trust it worldwide. Add an online store, galleries, mailing lists, forums, analytics, and much more.

\n\n\n\n
\n\n\n\n\n
\n
\n
\n", +); From c65112068f451c39cfe7437fc2919c41d586e9ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20S=C3=A1nchez?= Date: Mon, 4 May 2020 17:21:39 -0500 Subject: [PATCH 08/10] Fix naming on pattern registry --- lib/client-assets.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/client-assets.php b/lib/client-assets.php index b953fc2e2b03f5..21e52b8cb2cbef 100644 --- a/lib/client-assets.php +++ b/lib/client-assets.php @@ -688,6 +688,6 @@ function gutenberg_extend_settings_custom_units( $settings ) { register_pattern( 'core/two-buttons', gutenberg_load_block_pattern( 'two-buttons' ) ); register_pattern( 'core/cover-abc', gutenberg_load_block_pattern( 'cover-abc' ) ); register_pattern( 'core/two-images', gutenberg_load_block_pattern( 'two-images' ) ); - register_pattern( 'core/hero-and-two-columns', gutenberg_load_block_pattern( 'hero-and-two-columns' ) ); - register_pattern( 'core/hero-and-two-columns', gutenberg_load_block_pattern( 'hero-right-column' ) ); + register_pattern( 'core/hero-two-columns', gutenberg_load_block_pattern( 'hero-two-columns' ) ); + register_pattern( 'core/hero-right-column', gutenberg_load_block_pattern( 'hero-right-column' ) ); } From accbffb11e56a263312528b3e693cbca6899ad79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20S=C3=A1nchez?= Date: Thu, 7 May 2020 17:33:24 -0500 Subject: [PATCH 09/10] Fix line indentation --- lib/client-assets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client-assets.php b/lib/client-assets.php index c4eb8743a0614b..13a712843a9c38 100644 --- a/lib/client-assets.php +++ b/lib/client-assets.php @@ -692,6 +692,6 @@ function gutenberg_extend_settings_custom_units( $settings ) { register_block_pattern( 'core/hero-two-columns', gutenberg_load_block_pattern( 'hero-two-columns' ) ); register_block_pattern( 'core/numbered-features', gutenberg_load_block_pattern( 'numbered-features' ) ); register_block_pattern( 'core/its-time', gutenberg_load_block_pattern( 'its-time' ) ); - register_pattern( 'core/hero-right-column', gutenberg_load_block_pattern( 'hero-right-column' ) ); + register_pattern( 'core/hero-right-column', gutenberg_load_block_pattern( 'hero-right-column' ) ); register_block_pattern( 'core/testimonials', gutenberg_load_block_pattern( 'testimonials' ) ); } From c92ff21b73da053d9fc63970e98d96b86805e7e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20S=C3=A1nchez?= Date: Tue, 12 May 2020 15:40:47 -0500 Subject: [PATCH 10/10] Remove deprecated register_pattern --- lib/client-assets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client-assets.php b/lib/client-assets.php index 13a712843a9c38..5427ee3abfdf3c 100644 --- a/lib/client-assets.php +++ b/lib/client-assets.php @@ -692,6 +692,6 @@ function gutenberg_extend_settings_custom_units( $settings ) { register_block_pattern( 'core/hero-two-columns', gutenberg_load_block_pattern( 'hero-two-columns' ) ); register_block_pattern( 'core/numbered-features', gutenberg_load_block_pattern( 'numbered-features' ) ); register_block_pattern( 'core/its-time', gutenberg_load_block_pattern( 'its-time' ) ); - register_pattern( 'core/hero-right-column', gutenberg_load_block_pattern( 'hero-right-column' ) ); + register_block_pattern( 'core/hero-right-column', gutenberg_load_block_pattern( 'hero-right-column' ) ); register_block_pattern( 'core/testimonials', gutenberg_load_block_pattern( 'testimonials' ) ); }