'widget_posts', 'description' => __('A widget to show recent and latest posts, as well recent comments in sidebar.', 'gazpo') ); /* Create the widget */ $this->WP_Widget( 'gazpo_posts_tabs_widget', __('Recent and Popular Posts', 'gazpo'), $widget_ops ); } function widget( $args, $instance ) { extract( $args ); echo $before_widget; ?>
comment_content; $comment_excerpt = substr($comment_string,0,61); echo $comment_excerpt; if (strlen($comment_excerpt) > 60){ echo ' ...'; } echo '