2022-12-05 11:57:51 +00:00
< ? php
/**
2023-06-21 07:50:12 +00:00
* Title : Alternating Image and Text
2022-12-05 11:57:51 +00:00
* Slug : woocommerce - blocks / alt - image - and - text
* Categories : WooCommerce
*/
2023-09-19 07:05:44 +00:00
use Automattic\WooCommerce\Blocks\Patterns\PatternImages ;
$images = PatternImages :: get_pattern_images ( 'woocommerce-blocks/alt-image-and-text' );
$image1 = PatternImages :: get_image_url ( $images , 0 , 'images/pattern-placeholders/crafting-pots.png' );
$image2 = PatternImages :: get_image_url ( $images , 1 , 'images/pattern-placeholders/hand-made-pots.png' );
2022-12-05 11:57:51 +00:00
?>
2023-09-19 07:05:44 +00:00
2023-07-25 08:12:29 +00:00
<!-- wp : group { " align " : " wide " } -->
2023-08-11 07:33:54 +00:00
< div class = " wp-block-group alignwide " >
<!-- wp : columns { " align " : " wide " } -->
< div class = " wp-block-columns alignwide " >
<!-- wp : column { " verticalAlignment " : " center " , " width " : " 50% " } -->
< div class = " wp-block-column is-vertically-aligned-center " style = " flex-basis:50% " >
<!-- wp : image { " sizeSlug " : " full " , " linkDestination " : " none " } -->
< figure class = " wp-block-image size-full " >
2023-09-19 07:05:44 +00:00
< img src = " <?php echo esc_url( $image1 ); ?> " alt = " <?php esc_attr_e( 'Placeholder image used in the left column.', 'woo-gutenberg-products-block' ); ?> " />
2023-08-11 07:33:54 +00:00
</ figure >
<!-- / wp : image -->
</ div >
<!-- / wp : column -->
2022-12-05 11:57:51 +00:00
2023-08-11 07:33:54 +00:00
<!-- wp : column { " verticalAlignment " : " center " , " width " : " 50% " } -->
< div class = " wp-block-column is-vertically-aligned-center " style = " flex-basis:50% " >
<!-- wp : paragraph { " placeholder " : " Content… " , " style " : { " typography " : { " textTransform " : " uppercase " }}} -->
< p style = " text-transform:uppercase " >< ? php esc_html_e ( 'The goods' , 'woo-gutenberg-products-block' ); ?> </p>
<!-- / wp : paragraph -->
2022-12-05 11:57:51 +00:00
2023-08-11 07:33:54 +00:00
<!-- wp : heading { " level " : 3 , " style " : { " spacing " : { " margin " : { " top " : " 0 " , " bottom " : " 0 " }}}} -->
< h3 class = " wp-block-heading " style = " margin-top:0;margin-bottom:0 " >< ? php esc_html_e ( 'Created with love and care in Australia' , 'woo-gutenberg-products-block' ); ?> </h3>
<!-- / wp : heading -->
2022-12-05 11:57:51 +00:00
2023-08-11 07:33:54 +00:00
<!-- wp : paragraph -->
< p >< ? php esc_html_e ( 'All items are 100% hand-made, using the potter’ s wheel or traditional techniques.' , 'woo-gutenberg-products-block' ); ?> </p>
<!-- / wp : paragraph -->
2022-12-05 11:57:51 +00:00
2023-08-11 07:33:54 +00:00
<!-- wp : list -->
< ul ><!-- wp : list - item -->
< li >< ? php esc_html_e ( 'Timeless style.' , 'woo-gutenberg-products-block' ); ?> </li>
<!-- / wp : list - item -->
2022-12-05 11:57:51 +00:00
2023-08-11 07:33:54 +00:00
<!-- wp : list - item -->
< li >< ? php esc_html_e ( 'Earthy, organic feel.' , 'woo-gutenberg-products-block' ); ?> </li>
<!-- / wp : list - item -->
2022-12-05 11:57:51 +00:00
2023-08-11 07:33:54 +00:00
<!-- wp : list - item -->
< li >< ? php esc_html_e ( 'Enduring quality.' , 'woo-gutenberg-products-block' ); ?> </li>
<!-- / wp : list - item -->
2022-12-05 11:57:51 +00:00
2023-08-11 07:33:54 +00:00
<!-- wp : list - item -->
< li >< ? php esc_html_e ( 'Unique, one-of-a-kind pieces.' , 'woo-gutenberg-products-block' ); ?> </li>
<!-- / wp : list - item -->
</ ul >
<!-- / wp : list -->
</ div >
<!-- / wp : column -->
</ div >
<!-- / wp : columns -->
2022-12-05 11:57:51 +00:00
2023-08-11 07:33:54 +00:00
<!-- wp : columns { " align " : " wide " } -->
< div class = " wp-block-columns alignwide " >
<!-- wp : column { " verticalAlignment " : " center " , " width " : " 48% " } -->
< div class = " wp-block-column is-vertically-aligned-center " style = " flex-basis:48% " >
<!-- wp : paragraph { " placeholder " : " Content… " , " style " : { " typography " : { " textTransform " : " uppercase " }}} -->
< p style = " text-transform:uppercase " >< ? php esc_html_e ( 'About us' , 'woo-gutenberg-products-block' ); ?> </p>
<!-- / wp : paragraph -->
2022-12-05 11:57:51 +00:00
2023-08-11 07:33:54 +00:00
<!-- wp : heading { " level " : 3 , " style " : { " spacing " : { " margin " : { " top " : " 0 " , " bottom " : " 0 " }}}} -->
< h3 class = " wp-block-heading " style = " margin-top:0;margin-bottom:0 " >< ? php esc_html_e ( 'Marl is an independent studio and artisanal gallery' , 'woo-gutenberg-products-block' ); ?> </h3>
<!-- / wp : heading -->
2022-12-05 11:57:51 +00:00
2023-08-11 07:33:54 +00:00
<!-- wp : paragraph -->
< p >< ? php esc_html_e ( 'We specialize in limited collections of handmade tableware. We collaborate with restaurants and cafes to create unique items that complement the menu perfectly. Please get in touch if you want to know more about our process and pricing.' , 'woo-gutenberg-products-block' ); ?> </p>
<!-- / wp : paragraph -->
2022-12-05 11:57:51 +00:00
2023-08-11 07:33:54 +00:00
<!-- wp : buttons { " style " : { " spacing " : { " blockGap " : " 0 " }}, " fontSize " : " small " } -->
< div class = " wp-block-buttons has-custom-font-size has-small-font-size " >
<!-- wp : button { " className " : " is-style-outline " } -->
< div class = " wp-block-button is-style-outline " >
< a class = " wp-block-button__link wp-element-button " >< ? php esc_html_e ( 'Learn more' , 'woo-gutenberg-products-block' ); ?> </a>
</ div >
<!-- / wp : button -->
</ div >
<!-- / wp : buttons -->
</ div >
<!-- / wp : column -->
2022-12-05 11:57:51 +00:00
2023-08-11 07:33:54 +00:00
<!-- wp : column { " verticalAlignment " : " center " , " width " : " 52% " } -->
< div class = " wp-block-column is-vertically-aligned-center " style = " flex-basis:52% " >
<!-- wp : image { " sizeSlug " : " full " , " linkDestination " : " none " } -->
< figure class = " wp-block-image size-full " >
2023-09-19 07:05:44 +00:00
< img src = " <?php echo esc_url( $image2 ); ?> " alt = " <?php esc_attr_e( 'Placeholder image used in the right column.', 'woo-gutenberg-products-block' ); ?> " />
2023-08-11 07:33:54 +00:00
</ figure >
<!-- / wp : image -->
</ div >
<!-- / wp : column -->
</ div >
<!-- / wp : columns -->
</ div >
2022-12-05 11:57:51 +00:00
<!-- / wp : group -->