'272', 'title' => 'Video', 'videos' => array( array( 'title' => 'The Mountain', 'url' => 'http://vimeo.com/22439234/', 'type' => 'vimeo', 'videoid' => '22439234' ), array( 'title' => 'Amazing nature scenery', 'url' => 'http://www.youtube.com/watch?v=6v2L2UGZJAM', 'type' => 'youtube', 'videoid' => '6v2L2UGZJAM' ) ) ); class VideoFeed extends WP_Widget { function __construct(){ $widget_options = array('description' => 'Video Feed Box widget.' ); $control_options = array(); parent::__construct('VideoFeed', '» Video Feed', $widget_options, $control_options); } function widget($args, $instance){ extract( $args ); $title = apply_filters('widget_title', $instance['title']); $width = intval($instance['width']); $videos = $instance['videos']; if(is_array($videos)) { ?> get_field_id('this_id_videos')); $get_this_id = !$get_this_id ? 'this_id_videos___i__' : 'this_id_videos_' . $get_this_id; ?>

Add New Video
$video_source) { ?>

Preview Delete