true, 'classname' => 'anews_Recent_Posts_Widget', 'description' => esc_html__( 'Display Recent Posts with thumbnails', 'anews' ) ); parent::__construct( $widget_id, $widget_title, $widget_settings ); } // The widget form (for the backend ) public function form( $instance ) { // Set widget defaults $defaults = array( 'title' => esc_html__( 'Recent Posts', 'anews' ), 'anews_count' => 3, ); $instance = wp_parse_args( (array) $instance, $defaults ); ?>