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
hero-product-split.php
46 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Title: Hero Product Split |
| 4 | * Slug: woocommerce-blocks/hero-product-split |
| 5 | * Categories: WooCommerce, Intro |
| 6 | */ |
| 7 | |
| 8 | use Automattic\WooCommerce\Blocks\AIContent\PatternsHelper; |
| 9 | |
| 10 | $hero_title = $content['titles'][0]['default'] ?? ''; |
| 11 | ?> |
| 12 | |
| 13 | <!-- wp:group {"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"}}},"layout":{"type":"constrained","justifyContent":"center"}} --> |
| 14 | <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))"> |
| 15 | <!-- wp:spacer {"height":"calc( 0.25 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)))"} --> |
| 16 | <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> |
| 17 | <!-- /wp:spacer --> |
| 18 | |
| 19 | <!-- wp:media-text {"align":"full","mediaPosition":"right","mediaType":"image","mediaSizeSlug":"full","imageFill":false} --> |
| 20 | <div class="wp-block-media-text alignfull has-media-on-the-right is-stacked-on-mobile"> |
| 21 | <div class="wp-block-media-text__content"> |
| 22 | <!-- wp:heading {"level":3} --> |
| 23 | <h3 class="wp-block-heading"><?php echo esc_html( $hero_title ); ?></h3> |
| 24 | <!-- /wp:heading --> |
| 25 | |
| 26 | <!-- wp:buttons {"style":{"spacing":{"margin":{"bottom":"var:preset|spacing|40"}}}} --> |
| 27 | <div class="wp-block-buttons" style="margin-bottom:var(--wp--preset--spacing--40)"> |
| 28 | <!-- wp:button --> |
| 29 | <div class="wp-block-button"> |
| 30 | <a href="<?php echo esc_url( get_permalink( wc_get_page_id( 'shop' ) ) ); ?>" class="wp-block-button__link wp-element-button"><?php esc_html_e( 'Shop the sale', 'woocommerce' ); ?></a> |
| 31 | </div> |
| 32 | <!-- /wp:button --> |
| 33 | </div> |
| 34 | <!-- /wp:buttons --> |
| 35 | </div> |
| 36 | |
| 37 | <figure class="wp-block-media-text__media"> |
| 38 | <img src="<?php echo esc_url( PatternsHelper::get_image_url( $images, 0, 'assets/images/pattern-placeholders/man-person-winter-photography-statue-coat.png' ) ); ?>" alt="<?php esc_attr_e( 'Placeholder image used to represent a product being showcased in a hero section.', 'woocommerce' ); ?>" /> |
| 39 | </figure> |
| 40 | </div> |
| 41 | <!-- /wp:media-text --> |
| 42 | |
| 43 | <!-- wp:spacer {"height":"calc( 0.25 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)))"} --> |
| 44 | <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> |
| 45 | <!-- /wp:spacer --></div> |
| 46 | <!-- /wp:group --> |