banner.php
7 months 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
3 months ago
featured-category-cover-image.php
1 year ago
featured-category-triple.php
1 year ago
footer-large.php
1 year ago
footer-simple-menu.php
2 years ago
footer-with-3-menus.php
3 months ago
four-image-grid-content-left.php
3 months ago
header-centered-pattern.php
1 year ago
header-distraction-free.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
3 months ago
hero-product-3-split.php
7 months ago
hero-product-chessboard.php
7 months ago
hero-product-split.php
7 months ago
intro-centered-content-with-image-below.php
3 months ago
just-arrived-full-hero.php
7 months ago
no-products-found-filters.php
1 year ago
no-products-found.php
2 years ago
page-coming-soon-default.php
1 year ago
page-coming-soon-image-gallery.php
1 year ago
page-coming-soon-minimal-left-image.php
1 year ago
page-coming-soon-modern-black.php
1 year ago
page-coming-soon-split-right-image.php
1 year ago
page-coming-soon-with-header-footer.php
3 months ago
product-collection-3-columns.php
11 months ago
product-collection-4-columns.php
11 months ago
product-collection-5-columns.php
11 months ago
product-collection-featured-products-5-columns.php
7 months ago
product-query-product-gallery.php
6 months ago
product-search-form.php
1 year ago
related-products.php
11 months ago
social-follow-us-in-social-media.php
3 months ago
testimonials-3-columns.php
1 year ago
testimonials-single.php
3 months ago
three-columns-with-images-and-content.php
3 months ago
hero-product-chessboard.php
130 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Title: Hero Product Chessboard |
| 4 | * Slug: woocommerce-blocks/hero-product-chessboard |
| 5 | * Categories: WooCommerce, featured-selling |
| 6 | */ |
| 7 | |
| 8 | |
| 9 | $image1 = plugins_url( 'assets/images/pattern-placeholders/plant-white-leaf-flower-vase-green.jpg', WC_PLUGIN_FILE ); |
| 10 | $image2 = plugins_url( 'assets/images/pattern-placeholders/table-wood-house-chair-floor-window.jpg', WC_PLUGIN_FILE ); |
| 11 | |
| 12 | $first_title = __( 'Quality Materials', 'woocommerce' ); |
| 13 | $second_title = __( 'Unique design', 'woocommerce' ); |
| 14 | $third_title = __( 'Make your house feel like home', 'woocommerce' ); |
| 15 | |
| 16 | $first_description = __( 'We use only the highest-quality materials in our products, ensuring that they look great and last for years to come.', 'woocommerce' ); |
| 17 | $second_description = __( 'From bold prints to intricate details, our products are a perfect combination of style and function.', 'woocommerce' ); |
| 18 | $third_description = __( 'Add a touch of charm and coziness this holiday season with a wide selection of hand-picked decorations — from minimalist vases to designer furniture.', 'woocommerce' ); |
| 19 | |
| 20 | $button = __( 'Shop home decor', 'woocommerce' ); |
| 21 | ?> |
| 22 | |
| 23 | <!-- 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"},"blockGap":"0"}},"layout":{"type":"constrained","justifyContent":"center"}} --> |
| 24 | <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))"> |
| 25 | <!-- wp:spacer {"height":"calc( 0.25 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)))"} --> |
| 26 | <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> |
| 27 | <!-- /wp:spacer --> |
| 28 | |
| 29 | <!-- wp:columns {"align":"full","style":{"spacing":{"padding":{"top":"0","right":"0","bottom":"0","left":"0"},"blockGap":{"top":"0","left":"0"}}}} --> |
| 30 | <div class="wp-block-columns alignfull" style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0"> |
| 31 | <!-- wp:column --> |
| 32 | <div class="wp-block-column"> |
| 33 | <!-- wp:cover {"url":"<?php echo esc_url( $image1 ); ?>","dimRatio":0,"focalPoint":{"x":0.54,"y":0.52},"isDark":false,"style":{"color":{}}} --> |
| 34 | <div class="wp-block-cover is-light"> |
| 35 | <img class="wp-block-cover__image-background" alt="<?php esc_attr_e( 'Placeholder image used to represent a product being showcased in a hero section. 1 out of 2.', 'woocommerce' ); ?>" src="<?php echo esc_url( $image1 ); ?>" style="object-position:54% 52%" data-object-fit="cover" data-object-position="54% 52%"/> |
| 36 | <div class="wp-block-cover__inner-container"> |
| 37 | <!-- wp:paragraph {"align":"center","placeholder":" ","fontSize":"large"} --> |
| 38 | <p class="has-text-align-center has-large-font-size"> </p> |
| 39 | <!-- /wp:paragraph --> |
| 40 | </div> |
| 41 | </div> |
| 42 | <!-- /wp:cover --> |
| 43 | </div> |
| 44 | <!-- /wp:column --> |
| 45 | |
| 46 | <!-- wp:column {"verticalAlignment":"center","style":{"spacing":{"padding":{"top":"0","right":"0","bottom":"0","left":"0"}}},"layout":{"type":"constrained"}} --> |
| 47 | <div class="wp-block-column is-vertically-aligned-center" style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0"> |
| 48 | <!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"0px","right":"60px","bottom":"0px","left":"60px"},"margin":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}}}} --> |
| 49 | <div class="wp-block-group alignfull" style="margin-top:var(--wp--preset--spacing--40);margin-bottom:var(--wp--preset--spacing--40);padding-top:0px;padding-right:60px;padding-bottom:0px;padding-left:60px"> |
| 50 | <!-- wp:heading {"textAlign":"left","level":2} --> |
| 51 | <h2 class="wp-block-heading has-text-align-left has-large-font-size"><strong><?php echo esc_html( $third_title ); ?></strong></h3> |
| 52 | <!-- /wp:heading --> |
| 53 | |
| 54 | <!-- wp:paragraph {"style":{"spacing":{"margin":{"bottom":"var:preset|spacing|40"}}}} --> |
| 55 | <p style="margin-bottom:var(--wp--preset--spacing--40)"><?php echo esc_html( $third_description ); ?></p> |
| 56 | <!-- /wp:paragraph --> |
| 57 | |
| 58 | <!-- wp:buttons {"style":{"spacing":{"margin":{"top":"64px"}}}} --> |
| 59 | <div class="wp-block-buttons" style="margin-top:64px"> |
| 60 | <!-- wp:button {"textAlign":"left"} --> |
| 61 | <div class="wp-block-button has-custom-font-size"> |
| 62 | <a class="wp-block-button__link has-text-align-left wp-element-button" href="<?php echo esc_url( wc_get_page_permalink( 'shop' ) ); ?>"><?php echo esc_html( $button ); ?></a> |
| 63 | </div> |
| 64 | <!-- /wp:button --> |
| 65 | </div> |
| 66 | <!-- /wp:buttons --> |
| 67 | </div> |
| 68 | <!-- /wp:group --> |
| 69 | </div> |
| 70 | <!-- /wp:column --> |
| 71 | </div> |
| 72 | <!-- /wp:columns --> |
| 73 | |
| 74 | <!-- wp:columns {"align":"full","style":{"spacing":{"padding":{"top":"0","right":"0","bottom":"0","left":"0"},"blockGap":{"top":"0","left":"0"}}}} --> |
| 75 | <div class="wp-block-columns alignfull" style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0"> |
| 76 | <!-- wp:column {"verticalAlignment":"center","style":{"spacing":{"padding":{"top":"0","right":"0","bottom":"0","left":"0"}}}} --> |
| 77 | <div class="wp-block-column is-vertically-aligned-center" style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0"> |
| 78 | <!-- wp:group {"style":{"spacing":{"padding":{"right":"50px","left":"50px","top":"50px","bottom":"50px"},"blockGap":"50px"}},"layout":{"type":"constrained"}} --> |
| 79 | <div class="wp-block-group" style="padding-top:50px;padding-right:50px;padding-bottom:50px;padding-left:50px"> |
| 80 | <!-- wp:group {"style":{"dimensions":{"minHeight":""},"layout":{"type":"flex","orientation":"vertical"}} --> |
| 81 | <div class="wp-block-group"> |
| 82 | <!-- wp:heading {"level":5,"style":{"typography":{"textTransform":"capitalize"}}} --> |
| 83 | <h5 class="wp-block-heading" style="text-transform:capitalize"><strong><?php echo esc_html( $first_title ); ?></strong></h5> |
| 84 | <!-- /wp:heading --> |
| 85 | |
| 86 | <!-- wp:paragraph {"style":{"spacing":{"padding":{"top":"0","right":"0","bottom":"0","left":"0"},"margin":{"top":"25px","right":"0","bottom":"0","left":"0"}}}} --> |
| 87 | <p style="margin-top:25px;margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0"><?php echo esc_html( $first_description ); ?></p> |
| 88 | <!-- /wp:paragraph --> |
| 89 | </div> |
| 90 | <!-- /wp:group --> |
| 91 | |
| 92 | <!-- wp:group {"style":{"dimensions":{"minHeight":""},"layout":{"type":"flex","orientation":"vertical"}} --> |
| 93 | <div class="wp-block-group"> |
| 94 | <!-- wp:heading {"level":5,"style":{"typography":{"textTransform":"capitalize"}}} --> |
| 95 | <h5 class="wp-block-heading" style="text-transform:capitalize"><strong><?php echo esc_html( $second_title ); ?></strong></h5> |
| 96 | <!-- /wp:heading --> |
| 97 | |
| 98 | <!-- wp:paragraph {"style":{"spacing":{"margin":{"top":"25px"}}}} --> |
| 99 | <p style="margin-top:25px"><?php echo esc_html( $second_description ); ?></p> |
| 100 | <!-- /wp:paragraph --> |
| 101 | </div> |
| 102 | <!-- /wp:group --> |
| 103 | </div> |
| 104 | <!-- /wp:group --> |
| 105 | </div> |
| 106 | <!-- /wp:column --> |
| 107 | |
| 108 | <!-- wp:column {"verticalAlignment":"center"} --> |
| 109 | <div class="wp-block-column is-vertically-aligned-center"> |
| 110 | <!-- wp:cover {"url":"<?php echo esc_url( $image2 ); ?>","dimRatio":0,"focalPoint":{"x":0.33,"y":0.06},"style":{"color":{}}} --> |
| 111 | <div class="wp-block-cover"> |
| 112 | <img class="wp-block-cover__image-background" alt="<?php esc_attr_e( 'Placeholder image used to represent a product being showcased in a hero section. 2 out of 2.', 'woocommerce' ); ?>" src="<?php echo esc_url( $image2 ); ?>" style="object-position:33% 6%" data-object-fit="cover" data-object-position="33% 6%"/> |
| 113 | <div class="wp-block-cover__inner-container"> |
| 114 | <!-- wp:paragraph {"align":"center","placeholder":" ","fontSize":"large"} --> |
| 115 | <p class="has-text-align-center has-large-font-size"> </p> |
| 116 | <!-- /wp:paragraph --> |
| 117 | </div> |
| 118 | </div> |
| 119 | <!-- /wp:cover --> |
| 120 | </div> |
| 121 | <!-- /wp:column --> |
| 122 | </div> |
| 123 | <!-- /wp:columns --> |
| 124 | |
| 125 | <!-- wp:spacer {"height":"calc( 0.25 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)))"} --> |
| 126 | <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> |
| 127 | <!-- /wp:spacer --> |
| 128 | </div> |
| 129 | <!-- /wp:group --> |
| 130 |