banner.php
2 years ago
discount-banner-with-image.php
2 years ago
discount-banner.php
2 years ago
featured-category-cover-image.php
2 years ago
featured-category-focus.php
2 years ago
featured-category-triple.php
2 years ago
featured-products-fresh-and-tasty.php
2 years ago
filters.php
2 years ago
footer-large-dark.php
2 years ago
footer-large.php
2 years ago
footer-simple-dark.php
2 years ago
footer-simple-menu.php
2 years ago
footer-simple.php
2 years ago
footer-with-2-menus-dark.php
2 years ago
footer-with-2-menus.php
2 years ago
footer-with-3-menus.php
2 years ago
header-centered-pattern.php
2 years ago
header-essential-dark.php
2 years ago
header-essential.php
2 years ago
header-large-dark.php
2 years ago
header-large.php
2 years ago
header-minimal.php
2 years ago
hero-product-3-split.php
2 years ago
hero-product-chessboard.php
2 years ago
hero-product-split.php
2 years ago
just-arrived-full-hero.php
2 years ago
no-products-found.php
2 years ago
product-collection-3-columns.php
2 years ago
product-collection-4-columns.php
2 years ago
product-collection-5-columns.php
2 years ago
product-collection-banner.php
2 years ago
product-collection-featured-products-5-columns.php
2 years ago
product-collection-full-grid.php
2 years ago
product-collection-grid.php
2 years ago
product-collection-rows.php
2 years ago
product-collection-simple-grid.php
2 years ago
product-collections-featured-collection.php
2 years ago
product-collections-featured-collections.php
2 years ago
product-collections-newest-arrivals.php
2 years ago
product-details-listing.php
2 years ago
product-details-pattern.php
2 years ago
product-featured-2-columns.php
2 years ago
product-hero-2-col-2-row.php
2 years ago
product-hero.php
2 years ago
product-listing-with-gallery-and-description.php
2 years ago
product-query-4-column-product-row.php
2 years ago
product-query-large-image-product-gallery.php
2 years ago
product-query-minimal-product-list.php
2 years ago
product-query-product-gallery.php
2 years ago
product-query-product-list-with-1-1-images.php
2 years ago
product-query-product-list-with-full-product-description.php
2 years ago
product-search-form.php
2 years ago
related-products.php
2 years ago
shop-by-price.php
2 years ago
small-discount-banner-with-image.php
2 years ago
social-follow-us-in-social-media.php
2 years ago
store-info-alt-image-and-text.php
2 years ago
testimonials-3-columns.php
2 years ago
testimonials-single.php
2 years ago
hero-product-3-split.php
112 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Title: Hero Product 3 Split |
| 4 | * Slug: woocommerce-blocks/hero-product-3-split |
| 5 | * Categories: WooCommerce |
| 6 | */ |
| 7 | |
| 8 | use Automattic\WooCommerce\Blocks\Patterns\PatternsHelper; |
| 9 | |
| 10 | $main_title = $content['titles'][3]['default'] ?? ''; |
| 11 | $first_title = $content['titles'][0]['default'] ?? ''; |
| 12 | $second_title = $content['titles'][1]['default'] ?? ''; |
| 13 | $third_title = $content['titles'][2]['default'] ?? ''; |
| 14 | |
| 15 | $first_description = $content['descriptions'][0]['default'] ?? ''; |
| 16 | $second_description = $content['descriptions'][1]['default'] ?? ''; |
| 17 | $third_description = $content['descriptions'][2]['default'] ?? ''; |
| 18 | ?> |
| 19 | |
| 20 | <!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"left":"0"},"margin":{"top":"0px","bottom":"80px"}}}} --> |
| 21 | <div class="wp-block-columns alignwide" style="margin-top:0px;margin-bottom:80px"> |
| 22 | <!-- wp:column --> |
| 23 | <div class="wp-block-column"> |
| 24 | <!-- wp:cover {"url":"<?php echo esc_url( PatternsHelper::get_image_url( $images, 0, 'assets/images/pattern-placeholders/drinkware-liquid-tableware-dishware-bottle-fluid.jpg' ) ); ?>","dimRatio":0,"minHeight":800,"minHeightUnit":"px","isDark":false,"layout":{"type":"constrained"}} --> |
| 25 | <div class="wp-block-cover is-light" style="min-height:800px"> |
| 26 | <span aria-hidden="true" class="wp-block-cover__background has-background-dim-0 has-background-dim"></span> |
| 27 | <img |
| 28 | class="wp-block-cover__image-background" |
| 29 | alt="<?php esc_attr_e( 'Placeholder image used to represent a product being showcased.', 'woocommerce' ); ?>" |
| 30 | src="<?php echo esc_url( PatternsHelper::get_image_url( $images, 0, 'assets/images/pattern-placeholders/drinkware-liquid-tableware-dishware-bottle-fluid.jpg' ) ); ?>" |
| 31 | data-object-fit="cover" /> |
| 32 | <div class="wp-block-cover__inner-container"> |
| 33 | <!-- wp:paragraph {"align":"center","placeholder":" ","fontSize":"large"} --> |
| 34 | <p class="has-text-align-center has-large-font-size"></p> |
| 35 | <!-- /wp:paragraph --> |
| 36 | </div> |
| 37 | </div> |
| 38 | <!-- /wp:cover --> |
| 39 | </div> |
| 40 | <!-- /wp:column --> |
| 41 | |
| 42 | <!-- wp:column {"verticalAlignment":"center"} --> |
| 43 | <div class="wp-block-column is-vertically-aligned-center"> |
| 44 | <!-- wp:group {"style":{"spacing":{"padding":{"top":"20px","bottom":"20px","left":"50px","right":"50px"},"blockGap":"48px","margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} --> |
| 45 | <div class="wp-block-group" style="margin-top:0;margin-bottom:0;padding-top:20px;padding-right:50px;padding-bottom:20px;padding-left:50px"> |
| 46 | <!-- wp:heading {"level":3} --> |
| 47 | <h3 class="wp-block-heading"><strong><?php echo esc_html( $main_title ); ?></strong></h3> |
| 48 | <!-- /wp:heading --> |
| 49 | |
| 50 | <!-- wp:group {"style":{"spacing":{"blockGap":"35px"}},"layout":{"type":"constrained"}} --> |
| 51 | <div class="wp-block-group"> |
| 52 | <!-- wp:group {"style":{"spacing":{"blockGap":"6px"}},"layout":{"type":"constrained"}} --> |
| 53 | <div class="wp-block-group"> |
| 54 | <!-- wp:heading {"level":5,"style":{"typography":{"textTransform":"capitalize"}}} --> |
| 55 | <h5 class="wp-block-heading" style="text-transform:capitalize"><?php echo esc_html( $first_title ); ?></h5> |
| 56 | <!-- /wp:heading --> |
| 57 | |
| 58 | <!-- wp:paragraph --> |
| 59 | <p><?php echo esc_html( $first_description ); ?></p> |
| 60 | <!-- /wp:paragraph --> |
| 61 | </div> |
| 62 | <!-- /wp:group --> |
| 63 | |
| 64 | <!-- wp:separator {"className":"is-style-wide"} --> |
| 65 | <hr class="wp-block-separator has-alpha-channel-opacity is-style-wide" /> |
| 66 | <!-- /wp:separator --> |
| 67 | |
| 68 | <!-- wp:group {"style":{"spacing":{"blockGap":"6px"}},"layout":{"type":"constrained"}} --> |
| 69 | <div class="wp-block-group"> |
| 70 | <!-- wp:heading {"level":5,"style":{"typography":{"textTransform":"capitalize"}}} --> |
| 71 | <h5 class="wp-block-heading" style="text-transform:capitalize"><?php echo esc_html( $second_title ); ?></h5> |
| 72 | <!-- /wp:heading --> |
| 73 | |
| 74 | <!-- wp:paragraph --> |
| 75 | <p><?php echo esc_html( $second_description ); ?></p> |
| 76 | <!-- /wp:paragraph --> |
| 77 | </div> |
| 78 | <!-- /wp:group --> |
| 79 | |
| 80 | <!-- wp:separator {"className":"is-style-wide"} --> |
| 81 | <hr class="wp-block-separator has-alpha-channel-opacity is-style-wide" /> |
| 82 | <!-- /wp:separator --> |
| 83 | |
| 84 | <!-- wp:group {"style":{"spacing":{"blockGap":"6px"}},"layout":{"type":"constrained"}} --> |
| 85 | <div class="wp-block-group"> |
| 86 | <!-- wp:heading {"level":5,"style":{"typography":{"textTransform":"capitalize"}}} --> |
| 87 | <h5 class="wp-block-heading" style="text-transform:capitalize"><?php echo esc_html( $third_title ); ?></h5> |
| 88 | <!-- /wp:heading --> |
| 89 | |
| 90 | <!-- wp:paragraph --> |
| 91 | <p><?php echo esc_html( $third_description ); ?></p> |
| 92 | <!-- /wp:paragraph --> |
| 93 | </div> |
| 94 | <!-- /wp:group --> |
| 95 | </div> |
| 96 | <!-- /wp:group --> |
| 97 | |
| 98 | <!-- wp:buttons --> |
| 99 | <div class="wp-block-buttons"><!-- wp:button --> |
| 100 | <div class="wp-block-button"> |
| 101 | <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 now', 'woocommerce' ); ?></a> |
| 102 | </div> |
| 103 | <!-- /wp:button --> |
| 104 | </div> |
| 105 | <!-- /wp:buttons --> |
| 106 | </div> |
| 107 | <!-- /wp:group --> |
| 108 | </div> |
| 109 | <!-- /wp:column --> |
| 110 | </div> |
| 111 | <!-- /wp:columns --> |
| 112 |