Youtube Channel Gallery - Version 1.8.7

Version Description

  • Fixed problem with SSL.
  • Changes in CSS to correct IE columns.
Download this release

Release Info

Developer javitxu123
Plugin Icon 128x128 Youtube Channel Gallery
Version 1.8.7
Comparing to
See all releases

Code changes from version 1.8.6 to 1.8.7

admin-scripts.js CHANGED
File without changes
admin-styles.css CHANGED
File without changes
img/play.png CHANGED
File without changes
languages/youtube-channel-gallery-es_ES.mo CHANGED
File without changes
languages/youtube-channel-gallery-es_ES.po CHANGED
File without changes
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://poselab.com/
4
Tags: widget, gallery, youtube, channel, user, sidebar, video, youtube playlist, html5, iframe, Youtube channel, youtube videos
5
Requires at least: 2.8
6
Tested up to: 3.5.1
7
- Stable tag: 1.8.6
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -142,6 +142,10 @@ See [HTTPS Support for YouTube Embeds](http://apiblog.youtube.com/2011/02/https-
142
143
== Changelog ==
144
145
= 1.8.6 =
146
* Check accounts suspended.
147
* SSL support (checks if HTTPS or on Port 443). Be aware that the YouTube player is not fully compatible with SSL. See [HTTPS Support for YouTube Embeds](http://apiblog.youtube.com/2011/02/https-support-for-youtube-embeds.html)
4
Tags: widget, gallery, youtube, channel, user, sidebar, video, youtube playlist, html5, iframe, Youtube channel, youtube videos
5
Requires at least: 2.8
6
Tested up to: 3.5.1
7
+ Stable tag: 1.8.7
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
142
143
== Changelog ==
144
145
+ = 1.8.7 =
146
+ * Fixed problem with SSL.
147
+ * Changes in CSS to correct IE columns.
148
+
149
= 1.8.6 =
150
* Check accounts suspended.
151
* SSL support (checks if HTTPS or on Port 443). Be aware that the YouTube player is not fully compatible with SSL. See [HTTPS Support for YouTube Embeds](http://apiblog.youtube.com/2011/02/https-support-for-youtube-embeds.html)
scripts.js CHANGED
@@ -1,7 +1,7 @@
1
/*------------------------------------------------------------
2
Plugin Name: Youtube Channel Gallery
3
Plugin URI: http://www.poselab.com/
4
- Version: 1.8.6
5
Description: Show a youtube video and a gallery of thumbnails for a youtube channel.
6
------------------------------------------------------------*/
7
jQuery(document).ready(function($) {
1
/*------------------------------------------------------------
2
Plugin Name: Youtube Channel Gallery
3
Plugin URI: http://www.poselab.com/
4
+ Version: 1.8.7
5
Description: Show a youtube video and a gallery of thumbnails for a youtube channel.
6
------------------------------------------------------------*/
7
jQuery(document).ready(function($) {
styles.css CHANGED
@@ -1,7 +1,7 @@
1
/*------------------------------------------------------------
2
Plugin Name: Youtube Channel Gallery
3
Plugin URI: http://www.poselab.com/
4
- Version: 1.8.6
5
Description: Show a youtube video and a gallery of thumbnails for a youtube channel.
6
------------------------------------------------------------*/
7
/*plugin wrapper*/
@@ -43,7 +43,7 @@ iframe.ytcplayer{
43
/*Thumbnails, title and description*/
44
/*---------------------------------------------------*/
45
ul.ytchagallery{margin: 0!important; padding: 0!important;list-style: none!important; width: 100%!important; overflow: hidden!important;}
46
- ul.ytchagallery .ytc-row{width:-webkit-calc(100% + 10px)!important; width:calc(100% + 10px)!important;margin: 0!important;padding: 0!important} /*added 15px instead of 10px because IE10 is not calculating correctly*/
47
ul.ytchagallery li{float:left!important;margin: 0!important;list-style: none!important;padding: 0!important;clear: none!important;}
48
ul.ytchagallery li.ytccell-first{clear: left!important;}
49
ul.ytchagallery li .ytcliinner {overflow: hidden!important;padding: 0 10px 10px 0!important}
@@ -105,25 +105,25 @@ ul.ytchagallery li .ytcliinner {overflow: hidden!important;padding: 0 10px 10px
105
/*columns*/
106
.ytc-row{clear: both!important;}
107
108
- .ytc-columns1 li{ width: 100%!important; }
109
110
- .ytc-columns2 li{ width: 50%!important; width:calc(100%/2)!important;}
111
112
- .ytc-columns3 li{ width: 33.33%!important; width:calc(100%/3)!important;}
113
114
- .ytc-columns4 li{ width: 25%!important; width:calc(100%/4)!important;}
115
116
- .ytc-columns5 li{ width: 20%!important; width:calc(100%/5)!important;}
117
118
- .ytc-columns6 li{ width: 16.66%!important; width:calc(100%/6)!important;}
119
120
- .ytc-columns7 li{ width: 14.28%!important; width:calc(100%/7)!important;}
121
122
- .ytc-columns8 li{ width: 12.5%!important; width:calc(100%/8)!important;}
123
124
- .ytc-columns9 li{ width: 11.11%!important; width:calc(100%/9)!important;}
125
126
- .ytc-columns10 li{ width: 10%!important; width:calc(100%/10)!important;}
127
128
129
/*link to YouTube*/
1
/*------------------------------------------------------------
2
Plugin Name: Youtube Channel Gallery
3
Plugin URI: http://www.poselab.com/
4
+ Version: 1.8.7
5
Description: Show a youtube video and a gallery of thumbnails for a youtube channel.
6
------------------------------------------------------------*/
7
/*plugin wrapper*/
43
/*Thumbnails, title and description*/
44
/*---------------------------------------------------*/
45
ul.ytchagallery{margin: 0!important; padding: 0!important;list-style: none!important; width: 100%!important; overflow: hidden!important;}
46
+ ul.ytchagallery .ytc-row{width:-webkit-calc(100% + 10px)!important; width:calc(100% + 10px)!important;margin: 0!important;padding: 0!important}
47
ul.ytchagallery li{float:left!important;margin: 0!important;list-style: none!important;padding: 0!important;clear: none!important;}
48
ul.ytchagallery li.ytccell-first{clear: left!important;}
49
ul.ytchagallery li .ytcliinner {overflow: hidden!important;padding: 0 10px 10px 0!important}
105
/*columns*/
106
.ytc-row{clear: both!important;}
107
108
+ .ytc-columns1 li{ width: 100%!important;}
109
110
+ .ytc-columns2 li{ width: 50%!important;}
111
112
+ .ytc-columns3 li{ width: 33.33%!important;}
113
114
+ .ytc-columns4 li{ width: 25%!important;}
115
116
+ .ytc-columns5 li{ width: 20%!important;}
117
118
+ .ytc-columns6 li{ width: 16.66%!important;}
119
120
+ .ytc-columns7 li{ width: 14.28%!important;}
121
122
+ .ytc-columns8 li{ width: 12.5%!important;}
123
124
+ .ytc-columns9 li{ width: 11.11%!important;}
125
126
+ .ytc-columns10 li{ width: 10%!important;}
127
128
129
/*link to YouTube*/
templates/player.php CHANGED
File without changes
youtube-channel-gallery.php CHANGED
@@ -5,7 +5,7 @@
5
Description: Show a youtube video and a gallery of thumbnails for a youtube channel.
6
Author: Javier Gómez Pose
7
Author URI: http://www.poselab.com/
8
- Version: 1.8.6
9
License: GPL2
10
11
Copyright 2013 Javier Gómez Pose (email : javierpose@gmail.com)
@@ -530,8 +530,8 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
530
$content= '<p class="empty">' . __( 'There is no video to show.', 'youtube-channel-gallery' ) . '</p>';
531
532
} else {
533
- $youtube_feed_url = $this->check_ssl( 'http://gdata.youtube.com/feeds/api' );
534
- $youtube_url = $this->check_ssl( 'http://www.youtube.com' );
535
536
// links
537
if ( $ytchag_feed == 'user' ) {
@@ -547,7 +547,6 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
547
$ytchag_link_url = $youtube_url . '/playlist?list=' . $ytchag_user;
548
}
549
550
-
551
//HTTP API
552
553
$transientId = 'ytc-' .md5( $ytchag_feed . $ytchag_user . $ytchag_maxitems );
@@ -796,7 +795,7 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
796
}
797
798
$content.= '<div class="ytcthumb-cont"' . $ytchag_thumbnail_fixed_witdh . '>';
799
- $content.= '<a class="ytcthumb ytclink" ' .$ytchag_thumb_window. ' href="' . $youtube_url . '/watch?v=' . $youtubeid . '" data-playerid="ytcplayer' . $plugincount . '" data-quality="' . $ytchag_quality . '" title="' . $title . '" style="background-image:url(' . $this->check_ssl( $thumb ) . ')" ' . $ytchag_nofollow . '>';
800
$content.= '<div class="ytcplay"></div>';
801
$content.= '</a>';
802
$content.= '</div>';
@@ -917,7 +916,7 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
917
// load js
918
private function register_scripts() {
919
wp_enqueue_script( 'jquery' );
920
- wp_enqueue_script( 'youtube_player_api', $this->check_ssl( 'http://www.youtube.com/player_api' ), false, false, true );
921
wp_enqueue_script( 'youtube-channel-gallery', plugins_url( '/scripts.js', __FILE__ ), false, false, true );
922
}
923
@@ -930,15 +929,6 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
930
931
}
932
933
- // check http protocol
934
- public function check_ssl ( $url ) {
935
- if ( is_ssl() ) {
936
- return str_replace( 'http://', 'https://', $url );
937
- } else {
938
- return $url;
939
- }
940
- }
941
-
942
/*--------------------------------------------------*/
943
/* Shortcode
944
/*--------------------------------------------------*/
5
Description: Show a youtube video and a gallery of thumbnails for a youtube channel.
6
Author: Javier Gómez Pose
7
Author URI: http://www.poselab.com/
8
+ Version: 1.8.7
9
License: GPL2
10
11
Copyright 2013 Javier Gómez Pose (email : javierpose@gmail.com)
530
$content= '<p class="empty">' . __( 'There is no video to show.', 'youtube-channel-gallery' ) . '</p>';
531
532
} else {
533
+ $youtube_feed_url = 'http://gdata.youtube.com/feeds/api';
534
+ $youtube_url = 'https://www.youtube.com';
535
536
// links
537
if ( $ytchag_feed == 'user' ) {
547
$ytchag_link_url = $youtube_url . '/playlist?list=' . $ytchag_user;
548
}
549
550
//HTTP API
551
552
$transientId = 'ytc-' .md5( $ytchag_feed . $ytchag_user . $ytchag_maxitems );
795
}
796
797
$content.= '<div class="ytcthumb-cont"' . $ytchag_thumbnail_fixed_witdh . '>';
798
+ $content.= '<a class="ytcthumb ytclink" ' .$ytchag_thumb_window. ' href="' . $youtube_url . '/watch?v=' . $youtubeid . '" data-playerid="ytcplayer' . $plugincount . '" data-quality="' . $ytchag_quality . '" title="' . $title . '" style="background-image:url(' . $thumb . ')" ' . $ytchag_nofollow . '>';
799
$content.= '<div class="ytcplay"></div>';
800
$content.= '</a>';
801
$content.= '</div>';
916
// load js
917
private function register_scripts() {
918
wp_enqueue_script( 'jquery' );
919
+ wp_enqueue_script( 'youtube_player_api', 'https://www.youtube.com/player_api', false, false, true );
920
wp_enqueue_script( 'youtube-channel-gallery', plugins_url( '/scripts.js', __FILE__ ), false, false, true );
921
}
922
929
930
}
931
932
/*--------------------------------------------------*/
933
/* Shortcode
934
/*--------------------------------------------------*/