Video Sidebar Widgets - Version 2.2

Version Description

Download this release

Release Info

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

Code changes from version 2.1 to 2.2

Files changed (2) hide show
  1. readme.txt +7 -4
  2. video-sidebar-widgets.php +32 -1
readme.txt CHANGED
@@ -2,14 +2,14 @@
2
  Contributors: denzel chia
3
  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
6
  Requires at least:2.8.1
7
- Tested up to: 2.8.3
8
- Stable tag:2.1
9
 
10
  == Description ==
11
 
12
- A Video Widget written in latest Widgets API. It enables the user to embed FlashVideo from various video sharing networks into the widgetised sidebar of a WordPress powered blog. Currently supporting video embed from 14 video sharing networks. Including, Youtube, Vimeo, Veoh, Blip.tv etc..
13
  Now including Random Video Sidebar Widget to randomly display 1 out of 5 preset video.
14
 
15
  == Changelog ==
@@ -31,6 +31,9 @@ Now including Random Video Sidebar Widget to randomly display 1 out of 5 preset
31
 
32
  *Video Caption has a style class of "VideoCaption" to enable user to indicate font-height etc.
33
 
 
 
 
34
 
35
 
36
  == Installation ==
2
  Contributors: denzel chia
3
  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
 
12
+ A Video Widget written in latest Widgets API. It enables the user to embed FlashVideo from various video sharing networks into the widgetised sidebar of a WordPress powered blog. Currently supporting video embed from 15 video sharing networks. Including, Youtube, Vimeo, Veoh, Blip.tv etc..
13
  Now including Random Video Sidebar Widget to randomly display 1 out of 5 preset video.
14
 
15
  == Changelog ==
31
 
32
  *Video Caption has a style class of "VideoCaption" to enable user to indicate font-height etc.
33
 
34
+ =2.2=
35
+
36
+ *Included support for Tangle.com videos
37
 
38
 
39
  == Installation ==
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.1
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/
@@ -137,6 +137,7 @@ class VideoSidebarWidget extends WP_Widget {
137
  <option value='Youku' <?php if($instance['v_source'] == 'Youku'){echo 'selected="selected"';}?> >Youku Video</option>
138
  <option value='cn6' <?php if($instance['v_source'] == 'cn6'){echo 'selected="selected"';}?> >6.cn Video</option>
139
  <option value='Google' <?php if($instance['v_source'] == 'Google'){echo 'selected="selected"';}?> >Google Video</option>
 
140
  </select>
141
  </p>
142
 
@@ -325,6 +326,17 @@ function ShowVideo($videosource,$videoid,$autoplaysetting,$videowidth,$videoheig
325
  $flashvar2 = 'FlashVars="autoPlay=true&playerMode=embedded"';
326
  }
327
  break;
 
 
 
 
 
 
 
 
 
 
 
328
 
329
  }
330
 
@@ -580,6 +592,20 @@ extract( $args );
580
  }
581
  $rv_cap = $Embed_cap;
582
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
583
 
584
  }
585
 
