'',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
'
));
}
/** Comments */
if (function_exists('wp_list_comments')) {
// comment count
add_filter('get_comments_number', 'comment_count', 0);
function comment_count( $commentcount ) {
global $id;
$_comments = get_comments('post_id=' . $id);
$comments_by_type = &separate_comments($_comments);
return count($comments_by_type['comment']);
}
}
// custom comments
function custom_comments($comment, $args, $depth) {
$GLOBALS['comment'] = $comment;
global $commentcount;
if(!$commentcount) {
$commentcount = 0;
}
?>