2023-04-25 13:58:27 +00:00
< ? php
/**
* Title : Testimonials Single
* Slug : woocommerce - blocks / testimonials - single
* 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/testimonials-single' );
$images = PatternsHelper :: get_pattern_images ( 'woocommerce-blocks/testimonials-single' );
2023-10-13 08:08:35 +00:00
$testimonials_title = $content [ 'titles' ][ 0 ][ 'default' ] ? ? '' ;
$description = $content [ 'descriptions' ][ 0 ][ 'default' ] ? ? '' ;
2023-04-25 13:58:27 +00:00
?>
2023-09-19 07:05:44 +00:00
2023-08-17 15:28:58 +00:00
<!-- wp : columns { " align " : " wide " , " style " : { " spacing " : { " padding " : { " right " : " 32px " , " left " : " 32px " }}}} -->
< div class = " wp-block-columns alignwide " style = " padding-right:32px;padding-left:32px " >
<!-- wp : column { " verticalAlignment " : " center " , " width " : " 160px " } -->
< div class = " wp-block-column is-vertically-aligned-center " style = " flex-basis:160px " >
<!-- wp : image { " width " : 164 , " className " : " is-style-rounded " } -->
< figure class = " wp-block-image is-resized is-style-rounded " >
2023-09-25 09:48:52 +00:00
< img src = " <?php echo esc_url( PatternsHelper::get_image_url( $images , 0, 'https://s.w.org/images/core/5.8/portrait.jpg' ) ); ?> " alt = " <?php esc_attr_e( 'Placeholder image with the avatar of the user who is writing the testimonial.', 'woo-gutenberg-products-block' ); ?> " width = " 164 " />
2023-08-17 15:28:58 +00:00
</ figure >
2023-05-12 13:05:36 +00:00
<!-- / wp : image -->
</ div >
<!-- / wp : column -->
2023-04-25 13:58:27 +00:00
2023-08-17 15:28:58 +00:00
<!-- wp : column { " layout " : { " type " : " constrained " , " justifyContent " : " left " }} -->
2023-05-12 13:05:36 +00:00
< div class = " wp-block-column " >
2023-07-20 12:34:01 +00:00
<!-- wp : paragraph -->
2023-10-13 08:08:35 +00:00
< p >< strong >< ? php echo esc_html ( $testimonials_title ); ?> </strong></p>
2023-07-20 12:34:01 +00:00
<!-- / wp : paragraph -->
2023-04-25 13:58:27 +00:00
2023-07-20 12:34:01 +00:00
<!-- wp : paragraph -->
2023-10-13 08:08:35 +00:00
< p >< ? php echo esc_html ( $description ); ?> </p>
2023-04-25 13:58:27 +00:00
<!-- / wp : paragraph -->
2023-07-20 12:34:01 +00:00
<!-- wp : paragraph -->
< p >~ Anna W .</ p >
2023-05-12 13:05:36 +00:00
<!-- / wp : paragraph -->
</ div >
<!-- / wp : column -->
</ div >
2023-04-25 13:58:27 +00:00
<!-- / wp : columns -->