var idTips = ['.$id.'];'; $output .= '
'; $output .= '
'; $output .= '

'.__('Hello! These are the tips of the day.').'

'; $output .= '

'.html_print_checkbox( 'show_tips_startup', true, true, true, false, 'show_tips_startup(this)', false, '', ($preview === true) ? '' : 'checkbox_tips_startup' ).__('Show usage tips at startup').'

'; $output .= '
'; $output .= ''; $output .= '
'; $output .= '

'.$title.'

'; $output .= '

'; $output .= $text; $output .= '

'; $disabled_class = 'disabled_button'; $disabled = true; if (empty($url) === false && $url !== '') { $disabled_class = ''; $disabled = false; } $output .= '
'; $output .= '
'; $output .= ''; $output .= html_print_button( __('Learn more'), 'learn_more', $disabled, '', ['class' => 'secondary mini '.$disabled_class], true ); $output .= ''; $output .= '
'; $output .= html_print_image('images/arrow-left-grey.png', true, ['class' => 'arrow_counter', 'onclick' => 'previous_tip()']); $output .= html_print_image('images/arrow-right-grey.png', true, ['class' => 'arrow_counter', 'onclick' => 'next_tip()']); $output .= html_print_input_hidden('tip_position', 0, true); $output .= '
'; if ($preview === true) { $output .= html_print_button( __('Close'), 'close_dialog', false, '', [ 'onclick' => 'close_dialog()', 'class' => 'mini', ], true ); } else { $output .= html_print_button( __('Close'), 'close_dialog', false, '', [ 'onclick' => 'close_dialog()', 'class' => ($totalTips === '1') ? 'mini hide-button' : 'mini', ], true ); } $output .= '
'; $output .= '
'; echo $output;