class-page-wizard-complete.php
6 days ago
class-page-wizard-incompatible.php
6 days ago
class-page-wizard-intro.php
6 days ago
class-page-wizard-main.php
6 days ago
class-page-wizard-stages.php
6 days ago
class-page-wizard-main.php
32 lines
| 1 | <?php |
| 2 | |
| 3 | namespace SuperbAddons\Admin\Pages\Wizard; |
| 4 | |
| 5 | use SuperbAddons\Admin\Controllers\Wizard\WizardController; |
| 6 | use SuperbAddons\Gutenberg\Controllers\GutenbergController; |
| 7 | |
| 8 | defined('ABSPATH') || exit(); |
| 9 | |
| 10 | class PageWizardMainPage |
| 11 | { |
| 12 | public function __construct() |
| 13 | { |
| 14 | if (!GutenbergController::is_block_theme()) { |
| 15 | new PageWizardIncompatiblePage(); |
| 16 | return; |
| 17 | } |
| 18 | |
| 19 | if (WizardController::IsCompleteScreen()) { |
| 20 | new PageWizardCompletePage(); |
| 21 | return; |
| 22 | } |
| 23 | |
| 24 | if (WizardController::IsWizardStages()) { |
| 25 | new PageWizardStagesPage(); |
| 26 | return; |
| 27 | } |
| 28 | |
| 29 | new PageWizardIntroPage(); |
| 30 | } |
| 31 | } |
| 32 |