Skip to content

Commit

Permalink
Merge pull request #67 from newfold-labs/add-theme-expedite-for-sitegen
Browse files Browse the repository at this point in the history
Enhancement: Verify 'Yith Wonder' Theme Activation in Preview & Editor Step
  • Loading branch information
arunshenoy99 authored Apr 8, 2024
2 parents 07ec27e + 9738bbe commit bbf5397
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions includes/Preview.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ private static function boolean_to_status( $boolean ) {
private static function pre_requisites() {
$theme_map = Themes::get();
return array(
'sitegen' => array(
'themes' => array(
'nfd_slug_yith_wonder' => self::boolean_to_status( ThemeInstaller::is_theme_active( $theme_map['nfd_slugs']['nfd_slug_yith_wonder']['stylesheet'] ) ),
),
),
'wp-setup' => array(
'themes' => array(
'nfd_slug_yith_wonder' => self::boolean_to_status( ThemeInstaller::is_theme_active( $theme_map['nfd_slugs']['nfd_slug_yith_wonder']['stylesheet'] ) ),
Expand Down

0 comments on commit bbf5397

Please sign in to comment.