esc_html__( 'Adds list of top categories to the left or right sidebar in BlogSon WordPress theme. ', 'blogson'), ) // Args ); } /** * Front-end display of widget. * * @see WP_Widget::widget() * * @param array $args Widget arguments. * @param array $instance Saved values from database. */ public function widget( $args, $instance ) { extract( $args ); extract( wp_parse_args( $instance, $this->defaults ) ); $no_of_posts = ( ! empty( $instance['no_of_posts'] ) ) ? absint( $instance['no_of_posts'] ) : 3; $section_title = ! empty( $instance['section_title'] ) ? esc_html( $instance['section_title'] ) : ''; ?>