Video Sidebar Widgets - Version 2.3

Version Description

Download this release

Release Info

Developer denzel_chia
Plugin Icon 128x128 Video Sidebar Widgets
Version 2.3
Comparing to
See all releases

Code changes from version 2.2 to 2.3

Files changed (2) hide show
  1. readme.txt +7 -2
  2. video-sidebar-widgets.php +19 -21
readme.txt CHANGED
@@ -4,8 +4,8 @@ Donate link: http://denzeldesigns.com/wordpress-plugins/video-sidebar-widgets/
4
  Author link: http://denzeldesigns.com
5
  Tags:video, widget, widgets, sidebar, videos, video sidebar widget, video widget, embed video, video embed, video in sidebar, youtube, vimeo, veoh, myspace video, revver, blip tv, tudou, youku, 6.cn, google videos, tangle
6
  Requires at least:2.8.1
7
- Tested up to: 2.8.4
8
- Stable tag:2.2
9
 
10
  == Description ==
11
 
@@ -35,6 +35,11 @@ Now including Random Video Sidebar Widget to randomly display 1 out of 5 preset
35
 
36
  *Included support for Tangle.com videos
37
 
 
 
 
 
 
38
 
39
  == Installation ==
40
 
4
  Author link: http://denzeldesigns.com
5
  Tags:video, widget, widgets, sidebar, videos, video sidebar widget, video widget, embed video, video embed, video in sidebar, youtube, vimeo, veoh, myspace video, revver, blip tv, tudou, youku, 6.cn, google videos, tangle
6
  Requires at least:2.8.1
7
+ Tested up to: 2.8.5
8
+ Stable tag:2.3
9
 
10
  == Description ==
11
 
35
 
36
  *Included support for Tangle.com videos
37
 
38
+ =2.3=
39
+
40
+ *Removed auto play video option for Blip.tv video, which is causing the video not to load in Internet Explorer.
41
+ *Allowed HTML links in video caption
42
+
43
 
44
  == Installation ==
45
 
video-sidebar-widgets.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Video Sidebar Widgets
4
  Plugin URI: http://denzeldesigns.com/wordpress-plugins/video-sidebar-widgets/
5
- Version: 2.2
6
  Description: A video sidebar widget using WordPress 2.8 Widgets API to display videos such as Vimeo, YouTube, MySpace Videos etc. Requires at least WordPress 2.8.1. Now including Random Video Sidebar Widget to randomly display 1 out of 5 preset video.
7
  Author: Denzel Chia
8
  Author URI: http://denzeldesigns.com/
@@ -79,7 +79,7 @@ class VideoSidebarWidget extends WP_Widget {
79
  $instance['v_autoplay2'] = strip_tags( $new_instance['v_autoplay2'] );
80
  $instance['v_id2'] = strip_tags( $new_instance['v_id2'] );
81
  $instance['v_source'] = strip_tags( $new_instance['v_source'] );
82
- $instance['v_cap2'] = strip_tags( $new_instance['v_cap2'] );
83
  return $instance;
84
 
85
  }//end of function update
