'fasto_categories_widget', 'description' => esc_attr__('Display categories and post count','fasto') ); /* Widget control settings. */ $control_ops = array( 'id_base' => 'fasto_categories_widget' ); /* Create the widget. */ parent::__construct( 'fasto_categories_widget', esc_attr__('Fasto categories','fasto'), $widget_ops, $control_ops ); } function widget( $args, $instance ) { $title = !empty($instance['title']) ? strip_tags(esc_attr($instance['title'])) : '' ; ?>