'activello-recent-posts', 'description' => esc_html__( 'Activello recent posts widget with thumbnails', 'activello' ), ); parent::__construct( 'activello_recent_posts', esc_html__( 'Activello Recent Posts Widget','activello' ), $widget_ops ); } function widget( $args, $instance ) { $title = isset( $instance['title'] ) ? esc_html( $instance['title'] ) : esc_html__( 'Recent Posts', 'activello' ); $limit = isset( $instance['limit'] ) ? esc_html( $instance['limit'] ) : 5; echo $args['before_widget']; echo $args['before_title']; echo $title; echo $args['after_title']; /** * Widget Content */ ?>