Youtube Channel Gallery - Version 1.7.4

Version Description

  • Corrected thumbnail size selection in playlists.
Download this release

Release Info

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

Code changes from version 1.7.3 to 1.7.4

Files changed (3) hide show
  1. readme.txt +4 -1
  2. styles.css +2 -4
  3. youtube-channel-gallery.php +8 -8
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.4.1
7
- Stable tag: 1.7.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -118,6 +118,9 @@ If you go to a playlist you will get the following url format: https://www.youtu
118
 
119
  == Changelog ==
120
 
 
 
 
121
  = 1.7.3 =
122
  * Improved management of thumbnails.
123
  * Corrected thumbnail size selection in playlists.
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.4.1
7
+ Stable tag: 1.7.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
118
 
119
  == Changelog ==
120
 
121
+ = 1.7.4 =
122
+ * Corrected thumbnail size selection in playlists.
123
+
124
  = 1.7.3 =
125
  * Improved management of thumbnails.
126
  * Corrected thumbnail size selection in playlists.
styles.css CHANGED
@@ -1,7 +1,7 @@
1
  /*------------------------------------------------------------
2
  Plugin Name: Youtube Channel Gallery
3
  Plugin URI: http://www.poselab.com/
4
- Version: 1.7.2
5
  Description: Show a youtube video and a gallery of thumbnails for a youtube channel.
6
  ------------------------------------------------------------*/
7
 
@@ -33,9 +33,7 @@ ul.ytchagallery.ytccf li.ytccell-first{clear: left;}
33
 
34
  /*Title and description*/
35
 
36
- ul.ytchagallery.ytccf .ytctitle a{word-wrap: break-word;
37
- /*delete*/ font-size: 12px; font-family: Arial; /*end delete*/
38
- }
39
 
40
  /*delete*/ul.ytchagallery.ytccf .ytctitle{line-height: 1}
41
 
1
  /*------------------------------------------------------------
2
  Plugin Name: Youtube Channel Gallery
3
  Plugin URI: http://www.poselab.com/
4
+ Version: 1.7.4
5
  Description: Show a youtube video and a gallery of thumbnails for a youtube channel.
6
  ------------------------------------------------------------*/
7
 
33
 
34
  /*Title and description*/
35
 
36
+ ul.ytchagallery.ytccf .ytctitle a{word-wrap: break-word; }
 
 
37
 
38
  /*delete*/ul.ytchagallery.ytccf .ytctitle{line-height: 1}
39
 
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.7.3
9
  License: GPL2
10
 
11
  Copyright 2010 Javier Gómez Pose (email : javierpose@gmail.com)
@@ -590,13 +590,13 @@
590
  }
591
 
592
  //to appropriate thumbnail
593
- if($plugincount == 0){
594
 
595
- //media:thumbnail tag
596
- $media_group = $item->get_item_tags('http://search.yahoo.com/mrss/', 'group');
597
- $media_content = $media_group[0]['child']['http://search.yahoo.com/mrss/']['thumbnail'];
598
 
599
- //Check the thumbnail width
 
600
  $thumbW = array();
601
  foreach ($media_content as $index => $media_contentw) {
602
  $thumbW[$index] = $media_content[$index]['attribs']['']['width'];
@@ -605,11 +605,11 @@
605
  $thumbcorrectW = $this->closest($thumbW, $ytchag_thumb_width);
606
 
607
  //index in array of thumbnail width
608
- $thumbcorrectWIndex = array_search($thumbcorrectW, $thumbW);
 
609
 
610
  //appropriate url thumbnail
611
  $thumb = $media_content[$thumbcorrectWIndex]['attribs']['']['url'];
612
- }
613
 
614
 
615
  //title and description content
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.7.4
9
  License: GPL2
10
 
11
  Copyright 2010 Javier Gómez Pose (email : javierpose@gmail.com)
590
  }
591
 
592
  //to appropriate thumbnail
 
593
 
594
+ //media:thumbnail tag
595
+ $media_group = $item->get_item_tags('http://search.yahoo.com/mrss/', 'group');
596
+ $media_content = $media_group[0]['child']['http://search.yahoo.com/mrss/']['thumbnail'];
597
 
598
+ //Check the thumbnail width
599
+ if($plugincount == 0){
600
  $thumbW = array();
601
  foreach ($media_content as $index => $media_contentw) {
602
  $thumbW[$index] = $media_content[$index]['attribs']['']['width'];
605
  $thumbcorrectW = $this->closest($thumbW, $ytchag_thumb_width);
606
 
607
  //index in array of thumbnail width
608
+ $thumbcorrectWIndex = array_search($thumbcorrectW, $thumbW);
609
+ }
610
 
611
  //appropriate url thumbnail
612
  $thumb = $media_content[$thumbcorrectWIndex]['attribs']['']['url'];
 
613
 
614
 
615
  //title and description content