Commit 28ebb9c2 authored by lucha's avatar lucha

[auto] plugin: video-sidebar-widgets 6.0

parent 9bf2bbf2
......@@ -173,6 +173,7 @@ extract( $args );
$rv_cap = $Embed_cap;
break;
/** @since 6.0, we are not using this anymore... Metacafe uses iframe embed now, and does not have any parameters.. cannot stop autoplay.
case 'Metacafe':
$rid = split('/',$Embed_id);
$rv_value = "http://www.metacafe.com/fplayer/$rid[0]/$rid[1].swf";
......@@ -182,6 +183,7 @@ extract( $args );
}
$rv_cap = $Embed_cap;
break;
**/
case 'Tudou':
$rv_value = "$Embed_id";
......@@ -243,7 +245,13 @@ extract( $args );
*<iframe src="//player.vimeo.com/video/113758779" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
*/
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>";
if(!empty($Embed_cap)){echo "<p class=\"VideoCaption\">$Embed_cap</p>\n\n";};
if(!empty($Embed_cap)){echo "<p class=\"VideoCaption\">$Embed_cap</p>\n\n";};
elseif($select_source == 'Metacafe'):
echo "<iframe width='$RV_width' height='$RV_height' src='http://www.metacafe.com/embed/$Embed_id' frameborder='0' allowfullscreen></iframe>";
if(!empty($Embed_cap)){echo "<p class=\"VideoCaption\">$Embed_cap</p>\n\n";};
else:
......@@ -360,11 +368,12 @@ $instance = wp_parse_args( (array) $instance, array( 'RV_title' => '', 'RV_width
$autoplaysetting = '0';
$videoid = $instance['RV_id1'];
$videosource = $instance['RV_source1'];
$videowidth = "";
$videoheight = "";
$videowidth = "400";
$videoheight = "225";
//$admin = true // to show video in admin
if($videoid!==''):
VSWShowVideo($videosource,$videoid,$autoplaysetting,$videowidth,$videoheight,'true','false');
endif;
?>
<p>
<label for="<?php echo $this->get_field_id( 'RV_source1' ); ?>">Select Video 1 Source:</label>
......@@ -405,11 +414,12 @@ $instance = wp_parse_args( (array) $instance, array( 'RV_title' => '', 'RV_width
$autoplaysetting = '0';
$videoid = $instance['RV_id2'];
$videosource = $instance['RV_source2'];
$videowidth = "";
$videoheight = "";
$videowidth = "400";
$videoheight = "225";
//$admin = true // to show video in admin
if($videoid!==''):
VSWShowVideo($videosource,$videoid,$autoplaysetting,$videowidth,$videoheight,'true','false');
endif;
?>
<p>
<label for="<?php echo $this->get_field_id( 'RV_source2' ); ?>">Select Video 2 Source:</label>
......@@ -452,11 +462,12 @@ $instance = wp_parse_args( (array) $instance, array( 'RV_title' => '', 'RV_width
$autoplaysetting = '0';
$videoid = $instance['RV_id3'];
$videosource = $instance['RV_source3'];
$videowidth = "";
$videoheight = "";
$videowidth = "400";
$videoheight = "225";
//$admin = true // to show video in admin
if($videoid!==''):
VSWShowVideo($videosource,$videoid,$autoplaysetting,$videowidth,$videoheight,'true','false');
endif;
?>
<p>
<label for="<?php echo $this->get_field_id( 'RV_source3' ); ?>">Select Video 3 Source:</label>
......@@ -498,11 +509,12 @@ $instance = wp_parse_args( (array) $instance, array( 'RV_title' => '', 'RV_width
$autoplaysetting = '0';
$videoid = $instance['RV_id4'];
$videosource = $instance['RV_source4'];
$videowidth = "";
$videoheight = "";
$videowidth = "400";
$videoheight = "225";
//$admin = true // to show video in admin
if($videoid!==''):
VSWShowVideo($videosource,$videoid,$autoplaysetting,$videowidth,$videoheight,'true','false');
endif;
?>
<p>
<label for="<?php echo $this->get_field_id( 'RV_source4' ); ?>">Select Video 4 Source:</label>
......@@ -543,11 +555,12 @@ $instance = wp_parse_args( (array) $instance, array( 'RV_title' => '', 'RV_width
$autoplaysetting = '0';
$videoid = $instance['RV_id5'];
$videosource = $instance['RV_source5'];
$videowidth = "";
$videoheight = "";
$videowidth = "400";
$videoheight = "225";
//$admin = true // to show video in admin
if($videoid!==''):
VSWShowVideo($videosource,$videoid,$autoplaysetting,$videowidth,$videoheight,'true','false');
endif;
?>
<p>
<label for="<?php echo $this->get_field_id( 'RV_source5' ); ?>">Select Video 5 Source:</label>
......
......@@ -95,6 +95,7 @@ if(!empty($source)): //do this only if video source not empty, to fix widget pag
$flashvar2 = "";
break;
/** @since 6.0, we are not using this anymore... Metacafe uses iframe embed now, and does not have any parameters.. cannot stop autoplay.
case 'Metacafe':
$id = split('/',$v_id2);
$value = "http://www.metacafe.com/fplayer/$id[0]/$id[1].swf";
......@@ -103,7 +104,8 @@ if(!empty($source)): //do this only if video source not empty, to fix widget pag
$flashvar2 = 'flashVars="playerVars=showStats=no|autoPlay=yes|"';
}
break;
**/
case 'Tudou':
$value = "$v_id2";
$flashvar = "";
......@@ -157,6 +159,10 @@ if(!empty($source)): //do this only if video source not empty, to fix widget pag
*<iframe src="//player.vimeo.com/video/113758779" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
*/
return "<iframe src='//player.vimeo.com/video/$v_id2?autoplay=$v_autoplay2' width='$v_width2' height='$v_height2' frameborder='0' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>";
elseif($source == 'Metacafe'):
return "<iframe width='$v_width2' height='$v_height2' src='http://www.metacafe.com/embed/$v_id2' frameborder='0' allowfullscreen></iframe>";
else:
......@@ -205,6 +211,11 @@ if(!empty($source)): //do this only if video source not empty, to fix widget pag
*<iframe src="//player.vimeo.com/video/113758779" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
*/
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>";
elseif($source == 'Metacafe'):
echo "<br/><iframe width='$admin_video_width' height='$admin_video_height' src='http://www.metacafe.com/embed/$v_id2' frameborder='0' allowfullscreen></iframe>";
else:
......@@ -241,6 +252,9 @@ if(!empty($source)): //do this only if video source not empty, to fix widget pag
*/
echo "<iframe src='//player.vimeo.com/video/$v_id2?autoplay=$v_autoplay2' width='$v_width2' height='$v_height2' frameborder='0' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>";
elseif($source == 'Metacafe'):
echo "<iframe width='$v_width2' height='$v_height2' src='http://www.metacafe.com/embed/$v_id2' frameborder='0' allowfullscreen></iframe>";
else:
......
=== Video Sidebar Widgets ===
Contributors: denzel_chia
Donate link: http://denzeldesigns.com/wordpress-plugins/video-sidebar-widgets/
Author link: http://denzeldesigns.com
Donate link: https://github.com/denzelchia/Video-Sidebar-Widgets/wiki
Author link: https://github.com/denzelchia/
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
Requires at least:2.8.1
Tested up to: 4.4
Stable tag:5.9
Tested up to: 4.7
Stable tag:6.0
== Description ==
A collection of sidebar widgets for displaying Flash Videos from 14 video sharing networks.
Video networks includes Youtube, Vimeo, BlipTV, Google, etc. This plugin consist of 2 widgets and 1 TinyMCE editor button.
== Changelog ==
== Changelog ==
= 6.0 =
* Updated Metacafe code
* Stop using PHP split function
= 5.9 =
Change to use PHP 5 constructor.
* Change to use PHP 5 constructor.
= 5.8 =
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.
* 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.
= 5.7 =
Added check to random video widget, do not print video caption p tags if user did not enter a video caption.
* Added check to random video widget, do not print video caption p tags if user did not enter a video caption.
= 5.6 =
Corrected typo error for constant WP_PLUGIN_URL in vsw_tinymce.php
* Corrected typo error for constant WP_PLUGIN_URL in vsw_tinymce.php
= 5.5 =
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
Fix YouTube autoplay in Random Video Widget. (missed this in previous version 5.4)
* 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
* Fix YouTube autoplay in Random Video Widget. (missed this in previous version 5.4)
= 5.4 =
Fix autoplay of YouTube Videos. The videos started autoplay probably due to a change in YouTube API.
* Fix autoplay of YouTube Videos. The videos started autoplay probably due to a change in YouTube API.
= 5.3 =
Fix loading in widget page in IE 9
* Fix loading in widget page in IE 9
= 5.2 =
Replaced all null value to blank, to tackle an IE 9 bug reported by user.
Solution provided by Ryan Willis. (Thanks!)
Refer to http://wordpress.org/support/topic/plugin-video-sidebar-widgets-ie9-widget-administration-problem
* Replaced all null value to blank, to tackle an IE 9 bug reported by user.
* Solution provided by Ryan Willis. (Thanks!)
* Refer to http://wordpress.org/support/topic/plugin-video-sidebar-widgets-ie9-widget-administration-problem
= 5.1 =
......@@ -69,7 +74,7 @@ Refer to http://wordpress.org/support/topic/plugin-video-sidebar-widgets-ie9-wid
= 4.1 =
*Fixed WordPress Video in random video widget (Sorry forgotten about this!)
* Fixed WordPress Video in random video widget (Sorry forgotten about this!)
= 4.0 =
......@@ -79,33 +84,33 @@ Refer to http://wordpress.org/support/topic/plugin-video-sidebar-widgets-ie9-wid
= 3.0 =
*added video quicktag at post editor to insert video shortcode into post or page.
*Shortcode to allow posting of video on post or page, using video function already available in plugin.
* added video quicktag at post editor to insert video shortcode into post or page.
* Shortcode to allow posting of video on post or page, using video function already available in plugin.
= 2.3 =
*Removed auto play video option for Blip.tv video, which is causing the video not to load in Internet Explorer.
*Allowed HTML links in video caption
* Removed auto play video option for Blip.tv video, which is causing the video not to load in Internet Explorer.
* Allowed HTML links in video caption
= 2.2 =
*Included support for Tangle.com videos
* Included support for Tangle.com videos
= 2.1 =
*re-arranged Random Video Sidebar Widget Layout
* re-arranged Random Video Sidebar Widget Layout
*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.
* 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.
*Included support for google videos
* Included support for google videos
*Included Video Caption at bottom of Video
* Included Video Caption at bottom of Video
*Video Caption has a style class of "VideoCaption" to enable user to indicate font-height etc.
* Video Caption has a style class of "VideoCaption" to enable user to indicate font-height etc.
= 2.0 =
*Included Random Video Sidebar Widget to randomly display 1 out of 5 preset video.
* Included Random Video Sidebar Widget to randomly display 1 out of 5 preset video.
== Installation ==
......@@ -129,14 +134,38 @@ Refer to http://wordpress.org/support/topic/plugin-video-sidebar-widgets-ie9-wid
As of version 3.0, shortcode is added to enable user to post video in content.
User can use the video Quicktag at Tinymce editor to insert video shortcode.
== Where to find Video ID ? ==
Please visit the following documentation
https://github.com/denzelchia/Video-Sidebar-Widgets/wiki#youtube-video-id
== How to use Video Sidebar Widget ? ==
Please visit plugin site for details. http://denzeldesigns.com
Please visit the following documentation
https://github.com/denzelchia/Video-Sidebar-Widgets/wiki#how-to-use-video-sidebar-widgets
== How to use Random Video Sidebar Widget ? ==
Please visit plugin site for details. http://denzeldesigns.com
Please visit the following documentation
https://github.com/denzelchia/Video-Sidebar-Widgets/wiki#how-to-use-random-video-widget
== How to use Post Meta Video Widget ? ==
Please visit the following documentation
https://github.com/denzelchia/Video-Sidebar-Widgets/wiki#how-to-use-post-meta-video-widget
== How to Embed Video in Post / Page Content? ==
Please visit the following documentation
https://github.com/denzelchia/Video-Sidebar-Widgets/wiki#embed-video-in-post--page-content
== Frequently Asked Questions ==
......@@ -155,7 +184,7 @@ Random Video Sidebar Widget will not work on blogs that uses cache plugins. It i
== Screenshots ==
Please visit plugin site for video samples
Please visit plugin wiki for details. https://github.com/denzelchia/Video-Sidebar-Widgets/wiki
......
<?php
/*
Plugin Name: Video Sidebar Widgets
Plugin URI: http://denzeldesigns.com/wordpress-plugins/video-sidebar-widgets/
Version: 5.9
Plugin URI: https://github.com/denzelchia/Video-Sidebar-Widgets/
Version: 6.0
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.
Author: Denzel Chia
Author URI: http://denzeldesigns.com/
Author URI: https://github.com/denzelchia/Video-Sidebar-Widgets/
*/
//load helper functions
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment