'widget-popular-posts', 'description' => __( 'Displays popular posts', 'alternative') ); $control_ops = array('width' => 200, 'height' => 250); parent::__construct( false, $name=__('TF: Popular Posts','alternative'), $widget_ops, $control_ops ); } /** * Back-end widget form. * * @see WP_Widget::form() * */ public function form( $instance ) { $alternative_popular_posts = ! empty( $instance['alternative_popular_posts'] ) ? absint( $instance['alternative_popular_posts'] ) : 5; $alternative_popular_posts_title = ! empty( $instance['alternative_popular_posts_title'] ) ? esc_attr( $instance['alternative_popular_posts_title'] ) : ''; ?>