@@ -97,7 +97,7 @@ class VideoSidebarWidget extends WP_Widget {
97
  $instance['v_autoplay2'] = strip_tags( $instance['v_autoplay2'] );
98
  $instance['v_id2'] = strip_tags( $instance['v_id2'] );
99
  $instance['v_source'] = strip_tags( $instance['v_source'] );
100
- $instance['v_cap2'] = strip_tags( $instance['v_cap2'] );
101
 
102
  //function to show video in widget admin form fixed width and height, please look for it below
103
  $autoplaysetting = '0';
@@ -186,6 +186,10 @@ class VideoSidebarWidget extends WP_Widget {
186
  echo $msg;
187
  break;
188
 
 
 
 
 
189
  case cn6:
190
  echo "<p>Sorry, auto play option not supported by 6.cn</p>";
191
  break;
@@ -257,10 +261,7 @@ function ShowVideo($videosource,$videoid,$autoplaysetting,$videowidth,$videoheig
257
  break;
258
 
259
  case Blip:
260
- if($v_autoplay2=='1'){
261
- $autoplay2 = "true";
262
- }else{$autoplay2 = "false";}
263
- $value = "http://blip.tv/play/$v_id2?autostart=$autoplay2";
264
  $flashvar = null;
265
  $flashvar2 = null;
266
  break;
@@ -513,10 +514,7 @@ extract( $args );
513
  break;
514
 
515
  case Blip:
516
- if($RV_autoplay=='1'){
517
- $R_autoplay2 = "true";
518
- }else{$R_autoplay2 = "false";}
519
- $rv_value = "http://blip.tv/play/$Embed_id?autostart=$R_autoplay2";
520
  $rv_flashvar = null;
521
  $rv_flashvar2 = null;
522
  $rv_cap = $Embed_cap;
@@ -638,19 +636,19 @@ function update( $new_instance, $old_instance ) {
638
  $instance['RV_autoplay'] = strip_tags( $new_instance['RV_autoplay'] );
639
  $instance['RV_id1'] = strip_tags( $new_instance['RV_id1'] );
640
  $instance['RV_source1'] = strip_tags( $new_instance['RV_source1'] );
641
- $instance['RV_cap1'] = strip_tags( $new_instance['RV_cap1'] );
642
  $instance['RV_id2'] = strip_tags( $new_instance['RV_id2'] );
643
  $instance['RV_source2'] = strip_tags( $new_instance['RV_source2'] );
644
- $instance['RV_cap2'] = strip_tags( $new_instance['RV_cap2'] );
645
  $instance['RV_id3'] = strip_tags( $new_instance['RV_id3'] );
646
  $instance['RV_source3'] = strip_tags( $new_instance['RV_source3'] );
647
- $instance['RV_cap3'] = strip_tags( $new_instance['RV_cap3'] );
648
  $instance['RV_id4'] = strip_tags( $new_instance['RV_id4'] );
649
  $instance['RV_source4'] = strip_tags( $new_instance['RV_source4'] );
650
- $instance['RV_cap4'] = strip_tags( $new_instance['RV_cap4'] );
651
  $instance['RV_id5'] = strip_tags( $new_instance['RV_id5'] );
652
  $instance['RV_source5'] = strip_tags( $new_instance['RV_source5'] );
653
- $instance['RV_cap5'] = strip_tags( $new_instance['RV_cap5'] );
654
  return $instance;
655
  }
656
 
@@ -664,19 +662,19 @@ $instance = wp_parse_args( (array) $instance, array( 'RV_title' => '', 'RV_width
664
  $instance['RV_autoplay'] = strip_tags( $instance['RV_autoplay'] );
665
  $instance['RV_id1'] = strip_tags( $instance['RV_id1'] );
666
  $instance['RV_source1'] = strip_tags( $instance['RV_source1'] );
667
- $instance['RV_cap1'] = strip_tags( $instance['RV_cap1'] );
668
  $instance['RV_id2'] = strip_tags( $instance['RV_id2'] );
669
  $instance['RV_source2'] = strip_tags( $instance['RV_source2'] );
670
- $instance['RV_cap2'] = strip_tags( $instance['RV_cap2'] );
671
  $instance['RV_id3'] = strip_tags( $instance['RV_id3'] );
672
  $instance['RV_source3'] = strip_tags( $instance['RV_source3'] );
673
- $instance['RV_cap3'] = strip_tags( $instance['RV_cap3'] );
674
  $instance['RV_id4'] = strip_tags( $instance['RV_id4'] );
675
  $instance['RV_source4'] = strip_tags( $instance['RV_source4'] );
676
- $instance['RV_cap4'] = strip_tags( $instance['RV_cap4'] );
677
  $instance['RV_id5'] = strip_tags( $instance['RV_id5'] );
678
  $instance['RV_source5'] = strip_tags( $instance['RV_source5'] );
679
- $instance['RV_cap5'] = strip_tags( $instance['RV_cap5'] );
680
 
681
 
682
  ?>
2
  /*
3
  Plugin Name: Video Sidebar Widgets
4
  Plugin URI: http://denzeldesigns.com/wordpress-plugins/video-sidebar-widgets/
5
+ Version: 2.3
6
  Description: A video sidebar widget using WordPress 2.8 Widgets API to display videos such as Vimeo, YouTube, MySpace Videos etc. Requires at least WordPress 2.8.1. Now including Random Video Sidebar Widget to randomly display 1 out of 5 preset video.
7
  Author: Denzel Chia
8
  Author URI: http://denzeldesigns.com/
79
  $instance['v_autoplay2'] = strip_tags( $new_instance['v_autoplay2'] );
80
  $instance['v_id2'] = strip_tags( $new_instance['v_id2'] );
81
  $instance['v_source'] = strip_tags( $new_instance['v_source'] );
82
+ $instance['v_cap2'] = $new_instance['v_cap2'];
83
  return $instance;
84
 
85
  }//end of function update
97
  $instance['v_autoplay2'] = strip_tags( $instance['v_autoplay2'] );
98
  $instance['v_id2'] = strip_tags( $instance['v_id2'] );
99
  $instance['v_source'] = strip_tags( $instance['v_source'] );
100
+ $instance['v_cap2'] = $instance['v_cap2'];
101
 
102
  //function to show video in widget admin form fixed width and height, please look for it below
103
  $autoplaysetting = '0';
186
  echo $msg;
187
  break;
188
 
189
+ case Blip:
190
+ echo "<p>Sorry, auto play option removed as it is causing error in Internet Explorer</p>";
191
+ break;
192
+
193
  case cn6:
194
  echo "<p>Sorry, auto play option not supported by 6.cn</p>";
195
  break;
261
  break;
262
 
263
  case Blip:
264
+ $value = "http://blip.tv/play/$v_id2";
 
 
 
265
  $flashvar = null;
266
  $flashvar2 = null;
267
  break;
514
  break;
515
 
516
  case Blip:
517
+ $rv_value = "http://blip.tv/play/$Embed_id";
 
 
 
518
  $rv_flashvar = null;
519
  $rv_flashvar2 = null;
520
  $rv_cap = $Embed_cap;
636
  $instance['RV_autoplay'] = strip_tags( $new_instance['RV_autoplay'] );
637
  $instance['RV_id1'] = strip_tags( $new_instance['RV_id1'] );
638
  $instance['RV_source1'] = strip_tags( $new_instance['RV_source1'] );
639
+ $instance['RV_cap1'] = $new_instance['RV_cap1'];
640
  $instance['RV_id2'] = strip_tags( $new_instance['RV_id2'] );
641
  $instance['RV_source2'] = strip_tags( $new_instance['RV_source2'] );
642
+ $instance['RV_cap2'] = $new_instance['RV_cap2'];
643
  $instance['RV_id3'] = strip_tags( $new_instance['RV_id3'] );
644
  $instance['RV_source3'] = strip_tags( $new_instance['RV_source3'] );
645
+ $instance['RV_cap3'] = $new_instance['RV_cap3'];
646
  $instance['RV_id4'] = strip_tags( $new_instance['RV_id4'] );
647
  $instance['RV_source4'] = strip_tags( $new_instance['RV_source4'] );
648
+ $instance['RV_cap4'] = $new_instance['RV_cap4'];
649
  $instance['RV_id5'] = strip_tags( $new_instance['RV_id5'] );
650
  $instance['RV_source5'] = strip_tags( $new_instance['RV_source5'] );
651
+ $instance['RV_cap5'] = $new_instance['RV_cap5'];
652
  return $instance;
653
  }
654
 
662
  $instance['RV_autoplay'] = strip_tags( $instance['RV_autoplay'] );
663
  $instance['RV_id1'] = strip_tags( $instance['RV_id1'] );
664
  $instance['RV_source1'] = strip_tags( $instance['RV_source1'] );
665
+ $instance['RV_cap1'] = $instance['RV_cap1'];
666
  $instance['RV_id2'] = strip_tags( $instance['RV_id2'] );
667
  $instance['RV_source2'] = strip_tags( $instance['RV_source2'] );
668
+ $instance['RV_cap2'] = $instance['RV_cap2'];
669
  $instance['RV_id3'] = strip_tags( $instance['RV_id3'] );
670
  $instance['RV_source3'] = strip_tags( $instance['RV_source3'] );
671
+ $instance['RV_cap3'] = $instance['RV_cap3'];
672
  $instance['RV_id4'] = strip_tags( $instance['RV_id4'] );
673
  $instance['RV_source4'] = strip_tags( $instance['RV_source4'] );
674
+ $instance['RV_cap4'] = $instance['RV_cap4'];
675
  $instance['RV_id5'] = strip_tags( $instance['RV_id5'] );
676
  $instance['RV_source5'] = strip_tags( $instance['RV_source5'] );
677
+ $instance['RV_cap5'] = $instance['RV_cap5'];
678
 
679
 
680
  ?>