|
|
|
@ -9,6 +9,7 @@ |
|
|
|
|
*/ |
|
|
|
|
require_once dirname(__FILE__) . '/config.php'; |
|
|
|
|
|
|
|
|
|
$pluginPath = api_get_path(PLUGIN_PATH) . 'tour/'; |
|
|
|
|
$pluginWebPath = api_get_path(WEB_PLUGIN_PATH) . 'tour/'; |
|
|
|
|
|
|
|
|
|
$userId = api_get_user_id(); |
|
|
|
@ -27,15 +28,21 @@ if ($showTour) { |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$theme = $tourPlugin->get('theme'); |
|
|
|
|
|
|
|
|
|
$_template['show_tour'] = $showTour; |
|
|
|
|
|
|
|
|
|
$_template['pages'] = json_encode($pages); |
|
|
|
|
|
|
|
|
|
$_template['web_path'] = array( |
|
|
|
|
'intro_css' => "{$pluginWebPath}intro.js/introjs.min.css", |
|
|
|
|
'intro_theme_css' => "{$pluginWebPath}intro.js/introjs-nassim.css", |
|
|
|
|
'intro_theme_css' => null, |
|
|
|
|
'intro_js' => "{$pluginWebPath}intro.js/intro.min.js", |
|
|
|
|
'steps_ajax' => "{$pluginWebPath}ajax/steps.ajax.php", |
|
|
|
|
'save_ajax' => "{$pluginWebPath}ajax/save.ajax.php" |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
if (file_exists("{$pluginPath}intro.js/introjs-$theme.css")) { |
|
|
|
|
$_template['web_path']['intro_theme_css'] = "{$pluginWebPath}intro.js/introjs-$theme.css"; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|