'ascendoor-widget category-section', 'description' => __( 'Retrive Categories Widgets', 'ascendoor-blog' ), ); parent::__construct( 'ascendoor_blog_category_widget', __( 'Ascendoor Categories Widget', 'ascendoor-blog' ), $ascendoor_blog_category_widget_ops ); } /** * Front-end display of widget. * * @see WP_Widget::widget() * @param array $args Widget arguments. * @param array $instance Saved values from database. */ public function widget( $args, $instance ) { if ( ! isset( $args['widget_id'] ) ) { $args['widget_id'] = $this->id; } $category_title = ( ! empty( $instance['title'] ) ) ? $instance['title'] : ''; $category_title = apply_filters( 'widget_title', $category_title, $instance, $this->id_base ); echo $args['before_widget']; if ( ! empty( $category_title ) ) { ?>
name ) ) { ?>
name ); ?> count ); ?>