__('Full size video widget (300 px width)', 'gdl_back_office'))); } // Output of the widget function widget($args, $instance) { global $wpdb; extract( $args ); $title = apply_filters( 'widget_title', $instance['title'] ); $source = apply_filters( 'widget_title', $instance['source'] ); $height = apply_filters( 'widget_title', $instance['height'] ); echo $before_widget; // Widget Title echo $before_title . $title . $after_title; echo '
'; get_video($source, 300, $height); echo '
'; // 1-1 Video Widget echo $after_widget; } // Widget Form function form($instance) { if ( $instance ) { $title = esc_attr( $instance[ 'title' ] ); $source = esc_attr( $instance[ 'source' ] ); $height = esc_attr( $instance[ 'height' ] ); } else { $title = ''; $source = ''; $height = 266; } ?>