function a360_warning_box($message, $errors, $extra) { echo ' <div class="a360-warning"> <h3>' . $message . '</h3> '; if (!empty($errors)) { echo ' <p>The error message was: <span style="color:#900;">' . htmlspecialchars($errors) . '</span>.</p> '; } echo $extra; echo a360_troubleshoot_message(); echo '</div>'; }
<li id="a360-create-account-tab">I need to create an account</li> <li id="a360-have-account-tab" class="a360-selected">I have an account</li> </ul> <h3 id="a360-connect-to-mailchimp-head" class="a360-subhead<?php echo $a360_has_key ? ' complete' : ''; ?> ">Connect to MailChimp</h3> <ul class="a360-tab-contents"> <li id="a360-have-account-content"> <?php if (isset($_GET['a360_mc_auth_error'])) { echo ' <div class="a360-warning"> <h3>Trouble! <strong>MailChimp authentication didn\'t work!</strong></h3> '; echo a360_troubleshoot_message(stripslashes($_GET['a360_mc_auth_error'])); echo ' </div> '; } ?> <form id="a360_mc_login_form" name="a360-settings-form" action="<?php echo admin_url('options-general.php'); ?> " method="post" autocomplete="off"> <input type="hidden" name="a360_action" value="update_mc_api_key" /> <input type="hidden" name="a360_nonce" value="<?php echo a360_create_nonce('update_mc_api_key'); ?> " /> <fieldset class="options">