'widget_calendar', 'description' => __( 'A calendar of your site’s Posts.') ); parent::__construct('calendar', __('Calendar'), $widget_ops); } /** * @param array $args * @param array $instance */ public function widget( $args, $instance ) { /** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */ $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ); echo $args['before_widget']; if ( $title ) { echo $args['before_title'] . $title . $args['after_title']; } if ( 0 === self::$instance ) { echo '