| 1 |
<?php |
| 2 |
/** |
| 3 |
* Onbroarding |
| 4 |
* |
| 5 |
* @package Onbroarding |
| 6 |
*/ |
| 7 |
|
| 8 |
use LassoLite\Classes\Config; |
| 9 |
use LassoLite\Classes\Enum; |
| 10 |
use LassoLite\Classes\Helper; |
| 11 |
use LassoLite\Classes\Setting; |
| 12 |
use LassoLite\Classes\Lasso_DB; |
| 13 |
|
| 14 |
// ? Set flag to know the Welcome page was visited |
| 15 |
Helper::update_option( Enum::IS_VISITED_WELCOME_PAGE, 1 ); |
| 16 |
|
| 17 |
$lasso_options = Setting::get_settings(); |
| 18 |
$should_show_import_step = Helper::should_show_import_page(); |
| 19 |
?> |
| 20 |
|
| 21 |
<section class="purple-bg pt-3 pb-5 min-vh-116"> |
| 22 |
<div id="onboarding_container" class="container container-sm"> |
| 23 |
<!-- LOGO --> |
| 24 |
<div class="pb-5"> |
| 25 |
<div class="logo-large mx-auto"> |
| 26 |
<img src="<?php echo SIMPLE_URLS_URL; ?>/admin/assets/images/lasso-logo.svg"> |
| 27 |
</div> |
| 28 |
</div> |
| 29 |
|
| 30 |
<div class="mt-5 mx-auto white-bg shadow rounded p-5"> |
| 31 |
<!-- WELCOME --> |
| 32 |
<?php echo Helper::include_with_variables( Helper::get_path_views_folder() . 'onboarding/welcome-step.php', |
| 33 |
array( |
| 34 |
'should_show_import_step' => $should_show_import_step |
| 35 |
) ); ?> |
| 36 |
|
| 37 |
<!-- CUSTOMIZE DISPLAY --> |
| 38 |
<?php echo Helper::include_with_variables( Helper::get_path_views_folder() . 'onboarding/display-step.php', array( |
| 39 |
'lasso_options' => $lasso_options, |
| 40 |
'should_show_import_step' => $should_show_import_step |
| 41 |
) ); ?> |
| 42 |
|
| 43 |
<!-- AMAZON ASSOCIATES INFO --> |
| 44 |
<?php echo Helper::include_with_variables( Helper::get_path_views_folder() . 'onboarding/amazon-step.php', array( |
| 45 |
'lasso_options' => $lasso_options, |
| 46 |
'should_show_import_step' => $should_show_import_step |
| 47 |
) ); ?> |
| 48 |
|
| 49 |
<!-- ENABLE SUPPORT --> |
| 50 |
<?php echo Helper::include_with_variables( Helper::get_path_views_folder() . 'onboarding/enable-support-step.php', array( |
| 51 |
'lasso_options' => $lasso_options, |
| 52 |
'should_show_import_step' => $should_show_import_step |
| 53 |
) ); ?> |
| 54 |
|
| 55 |
<!-- IMPORT --> |
| 56 |
<?php if ( $should_show_import_step ) : ?> |
| 57 |
<?php echo Helper::include_with_variables( Helper::get_path_views_folder() . 'onboarding/import-step.php' ); ?> |
| 58 |
<?php endif; ?> |
| 59 |
|
| 60 |
<!-- GET STARTED --> |
| 61 |
<?php echo Helper::include_with_variables( Helper::get_path_views_folder() . 'onboarding/done-step.php', array( |
| 62 |
'should_show_import_step' => $should_show_import_step |
| 63 |
) ); ?> |
| 64 |
</div> |
| 65 |
</div> |
| 66 |
</section> |
| 67 |
|
| 68 |
<!-- URL ADD MODAL --> |
| 69 |
<?php require SIMPLE_URLS_DIR . '/admin/views/modals/url-add.php'; ?> |
| 70 |
<?php Config::get_footer(); ?> |