Version Description
Let YouTube and Vimeo video print iframe embed code, the others remains unchanged. Now Youtube and Vimeo video plays in iOS. 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. Some adjustments to admin layout. Thanks to qcdars for the pointers.
Download this release
Release Info
Developer | denzel_chia |
Plugin | Video Sidebar Widgets |
Version | 5.8 |
Comparing to | |
See all releases |
Code changes from version 5.7 to 5.8
- class-postmetavideowidget.php +1 -1
- class-randomvideosidebarwidget.php +49 -27
- helper-functions.php +115 -43
- readme.txt +11 -2
- video-sidebar-widgets.php +1 -1
- vsw_admin_settings.php +0 -1
- vsw_tinymce/vsw_dialog.htm +2 -2
class-postmetavideowidget.php
CHANGED
@@ -293,7 +293,7 @@ function vsw_save_postdata( $post_id ){
|
|
293 |
// verify this came from the our screen and with proper authorization,
|
294 |
// because save_post can be triggered at other times
|
295 |
|
296 |
-
if (
|
297 |
return;
|
298 |
|
299 |
|
293 |
// verify this came from the our screen and with proper authorization,
|
294 |
// because save_post can be triggered at other times
|
295 |
|
296 |
+
if ( @!wp_verify_nonce( $_POST['vsw_noncename'], plugin_basename( __FILE__ ) ) )
|
297 |
return;
|
298 |
|
299 |
|
class-randomvideosidebarwidget.php
CHANGED
@@ -8,7 +8,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' =>
|
12 |
$this->WP_Widget( 'randomvideosidebar', __('Random Video Sidebar Widget', 'randomvideosidebar'), $widget_ops, $control_ops );
|
13 |
}
|
14 |
|
@@ -102,7 +102,8 @@ extract( $args );
|
|
102 |
$rv_flashvar2 = "";
|
103 |
$rv_cap = "";
|
104 |
break;
|
105 |
-
|
|
|
106 |
case 'YouTube':
|
107 |
//Youtube changed API.
|
108 |
//Now needs to add a ? in embed url before the variables.
|
@@ -118,7 +119,7 @@ extract( $args );
|
|
118 |
$rv_flashvar2 = "";
|
119 |
$rv_cap = $Embed_cap;
|
120 |
break;
|
121 |
-
|
122 |
case 'MySpace':
|
123 |
$rv_value = "http://mediaservices.myspace.com/services/media/embed.aspx/m=$Embed_id,t=1,mt=video,ap=$RV_autoplay";
|
124 |
$rv_flashvar = "";
|
@@ -227,22 +228,41 @@ extract( $args );
|
|
227 |
|
228 |
|
229 |
}
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
246 |
|
247 |
|
248 |
echo $after_widget;
|
@@ -299,8 +319,10 @@ $instance = wp_parse_args( (array) $instance, array( 'RV_title' => '', 'RV_width
|
|
299 |
|
300 |
|
301 |
?>
|
302 |
-
<div style="width:
|
303 |
<h2>General Settings</h2>
|
|
|
|
|
304 |
<!--Title -->
|
305 |
<p>
|
306 |
<label for="<?php echo $this->get_field_id('RV_title'); ?>">Widget Title:</label>
|
@@ -321,16 +343,16 @@ $instance = wp_parse_args( (array) $instance, array( 'RV_title' => '', 'RV_width
|
|
321 |
|
322 |
<!--auto play -->
|
323 |
<p>
|
324 |
-
<label for="<?php echo $this->get_field_id( 'RV_autoplay' ); ?>">Auto Play
|
325 |
<select id="<?php echo $this->get_field_id( 'RV_autoplay' );?>" name="<?php echo $this->get_field_name( 'RV_autoplay' );?>" class="widefat" style="width:100%;">';
|
326 |
<option value='1' <?php if($instance['RV_autoplay'] == '1'){echo 'selected="selected"';}?>>Yes</option>
|
327 |
<option value='0' <?php if($instance['RV_autoplay'] == '0'){echo 'selected="selected"';}?>>No</option>
|
328 |
</select>
|
329 |
</p>
|
330 |
-
<p>
|
331 |
</div>
|
332 |
|
333 |
-
<div style="width:
|
334 |
<!--first video setting -->
|
335 |
<h2>Video 1</h2>
|
336 |
<?php
|
@@ -374,7 +396,7 @@ $instance = wp_parse_args( (array) $instance, array( 'RV_title' => '', 'RV_width
|
|
374 |
<input class="widefat" id="<?php echo $this->get_field_id('RV_cap1'); ?>" name="<?php echo $this->get_field_name('RV_cap1'); ?>" type="text" value="<?php echo $instance['RV_cap1']; ?>" /></p>
|
375 |
|
376 |
</div>
|
377 |
-
<div style="width:
|
378 |
|
379 |
<!--second video setting -->
|
380 |
<h2>Video 2</h2>
|
@@ -421,7 +443,7 @@ $instance = wp_parse_args( (array) $instance, array( 'RV_title' => '', 'RV_width
|
|
421 |
<input class="widefat" id="<?php echo $this->get_field_id('RV_cap2'); ?>" name="<?php echo $this->get_field_name('RV_cap2'); ?>" type="text" value="<?php echo $instance['RV_cap2']; ?>" /></p>
|
422 |
|
423 |
</div>
|
424 |
-
<div style="width:
|
425 |
|
426 |
<!--third video setting -->
|
427 |
<h2>Video 3</h2>
|
@@ -467,7 +489,7 @@ $instance = wp_parse_args( (array) $instance, array( 'RV_title' => '', 'RV_width
|
|
467 |
|
468 |
|
469 |
</div>
|
470 |
-
<div style="width:
|
471 |
|
472 |
<!--fourth video setting -->
|
473 |
<h2>Video 4</h2>
|
@@ -512,7 +534,7 @@ $instance = wp_parse_args( (array) $instance, array( 'RV_title' => '', 'RV_width
|
|
512 |
<input class="widefat" id="<?php echo $this->get_field_id('RV_cap4'); ?>" name="<?php echo $this->get_field_name('RV_cap4'); ?>" type="text" value="<?php echo $instance['RV_cap4']; ?>" /></p>
|
513 |
|
514 |
</div>
|
515 |
-
<div style="width:
|
516 |
|
517 |
<!--fifth video setting -->
|
518 |
<h2>Video 5</h2>
|
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 |
|
102 |
$rv_flashvar2 = "";
|
103 |
$rv_cap = "";
|
104 |
break;
|
105 |
+
|
106 |
+
/** @since 5.8 we are not using this anymore..
|
107 |
case 'YouTube':
|
108 |
//Youtube changed API.
|
109 |
//Now needs to add a ? in embed url before the variables.
|
119 |
$rv_flashvar2 = "";
|
120 |
$rv_cap = $Embed_cap;
|
121 |
break;
|
122 |
+
**/
|
123 |
case 'MySpace':
|
124 |
$rv_value = "http://mediaservices.myspace.com/services/media/embed.aspx/m=$Embed_id,t=1,mt=video,ap=$RV_autoplay";
|
125 |
$rv_flashvar = "";
|
228 |
|
229 |
|
230 |
}
|
231 |
+
|
232 |
+
|
233 |
+
if($select_source == 'YouTube'):
|
234 |
+
/*This is the latest embed iframe code format, we use it now.
|
235 |
+
/*<iframe width="560" height="315" src="//www.youtube.com/embed/OMOVFvcNfvE" frameborder="0" allowfullscreen></iframe>
|
236 |
+
*/
|
237 |
+
echo "<iframe width='$RV_width' height='$RV_height' src='//www.youtube.com/embed/$Embed_id?autoplay=$RV_autoplay&loop=0&rel=0' frameborder='0' allowfullscreen></iframe>";
|
238 |
+
if(!empty($Embed_cap)){echo "<p class=\"VideoCaption\">$Embed_cap</p>\n\n";};
|
239 |
+
|
240 |
+
|
241 |
+
elseif($select_source == 'Vimeo'):
|
242 |
+
/*This is the latest embed iframe code format, we use it now.
|
243 |
+
*<iframe src="//player.vimeo.com/video/113758779" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
|
244 |
+
*/
|
245 |
+
echo "<br/><iframe src='//player.vimeo.com/video/$Embed_id?autoplay=$RV_autoplay' width='$RV_width' height='$RV_height' frameborder='0' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>";
|
246 |
+
if(!empty($Embed_cap)){echo "<p class=\"VideoCaption\">$Embed_cap</p>\n\n";};
|
247 |
+
|
248 |
+
else:
|
249 |
+
|
250 |
+
|
251 |
+
echo "\n<object width=\"$RV_width\" height=\"$RV_height\">\n";
|
252 |
+
echo $rv_flashvar;
|
253 |
+
echo "<param name=\"allowfullscreen\" value=\"true\" />\n";
|
254 |
+
echo "<param name=\"allowscriptaccess\" value=\"always\" />\n";
|
255 |
+
echo "<param name=\"movie\" value=\"$rv_value\" />\n";
|
256 |
+
echo "<param name=\"wmode\" value=\"transparent\">\n";
|
257 |
+
echo "<embed src=\"$rv_value\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" ";
|
258 |
+
echo "allowfullscreen=\"true\" allowscriptaccess=\"always\" ";
|
259 |
+
echo $rv_flashvar2;
|
260 |
+
echo "width=\"$RV_width\" height=\"$RV_height\">\n";
|
261 |
+
echo "</embed>\n";
|
262 |
+
echo "</object>\n\n";
|
263 |
+
if(!empty($rv_cap)){echo "<p class=\"VideoCaption\">$rv_cap</p>\n\n";};
|
264 |
+
|
265 |
+
endif;
|
266 |
|
267 |
|
268 |
echo $after_widget;
|
319 |
|
320 |
|
321 |
?>
|
322 |
+
<div style="width:400px;height:400px;float:left;margin:0px 15px 20px 5px">
|
323 |
<h2>General Settings</h2>
|
324 |
+
<br/>
|
325 |
+
<p class='description' style='padding-left:0px !important'>Please fill up settings before clicking on save to display video.</p>
|
326 |
<!--Title -->
|
327 |
<p>
|
328 |
<label for="<?php echo $this->get_field_id('RV_title'); ?>">Widget Title:</label>
|
343 |
|
344 |
<!--auto play -->
|
345 |
<p>
|
346 |
+
<label for="<?php echo $this->get_field_id( 'RV_autoplay' ); ?>">Auto Play: </label>
|
347 |
<select id="<?php echo $this->get_field_id( 'RV_autoplay' );?>" name="<?php echo $this->get_field_name( 'RV_autoplay' );?>" class="widefat" style="width:100%;">';
|
348 |
<option value='1' <?php if($instance['RV_autoplay'] == '1'){echo 'selected="selected"';}?>>Yes</option>
|
349 |
<option value='0' <?php if($instance['RV_autoplay'] == '0'){echo 'selected="selected"';}?>>No</option>
|
350 |
</select>
|
351 |
</p>
|
352 |
+
<p class='description' style='padding-left:0px !important'>Autoplay is for front end only, does not autoplay in admin. Applies to all widgets.</p>
|
353 |
</div>
|
354 |
|
355 |
+
<div style="width:400px;height:500px;float:left;margin:0px 15px 20px 0px">
|
356 |
<!--first video setting -->
|
357 |
<h2>Video 1</h2>
|
358 |
<?php
|
396 |
<input class="widefat" id="<?php echo $this->get_field_id('RV_cap1'); ?>" name="<?php echo $this->get_field_name('RV_cap1'); ?>" type="text" value="<?php echo $instance['RV_cap1']; ?>" /></p>
|
397 |
|
398 |
</div>
|
399 |
+
<div style="width:400px;height:500px;float:left;margin:0px 15px 20px 0px">
|
400 |
|
401 |
<!--second video setting -->
|
402 |
<h2>Video 2</h2>
|
443 |
<input class="widefat" id="<?php echo $this->get_field_id('RV_cap2'); ?>" name="<?php echo $this->get_field_name('RV_cap2'); ?>" type="text" value="<?php echo $instance['RV_cap2']; ?>" /></p>
|
444 |
|
445 |
</div>
|
446 |
+
<div style="width:400px;height:500px;float:left;margin:0px 15px 20px 0px">
|
447 |
|
448 |
<!--third video setting -->
|
449 |
<h2>Video 3</h2>
|
489 |
|
490 |
|
491 |
</div>
|
492 |
+
<div style="width:400px;height:500px;float:left;margin:0px 15px 20px 5px">
|
493 |
|
494 |
<!--fourth video setting -->
|
495 |
<h2>Video 4</h2>
|
534 |
<input class="widefat" id="<?php echo $this->get_field_id('RV_cap4'); ?>" name="<?php echo $this->get_field_name('RV_cap4'); ?>" type="text" value="<?php echo $instance['RV_cap4']; ?>" /></p>
|
535 |
|
536 |
</div>
|
537 |
+
<div style="width:400px;height:500px;float:left;margin:0px 15px 20px 0px">
|
538 |
|
539 |
<!--fifth video setting -->
|
540 |
<h2>Video 5</h2>
|
helper-functions.php
CHANGED
@@ -31,7 +31,8 @@ if(!empty($source)): //do this only if video source not empty, to fix widget pag
|
|
31 |
$flashvar = "";
|
32 |
$flashvar2 = "";
|
33 |
break;
|
34 |
-
|
|
|
35 |
case 'YouTube':
|
36 |
//Youtube changed API.
|
37 |
//previous modification in version 5.4 does not work for some user, hope this works for everyone.
|
@@ -46,6 +47,7 @@ if(!empty($source)): //do this only if video source not empty, to fix widget pag
|
|
46 |
$flashvar = "";
|
47 |
$flashvar2 = "";
|
48 |
break;
|
|
|
49 |
|
50 |
case 'MySpace':
|
51 |
$value = "http://mediaservices.myspace.com/services/media/embed.aspx/m=$v_id2,t=1,mt=video,ap=$v_autoplay2";
|
@@ -142,52 +144,122 @@ if(!empty($source)): //do this only if video source not empty, to fix widget pag
|
|
142 |
}
|
143 |
|
144 |
if($shortcode=="true"){
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
}
|
161 |
elseif($admin=="true"){
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
175 |
|
176 |
}else{
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
191 |
}
|
192 |
endif;
|
193 |
|
31 |
$flashvar = "";
|
32 |
$flashvar2 = "";
|
33 |
break;
|
34 |
+
|
35 |
+
/** @since 5.8 we are not using this anymore.. it been quite a while that I made an update!
|
36 |
case 'YouTube':
|
37 |
//Youtube changed API.
|
38 |
//previous modification in version 5.4 does not work for some user, hope this works for everyone.
|
47 |
$flashvar = "";
|
48 |
$flashvar2 = "";
|
49 |
break;
|
50 |
+
**/
|
51 |
|
52 |
case 'MySpace':
|
53 |
$value = "http://mediaservices.myspace.com/services/media/embed.aspx/m=$v_id2,t=1,mt=video,ap=$v_autoplay2";
|
144 |
}
|
145 |
|
146 |
if($shortcode=="true"){
|
147 |
+
|
148 |
+
if($source == 'YouTube'):
|
149 |
+
/*This is the latest embed iframe code format, we use it now.
|
150 |
+
/*<iframe width="560" height="315" src="//www.youtube.com/embed/OMOVFvcNfvE" frameborder="0" allowfullscreen></iframe>
|
151 |
+
*/
|
152 |
+
return "<iframe width='$v_width2' height='$v_height2' src='//www.youtube.com/embed/$v_id2?autoplay=$v_autoplay2&loop=0&rel=0' frameborder='0' allowfullscreen></iframe>";
|
153 |
+
|
154 |
+
|
155 |
+
elseif($source == 'Vimeo'):
|
156 |
+
/*This is the latest embed iframe code format, we use it now.
|
157 |
+
*<iframe src="//player.vimeo.com/video/113758779" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
|
158 |
+
*/
|
159 |
+
return "<iframe src='//player.vimeo.com/video/$v_id2?autoplay=$v_autoplay2' width='$v_width2' height='$v_height2' frameborder='0' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>";
|
160 |
+
|
161 |
+
|
162 |
+
else:
|
163 |
+
|
164 |
+
//added in version 2.3
|
165 |
+
//return instead of echo video on blog using shortcode
|
166 |
+
$vsw_code = "\n<object width=\"$v_width2\" height=\"$v_height2\">\n";
|
167 |
+
$vsw_code .= $flashvar;
|
168 |
+
$vsw_code .= "<param name=\"allowfullscreen\" value=\"true\" />\n";
|
169 |
+
$vsw_code .= "<param name=\"allowscriptaccess\" value=\"always\" />\n";
|
170 |
+
$vsw_code .= "<param name=\"movie\" value=\"$value\" />\n";
|
171 |
+
$vsw_code .= "<param name=\"wmode\" value=\"transparent\">\n";
|
172 |
+
$vsw_code .= "<embed src=\"$value\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" ";
|
173 |
+
$vsw_code .= "allowfullscreen=\"true\" allowscriptaccess=\"always\" ";
|
174 |
+
$vsw_code .= $flashvar2;
|
175 |
+
$vsw_code .= "width=\"$v_width2\" height=\"$v_height2\">\n";
|
176 |
+
$vsw_code .= "</embed>\n";
|
177 |
+
$vsw_code .= "</object>\n\n";
|
178 |
+
return $vsw_code;
|
179 |
+
|
180 |
+
endif;
|
181 |
+
|
182 |
}
|
183 |
elseif($admin=="true"){
|
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{
|
191 |
+
$admin_video_width = '400';
|
192 |
+
$admin_video_height = '225';
|
193 |
+
}
|
194 |
+
|
195 |
+
|
196 |
+
if($source == 'YouTube'):
|
197 |
+
/*This is the latest embed iframe code format, we use it now.
|
198 |
+
/*<iframe width="560" height="315" src="//www.youtube.com/embed/OMOVFvcNfvE" frameborder="0" allowfullscreen></iframe>
|
199 |
+
*/
|
200 |
+
echo "<br/><iframe width='$admin_video_width' height='$admin_video_height' src='//www.youtube.com/embed/$v_id2?autoplay=0&loop=0&rel=0' frameborder='0' allowfullscreen></iframe>";
|
201 |
+
|
202 |
+
|
203 |
+
elseif($source == 'Vimeo'):
|
204 |
+
/*This is the latest embed iframe code format, we use it now.
|
205 |
+
*<iframe src="//player.vimeo.com/video/113758779" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
|
206 |
+
*/
|
207 |
+
echo "<br/><iframe src='//player.vimeo.com/video/$v_id2?autoplay=0' width='$admin_video_width' height='$admin_video_height' frameborder='0' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>";
|
208 |
+
|
209 |
+
|
210 |
+
else:
|
211 |
+
|
212 |
+
// echo video in admin
|
213 |
+
echo "<br/><object width=\"$admin_video_width\" height=\"$admin_video_height\">\n";
|
214 |
+
echo $flashvar;
|
215 |
+
echo "<param name=\"allowfullscreen\" value=\"true\" />\n";
|
216 |
+
echo "<param name=\"allowscriptaccess\" value=\"always\" />\n";
|
217 |
+
echo "<param name=\"movie\" value=\"$value\" />\n";
|
218 |
+
echo "<param name=\"wmode\" value=\"transparent\">\n";
|
219 |
+
echo "<embed src=\"$value\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" ";
|
220 |
+
echo "allowfullscreen=\"true\" allowscriptaccess=\"always\" ";
|
221 |
+
echo $flashvar2;
|
222 |
+
echo "width=\"$admin_video_width\" height=\"$admin_video_height\">\n";
|
223 |
+
echo "</embed>\n";
|
224 |
+
echo "</object>\n\n";
|
225 |
+
|
226 |
+
endif;
|
227 |
|
228 |
}else{
|
229 |
+
|
230 |
+
|
231 |
+
if($source == 'YouTube'):
|
232 |
+
/*This is the latest embed iframe code format, we use it now.
|
233 |
+
/*<iframe width="560" height="315" src="//www.youtube.com/embed/OMOVFvcNfvE" frameborder="0" allowfullscreen></iframe>
|
234 |
+
*/
|
235 |
+
echo "<iframe width='$v_width2' height='$v_height2' src='//www.youtube.com/embed/$v_id2?autoplay=$v_autoplay2&loop=0&rel=0' frameborder='0' allowfullscreen></iframe>";
|
236 |
+
|
237 |
+
|
238 |
+
elseif($source == 'Vimeo'):
|
239 |
+
/*This is the latest embed iframe code format, we use it now.
|
240 |
+
*<iframe src="//player.vimeo.com/video/113758779" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
|
241 |
+
*/
|
242 |
+
echo "<iframe src='//player.vimeo.com/video/$v_id2?autoplay=$v_autoplay2' width='$v_width2' height='$v_height2' frameborder='0' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>";
|
243 |
+
|
244 |
+
|
245 |
+
else:
|
246 |
+
|
247 |
+
// echo video on blog
|
248 |
+
echo "\n<object width=\"$v_width2\" height=\"$v_height2\">\n";
|
249 |
+
echo $flashvar;
|
250 |
+
echo "<param name=\"allowfullscreen\" value=\"true\" />\n";
|
251 |
+
echo "<param name=\"allowscriptaccess\" value=\"always\" />\n";
|
252 |
+
echo "<param name=\"movie\" value=\"$value\" />\n";
|
253 |
+
echo "<param name=\"wmode\" value=\"transparent\">\n";
|
254 |
+
echo "<embed src=\"$value\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" ";
|
255 |
+
echo "allowfullscreen=\"true\" allowscriptaccess=\"always\" ";
|
256 |
+
echo $flashvar2;
|
257 |
+
echo "width=\"$v_width2\" height=\"$v_height2\">\n";
|
258 |
+
echo "</embed>\n";
|
259 |
+
echo "</object>\n\n";
|
260 |
+
|
261 |
+
endif;
|
262 |
+
|
263 |
}
|
264 |
endif;
|
265 |
|
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: 4.
|
8 |
-
Stable tag:5.
|
9 |
|
10 |
== Description ==
|
11 |
|
@@ -14,6 +14,15 @@ Stable tag:5.7
|
|
14 |
|
15 |
== Changelog ==
|
16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
= 5.7 =
|
18 |
|
19 |
Added check to random video widget, do not print video caption p tags if user did not enter a video caption.
|
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 |
|
14 |
|
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.
|
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.
|
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.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/
|
vsw_admin_settings.php
CHANGED
@@ -76,7 +76,6 @@ $checked1 = $checked2 = $checked3 = $checked4 = '';
|
|
76 |
<p>
|
77 |
<input name="Submit" type="submit" class="button-primary" value="<?php esc_attr_e('Save Changes'); ?>" />
|
78 |
</p>
|
79 |
-
<p class="description">If you ever need any modifications to the plugin, Please post it on <a href="http://wpquestions.com/affiliates/register/name/denzelchia" target="_blank">WP Questions.</a> Thanks!</p>
|
80 |
</div>
|
81 |
</form>
|
82 |
</div>
|
76 |
<p>
|
77 |
<input name="Submit" type="submit" class="button-primary" value="<?php esc_attr_e('Save Changes'); ?>" />
|
78 |
</p>
|
|
|
79 |
</div>
|
80 |
</form>
|
81 |
</div>
|
vsw_tinymce/vsw_dialog.htm
CHANGED
@@ -22,7 +22,7 @@ html,body,td,th,input,select {
|
|
22 |
<td height="38" colspan="3"><h2>Insert Video ShortCode</h2></td>
|
23 |
</tr>
|
24 |
<tr>
|
25 |
-
<td height="30">Video ID</td>
|
26 |
<td height="30" colspan="2"><input id="vsw_id" name="vsw_id" type="text" class="text" style="width:95%" value="" /></td>
|
27 |
</tr>
|
28 |
<tr>
|
@@ -67,4 +67,4 @@ html,body,td,th,input,select {
|
|
67 |
</table>
|
68 |
</form>
|
69 |
</body>
|
70 |
-
</html>
|
22 |
<td height="38" colspan="3"><h2>Insert Video ShortCode</h2></td>
|
23 |
</tr>
|
24 |
<tr>
|
25 |
+
<td height="30" width="180px">Video ID</td>
|
26 |
<td height="30" colspan="2"><input id="vsw_id" name="vsw_id" type="text" class="text" style="width:95%" value="" /></td>
|
27 |
</tr>
|
28 |
<tr>
|
67 |
</table>
|
68 |
</form>
|
69 |
</body>
|
70 |
+
</html>
|