'Rowling_Recent_Comments', 'description' => __('Displays recent comments with user avatars.', 'bsblog'), )); } function widget($args, $instance) { // Outputs the content of the widget extract($args); // Make before_widget, etc available. $widget_title = isset($instance['widget_title']) ? apply_filters('widget_title', $instance['widget_title']) : ''; $number_of_comments = !empty($instance['number_of_comments']) ? $instance['number_of_comments'] : 5; echo $before_widget; if ($widget_title) { echo $before_title . $widget_title . $after_title; } ?>
()