'entertainment-section widget"', 'description' => esc_html__( 'Add Widget to Display List Feature Style Widget.', 'buzz-magazine' ), 'customize_selective_refresh' => true, ); parent::__construct( 'buzz_magazine_single_feature_style', esc_html__( 'Buzz Magazine: Single Feature Style', 'buzz-magazine' ), $widget_ops ); } function form( $instance ) { $instance = wp_parse_args( (array) $instance, array( 'title' => esc_html__( 'Sports', 'buzz-magazine' ), 'category' => '', 'display_per_posts' => 5, 'display_category' => true, ) ); $title = isset( $instance['title'] ) ? esc_html( $instance['title'] ) : esc_html__( 'Business', 'buzz-magazine' ); $category = isset( $instance['category'] ) ? absint( $instance['category'] ) : 0; $display_per_posts = isset( $instance['display_per_posts'] ) ? absint( $instance['display_per_posts'] ) : 4; $display_category = isset( $instance['display_category'] ) ? (bool) $instance['display_category'] : true; ?>
'', 'class' => 'widefat', 'show_option_all' => esc_html__('From Recent Post','buzz-magazine'), 'name' => esc_attr($this->get_field_name( 'category' )), 'selected' => absint( $category ), ) ); ?>
id="get_field_id( 'display_category' )); ?>" name="get_field_name( 'display_category' )); ?>" />