$step) { $init_step_context = false; if (isset($step['init_step_context'])) { $init_step_context = $step['init_step_context']; } if ($init_step_context) { unset($steps[$iterator]['init_step_context']); $steps[$iterator]['element'] = '{clippy}'; } } } $conf = null; if (isset($tours['tours'][$clippy])) { $conf = $tours['tours'][$clippy]['conf']; } if ($first_step_by_default) { if (empty($conf)) { // Get the first by default. $temp = reset($tours['tours']); $conf = $temp['conf']; } } if (!empty($steps)) { foreach ($steps as $iterator => $element) { $steps[$iterator]['intro'] = "
".__('%s assistant', get_product_name()).'
'.$steps[$iterator]['intro']; } if (!empty($conf['name_obj_js_tour'])) { $name_obj_js_tour = $conf['name_obj_js_tour']; } $autostart = true; if (isset($conf['autostart'])) { $autostart = $conf['autostart']; } $other_js = ''; if (!empty($conf['other_js'])) { $other_js = $conf['other_js']; } $exit_js = ''; if (!empty($conf['exit_js'])) { $exit_js = $conf['exit_js']; } $complete_js = ''; if (!empty($conf['complete_js'])) { $complete_js = $conf['complete_js']; } $show_bullets = 0; if (!empty($conf['show_bullets'])) { $show_bullets = (int) $conf['show_bullets']; } $show_step_numbers = 0; if (!empty($conf['show_step_numbers'])) { $show_step_numbers = (int) $conf['show_step_numbers']; } $doneLabel = __('End wizard'); if (!empty($conf['done_label'])) { $doneLabel = $conf['done_label']; } $skipLabel = __('End wizard'); if (!empty($conf['skip_label'])) { $skipLabel = $conf['skip_label']; } $help_context = false; ?> 'main_menu_icon invert_filter', 'style' => 'margin-left: -25px;', ] ); } else { $img = html_print_image( 'images/info-warning.svg', true, ['class' => 'main_menu_icon invert_filter'] ); } $return = $code.'
'.$img.'
'; return $return; }