+// WP 2.5+
+function akismet_rightnow() {
+ global $submenu;
+ if ( isset( $submenu['edit-comments.php'] ) )
+ $link = 'edit-comments.php';
+ else
+ $link = 'edit.php';
+
+ if ( $count = get_option('akismet_spam_count') ) {
+ $intro = sprintf( __ngettext(
+ '<a href="%1$s">Akismet</a> has protected your site from %2$s spam comment already,',
+ '<a href="%1$s">Akismet</a> has protected your site from %2$s spam comments already,',
+ $count
+ ), 'http://akismet.com/', number_format_i18n( $count ) );
+ } else {
+ $intro = sprintf( __('<a href="%1$s">Akismet</a> blocks spam from getting to your blog,'), 'http://akismet.com/' );
+ }
+
+ if ( $queue_count = akismet_spam_count() ) {
+ $queue_text = sprintf( __ngettext(
+ 'and there\'s <a href="%2$s">%1$s comment</a> in your spam queue right now.',
+ 'and there are <a href="%2$s">%1$s comments</a> in your spam queue right now.',
+ $queue_count
+ ), number_format_i18n( $queue_count ), clean_url("$link?page=akismet-admin") );
+ } else {
+ $queue_text = sprintf( __( "but there's nothing in your <a href='%1\$s'>spam queue</a> at the moment." ), clean_url("$link?page=akismet-admin") );
+ }
+
+ $text = sprintf( _c( '%1$s %2$s|akismet_rightnow' ), $intro, $queue_text );
+
+ echo "<p class='akismet-right-now'>$text</p>\n";
+}
+
+add_action('rightnow_end', 'akismet_rightnow');