comments"; $request .= " JOIN $wpdb->posts ON ID = comment_post_ID"; $request .= " WHERE comment_approved = '1' AND post_status = 'publish' AND post_password =''"; $request .= " ORDER BY comment_date DESC LIMIT $no_comments"; $comments = $wpdb->get_results($request); if ($comments) { foreach ($comments as $comment) { ob_start(); ?>
  • : comment_content), 0, $comment_len)); ?>...
  • '.__('No comments', 'banago').''; } } function dp_get_author($comment) { $author = ""; if ( empty($comment->comment_author) ) $author = __('Anonymous', 'banago'); else $author = $comment->comment_author; return $author; } ?> '
    ', 'after_widget' => '
    ', 'before_title' => '', 'after_title' => '', )); ?>