'bresponZive_themepacific_popular_posts_widget','description' => __( 'A Widget to dispaly Popular Posts With Thumbs', 'ThemePacific' )); $this->WP_Widget('tpcrn-popular-posts-widget', __( 'ThemePacific : Popular Posts Widget', 'ThemePacific' ), $widget_ops); } /** * Display the widget */ function widget( $args, $instance ) { extract($args); $title = $instance['title']; $getnumpost = $instance['getnumpost']; /* Before widget (defined by themes). */ echo $before_widget; if($title) echo $before_title . $title . $after_title; /* Display the widget title if one was input (before and after defined by themes). */ ?>