diff --git a/patterns/banner.php b/patterns/banner.php index 5c4478b786a..35a31f0138a 100644 --- a/patterns/banner.php +++ b/patterns/banner.php @@ -8,6 +8,11 @@ use Automattic\WooCommerce\Blocks\Patterns\PatternsHelper; $content = PatternsHelper::get_pattern_content( 'woocommerce-blocks/banner' ); $images = PatternsHelper::get_pattern_images( 'woocommerce-blocks/banner' ); + +$banner_title = $content['titles'][0]['default'] ?? ''; +$banner_button = $content['buttons'][0]['default'] ?? ''; +$first_description = $content['descriptions'][0]['default'] ?? ''; +$second_description = $content['descriptions'][1]['default'] ?? ''; ?> @@ -15,15 +20,15 @@
+
-
+
- + @@ -31,7 +36,7 @@ diff --git a/patterns/discount-banner-with-image.php b/patterns/discount-banner-with-image.php index 5963ece1152..e7c5d794f40 100644 --- a/patterns/discount-banner-with-image.php +++ b/patterns/discount-banner-with-image.php @@ -8,6 +8,8 @@ use Automattic\WooCommerce\Blocks\Patterns\PatternsHelper; $content = PatternsHelper::get_pattern_content( 'woocommerce-blocks/discount-banner-with-image' ); $images = PatternsHelper::get_pattern_images( 'woocommerce-blocks/discount-banner-with-image' ); + +$description = $content['descriptions'][0]['default'] ?? ''; ?> @@ -25,7 +27,7 @@ - + diff --git a/patterns/discount-banner.php b/patterns/discount-banner.php index ce8bfcf5665..fac5a4d1971 100644 --- a/patterns/discount-banner.php +++ b/patterns/discount-banner.php @@ -7,7 +7,8 @@ use Automattic\WooCommerce\Blocks\Patterns\PatternsHelper; -$content = PatternsHelper::get_pattern_content( 'woocommerce-blocks/discount-banner' ); +$content = PatternsHelper::get_pattern_content( 'woocommerce-blocks/discount-banner' ); +$description = $content['descriptions'][0]['default'] ?? ''; ?> @@ -23,7 +24,7 @@ - + diff --git a/patterns/featured-category-cover-image.php b/patterns/featured-category-cover-image.php index 331f26c10ab..957fe159cad 100644 --- a/patterns/featured-category-cover-image.php +++ b/patterns/featured-category-cover-image.php @@ -10,6 +10,10 @@ $images = PatternsHelper::get_pattern_images( 'woocommerce-blocks/featured-category-cover-image' ); $image1 = PatternsHelper::get_image_url( $images, 0, 'images/pattern-placeholders/shop-jeans.png' ); + +$category_title = $content['titles'][0]['default'] ?? ''; +$description = $content['descriptions'][0]['default'] ?? ''; +$button = $content['buttons'][0]['default'] ?? ''; ?>
@@ -45,7 +49,7 @@
@@ -66,7 +70,7 @@
diff --git a/patterns/featured-products-fresh-and-tasty.php b/patterns/featured-products-fresh-and-tasty.php index 7f11f328eb8..60b814a6f2a 100644 --- a/patterns/featured-products-fresh-and-tasty.php +++ b/patterns/featured-products-fresh-and-tasty.php @@ -13,10 +13,15 @@ $image2 = PatternsHelper::get_image_url( $images, 1, 'images/pattern-placeholders/fresh-organic-tomatoes.png' ); $image3 = PatternsHelper::get_image_url( $images, 2, 'images/pattern-placeholders/fresh-lettuce-washed.png' ); $image4 = PatternsHelper::get_image_url( $images, 3, 'images/pattern-placeholders/russet-organic-potatoes.png' ); + +$first_title = $content['titles'][0]['default'] ?? ''; +$first_description = $content['descriptions'][0]['default'] ?? ''; +$second_description = $content['descriptions'][1]['default'] ?? ''; +$third_description = $content['descriptions'][2]['default'] ?? ''; ?> -
+ @@ -34,7 +39,7 @@+
- + @@ -62,11 +74,11 @@ -
+
- + @@ -74,11 +86,11 @@ -
+
- + @@ -86,11 +98,11 @@ -
+
- +
Get ready to start the season right. All the fan favorites in one place at the best price.
+ diff --git a/patterns/product-hero-2-col-2-row.php b/patterns/product-hero-2-col-2-row.php index 38bab760851..0a4f884354b 100644 --- a/patterns/product-hero-2-col-2-row.php +++ b/patterns/product-hero-2-col-2-row.php @@ -4,7 +4,23 @@ * Slug: woocommerce-blocks/product-hero-2-col-2-row * Categories: WooCommerce */ +use Automattic\WooCommerce\Blocks\Patterns\PatternsHelper; +$content = PatternsHelper::get_pattern_content( 'woocommerce-blocks/product-hero-2-col-2-row' ); +$images = PatternsHelper::get_pattern_images( 'woocommerce-blocks/product-hero-2-col-2-row' ); +$first_title = $content['titles'][0]['default'] ?? ''; +$second_title = $content['titles'][1]['default'] ?? ''; +$third_title = $content['titles'][2]['default'] ?? ''; +$fourth_title = $content['titles'][3]['default'] ?? ''; +$fifth_title = $content['titles'][4]['default'] ?? ''; + +$first_description = $content['descriptions'][0]['default'] ?? ''; +$second_description = $content['descriptions'][1]['default'] ?? ''; +$third_description = $content['descriptions'][2]['default'] ?? ''; +$fourth_description = $content['descriptions'][3]['default'] ?? ''; +$fifth_description = $content['descriptions'][4]['default'] ?? ''; + +$button = $content['buttons'][0]['default'] ?? ''; ?>+
diff --git a/patterns/social-follow-us-in-social-media.php b/patterns/social-follow-us-in-social-media.php index d67e2687270..b3bd672dd12 100644 --- a/patterns/social-follow-us-in-social-media.php +++ b/patterns/social-follow-us-in-social-media.php @@ -13,6 +13,8 @@ $image2 = PatternsHelper::get_image_url( $images, 1, 'images/pattern-placeholders/living-room.png' ); $image3 = PatternsHelper::get_image_url( $images, 2, 'images/pattern-placeholders/living-room-sofa.png' ); $image4 = PatternsHelper::get_image_url( $images, 3, 'images/pattern-placeholders/dining-room.png' ); + +$social_title = $content['titles'][0]['default'] ?? ''; ?> @@ -22,7 +24,7 @@
+
- + diff --git a/src/Patterns/dictionary.json b/src/Patterns/dictionary.json index 2abab1b8504..67959c9971c 100644 --- a/src/Patterns/dictionary.json +++ b/src/Patterns/dictionary.json @@ -91,18 +91,6 @@ ] } }, - { - "name": "Featured Products 5-Item Grid", - "slug": "woocommerce-blocks/featured-products-5-item-grid", - "content": { - "titles": [ - { - "default": "Shop new arrivals", - "ai_prompt": "The title of the featured products" - } - ] - } - }, { "name": "Featured Products: Fresh & Tasty", "slug": "woocommerce-blocks/featured-products-fresh-and-tasty", @@ -407,7 +395,7 @@ }, { "name": "Featured Products 2 Columns", - "slug": "woocommerce-blocks/featured-products-2-columns", + "slug": "woocommerce-blocks/featured-products-2-cols", "content": { "titles": [ { @@ -431,7 +419,7 @@ }, { "name": "Product Hero 2 Column 2 Row", - "slug": "woocommerce-blocks/product-hero-2-column-2-row", + "slug": "woocommerce-blocks/product-hero-2-col-2-row", "images_total": 2, "images_format": "landscape", "content": {