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 ;
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 " >
2023-11-20 13:43:27 +00:00
<!-- wp : image { " width " : " 164px " , " className " : " is-style-rounded " } -->
2023-08-17 15:28:58 +00:00
< figure class = " wp-block-image is-resized is-style-rounded " >
2023-11-20 13:43:27 +00:00
< img src = " <?php echo esc_url( PatternsHelper::get_image_url( $images , 0, 'images/pattern-placeholders/portrait.png' ) ); ?> " alt = " <?php esc_attr_e( 'Placeholder image with the avatar of the user who is writing the testimonial.', 'woo-gutenberg-products-block' ); ?> " style = " width:164px " />
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 -->