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

', + ], + true + ), + ], + true + ); + + $output .= html_print_div( + [ + 'id' => 'newsletter_wizard', + 'style' => 'display: none;', + 'title' => __('Do you want to be up to date?'), + 'content' => $modalContent, + ], + true + ); // Verification modal. - $output .= ''; + $verificationContent = html_print_div( + [ + 'class' => 'font_12_20', + 'content' => __('Are you sure you don\'t want to subscribe?').'

'.__('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 .= ''; + $resultsContent = html_print_div( + [ + 'id' => 'news_result_content', + 'class' => 'font_12_20', + ], + true + ); + + $output .= html_print_div( + [ + 'id' => 'news_result', + 'style' => 'display: none;', + 'title' => 'Subscription process result', + 'content' => $resultsContent, + ], + true + ); ob_start(); ?>