<inputtype="submit"class="aa_button"value="<?php esc_attr_e( 'Set up your Akismet account', 'akismet' ); ?>"/>
</div>
</div>
<divclass="aa_description"><?php_e('<strong>Almost done</strong> - configure Akismet and say goodbye to spam','akismet');?></div>
</div>
</form>
</div>
<?phpelseif($type=='spam-check'):?>
<divclass="notice notice-warning">
<p><strong><?phpesc_html_e('Akismet has detected a problem.','akismet');?></strong></p>
<p><?phpesc_html_e('Some comments have not yet been checked for spam by Akismet. They have been temporarily held for moderation and will automatically be rechecked later.','akismet');?></p>
<h3class="akismet-key-status failed"><?phpesc_html_e('Network functions are disabled.','akismet');?></h3>
<pclass="akismet-description"><?phpprintf(__('Your web host or server administrator has disabled PHP’s <code>gethostbynamel</code> function. <strong>Akismet cannot work correctly until this is fixed.</strong> Please contact your web host or firewall administrator and give them <a href="%s" target="_blank">this information about Akismet’s system requirements</a>.','akismet'),'https://blog.akismet.com/akismet-hosting-faq/');?></p>
</div>
<?phpelseif($type=='servers-be-down'):?>
<divclass="akismet-alert akismet-critical">
<h3class="akismet-key-status failed"><?phpesc_html_e("Your site can’t connect to the Akismet servers.",'akismet');?></h3>
<pclass="akismet-description"><?phpprintf(__('Your firewall may be blocking Akismet from connecting to its API. Please contact your host and refer to <a href="%s" target="_blank">our guide about firewalls</a>.','akismet'),'https://blog.akismet.com/akismet-hosting-faq/');?></p>
</div>
<?phpelseif($type=='active-dunning'):?>
<divclass="akismet-alert akismet-critical">
<h3class="akismet-key-status"><?phpesc_html_e("Please update your payment information.",'akismet');?></h3>
<pclass="akismet-description"><?phpprintf(__('We cannot process your payment. Please <a href="%s" target="_blank">update your payment details</a>.','akismet'),'https://akismet.com/account/');?></p>
</div>
<?phpelseif($type=='cancelled'):?>
<divclass="akismet-alert akismet-critical">
<h3class="akismet-key-status"><?phpesc_html_e("Your Akismet plan has been cancelled.",'akismet');?></h3>
<pclass="akismet-description"><?phpprintf(__('Please visit your <a href="%s" target="_blank">Akismet account page</a> to reactivate your subscription.','akismet'),'https://akismet.com/account/');?></p>
</div>
<?phpelseif($type=='suspended'):?>
<divclass="akismet-alert akismet-critical">
<h3class="akismet-key-status failed"><?phpesc_html_e("Your Akismet subscription is suspended.",'akismet');?></h3>
<pclass="akismet-description"><?phpprintf(__('Please contact <a href="%s" target="_blank">Akismet support</a> for assistance.','akismet'),'https://akismet.com/contact/');?></p>
<pclass="akismet-description"><?phpprintf(__('You can help us fight spam and upgrade your account by <a href="%s" target="_blank">contributing a token amount</a>.','akismet'),'https://akismet.com/account/upgrade/');?></p>
</div>
<?phpelseif($type=='missing'):?>
<divclass="akismet-alert akismet-critical">
<h3class="akismet-key-status failed"><?phpesc_html_e('There is a problem with your API key.','akismet');?></h3>
<pclass="akismet-description"><?phpprintf(__('Please contact <a href="%s" target="_blank">Akismet support</a> for assistance.','akismet'),'https://akismet.com/contact/');?></p>
</div>
<?phpelseif($type=='no-sub'):?>
<divclass="akismet-alert akismet-critical">
<h3class="akismet-key-status failed"><?phpesc_html_e('You don’t have an Akismet plan.','akismet');?></h3>
<pclass="akismet-description">
<?phpprintf(__('In 2012, Akismet began using subscription plans for all accounts (even free ones). A plan has not been assigned to your account, and we’d appreciate it if you’d <a href="%s" target="_blank">sign into your account</a> and choose one.','akismet'),'https://akismet.com/account/upgrade/');?>
<br/><br/>
<?phpprintf(__('Please <a href="%s" target="_blank">contact our support team</a> with any questions.','akismet'),'https://akismet.com/contact/');?>
</p>
</div>
<?phpelseif($type=='new-key-valid'):
global$wpdb;
$check_pending_link=false;
$at_least_one_comment_in_moderation=!!$wpdb->get_var("SELECT comment_ID FROM {$wpdb->comments} WHERE comment_approved = '0' LIMIT 1");
<h3class="akismet-key-status"><?phpesc_html_e('Akismet is now protecting your site from spam. Happy blogging!','akismet');?></h3>
<?phpif($check_pending_link){?>
<pclass="akismet-description"><?phpprintf(__('Would you like to <a href="%s">check pending comments</a>?','akismet'),esc_url($check_pending_link));?></p>
<?php}?>
</div>
<?phpelseif($type=='new-key-invalid'):?>
<divclass="akismet-alert akismet-critical">
<h3class="akismet-key-status"><?phpesc_html_e('The key you entered is invalid. Please double-check it.','akismet');?></h3>
</div>
<?phpelseif($type=='existing-key-invalid'):?>
<divclass="akismet-alert akismet-critical">
<h3class="akismet-key-status"><?phpesc_html_e('Your API key is no longer valid. Please enter a new key or contact support@akismet.com.','akismet');?></h3>
</div>
<?phpelseif($type=='new-key-failed'):?>
<divclass="akismet-alert akismet-critical">
<h3class="akismet-key-status"><?phpesc_html_e('The API key you entered could not be verified.','akismet');?></h3>
<pclass="akismet-description"><?phpprintf(__('The connection to akismet.com could not be established. Please refer to <a href="%s" target="_blank">our guide about firewalls</a> and check your server configuration.','akismet'),'https://blog.akismet.com/akismet-hosting-faq/');?></p>
<h3class="akismet-key-status failed"><?phpesc_html_e('You’re using your Akismet key on more sites than your Pro subscription allows.','akismet');?></h3>
<pclass="akismet-description">
<?phpprintf(__('Your Pro subscription allows the use of Akismet on only one site. Please <a href="%s" target="_blank">purchase additional Pro subscriptions</a> or upgrade to an Enterprise subscription that allows the use of Akismet on unlimited sites.','akismet'),'https://docs.akismet.com/billing/add-more-sites/');?>
<br/><br/>
<?phpprintf(__('Please <a href="%s" target="_blank">contact our support team</a> with any questions.','akismet'),'https://akismet.com/contact/');?>
</p>
<?phpelseif($level=='red'):?>
<h3class="akismet-key-status failed"><?phpesc_html_e('You’re using Akismet on far too many sites for your Pro subscription.','akismet');?></h3>
<pclass="akismet-description">
<?phpprintf(__('To continue your service, <a href="%s" target="_blank">upgrade to an Enterprise subscription</a>, which covers an unlimited number of sites.','akismet'),'https://akismet.com/account/upgrade/');?>
<br/><br/>
<?phpprintf(__('Please <a href="%s" target="_blank">contact our support team</a> with any questions.','akismet'),'https://akismet.com/contact/');?>
<p><?phpesc_html_e('To help your site with transparency under privacy laws like the GDPR, Akismet can display a notice to your users under your comment forms. This feature is disabled by default, however, you can turn it on below.','akismet');?></p>
<p><?phpprintf(__(' Please <a href="%s">enable</a> or <a href="%s">disable</a> this feature. <a href="%s" id="akismet-privacy-notice-control-notice-info-link" target="_blank">More information</a>.','akismet'),admin_url(apply_filters('akismet_comment_form_privacy_notice_url_display','options-general.php?page=akismet-key-config&akismet_comment_form_privacy_notice=display')),admin_url(apply_filters('akismet_comment_form_privacy_notice_url_hide','options-general.php?page=akismet-key-config&akismet_comment_form_privacy_notice=hide')),'https://akismet.com/privacy/');?></p>