| 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\Page; |
| 12 |
use LassoLite\Classes\Setting; |
| 13 |
use LassoLite\Classes\Lasso_DB; |
| 14 |
|
| 15 |
// ? Set flag to know the Welcome page was visited |
| 16 |
Helper::update_option( Enum::IS_VISITED_WELCOME_PAGE, 1 ); |
| 17 |
|
| 18 |
$lasso_options = Setting::get_settings(); |
| 19 |
$should_show_import_step = Helper::should_show_import_page(); |
| 20 |
?> |
| 21 |
|
| 22 |
<section class="purple-bg pt-3 pb-5 min-vh-116"> |
| 23 |
<div |
| 24 |
id="onboarding_container" |
| 25 |
class="container container-sm lite-container" |
| 26 |
data-dashboard-url="<?php echo htmlspecialchars( Page::get_lite_page_url( Enum::PAGE_DASHBOARD ), ENT_QUOTES, 'UTF-8' ); ?>" |
| 27 |
> |
| 28 |
<!-- LOGO --> |
| 29 |
<div class="pb-5"> |
| 30 |
<div class="logo-large mx-auto"> |
| 31 |
<img src="<?php echo SIMPLE_URLS_URL; ?>/admin/assets/images/lasso-logo.svg"> |
| 32 |
</div> |
| 33 |
</div> |
| 34 |
|
| 35 |
<div class="mt-5 mx-auto white-bg shadow rounded p-5"> |
| 36 |
<!-- WELCOME --> |
| 37 |
<?php echo Helper::include_with_variables( Helper::get_path_views_folder() . 'onboarding/welcome-step.php', |
| 38 |
array( |
| 39 |
'should_show_import_step' => $should_show_import_step |
| 40 |
) ); ?> |
| 41 |
|
| 42 |
<!-- CUSTOMIZE DISPLAY --> |
| 43 |
<?php echo Helper::include_with_variables( Helper::get_path_views_folder() . 'onboarding/display-step.php', array( |
| 44 |
'lasso_options' => $lasso_options, |
| 45 |
'should_show_import_step' => $should_show_import_step |
| 46 |
) ); ?> |
| 47 |
|
| 48 |
<!-- AMAZON ASSOCIATES INFO --> |
| 49 |
<?php echo Helper::include_with_variables( Helper::get_path_views_folder() . 'onboarding/amazon-step.php', array( |
| 50 |
'lasso_options' => $lasso_options, |
| 51 |
'should_show_import_step' => $should_show_import_step |
| 52 |
) ); ?> |
| 53 |
|
| 54 |
<!-- ACTIVATE LICENSE KEY --> |
| 55 |
<?php echo Helper::include_with_variables( Helper::get_path_views_folder() . 'onboarding/license-step.php', array( |
| 56 |
'lasso_options' => $lasso_options, |
| 57 |
'should_show_import_step' => $should_show_import_step |
| 58 |
) ); ?> |
| 59 |
|
| 60 |
<!-- IMPORT --> |
| 61 |
<?php if ( $should_show_import_step ) : ?> |
| 62 |
<?php echo Helper::include_with_variables( Helper::get_path_views_folder() . 'onboarding/import-step.php' ); ?> |
| 63 |
<?php endif; ?> |
| 64 |
|
| 65 |
</div> |
| 66 |
</div> |
| 67 |
</section> |
| 68 |
|
| 69 |
<!-- URL ADD MODAL --> |
| 70 |
<?php require SIMPLE_URLS_DIR . '/admin/views/modals/url-add.php'; ?> |
| 71 |
|
| 72 |
<!-- LICENSE ACTIVATION MODAL --> |
| 73 |
<?php echo Helper::include_with_variables( SIMPLE_URLS_DIR . '/admin/views/modals/license-activation.php' ); ?> |
| 74 |
<?php echo Helper::wrapper_js_render( 'default-template-notification-amz', Helper::get_path_views_folder() . '/notifications/default-template-jsrender.html' ); ?> |
| 75 |
<?php Config::get_footer(); ?> |
| 76 |
|