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 .= '

'; $link_class = 'invisible'; if (empty($url) === false && $url !== '') { $link_class = ''; } $output .= ''.__('See more info').''; $output .= '
'; $output .= '
'; $output .= html_print_button( __('Maybe later'), '', false, '', [ 'onclick' => 'close_dialog()', 'class' => 'secondary mini', ], true ); $output .= '
'; $output .= html_print_image('images/arrow-left-grey.png', true, ['class' => 'arrow_counter']); $output .= html_print_image('images/arrow-right-grey.png', true, ['class' => 'arrow_counter']); $output .= '
'; if ($preview === true) { $output .= html_print_button( __('Ok'), 'next_tip', false, '', [ 'onclick' => 'close_dialog()', 'class' => 'mini', ], true ); } else { $output .= html_print_button( __('Ok'), 'next_tip', false, '', [ 'onclick' => 'next_tip()', 'class' => ($totalTips === '1') ? 'mini hide-button' : 'mini', ], true ); } $output .= '
'; $output .= '
'; echo $output;