defaults = [ 'title' => '', 'video_id' => '', 'width' => 278, 'height' => 156 ]; $widget_options = [ 'classname' => 'vt-youtube-widget', 'description' => 'Bettet ein YouTube-Video in die Sidebar ein.' ]; $control_options = [ ]; parent::__construct( 'vt-youtube-widget', 'VT YouTube Widget', $widget_options, $control_options ); } public function widget( $args, $instance ) { /** Merge with defaults */ $instance = wp_parse_args( (array) $instance, $this->defaults ); echo $args['before_widget']; ?>