Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Improve vars name and remove duplicated user name #11430

Merged
merged 1 commit into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions patterns/testimonials-3-columns.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
$content = PatternsHelper::get_pattern_content( 'woocommerce-blocks/testimonials-3-columns' );

$main_header = $content['titles'][0]['default'] ?? '';
$first_title = $content['titles'][1]['default'] ?? '';
$second_title = $content['titles'][2]['default'] ?? '';
$third_title = $content['titles'][3]['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'] ?? '';
Expand All @@ -29,7 +29,7 @@
<!-- wp:column -->
<div class="wp-block-column">
<!-- wp:paragraph -->
<p><strong><?php echo esc_html( $first_title ); ?></strong></p>
<p><strong><?php echo esc_html( $first_review ); ?></strong></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
Expand All @@ -46,7 +46,7 @@
<div class="wp-block-column">
<!-- wp:paragraph -->

<p><strong><?php echo esc_html( $second_title ); ?></strong></p>
<p><strong><?php echo esc_html( $second_review ); ?></strong></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
Expand All @@ -62,7 +62,7 @@
<!-- wp:column -->
<div class="wp-block-column">
<!-- wp:paragraph -->
<p><strong><?php echo esc_html( $third_title ); ?></strong></p>
<p><strong><?php echo esc_html( $third_review ); ?></strong></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
Expand Down
8 changes: 4 additions & 4 deletions src/Patterns/dictionary.json
Original file line number Diff line number Diff line change
Expand Up @@ -587,21 +587,21 @@
"ai_prompt": "A title that advertises the second testimonial"
},
{
"default": "Awesome couch and great buying experience",
"default": "Awesome couch",
"ai_prompt": "A title that advertises the third testimonial"
}
],
"descriptions": [
{
"default": "In the end the couch wasn't exactly what I was looking for but my experience with the Burrow team was excellent. First in providing a discount when the couch was delayed, then timely feedback and updates as the…\n\n~ Tanner P.",
"default": "In the end the couch wasn't exactly what I was looking for but my experience with the Burrow team was excellent. First in providing a discount when the couch was delayed.",
"ai_prompt": "A description of the first testimonial"
},
{
"default": "Great couch. color as advertise. seat is nice and firm. Easy to put together. Versatile. Bought one for my mother in law as well. And she loves hers!\n\n~ Abigail N.",
"default": "Great couch. color as advertise. seat is nice and firm. Easy to put together. Versatile. Bought one for my mother in law as well. And she loves hers!",
"ai_prompt": "A description of the second testimonial"
},
{
"default": "I got the kind sofa. The look and feel is high quality, and I enjoy that it is a medium level of firmness. Assembly took a little longer than I expected, and it came in 4 boxes. I am excited about the time / st…\n\n~ Albert L.",
"default": "I got the kind sofa. The look and feel is high quality, and I enjoy that it is a medium level of firmness. Assembly took a little longer than I expected, and it came in 4 boxes.",
"ai_prompt": "A description of the third testimonial"
}
]
Expand Down
Loading