From 7162c623485ab475bd91d2f2f0586cfe955a59bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alba=20Rinc=C3=B3n?= Date: Wed, 4 Oct 2023 13:31:28 +0200 Subject: [PATCH 1/5] Add titles to patterns and set the aligment to Wide --- patterns/product-query-1-1-image-4-column-products-row.php | 0 patterns/product-query-minimal-5-column-products-row.php | 0 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 patterns/product-query-1-1-image-4-column-products-row.php create mode 100644 patterns/product-query-minimal-5-column-products-row.php diff --git a/patterns/product-query-1-1-image-4-column-products-row.php b/patterns/product-query-1-1-image-4-column-products-row.php new file mode 100644 index 00000000000..e69de29bb2d diff --git a/patterns/product-query-minimal-5-column-products-row.php b/patterns/product-query-minimal-5-column-products-row.php new file mode 100644 index 00000000000..e69de29bb2d From 1a7b913f82fe129be71c03e2f7717f6ddaa013e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alba=20Rinc=C3=B3n?= Date: Thu, 5 Oct 2023 10:52:46 +0200 Subject: [PATCH 2/5] Replace product query patterns with product collection ones --- patterns/product-query-1-1-image-4-column-products-row.php | 0 patterns/product-query-minimal-5-column-products-row.php | 0 2 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 patterns/product-query-1-1-image-4-column-products-row.php delete mode 100644 patterns/product-query-minimal-5-column-products-row.php diff --git a/patterns/product-query-1-1-image-4-column-products-row.php b/patterns/product-query-1-1-image-4-column-products-row.php deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/patterns/product-query-minimal-5-column-products-row.php b/patterns/product-query-minimal-5-column-products-row.php deleted file mode 100644 index e69de29bb2d..00000000000 From fbcfba6772b43b4d5be8bf5e1c11c64bf2ef8151 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alba=20Rinc=C3=B3n?= Date: Thu, 5 Oct 2023 12:28:07 +0200 Subject: [PATCH 3/5] Add group and spacing to the 3-cols and social patterns --- patterns/product-collection-3-columns.php | 50 ++++--- patterns/social-follow-us-in-social-media.php | 122 +++++++++--------- src/Patterns/dictionary.json | 12 ++ 3 files changed, 106 insertions(+), 78 deletions(-) diff --git a/patterns/product-collection-3-columns.php b/patterns/product-collection-3-columns.php index f20a4a37b9f..f0a438a8fd2 100644 --- a/patterns/product-collection-3-columns.php +++ b/patterns/product-collection-3-columns.php @@ -4,31 +4,43 @@ * Slug: woocommerce-blocks/product-collection-3-columns * Categories: WooCommerce */ +use Automattic\WooCommerce\Blocks\Patterns\PatternsHelper; + +$content = PatternsHelper::get_pattern_content( 'woocommerce-blocks/product-collection-3-columns' ); ?> - -
- - - + +
+ +

+ + + +
+ + + + - + - - + + - - + + - + - - + + - - -

- - + + +

+ + +
+
- + diff --git a/patterns/social-follow-us-in-social-media.php b/patterns/social-follow-us-in-social-media.php index d90a2343167..8a6a6c60310 100644 --- a/patterns/social-follow-us-in-social-media.php +++ b/patterns/social-follow-us-in-social-media.php @@ -15,73 +15,77 @@ $image4 = PatternsHelper::get_image_url( $images, 3, 'images/pattern-placeholders/dining-room.png' ); ?> - -
- -
- -

-
- + +
+ +
+ +
+ +

+
+ - -
- - + +
+
- -
- + - -
- -
- -
- <?php esc_attr_e( 'Placeholder image used to represent products being showcased under the social media icons. 1 out of 4.', 'woo-gutenberg-products-block' ); ?> -
- -
- + +
+ +
+ +
+ <?php esc_attr_e( 'Placeholder image used to represent products being showcased under the social media icons. 1 out of 4.', 'woo-gutenberg-products-block' ); ?> +
+ +
+ - -
- -
- <?php esc_attr_e( 'Placeholder image used to represent products being showcased under the social media icons. 2 out of 4.', 'woo-gutenberg-products-block' ); ?> -
- -
- + +
+ +
+ <?php esc_attr_e( 'Placeholder image used to represent products being showcased under the social media icons. 2 out of 4.', 'woo-gutenberg-products-block' ); ?> +
+ +
+ - -
- -
- <?php esc_attr_e( 'Placeholder image used to represent products being showcased under the social media icons. 3 out of 4.', 'woo-gutenberg-products-block' ); ?> -
- -
- + +
+ +
+ <?php esc_attr_e( 'Placeholder image used to represent products being showcased under the social media icons. 3 out of 4.', 'woo-gutenberg-products-block' ); ?> +
+ +
+ - -
- -
- <?php esc_attr_e( 'Placeholder image used to represent products being showcased under the social media icons. 4 out of 4.', 'woo-gutenberg-products-block' ); ?> -
- + +
+ +
+ <?php esc_attr_e( 'Placeholder image used to represent products being showcased under the social media icons. 4 out of 4.', 'woo-gutenberg-products-block' ); ?> +
+ +
+
- +
- + diff --git a/src/Patterns/dictionary.json b/src/Patterns/dictionary.json index fa86ab94e63..cd539dfb6e2 100644 --- a/src/Patterns/dictionary.json +++ b/src/Patterns/dictionary.json @@ -367,6 +367,18 @@ ] } }, + { + "name": "Product Collection 3 Columns", + "slug": "woocommerce-blocks/product-collection-3-columns", + "content": { + "titles": [ + { + "default": "Our newest arrivals", + "ai_prompt": "An impact phrase that advertises the displayed product collection" + } + ] + } + }, { "name": "Product Collection 4 Columns", "slug": "woocommerce-blocks/product-collection-4-columns", From 201a4a119329eb81157ef23c763f0fbbacc9338c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alba=20Rinc=C3=B3n?= Date: Thu, 5 Oct 2023 14:18:21 +0200 Subject: [PATCH 4/5] Fix alignment issue in the testimonals 3 in the editor --- patterns/testimonials-3-columns.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/patterns/testimonials-3-columns.php b/patterns/testimonials-3-columns.php index 1c11ddbca03..030d59769c3 100644 --- a/patterns/testimonials-3-columns.php +++ b/patterns/testimonials-3-columns.php @@ -8,15 +8,14 @@ use Automattic\WooCommerce\Blocks\Patterns\PatternsHelper; $content = PatternsHelper::get_pattern_content( 'woocommerce-blocks/testimonials-3-columns' ); ?> - - -
- -

+ +
+ +

- -
+ +
From 47ed7b53b838d6da4c6ea6a17465cd21af404a12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alba=20Rinc=C3=B3n?= Date: Thu, 5 Oct 2023 14:25:17 +0200 Subject: [PATCH 5/5] Add padding to the featured catergory triple pattern --- patterns/featured-category-triple.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patterns/featured-category-triple.php b/patterns/featured-category-triple.php index 0cecdeaa265..31bdb3ac9fb 100644 --- a/patterns/featured-category-triple.php +++ b/patterns/featured-category-triple.php @@ -14,8 +14,8 @@ $image3 = PatternsHelper::get_image_url( $images, 2, 'images/pattern-placeholders/dish-food-baking-dessert-bread-bakery.png' ); ?> - -
+ +