Version Description
(2015-05-10) = * Fix: Fatal error: Using $this when not in object context in youtube-channel.php on line 89 * Fix: Link to channel not visible on Twenty Fifteen theme
Download this release
Release Info
Developer | urkekg |
Plugin | YouTube Channel |
Version | 3.0.1 |
Comparing to | |
See all releases |
Code changes from version 3.0.0 to 3.0.1
- assets/css/youtube-channel.css +16 -0
- assets/css/youtube-channel.min.css +1 -1
- readme.txt +5 -1
- youtube-channel.php +6 -5
assets/css/youtube-channel.css
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
.youtube_channel {
|
2 |
float: left;
|
3 |
clear: both;
|
|
|
4 |
}
|
5 |
.youtube_channel.responsive {
|
6 |
width:100%;
|
@@ -74,6 +75,9 @@ padding-bottom: 75%;
|
|
74 |
}
|
75 |
|
76 |
/* responsive iframe */
|
|
|
|
|
|
|
77 |
.youtube_channel.responsive .ytc_video_container.ar16_9 .fluid-width-video-wrapper {
|
78 |
position: relative;
|
79 |
padding-bottom: 56.25%; /* 16:9 */
|
@@ -95,4 +99,16 @@ padding-bottom: 75%;
|
|
95 |
left: 0;
|
96 |
width: 100%;
|
97 |
height: 100%;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
}
|
1 |
.youtube_channel {
|
2 |
float: left;
|
3 |
clear: both;
|
4 |
+
position: relative;
|
5 |
}
|
6 |
.youtube_channel.responsive {
|
7 |
width:100%;
|
75 |
}
|
76 |
|
77 |
/* responsive iframe */
|
78 |
+
.youtube_channel .ytc_video_container iframe {
|
79 |
+
margin-bottom: 0;
|
80 |
+
}
|
81 |
.youtube_channel.responsive .ytc_video_container.ar16_9 .fluid-width-video-wrapper {
|
82 |
position: relative;
|
83 |
padding-bottom: 56.25%; /* 16:9 */
|
99 |
left: 0;
|
100 |
width: 100%;
|
101 |
height: 100%;
|
102 |
+
}
|
103 |
+
|
104 |
+
/* link */
|
105 |
+
.youtube_channel .ytc_link {
|
106 |
+
position: relative;
|
107 |
+
clear: both;
|
108 |
+
float: left;
|
109 |
+
width: 100%;
|
110 |
+
}
|
111 |
+
.youtube_channel .ytc_link>p {
|
112 |
+
padding: 0;
|
113 |
+
margin: 0;
|
114 |
}
|
assets/css/youtube-channel.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.ytc_thumb>span,.ytc_thumb>span:before{background-position:center center;background-repeat:no-repeat}.
|
1 |
+
.ytc_thumb>span,.ytc_thumb>span:before{background-position:center center;background-repeat:no-repeat}.youtube_channel{float:left;clear:both;position:relative}.youtube_channel.responsive{width:100%}.widget_youtube-channel:after,.youtube_channel:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.youtube_channel .ytc_video_container{float:left}.youtube_channel.responsive .ytc_video_container{width:100%!important}.ytc_thumb{display:block;overflow:hidden;position:relative;height:0;width:100%;top:0;right:0;bottom:0;left:0}.ytc_thumb>span{height:0;width:100%;display:block;-webkit-background-size:cover;background-size:cover}.ytc_thumb>span:before{content:"";display:block;width:100%;height:0;background-image:url(../img/play.png);background-color:transparent;opacity:.6;transition:.4s}.ytc_thumb:hover>span:before{opacity:1}.ytc_thumb.ar16_9,.ytc_thumb.ar16_9>span,.ytc_thumb.ar16_9>span:before{padding-bottom:56.26%}.ytc_thumb.ar16_10,.ytc_thumb.ar16_10>span,.ytc_thumb.ar16_10>span:before{padding-bottom:62.5%}.ytc_thumb.ar4_3,.ytc_thumb.ar4_3>span,.ytc_thumb.ar4_3>span:before{padding-bottom:75%}.youtube_channel .ytc_video_container iframe{margin-bottom:0}.youtube_channel.responsive .ytc_video_container.ar16_9 .fluid-width-video-wrapper{position:relative;padding-bottom:56.25%;height:0}.youtube_channel.responsive .ytc_video_container.ar16_10 .fluid-width-video-wrapper{position:relative;padding-bottom:62.5%;height:0}.youtube_channel.responsive .ytc_video_container.ar4_3 .fluid-width-video-wrapper{position:relative;padding-bottom:75%;height:0}.youtube_channel.responsive .ytc_video_container .fluid-width-video-wrapper iframe{position:absolute;top:0;left:0;width:100%;height:100%}.youtube_channel .ytc_link{position:relative;clear:both;float:left;width:100%}.youtube_channel .ytc_link>p{padding:0;margin:0}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: youtube, channel, playlist, single, widget, widgets, youtube player, flash player, rss, feed, video, thumbnail, embed, sidebar, chromeless, iframe, html5, responsive
|
5 |
Requires at least: 3.9.0
|
6 |
Tested up to: 4.2.2
|
7 |
-
Stable tag: 3.0.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -195,6 +195,10 @@ Also, even when hidding logo works for your video, on hover or when video is pau
|
|
195 |
|
196 |
== Changelog ==
|
197 |
|
|
|
|
|
|
|
|
|
198 |
= 3.0.0 (2015-05-07/08/09/10) =
|
199 |
* Fix: Migraton of global and widget settings to v3.0.0
|
200 |
* Add: New Global Settings page as replacement of Redux Framework solution
|
4 |
Tags: youtube, channel, playlist, single, widget, widgets, youtube player, flash player, rss, feed, video, thumbnail, embed, sidebar, chromeless, iframe, html5, responsive
|
5 |
Requires at least: 3.9.0
|
6 |
Tested up to: 4.2.2
|
7 |
+
Stable tag: 3.0.1
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
195 |
|
196 |
== Changelog ==
|
197 |
|
198 |
+
= 3.0.1 (2015-05-10) =
|
199 |
+
* Fix: Fatal error: Using $this when not in object context in youtube-channel.php on line 89
|
200 |
+
* Fix: Link to channel not visible on Twenty Fifteen theme
|
201 |
+
|
202 |
= 3.0.0 (2015-05-07/08/09/10) =
|
203 |
* Fix: Migraton of global and widget settings to v3.0.0
|
204 |
* Add: New Global Settings page as replacement of Redux Framework solution
|
youtube-channel.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: YouTube Channel
|
|
4 |
Plugin URI: http://urosevic.net/wordpress/plugins/youtube-channel/
|
5 |
Description: <a href="widgets.php">Widget</a> that display latest video thumbnail or iframe (HTML5) video from YouTube Channel, Liked Videos, Favourites or Playlist.
|
6 |
Author: Aleksandar Urošević
|
7 |
-
Version: 3.0.
|
8 |
Author URI: http://urosevic.net/
|
9 |
*/
|
10 |
// @TODO make FitVideo optional
|
@@ -18,7 +18,7 @@ if ( !class_exists('WPAU_YOUTUBE_CHANNEL') )
|
|
18 |
{
|
19 |
|
20 |
const DB_VER = 3;
|
21 |
-
const VER = '3.0.
|
22 |
|
23 |
public $plugin_name = "YouTube Channel";
|
24 |
public $plugin_slug = "youtube-channel";
|
@@ -86,8 +86,9 @@ if ( !class_exists('WPAU_YOUTUBE_CHANNEL') )
|
|
86 |
*/
|
87 |
public static function activate() {
|
88 |
|
89 |
-
$
|
90 |
-
$
|
|
|
91 |
|
92 |
} // end function activate
|
93 |
|
@@ -426,7 +427,6 @@ function ytc_mute(event){
|
|
426 |
$instance['goto_txt'] = $goto_txt; // text for goto link - use settings
|
427 |
$instance['popup_goto'] = $popup; // open channel in: 0 same window, 1 javascript new, 2 target new
|
428 |
$instance['link_to'] = $link_to; // open channel in: 0 same window, 1 javascript new, 2 target new
|
429 |
-
//$instance['userchan'] = $userchan; // DEPRECATED link to user channel instaled page
|
430 |
|
431 |
// Customization
|
432 |
$instance['class'] = $class; // custom additional class for container
|
@@ -777,6 +777,7 @@ function ytc_mute(event){
|
|
777 |
$goto_txt = str_replace('%channel%', $channel, $goto_txt);
|
778 |
$goto_txt = str_replace('%vanity%', $vanity, $goto_txt);
|
779 |
|
|
|
780 |
$output[] = '<div class="ytc_link">';
|
781 |
|
782 |
$goto_url = "https://www.youtube.com/";
|
4 |
Plugin URI: http://urosevic.net/wordpress/plugins/youtube-channel/
|
5 |
Description: <a href="widgets.php">Widget</a> that display latest video thumbnail or iframe (HTML5) video from YouTube Channel, Liked Videos, Favourites or Playlist.
|
6 |
Author: Aleksandar Urošević
|
7 |
+
Version: 3.0.1
|
8 |
Author URI: http://urosevic.net/
|
9 |
*/
|
10 |
// @TODO make FitVideo optional
|
18 |
{
|
19 |
|
20 |
const DB_VER = 3;
|
21 |
+
const VER = '3.0.1';
|
22 |
|
23 |
public $plugin_name = "YouTube Channel";
|
24 |
public $plugin_slug = "youtube-channel";
|
86 |
*/
|
87 |
public static function activate() {
|
88 |
|
89 |
+
global $WPAU_YOUTUBE_CHANNEL;
|
90 |
+
$WPAU_YOUTUBE_CHANNEL->init_options();
|
91 |
+
$WPAU_YOUTUBE_CHANNEL->maybe_update();
|
92 |
|
93 |
} // end function activate
|
94 |
|
427 |
$instance['goto_txt'] = $goto_txt; // text for goto link - use settings
|
428 |
$instance['popup_goto'] = $popup; // open channel in: 0 same window, 1 javascript new, 2 target new
|
429 |
$instance['link_to'] = $link_to; // open channel in: 0 same window, 1 javascript new, 2 target new
|
|
|
430 |
|
431 |
// Customization
|
432 |
$instance['class'] = $class; // custom additional class for container
|
777 |
$goto_txt = str_replace('%channel%', $channel, $goto_txt);
|
778 |
$goto_txt = str_replace('%vanity%', $vanity, $goto_txt);
|
779 |
|
780 |
+
$output[] = '<div class="clearfix"></div>';
|
781 |
$output[] = '<div class="ytc_link">';
|
782 |
|
783 |
$goto_url = "https://www.youtube.com/";
|