banner.php
1 year ago
coming-soon-entire-site.php
1 year ago
coming-soon-store-only.php
1 year ago
coming-soon.php
1 year ago
content-right-image-left.php
1 year ago
featured-category-cover-image.php
1 year ago
featured-category-triple.php
1 year ago
filters.php
1 year ago
footer-large.php
2 years ago
footer-simple-menu.php
2 years ago
footer-with-3-menus.php
2 years ago
four-image-grid-content-left.php
1 year ago
header-centered-pattern.php
1 year ago
header-essential.php
1 year ago
header-large.php
1 year ago
header-minimal.php
1 year ago
heading-with-three-columns-of-content-with-link.php
1 year ago
hero-product-3-split.php
1 year ago
hero-product-chessboard.php
1 year ago
hero-product-split.php
1 year ago
intro-centered-content-with-image-below.php
1 year ago
just-arrived-full-hero.php
1 year ago
no-products-found-filters.php
1 year ago
no-products-found.php
2 years ago
product-collection-3-columns.php
2 years ago
product-collection-4-columns.php
1 year ago
product-collection-5-columns.php
1 year ago
product-collection-featured-products-5-columns.php
1 year ago
product-query-product-gallery.php
1 year ago
product-search-form.php
1 year ago
related-products.php
2 years ago
social-follow-us-in-social-media.php
1 year ago
testimonials-3-columns.php
1 year ago
testimonials-single.php
1 year ago
three-columns-with-images-and-content.php
1 year ago
intro-centered-content-with-image-below.php
50 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Title: Centered content with image below |
| 4 | * Slug: woocommerce-blocks/centered-content-with-image-below |
| 5 | * Categories: WooCommerce, Intro |
| 6 | */ |
| 7 | |
| 8 | declare(strict_types=1); |
| 9 | use Automattic\WooCommerce\Blocks\AIContent\PatternsHelper; |
| 10 | |
| 11 | |
| 12 | $header = __( 'Find your shade', 'woocommerce' ); |
| 13 | $content = __( 'Explore our exclusive collection of sunglasses, crafted to elevate your look and safeguard your eyes. Find your perfect pair and see the world through a new lens.', 'woocommerce' ); |
| 14 | $button = __( 'Shop now', 'woocommerce' ); |
| 15 | $image_0 = PatternsHelper::get_image_url( $images, 0, 'assets/images/pattern-placeholders/girls-in-the-hills.jpg' ); |
| 16 | |
| 17 | ?> |
| 18 | |
| 19 | <!-- wp:group {"metadata":{"name":"Intro"},"align":"full","style":{"spacing":{"padding":{"top":"calc( 0.5 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)))","bottom":"calc( 0.5 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)))","left":"var(--wp--style--root--padding-left, var(--wp--custom--gap--horizontal))","right":"var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal))"},"margin":{"top":"0","bottom":"0"}}},"className":"alignfull","layout":{"type":"constrained","justifyContent":"center"}} --> |
| 20 | <div class="wp-block-group alignfull" style="margin-top:0;margin-bottom:0;padding-top:calc( 0.5 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)));padding-right:var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal));padding-bottom:calc( 0.5 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)));padding-left:var(--wp--style--root--padding-left, var(--wp--custom--gap--horizontal))"><!-- wp:spacer {"height":"calc( 0.25 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)))"} --> |
| 21 | <div style="height:calc( 0.25 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)))" aria-hidden="true" class="wp-block-spacer"></div> |
| 22 | <!-- /wp:spacer --> |
| 23 | |
| 24 | <!-- wp:group {"metadata":{"name":"Content"},"layout":{"type":"constrained","contentSize":"580px"}} --> |
| 25 | <div class="wp-block-group"><!-- wp:heading {"textAlign":"center","align":"wide","fontSize":"xx-large"} --> |
| 26 | <h2 class="wp-block-heading alignwide has-text-align-center has-xx-large-font-size"><?php echo esc_html( $header ); ?></h2> |
| 27 | <!-- /wp:heading --> |
| 28 | |
| 29 | <!-- wp:paragraph {"align":"center"} --> |
| 30 | <p class="has-text-align-center"><?php echo esc_html( $content ); ?></p> |
| 31 | <!-- /wp:paragraph --> |
| 32 | |
| 33 | <!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} --> |
| 34 | <div class="wp-block-buttons"><!-- wp:button {"textAlign":"center"} --><div class="wp-block-button"><a class="wp-block-button__link has-text-align-center wp-element-button"><?php echo esc_html( $button ); ?></a></div><!-- /wp:button --></div> |
| 35 | <!-- /wp:buttons --></div> |
| 36 | <!-- /wp:group --> |
| 37 | |
| 38 | <!-- wp:spacer {"height":"var:preset|spacing|30"} --> |
| 39 | <div style="height:var(--wp--preset--spacing--30)" aria-hidden="true" class="wp-block-spacer"></div> |
| 40 | <!-- /wp:spacer --> |
| 41 | |
| 42 | <!-- wp:image {"id":13691,"sizeSlug":"full","linkDestination":"none","align":"wide"} --> |
| 43 | <figure class="wp-block-image alignwide size-full"><img src="<?php echo esc_url( $image_0 ); ?>" alt="" class="wp-image-13691" /></figure> |
| 44 | <!-- /wp:image --> |
| 45 | |
| 46 | <!-- wp:spacer {"height":"calc( 0.25 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)))"} --> |
| 47 | <div style="height:calc( 0.25 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)))" aria-hidden="true" class="wp-block-spacer"></div> |
| 48 | <!-- /wp:spacer --></div> |
| 49 | <!-- /wp:group --> |
| 50 |