'widget_agncy_breadcrumbs', 'description' => __( 'Display breadcrubs, if there is a compatible plugin active.', 'agncy' ), 'customize_selective_refresh' => true, ); $control_ops = array( 'width' => 400, 'height' => 350, ); parent::__construct( 'agncy_breadcrumbs', __( 'Breadcrumbs', 'agncy' ), $widget_ops, $control_ops ); } /** * Outputs the content for the current widget instance. * * @since 2.8.0 * @access public * * @param array $args Display arguments including 'before_title', 'after_title', * 'before_widget', and 'after_widget'. * @param array $instance Settings for the current Text widget 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 wp_kses_post( $args['before_widget'] ); if ( ! empty( $title ) ) { echo wp_kses_post( $args['before_title'] . $title . $args['after_title'] ); } ?>
'' ) ); $title = $instance['title']; ?>