diff -r 0d9a58d2c515 -r 0d28b7c10758 web/wp-content/themes/selecta/ocmx/widgets/ocmx-latest-comments.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/wp-content/themes/selecta/ocmx/widgets/ocmx-latest-comments.php Fri Mar 12 13:29:04 2010 +0000 @@ -0,0 +1,67 @@ + "Display the Latest Comments")); + } + + /** @see WP_Widget::widget */ + function widget($args, $instance) { + extract( $args ); + global $wpdb; + $comment_count = esc_attr($instance["comment_count"]); + $latest_comments = $wpdb->get_results($wpdb->prepare( "SELECT * FROM $wpdb->comments WHERE comment_approved = 1 ORDER BY comment_date DESC LIMIT ".$comment_count, "ARRAY_A") ); +?> +
  • +
    + + +
  • + +

    + + +

    +