From 592db8df431ff2b09ac5469d87fb873dfa845797 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alba=20Rinc=C3=B3n?= Date: Thu, 5 Oct 2023 13:49:26 +0200 Subject: [PATCH] Store Customization > Homepage Template 3: Review layout and spacing in between patterns (https://github.com/woocommerce/woocommerce-blocks/pull/11131) * Add padding and headers to patterns * Fix centering when GB enabled --- .../patterns/featured-category-triple.php | 12 ++--- ...collection-featured-products-5-columns.php | 32 +++++++----- .../product-query-product-gallery.php | 52 ++++++++++++------- .../src/Patterns/dictionary.json | 12 +++++ 4 files changed, 71 insertions(+), 37 deletions(-) diff --git a/plugins/woocommerce-blocks/patterns/featured-category-triple.php b/plugins/woocommerce-blocks/patterns/featured-category-triple.php index 62b9b03f878..0cecdeaa265 100644 --- a/plugins/woocommerce-blocks/patterns/featured-category-triple.php +++ b/plugins/woocommerce-blocks/patterns/featured-category-triple.php @@ -23,8 +23,8 @@ $image3 = PatternsHelper::get_image_url( $images, 2, 'images/pattern-placeholder <?php esc_attr_e( 'Placeholder image used to represent products being showcased in featured categories banner. 1 out of 3.', 'woo-gutenberg-products-block' ); ?>
- -

+ +

- -

+ +

- -

+ +

- + + +
+ + +

+ +

+
@@ -29,14 +35,16 @@ $content = PatternsHelper::get_pattern_content( 'woocommerce-blocks/product-coll
- -
- -
- - - + +
+ +
+ + + +
+
- +
- + diff --git a/plugins/woocommerce-blocks/patterns/product-query-product-gallery.php b/plugins/woocommerce-blocks/patterns/product-query-product-gallery.php index 869905cdbeb..a5c692cd404 100644 --- a/plugins/woocommerce-blocks/patterns/product-query-product-gallery.php +++ b/plugins/woocommerce-blocks/patterns/product-query-product-gallery.php @@ -5,31 +5,45 @@ * Categories: WooCommerce * Block Types: core/query/woocommerce/product-query */ +use Automattic\WooCommerce\Blocks\Patterns\PatternsHelper; + +$content = PatternsHelper::get_pattern_content( 'woocommerce-blocks/product-query-product-gallery' ); ?> - -
- - + +
+ +

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

- -
- + + + + + + + +

+ + +
+ +
+ diff --git a/plugins/woocommerce-blocks/src/Patterns/dictionary.json b/plugins/woocommerce-blocks/src/Patterns/dictionary.json index ff3b3f788fb..fa86ab94e63 100644 --- a/plugins/woocommerce-blocks/src/Patterns/dictionary.json +++ b/plugins/woocommerce-blocks/src/Patterns/dictionary.json @@ -355,6 +355,18 @@ ] } }, + { + "name": "Product Gallery", + "slug": "woocommerce-blocks/product-query-product-gallery", + "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",