Version Description
- Fixed bug with columns.
- Fixed issue with CSS.
Download this release
Release Info
Developer | javitxu123 |
Plugin | Youtube Channel Gallery |
Version | 1.6.2 |
Comparing to | |
See all releases |
Code changes from version 1.6.1 to 1.6.2
- readme.txt +5 -1
- styles.css +12 -12
- youtube-channel-gallery.php +12 -5
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.6.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -107,6 +107,10 @@ The username who uploaded a video to Youtube is located below each video, where
|
|
107 |
|
108 |
== Changelog ==
|
109 |
|
|
|
|
|
|
|
|
|
110 |
= 1.6.1 =
|
111 |
* Added options to show title and description with thumbnails.
|
112 |
* Added new classes to better manage the final appearance (rows, columns, even, odd, number of row an column).
|
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.6.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
107 |
|
108 |
== Changelog ==
|
109 |
|
110 |
+
= 1.6.2 =
|
111 |
+
* Fixed bug with columns.
|
112 |
+
* Fixed issue with CSS.
|
113 |
+
|
114 |
= 1.6.1 =
|
115 |
* Added options to show title and description with thumbnails.
|
116 |
* Added new classes to better manage the final appearance (rows, columns, even, odd, number of row an column).
|
styles.css
CHANGED
@@ -19,24 +19,24 @@ iframe.ytcplayer{display: block;margin-bottom: 10px;padding: 0;}
|
|
19 |
|
20 |
/*Thumbnails, title and description*/
|
21 |
/*---------------------------------------------------*/
|
22 |
-
ul.ytchagallery{margin: 0; padding: 0;list-style: none;}
|
23 |
-
ul.ytchagallery li{float:left;padding:0;margin: 0}
|
24 |
-
ul.ytchagallery li.ytccell-first{clear: left;}
|
25 |
|
26 |
/*Thumbnails*/
|
27 |
-
ul.ytchagallery div.ytcthumb-cont{float: left;}
|
28 |
-
ul.ytchagallery li a.ytcthumb{display: inline-block;border:1px solid #999;background-position: center center;background-size: 110%;background-repeat: no-repeat;}
|
29 |
-
ul.ytchagallery li a.ytcthumb .ytcplay{background: url(img/play.png) -9999px -9999px no-repeat;}
|
30 |
-
ul.ytchagallery li a.ytcthumb:hover{opacity: 0.75;}
|
31 |
-
ul.ytchagallery li a.ytcthumb:hover .ytcplay{background-position: center center;}
|
32 |
|
33 |
/*Title and description*/
|
34 |
|
35 |
-
ul.ytchagallery .ytctitle a{word-wrap: break-word;
|
36 |
/*delete*/ font-size: 12px; font-family: Arial; /*end delete*/
|
37 |
}
|
38 |
|
39 |
-
/*delete*/ul.ytchagallery .ytctitle{line-height: 1}
|
40 |
|
41 |
/*left*/
|
42 |
ul.ytchagallery.ytc-td-left div.ytcthumb-cont{margin: 0 5px 5px 0}
|
@@ -85,8 +85,8 @@ ul.ytchagallery li.ytccell-first{clear: left;}
|
|
85 |
.ytc-columns10 li{ width: 20%; width:-webkit-calc(100%/10 + 10px/(10 - 1)); width:calc(100%/10 + 10px/(10 - 1));}
|
86 |
.ytc-columns10 li.ytccell-last{width:-webkit-calc(100%/10 - 10px); width:calc(100%/10 - 10px);}
|
87 |
|
88 |
-
ul.ytchagallery li .ytcliinner{padding: 0 10px 10px 0;overflow: hidden;}
|
89 |
-
ul.ytchagallery li.ytccell-last .ytcliinner{padding-right: 0;}
|
90 |
|
91 |
|
92 |
/*link to YouTube*/
|
19 |
|
20 |
/*Thumbnails, title and description*/
|
21 |
/*---------------------------------------------------*/
|
22 |
+
ul.ytchagallery.ytccf{margin: 0; padding: 0;list-style: none;}
|
23 |
+
ul.ytchagallery.ytccf li{float:left;padding:0;margin: 0}
|
24 |
+
ul.ytchagallery.ytccf li.ytccell-first{clear: left;}
|
25 |
|
26 |
/*Thumbnails*/
|
27 |
+
ul.ytchagallery.ytccf div.ytcthumb-cont{float: left;}
|
28 |
+
ul.ytchagallery.ytccf li a.ytcthumb{display: inline-block;border:1px solid #999;background-position: center center;background-size: 110%;background-repeat: no-repeat;}
|
29 |
+
ul.ytchagallery.ytccf li a.ytcthumb .ytcplay{background: url(img/play.png) -9999px -9999px no-repeat;}
|
30 |
+
ul.ytchagallery.ytccf li a.ytcthumb:hover{opacity: 0.75;}
|
31 |
+
ul.ytchagallery.ytccf li a.ytcthumb:hover .ytcplay{background-position: center center;}
|
32 |
|
33 |
/*Title and description*/
|
34 |
|
35 |
+
ul.ytchagallery.ytccf .ytctitle a{word-wrap: break-word;
|
36 |
/*delete*/ font-size: 12px; font-family: Arial; /*end delete*/
|
37 |
}
|
38 |
|
39 |
+
/*delete*/ul.ytchagallery.ytccf .ytctitle{line-height: 1}
|
40 |
|
41 |
/*left*/
|
42 |
ul.ytchagallery.ytc-td-left div.ytcthumb-cont{margin: 0 5px 5px 0}
|
85 |
.ytc-columns10 li{ width: 20%; width:-webkit-calc(100%/10 + 10px/(10 - 1)); width:calc(100%/10 + 10px/(10 - 1));}
|
86 |
.ytc-columns10 li.ytccell-last{width:-webkit-calc(100%/10 - 10px); width:calc(100%/10 - 10px);}
|
87 |
|
88 |
+
ul.ytchagallery.ytccf li .ytcliinner{padding: 0 10px 10px 0;overflow: hidden;}
|
89 |
+
ul.ytchagallery.ytccf li.ytccell-last .ytcliinner{padding-right: 0;}
|
90 |
|
91 |
|
92 |
/*link to YouTube*/
|
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.6.
|
9 |
License: GPL2
|
10 |
|
11 |
Copyright 2010 Javier Gómez Pose (email : javierpose@gmail.com)
|
@@ -537,7 +537,8 @@
|
|
537 |
$columnlastfirst = '';
|
538 |
if($ytchag_thumb_columns !=0 && $column%$ytchag_thumb_columns === 0){
|
539 |
$columnlastfirst = ' ytccell-last';
|
540 |
-
}
|
|
|
541 |
$columnlastfirst = ' ytccell-first';
|
542 |
STATIC $rowcount = 0;
|
543 |
$rowcount++;
|
@@ -567,10 +568,11 @@
|
|
567 |
|
568 |
|
569 |
if($columnlastfirst == ' ytccell-first'){
|
570 |
-
$content.= '<div class="ytccf ytc-row ytc-r-' . $rowcount . $row_oddeven . ' ">';
|
571 |
}
|
572 |
|
573 |
-
|
|
|
574 |
|
575 |
if($ytchag_thumb_columns !=0 && $column%$ytchag_thumb_columns === 0 ){
|
576 |
$column = 0;
|
@@ -598,11 +600,16 @@
|
|
598 |
$content.= '</li>' . "\n\n";
|
599 |
|
600 |
if($columnlastfirst == ' ytccell-last'){
|
601 |
-
$content.= '</div>';
|
602 |
}
|
603 |
|
604 |
} //foreach end
|
605 |
|
|
|
|
|
|
|
|
|
|
|
606 |
$content.= '</ul>';
|
607 |
|
608 |
//link to youtube.com gallery
|
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.6.2
|
9 |
License: GPL2
|
10 |
|
11 |
Copyright 2010 Javier Gómez Pose (email : javierpose@gmail.com)
|
537 |
$columnlastfirst = '';
|
538 |
if($ytchag_thumb_columns !=0 && $column%$ytchag_thumb_columns === 0){
|
539 |
$columnlastfirst = ' ytccell-last';
|
540 |
+
}
|
541 |
+
if($ytchag_thumb_columns !=0 && $column === 1){
|
542 |
$columnlastfirst = ' ytccell-first';
|
543 |
STATIC $rowcount = 0;
|
544 |
$rowcount++;
|
568 |
|
569 |
|
570 |
if($columnlastfirst == ' ytccell-first'){
|
571 |
+
$content.= "\n\n" .'<div class="ytccf ytc-row ytc-r-' . $rowcount . $row_oddeven . ' ">' . "\n\n";
|
572 |
}
|
573 |
|
574 |
+
//$content.= '$column: ' + $column;
|
575 |
+
$content.= "\n\n" . ' <li class="ytccell-' . $column . $columnlastfirst . '">';
|
576 |
|
577 |
if($ytchag_thumb_columns !=0 && $column%$ytchag_thumb_columns === 0 ){
|
578 |
$column = 0;
|
600 |
$content.= '</li>' . "\n\n";
|
601 |
|
602 |
if($columnlastfirst == ' ytccell-last'){
|
603 |
+
$content.= '</div>' . "\n\n\n";
|
604 |
}
|
605 |
|
606 |
} //foreach end
|
607 |
|
608 |
+
//if last row
|
609 |
+
if($ytchag_thumb_columns !=0 && $columnlastfirst != ' ytccell-last'){
|
610 |
+
$content.= '</div>' . "\n\n\n";
|
611 |
+
}
|
612 |
+
|
613 |
$content.= '</ul>';
|
614 |
|
615 |
//link to youtube.com gallery
|