81 lines
2.7 KiB
PHP
81 lines
2.7 KiB
PHP
<?php
|
|
/**
|
|
* Title: Testimonials 3 Columns
|
|
* Slug: woocommerce-blocks/testimonials-3-columns
|
|
* Categories: WooCommerce
|
|
*/
|
|
|
|
use Automattic\WooCommerce\Blocks\Patterns\PatternsHelper;
|
|
|
|
$content = PatternsHelper::get_pattern_content( 'woocommerce-blocks/testimonials-3-columns' );
|
|
|
|
$main_header = $content['titles'][0]['default'] ?? '';
|
|
$first_review = $content['titles'][1]['default'] ?? '';
|
|
$second_review = $content['titles'][2]['default'] ?? '';
|
|
$third_review = $content['titles'][3]['default'] ?? '';
|
|
$first_description = $content['descriptions'][0]['default'] ?? '';
|
|
$second_description = $content['descriptions'][1]['default'] ?? '';
|
|
$third_description = $content['descriptions'][2]['default'] ?? '';
|
|
?>
|
|
|
|
<!-- wp:group {"align":"wide","style":{"spacing":{"margin":{"top":"0px","bottom":"80px"}}},"layout":{"type":"constrained","justifyContent":"left"}} -->
|
|
<div class="wp-block-group alignwide" style="margin-top:0px;margin-bottom:80px">
|
|
<!-- wp:heading {"level":3,"align":"full","style":{"spacing":{"padding":{"right":"var:preset|spacing|30","left":"var:preset|spacing|30"}}}} -->
|
|
<h3 class="wp-block-heading alignfull" style="padding-right:var(--wp--preset--spacing--30);padding-left:var(--wp--preset--spacing--30)"><?php echo esc_html( $main_header ); ?></h3>
|
|
<!-- /wp:heading -->
|
|
|
|
<!-- wp:columns {"align":"full","style":{"spacing":{"padding":{"right":"var:preset|spacing|30","left":"var:preset|spacing|30"}}}} -->
|
|
<div class="wp-block-columns alignfull" style="padding-right:var(--wp--preset--spacing--30);padding-left:var(--wp--preset--spacing--30)">
|
|
<!-- wp:column -->
|
|
<div class="wp-block-column">
|
|
<!-- wp:paragraph -->
|
|
<p><strong><?php echo esc_html( $first_review ); ?></strong></p>
|
|
<!-- /wp:paragraph -->
|
|
|
|
<!-- wp:paragraph -->
|
|
<p><?php echo esc_html( $first_description ); ?></p>
|
|
<!-- /wp:paragraph -->
|
|
|
|
<!-- wp:paragraph -->
|
|
<p>~ Tanner P.</p>
|
|
<!-- /wp:paragraph -->
|
|
</div>
|
|
<!-- /wp:column -->
|
|
|
|
<!-- wp:column -->
|
|
<div class="wp-block-column">
|
|
<!-- wp:paragraph -->
|
|
|
|
<p><strong><?php echo esc_html( $second_review ); ?></strong></p>
|
|
<!-- /wp:paragraph -->
|
|
|
|
<!-- wp:paragraph -->
|
|
<p><?php echo esc_html( $second_description ); ?></p>
|
|
<!-- /wp:paragraph -->
|
|
|
|
<!-- wp:paragraph -->
|
|
<p>~ Abigail N.</p>
|
|
<!-- /wp:paragraph -->
|
|
</div>
|
|
<!-- /wp:column -->
|
|
|
|
<!-- wp:column -->
|
|
<div class="wp-block-column">
|
|
<!-- wp:paragraph -->
|
|
<p><strong><?php echo esc_html( $third_review ); ?></strong></p>
|
|
<!-- /wp:paragraph -->
|
|
|
|
<!-- wp:paragraph -->
|
|
<p><?php echo esc_html( $third_description ); ?></p>
|
|
<!-- /wp:paragraph -->
|
|
|
|
<!-- wp:paragraph -->
|
|
<p>~ Albert L.</p>
|
|
<!-- /wp:paragraph -->
|
|
</div>
|
|
<!-- /wp:column -->
|
|
</div>
|
|
<!-- /wp:columns -->
|
|
</div>
|
|
<!-- /wp:group -->
|