'widget-Popular-posts', 'description' => __( 'Displays popular posts with featured images', 'amathambo' ), ); $control_ops = array( 'width' => 200, 'height' => 250, ); parent::__construct( false, $name = __( 'Amathambo Popular Posts','amathambo' ), $widget_ops, $control_ops ); } /** * Back-end widget form. * * @see WP_Widget::form(). * @param int $instance instance of the form. */ public function form( $instance ) { $amathambo_popular_posts = ! empty( $instance['amathambo_popular_posts'] ) ? absint( $instance['amathambo_popular_posts'] ) : 5; $amathambo_popular_posts_title = ! empty( $instance['amathambo_popular_posts_title'] ) ? esc_attr( $instance['amathambo_popular_posts_title'] ) : ''; ?>