PluginProbe
WooCommerce / 11.1.0-rc.2
WooCommerce v11.1.0-rc.2
11.1.0 11.1.0-rc.2 11.1.0-rc.1 11.1.0-beta.2 11.1.0-beta.1 11.0.1 11.0.0 11.0.0-rc.3 11.0.0-rc.2 11.0.0-rc.1 11.0.0-beta.2 11.0.0-beta.1 10.9.4 10.9.3 10.9.2 10.9.1 10.9.0 10.9.0-rc.1 10.9.0-beta.2 10.9.0-beta.1 10.8.1 10.8.0 10.8.0-rc.1 10.8.0-beta.2 10.8.0-beta.1 All 648 releases
woocommerce / patterns / testimonials-single.php
testimonials-single.php
53 lines 3.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Title: Testimonial Single
4 * Slug: woocommerce-blocks/testimonials-single
5 * Categories: WooCommerce, Reviews
6 */
7
8
9 $testimonials_title = __( 'A ‘brewtiful’ experience :-)', 'woocommerce' );
10 $description = __( 'Exceptional flavors, sustainable choices. The carefully curated collection of coffee pots and accessories turned my kitchen into a haven of style and taste.', 'woocommerce' );
11 ?>
12
13 <!-- wp:group {"metadata":{"name":"Testimonials Single"},"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"}}},"layout":{"type":"constrained","justifyContent":"center"}} -->
14 <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))"><!-- wp:spacer {"height":"calc( 0.25 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)))"} -->
15 <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>
16 <!-- /wp:spacer -->
17
18 <!-- wp:columns {"metadata":{"categories":["woo-commerce"],"patternName":"woocommerce-blocks/testimonials-single"},"align":"wide","style":{"spacing":{"blockGap":{"top":"0","left":"var:preset|spacing|40"}}}} -->
19 <div class="wp-block-columns alignwide">
20 <!-- wp:column {"verticalAlignment":"center","width":"160px"} -->
21 <div class="wp-block-column is-vertically-aligned-center" style="flex-basis:160px">
22 <!-- wp:image {"width":"164px","className":"is-style-rounded"} -->
23 <figure class="wp-block-image is-resized is-style-rounded">
24 <img src="<?php echo esc_url( plugins_url( 'assets/images/pattern-placeholders/portrait.png', WC_PLUGIN_FILE ) ); ?>" alt="<?php esc_attr_e( 'Placeholder image with the avatar of the user who is writing the testimonial.', 'woocommerce' ); ?>" style="width:164px"/>
25 </figure>
26 <!-- /wp:image -->
27 </div>
28 <!-- /wp:column -->
29
30 <!-- wp:column {"verticalAlignment":"center","layout":{"type":"constrained","justifyContent":"left"}} -->
31 <div class="wp-block-column is-vertically-aligned-center">
32 <!-- wp:paragraph -->
33 <p><strong><?php echo esc_html( $testimonials_title ); ?></strong></p>
34 <!-- /wp:paragraph -->
35
36 <!-- wp:paragraph -->
37 <p><?php echo esc_html( $description ); ?></p>
38 <!-- /wp:paragraph -->
39
40 <!-- wp:paragraph -->
41 <p>Monica P.</p>
42 <!-- /wp:paragraph -->
43 </div>
44 <!-- /wp:column -->
45 </div>
46 <!-- /wp:columns -->
47
48 <!-- wp:spacer {"height":"calc( 0.25 * var(--wp--style--root--padding-right, var(--wp--custom--gap--horizontal)))"} -->
49 <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>
50 <!-- /wp:spacer -->
51 </div>
52 <!-- /wp:group -->
53