esc_html__( 'Adds latest posts 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'] ) : ''; $category = ! empty( $instance['category'] ) ? esc_html( $instance['category'] ) : 'category'; $bytext = esc_html(get_theme_mod( 'blogson_highlighted_area_by_text', esc_html__('By','blogson'))).': '; ?>
esc_html__('-- Select -- ','blogson'),'name' => esc_attr($this->get_field_name( 'category' )), 'selected' => esc_attr($category) ) ); ?>