Pages ($max_page): ";
if ($paged >= ($pages_to_show-1)) {
echo '
« First ... ';
}
previous_posts_link($prelabel);
for($i = $paged - $half_pages_to_show; $i <= $paged + $half_pages_to_show; $i++) {
if ($i >= 1 && $i <= $max_page) {
if($i == $paged) {
echo "
$i";
} else {
echo '
'.$i.' ';
}
}
}
next_posts_link($nxtlabel, $max_page);
if (($paged+$half_pages_to_show) < ($max_page)) {
echo ' ...
Last »';
}
echo "
$after";
}
}
}
/*
Plugin Name: Recent Comments
Plugin URI: http://mtdewvirus.com/code/wordpress-plugins/
Modified by Frostpress using WP's get_comments
*/
function dp_recent_comments() {
$comment_len = 43;
$comments = get_comments('number=6');
if ($comments) {
foreach ($comments as $comment) {
//ob_start();
?>