@@ -716,6 +742,7 @@ $instance = wp_parse_args( (array) $instance, array( 'RV_title' => '', 'RV_width
716
  <option value='Youku' <?php if($instance['RV_source1'] == 'Youku'){echo 'selected="selected"';}?> >Youku Video</option>
717
  <option value='cn6' <?php if($instance['RV_source1'] == 'cn6'){echo 'selected="selected"';}?> >6.cn Video</option>
718
  <option value='Google' <?php if($instance['RV_source1'] == 'Google'){echo 'selected="selected"';}?> >Google Video</option>
 
719
  </select>
720
  </p>
721
 
@@ -760,6 +787,7 @@ $instance = wp_parse_args( (array) $instance, array( 'RV_title' => '', 'RV_width
760
  <option value='Youku' <?php if($instance['RV_source2'] == 'Youku'){echo 'selected="selected"';}?> >Youku Video</option>
761
  <option value='cn6' <?php if($instance['RV_source2'] == 'cn6'){echo 'selected="selected"';}?> >6.cn Video</option>
762
  <option value='Google' <?php if($instance['RV_source2'] == 'Google'){echo 'selected="selected"';}?> >Google Video</option>
 
763
  </select>
764
  </p>
765
 
@@ -804,6 +832,7 @@ $instance = wp_parse_args( (array) $instance, array( 'RV_title' => '', 'RV_width
804
  <option value='Youku' <?php if($instance['RV_source3'] == 'Youku'){echo 'selected="selected"';}?> >Youku Video</option>
805
  <option value='cn6' <?php if($instance['RV_source3'] == 'cn6'){echo 'selected="selected"';}?> >6.cn Video</option>
806
  <option value='Google' <?php if($instance['RV_source3'] == 'Google'){echo 'selected="selected"';}?> >Google Video</option>
 
807
  </select>
808
  </p>
809
 
@@ -849,6 +878,7 @@ $instance = wp_parse_args( (array) $instance, array( 'RV_title' => '', 'RV_width
849
  <option value='Youku' <?php if($instance['RV_source4'] == 'Youku'){echo 'selected="selected"';}?> >Youku Video</option>
850
  <option value='cn6' <?php if($instance['RV_source4'] == 'cn6'){echo 'selected="selected"';}?> >6.cn Video</option>
851
  <option value='Google' <?php if($instance['RV_source4'] == 'Google'){echo 'selected="selected"';}?> >Google Video</option>
 
852
  </select>
853
  </p>
854
 
@@ -893,6 +923,7 @@ $instance = wp_parse_args( (array) $instance, array( 'RV_title' => '', 'RV_width
893
  <option value='Youku' <?php if($instance['RV_source5'] == 'Youku'){echo 'selected="selected"';}?> >Youku Video</option>
894
  <option value='cn6' <?php if($instance['RV_source5'] == 'cn6'){echo 'selected="selected"';}?> >6.cn Video</option>
895
  <option value='Google' <?php if($instance['RV_source5'] == 'Google'){echo 'selected="selected"';}?> >Google Video</option>
 
896
  </select>
897
  </p>
898
 
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/
137
  <option value='Youku' <?php if($instance['v_source'] == 'Youku'){echo 'selected="selected"';}?> >Youku Video</option>
138
  <option value='cn6' <?php if($instance['v_source'] == 'cn6'){echo 'selected="selected"';}?> >6.cn Video</option>
139
  <option value='Google' <?php if($instance['v_source'] == 'Google'){echo 'selected="selected"';}?> >Google Video</option>
140
+ <option value='Tangle' <?php if($instance['v_source'] == 'Tangle'){echo 'selected="selected"';}?> >Tangle Video</option>
141
  </select>
142
  </p>
143
 
326
  $flashvar2 = 'FlashVars="autoPlay=true&playerMode=embedded"';
327
  }
328
  break;
329
+
330
+ case Tangle:
331
+ $value = "http://www.tangle.com/flash/swf/flvplayer.swf";
332
+ if($v_autoplay2=='1'){
333
+ $flashvar = null;
334
+ $flashvar2 = "FlashVars=\"viewkey=$v_id2&autoplay=$v_autoplay2\"";
335
+ }else{
336
+ $flashvar = null;
337
+ $flashvar2 = "FlashVars=\"viewkey=$v_id2\"";
338
+ }
339
+ break;
340
 
341
  }
342
 
592
  }
593
  $rv_cap = $Embed_cap;
594
  break;
595
+
596
+ case Tangle:
597
+ $rv_value = "http://www.tangle.com/flash/swf/flvplayer.swf";
598
+ if($RV_autoplay=='1'){
599
+ $rv_flashvar = null;
600
+ $rv_flashvar2 = "FlashVars=\"viewkey=$Embed_id&autoplay=$RV_autoplay\"";
601
+ }else{
602
+ $rv_flashvar = null;
603
+ $rv_flashvar2 = "FlashVars=\"viewkey=$Embed_id\"";
604
+ }
605
+ $rv_cap = $Embed_cap;
606
+ break;
607
+
608
+
609
 
610
  }
611
 
742
  <option value='Youku' <?php if($instance['RV_source1'] == 'Youku'){echo 'selected="selected"';}?> >Youku Video</option>
743
  <option value='cn6' <?php if($instance['RV_source1'] == 'cn6'){echo 'selected="selected"';}?> >6.cn Video</option>
744
  <option value='Google' <?php if($instance['RV_source1'] == 'Google'){echo 'selected="selected"';}?> >Google Video</option>
745
+ <option value='Tangle' <?php if($instance['RV_source1'] == 'Tangle'){echo 'selected="selected"';}?> >Tangle Video</option>
746
  </select>
747
  </p>
748
 
787
  <option value='Youku' <?php if($instance['RV_source2'] == 'Youku'){echo 'selected="selected"';}?> >Youku Video</option>
788
  <option value='cn6' <?php if($instance['RV_source2'] == 'cn6'){echo 'selected="selected"';}?> >6.cn Video</option>
789
  <option value='Google' <?php if($instance['RV_source2'] == 'Google'){echo 'selected="selected"';}?> >Google Video</option>
790
+ <option value='Tangle' <?php if($instance['RV_source2'] == 'Tangle'){echo 'selected="selected"';}?> >Tangle Video</option>
791
  </select>
792
  </p>
793
 
832
  <option value='Youku' <?php if($instance['RV_source3'] == 'Youku'){echo 'selected="selected"';}?> >Youku Video</option>
833
  <option value='cn6' <?php if($instance['RV_source3'] == 'cn6'){echo 'selected="selected"';}?> >6.cn Video</option>
834
  <option value='Google' <?php if($instance['RV_source3'] == 'Google'){echo 'selected="selected"';}?> >Google Video</option>
835
+ <option value='Tangle' <?php if($instance['RV_source3'] == 'Tangle'){echo 'selected="selected"';}?> >Tangle Video</option>
836
  </select>
837
  </p>
838
 
878
  <option value='Youku' <?php if($instance['RV_source4'] == 'Youku'){echo 'selected="selected"';}?> >Youku Video</option>
879
  <option value='cn6' <?php if($instance['RV_source4'] == 'cn6'){echo 'selected="selected"';}?> >6.cn Video</option>
880
  <option value='Google' <?php if($instance['RV_source4'] == 'Google'){echo 'selected="selected"';}?> >Google Video</option>
881
+ <option value='Tangle' <?php if($instance['RV_source4'] == 'Tangle'){echo 'selected="selected"';}?> >Tangle Video</option>
882
  </select>
883
  </p>
884
 
923
  <option value='Youku' <?php if($instance['RV_source5'] == 'Youku'){echo 'selected="selected"';}?> >Youku Video</option>
924
  <option value='cn6' <?php if($instance['RV_source5'] == 'cn6'){echo 'selected="selected"';}?> >6.cn Video</option>
925
  <option value='Google' <?php if($instance['RV_source5'] == 'Google'){echo 'selected="selected"';}?> >Google Video</option>
926
+ <option value='Tangle' <?php if($instance['RV_source5'] == 'Tangle'){echo 'selected="selected"';}?> >Tangle Video</option>
927
  </select>
928
  </p>
929