'imagmag_themepacific_recent_category_widget','description' => __( 'A Widget to dispaly Category Posts With Thumbs', 'imagmag' )); $this->WP_Widget('tpcrn-cat-posts-widget', __( 'ThemePacific : Category Posts Widget', 'imagmag' ), $widget_ops); } /** * Display the widget */ function widget( $args, $instance ) { extract($args); $title = $instance['title']; $get_catego = $instance['get_catego']; $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). */ ?> __('Category Name ', 'ThemePacific '),'getnumpost' => '3','get_catego' => 'all'); $instance = wp_parse_args( (array) $instance, $defaults ); ?>