'#clippy',
'intro' => __('Could I help you?
I am Pandorin, the annoying clippy for Pandora. You could follow my advices for to make common and basic tasks in Pandora.')
);
$helps['homepage']['steps'][] = array(
'element'=> '#clippy',
'intro' => __('What task do you want to do?') . '
' .
'
' .
''.
html_print_checkbox_extended
('clippy_is_annoying', 1, $clippy_is_annoying, false,
'set_clippy_annoying()', '', true) .
__('Please the clippy is annoying, I don\'t want see.') .
'
'
);
$helps['homepage']['conf'] = array();
$helps['homepage']['conf']['showBullets'] = 0;
$helps['homepage']['conf']['showStepNumbers'] = 0;
$helps['homepage']['conf']['name_obj_tour'] = 'intro_homepage';
$helps['homepage']['conf']['other_js'] = "
function show_clippy() {
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']) {
$helps['homepage']['conf']['autostart'] = true;
}
else {
$helps['homepage']['conf']['autostart'] = false;
}
if ($config["tutorial_mode"] == 'on_demand') {
$helps['homepage']['conf']['autostart'] = false;
}
if ($clippy_is_annoying === 1) {
$helps['homepage']['conf']['autostart'] = false;
}
//==================================================================
clippy_write_javascript_helps_steps($helps);
}
?>