2023-04-28 12:35:54 +00:00
< ? php
/**
* Title : Featured Category Triple
* Slug : woocommerce - blocks / featured - category - triple
* Categories : WooCommerce
*/
2023-09-19 07:05:44 +00:00
2023-09-25 09:48:52 +00:00
use Automattic\WooCommerce\Blocks\Patterns\PatternsHelper ;
$content = PatternsHelper :: get_pattern_content ( 'woocommerce-blocks/featured-category-triple' );
2023-09-19 07:05:44 +00:00
2023-09-25 09:48:52 +00:00
$images = PatternsHelper :: get_pattern_images ( 'woocommerce-blocks/featured-category-triple' );
$image1 = PatternsHelper :: get_image_url ( $images , 0 , 'images/pattern-placeholders/sweet-restaurant-celebration-food-chocolate-cupcake.png' );
$image2 = PatternsHelper :: get_image_url ( $images , 1 , 'images/pattern-placeholders/dish-meal-food-breakfast-dessert-eat.png' );
$image3 = PatternsHelper :: get_image_url ( $images , 2 , 'images/pattern-placeholders/dish-food-baking-dessert-bread-bakery.png' );
2023-04-28 12:35:54 +00:00
?>
2023-09-19 07:05:44 +00:00
2023-10-06 09:45:43 +00:00
<!-- wp : columns { " align " : " wide " , " style " : { " spacing " : { " blockGap " : { " top " : " 0px " , " left " : " 0px " }, " padding " : { " right " : " var:preset|spacing|30 " , " left " : " var:preset|spacing|30 " , " top " : " var:preset|spacing|30 " , " bottom " : " var:preset|spacing|30 " }}}} -->
< div class = " wp-block-columns alignwide " style = " padding-right:var(--wp--preset--spacing--30);padding-left:var(--wp--preset--spacing--30);padding-top:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30) " >
2023-07-25 14:00:22 +00:00
<!-- wp : column -->
< div class = " wp-block-column " >
2023-09-19 07:05:44 +00:00
<!-- wp : cover { " url " : " <?php echo esc_url( $image1 ); ?> " , " id " : 1 , " dimRatio " : 0 , " contentPosition " : " bottom center " , " isDark " : false , " className " : " has-white-color " } -->
2023-07-25 14:00:22 +00:00
< div class = " wp-block-cover is-light has-custom-content-position is-position-bottom-center has-white-color " >
< span aria - hidden = " true " class = " wp-block-cover__background has-background-dim-0 has-background-dim " ></ span >
2023-09-19 07:05:44 +00:00
< img class = " wp-block-cover__image-background wp-image-1 " alt = " <?php esc_attr_e( 'Placeholder image used to represent products being showcased in featured categories banner. 1 out of 3.', 'woo-gutenberg-products-block' ); ?> " src = " <?php echo esc_url( $image1 ); ?> " data - object - fit = " cover " />
2023-07-25 14:00:22 +00:00
< div class = " wp-block-cover__inner-container " >
2023-10-05 11:49:26 +00:00
<!-- wp : heading { " textAlign " : " center " , " level " : 4 } -->
< h4 class = " wp-block-heading has-text-align-center " >< ? php echo esc_html ( $content [ 'titles' ][ 0 ][ 'default' ] ); ?> </h4>
2023-07-25 14:00:22 +00:00
<!-- / wp : heading -->
<!-- wp : paragraph { " align " : " center " , " style " : { " elements " : { " link " : { " color " : { " text " : " var:preset|color|white " }}}, " spacing " : { " padding " : { " top " : " 0 " , " bottom " : " 0 " }, " margin " : { " top " : " 0 " , " bottom " : " 0 " }}}} -->
< p class = " has-text-align-center has-link-color " style = " margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0 " >
< a href = " <?php echo esc_url( wc_get_page_permalink( 'shop' ) ); ?> " data - type = " link " data - id = " <?php echo esc_url( wc_get_page_permalink( 'shop' ) ); ?> " >< ? php esc_html_e ( 'Shop Now' , 'woo-gutenberg-products-block' ); ?> </a>
2023-05-12 13:05:36 +00:00
</ p >
2023-07-25 14:00:22 +00:00
<!-- / wp : paragraph -->
</ div >
</ div >
<!-- / wp : cover -->
</ div >
<!-- / wp : column -->
2023-05-04 13:04:24 +00:00
2023-07-25 14:00:22 +00:00
<!-- wp : column -->
< div class = " wp-block-column " >
2023-09-19 07:05:44 +00:00
<!-- wp : cover { " url " : " <?php echo esc_url( $image2 ); ?> " , " id " : 1 , " dimRatio " : 0 , " contentPosition " : " bottom center " , " isDark " : false , " className " : " has-white-color " } -->
2023-07-25 14:00:22 +00:00
< div class = " wp-block-cover is-light has-custom-content-position is-position-bottom-center has-white-color " >
< span aria - hidden = " true " class = " wp-block-cover__background has-background-dim-0 has-background-dim " ></ span >
2023-09-19 07:05:44 +00:00
< img class = " wp-block-cover__image-background wp-image-1 " alt = " <?php esc_attr_e( 'Placeholder image used to represent products being showcased in featured categories banner. 2 out of 3.', 'woo-gutenberg-products-block' ); ?> " src = " <?php echo esc_url( $image2 ); ?> " data - object - fit = " cover " />
2023-07-25 14:00:22 +00:00
< div class = " wp-block-cover__inner-container " >
2023-10-05 11:49:26 +00:00
<!-- wp : heading { " textAlign " : " center " , " level " : 4 } -->
< h4 class = " wp-block-heading has-text-align-center " >< ? php echo esc_html ( $content [ 'titles' ][ 1 ][ 'default' ] ); ?> </h4>
2023-07-25 14:00:22 +00:00
<!-- / wp : heading -->
<!-- wp : paragraph { " align " : " center " , " style " : { " elements " : { " link " : { " color " : { " text " : " var:preset|color|white " }}}, " spacing " : { " padding " : { " top " : " 0 " , " bottom " : " 0 " }, " margin " : { " top " : " 0 " , " bottom " : " 0 " }}}} -->
< p class = " has-text-align-center has-link-color " style = " margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0 " >
< a href = " <?php echo esc_url( wc_get_page_permalink( 'shop' ) ); ?> " data - type = " link " data - id = " <?php echo esc_url( wc_get_page_permalink( 'shop' ) ); ?> " >< ? php esc_html_e ( 'Shop Now' , 'woo-gutenberg-products-block' ); ?> </a>
2023-05-12 13:05:36 +00:00
</ p >
2023-07-25 14:00:22 +00:00
<!-- / wp : paragraph -->
</ div >
</ div >
<!-- / wp : cover -->
</ div >
<!-- / wp : column -->
2023-05-04 13:04:24 +00:00
2023-07-25 14:00:22 +00:00
<!-- wp : column -->
< div class = " wp-block-column " >
2023-09-19 07:05:44 +00:00
<!-- wp : cover { " url " : " <?php echo esc_url( $image3 ); ?> " , " id " : 1 , " dimRatio " : 0 , " contentPosition " : " bottom center " , " isDark " : false , " className " : " has-white-color " } -->
2023-07-25 14:00:22 +00:00
< div class = " wp-block-cover is-light has-custom-content-position is-position-bottom-center has-white-color " >
< span aria - hidden = " true " class = " wp-block-cover__background has-background-dim-0 has-background-dim " ></ span >
2023-09-19 07:05:44 +00:00
< img class = " wp-block-cover__image-background wp-image-1 " alt = " <?php esc_attr_e( 'Placeholder image used to represent products being showcased in featured categories banner. 3 out of 3', 'woo-gutenberg-products-block' ); ?> " src = " <?php echo esc_url( $image3 ); ?> " data - object - fit = " cover " />
2023-07-25 14:00:22 +00:00
< div class = " wp-block-cover__inner-container " >
2023-10-05 11:49:26 +00:00
<!-- wp : heading { " textAlign " : " center " , " level " : 4 } -->
< h4 class = " wp-block-heading has-text-align-center " >< ? php echo esc_html ( $content [ 'titles' ][ 2 ][ 'default' ] ); ?> </h4>
2023-07-25 14:00:22 +00:00
<!-- / wp : heading -->
<!-- wp : paragraph { " align " : " center " , " style " : { " elements " : { " link " : { " color " : { " text " : " var:preset|color|white " }}}, " spacing " : { " padding " : { " top " : " 0 " , " bottom " : " 0 " }, " margin " : { " top " : " 0 " , " bottom " : " 0 " }}}} -->
< p class = " has-text-align-center has-link-color " style = " margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0 " >
< a href = " <?php echo esc_url( wc_get_page_permalink( 'shop' ) ); ?> " data - type = " link " data - id = " <?php echo esc_url( wc_get_page_permalink( 'shop' ) ); ?> " >< ? php esc_html_e ( 'Shop Now' , 'woo-gutenberg-products-block' ); ?> </a>
2023-05-12 13:05:36 +00:00
</ p >
2023-07-25 14:00:22 +00:00
<!-- / wp : paragraph -->
</ div >
</ div >
<!-- / wp : cover -->
</ div >
<!-- / wp : column -->
</ div >
2023-04-28 12:35:54 +00:00
<!-- / wp : columns -->