From 5d42239a18f08304a79410a8a9b5940668edc7e1 Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Mon, 5 Apr 2021 11:08:28 -0400 Subject: [PATCH 1/4] Add group wrappers to Query block patterns. --- lib/block-patterns.php | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/lib/block-patterns.php b/lib/block-patterns.php index da42a0b25f8aec..acef0950df124d 100644 --- a/lib/block-patterns.php +++ b/lib/block-patterns.php @@ -16,13 +16,15 @@ 'categories' => array( 'Query' ), 'content' => ' - + +

- +
+ ', ) @@ -36,6 +38,8 @@ 'categories' => array( 'Query' ), 'content' => ' + +
@@ -44,7 +48,8 @@
- +
+ ', ) @@ -58,6 +63,8 @@ 'categories' => array( 'Query' ), 'content' => ' + +
@@ -65,7 +72,8 @@
- +
+ ', ) From d1d5817ac858cc1b5b60d9803f7e56980ac6df2d Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Wed, 7 Jul 2021 14:58:19 -0400 Subject: [PATCH 2/4] Update patterns to use layout controls as needed. --- lib/block-patterns.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/block-patterns.php b/lib/block-patterns.php index 9baf799859fcfb..812ed3274ff4e3 100644 --- a/lib/block-patterns.php +++ b/lib/block-patterns.php @@ -22,13 +22,16 @@ function register_gutenberg_patterns() { 'content' => '
+ +

- +
+
', @@ -40,6 +43,8 @@ function register_gutenberg_patterns() { 'content' => '
+ +
@@ -48,7 +53,8 @@ function register_gutenberg_patterns() {
- +
+
', @@ -57,7 +63,7 @@ function register_gutenberg_patterns() { 'title' => __( 'Small image and title', 'gutenberg' ), 'blockTypes' => array( 'core/query' ), 'categories' => array( 'query' ), - 'content' => ' + 'content' => '
From 5d83e3776ebe1b54a0508a972ee082e14945069e Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Wed, 7 Jul 2021 15:06:20 -0400 Subject: [PATCH 3/4] Remove unnecessary group wrapper. --- lib/block-patterns.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/block-patterns.php b/lib/block-patterns.php index 812ed3274ff4e3..d072a805a67d3d 100644 --- a/lib/block-patterns.php +++ b/lib/block-patterns.php @@ -40,21 +40,18 @@ function register_gutenberg_patterns() { 'title' => __( 'Image at left', 'gutenberg' ), 'blockTypes' => array( 'core/query' ), 'categories' => array( 'query' ), - 'content' => ' + 'content' => '
- - -
- -
+ + +
-
- +
', From 2006567bf96dd4204d7a88eaab2d5c41f661c7d1 Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Mon, 12 Jul 2021 14:43:52 -0400 Subject: [PATCH 4/4] Set alignfull on the parent containers as necessary. --- lib/block-patterns.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/block-patterns.php b/lib/block-patterns.php index d072a805a67d3d..2502fc1f878f64 100644 --- a/lib/block-patterns.php +++ b/lib/block-patterns.php @@ -19,8 +19,8 @@ function register_gutenberg_patterns() { 'title' => __( 'Standard', 'gutenberg' ), 'blockTypes' => array( 'core/query' ), 'categories' => array( 'query' ), - 'content' => ' -
+ 'content' => ' +
@@ -40,8 +40,8 @@ function register_gutenberg_patterns() { 'title' => __( 'Image at left', 'gutenberg' ), 'blockTypes' => array( 'core/query' ), 'categories' => array( 'query' ), - 'content' => ' -
+ 'content' => ' +
@@ -79,8 +79,8 @@ function register_gutenberg_patterns() { 'title' => __( 'Grid', 'gutenberg' ), 'blockTypes' => array( 'core/query' ), 'categories' => array( 'query' ), - 'content' => ' -
+ 'content' => ' +
@@ -119,8 +119,8 @@ function register_gutenberg_patterns() { 'title' => __( 'Offset', 'gutenberg' ), 'blockTypes' => array( 'core/query' ), 'categories' => array( 'query' ), - 'content' => ' -
+ 'content' => ' +