diff --git a/pandora_console/include/functions_update_manager.php b/pandora_console/include/functions_update_manager.php index 3c9d23f86c..0b9e755c1d 100755 --- a/pandora_console/include/functions_update_manager.php +++ b/pandora_console/include/functions_update_manager.php @@ -755,43 +755,47 @@ function newsletter_wiz_modal( ); // Avoid to show default email. - if ($email == 'admin@example.com') { + if ($email === 'admin@example.com') { $email = ''; } - $output .= '
'; + // OK Button. + $submitButtons .= html_print_div( + [ + 'class' => 'right', + 'content' => html_print_submit_button( + __('OK!'), + 'newsletter', + false, + 'class="ui-widget ui-state-default ui-corner-all ui-button-text-only sub ok submit-next w100px"', + true + ), + ], + true + ); + + $submitButtonsCase = html_print_div( + [ + 'class' => 'submit_buttons_container', + 'content' => $submitButtons, + ], + true + ); + + $modalContent .= html_print_div( + [ + 'class' => 'mrgn_lft_4em', + 'content' => html_print_div( + [ + 'id' => 'box_newsletter', + 'content' => $emailInputCase.$submitButtonsCase.''; - $output .= __('You will miss all news about amazing features and fixes!'); - $output .= '
'; - $output .= ''.__('You will miss all news about amazing features and fixes!').'
', + ], + true + ); + + $output .= html_print_div( + [ + 'id' => 'news_ensure_cancel', + 'style' => 'display: none;', + 'title' => 'Confirmation Required', + 'content' => $verificationContent, + ], + true + ); // Results modal. - $output .= '