}
// Display / render
function widget_vfn_ascw($args) {
extract($args);
$options = get_option('widget_vfn_ascw');
$title = empty($options['title']) ? 'Akismet Spam Counter' : $options['title'];
$info = empty($options['info']) ? '!akismettotal! so far' : $options['info'];
//load tokens
$token['akismettotal'] = number_format_i18n(get_option('akismet_spam_count'));
$token['currentspam'] = count(get_comments(array('status' => 'spam')));
$token['approved'] = count(get_comments(array('status' => 'approve')));
$token['unapproved'] = count(get_comments(array('status' => 'hold')));
// Splice tokens into info
foreach($token as $key => $value) {
$info = str_replace("!$key!",$value,$info);
}
$info = str_replace("\n",'
',$info);
// Output
echo '$info\n";
}
?>