<?php
printf( __( 'Please <a href="%s" target="_blank">contact our support team</a> with any questions.', 'akismet'
), 'https://akismet.com/contact/'
); ?>
</p>
</div>
<?php
elseif ( $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"
);
if ( $at_least_one_comment_in_moderation) { $check_pending_link = 'edit-comments.php?akismet_recheck=' .
wp_create_nonce( 'akismet_recheck'
);
} ?>
<div class="akismet-alert akismet-active">
<h3 class="akismet-key-status"><?php
esc_html_e( 'Akismet is now protecting your site from spam. Happy blogging!', 'akismet'
); ?></h3>
<?php
if ( $check_pending_link ) { ?>
<p class="akismet-description"><?php
printf( __( 'Would you like to <a href="%s">check pending comments</a>?', 'akismet'
),
esc_url( $check_pending_link ) ); ?></p>
<?php
} ?>
</div>
<?php
elseif ( $type == 'new-key-invalid'
) : ?>
<div class="akismet-alert akismet-critical">
<h3 class="akismet-key-status"><?php
esc_html_e( 'The key you entered is invalid. Please double-check it.' , 'akismet'
); ?></h3>
</div>