'post_list_widget comment_widget', 'description' => esc_html__('Displays recent comments.', 'nanopress') ); parent::__construct( 'nanopress_recent_comments_widget', esc_html__('jellywp: Recent Comments', 'nanopress'), $widget_ops); } /*-----------------------------------------------------------------------------------*/ /* Display Widget /*-----------------------------------------------------------------------------------*/ function widget( $args, $instance ) { extract( $args ); $title = apply_filters('widget_title', $instance['title'] ); print $before_widget; if ( $title ) print $before_title . esc_attr($title) . $after_title; ?>