Video Sidebar Widgets - Version 5.9

Version Description

  • Change to use PHP 5 constructor.
Download this release

Release Info

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

Code changes from version 5.8 to 5.9

class-postmetavideowidget.php CHANGED
@@ -7,13 +7,13 @@
7
  class PostMetaVideoWidget extends WP_Widget {
8
 
9
  //function to set up widget in admin
10
- function PostMetaVideoWidget() {
11
 
12
  $widget_ops = array( 'classname' => 'postmetavideo',
13
  'description' => __('A Video Widget that is controlled by Post or Page custom field settings.', 'postmetavideo') );
14
 
15
  $control_ops = array( 'width' => 200, 'height' => 350, 'id_base' => 'postmetavideo' );
16
- $this->WP_Widget( 'postmetavideo', __('Post Meta Video Widget', 'postmetavideo'), $widget_ops, $control_ops );
17
 
18
  }
19
 
7
  class PostMetaVideoWidget extends WP_Widget {
8
 
9
  //function to set up widget in admin
10
+ function __construct() {
11
 
12
  $widget_ops = array( 'classname' => 'postmetavideo',
13
  'description' => __('A Video Widget that is controlled by Post or Page custom field settings.', 'postmetavideo') );
14
 
15
  $control_ops = array( 'width' => 200, 'height' => 350, 'id_base' => 'postmetavideo' );
16
+ parent::__construct( 'postmetavideo', __('Post Meta Video Widget', 'postmetavideo'), $widget_ops, $control_ops );
17
 
18
  }
19
 
class-randomvideosidebarwidget.php CHANGED
@@ -6,10 +6,10 @@
6
 
7
  class RandomVideoSidebarWidget extends WP_Widget {
8
 
9
- function RandomVideoSidebarWidget() {
10
  $widget_ops = array( 'classname' => 'randomvideosidebar', 'description' => __('A Random Video Widget. Randomly selects 1 of the 5 preset videos for display', 'randomvideosidebar') );
11
  $control_ops = array( 'width' => 850, 'height' => 700, 'id_base' => 'randomvideosidebar' );
12
- $this->WP_Widget( 'randomvideosidebar', __('Random Video Sidebar Widget', 'randomvideosidebar'), $widget_ops, $control_ops );
13
  }
14
 
15
 
6
 
7
  class RandomVideoSidebarWidget extends WP_Widget {
8
 
9
+ function __construct(){
10
  $widget_ops = array( 'classname' => 'randomvideosidebar', 'description' => __('A Random Video Widget. Randomly selects 1 of the 5 preset videos for display', 'randomvideosidebar') );
11
  $control_ops = array( 'width' => 850, 'height' => 700, 'id_base' => 'randomvideosidebar' );
12
+ parent::__construct( 'randomvideosidebar', __('Random Video Sidebar Widget', 'randomvideosidebar'), $widget_ops, $control_ops );
13
  }
14
 
15
 
class-videosidebarwidget.php CHANGED
@@ -7,13 +7,13 @@
7
  class VideoSidebarWidget extends WP_Widget {
8
 
9
  //function to set up widget in admin
10
- function VideoSidebarWidget() {
11
 
12
  $widget_ops = array( 'classname' => 'videosidebar',
13
  'description' => __('A Video Widget to display video in sidebar from various video sharing networks', 'videosidebar') );
14
 
15
  $control_ops = array( 'width' => 200, 'height' => 350, 'id_base' => 'videosidebar' );
16
- $this->WP_Widget( 'videosidebar', __('Video Sidebar Widget', 'videosidebar'), $widget_ops, $control_ops );
17
 
18
  }
19
 
7
  class VideoSidebarWidget extends WP_Widget {
8
 
9
  //function to set up widget in admin
10
+ function __construct(){
11
 
12
  $widget_ops = array( 'classname' => 'videosidebar',
13
  'description' => __('A Video Widget to display video in sidebar from various video sharing networks', 'videosidebar') );
14
 
15
  $control_ops = array( 'width' => 200, 'height' => 350, 'id_base' => 'videosidebar' );
16
+ parent::__construct( 'videosidebar', __('Video Sidebar Widget', 'videosidebar'), $widget_ops, $control_ops );
17
 
18
  }
19
 
helper-functions.php CHANGED
@@ -184,7 +184,7 @@ if(!empty($source)): //do this only if video source not empty, to fix widget pag
184
 
185
  //determine admin video width.
186
  global $current_screen;
187
- if($current_screen->id == 'post' || $current_screen->id == 'page'){
188
  $admin_video_width = '250';
189
  $admin_video_height = '141';
190
  }else{
184
 
185
  //determine admin video width.
186
  global $current_screen;
187
+ if(@$current_screen->id == 'post' || @$current_screen->id == 'page'){
188
  $admin_video_width = '250';
189
  $admin_video_height = '141';
190
  }else{
readme.txt CHANGED
@@ -1,11 +1,11 @@
1
  === Video Sidebar Widgets ===
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: 4.2
8
- Stable tag:5.8
9
 
10
  == Description ==
11
 
@@ -15,44 +15,49 @@ Stable tag:5.8
15
  == Changelog ==
16
 
17
 
 
 
 
 
 
18
  = 5.8 =
19
 
20
- Let YouTube and Vimeo video print iframe embed code, the others remains unchanged.
21
- Now Youtube and Vimeo video plays in iOS.
22
- Use two forward slashes for Youtube and Vimeo video src as shown in their original embed code, therefore should work in both http and https environment.
23
- Some adjustments to admin layout. Thanks to qcdars for the pointers.
24
 
25
 
26
  = 5.7 =
27
 
28
- Added check to random video widget, do not print video caption p tags if user did not enter a video caption.
29
 
30
 
31
  = 5.6 =
32
 
33
- Corrected typo error for constant WP_PLUGIN_URL in vsw_tinymce.php
34
 
35
 
36
  = 5.5 =
37
 
38
- Previous YouTube autoplay fix does not work for some users. Redo it according to loSan and qcdars's solution http://wordpress.org/support/topic/cant-turn-off-autoplay
39
- Fix YouTube autoplay in Random Video Widget. (missed this in previous version 5.4)
40
 
41
 
42
  = 5.4 =
43
 
44
- Fix autoplay of YouTube Videos. The videos started autoplay probably due to a change in YouTube API.
45
 
46
 
47
  = 5.3 =
48
 
49
- Fix loading in widget page in IE 9
50
 
51
  = 5.2 =
52
 
53
- Replaced all null value to blank, to tackle an IE 9 bug reported by user.
54
- Solution provided by Ryan Willis. (Thanks!)
55
- Refer to http://wordpress.org/support/topic/plugin-video-sidebar-widgets-ie9-widget-administration-problem
56
 
57
  = 5.1 =
58
 
@@ -64,7 +69,7 @@ Refer to http://wordpress.org/support/topic/plugin-video-sidebar-widgets-ie9-wid
64
 
65
  = 4.1 =
66
 
67
- *Fixed WordPress Video in random video widget (Sorry forgotten about this!)
68
 
69
  = 4.0 =
70
 
@@ -74,33 +79,33 @@ Refer to http://wordpress.org/support/topic/plugin-video-sidebar-widgets-ie9-wid
74
 
75
  = 3.0 =
76
 
77
- *added video quicktag at post editor to insert video shortcode into post or page.
78
- *Shortcode to allow posting of video on post or page, using video function already available in plugin.
79
 
80
  = 2.3 =
81
 
82
- *Removed auto play video option for Blip.tv video, which is causing the video not to load in Internet Explorer.
83
- *Allowed HTML links in video caption
84
 
85
  = 2.2 =
86
 
87
- *Included support for Tangle.com videos
88
 
89
  = 2.1 =
90
 
91
- *re-arranged Random Video Sidebar Widget Layout
92
 
93
- *Included fixed size, no autoplay, video preview in widget form for easier identification of videos. Video will display after setting up and clicking save button. Video may not display due to slow connection, browser caching, wrong setting, or video removed from source.
94
 
95
- *Included support for google videos
96
 
97
- *Included Video Caption at bottom of Video
98
 
99
- *Video Caption has a style class of "VideoCaption" to enable user to indicate font-height etc.
100
 
101
  = 2.0 =
102
 
103
- *Included Random Video Sidebar Widget to randomly display 1 out of 5 preset video.
104
 
105
 
106
  == Installation ==
@@ -124,14 +129,38 @@ Refer to http://wordpress.org/support/topic/plugin-video-sidebar-widgets-ie9-wid
124
  As of version 3.0, shortcode is added to enable user to post video in content.
125
  User can use the video Quicktag at Tinymce editor to insert video shortcode.
126
 
 
 
 
 
 
 
127
  == How to use Video Sidebar Widget ? ==
128
 
129
- Please visit plugin site for details. http://denzeldesigns.com
 
 
130
 
131
 
132
  == How to use Random Video Sidebar Widget ? ==
133
 
134
- Please visit plugin site for details. http://denzeldesigns.com
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
135
 
136
 
137
  == Frequently Asked Questions ==
@@ -150,7 +179,7 @@ Random Video Sidebar Widget will not work on blogs that uses cache plugins. It i
150
 
151
  == Screenshots ==
152
 
153
- Please visit plugin site for video samples
154
 
155
 
156
 
1
  === Video Sidebar Widgets ===
2
  Contributors: denzel_chia
3
+ Donate link: https://github.com/denzelchia/Video-Sidebar-Widgets/wiki
4
+ Author link: https://github.com/denzelchia/
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: 4.5.3
8
+ Stable tag:5.9
9
 
10
  == Description ==
11
 
15
  == Changelog ==
16
 
17
 
18
+ = 5.9 =
19
+
20
+ * Change to use PHP 5 constructor.
21
+
22
+
23
  = 5.8 =
24
 
25
+ * Let YouTube and Vimeo video print iframe embed code, the others remains unchanged.
26
+ * Now Youtube and Vimeo video plays in iOS.
27
+ * Use two forward slashes for Youtube and Vimeo video src as shown in their original embed code, therefore should work in both http and https environment.
28
+ * Some adjustments to admin layout. Thanks to qcdars for the pointers.
29
 
30
 
31
  = 5.7 =
32
 
33
+ * Added check to random video widget, do not print video caption p tags if user did not enter a video caption.
34
 
35
 
36
  = 5.6 =
37
 
38
+ * Corrected typo error for constant WP_PLUGIN_URL in vsw_tinymce.php
39
 
40
 
41
  = 5.5 =
42
 
43
+ * Previous YouTube autoplay fix does not work for some users. Redo it according to loSan and qcdars's solution http://wordpress.org/support/topic/cant-turn-off-autoplay
44
+ * Fix YouTube autoplay in Random Video Widget. (missed this in previous version 5.4)
45
 
46
 
47
  = 5.4 =
48
 
49
+ * Fix autoplay of YouTube Videos. The videos started autoplay probably due to a change in YouTube API.
50
 
51
 
52
  = 5.3 =
53
 
54
+ * Fix loading in widget page in IE 9
55
 
56
  = 5.2 =
57
 
58
+ * Replaced all null value to blank, to tackle an IE 9 bug reported by user.
59
+ * Solution provided by Ryan Willis. (Thanks!)
60
+ * Refer to http://wordpress.org/support/topic/plugin-video-sidebar-widgets-ie9-widget-administration-problem
61
 
62
  = 5.1 =
63
 
69
 
70
  = 4.1 =
71
 
72
+ * Fixed WordPress Video in random video widget (Sorry forgotten about this!)
73
 
74
  = 4.0 =
75
 
79
 
80
  = 3.0 =
81
 
82
+ * added video quicktag at post editor to insert video shortcode into post or page.
83
+ * Shortcode to allow posting of video on post or page, using video function already available in plugin.
84
 
85
  = 2.3 =
86
 
87
+ * Removed auto play video option for Blip.tv video, which is causing the video not to load in Internet Explorer.
88
+ * Allowed HTML links in video caption
89
 
90
  = 2.2 =
91
 
92
+ * Included support for Tangle.com videos
93
 
94
  = 2.1 =
95
 
96
+ * re-arranged Random Video Sidebar Widget Layout
97
 
98
+ * Included fixed size, no autoplay, video preview in widget form for easier identification of videos. Video will display after setting up and clicking save button. Video may not display due to slow connection, browser caching, wrong setting, or video removed from source.
99
 
100
+ * Included support for google videos
101
 
102
+ * Included Video Caption at bottom of Video
103
 
104
+ * Video Caption has a style class of "VideoCaption" to enable user to indicate font-height etc.
105
 
106
  = 2.0 =
107
 
108
+ * Included Random Video Sidebar Widget to randomly display 1 out of 5 preset video.
109
 
110
 
111
  == Installation ==
129
  As of version 3.0, shortcode is added to enable user to post video in content.
130
  User can use the video Quicktag at Tinymce editor to insert video shortcode.
131
 
132
+ == Where to find Video ID ? ==
133
+
134
+ Please visit the following documentation
135
+
136
+ https://github.com/denzelchia/Video-Sidebar-Widgets/wiki#youtube-video-id
137
+
138
  == How to use Video Sidebar Widget ? ==
139
 
140
+ Please visit the following documentation
141
+
142
+ https://github.com/denzelchia/Video-Sidebar-Widgets/wiki#how-to-use-video-sidebar-widgets
143
 
144
 
145
  == How to use Random Video Sidebar Widget ? ==
146
 
147
+ Please visit the following documentation
148
+
149
+ https://github.com/denzelchia/Video-Sidebar-Widgets/wiki#how-to-use-random-video-widget
150
+
151
+
152
+ == How to use Post Meta Video Widget ? ==
153
+
154
+ Please visit the following documentation
155
+
156
+ https://github.com/denzelchia/Video-Sidebar-Widgets/wiki#how-to-use-post-meta-video-widget
157
+
158
+
159
+ == How to Embed Video in Post / Page Content? ==
160
+
161
+ Please visit the following documentation
162
+
163
+ https://github.com/denzelchia/Video-Sidebar-Widgets/wiki#embed-video-in-post--page-content
164
 
165
 
166
  == Frequently Asked Questions ==
179
 
180
  == Screenshots ==
181
 
182
+ Please visit plugin wiki for details. https://github.com/denzelchia/Video-Sidebar-Widgets/wiki
183
 
184
 
185
 
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: 5.8
6
  Description: Video Sidebar Widgets to display videos such as Vimeo, YouTube, MySpace Videos etc. Now with added shortcode and quicktag to embed video in post and page content.
7
  Author: Denzel Chia
8
  Author URI: http://denzeldesigns.com/
2
  /*
3
  Plugin Name: Video Sidebar Widgets
4
  Plugin URI: http://denzeldesigns.com/wordpress-plugins/video-sidebar-widgets/
5
+ Version: 5.9
6
  Description: Video Sidebar Widgets to display videos such as Vimeo, YouTube, MySpace Videos etc. Now with added shortcode and quicktag to embed video in post and page content.
7
  Author: Denzel Chia
8
  Author URI: http://denzeldesigns.com/