'#clippy',
'intro' => __('Hi, can I help you?') . '
' .
__('Let me introduce my self: I am Pandorin, the annoying clippy of Pandora FMS. You can follow my steps to do basic tasks in Pandora FMS or you can close me and never see me again.') .
'
'.
html_print_checkbox_extended
('clippy_is_annoying', 1, $clippy_is_annoying, false,
'set_clippy_annoying()', '', true) .
__('Close this annoying clippy right now.') .
'
' .
'
' .
html_print_image('images/pandorin.png', true) .
'
'
);
$return_tours['tours']['homepage']['steps'][] = array(
'element'=> '#clippy',
'intro' => __('Which task would you like to do first?') . '
' .
''
);
$return_tours['tours']['homepage']['conf'] = array();
$return_tours['tours']['homepage']['conf']['show_bullets'] = 0;
$return_tours['tours']['homepage']['conf']['show_step_numbers'] = 0;
$return_tours['tours']['homepage']['conf']['name_obj_js_tour'] = 'intro_homepage';
$return_tours['tours']['homepage']['conf']['other_js'] = "
var started = 0;
function show_clippy() {
if (intro_homepage.started()) {
started = 1;
}
else {
started = 0;
}
if (started == 0)
intro_homepage.start();
}
function set_clippy_annoying() {
checked = $('input[name=\'clippy_is_annoying\']').is(':checked');
intro_homepage.exit();
if (checked) {
document.cookie = 'clippy_is_annoying=1';
}
else {
document.cookie = 'clippy_is_annoying=0';
}
}
";
if ($config['logged']) {
$return_tours['tours']['homepage']['conf']['autostart'] = true;
}
else {
$return_tours['tours']['homepage']['conf']['autostart'] = false;
}
if ($config["tutorial_mode"] == 'on_demand') {
$return_tours['tours']['homepage']['conf']['autostart'] = false;
}
if ($clippy_is_annoying === 1) {
$return_tours['tours']['homepage']['conf']['autostart'] = false;
}
//==================================================================
//==================================================================
//Help tour about the email alert module (step 1)
//------------------------------------------------------------------
$return_tours['tours']['email_alert_module_step_1'] = array();
$return_tours['tours']['email_alert_module_step_1']['steps'] = array();
$return_tours['tours']['email_alert_module_step_1']['steps'][] = array(
'element'=> '#clippy',
'intro' => __('The first thing you have to do is to setup the config email in the Pandora FMS Server.') .
'
' .
ui_print_help_icon ('context_pandora_server_email', true, '', 'images/help.png') .
'
' .
__('If you have it already configured you can go to the next step.')
);
$return_tours['tours']['email_alert_module_step_1']['steps'][] = array(
'element'=> '#icon_god-alerts',
'position' => 'top',
'intro' => __('Now, pull down the Manage alerts menu and click on Actions. ')
);
$return_tours['tours']['email_alert_module_step_1']['conf'] = array();
$return_tours['tours']['email_alert_module_step_1']['conf']['show_bullets'] = 0;
$return_tours['tours']['email_alert_module_step_1']['conf']['show_step_numbers'] = 0;
$return_tours['tours']['email_alert_module_step_1']['conf']['complete_js'] = "
;
";
$return_tours['tours']['email_alert_module_step_1']['conf']['exit_js'] = "
location.reload();
";
$return_tours['tours']['email_alert_module_step_1']['conf']['next_help'] = 'email_alert_module_step_2';
//==================================================================
return $return_tours;
}
?>