diff --git a/wp-content/plugins/video-sidebar-widgets/readme.txt b/wp-content/plugins/video-sidebar-widgets/readme.txt index 9f95d55aedd5a9c89bec356cf16a00aaafbb53fa..ac89b4ae1e3d7bbcfd9fa22debd76c53c6bf5c82 100644 --- a/wp-content/plugins/video-sidebar-widgets/readme.txt +++ b/wp-content/plugins/video-sidebar-widgets/readme.txt @@ -1,22 +1,27 @@ === Video Sidebar Widgets === Contributors: denzel_chia -Donate link: https://github.com/denzelchia/Video-Sidebar-Widgets/wiki +Donate link: https://www.paypal.me/denzelchia/10usd 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 +Tags:video sidebar widget, video widgets, widgets, sidebar, videos, 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.7 -Stable tag:6.0 +Tested up to: 5.0.3 +Stable tag:6.1 == 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. + Video networks includes Youtube, Vimeo, BlipTV, Google, etc. This plugin consist of 3 widgets. -== Changelog == - -= 6.0 = - -* Updated Metacafe code +== Changelog == + += 6.1 = + +* Does not load tinyMCE editor button, unless using WordPress version older than 5.0 +* vsw shortcode will continue to work even without tinyMCE editor button. + += 6.0 = + +* Updated Metacafe code * Stop using PHP split function @@ -129,17 +134,13 @@ Stable tag:6.0 3. Once uploaded, click Activate Plugin link -== Can I post video in post or page content other than the sidebar? == - -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 the following documentation @@ -161,21 +162,9 @@ 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 == -1. Why is Video Sidebar Widget not compatible with WordPress 2.8 ? - -It is not compatible because a bug was found to cause settings of multiple instance of a widget to disappear or mixed up. -The bug was fixed in WordPress 2.8.1 - -2. Why is my Random Video sidebar Widget not working? +1. Why is my Random Video sidebar Widget not working? Reload the webpage where you use the widget, each time you reload, the widget will randomly pick 1 of the 5 video you set for display. there are chances that it displays the same video after you reload. Just try reloading again. diff --git a/wp-content/plugins/video-sidebar-widgets/video-sidebar-widgets.php b/wp-content/plugins/video-sidebar-widgets/video-sidebar-widgets.php index 6a736f6364912241cee5a45212c915bdf46a9b25..e1e555ebdc9426280d26d1e36efe828642459b83 100644 --- a/wp-content/plugins/video-sidebar-widgets/video-sidebar-widgets.php +++ b/wp-content/plugins/video-sidebar-widgets/video-sidebar-widgets.php @@ -2,7 +2,7 @@ /* Plugin Name: Video Sidebar Widgets Plugin URI: https://github.com/denzelchia/Video-Sidebar-Widgets/ -Version: 6.0 +Version: 6.1 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: https://github.com/denzelchia/Video-Sidebar-Widgets/ @@ -14,8 +14,12 @@ require_once(dirname(__FILE__) . "/helper-functions.php"); //Admin Settings require_once(dirname(__FILE__) . "/vsw_admin_settings.php"); -//Tinymce Editor Button -require_once(dirname(__FILE__) . "/vsw_tinymce/vsw_tinymce.php"); +global $wp_version; +if ( version_compare( $wp_version, '5.0', '<' ) ) { + //load tinyMCE button only for WordPress less than 5.0, which uses the old tinyMCE editor instead of Gutenberg + //Tinymce Editor Button + require_once(dirname(__FILE__) . "/vsw_tinymce/vsw_tinymce.php"); +} //You can comment out the widget class that you do not want to load, remember to comment out the register_widget() in load_video_sidebar_widgets() below! diff --git a/wp-content/plugins/video-sidebar-widgets/vsw_admin_settings.php b/wp-content/plugins/video-sidebar-widgets/vsw_admin_settings.php index 0369c2b14b7c2502027c9898d65590f707690f31..aab5cbefe6b2b7635b075dbdd03d9ba630d15229 100644 --- a/wp-content/plugins/video-sidebar-widgets/vsw_admin_settings.php +++ b/wp-content/plugins/video-sidebar-widgets/vsw_admin_settings.php @@ -48,15 +48,22 @@ $checked1 = $checked2 = $checked3 = $checked4 = ''; ?> </div> - <div style="float:left;padding:5px;margin:10px 10px 10px 0px;text-align:center"> - <img style='border:1px solid #eee;padding:5px;' src="<?php echo WP_PLUGIN_URL.'/video-sidebar-widgets/source_image/tinybutton.png'?>"/> - <br/> - <label>TinyMCE Editor Button</label> - <?php - if(isset($options['hide_tmb'])) { $checked3 = ' checked="checked" '; } - echo "<input ".$checked3." id='tmb' name='vsw_plugin_options[hide_tmb]' type='checkbox' value='hide'/>"; + <?php + global $wp_version; + if ( version_compare( $wp_version, '5.0', '<' ) ) : + //load tinyMCE button only for WordPress less than 5.0, which uses the old tinyMCE editor instead of Gutenberg ?> - </div> + <div style="float:left;padding:5px;margin:10px 10px 10px 0px;text-align:center"> + <img style='border:1px solid #eee;padding:5px;' src="<?php echo WP_PLUGIN_URL.'/video-sidebar-widgets/source_image/tinybutton.png'?>"/> + <br/> + <label>TinyMCE Editor Button</label> + <?php + if(isset($options['hide_tmb'])) { $checked3 = ' checked="checked" '; } + echo "<input ".$checked3." id='tmb' name='vsw_plugin_options[hide_tmb]' type='checkbox' value='hide'/>"; + ?> + </div> + + <?php endif; ?> <div style="float:left;padding:5px;margin:10px 10px 10px 0px;text-align:center">