banner.php
2 years ago
discount-banner-with-image.php
2 years ago
discount-banner.php
2 years ago
featured-category-cover-image.php
2 years ago
featured-category-focus.php
2 years ago
featured-category-triple.php
2 years ago
featured-products-fresh-and-tasty.php
2 years ago
filters.php
2 years ago
footer-large-dark.php
2 years ago
footer-large.php
2 years ago
footer-simple-dark.php
2 years ago
footer-simple-menu.php
2 years ago
footer-simple.php
2 years ago
footer-with-2-menus-dark.php
2 years ago
footer-with-2-menus.php
2 years ago
footer-with-3-menus.php
2 years ago
header-centered-pattern.php
2 years ago
header-essential-dark.php
2 years ago
header-essential.php
2 years ago
header-large-dark.php
2 years ago
header-large.php
2 years ago
header-minimal.php
2 years ago
hero-product-3-split.php
2 years ago
hero-product-chessboard.php
2 years ago
hero-product-split.php
2 years ago
just-arrived-full-hero.php
2 years ago
no-products-found.php
2 years ago
product-collection-3-columns.php
2 years ago
product-collection-4-columns.php
2 years ago
product-collection-5-columns.php
2 years ago
product-collection-banner.php
2 years ago
product-collection-featured-products-5-columns.php
2 years ago
product-collection-full-grid.php
2 years ago
product-collection-grid.php
2 years ago
product-collection-rows.php
2 years ago
product-collection-simple-grid.php
2 years ago
product-collections-featured-collection.php
2 years ago
product-collections-featured-collections.php
2 years ago
product-collections-newest-arrivals.php
2 years ago
product-details-listing.php
2 years ago
product-details-pattern.php
2 years ago
product-featured-2-columns.php
2 years ago
product-hero-2-col-2-row.php
2 years ago
product-hero.php
2 years ago
product-listing-with-gallery-and-description.php
2 years ago
product-query-4-column-product-row.php
2 years ago
product-query-large-image-product-gallery.php
2 years ago
product-query-minimal-product-list.php
2 years ago
product-query-product-gallery.php
2 years ago
product-query-product-list-with-1-1-images.php
2 years ago
product-query-product-list-with-full-product-description.php
2 years ago
product-search-form.php
2 years ago
related-products.php
2 years ago
shop-by-price.php
2 years ago
small-discount-banner-with-image.php
2 years ago
social-follow-us-in-social-media.php
2 years ago
store-info-alt-image-and-text.php
2 years ago
testimonials-3-columns.php
2 years ago
testimonials-single.php
2 years ago
testimonials-single.php
43 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Title: Testimonials Single |
| 4 | * Slug: woocommerce-blocks/testimonials-single |
| 5 | * Categories: WooCommerce |
| 6 | */ |
| 7 | |
| 8 | use Automattic\WooCommerce\Blocks\AIContent\PatternsHelper; |
| 9 | |
| 10 | $testimonials_title = $content['titles'][0]['default'] ?? ''; |
| 11 | $description = $content['descriptions'][0]['default'] ?? ''; |
| 12 | ?> |
| 13 | |
| 14 | <!-- wp:columns {"align":"wide","style":{"spacing":{"padding":{"right":"32px","left":"32px"}}}} --> |
| 15 | <div class="wp-block-columns alignwide" style="padding-right:32px;padding-left:32px"> |
| 16 | <!-- wp:column {"verticalAlignment":"center","width":"160px"} --> |
| 17 | <div class="wp-block-column is-vertically-aligned-center" style="flex-basis:160px"> |
| 18 | <!-- wp:image {"width": "164px", "className":"is-style-rounded"} --> |
| 19 | <figure class="wp-block-image is-resized is-style-rounded"> |
| 20 | <img src="<?php echo esc_url( PatternsHelper::get_image_url( $images, 0, 'assets/images/pattern-placeholders/portrait.png' ) ); ?>" alt="<?php esc_attr_e( 'Placeholder image with the avatar of the user who is writing the testimonial.', 'woocommerce' ); ?>" style="width:164px"/> |
| 21 | </figure> |
| 22 | <!-- /wp:image --> |
| 23 | </div> |
| 24 | <!-- /wp:column --> |
| 25 | |
| 26 | <!-- wp:column {"layout":{"type":"constrained","justifyContent":"left"}} --> |
| 27 | <div class="wp-block-column"> |
| 28 | <!-- wp:paragraph --> |
| 29 | <p><strong><?php echo esc_html( $testimonials_title ); ?></strong></p> |
| 30 | <!-- /wp:paragraph --> |
| 31 | |
| 32 | <!-- wp:paragraph --> |
| 33 | <p><?php echo esc_html( $description ); ?></p> |
| 34 | <!-- /wp:paragraph --> |
| 35 | |
| 36 | <!-- wp:paragraph --> |
| 37 | <p>– Monica P.</p> |
| 38 | <!-- /wp:paragraph --> |
| 39 | </div> |
| 40 | <!-- /wp:column --> |
| 41 | </div> |
| 42 | <!-- /wp:columns --> |
| 43 |