Skip to content

Commit

Permalink
Update testimonials slug
Browse files Browse the repository at this point in the history
  • Loading branch information
arunshenoy99 committed Oct 20, 2023
1 parent 56b4b18 commit c62b20e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
14 changes: 7 additions & 7 deletions includes/Patterns.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ protected static function get_theme_step_patterns() {
'selected' => false,
'shown' => true,
'description' => __( 'Highlight your success with testimonials from your fans.', 'wp-module-onboarding' ),
'wonder_blocks' => 'testimonials-1',
'wonder_blocks' => 'testimonials-template-2',
),
'blog-page' => array(
'active' => true,
Expand Down Expand Up @@ -141,12 +141,12 @@ protected static function get_theme_step_patterns() {
public static function get_fallbacks() {
return array(
'wonder-blocks' => array(
'home-1' => 'yith-wonder/homepage-1',
'home-2' => 'yith-wonder/homepage-2',
'home-3' => 'yith-wonder/homepage-3',
'about-4' => 'yith-wonder/company-page',
'contact-4' => 'yith-wonder/contact-us',
'testimonials-1' => 'yith-wonder/testimonials-page',
'home-1' => 'yith-wonder/homepage-1',
'home-2' => 'yith-wonder/homepage-2',
'home-3' => 'yith-wonder/homepage-3',
'about-4' => 'yith-wonder/company-page',
'contact-4' => 'yith-wonder/contact-us',
'testimonials-template-2' => 'yith-wonder/testimonials-page',
),
);
}
Expand Down
15 changes: 7 additions & 8 deletions includes/Services/WonderBlocksService.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ class WonderBlocksService {
* @return boolean
*/
public static function is_pattern( $slug ) {
$patterns = array(
'testimonials-1' => true,
);
$patterns = array();

return isset( $patterns[ $slug ] );
}
Expand All @@ -38,11 +36,12 @@ public static function is_pattern( $slug ) {
*/
public static function is_template( $slug ) {
$templates = array(
'home-1' => true,
'home-2' => true,
'home-3' => true,
'about-4' => true,
'contact-4' => true,
'home-1' => true,
'home-2' => true,
'home-3' => true,
'about-4' => true,
'contact-4' => true,
'testimonials-template-2' => true,
);

return isset( $templates[ $slug ] );
Expand Down

0 comments on commit c62b20e

Please sign in to comment.