'amadeus_about', 'description' => __( 'About me widget.', 'amadeus' ), ); $control_ops = array( 'width' => 400, 'height' => 350, ); parent::__construct( 'amadeus_about', __( 'Amadeus: About me', 'amadeus' ), $widget_ops, $control_ops ); } /** * Outputs the content of the widget * * @param array $args Widget arguments. * @param array $instance Widget instance. */ public function widget( $args, $instance ) { $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ); $image_url = isset( $instance['image_url'] ) ? esc_url( $instance['image_url'] ) : ''; $text = apply_filters( 'widget_text', empty( $instance['text'] ) ? '' : $instance['text'], $instance ); if ( ! empty( $args['before_widget'] ) ) { echo $args['before_widget']; } if ( ! empty( $image_url ) ) { echo '
/>