Youtube Channel Gallery - Version 2.3

Version Description

  • Stop other videos if there is more than one instance of the plugin in the same page.
  • Corrected problem with pagination when there are multiple instances in the same page.
  • Added option to show video duration in thumbnails.
  • Added options to show title, description and published date below the player.
  • Added option to select description words number in player description.
  • Option to select title tag of player.
  • Added option to show published date in thumbnail content.
  • Added option to order published date.
  • Convert plain text URI to HTML links in description text.
  • Added Customizer support.
  • Correction for shortcodes inside pre tags.
  • Error control in thumbnail alignment.
  • Error control in max columns.
  • Help as jquery tooltips.
  • Some little optimizations.
  • Error message optimization.
  • Deleted default Google API Key because quota exceded and added link to Googl Developers Console and hto help.
  • Updated spanish translation and pot file.
Download this release

Release Info

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

Code changes from version 2.2.2 to 2.3

admin-scripts.js CHANGED
@@ -1,271 +1,307 @@
1
- jQuery(document).ready(function($) {
 
 
2
 
3
- $(document).ajaxSuccess(function(e, xhr, settings) {
 
 
 
 
4
 
5
- // on added or saved
6
- if(settings.data.search('action=save-widget') != -1 && settings.data.search('id_base=youtubechannelgallery_widget') != -1) {
7
- $widget = $(e.currentTarget.activeElement).parents('.widget');
8
- ytchg_ActivateChosen();
9
- ytchg_init_tabs();
10
 
 
11
 
12
- }
 
 
 
 
13
 
14
- // on re-ordered
15
- if(settings.data.search('action=widgets-order') != -1) {
16
- ytchg_ActivateChosen();
 
 
 
 
 
 
 
 
 
17
  }
18
- });
19
-
20
- // on load
21
- function ytchg_ActivateChosen() {
22
- $( '#widgets-right .widget[id*="youtubechannelgallery_widget"]' ).each( function() {
23
- ytchg_SetChosen( $(this) );
24
- show_title_description( $(this) );
25
- changeFeedType( $(this) );
26
- changeplayerType( $(this) );
27
- changeAlignThumb( $(this) );
28
- //searchTab( $(this) );
29
- });
30
- }
31
 
32
- // fire on page load
33
- ytchg_ActivateChosen();
34
- ytchg_init_tabs();
35
 
36
 
37
- function ytchg_init_tabs() {
38
- // hide content but first
39
- $('.ytchgtabs-tabs li:first-child').addClass('active');
40
- $('.ytchgtabs .ytchgtabs-content:not(:first-of-type)').hide();
41
- }
42
 
43
 
44
- function ytchg_SetChosen( widget ) {
45
- $widget = $(widget);
46
- $selectList = $('.ytchgtabs', $widget);
47
 
48
- //tabs
49
- $('.ytchgtabs-tabs li a', $widget).click(
50
- function(event){
51
- $selectList = event.currentTarget;
52
- ytchg_update_tabs( $selectList );
53
- return false;
54
- }
55
- );
56
-
57
- // link open title and description
58
- $('.ytchg-tit-desc a', $widget).click(
59
- function(event){
60
- $tit_desc_link = event.currentTarget;
61
- click_title_description( $tit_desc_link );
62
- return false;
63
- }
64
- );
65
- var alignSelect = '.ytchg-field-tit-desc select[id*="ytchag_thumbnail_alignment"]';
66
- $(alignSelect, $widget).change(
67
- function (event) {
68
- $align_change = event.currentTarget;
69
- $current_widget = $(event.currentTarget).parents('.widget');
70
- changeAlignThumb ($current_widget);
71
- });
 
 
 
 
 
 
 
72
 
73
- //feed
74
- var feedSelect = '.tabs-1 select[id*="ytchag_feed"]';
75
- $(feedSelect, $widget).change(
76
- function (event) {
77
- $feed_change = event.currentTarget;
78
- $current_widget = $(event.currentTarget).parents('.widget');
79
- changeFeedType ($current_widget);
80
- });
81
 
82
- //player?
83
- var playerSelect = '.tabs-2 select[id*="ytchag_player"]';
84
- $(playerSelect, $widget).change(
85
- function (event) {
86
- $player_change = event.currentTarget;
87
- $current_widget = $(event.currentTarget).parents('.widget');
88
- changeplayerType ($current_widget);
89
- });
90
 
91
- }
92
 
93
 
94
- function ytchg_update_tabs( selectList ) {
95
- $selectList = $(selectList);
96
- $parentWidget = $selectList.parents('.widget');
97
 
98
- //not work on the current tab
99
- if(!$selectList.parent().hasClass('active')){
100
- //tabs
101
- $('.ytchgtabs-tabs li', $parentWidget).removeClass('active');
102
- $selectList.parent().addClass('active');
103
-
104
- //content tabs
105
- var currentTab = $selectList.attr('href');
106
- //slideUp and slideDown to give it animation
107
- $('.ytchgtabs > div', $parentWidget).slideUp('fast');
108
- $(currentTab, $parentWidget).slideDown('fast');
109
- }
110
- return false;
111
- }
112
 
113
- function click_title_description( tit_desc_link ) {
114
- $tit_desc_link = $(tit_desc_link);
115
- $parentWidget = $tit_desc_link.parents('.widget');
 
 
 
 
 
116
 
117
- if(!$('fieldset.ytchg-field-tit-desc', $parentWidget).hasClass('active')){
118
- $('.ytchg-title-and-description', $parentWidget).slideDown('fast',function(){
119
- $('.ytchg-field-tit-desc', $parentWidget).addClass('ytchg-fieldborder active');
120
- });
121
- } else{
122
- $('.ytchg-title-and-description', $parentWidget).slideUp('fast',function(){
123
- $('.ytchg-field-tit-desc', $parentWidget).removeClass('ytchg-fieldborder active');
124
- });
 
 
 
 
 
125
  }
126
- }
127
 
128
 
129
- //checkboxes with associated content
130
- //---------------
131
 
132
- function show_title_description ( widget ) {
133
- $widget = $(widget);
134
- $tabs = $('.tabs-4', $widget);
135
 
136
- if( $('.ytchg-tit', $tabs).is(':checked') || $('.ytchg-desc', $tabs).is(':checked')){
137
- $('.ytchg-title-and-description', $tabs).show();
138
- $('fieldset.ytchg-field-tit-desc', $tabs).addClass('ytchg-fieldborder active');
139
- } else{
140
- $('.ytchg-title-and-description', $tabs).hide();
 
141
  }
142
- }
143
 
144
 
145
- //Feed label title
146
- //---------------
147
 
148
- function changeFeedType ( widget ) {
149
- $widget = $(widget);
150
 
151
- var feedSelect = '.tabs-1 select[id*="ytchag_feed"]';
152
- var userLabel = 'label[for*="ytchag_user"]';
153
- var feedOrder = 'p[class*="ytchag_feed_order"]';
154
 
155
- // user / playlist label
156
- if(['user', 'favorites', 'likes'].indexOf($(feedSelect + ' option:selected', $widget).val()) !== -1){
157
- $('.feed_user_id_label', $widget).show();
158
- $('.feed_playlist_id_label', $widget).hide();
159
- $('.identify_by', $widget).show();
160
- $('.user', $widget).removeClass('col-md-12').addClass('col-md-8');
161
- }
162
- else if(['playlist'].indexOf($(feedSelect + ' option:selected', $widget).val()) !== -1){
163
- $('.feed_playlist_id_label', $widget).show();
164
- $('.feed_user_id_label', $widget).hide();
165
- $('.identify_by', $widget).hide();
166
- $('.user', $widget).removeClass('col-md-8').addClass('col-md-12');
167
- }
168
 
169
- // order
170
- if(['user'].indexOf($(feedSelect + ' option:selected', $widget).val()) !== -1){
171
- $(feedOrder, $widget).slideDown('fast');
172
- }
173
- else{
174
- $(feedOrder, $widget).slideUp('fast');
 
175
  }
176
- }
177
 
178
 
179
- //Feed label title
180
- //---------------
181
 
182
- function changeAlignThumb ( widget ) {
183
- $widget = $(widget);
184
 
185
- var alignmentSelect = 'select[id*="ytchag_thumbnail_alignment"]';
186
- var align_options = '.align-options';
187
 
188
- if($(alignmentSelect + ' option:selected', $widget).val() === 'none'){
189
- $(align_options, $widget).slideUp('fast');
190
- } else{
191
- $(align_options, $widget).slideDown('fast');
 
192
  }
193
- }
194
 
195
 
196
- //Player type
197
- //---------------
198
 
199
- function changeplayerType ( widget ) {
200
- $widget = $(widget);
201
 
202
- var playerSelect = '.tabs-2 select[id*="ytchag_player"]';
203
- var player_options = '.tabs-2 .player_options';
204
- var thumb_window = '.tabs-4 .thumb_window';
205
 
206
- if($(playerSelect + ' option:selected', $widget).val() === '0'){
207
- $(thumb_window, $widget).show();
208
- $(player_options, $widget).slideUp('fast');
209
- }
210
- if($(playerSelect + ' option:selected', $widget).val() === '1'){
211
- $(thumb_window, $widget).hide();
212
- $(player_options, $widget).slideDown('fast');
213
- }
214
- if($(playerSelect + ' option:selected', $widget).val() === '2'){
215
- $(thumb_window, $widget).hide();
216
- $(player_options, $widget).slideUp('fast');
 
217
  }
218
- }
219
 
220
 
221
- //Search tab
222
- //---------------
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
223
 
224
- function searchTab(widget) {
225
 
226
- this.llamada = this.llamada || {};
227
 
228
- if (this.llamada[widget[0].id]) {
229
- return;
230
- }
231
- else {
232
- this.llamada[widget[0].id] = 1;
233
- }
234
 
235
- $widget = $(widget);
 
 
 
 
236
 
237
- $widget.on('keyup', '[id$="ytchag_search_playlists"]', function(e) {
 
 
238
 
239
- var campos = this.value.split('#'),
240
- $select = $widget.find('[id$="ytchag_search_restrict"]'),
241
- restrict = '',
242
- options = '';
243
 
 
 
 
 
 
 
 
 
 
244
 
245
- $.each(campos, function(i, c) {
246
 
247
- var tag = c.toLocaleLowerCase().replace(/ /g, '_');
 
 
 
248
 
249
- if (c !== '') {
250
- restrict += (restrict ? ',' : '') + 'restrict_' + tag;
251
- options += '<option value="' + tag + '">' + c + '</option>';
252
- }
253
- });
 
 
 
 
 
 
254
 
255
- $widget.find('.restrict').html(restrict);
256
- $select.find('option:gt(0)').remove();
257
- $select.append(options);
258
 
259
- return true;
260
- });
 
261
 
262
- $widget.on('change', '[id$="ytchag_feed"]', function(e) {
263
- if ($(this).val() === 'user') {
264
- $widget.find('.ytchgtabs-tabs > li:eq(2)').show();
265
- }
266
- else {
267
- $widget.find('.ytchgtabs-tabs > li:eq(2)').hide();
268
- }
269
- });
270
- }
271
- });
1
+ jQuery( function ( $ ) {
2
+ function init( widget_el, is_cloned ) {
3
+ $(document).ajaxSuccess(function(e, xhr, settings) {
4
 
5
+ // on added or saved
6
+ if(settings.data.search('action=save-widget') != -1 && settings.data.search('id_base=youtubechannelgallery_widget') != -1) {
7
+ $widget = $(e.currentTarget.activeElement).parents('.widget');
8
+ ytchg_ActivateChosen();
9
+ ytchg_init_tabs();
10
 
 
 
 
 
 
11
 
12
+ }
13
 
14
+ // on re-ordered
15
+ if(settings.data.search('action=widgets-order') != -1) {
16
+ ytchg_ActivateChosen();
17
+ }
18
+ });
19
 
20
+ // on load
21
+ function ytchg_ActivateChosen() {
22
+ $( '.widget[id*="youtubechannelgallery_widget"]' ).each( function() {
23
+ ytchg_SetChosen( $(this) );
24
+ show_title_description( $(this), '.tabs-2' );
25
+ show_title_description( $(this), '.tabs-4' );
26
+ changeFeedType( $(this) );
27
+ changeplayerType( $(this) );
28
+ changeAlignThumb( $(this) );
29
+ add_tooltips( $(this) );
30
+ //searchTab( $(this) );
31
+ });
32
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
33
 
34
+ // fire on page load
35
+ ytchg_ActivateChosen();
36
+ ytchg_init_tabs();
37
 
38
 
39
+ function ytchg_init_tabs() {
40
+ // hide content but first
41
+ $('.ytchgtabs-tabs li:first-child').addClass('active');
42
+ $('.ytchgtabs .ytchgtabs-content:not(:first-of-type)').hide();
43
+ }
44
 
45
 
46
+ function ytchg_SetChosen( widget ) {
47
+ $widget = $(widget);
48
+ $selectList = $('.ytchgtabs', $widget);
49
 
50
+ //tabs
51
+ $('.ytchgtabs-tabs li a', $widget).click(
52
+ function(event){
53
+ $selectList = event.currentTarget;
54
+ ytchg_update_tabs( $selectList );
55
+ return false;
56
+ }
57
+ );
58
+
59
+ // link open title and description
60
+ $('.tabs-2 .ytchg-tit-desc a', $widget).click(
61
+ function(event){
62
+ $tit_desc_link = event.currentTarget;
63
+ click_title_description( $tit_desc_link );
64
+ return false;
65
+ }
66
+ );
67
+ $('.tabs-4 .ytchg-tit-desc a', $widget).click(
68
+ function(event){
69
+ $tit_desc_link = event.currentTarget;
70
+ click_title_description( $tit_desc_link );
71
+ return false;
72
+ }
73
+ );
74
+ var alignSelect = '.ytchg-field-tit-desc select[id*="ytchag_thumbnail_alignment"]';
75
+ $(alignSelect, $widget).change(
76
+ function (event) {
77
+ $align_change = event.currentTarget;
78
+ $current_widget = $(event.currentTarget).parents('.widget');
79
+ changeAlignThumb ($current_widget);
80
+ });
81
 
82
+ //feed
83
+ var feedSelect = '.tabs-1 select[id*="ytchag_feed"]';
84
+ $(feedSelect, $widget).change(
85
+ function (event) {
86
+ $feed_change = event.currentTarget;
87
+ $current_widget = $(event.currentTarget).parents('.widget');
88
+ changeFeedType ($current_widget);
89
+ });
90
 
91
+ //player?
92
+ var playerSelect = '.tabs-2 select[id*="ytchag_player"]';
93
+ $(playerSelect, $widget).change(
94
+ function (event) {
95
+ $player_change = event.currentTarget;
96
+ $current_widget = $(event.currentTarget).parents('.widget');
97
+ changeplayerType ($current_widget);
98
+ });
99
 
100
+ }
101
 
102
 
103
+ function ytchg_update_tabs( selectList ) {
104
+ $selectList = $(selectList);
105
+ $parentWidget = $selectList.parents('.widget');
106
 
107
+ //not work on the current tab
108
+ if(!$selectList.parent().hasClass('active')){
109
+ //tabs
110
+ $('.ytchgtabs-tabs li', $parentWidget).removeClass('active');
111
+ $selectList.parent().addClass('active');
 
 
 
 
 
 
 
 
 
112
 
113
+ //content tabs
114
+ var currentTab = $selectList.attr('href');
115
+ //slideUp and slideDown to give it animation
116
+ $('.ytchgtabs > div', $parentWidget).slideUp('fast');
117
+ $(currentTab, $parentWidget).slideDown('fast');
118
+ }
119
+ return false;
120
+ }
121
 
122
+ function click_title_description( tit_desc_link ) {
123
+ $tit_desc_link = $(tit_desc_link);
124
+ $parentWidget = $tit_desc_link.parents('.ytchgtabs-content');
125
+
126
+ if(!$('fieldset.ytchg-field-tit-desc', $parentWidget).hasClass('active')){
127
+ $('.ytchg-title-and-description', $parentWidget).slideDown('fast',function(){
128
+ $('.ytchg-field-tit-desc', $parentWidget).addClass('ytchg-fieldborder active');
129
+ });
130
+ } else{
131
+ $('.ytchg-title-and-description', $parentWidget).slideUp('fast',function(){
132
+ $('.ytchg-field-tit-desc', $parentWidget).removeClass('ytchg-fieldborder active');
133
+ });
134
+ }
135
  }
 
136
 
137
 
138
+ //checkboxes with associated content
139
+ //---------------
140
 
141
+ function show_title_description ( widget, tab ) {
142
+ $widget = $(widget);
143
+ $tabs = $(tab, $widget);
144
 
145
+ if( $('.ytchg-tit', $tabs).is(':checked') || $('.ytchg-desc', $tabs).is(':checked')){
146
+ $('.ytchg-title-and-description', $tabs).show();
147
+ $('fieldset.ytchg-field-tit-desc', $tabs).addClass('ytchg-fieldborder active');
148
+ } else{
149
+ $('.ytchg-title-and-description', $tabs).hide();
150
+ }
151
  }
 
152
 
153
 
154
+ //Feed label title
155
+ //---------------
156
 
157
+ function changeFeedType ( widget ) {
158
+ $widget = $(widget);
159
 
160
+ var feedSelect = '.tabs-1 select[id*="ytchag_feed"]';
161
+ var userLabel = 'label[for*="ytchag_user"]';
162
+ var feedOrder = 'p[class*="ytchag_feed_order"]';
163
 
164
+ // user / playlist label
165
+ if(['user', 'favorites', 'likes'].indexOf($(feedSelect + ' option:selected', $widget).val()) !== -1){
166
+ $('.feed_user_id_label', $widget).show();
167
+ $('.feed_playlist_id_label', $widget).hide();
168
+ $('.identify_by', $widget).show();
169
+ $('.user', $widget).removeClass('col-md-12').addClass('col-md-8');
170
+ }
171
+ else if(['playlist'].indexOf($(feedSelect + ' option:selected', $widget).val()) !== -1){
172
+ $('.feed_playlist_id_label', $widget).show();
173
+ $('.feed_user_id_label', $widget).hide();
174
+ $('.identify_by', $widget).hide();
175
+ $('.user', $widget).removeClass('col-md-8').addClass('col-md-12');
176
+ }
177
 
178
+ // order
179
+ if(['user'].indexOf($(feedSelect + ' option:selected', $widget).val()) !== -1){
180
+ $(feedOrder, $widget).slideDown('fast');
181
+ }
182
+ else{
183
+ $(feedOrder, $widget).slideUp('fast');
184
+ }
185
  }
 
186
 
187
 
188
+ //Feed label title
189
+ //---------------
190
 
191
+ function changeAlignThumb ( widget ) {
192
+ $widget = $(widget);
193
 
194
+ var alignmentSelect = 'select[id*="ytchag_thumbnail_alignment"]';
195
+ var align_options = '.align-options';
196
 
197
+ if($(alignmentSelect + ' option:selected', $widget).val() === 'none'){
198
+ $(align_options, $widget).slideUp('fast');
199
+ } else{
200
+ $(align_options, $widget).slideDown('fast');
201
+ }
202
  }
 
203
 
204
 
205
+ //Player type
206
+ //---------------
207
 
208
+ function changeplayerType ( widget ) {
209
+ $widget = $(widget);
210
 
211
+ var playerSelect = '.tabs-2 select[id*="ytchag_player"]';
212
+ var player_options = '.tabs-2 .player_options';
213
+ var thumb_window = '.tabs-4 .thumb_window';
214
 
215
+ if($(playerSelect + ' option:selected', $widget).val() === '0'){
216
+ $(thumb_window, $widget).show();
217
+ $(player_options, $widget).slideUp('fast');
218
+ }
219
+ if($(playerSelect + ' option:selected', $widget).val() === '1'){
220
+ $(thumb_window, $widget).hide();
221
+ $(player_options, $widget).slideDown('fast');
222
+ }
223
+ if($(playerSelect + ' option:selected', $widget).val() === '2'){
224
+ $(thumb_window, $widget).hide();
225
+ $(player_options, $widget).slideUp('fast');
226
+ }
227
  }
 
228
 
229
 
230
+ //Search tab
231
+ //---------------
232
+
233
+ function searchTab(widget) {
234
+
235
+ this.llamada = this.llamada || {};
236
+
237
+ if (this.llamada[widget[0].id]) {
238
+ return;
239
+ }
240
+ else {
241
+ this.llamada[widget[0].id] = 1;
242
+ }
243
+
244
+ $widget = $(widget);
245
+
246
+ $widget.on('keyup', '[id$="ytchag_search_playlists"]', function(e) {
247
+
248
+ var campos = this.value.split('#'),
249
+ $select = $widget.find('[id$="ytchag_search_restrict"]'),
250
+ restrict = '',
251
+ options = '';
252
 
 
253
 
254
+ $.each(campos, function(i, c) {
255
 
256
+ var tag = c.toLocaleLowerCase().replace(/ /g, '_');
 
 
 
 
 
257
 
258
+ if (c !== '') {
259
+ restrict += (restrict ? ',' : '') + 'restrict_' + tag;
260
+ options += '<option value="' + tag + '">' + c + '</option>';
261
+ }
262
+ });
263
 
264
+ $widget.find('.restrict').html(restrict);
265
+ $select.find('option:gt(0)').remove();
266
+ $select.append(options);
267
 
268
+ return true;
269
+ });
 
 
270
 
271
+ $widget.on('change', '[id$="ytchag_feed"]', function(e) {
272
+ if ($(this).val() === 'user') {
273
+ $widget.find('.ytchgtabs-tabs > li:eq(2)').show();
274
+ }
275
+ else {
276
+ $widget.find('.ytchgtabs-tabs > li:eq(2)').hide();
277
+ }
278
+ });
279
+ }
280
 
281
+ function add_tooltips(widget) {
282
 
283
+ $( ".ytchag_info" ).tooltip(
284
+ {
285
+ tooltipClass: "ytchgtooltip",
286
+ position: { my: "center bottom-28px", at: "center bottom", collision: "none" },
287
 
288
+ });
289
+ }
290
+
291
+ }
292
+
293
+
294
+ function on_form_update( e, widget_el ) {
295
+ if ( 'youtubechannelgallery_widget' === widget_el.find( 'input[name="id_base"]' ).val() ) {
296
+ init( widget_el, 'widget-added' === e.type );
297
+ }
298
+ }
299
 
300
+ $( document ).on( 'widget-updated', on_form_update );
301
+ $( document ).on( 'widget-added', on_form_update );
 
302
 
303
+ $( '.widget[id*="youtubechannelgallery_widget"]' ).each( function () {
304
+ init( $( this ) );
305
+ } );
306
 
307
+ } );
 
 
 
 
 
 
 
 
 
admin-styles.css CHANGED
@@ -1 +1 @@
1
- .ytchg{margin-bottom:13px}.ytchgtabs *{-webkit-box-sizing:border-box;box-sizing:border-box}.ytchgtabs :before,.ytchgtabs :after{-webkit-box-sizing:border-box;box-sizing:border-box}.ytchgtabs .clearfix:before,.ytchgtabs .clearfix:after{content:'';display:table}.ytchgtabs .clearfix:after{clear:both}.ytchgtabs .clearfix{zoom:1}.ytchgtabs ul{margin:0;padding:0}.ytchgtabs li{display:inline-block;margin:1px .2em 0 0;padding:0;list-style:none;white-space:nowrap;position:relative;background:#f3f3f3;border:1px solid #dfdfdf;border-bottom:none;border-radius:5px 5px 0 0}.ytchgtabs li.active{margin-bottom:-1px;padding-bottom:1px;background:#fafafa}.ytchgtabs .ytchgtabs-tabs a{padding:5px;display:inline-block;text-decoration:none;outline:0}.ytchgtabs .ytchgtabs-tabs a:focus{-webkit-box-shadow:none;box-shadow:none}.ytchgtabs .ytchg-tit-desc a:focus{-webkit-box-shadow:none;box-shadow:none}.ytchgtabs input,.ytchgtabs select{margin:3px 1px 1px}.ytchgtabs select{vertical-align:baseline}.ytchgtabs div.ytchgtabs-content{border:1px solid #dfdfdf;padding:15px 12px;background:#fafafa}.ytchgtabs .ytchgtabs-content p:last-child{margin-bottom:0}.ytchgtabs .feed_playlist_id_label{display:none}.ytchgtabs .ytchg-field-tit-desc{margin:13px 0}.ytchgtabs div.ytchg-title-and-description{border:none;background:0 0;display:none}.ytchgtabs fieldset{border:1px solid transparent;border-radius:5px}.ytchgtabs fieldset.ytchg-fieldborder{border-color:#dfdfdf}.ytchgtabs .align-options{display:none}.ytchgtabs .ytchag_info{background:#D7D7D7;border-radius:20px;font-size:11px;width:15px;height:15px;line-height:14px;display:inline-block;text-align:center;cursor:pointer;position:relative;vertical-align:text-top;margin-top:1px}.ytchgtabs .wideinfo{width:100%;margin-right:-25px;padding-right:25px}.ytchgtabs select+.ytchag_info{margin-left:-12px}.ytchgtabs .player_options{width:100%}.ytchgtabs .row{margin:13px -15px}.ytchgtabs .flex{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}.ytchgtabs .clearfix:before,.ytchgtabs .clearfix:after,.ytchgtabs .row:before,.ytchgtabs .row:after{content:' ';display:table}.ytchgtabs .clearfix:after,.ytchgtabs .row:after{clear:both}.ytchgtabs .col-md-12{position:relative;min-height:1px;padding-left:15px;padding-right:15px;width:100%;float:left}.ytchgtabs .col-md-6{position:relative;min-height:1px;padding-left:15px;padding-right:15px;width:50%;float:left}.ytchgtabs .col-md-1,.ytchgtabs .col-md-2,.ytchgtabs .col-md-3,.ytchgtabs .col-md-4,.ytchgtabs .col-md-5,.ytchgtabs .col-md-6,.ytchgtabs .col-md-7,.ytchgtabs .col-md-8,.ytchgtabs .col-md-9,.ytchgtabs .col-md-10,.ytchgtabs .col-md-11,.ytchgtabs .col-md-12{float:left}.ytchgtabs .col-xs-1,.ytchgtabs .col-sm-1,.ytchgtabs .col-md-1,.ytchgtabs .col-lg-1,.ytchgtabs .col-xs-2,.ytchgtabs .col-sm-2,.ytchgtabs .col-md-2,.ytchgtabs .col-lg-2,.ytchgtabs .col-xs-3,.ytchgtabs .col-sm-3,.ytchgtabs .col-md-3,.ytchgtabs .col-lg-3,.ytchgtabs .col-xs-4,.ytchgtabs .col-sm-4,.ytchgtabs .col-md-4,.ytchgtabs .col-lg-4,.ytchgtabs .col-xs-5,.ytchgtabs .col-sm-5,.ytchgtabs .col-md-5,.ytchgtabs .col-lg-5,.ytchgtabs .col-xs-6,.ytchgtabs .col-sm-6,.ytchgtabs .col-md-6,.ytchgtabs .col-lg-6,.ytchgtabs .col-xs-7,.ytchgtabs .col-sm-7,.ytchgtabs .col-md-7,.ytchgtabs .col-lg-7,.ytchgtabs .col-xs-8,.ytchgtabs .col-sm-8,.ytchgtabs .col-md-8,.ytchgtabs .col-lg-8,.ytchgtabs .col-xs-9,.ytchgtabs .col-sm-9,.ytchgtabs .col-md-9,.ytchgtabs .col-lg-9,.ytchgtabs .col-xs-10,.ytchgtabs .col-sm-10,.ytchgtabs .col-md-10,.ytchgtabs .col-lg-10,.ytchgtabs .col-xs-11,.ytchgtabs .col-sm-11,.ytchgtabs .col-md-11,.ytchgtabs .col-lg-11,.ytchgtabs .col-xs-12,.ytchgtabs .col-sm-12,.ytchgtabs .col-md-12,.ytchgtabs .col-lg-12{position:relative;min-height:1px;padding-left:15px;padding-right:15px}.ytchgtabs .col-md-12{width:100%}.ytchgtabs .col-md-11{width:91.66666667%}.ytchgtabs .col-md-10{width:83.33333333%}.ytchgtabs .col-md-9{width:75%}.ytchgtabs .col-md-8{width:66.66666667%}.ytchgtabs .col-md-7{width:58.33333333%}.ytchgtabs .col-md-6{width:50%}.ytchgtabs .col-md-5{width:41.66666667%}.ytchgtabs .col-md-4{width:33.33333333%}.ytchgtabs .col-md-3{width:25%}.ytchgtabs .col-md-2-4{width:20%}.ytchgtabs .col-md-2{width:16.66666667%}.ytchgtabs .col-md-1{width:8.33333333%}.ytchgtabs .text-right{text-align:right}.ytchgtabs .thumbs-cols .col-md-6{width:auto}.ytchgtabs .no-w{width:auto}.ytchgtabs .table{display:table}.ytchgtabs .table .table-row{display:table-row}.ytchgtabs .table .table-row>div{display:table-cell}.ytchgtabs .table .table-row>div label{margin-right:5px}
1
+ li[id^=customize-control-widget_youtubechannelgallery_widget-] .widget-content{width:400px}.ytchgtooltip.ui-tooltip{padding:8px;position:absolute;z-index:99999999999;max-width:300px;-webkit-box-shadow:0 0 8px rgba(0,0,0,.5);box-shadow:0 0 8px rgba(0,0,0,.5);border-width:2px;background:#fff}.ytchgtooltip.ui-tooltip:after{content:'▼';display:block;width:0;height:0;position:absolute;text-shadow:0 2px 5px rgba(0,0,0,.5);color:#fff;line-height:0;font-size:10px;left:48%;bottom:-4px}.ytchg{margin-bottom:13px}.ytchg .ytchgtabs *{-webkit-box-sizing:border-box;box-sizing:border-box}.ytchg .ytchgtabs :before,.ytchg .ytchgtabs :after{-webkit-box-sizing:border-box;box-sizing:border-box}.ytchg .ytchgtabs .clearfix:before,.ytchg .ytchgtabs .clearfix:after{content:'';display:table}.ytchg .ytchgtabs .clearfix:after{clear:both}.ytchg .ytchgtabs .clearfix{zoom:1}.ytchg .ytchgtabs ul{margin:0;padding:0}.ytchg .ytchgtabs li{display:inline-block;margin:1px .2em 0 0;padding:0;list-style:none;white-space:nowrap;position:relative;background:#f3f3f3;border:1px solid #dfdfdf;border-bottom:none;border-radius:5px 5px 0 0}.ytchg .ytchgtabs li.active{margin-bottom:-1px;padding-bottom:1px;background:#fafafa}.ytchg .ytchgtabs .ytchgtabs-tabs a{padding:5px;display:inline-block;text-decoration:none;outline:0}.ytchg .ytchgtabs .ytchgtabs-tabs a:focus{-webkit-box-shadow:none;box-shadow:none}.ytchg .ytchgtabs .ytchg-tit-desc a:focus{-webkit-box-shadow:none;box-shadow:none}.ytchg .ytchgtabs input,.ytchg .ytchgtabs select{margin:3px 1px 1px;width:auto}.ytchg .ytchgtabs select{vertical-align:baseline}.ytchg .ytchgtabs div.ytchgtabs-content{border:1px solid #dfdfdf;padding:15px 12px;background:#fafafa}.ytchg .ytchgtabs .ytchgtabs-content p:last-child{margin-bottom:0}.ytchg .ytchgtabs .feed_playlist_id_label{display:none}.ytchg .ytchgtabs .ytchg-field-tit-desc{margin:13px 0}.ytchg .ytchgtabs div.ytchg-title-and-description{border:none;background:0 0;display:none}.ytchg .ytchgtabs fieldset{border:1px solid transparent;border-radius:5px}.ytchg .ytchgtabs fieldset.ytchg-fieldborder{border-color:#dfdfdf}.ytchg .ytchgtabs .align-options{display:none}.ytchg .ytchgtabs .ytchag_info{background:#D7D7D7;border-radius:20px;font-size:11px;width:15px;height:15px;line-height:14px;display:inline-block;text-align:center;cursor:pointer;position:relative;vertical-align:text-top;margin-top:1px}.ytchg .ytchgtabs .widefat{width:100%}.ytchg .ytchgtabs .wideinfo{width:100%;margin-right:-25px;padding-right:25px}.ytchg .ytchgtabs select+.ytchag_info{margin-left:-12px}.ytchg .ytchgtabs .player_options{width:100%}.ytchg .ytchgtabs .row{margin:13px -15px}.ytchg .ytchgtabs .flex{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}.ytchg .ytchgtabs .clearfix:before,.ytchg .ytchgtabs .clearfix:after,.ytchg .ytchgtabs .row:before,.ytchg .ytchgtabs .row:after{content:' ';display:table}.ytchg .ytchgtabs .clearfix:after,.ytchg .ytchgtabs .row:after{clear:both}.ytchg .ytchgtabs .col-md-12{position:relative;min-height:1px;padding-left:15px;padding-right:15px;width:100%;float:left}.ytchg .ytchgtabs .col-md-6{position:relative;min-height:1px;padding-left:15px;padding-right:15px;width:50%;float:left}.ytchg .ytchgtabs .col-md-1,.ytchg .ytchgtabs .col-md-2,.ytchg .ytchgtabs .col-md-3,.ytchg .ytchgtabs .col-md-4,.ytchg .ytchgtabs .col-md-5,.ytchg .ytchgtabs .col-md-6,.ytchg .ytchgtabs .col-md-7,.ytchg .ytchgtabs .col-md-8,.ytchg .ytchgtabs .col-md-9,.ytchg .ytchgtabs .col-md-10,.ytchg .ytchgtabs .col-md-11,.ytchg .ytchgtabs .col-md-12{float:left}.ytchg .ytchgtabs .col-xs-1,.ytchg .ytchgtabs .col-sm-1,.ytchg .ytchgtabs .col-md-1,.ytchg .ytchgtabs .col-lg-1,.ytchg .ytchgtabs .col-xs-2,.ytchg .ytchgtabs .col-sm-2,.ytchg .ytchgtabs .col-md-2,.ytchg .ytchgtabs .col-lg-2,.ytchg .ytchgtabs .col-xs-3,.ytchg .ytchgtabs .col-sm-3,.ytchg .ytchgtabs .col-md-3,.ytchg .ytchgtabs .col-lg-3,.ytchg .ytchgtabs .col-xs-4,.ytchg .ytchgtabs .col-sm-4,.ytchg .ytchgtabs .col-md-4,.ytchg .ytchgtabs .col-lg-4,.ytchg .ytchgtabs .col-xs-5,.ytchg .ytchgtabs .col-sm-5,.ytchg .ytchgtabs .col-md-5,.ytchg .ytchgtabs .col-lg-5,.ytchg .ytchgtabs .col-xs-6,.ytchg .ytchgtabs .col-sm-6,.ytchg .ytchgtabs .col-md-6,.ytchg .ytchgtabs .col-lg-6,.ytchg .ytchgtabs .col-xs-7,.ytchg .ytchgtabs .col-sm-7,.ytchg .ytchgtabs .col-md-7,.ytchg .ytchgtabs .col-lg-7,.ytchg .ytchgtabs .col-xs-8,.ytchg .ytchgtabs .col-sm-8,.ytchg .ytchgtabs .col-md-8,.ytchg .ytchgtabs .col-lg-8,.ytchg .ytchgtabs .col-xs-9,.ytchg .ytchgtabs .col-sm-9,.ytchg .ytchgtabs .col-md-9,.ytchg .ytchgtabs .col-lg-9,.ytchg .ytchgtabs .col-xs-10,.ytchg .ytchgtabs .col-sm-10,.ytchg .ytchgtabs .col-md-10,.ytchg .ytchgtabs .col-lg-10,.ytchg .ytchgtabs .col-xs-11,.ytchg .ytchgtabs .col-sm-11,.ytchg .ytchgtabs .col-md-11,.ytchg .ytchgtabs .col-lg-11,.ytchg .ytchgtabs .col-xs-12,.ytchg .ytchgtabs .col-sm-12,.ytchg .ytchgtabs .col-md-12,.ytchg .ytchgtabs .col-lg-12{position:relative;min-height:1px;padding-left:15px;padding-right:15px}.ytchg .ytchgtabs .col-md-12{width:100%}.ytchg .ytchgtabs .col-md-11{width:91.66666667%}.ytchg .ytchgtabs .col-md-10{width:83.33333333%}.ytchg .ytchgtabs .col-md-9{width:75%}.ytchg .ytchgtabs .col-md-8{width:66.66666667%}.ytchg .ytchgtabs .col-md-7{width:58.33333333%}.ytchg .ytchgtabs .col-md-6{width:50%}.ytchg .ytchgtabs .col-md-5{width:41.66666667%}.ytchg .ytchgtabs .col-md-4{width:33.33333333%}.ytchg .ytchgtabs .col-md-3{width:25%}.ytchg .ytchgtabs .col-md-2-4{width:20%}.ytchg .ytchgtabs .col-md-2{width:16.66666667%}.ytchg .ytchgtabs .col-md-1{width:8.33333333%}.ytchg .ytchgtabs .text-right{text-align:right}.ytchg .ytchgtabs .thumbs-cols .col-md-6{width:auto}.ytchg .ytchgtabs .no-w{width:auto}.ytchg .ytchgtabs .table{display:table}.ytchg .ytchgtabs .table .table-row{display:table-row}.ytchg .ytchgtabs .table .table-row>div{display:table-cell}.ytchg .ytchgtabs .table .table-row>div label{margin-right:5px}
languages/youtube-channel-gallery-es_ES.mo CHANGED
Binary file
languages/youtube-channel-gallery-es_ES.po CHANGED
@@ -7,8 +7,8 @@ msgid ""
7
  msgstr ""
8
  "Project-Id-Version: youtube-channel-gallery\n"
9
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2015-06-30 15:16+0100\n"
11
- "PO-Revision-Date: 2015-06-30 15:19+0100\n"
12
  "Last-Translator: Javier <javierpose@gmail.com>\n"
13
  "Language-Team: PoseLab <javierpose@gmail.com>\n"
14
  "Language: es_ES\n"
@@ -16,13 +16,13 @@ msgstr ""
16
  "Content-Type: text/plain; charset=UTF-8\n"
17
  "Content-Transfer-Encoding: 8bit\n"
18
  "X-Launchpad-Export-Date: 2010-06-23 21:48+0000\n"
19
- "X-Generator: Poedit 1.7.3\n"
20
  "X-Poedit-Basepath: ..\n"
21
  "X-Poedit-KeywordsList: _e;__\n"
22
  "X-Poedit-SourceCharset: utf-8\n"
23
  "X-Poedit-SearchPath-0: .\n"
24
 
25
- #: templates/admin_tabs.php:3 templates/admin_tabs.php:413
26
  msgid "Title:"
27
  msgstr "Título:"
28
 
@@ -54,79 +54,89 @@ msgstr "YouTube API Key:"
54
  msgid "Get your own YouTube API Key and put here."
55
  msgstr "Obtén tu propia YouTube API Key e insertada aquí"
56
 
57
- #: templates/admin_tabs.php:32
 
 
 
 
 
 
 
 
 
 
58
  msgid "Video feed type:"
59
  msgstr "Tipo de feed de vídeo:"
60
 
61
- #: templates/admin_tabs.php:34
62
  msgid "Uploaded by a user"
63
  msgstr "Subidos por el usuario"
64
 
65
- #: templates/admin_tabs.php:35
66
  msgid "User's favorites"
67
  msgstr "Favoritos del usuario"
68
 
69
- #: templates/admin_tabs.php:36
70
  msgid "User's likes"
71
  msgstr "Likes de usuario"
72
 
73
- #: templates/admin_tabs.php:37
74
  msgid "Playlist"
75
  msgstr "Lista de reproducción"
76
 
77
- #: templates/admin_tabs.php:42
78
  msgid "Identify by:"
79
  msgstr "Identificar por:"
80
 
81
- #: templates/admin_tabs.php:44
82
  msgid "Username"
83
  msgstr "Nombre de usuario"
84
 
85
- #: templates/admin_tabs.php:45
86
  msgid "Channel ID"
87
  msgstr "ID de canal:"
88
 
89
- #: templates/admin_tabs.php:49
90
  msgid "YouTube id:"
91
  msgstr "Id de Youtube:"
92
 
93
- #: templates/admin_tabs.php:50
94
  msgid "YouTube playlist id:"
95
  msgstr "Id de lista de reproducción de YouTube:"
96
 
97
- #: templates/admin_tabs.php:56
98
  msgid "Playlist order:"
99
  msgstr "Orden de lista de reproducción:"
100
 
101
- #: templates/admin_tabs.php:58
102
  msgid "Date Order"
103
  msgstr "Ordenar por fecha"
104
 
105
- #: templates/admin_tabs.php:59
106
  msgid "Rating Order"
107
  msgstr "Ordenar por calificación"
108
 
109
- #: templates/admin_tabs.php:60
110
  msgid "Relevance Order"
111
  msgstr "Ordenar por relevancia"
112
 
113
- #: templates/admin_tabs.php:61
114
  msgid "Title Order"
115
  msgstr "Ordenar por título"
116
 
117
- #: templates/admin_tabs.php:62
118
  msgid "Video Count Order"
119
  msgstr "Ordenar por número de vídeos subidos"
120
 
121
- #: templates/admin_tabs.php:63
122
  msgid "View Count Order"
123
  msgstr "Ordenar por número de reproducciones"
124
 
125
- #: templates/admin_tabs.php:70
126
  msgid "Cache time (hours):"
127
  msgstr "Tiempo de cache (horas):"
128
 
129
- #: templates/admin_tabs.php:72
130
  msgid ""
131
  "Hours that RSS data is saved in database, to not make a request every time "
132
  "the page is displayed. Assign this value according to how often you upgrade "
@@ -136,11 +146,11 @@ msgstr ""
136
  "solicitud cada vez que se muestra la página. Asigna este valor en función de "
137
  "la frecuencia con que actualizas la lista de reproducción en YouTube."
138
 
139
- #: templates/admin_tabs.php:79
140
  msgid "Activate cache"
141
  msgstr "Activar caché"
142
 
143
- #: templates/admin_tabs.php:80
144
  msgid ""
145
  "If you disable this field the cache will be deleted and will not be used. "
146
  "This is useful to refresh immediately the YouTube RSS used by the plugin. "
@@ -152,103 +162,103 @@ msgstr ""
152
  "Vuelve a habilitar la caché cuando la galería muestre los cambios que ha "
153
  "realizado en su cuenta de YouTube."
154
 
155
- #: templates/admin_tabs.php:95
156
  msgid "Player:"
157
  msgstr "Reproductor:"
158
 
159
- #: templates/admin_tabs.php:97
160
  msgid "Without player"
161
  msgstr "Sin reproductor"
162
 
163
- #: templates/admin_tabs.php:98
164
  msgid "show player"
165
  msgstr "mostrar reproductor"
166
 
167
- #: templates/admin_tabs.php:99
168
  msgid "show player in Magnific Popup"
169
  msgstr "mostrar reproductor en Magnific Popup"
170
 
171
- #: templates/admin_tabs.php:106
172
  msgid "Width:"
173
  msgstr "Ancho:"
174
 
175
- #: templates/admin_tabs.php:109
176
  msgid "%"
177
  msgstr "%"
178
 
179
- #: templates/admin_tabs.php:110
180
  msgid "px"
181
  msgstr "px"
182
 
183
- #: templates/admin_tabs.php:114 templates/admin_tabs.php:264
184
  msgid "Aspect ratio:"
185
  msgstr "Relación de aspecto:"
186
 
187
- #: templates/admin_tabs.php:116 templates/admin_tabs.php:266
188
  msgid "Standard (4x3)"
189
  msgstr "Estándar (4x3)"
190
 
191
- #: templates/admin_tabs.php:117 templates/admin_tabs.php:267
192
  msgid "Widescreen (16x9)"
193
  msgstr "Panorámico (16x9)"
194
 
195
- #: templates/admin_tabs.php:124
196
  msgid "Theme:"
197
  msgstr "Tema:"
198
 
199
- #: templates/admin_tabs.php:126
200
  msgid "Dark"
201
  msgstr "Oscuro"
202
 
203
- #: templates/admin_tabs.php:127
204
  msgid "Light"
205
  msgstr "Claro"
206
 
207
- #: templates/admin_tabs.php:131
208
  msgid "Progress bar color:"
209
  msgstr "Color de barra de progreso:"
210
 
211
- #: templates/admin_tabs.php:133
212
  msgid "Red"
213
  msgstr "Rojo"
214
 
215
- #: templates/admin_tabs.php:134
216
  msgid "White"
217
  msgstr "Blanco"
218
 
219
- #: templates/admin_tabs.php:141
220
  msgid "Video quality:"
221
  msgstr "Calidad del vídeo:"
222
 
223
- #: templates/admin_tabs.php:143
224
  msgid "default"
225
  msgstr "por defecto"
226
 
227
- #: templates/admin_tabs.php:144
228
  msgid "highres"
229
  msgstr "alta resolución"
230
 
231
- #: templates/admin_tabs.php:145
232
  msgid "hd1080"
233
  msgstr "hd1080"
234
 
235
- #: templates/admin_tabs.php:146
236
  msgid "hd720"
237
  msgstr "hd720"
238
 
239
- #: templates/admin_tabs.php:147
240
  msgid "large"
241
  msgstr "largo"
242
 
243
- #: templates/admin_tabs.php:148
244
  msgid "medium"
245
  msgstr "mediano"
246
 
247
- #: templates/admin_tabs.php:149
248
  msgid "small"
249
  msgstr "pequeño"
250
 
251
- #: templates/admin_tabs.php:151
252
  msgid ""
253
  "Default value enables YouTube to select the most appropriate playback "
254
  "quality. If you select a quality level that is not available for the video, "
@@ -259,15 +269,15 @@ msgstr ""
259
  "disponible para el vídeo, la calidad se ajustará al siguiente nivel más bajo "
260
  "que este disponible."
261
 
262
- #: templates/admin_tabs.php:158
263
  msgid "Autoplay"
264
  msgstr "Autoplay"
265
 
266
- #: templates/admin_tabs.php:162
267
  msgid "Show YouTube logo"
268
  msgstr "Mostrar el logotipo de YouTube"
269
 
270
- #: templates/admin_tabs.php:163
271
  msgid ""
272
  "Activate this field to show the YouTube logo in the control bar. Setting the "
273
  "color parameter to white will show the YouTube logo in the control bar."
@@ -276,22 +286,22 @@ msgstr ""
276
  "Un ajuste del parámetro de color a blanco mostrará el logotipo de YouTube en "
277
  "la barra de control."
278
 
279
- #: templates/admin_tabs.php:170
280
  msgid "Show related videos"
281
  msgstr "Mostrar los vídeos relacionados"
282
 
283
- #: templates/admin_tabs.php:171
284
  msgid ""
285
  "Activate this field to show related videos when playback of the video ends."
286
  msgstr ""
287
  "Activa este campo para mostrar videos relacionados cuando termine la "
288
  "reproducción del vídeo."
289
 
290
- #: templates/admin_tabs.php:175
291
  msgid "Show info"
292
  msgstr "Mostrar información"
293
 
294
- #: templates/admin_tabs.php:176
295
  msgid ""
296
  "Activate this field to display information like the video title and uploader "
297
  "before the video starts playing."
@@ -299,198 +309,209 @@ msgstr ""
299
  "Active este campo para mostrar información como el título del vídeo y nombre "
300
  "de usuario antes de que el vídeo comience a reproducirse."
301
 
302
- #: templates/admin_tabs.php:182 templates/admin_tabs.php:234
303
- #: templates/admin_tabs.php:409 templates/admin_tabs.php:420
304
- #: templates/admin_tabs.php:457
305
- msgid "Order:"
306
- msgstr "Orden:"
 
 
307
 
308
- #: templates/admin_tabs.php:199
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
309
  msgid "Search input text:"
310
  msgstr "Campo de búsqueda de texto:"
311
 
312
- #: templates/admin_tabs.php:203
313
  msgid "Restrict search to (# separated):"
314
  msgstr "Restringir búsqueda a (separa con #):"
315
 
316
- #: templates/admin_tabs.php:207
317
  msgid "You must assing this tags to your videos to restrict the search:"
318
  msgstr "Debes asignar estas etiquetas a los vídeos para restringir la búsqueda:"
319
 
320
- #: templates/admin_tabs.php:216
321
  msgid "Restrict search by default: It will overwrite results of feed tab)"
322
  msgstr ""
323
  "Restringir búsqueda por defecto: Sobreescribirá los resultados de la pestaña "
324
  "Feed"
325
 
326
- #: templates/admin_tabs.php:218 templates/admin_tabs.php:383
327
  #: templates/search.php:10
328
  msgid "All"
329
  msgstr "Todos"
330
 
331
- #: templates/admin_tabs.php:226
332
  msgid "Show search box"
333
  msgstr "Mostrar caja de búsqueda"
334
 
335
- #: templates/admin_tabs.php:230
336
  msgid "Show select with Playlists"
337
  msgstr "Show desplegable con Playlistas"
338
 
339
- #: templates/admin_tabs.php:248
340
  msgid "Number of videos to show:"
341
  msgstr "Vídeos a mostrar:"
342
 
343
- #: templates/admin_tabs.php:250
344
  msgid "The plugin can display a maximum of 50 videos for each page."
345
  msgstr "El plugin puede mostrar un máximo de 50 vídeos por página."
346
 
347
- #: templates/admin_tabs.php:253
348
  msgid "Thumbnail resolution:"
349
  msgstr "Resolución de miniaturas:"
350
 
351
- #: templates/admin_tabs.php:255
352
  msgid "Default (120x90 px)"
353
  msgstr "Por defecto (120x90 px)"
354
 
355
- #: templates/admin_tabs.php:256
356
  msgid "Medium (320x180)"
357
  msgstr "Media (320x180)"
358
 
359
- #: templates/admin_tabs.php:257
360
  msgid "High (480x360)"
361
  msgstr "Alta (480x360)"
362
 
363
- #: templates/admin_tabs.php:274
364
  msgid "Thumbnail columns:"
365
  msgstr "Columnas de las miniaturas:"
366
 
367
- #: templates/admin_tabs.php:280
368
  msgid "Phones:"
369
  msgstr "Móviles:"
370
 
371
- #: templates/admin_tabs.php:288
372
  msgid "Tablets:"
373
  msgstr "Tablet:"
374
 
375
- #: templates/admin_tabs.php:300
376
  msgid "Medium Desktops:"
377
  msgstr "Escritorios medio:"
378
 
379
- #: templates/admin_tabs.php:308
380
  msgid "Large Desktops:"
381
  msgstr "Escritorios grandes:"
382
 
383
- #: templates/admin_tabs.php:323
384
- msgid "Show title or description"
385
- msgstr "Mostrar título y descripción"
386
-
387
- #: templates/admin_tabs.php:331
388
- msgid "Show title"
389
- msgstr "Mostrar Título"
390
-
391
- #: templates/admin_tabs.php:335
392
- msgid "Show description"
393
- msgstr "Mostrar descripción"
394
-
395
- #: templates/admin_tabs.php:341
396
- msgid "Title tag:"
397
- msgstr "Etiqueta de título:"
398
-
399
- #: templates/admin_tabs.php:343
400
- msgid "h1"
401
- msgstr "h1"
402
-
403
- #: templates/admin_tabs.php:344
404
- msgid "h2"
405
- msgstr "h2"
406
-
407
- #: templates/admin_tabs.php:345
408
- msgid "h3"
409
- msgstr "h3"
410
-
411
- #: templates/admin_tabs.php:346
412
- msgid "h4"
413
- msgstr "h4"
414
-
415
- #: templates/admin_tabs.php:347
416
- msgid "h5"
417
- msgstr "h5"
418
-
419
- #: templates/admin_tabs.php:348
420
- msgid "h6"
421
- msgstr "h6"
422
-
423
- #: templates/admin_tabs.php:352
424
- msgid "Description words:"
425
- msgstr "Palabras en descripción:"
426
 
427
- #: templates/admin_tabs.php:354
428
- msgid ""
429
- "Set the maximum number of words that will be displayed of the description. "
430
- "This field is useful when the descriptions of videos in the gallery have "
431
- "different sizes."
432
- msgstr ""
433
- "Establece el número máximo de palabras que se mostrarán en la descripción. "
434
- "Este campo es útil cuando la descripción de los vídeos de la galería tienen "
435
- "diferentes tamaños."
436
 
437
- #: templates/admin_tabs.php:360
438
  msgid "Thumbnail alignment:"
439
  msgstr "Alineación de miniaturas:"
440
 
441
- #: templates/admin_tabs.php:362
442
  msgid "none"
443
  msgstr "Ninguno"
444
 
445
- #: templates/admin_tabs.php:363
446
  msgid "Left"
447
  msgstr "Izquierda"
448
 
449
- #: templates/admin_tabs.php:364
450
  msgid "Right"
451
  msgstr "Derecha"
452
 
453
- #: templates/admin_tabs.php:371
454
  msgid "Thumbnail width:"
455
  msgstr "Ancho de miniaturas:"
456
 
457
- #: templates/admin_tabs.php:373
458
  msgid "Extra small"
459
  msgstr "Extra pequeño"
460
 
461
- #: templates/admin_tabs.php:374
462
  msgid "Small"
463
  msgstr "Pequeño"
464
 
465
- #: templates/admin_tabs.php:375
466
  msgid "Half"
467
  msgstr "Medio"
468
 
469
- #: templates/admin_tabs.php:376
470
  msgid "Large"
471
  msgstr "Grande"
472
 
473
- #: templates/admin_tabs.php:377
474
  msgid "Extra large"
475
  msgstr "Extra grande"
476
 
477
- #: templates/admin_tabs.php:381
478
  msgid "Min. size with alignment:"
479
  msgstr "Mín. tamaño con alineación:"
480
 
481
- #: templates/admin_tabs.php:384
482
  msgid "Tablets"
483
- msgstr "Tablet:"
484
 
485
- #: templates/admin_tabs.php:385
486
  msgid "Medium Desktops"
487
- msgstr "Escritorio medio:"
488
 
489
- #: templates/admin_tabs.php:386
490
  msgid "Large devices"
491
  msgstr "Dispositivos grandes"
492
 
493
- #: templates/admin_tabs.php:388
494
  msgid ""
495
  "Thumbnails will be aligned only from the size of selected device to prevent "
496
  "unwanted effects in small sizes."
@@ -498,43 +519,43 @@ msgstr ""
498
  "Las miniaturas serán alineadas sólo desde el tamaño del dispositivo "
499
  "seleccionado para prevenir efectos no deseados en dispositivos pequeños."
500
 
501
- #: templates/admin_tabs.php:395
502
- msgid "Add \"nofollow\" attribute to links"
503
- msgstr "Añade el atributo \"nofollow\" a los enlaces"
504
-
505
- #: templates/admin_tabs.php:396
506
- msgid ""
507
- "\"nofollow\" attribute provides a way for webmasters to tell search engines "
508
- "\"Don't follow this specific link.\""
509
- msgstr ""
510
- "El atributo \"nofollow\" ofrece a los webmasters un modo de indicar a los "
511
- "motores de búsqueda para no seguir un enlace."
512
-
513
- #: templates/admin_tabs.php:402 templates/admin_tabs.php:447
514
- msgid "Open in a new window or tab"
515
- msgstr "Abrir en una ventana nueva o pestaña"
516
 
517
- #: templates/admin_tabs.php:407
518
  msgid "Show pagination"
519
  msgstr "Mostrar paginación"
520
 
521
- #: templates/admin_tabs.php:411
 
 
 
 
522
  msgid "Thumbnail:"
523
  msgstr "Miniatura:"
524
 
525
- #: templates/admin_tabs.php:415
 
 
 
 
526
  msgid "Description:"
527
  msgstr "Descripción:"
528
 
529
- #: templates/admin_tabs.php:436
530
  msgid "Link text:"
531
  msgstr "Texto del enlace"
532
 
533
- #: templates/admin_tabs.php:442
534
  msgid "Show link to channel"
535
  msgstr "Mostrar enlace al canal"
536
 
537
- #: templates/admin_tabs.php:452
 
 
 
 
538
  msgid "Show link to thank the developer"
539
  msgstr "Mostrar enlace para agradecer al desarrollador"
540
 
@@ -550,11 +571,11 @@ msgstr "Ver más vídeos"
550
  msgid "Private video"
551
  msgstr "Vídeo privado"
552
 
553
- #: templates/thumbs.php:110
554
  msgid "«Previous"
555
  msgstr "«Anterior"
556
 
557
- #: templates/thumbs.php:119
558
  msgid "Next»"
559
  msgstr "Siguiente»"
560
 
@@ -566,50 +587,50 @@ msgstr "Galería de Canal de Youtube"
566
  msgid "Show a youtube video and a gallery of thumbnails for a youtube channel"
567
  msgstr "Muestra un vídeo y una galería de miniaturas de una canal de Youtube "
568
 
569
- #: youtube-channel-gallery.php:606
570
  msgid "Show more videos»"
571
  msgstr "Ver más vídeos»"
572
 
573
- #: youtube-channel-gallery.php:615
574
  msgid "There is no video to show."
575
  msgstr "No hay ningún vídeo para mostrar."
576
 
577
- #: youtube-channel-gallery.php:694
578
  #, php-format
579
  msgid "Error type: \"%1$s\". "
580
  msgstr "Tipo de error: \"%1$s\". "
581
 
582
- #: youtube-channel-gallery.php:695
583
  #, php-format
584
  msgid "Error message: \"%1$s\" "
585
  msgstr "Mensaje de error: \"%1$s\" "
586
 
587
- #: youtube-channel-gallery.php:696
588
  #, php-format
589
  msgid "Domain: \"%1$s\". "
590
  msgstr "Dominio: \"%1$s\". "
591
 
592
- #: youtube-channel-gallery.php:697
593
  #, php-format
594
  msgid "Reason: \"%1$s\". "
595
  msgstr "Razón: \"%1$s\". "
596
 
597
- #: youtube-channel-gallery.php:698
598
  #, php-format
599
  msgid "Location type: \"%1$s\". "
600
  msgstr "Tipo de localización: \"%1$s\". "
601
 
602
- #: youtube-channel-gallery.php:699
603
  #, php-format
604
  msgid "Location: \"%1$s\". "
605
  msgstr "Localización: \"%1$s\". "
606
 
607
- #: youtube-channel-gallery.php:701
608
  #, php-format
609
  msgid "Check in YouTube if the id %1$s belongs to a %2$s. "
610
  msgstr "Comprueba en YouTube si el id %1$s corresponde a un %2$s. "
611
 
612
- #: youtube-channel-gallery.php:703
613
  #, php-format
614
  msgid ""
615
  "If the user id is correct, check that the channel of the user has list of "
@@ -618,7 +639,7 @@ msgstr ""
618
  "Si el id de usuario es correcto, comprueba que el canal de usuario tiene una "
619
  "lista de \"%1$s\". "
620
 
621
- #: youtube-channel-gallery.php:705
622
  msgid ""
623
  "Check the <a href=\"http://wordpress.org/extend/plugins/youtube-channel-"
624
  "gallery/faq/\" target=\"_blank\">FAQ</a> of the plugin or send error messages "
@@ -630,135 +651,13 @@ msgstr ""
630
  "error a <a href=\"https://wordpress.org/support/plugin/youtube-channel-gallery"
631
  "\" target=\"_blank\">support</a>."
632
 
633
- #: youtube-channel-gallery.php:778
634
  msgid "There are no videos matching selected criteria"
635
  msgstr "No hay vídeos que se ajusten al criterio seleccionado"
636
 
637
- #~ msgid "Message from server: \"%1$s\". "
638
- #~ msgstr "Mensaje del servidor: \"%1$s\". "
639
-
640
- #~ msgid "Show player above thumbnails"
641
- #~ msgstr "Mostrar reproductor sobre miniaturas"
642
-
643
- #~ msgid ""
644
- #~ "This field is used to assign the appropriate quality of thumbnail images "
645
- #~ "in top and bottom alignments and to assign width to thumbnails in left and "
646
- #~ "right alignments. If the quality of thumbnail images is not enough, insert "
647
- #~ "a larger value. If you are unsure you can assign one of the following "
648
- #~ "values​​: 120, 320, 480 or 640"
649
- #~ msgstr ""
650
- #~ "Este campo se utiliza para asignar la calidad de imagen más adecuada a las "
651
- #~ "miniaturas en las alineaciones superior e inferior y para asignar ancho a "
652
- #~ "las miniaturas en las alineaciones izquierda y derecha. Si la calidad de "
653
- #~ "las imágenes de las miniaturas no es suficiente, introduzca un valor "
654
- #~ "mayor. Si no está seguro de que valor usar puede asignar uno de los "
655
- #~ "siguientes valores: 120, 320, 480 ó 640"
656
-
657
- #~ msgid "Top"
658
- #~ msgstr "Arriba"
659
-
660
- #~ msgid "Bottom"
661
- #~ msgstr "Abajo"
662
-
663
- #~ msgid "Video width:"
664
- #~ msgstr "Ancho del vídeo:"
665
-
666
- #~ msgid "Show info (title, uploader)"
667
- #~ msgstr "Mostrar información (título, cargador)"
668
-
669
- #~ msgid "You must insert a valid YouTube user id."
670
- #~ msgstr "Debes introducir un id válido de usuario de YouTube."
671
-
672
- #~ msgid "You must insert a valid playlist id."
673
- #~ msgstr "Debes introducir un id válido de lista de reproducción de YouTube."
674
-
675
- #~ msgid "Light:"
676
- #~ msgstr "Claro"
677
-
678
- #~ msgid "No post to duplicate has been supplied!"
679
- #~ msgstr "No se facilitó ninguna entrada a copiar"
680
-
681
- #~ msgid "Post creation failed, could not find original post:"
682
- #~ msgstr ""
683
- #~ "Creación realizada sin éxito, no ha sido posible encontrar la entrada "
684
- #~ "original:"
685
-
686
- #~ msgid "No page to duplicate has been supplied!"
687
- #~ msgstr "No se facilitó ninguna página a copiar"
688
-
689
- #~ msgid "Make a duplicate from this post"
690
- #~ msgstr "Crea una copia de esta entrada"
691
-
692
- #~ msgid "Duplicate"
693
- #~ msgstr "Duplicar"
694
-
695
- #~ msgid "Make a duplicate from this page"
696
- #~ msgstr "Crea una copia de esta página"
697
-
698
- #~ msgid "Copy to a new draft"
699
- #~ msgstr "Copia en un borrador nuevo"
700
-
701
- #~ msgid "Duplicate Post Options"
702
- #~ msgstr "Opciones"
703
-
704
- #~ msgid "Duplicate Post"
705
- #~ msgstr "Duplicate Post"
706
-
707
- #~ msgid "Copy post/page date also"
708
- #~ msgstr "Copiar también fecha del post o la página"
709
-
710
- #~ msgid ""
711
- #~ "Normally, the new draft has publication date set to current time: check "
712
- #~ "the box to copy the original post/page date"
713
- #~ msgstr ""
714
- #~ "Normalmente se establece la fecha de publicación del nuevo borrador a la "
715
- #~ "fecha actual: compruebe la casilla para copiar la fecha original del post "
716
- #~ "o la página"
717
-
718
- #~ msgid "Do not copy these fields"
719
- #~ msgstr "No copiar estos campos"
720
-
721
- #~ msgid ""
722
- #~ "Comma-separated list of meta fields that must not be copied when cloning a "
723
- #~ "post/page"
724
- #~ msgstr ""
725
- #~ "Lista separada por comas de meta campos que no pueden ser copiados cuando "
726
- #~ "se clona una entrada/pagina."
727
-
728
- #~ msgid ""
729
- #~ "Prefix to be added before the original title when cloning a post/page, e."
730
- #~ "g. \"Copy of\" (blank for no prefix)"
731
- #~ msgstr ""
732
- #~ "Prefijo a ser agregado antes del titulo original cuando se clona una "
733
- #~ "entrada/pagina, ej. \"Copia de\" (en blanco para no agregar prefijo)"
734
-
735
- #~ msgid "Minimum level to copy posts"
736
- #~ msgstr "Nivel mínimo para copiar posts"
737
-
738
  #~ msgid ""
739
- #~ "Warning: users will be able to copy all posts, even those of higher level "
740
- #~ "users"
741
  #~ msgstr ""
742
- #~ "Atención: los usuarios podrán copiar todos los posts, incluso aquellos de "
743
- #~ "usuarios de nivel más alto"
744
-
745
- #~ msgid "Save Changes"
746
- #~ msgstr "Guardar los cambios"
747
-
748
- #~ msgid "Donate"
749
- #~ msgstr "Hacer una donación"
750
-
751
- #~ msgid "Translate"
752
- #~ msgstr "Traducir"
753
-
754
- #~ msgid "http://www.lopo.it/duplicate-post-plugin/"
755
- #~ msgstr "Copy text \t http://www.lopo.it/duplicate-post-plugin/"
756
-
757
- #~ msgid "Creates a copy of a post."
758
- #~ msgstr "Crear una copia de las entradas."
759
-
760
- #~ msgid "Enrico Battocchi"
761
- #~ msgstr "Enrico Battocchi"
762
-
763
- #~ msgid "http://www.lopo.it"
764
- #~ msgstr "http://www.lopo.it"
7
  msgstr ""
8
  "Project-Id-Version: youtube-channel-gallery\n"
9
  "Report-Msgid-Bugs-To: \n"
10
+ "POT-Creation-Date: 2015-07-30 00:50+0200\n"
11
+ "PO-Revision-Date: 2015-07-30 00:51+0200\n"
12
  "Last-Translator: Javier <javierpose@gmail.com>\n"
13
  "Language-Team: PoseLab <javierpose@gmail.com>\n"
14
  "Language: es_ES\n"
16
  "Content-Type: text/plain; charset=UTF-8\n"
17
  "Content-Transfer-Encoding: 8bit\n"
18
  "X-Launchpad-Export-Date: 2010-06-23 21:48+0000\n"
19
+ "X-Generator: Poedit 1.8.3\n"
20
  "X-Poedit-Basepath: ..\n"
21
  "X-Poedit-KeywordsList: _e;__\n"
22
  "X-Poedit-SourceCharset: utf-8\n"
23
  "X-Poedit-SearchPath-0: .\n"
24
 
25
+ #: templates/admin_tabs.php:3 templates/admin_tabs.php:489
26
  msgid "Title:"
27
  msgstr "Título:"
28
 
54
  msgid "Get your own YouTube API Key and put here."
55
  msgstr "Obtén tu propia YouTube API Key e insertada aquí"
56
 
57
+ #: templates/admin_tabs.php:29
58
+ msgid ""
59
+ "Get <a href=\"https://console.developers.google.com/\" target=\"_blank\">your "
60
+ "Google API key</a>. See <a href=\"http://poselab.com/en/youtube-channel-"
61
+ "gallery-help/\" target=\"_blank\">help</a>"
62
+ msgstr ""
63
+ "Obtén tu <a href=\"https://console.developers.google.com/\" target=\"_blank"
64
+ "\">Google API key</a>. Mira la <a href=\"http://poselab.com/en/youtube-"
65
+ "channel-gallery-help/\" target=\"_blank\">ayuda</a>"
66
+
67
+ #: templates/admin_tabs.php:34
68
  msgid "Video feed type:"
69
  msgstr "Tipo de feed de vídeo:"
70
 
71
+ #: templates/admin_tabs.php:36
72
  msgid "Uploaded by a user"
73
  msgstr "Subidos por el usuario"
74
 
75
+ #: templates/admin_tabs.php:37
76
  msgid "User's favorites"
77
  msgstr "Favoritos del usuario"
78
 
79
+ #: templates/admin_tabs.php:38
80
  msgid "User's likes"
81
  msgstr "Likes de usuario"
82
 
83
+ #: templates/admin_tabs.php:39
84
  msgid "Playlist"
85
  msgstr "Lista de reproducción"
86
 
87
+ #: templates/admin_tabs.php:44
88
  msgid "Identify by:"
89
  msgstr "Identificar por:"
90
 
91
+ #: templates/admin_tabs.php:46
92
  msgid "Username"
93
  msgstr "Nombre de usuario"
94
 
95
+ #: templates/admin_tabs.php:47
96
  msgid "Channel ID"
97
  msgstr "ID de canal:"
98
 
99
+ #: templates/admin_tabs.php:51
100
  msgid "YouTube id:"
101
  msgstr "Id de Youtube:"
102
 
103
+ #: templates/admin_tabs.php:52
104
  msgid "YouTube playlist id:"
105
  msgstr "Id de lista de reproducción de YouTube:"
106
 
107
+ #: templates/admin_tabs.php:58
108
  msgid "Playlist order:"
109
  msgstr "Orden de lista de reproducción:"
110
 
111
+ #: templates/admin_tabs.php:60
112
  msgid "Date Order"
113
  msgstr "Ordenar por fecha"
114
 
115
+ #: templates/admin_tabs.php:61
116
  msgid "Rating Order"
117
  msgstr "Ordenar por calificación"
118
 
119
+ #: templates/admin_tabs.php:62
120
  msgid "Relevance Order"
121
  msgstr "Ordenar por relevancia"
122
 
123
+ #: templates/admin_tabs.php:63
124
  msgid "Title Order"
125
  msgstr "Ordenar por título"
126
 
127
+ #: templates/admin_tabs.php:64
128
  msgid "Video Count Order"
129
  msgstr "Ordenar por número de vídeos subidos"
130
 
131
+ #: templates/admin_tabs.php:65
132
  msgid "View Count Order"
133
  msgstr "Ordenar por número de reproducciones"
134
 
135
+ #: templates/admin_tabs.php:72
136
  msgid "Cache time (hours):"
137
  msgstr "Tiempo de cache (horas):"
138
 
139
+ #: templates/admin_tabs.php:74
140
  msgid ""
141
  "Hours that RSS data is saved in database, to not make a request every time "
142
  "the page is displayed. Assign this value according to how often you upgrade "
146
  "solicitud cada vez que se muestra la página. Asigna este valor en función de "
147
  "la frecuencia con que actualizas la lista de reproducción en YouTube."
148
 
149
+ #: templates/admin_tabs.php:81
150
  msgid "Activate cache"
151
  msgstr "Activar caché"
152
 
153
+ #: templates/admin_tabs.php:82
154
  msgid ""
155
  "If you disable this field the cache will be deleted and will not be used. "
156
  "This is useful to refresh immediately the YouTube RSS used by the plugin. "
162
  "Vuelve a habilitar la caché cuando la galería muestre los cambios que ha "
163
  "realizado en su cuenta de YouTube."
164
 
165
+ #: templates/admin_tabs.php:97
166
  msgid "Player:"
167
  msgstr "Reproductor:"
168
 
169
+ #: templates/admin_tabs.php:99
170
  msgid "Without player"
171
  msgstr "Sin reproductor"
172
 
173
+ #: templates/admin_tabs.php:100
174
  msgid "show player"
175
  msgstr "mostrar reproductor"
176
 
177
+ #: templates/admin_tabs.php:101
178
  msgid "show player in Magnific Popup"
179
  msgstr "mostrar reproductor en Magnific Popup"
180
 
181
+ #: templates/admin_tabs.php:108
182
  msgid "Width:"
183
  msgstr "Ancho:"
184
 
185
+ #: templates/admin_tabs.php:111
186
  msgid "%"
187
  msgstr "%"
188
 
189
+ #: templates/admin_tabs.php:112
190
  msgid "px"
191
  msgstr "px"
192
 
193
+ #: templates/admin_tabs.php:116 templates/admin_tabs.php:316
194
  msgid "Aspect ratio:"
195
  msgstr "Relación de aspecto:"
196
 
197
+ #: templates/admin_tabs.php:118 templates/admin_tabs.php:318
198
  msgid "Standard (4x3)"
199
  msgstr "Estándar (4x3)"
200
 
201
+ #: templates/admin_tabs.php:119 templates/admin_tabs.php:319
202
  msgid "Widescreen (16x9)"
203
  msgstr "Panorámico (16x9)"
204
 
205
+ #: templates/admin_tabs.php:126
206
  msgid "Theme:"
207
  msgstr "Tema:"
208
 
209
+ #: templates/admin_tabs.php:128
210
  msgid "Dark"
211
  msgstr "Oscuro"
212
 
213
+ #: templates/admin_tabs.php:129
214
  msgid "Light"
215
  msgstr "Claro"
216
 
217
+ #: templates/admin_tabs.php:133
218
  msgid "Progress bar color:"
219
  msgstr "Color de barra de progreso:"
220
 
221
+ #: templates/admin_tabs.php:135
222
  msgid "Red"
223
  msgstr "Rojo"
224
 
225
+ #: templates/admin_tabs.php:136
226
  msgid "White"
227
  msgstr "Blanco"
228
 
229
+ #: templates/admin_tabs.php:143
230
  msgid "Video quality:"
231
  msgstr "Calidad del vídeo:"
232
 
233
+ #: templates/admin_tabs.php:145
234
  msgid "default"
235
  msgstr "por defecto"
236
 
237
+ #: templates/admin_tabs.php:146
238
  msgid "highres"
239
  msgstr "alta resolución"
240
 
241
+ #: templates/admin_tabs.php:147
242
  msgid "hd1080"
243
  msgstr "hd1080"
244
 
245
+ #: templates/admin_tabs.php:148
246
  msgid "hd720"
247
  msgstr "hd720"
248
 
249
+ #: templates/admin_tabs.php:149
250
  msgid "large"
251
  msgstr "largo"
252
 
253
+ #: templates/admin_tabs.php:150
254
  msgid "medium"
255
  msgstr "mediano"
256
 
257
+ #: templates/admin_tabs.php:151
258
  msgid "small"
259
  msgstr "pequeño"
260
 
261
+ #: templates/admin_tabs.php:153
262
  msgid ""
263
  "Default value enables YouTube to select the most appropriate playback "
264
  "quality. If you select a quality level that is not available for the video, "
269
  "disponible para el vídeo, la calidad se ajustará al siguiente nivel más bajo "
270
  "que este disponible."
271
 
272
+ #: templates/admin_tabs.php:160
273
  msgid "Autoplay"
274
  msgstr "Autoplay"
275
 
276
+ #: templates/admin_tabs.php:164
277
  msgid "Show YouTube logo"
278
  msgstr "Mostrar el logotipo de YouTube"
279
 
280
+ #: templates/admin_tabs.php:165
281
  msgid ""
282
  "Activate this field to show the YouTube logo in the control bar. Setting the "
283
  "color parameter to white will show the YouTube logo in the control bar."
286
  "Un ajuste del parámetro de color a blanco mostrará el logotipo de YouTube en "
287
  "la barra de control."
288
 
289
+ #: templates/admin_tabs.php:172
290
  msgid "Show related videos"
291
  msgstr "Mostrar los vídeos relacionados"
292
 
293
+ #: templates/admin_tabs.php:173
294
  msgid ""
295
  "Activate this field to show related videos when playback of the video ends."
296
  msgstr ""
297
  "Activa este campo para mostrar videos relacionados cuando termine la "
298
  "reproducción del vídeo."
299
 
300
+ #: templates/admin_tabs.php:177
301
  msgid "Show info"
302
  msgstr "Mostrar información"
303
 
304
+ #: templates/admin_tabs.php:178
305
  msgid ""
306
  "Activate this field to display information like the video title and uploader "
307
  "before the video starts playing."
309
  "Active este campo para mostrar información como el título del vídeo y nombre "
310
  "de usuario antes de que el vídeo comience a reproducirse."
311
 
312
+ #: templates/admin_tabs.php:185 templates/admin_tabs.php:387
313
+ msgid "Show additional content"
314
+ msgstr "Mostrar contenido adicional"
315
+
316
+ #: templates/admin_tabs.php:193 templates/admin_tabs.php:395
317
+ msgid "Show title"
318
+ msgstr "Mostrar Título"
319
 
320
+ #: templates/admin_tabs.php:197 templates/admin_tabs.php:399
321
+ msgid "Show published date"
322
+ msgstr "Mostrar fecha de publicación"
323
+
324
+ #: templates/admin_tabs.php:204 templates/admin_tabs.php:406
325
+ msgid "Show description"
326
+ msgstr "Mostrar descripción"
327
+
328
+ #: templates/admin_tabs.php:212 templates/admin_tabs.php:414
329
+ msgid "Title tag:"
330
+ msgstr "Etiqueta de título:"
331
+
332
+ #: templates/admin_tabs.php:214 templates/admin_tabs.php:416
333
+ msgid "h1"
334
+ msgstr "h1"
335
+
336
+ #: templates/admin_tabs.php:215 templates/admin_tabs.php:417
337
+ msgid "h2"
338
+ msgstr "h2"
339
+
340
+ #: templates/admin_tabs.php:216 templates/admin_tabs.php:418
341
+ msgid "h3"
342
+ msgstr "h3"
343
+
344
+ #: templates/admin_tabs.php:217 templates/admin_tabs.php:419
345
+ msgid "h4"
346
+ msgstr "h4"
347
+
348
+ #: templates/admin_tabs.php:218 templates/admin_tabs.php:420
349
+ msgid "h5"
350
+ msgstr "h5"
351
+
352
+ #: templates/admin_tabs.php:219 templates/admin_tabs.php:421
353
+ msgid "h6"
354
+ msgstr "h6"
355
+
356
+ #: templates/admin_tabs.php:223 templates/admin_tabs.php:425
357
+ msgid "Description words:"
358
+ msgstr "Palabras en descripción:"
359
+
360
+ #: templates/admin_tabs.php:225 templates/admin_tabs.php:427
361
+ msgid ""
362
+ "Set the maximum number of words that will be displayed of the description. "
363
+ "This field is useful when the descriptions of videos in the gallery have "
364
+ "different sizes."
365
+ msgstr ""
366
+ "Establece el número máximo de palabras que se mostrarán en la descripción. "
367
+ "Este campo es útil cuando la descripción de los vídeos de la galería tienen "
368
+ "diferentes tamaños."
369
+
370
+ #: templates/admin_tabs.php:234 templates/admin_tabs.php:286
371
+ #: templates/admin_tabs.php:503 templates/admin_tabs.php:540
372
+ msgid "Tab order:"
373
+ msgstr "Orden de pestaña:"
374
+
375
+ #: templates/admin_tabs.php:251
376
  msgid "Search input text:"
377
  msgstr "Campo de búsqueda de texto:"
378
 
379
+ #: templates/admin_tabs.php:255
380
  msgid "Restrict search to (# separated):"
381
  msgstr "Restringir búsqueda a (separa con #):"
382
 
383
+ #: templates/admin_tabs.php:259
384
  msgid "You must assing this tags to your videos to restrict the search:"
385
  msgstr "Debes asignar estas etiquetas a los vídeos para restringir la búsqueda:"
386
 
387
+ #: templates/admin_tabs.php:268
388
  msgid "Restrict search by default: It will overwrite results of feed tab)"
389
  msgstr ""
390
  "Restringir búsqueda por defecto: Sobreescribirá los resultados de la pestaña "
391
  "Feed"
392
 
393
+ #: templates/admin_tabs.php:270 templates/admin_tabs.php:456
394
  #: templates/search.php:10
395
  msgid "All"
396
  msgstr "Todos"
397
 
398
+ #: templates/admin_tabs.php:278
399
  msgid "Show search box"
400
  msgstr "Mostrar caja de búsqueda"
401
 
402
+ #: templates/admin_tabs.php:282
403
  msgid "Show select with Playlists"
404
  msgstr "Show desplegable con Playlistas"
405
 
406
+ #: templates/admin_tabs.php:300
407
  msgid "Number of videos to show:"
408
  msgstr "Vídeos a mostrar:"
409
 
410
+ #: templates/admin_tabs.php:302
411
  msgid "The plugin can display a maximum of 50 videos for each page."
412
  msgstr "El plugin puede mostrar un máximo de 50 vídeos por página."
413
 
414
+ #: templates/admin_tabs.php:305
415
  msgid "Thumbnail resolution:"
416
  msgstr "Resolución de miniaturas:"
417
 
418
+ #: templates/admin_tabs.php:307
419
  msgid "Default (120x90 px)"
420
  msgstr "Por defecto (120x90 px)"
421
 
422
+ #: templates/admin_tabs.php:308
423
  msgid "Medium (320x180)"
424
  msgstr "Media (320x180)"
425
 
426
+ #: templates/admin_tabs.php:309
427
  msgid "High (480x360)"
428
  msgstr "Alta (480x360)"
429
 
430
+ #: templates/admin_tabs.php:326
431
  msgid "Thumbnail columns:"
432
  msgstr "Columnas de las miniaturas:"
433
 
434
+ #: templates/admin_tabs.php:332
435
  msgid "Phones:"
436
  msgstr "Móviles:"
437
 
438
+ #: templates/admin_tabs.php:340
439
  msgid "Tablets:"
440
  msgstr "Tablet:"
441
 
442
+ #: templates/admin_tabs.php:352
443
  msgid "Medium Desktops:"
444
  msgstr "Escritorios medio:"
445
 
446
+ #: templates/admin_tabs.php:360
447
  msgid "Large Desktops:"
448
  msgstr "Escritorios grandes:"
449
 
450
+ #: templates/admin_tabs.php:374
451
+ msgid "Show duration"
452
+ msgstr "Mostrar duración"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
453
 
454
+ #: templates/admin_tabs.php:378
455
+ msgid "Add \"nofollow\" to links"
456
+ msgstr "Añade \"nofollow\" a enlaces"
 
 
 
 
 
 
457
 
458
+ #: templates/admin_tabs.php:433
459
  msgid "Thumbnail alignment:"
460
  msgstr "Alineación de miniaturas:"
461
 
462
+ #: templates/admin_tabs.php:435
463
  msgid "none"
464
  msgstr "Ninguno"
465
 
466
+ #: templates/admin_tabs.php:436
467
  msgid "Left"
468
  msgstr "Izquierda"
469
 
470
+ #: templates/admin_tabs.php:437
471
  msgid "Right"
472
  msgstr "Derecha"
473
 
474
+ #: templates/admin_tabs.php:444
475
  msgid "Thumbnail width:"
476
  msgstr "Ancho de miniaturas:"
477
 
478
+ #: templates/admin_tabs.php:446
479
  msgid "Extra small"
480
  msgstr "Extra pequeño"
481
 
482
+ #: templates/admin_tabs.php:447
483
  msgid "Small"
484
  msgstr "Pequeño"
485
 
486
+ #: templates/admin_tabs.php:448
487
  msgid "Half"
488
  msgstr "Medio"
489
 
490
+ #: templates/admin_tabs.php:449
491
  msgid "Large"
492
  msgstr "Grande"
493
 
494
+ #: templates/admin_tabs.php:450
495
  msgid "Extra large"
496
  msgstr "Extra grande"
497
 
498
+ #: templates/admin_tabs.php:454
499
  msgid "Min. size with alignment:"
500
  msgstr "Mín. tamaño con alineación:"
501
 
502
+ #: templates/admin_tabs.php:457
503
  msgid "Tablets"
504
+ msgstr "Tablet"
505
 
506
+ #: templates/admin_tabs.php:458
507
  msgid "Medium Desktops"
508
+ msgstr "Escritorio medio"
509
 
510
+ #: templates/admin_tabs.php:459
511
  msgid "Large devices"
512
  msgstr "Dispositivos grandes"
513
 
514
+ #: templates/admin_tabs.php:461
515
  msgid ""
516
  "Thumbnails will be aligned only from the size of selected device to prevent "
517
  "unwanted effects in small sizes."
519
  "Las miniaturas serán alineadas sólo desde el tamaño del dispositivo "
520
  "seleccionado para prevenir efectos no deseados en dispositivos pequeños."
521
 
522
+ #: templates/admin_tabs.php:471
523
+ msgid "Open in a new window"
524
+ msgstr "Abrir en ventana nueva"
 
 
 
 
 
 
 
 
 
 
 
 
525
 
526
+ #: templates/admin_tabs.php:475
527
  msgid "Show pagination"
528
  msgstr "Mostrar paginación"
529
 
530
+ #: templates/admin_tabs.php:482
531
+ msgid "Thumbnail content tab order:"
532
+ msgstr "Orden del contenido de pestaña miniaturas:"
533
+
534
+ #: templates/admin_tabs.php:485
535
  msgid "Thumbnail:"
536
  msgstr "Miniatura:"
537
 
538
+ #: templates/admin_tabs.php:493
539
+ msgid "Published date:"
540
+ msgstr "Fecha de publicación"
541
+
542
+ #: templates/admin_tabs.php:497
543
  msgid "Description:"
544
  msgstr "Descripción:"
545
 
546
+ #: templates/admin_tabs.php:519
547
  msgid "Link text:"
548
  msgstr "Texto del enlace"
549
 
550
+ #: templates/admin_tabs.php:525
551
  msgid "Show link to channel"
552
  msgstr "Mostrar enlace al canal"
553
 
554
+ #: templates/admin_tabs.php:530
555
+ msgid "Open in a new window or tab"
556
+ msgstr "Abrir en una ventana nueva o pestaña"
557
+
558
+ #: templates/admin_tabs.php:535
559
  msgid "Show link to thank the developer"
560
  msgstr "Mostrar enlace para agradecer al desarrollador"
561
 
571
  msgid "Private video"
572
  msgstr "Vídeo privado"
573
 
574
+ #: templates/thumbs.php:119
575
  msgid "«Previous"
576
  msgstr "«Anterior"
577
 
578
+ #: templates/thumbs.php:128
579
  msgid "Next»"
580
  msgstr "Siguiente»"
581
 
587
  msgid "Show a youtube video and a gallery of thumbnails for a youtube channel"
588
  msgstr "Muestra un vídeo y una galería de miniaturas de una canal de Youtube "
589
 
590
+ #: youtube-channel-gallery.php:714
591
  msgid "Show more videos»"
592
  msgstr "Ver más vídeos»"
593
 
594
+ #: youtube-channel-gallery.php:723
595
  msgid "There is no video to show."
596
  msgstr "No hay ningún vídeo para mostrar."
597
 
598
+ #: youtube-channel-gallery.php:801
599
  #, php-format
600
  msgid "Error type: \"%1$s\". "
601
  msgstr "Tipo de error: \"%1$s\". "
602
 
603
+ #: youtube-channel-gallery.php:802
604
  #, php-format
605
  msgid "Error message: \"%1$s\" "
606
  msgstr "Mensaje de error: \"%1$s\" "
607
 
608
+ #: youtube-channel-gallery.php:803
609
  #, php-format
610
  msgid "Domain: \"%1$s\". "
611
  msgstr "Dominio: \"%1$s\". "
612
 
613
+ #: youtube-channel-gallery.php:804
614
  #, php-format
615
  msgid "Reason: \"%1$s\". "
616
  msgstr "Razón: \"%1$s\". "
617
 
618
+ #: youtube-channel-gallery.php:805
619
  #, php-format
620
  msgid "Location type: \"%1$s\". "
621
  msgstr "Tipo de localización: \"%1$s\". "
622
 
623
+ #: youtube-channel-gallery.php:806
624
  #, php-format
625
  msgid "Location: \"%1$s\". "
626
  msgstr "Localización: \"%1$s\". "
627
 
628
+ #: youtube-channel-gallery.php:809
629
  #, php-format
630
  msgid "Check in YouTube if the id %1$s belongs to a %2$s. "
631
  msgstr "Comprueba en YouTube si el id %1$s corresponde a un %2$s. "
632
 
633
+ #: youtube-channel-gallery.php:811
634
  #, php-format
635
  msgid ""
636
  "If the user id is correct, check that the channel of the user has list of "
639
  "Si el id de usuario es correcto, comprueba que el canal de usuario tiene una "
640
  "lista de \"%1$s\". "
641
 
642
+ #: youtube-channel-gallery.php:813
643
  msgid ""
644
  "Check the <a href=\"http://wordpress.org/extend/plugins/youtube-channel-"
645
  "gallery/faq/\" target=\"_blank\">FAQ</a> of the plugin or send error messages "
651
  "error a <a href=\"https://wordpress.org/support/plugin/youtube-channel-gallery"
652
  "\" target=\"_blank\">support</a>."
653
 
654
+ #: youtube-channel-gallery.php:890
655
  msgid "There are no videos matching selected criteria"
656
  msgstr "No hay vídeos que se ajusten al criterio seleccionado"
657
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
658
  #~ msgid ""
659
+ #~ "\"nofollow\" attribute provides a way for webmasters to tell search "
660
+ #~ "engines \"Don't follow this specific link.\""
661
  #~ msgstr ""
662
+ #~ "El atributo \"nofollow\" ofrece a los webmasters un modo de indicar a los "
663
+ #~ "motores de búsqueda para no seguir un enlace."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/youtube-channel-gallery.mo ADDED
Binary file
languages/youtube-channel-gallery.pot ADDED
@@ -0,0 +1,904 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #, fuzzy
2
+ msgid ""
3
+ msgstr ""
4
+ "Project-Id-Version: youtube-channel-gallery\n"
5
+ "Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: 2015-07-25 02:03+0200\n"
7
+ "PO-Revision-Date: 2015-07-22 20:54+0100\n"
8
+ "Last-Translator: Javier <javierpose@gmail.com>\n"
9
+ "Language-Team: PoseLab <javierpose@gmail.com>\n"
10
+ "Language: es_ES\n"
11
+ "MIME-Version: 1.0\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+ "Content-Transfer-Encoding: 8bit\n"
14
+ "X-Launchpad-Export-Date: 2010-06-23 21:48+0000\n"
15
+ "X-Generator: Poedit 1.8.3\n"
16
+ "X-Poedit-Basepath: ..\n"
17
+ "X-Poedit-KeywordsList: _e;__\n"
18
+ "X-Poedit-SourceCharset: utf-8\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #: templates/admin_tabs.php:3 templates/admin_tabs.php:487
22
+ #, fuzzy
23
+ msgid "Title:"
24
+ msgstr "Título:"
25
+
26
+ #: templates/admin_tabs.php:9
27
+ #, fuzzy
28
+ msgid "Feed"
29
+ msgstr "Feed"
30
+
31
+ #: templates/admin_tabs.php:10
32
+ #, fuzzy
33
+ msgid "Player"
34
+ msgstr "Reproductor"
35
+
36
+ #: templates/admin_tabs.php:11
37
+ #, fuzzy
38
+ msgid "Search"
39
+ msgstr "Búsqueda"
40
+
41
+ #: templates/admin_tabs.php:12
42
+ #, fuzzy
43
+ msgid "Thumbnails"
44
+ msgstr "Miniaturas"
45
+
46
+ #: templates/admin_tabs.php:13
47
+ #, fuzzy
48
+ msgid "Link"
49
+ msgstr "Enlace"
50
+
51
+ #: templates/admin_tabs.php:26
52
+ #, fuzzy
53
+ msgid "YouTube API Key:"
54
+ msgstr "YouTube API Key:"
55
+
56
+ #: templates/admin_tabs.php:28
57
+ #, fuzzy
58
+ msgid "Get your own YouTube API Key and put here."
59
+ msgstr "Obtén tu propia YouTube API Key e insertada aquí"
60
+
61
+ #: templates/admin_tabs.php:32
62
+ #, fuzzy
63
+ msgid "Video feed type:"
64
+ msgstr "Tipo de feed de vídeo:"
65
+
66
+ #: templates/admin_tabs.php:34
67
+ #, fuzzy
68
+ msgid "Uploaded by a user"
69
+ msgstr "Subidos por el usuario"
70
+
71
+ #: templates/admin_tabs.php:35
72
+ #, fuzzy
73
+ msgid "User's favorites"
74
+ msgstr "Favoritos del usuario"
75
+
76
+ #: templates/admin_tabs.php:36
77
+ #, fuzzy
78
+ msgid "User's likes"
79
+ msgstr "Likes de usuario"
80
+
81
+ #: templates/admin_tabs.php:37
82
+ #, fuzzy
83
+ msgid "Playlist"
84
+ msgstr "Lista de reproducción"
85
+
86
+ #: templates/admin_tabs.php:42
87
+ #, fuzzy
88
+ msgid "Identify by:"
89
+ msgstr "Identificar por:"
90
+
91
+ #: templates/admin_tabs.php:44
92
+ #, fuzzy
93
+ msgid "Username"
94
+ msgstr "Nombre de usuario"
95
+
96
+ #: templates/admin_tabs.php:45
97
+ #, fuzzy
98
+ msgid "Channel ID"
99
+ msgstr "ID de canal:"
100
+
101
+ #: templates/admin_tabs.php:49
102
+ #, fuzzy
103
+ msgid "YouTube id:"
104
+ msgstr "Id de Youtube:"
105
+
106
+ #: templates/admin_tabs.php:50
107
+ #, fuzzy
108
+ msgid "YouTube playlist id:"
109
+ msgstr "Id de lista de reproducción de YouTube:"
110
+
111
+ #: templates/admin_tabs.php:56
112
+ #, fuzzy
113
+ msgid "Playlist order:"
114
+ msgstr "Orden de lista de reproducción:"
115
+
116
+ #: templates/admin_tabs.php:58
117
+ #, fuzzy
118
+ msgid "Date Order"
119
+ msgstr "Ordenar por fecha"
120
+
121
+ #: templates/admin_tabs.php:59
122
+ #, fuzzy
123
+ msgid "Rating Order"
124
+ msgstr "Ordenar por calificación"
125
+
126
+ #: templates/admin_tabs.php:60
127
+ #, fuzzy
128
+ msgid "Relevance Order"
129
+ msgstr "Ordenar por relevancia"
130
+
131
+ #: templates/admin_tabs.php:61
132
+ #, fuzzy
133
+ msgid "Title Order"
134
+ msgstr "Ordenar por título"
135
+
136
+ #: templates/admin_tabs.php:62
137
+ #, fuzzy
138
+ msgid "Video Count Order"
139
+ msgstr "Ordenar por número de vídeos subidos"
140
+
141
+ #: templates/admin_tabs.php:63
142
+ #, fuzzy
143
+ msgid "View Count Order"
144
+ msgstr "Ordenar por número de reproducciones"
145
+
146
+ #: templates/admin_tabs.php:70
147
+ #, fuzzy
148
+ msgid "Cache time (hours):"
149
+ msgstr "Tiempo de cache (horas):"
150
+
151
+ #: templates/admin_tabs.php:72
152
+ #, fuzzy
153
+ msgid ""
154
+ "Hours that RSS data is saved in database, to not make a request every time "
155
+ "the page is displayed. Assign this value according to how often you upgrade "
156
+ "your playlist in YouTube."
157
+ msgstr ""
158
+ "Horas que los datos del RSS se guardan en la base de datos, para no hacer una "
159
+ "solicitud cada vez que se muestra la página. Asigna este valor en función de "
160
+ "la frecuencia con que actualizas la lista de reproducción en YouTube."
161
+
162
+ #: templates/admin_tabs.php:79
163
+ #, fuzzy
164
+ msgid "Activate cache"
165
+ msgstr "Activar caché"
166
+
167
+ #: templates/admin_tabs.php:80
168
+ #, fuzzy
169
+ msgid ""
170
+ "If you disable this field the cache will be deleted and will not be used. "
171
+ "This is useful to refresh immediately the YouTube RSS used by the plugin. "
172
+ "Reenable the cache when the gallery shows the changes you made in your "
173
+ "youtube account."
174
+ msgstr ""
175
+ "Si se deshabilita este campo la caché se borrará y no será utilizada. Esto es "
176
+ "útil para actualizar inmediatamente el RSS de YouTube usado por el plugin. "
177
+ "Vuelve a habilitar la caché cuando la galería muestre los cambios que ha "
178
+ "realizado en su cuenta de YouTube."
179
+
180
+ #: templates/admin_tabs.php:95
181
+ #, fuzzy
182
+ msgid "Player:"
183
+ msgstr "Reproductor:"
184
+
185
+ #: templates/admin_tabs.php:97
186
+ #, fuzzy
187
+ msgid "Without player"
188
+ msgstr "Sin reproductor"
189
+
190
+ #: templates/admin_tabs.php:98
191
+ #, fuzzy
192
+ msgid "show player"
193
+ msgstr "mostrar reproductor"
194
+
195
+ #: templates/admin_tabs.php:99
196
+ #, fuzzy
197
+ msgid "show player in Magnific Popup"
198
+ msgstr "mostrar reproductor en Magnific Popup"
199
+
200
+ #: templates/admin_tabs.php:106
201
+ #, fuzzy
202
+ msgid "Width:"
203
+ msgstr "Ancho:"
204
+
205
+ #: templates/admin_tabs.php:109
206
+ msgid "%"
207
+ msgstr ""
208
+
209
+ #: templates/admin_tabs.php:110
210
+ #, fuzzy
211
+ msgid "px"
212
+ msgstr "px"
213
+
214
+ #: templates/admin_tabs.php:114 templates/admin_tabs.php:314
215
+ #, fuzzy
216
+ msgid "Aspect ratio:"
217
+ msgstr "Relación de aspecto:"
218
+
219
+ #: templates/admin_tabs.php:116 templates/admin_tabs.php:316
220
+ #, fuzzy
221
+ msgid "Standard (4x3)"
222
+ msgstr "Estándar (4x3)"
223
+
224
+ #: templates/admin_tabs.php:117 templates/admin_tabs.php:317
225
+ #, fuzzy
226
+ msgid "Widescreen (16x9)"
227
+ msgstr "Panorámico (16x9)"
228
+
229
+ #: templates/admin_tabs.php:124
230
+ #, fuzzy
231
+ msgid "Theme:"
232
+ msgstr "Tema:"
233
+
234
+ #: templates/admin_tabs.php:126
235
+ #, fuzzy
236
+ msgid "Dark"
237
+ msgstr "Oscuro"
238
+
239
+ #: templates/admin_tabs.php:127
240
+ #, fuzzy
241
+ msgid "Light"
242
+ msgstr "Claro"
243
+
244
+ #: templates/admin_tabs.php:131
245
+ #, fuzzy
246
+ msgid "Progress bar color:"
247
+ msgstr "Color de barra de progreso:"
248
+
249
+ #: templates/admin_tabs.php:133
250
+ #, fuzzy
251
+ msgid "Red"
252
+ msgstr "Rojo"
253
+
254
+ #: templates/admin_tabs.php:134
255
+ #, fuzzy
256
+ msgid "White"
257
+ msgstr "Blanco"
258
+
259
+ #: templates/admin_tabs.php:141
260
+ #, fuzzy
261
+ msgid "Video quality:"
262
+ msgstr "Calidad del vídeo:"
263
+
264
+ #: templates/admin_tabs.php:143
265
+ #, fuzzy
266
+ msgid "default"
267
+ msgstr "por defecto"
268
+
269
+ #: templates/admin_tabs.php:144
270
+ #, fuzzy
271
+ msgid "highres"
272
+ msgstr "alta resolución"
273
+
274
+ #: templates/admin_tabs.php:145
275
+ #, fuzzy
276
+ msgid "hd1080"
277
+ msgstr "hd1080"
278
+
279
+ #: templates/admin_tabs.php:146
280
+ #, fuzzy
281
+ msgid "hd720"
282
+ msgstr "hd720"
283
+
284
+ #: templates/admin_tabs.php:147
285
+ #, fuzzy
286
+ msgid "large"
287
+ msgstr "largo"
288
+
289
+ #: templates/admin_tabs.php:148
290
+ #, fuzzy
291
+ msgid "medium"
292
+ msgstr "mediano"
293
+
294
+ #: templates/admin_tabs.php:149
295
+ #, fuzzy
296
+ msgid "small"
297
+ msgstr "pequeño"
298
+
299
+ #: templates/admin_tabs.php:151
300
+ #, fuzzy
301
+ msgid ""
302
+ "Default value enables YouTube to select the most appropriate playback "
303
+ "quality. If you select a quality level that is not available for the video, "
304
+ "then the quality will be set to the next lowest level that is available."
305
+ msgstr ""
306
+ "El valor predeterminado permite a YouTube seleccionar la calidad de "
307
+ "reproducción más adecuada. Si selecciona un nivel de calidad que no está "
308
+ "disponible para el vídeo, la calidad se ajustará al siguiente nivel más bajo "
309
+ "que este disponible."
310
+
311
+ #: templates/admin_tabs.php:158
312
+ #, fuzzy
313
+ msgid "Autoplay"
314
+ msgstr "Autoplay"
315
+
316
+ #: templates/admin_tabs.php:162
317
+ #, fuzzy
318
+ msgid "Show YouTube logo"
319
+ msgstr "Mostrar el logotipo de YouTube"
320
+
321
+ #: templates/admin_tabs.php:163
322
+ #, fuzzy
323
+ msgid ""
324
+ "Activate this field to show the YouTube logo in the control bar. Setting the "
325
+ "color parameter to white will show the YouTube logo in the control bar."
326
+ msgstr ""
327
+ "Activa este campo para mostrar el logotipo de YouTube en la barra de control. "
328
+ "Un ajuste del parámetro de color a blanco mostrará el logotipo de YouTube en "
329
+ "la barra de control."
330
+
331
+ #: templates/admin_tabs.php:170
332
+ #, fuzzy
333
+ msgid "Show related videos"
334
+ msgstr "Mostrar los vídeos relacionados"
335
+
336
+ #: templates/admin_tabs.php:171
337
+ #, fuzzy
338
+ msgid ""
339
+ "Activate this field to show related videos when playback of the video ends."
340
+ msgstr ""
341
+ "Activa este campo para mostrar videos relacionados cuando termine la "
342
+ "reproducción del vídeo."
343
+
344
+ #: templates/admin_tabs.php:175
345
+ #, fuzzy
346
+ msgid "Show info"
347
+ msgstr "Mostrar información"
348
+
349
+ #: templates/admin_tabs.php:176
350
+ #, fuzzy
351
+ msgid ""
352
+ "Activate this field to display information like the video title and uploader "
353
+ "before the video starts playing."
354
+ msgstr ""
355
+ "Active este campo para mostrar información como el título del vídeo y nombre "
356
+ "de usuario antes de que el vídeo comience a reproducirse."
357
+
358
+ #: templates/admin_tabs.php:183 templates/admin_tabs.php:385
359
+ msgid "Show additional content"
360
+ msgstr ""
361
+
362
+ #: templates/admin_tabs.php:191 templates/admin_tabs.php:393
363
+ #, fuzzy
364
+ msgid "Show title"
365
+ msgstr "Mostrar Título"
366
+
367
+ #: templates/admin_tabs.php:195 templates/admin_tabs.php:397
368
+ msgid "Show published date"
369
+ msgstr ""
370
+
371
+ #: templates/admin_tabs.php:202 templates/admin_tabs.php:404
372
+ #, fuzzy
373
+ msgid "Show description"
374
+ msgstr "Mostrar descripción"
375
+
376
+ #: templates/admin_tabs.php:210 templates/admin_tabs.php:412
377
+ #, fuzzy
378
+ msgid "Title tag:"
379
+ msgstr "Etiqueta de título:"
380
+
381
+ #: templates/admin_tabs.php:212 templates/admin_tabs.php:414
382
+ #, fuzzy
383
+ msgid "h1"
384
+ msgstr "h1"
385
+
386
+ #: templates/admin_tabs.php:213 templates/admin_tabs.php:415
387
+ #, fuzzy
388
+ msgid "h2"
389
+ msgstr "h2"
390
+
391
+ #: templates/admin_tabs.php:214 templates/admin_tabs.php:416
392
+ #, fuzzy
393
+ msgid "h3"
394
+ msgstr "h3"
395
+
396
+ #: templates/admin_tabs.php:215 templates/admin_tabs.php:417
397
+ #, fuzzy
398
+ msgid "h4"
399
+ msgstr "h4"
400
+
401
+ #: templates/admin_tabs.php:216 templates/admin_tabs.php:418
402
+ #, fuzzy
403
+ msgid "h5"
404
+ msgstr "h5"
405
+
406
+ #: templates/admin_tabs.php:217 templates/admin_tabs.php:419
407
+ #, fuzzy
408
+ msgid "h6"
409
+ msgstr "h6"
410
+
411
+ #: templates/admin_tabs.php:221 templates/admin_tabs.php:423
412
+ #, fuzzy
413
+ msgid "Description words:"
414
+ msgstr "Palabras en descripción:"
415
+
416
+ #: templates/admin_tabs.php:223 templates/admin_tabs.php:425
417
+ #, fuzzy
418
+ msgid ""
419
+ "Set the maximum number of words that will be displayed of the description. "
420
+ "This field is useful when the descriptions of videos in the gallery have "
421
+ "different sizes."
422
+ msgstr ""
423
+ "Establece el número máximo de palabras que se mostrarán en la descripción. "
424
+ "Este campo es útil cuando la descripción de los vídeos de la galería tienen "
425
+ "diferentes tamaños."
426
+
427
+ #: templates/admin_tabs.php:232 templates/admin_tabs.php:284
428
+ #: templates/admin_tabs.php:501 templates/admin_tabs.php:538
429
+ msgid "Tab order:"
430
+ msgstr ""
431
+
432
+ #: templates/admin_tabs.php:249
433
+ #, fuzzy
434
+ msgid "Search input text:"
435
+ msgstr "Campo de búsqueda de texto:"
436
+
437
+ #: templates/admin_tabs.php:253
438
+ #, fuzzy
439
+ msgid "Restrict search to (# separated):"
440
+ msgstr "Restringir búsqueda a (separa con #):"
441
+
442
+ #: templates/admin_tabs.php:257
443
+ #, fuzzy
444
+ msgid "You must assing this tags to your videos to restrict the search:"
445
+ msgstr "Debes asignar estas etiquetas a los vídeos para restringir la búsqueda:"
446
+
447
+ #: templates/admin_tabs.php:266
448
+ #, fuzzy
449
+ msgid "Restrict search by default: It will overwrite results of feed tab)"
450
+ msgstr ""
451
+ "Restringir búsqueda por defecto: Sobreescribirá los resultados de la pestaña "
452
+ "Feed"
453
+
454
+ #: templates/admin_tabs.php:268 templates/admin_tabs.php:454
455
+ #: templates/search.php:10
456
+ #, fuzzy
457
+ msgid "All"
458
+ msgstr "Todos"
459
+
460
+ #: templates/admin_tabs.php:276
461
+ #, fuzzy
462
+ msgid "Show search box"
463
+ msgstr "Mostrar caja de búsqueda"
464
+
465
+ #: templates/admin_tabs.php:280
466
+ #, fuzzy
467
+ msgid "Show select with Playlists"
468
+ msgstr "Show desplegable con Playlistas"
469
+
470
+ #: templates/admin_tabs.php:298
471
+ #, fuzzy
472
+ msgid "Number of videos to show:"
473
+ msgstr "Vídeos a mostrar:"
474
+
475
+ #: templates/admin_tabs.php:300
476
+ #, fuzzy
477
+ msgid "The plugin can display a maximum of 50 videos for each page."
478
+ msgstr "El plugin puede mostrar un máximo de 50 vídeos por página."
479
+
480
+ #: templates/admin_tabs.php:303
481
+ #, fuzzy
482
+ msgid "Thumbnail resolution:"
483
+ msgstr "Resolución de miniaturas:"
484
+
485
+ #: templates/admin_tabs.php:305
486
+ #, fuzzy
487
+ msgid "Default (120x90 px)"
488
+ msgstr "Por defecto (120x90 px)"
489
+
490
+ #: templates/admin_tabs.php:306
491
+ #, fuzzy
492
+ msgid "Medium (320x180)"
493
+ msgstr "Media (320x180)"
494
+
495
+ #: templates/admin_tabs.php:307
496
+ #, fuzzy
497
+ msgid "High (480x360)"
498
+ msgstr "Alta (480x360)"
499
+
500
+ #: templates/admin_tabs.php:324
501
+ #, fuzzy
502
+ msgid "Thumbnail columns:"
503
+ msgstr "Columnas de las miniaturas:"
504
+
505
+ #: templates/admin_tabs.php:330
506
+ #, fuzzy
507
+ msgid "Phones:"
508
+ msgstr "Móviles:"
509
+
510
+ #: templates/admin_tabs.php:338
511
+ #, fuzzy
512
+ msgid "Tablets:"
513
+ msgstr "Tablet"
514
+
515
+ #: templates/admin_tabs.php:350
516
+ #, fuzzy
517
+ msgid "Medium Desktops:"
518
+ msgstr "Escritorios medio:"
519
+
520
+ #: templates/admin_tabs.php:358
521
+ #, fuzzy
522
+ msgid "Large Desktops:"
523
+ msgstr "Escritorios grandes:"
524
+
525
+ #: templates/admin_tabs.php:372
526
+ #, fuzzy
527
+ msgid "Show duration"
528
+ msgstr "Mostrar duración"
529
+
530
+ #: templates/admin_tabs.php:376
531
+ #, fuzzy
532
+ msgid "Add \"nofollow\" to links"
533
+ msgstr "Añade \"nofollow\" a enlaces"
534
+
535
+ #: templates/admin_tabs.php:377
536
+ #, fuzzy
537
+ msgid ""
538
+ "\"nofollow\" attribute provides a way for webmasters to tell search engines "
539
+ "\"Don't follow this specific link.\""
540
+ msgstr ""
541
+ "El atributo \"nofollow\" ofrece a los webmasters un modo de indicar a los "
542
+ "motores de búsqueda para no seguir un enlace."
543
+
544
+ #: templates/admin_tabs.php:431
545
+ #, fuzzy
546
+ msgid "Thumbnail alignment:"
547
+ msgstr "Alineación de miniaturas:"
548
+
549
+ #: templates/admin_tabs.php:433
550
+ #, fuzzy
551
+ msgid "none"
552
+ msgstr "Ninguno"
553
+
554
+ #: templates/admin_tabs.php:434
555
+ #, fuzzy
556
+ msgid "Left"
557
+ msgstr "Izquierda"
558
+
559
+ #: templates/admin_tabs.php:435
560
+ #, fuzzy
561
+ msgid "Right"
562
+ msgstr "Derecha"
563
+
564
+ #: templates/admin_tabs.php:442
565
+ #, fuzzy
566
+ msgid "Thumbnail width:"
567
+ msgstr "Ancho de miniaturas:"
568
+
569
+ #: templates/admin_tabs.php:444
570
+ #, fuzzy
571
+ msgid "Extra small"
572
+ msgstr "Extra pequeño"
573
+
574
+ #: templates/admin_tabs.php:445
575
+ #, fuzzy
576
+ msgid "Small"
577
+ msgstr "Pequeño"
578
+
579
+ #: templates/admin_tabs.php:446
580
+ #, fuzzy
581
+ msgid "Half"
582
+ msgstr "Medio"
583
+
584
+ #: templates/admin_tabs.php:447
585
+ #, fuzzy
586
+ msgid "Large"
587
+ msgstr "Grande"
588
+
589
+ #: templates/admin_tabs.php:448
590
+ #, fuzzy
591
+ msgid "Extra large"
592
+ msgstr "Extra grande"
593
+
594
+ #: templates/admin_tabs.php:452
595
+ #, fuzzy
596
+ msgid "Min. size with alignment:"
597
+ msgstr "Mín. tamaño con alineación:"
598
+
599
+ #: templates/admin_tabs.php:455
600
+ #, fuzzy
601
+ msgid "Tablets"
602
+ msgstr "Tablet"
603
+
604
+ #: templates/admin_tabs.php:456
605
+ #, fuzzy
606
+ msgid "Medium Desktops"
607
+ msgstr "Escritorio medio"
608
+
609
+ #: templates/admin_tabs.php:457
610
+ #, fuzzy
611
+ msgid "Large devices"
612
+ msgstr "Dispositivos grandes"
613
+
614
+ #: templates/admin_tabs.php:459
615
+ #, fuzzy
616
+ msgid ""
617
+ "Thumbnails will be aligned only from the size of selected device to prevent "
618
+ "unwanted effects in small sizes."
619
+ msgstr ""
620
+ "Las miniaturas serán alineadas sólo desde el tamaño del dispositivo "
621
+ "seleccionado para prevenir efectos no deseados en dispositivos pequeños."
622
+
623
+ #: templates/admin_tabs.php:469
624
+ msgid "Open in a new window"
625
+ msgstr ""
626
+
627
+ #: templates/admin_tabs.php:473
628
+ #, fuzzy
629
+ msgid "Show pagination"
630
+ msgstr "Mostrar paginación"
631
+
632
+ #: templates/admin_tabs.php:480
633
+ msgid "Thumbnail content tab order:"
634
+ msgstr ""
635
+
636
+ #: templates/admin_tabs.php:483
637
+ #, fuzzy
638
+ msgid "Thumbnail:"
639
+ msgstr "Miniatura:"
640
+
641
+ #: templates/admin_tabs.php:491
642
+ msgid "Published date:"
643
+ msgstr ""
644
+
645
+ #: templates/admin_tabs.php:495
646
+ #, fuzzy
647
+ msgid "Description:"
648
+ msgstr "Descripción:"
649
+
650
+ #: templates/admin_tabs.php:517
651
+ #, fuzzy
652
+ msgid "Link text:"
653
+ msgstr "Texto del enlace"
654
+
655
+ #: templates/admin_tabs.php:523
656
+ #, fuzzy
657
+ msgid "Show link to channel"
658
+ msgstr "Mostrar enlace al canal"
659
+
660
+ #: templates/admin_tabs.php:528
661
+ #, fuzzy
662
+ msgid "Open in a new window or tab"
663
+ msgstr "Abrir en una ventana nueva o pestaña"
664
+
665
+ #: templates/admin_tabs.php:533
666
+ #, fuzzy
667
+ msgid "Show link to thank the developer"
668
+ msgstr "Mostrar enlace para agradecer al desarrollador"
669
+
670
+ #: templates/link.php:9
671
+ #, fuzzy
672
+ msgid "By PoseLab"
673
+ msgstr "Por PoseLab"
674
+
675
+ #: templates/link.php:18
676
+ #, fuzzy
677
+ msgid "Show more videos"
678
+ msgstr "Ver más vídeos"
679
+
680
+ #: templates/thumb.php:4
681
+ #, fuzzy
682
+ msgid "Private video"
683
+ msgstr "Vídeo privado"
684
+
685
+ #: templates/thumbs.php:119
686
+ #, fuzzy
687
+ msgid "«Previous"
688
+ msgstr "«Anterior"
689
+
690
+ #: templates/thumbs.php:128
691
+ #, fuzzy
692
+ msgid "Next»"
693
+ msgstr "Siguiente»"
694
+
695
+ #: youtube-channel-gallery.php:48
696
+ #, fuzzy
697
+ msgid "Youtube Channel Gallery"
698
+ msgstr "Galería de Canal de Youtube"
699
+
700
+ #: youtube-channel-gallery.php:50
701
+ #, fuzzy
702
+ msgid "Show a youtube video and a gallery of thumbnails for a youtube channel"
703
+ msgstr "Muestra un vídeo y una galería de miniaturas de una canal de Youtube "
704
+
705
+ #: youtube-channel-gallery.php:714
706
+ #, fuzzy
707
+ msgid "Show more videos»"
708
+ msgstr "Ver más vídeos"
709
+
710
+ #: youtube-channel-gallery.php:723
711
+ #, fuzzy
712
+ msgid "There is no video to show."
713
+ msgstr "No hay ningún vídeo para mostrar."
714
+
715
+ #: youtube-channel-gallery.php:801
716
+ #, fuzzy, php-format
717
+ msgid "Error type: \"%1$s\". "
718
+ msgstr "Tipo de error: \"%1$s\". "
719
+
720
+ #: youtube-channel-gallery.php:802
721
+ #, fuzzy, php-format
722
+ msgid "Error message: \"%1$s\" "
723
+ msgstr "Mensaje de error: \"%1$s\" "
724
+
725
+ #: youtube-channel-gallery.php:803
726
+ #, fuzzy, php-format
727
+ msgid "Domain: \"%1$s\". "
728
+ msgstr "Dominio: \"%1$s\". "
729
+
730
+ #: youtube-channel-gallery.php:804
731
+ #, fuzzy, php-format
732
+ msgid "Reason: \"%1$s\". "
733
+ msgstr "Razón: \"%1$s\". "
734
+
735
+ #: youtube-channel-gallery.php:805
736
+ #, fuzzy, php-format
737
+ msgid "Location type: \"%1$s\". "
738
+ msgstr "Tipo de localización: \"%1$s\". "
739
+
740
+ #: youtube-channel-gallery.php:806
741
+ #, fuzzy, php-format
742
+ msgid "Location: \"%1$s\". "
743
+ msgstr "Localización: \"%1$s\". "
744
+
745
+ #: youtube-channel-gallery.php:808
746
+ #, fuzzy, php-format
747
+ msgid "Check in YouTube if the id %1$s belongs to a %2$s. "
748
+ msgstr "Comprueba en YouTube si el id %1$s corresponde a un %2$s. "
749
+
750
+ #: youtube-channel-gallery.php:810
751
+ #, fuzzy, php-format
752
+ msgid ""
753
+ "If the user id is correct, check that the channel of the user has list of "
754
+ "\"%1$s\". "
755
+ msgstr ""
756
+ "Si el id de usuario es correcto, comprueba que el canal de usuario tiene una "
757
+ "lista de \"%1$s\". "
758
+
759
+ #: youtube-channel-gallery.php:812
760
+ #, fuzzy
761
+ msgid ""
762
+ "Check the <a href=\"http://wordpress.org/extend/plugins/youtube-channel-"
763
+ "gallery/faq/\" target=\"_blank\">FAQ</a> of the plugin or send error messages "
764
+ "to <a href=\"https://wordpress.org/support/plugin/youtube-channel-gallery\" "
765
+ "target=\"_blank\">support</a>."
766
+ msgstr ""
767
+ "Revise el <a href=\"http://wordpress.org/extend/plugins/youtube-channel-"
768
+ "gallery/faq/\" target=\"_blank\">FAQ</a> del plugin or envíe los mensajes de "
769
+ "error a <a href=\"https://wordpress.org/support/plugin/youtube-channel-gallery"
770
+ "\" target=\"_blank\">support</a>."
771
+
772
+ #: youtube-channel-gallery.php:887
773
+ #, fuzzy
774
+ msgid "There are no videos matching selected criteria"
775
+ msgstr "No hay vídeos que se ajusten al criterio seleccionado"
776
+
777
+ #~ msgid "Message from server: \"%1$s\". "
778
+ #~ msgstr "Mensaje del servidor: \"%1$s\". "
779
+
780
+ #~ msgid "Show player above thumbnails"
781
+ #~ msgstr "Mostrar reproductor sobre miniaturas"
782
+
783
+ #~ msgid ""
784
+ #~ "This field is used to assign the appropriate quality of thumbnail images "
785
+ #~ "in top and bottom alignments and to assign width to thumbnails in left and "
786
+ #~ "right alignments. If the quality of thumbnail images is not enough, insert "
787
+ #~ "a larger value. If you are unsure you can assign one of the following "
788
+ #~ "values​​: 120, 320, 480 or 640"
789
+ #~ msgstr ""
790
+ #~ "Este campo se utiliza para asignar la calidad de imagen más adecuada a las "
791
+ #~ "miniaturas en las alineaciones superior e inferior y para asignar ancho a "
792
+ #~ "las miniaturas en las alineaciones izquierda y derecha. Si la calidad de "
793
+ #~ "las imágenes de las miniaturas no es suficiente, introduzca un valor "
794
+ #~ "mayor. Si no está seguro de que valor usar puede asignar uno de los "
795
+ #~ "siguientes valores: 120, 320, 480 ó 640"
796
+
797
+ #~ msgid "Top"
798
+ #~ msgstr "Arriba"
799
+
800
+ #~ msgid "Bottom"
801
+ #~ msgstr "Abajo"
802
+
803
+ #~ msgid "Video width:"
804
+ #~ msgstr "Ancho del vídeo:"
805
+
806
+ #~ msgid "Show info (title, uploader)"
807
+ #~ msgstr "Mostrar información (título, cargador)"
808
+
809
+ #~ msgid "You must insert a valid YouTube user id."
810
+ #~ msgstr "Debes introducir un id válido de usuario de YouTube."
811
+
812
+ #~ msgid "You must insert a valid playlist id."
813
+ #~ msgstr "Debes introducir un id válido de lista de reproducción de YouTube."
814
+
815
+ #~ msgid "Light:"
816
+ #~ msgstr "Claro"
817
+
818
+ #~ msgid "No post to duplicate has been supplied!"
819
+ #~ msgstr "No se facilitó ninguna entrada a copiar"
820
+
821
+ #~ msgid "Post creation failed, could not find original post:"
822
+ #~ msgstr ""
823
+ #~ "Creación realizada sin éxito, no ha sido posible encontrar la entrada "
824
+ #~ "original:"
825
+
826
+ #~ msgid "No page to duplicate has been supplied!"
827
+ #~ msgstr "No se facilitó ninguna página a copiar"
828
+
829
+ #~ msgid "Make a duplicate from this post"
830
+ #~ msgstr "Crea una copia de esta entrada"
831
+
832
+ #~ msgid "Duplicate"
833
+ #~ msgstr "Duplicar"
834
+
835
+ #~ msgid "Make a duplicate from this page"
836
+ #~ msgstr "Crea una copia de esta página"
837
+
838
+ #~ msgid "Copy to a new draft"
839
+ #~ msgstr "Copia en un borrador nuevo"
840
+
841
+ #~ msgid "Duplicate Post Options"
842
+ #~ msgstr "Opciones"
843
+
844
+ #~ msgid "Duplicate Post"
845
+ #~ msgstr "Duplicate Post"
846
+
847
+ #~ msgid "Copy post/page date also"
848
+ #~ msgstr "Copiar también fecha del post o la página"
849
+
850
+ #~ msgid ""
851
+ #~ "Normally, the new draft has publication date set to current time: check "
852
+ #~ "the box to copy the original post/page date"
853
+ #~ msgstr ""
854
+ #~ "Normalmente se establece la fecha de publicación del nuevo borrador a la "
855
+ #~ "fecha actual: compruebe la casilla para copiar la fecha original del post "
856
+ #~ "o la página"
857
+
858
+ #~ msgid "Do not copy these fields"
859
+ #~ msgstr "No copiar estos campos"
860
+
861
+ #~ msgid ""
862
+ #~ "Comma-separated list of meta fields that must not be copied when cloning a "
863
+ #~ "post/page"
864
+ #~ msgstr ""
865
+ #~ "Lista separada por comas de meta campos que no pueden ser copiados cuando "
866
+ #~ "se clona una entrada/pagina."
867
+
868
+ #~ msgid ""
869
+ #~ "Prefix to be added before the original title when cloning a post/page, e."
870
+ #~ "g. \"Copy of\" (blank for no prefix)"
871
+ #~ msgstr ""
872
+ #~ "Prefijo a ser agregado antes del titulo original cuando se clona una "
873
+ #~ "entrada/pagina, ej. \"Copia de\" (en blanco para no agregar prefijo)"
874
+
875
+ #~ msgid "Minimum level to copy posts"
876
+ #~ msgstr "Nivel mínimo para copiar posts"
877
+
878
+ #~ msgid ""
879
+ #~ "Warning: users will be able to copy all posts, even those of higher level "
880
+ #~ "users"
881
+ #~ msgstr ""
882
+ #~ "Atención: los usuarios podrán copiar todos los posts, incluso aquellos de "
883
+ #~ "usuarios de nivel más alto"
884
+
885
+ #~ msgid "Save Changes"
886
+ #~ msgstr "Guardar los cambios"
887
+
888
+ #~ msgid "Donate"
889
+ #~ msgstr "Hacer una donación"
890
+
891
+ #~ msgid "Translate"
892
+ #~ msgstr "Traducir"
893
+
894
+ #~ msgid "http://www.lopo.it/duplicate-post-plugin/"
895
+ #~ msgstr "Copy text \t http://www.lopo.it/duplicate-post-plugin/"
896
+
897
+ #~ msgid "Creates a copy of a post."
898
+ #~ msgstr "Crear una copia de las entradas."
899
+
900
+ #~ msgid "Enrico Battocchi"
901
+ #~ msgstr "Enrico Battocchi"
902
+
903
+ #~ msgid "http://www.lopo.it"
904
+ #~ msgstr "http://www.lopo.it"
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, API 3
5
  Requires at least: 2.8
6
  Tested up to: 3.8.8
7
- Stable tag: 2.2.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -92,6 +92,16 @@ Description of the different fields of the plugin:
92
 
93
  * **Show info (title, uploader):** display information like the video title and rating before the video starts playing. Shortcode attribute: showinfo; values: 0 (default) or 1. (Optional).
94
 
 
 
 
 
 
 
 
 
 
 
95
  * **Order:** order of player. Shortcode attribute: player_order; values: Number. 1 (default). (Optional).
96
 
97
 
@@ -105,8 +115,12 @@ Description of the different fields of the plugin:
105
 
106
  * **Thumbnail columns:** it allows to control the number of columns in which the thumbnails are distributed. It uses [Bootstrap Grid system](http://getbootstrap.com/css/#grid) to allow responsive behavior. Shortcode attribute: thumb_columns_phones (Phones), thumb_columns_tablets (Tablets), thumb_columns_md (Medium Desktops), thumb_columns_ld (Large Desktops); value: Number. Max value 12. (Optional).
107
 
 
 
108
  * **Show title:** it displays the title of the thumbnail with a link to play the video in the player. Shortcode attribute: title; values: 0 (default) or 1. (Optional).
109
 
 
 
110
  * **Show description:** it shows the description of the thumbnail with the number of specified words. Shortcode attribute: description; values: 0 (default) or 1. (Optional).
111
 
112
  * **Title tag:** select an appropriate tag for the title. Shortcode attribute: title_tag; values: h1, h2, h3, h4, h5 (default), h6. (Optional).
@@ -125,6 +139,10 @@ Description of the different fields of the plugin:
125
 
126
  * **Show pagination:** It shows a simple pagination with Next and Previous buttons, and information of page number and total pages. Take into account the warning from google: "Please note that the value is an approximation and may not represent an exact value. In addition, the maximum value is 1,000,000". I have observed that this value does not work properly on Youtube accounts with many videos. Shortcode attribute: thumb_pagination; values: 0 or 1 (default). (Optional).
127
 
 
 
 
 
128
 
129
  **Link tab:**
130
 
@@ -148,7 +166,7 @@ Example of shortcode use:
148
  * Italian (it_IT) - [Marco Milesi](https://profiles.wordpress.org/milmor).
149
  * Spanish (es_ES) - [PoseLab](http://poselab.com/)
150
 
151
- If you have created your own language pack, or have an update of an existing one, you can [send me](mailto:javier@poselab.com) your gettext PO and MO so that I can bundle it into the Youtube Channel Gallery. You can also translate, improve or update a plugin translation in [Transifex](https://www.transifex.com/projects/p/youtube-channel-gallery). Go to [Youtube Channel Galllery project page of Transifex](https://www.transifex.com/projects/p/youtube-channel-gallery), click "Request language", Select the language you want to translate and wait until your request is accepted. When the language is translated it will be included in the plugin.
152
 
153
 
154
  == Installation ==
@@ -166,24 +184,22 @@ The “widgets” admin page is found in the administrator part (wp-admin) of yo
166
 
167
  = How do I find the YouTube user id? =
168
 
169
- The username who uploaded a video to Youtube is located below each video, where says something like in this example, "Published on June 25, 2012 by DisneyShorts", where DisneyShorts is the username. Click on the user name and you will find the user id in the url of that page: https://www.youtube.com/user/DisneyShorts. DisneyShorts is the id of that user.
170
 
171
- = How do I find a YouTube playlist id? =
 
 
172
 
173
  If you go to a playlist you will get the following url format: https://www.youtube.com/playlist?list=PL33942589618ABDE3. The playlist id is what you have after list=. In this example, the playlist id is PL33942589618ABDE3.
174
 
175
- = I selected showing my playlist in descending order but the latest videos are not displayed, why? =
176
 
177
- This will happen if your playlist has more than 1000 videos because YouTube API has this limit.
178
 
179
  = Thumbnails links go to the YouTube page instead of playing the video in the player? =
180
 
181
  If another plugin or your theme throws a javascript error before Youtube Channel Gallery has been executed, it will prevent Youtube Channel Gallery JavaScript from functioning properly, so thumbnails links will go to the YouTube page instead of playing the video in the player.
182
 
183
- = The plugin throws the following error in the error console of Google Chrome: Blocked a frame with origin "http://www.youtube.com" from accessing a frame with origin "http://myweb.com". Protocols, domains, and ports must match. =
184
-
185
- I think this is a browser error because this also happens to players that can be seen in https://developers.google.com/youtube/.
186
-
187
  = If the plugin is used on a page using SSL, the player will throw warnings in the browser console =
188
 
189
  See [HTTPS Support for YouTube Embeds](http://apiblog.youtube.com/2011/02/https-support-for-youtube-embeds.html):
@@ -201,6 +217,26 @@ See [HTTPS Support for YouTube Embeds](http://apiblog.youtube.com/2011/02/https-
201
 
202
  == Changelog ==
203
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
204
  = 2.2.2 =
205
  * Error message optimization to improve users' debug.
206
  * Changes in Spanish translation.
4
  Tags: widget, gallery, youtube, channel, user, sidebar, video, youtube playlist, html5, iframe, Youtube channel, youtube videos, API 3
5
  Requires at least: 2.8
6
  Tested up to: 3.8.8
7
+ Stable tag: 2.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
92
 
93
  * **Show info (title, uploader):** display information like the video title and rating before the video starts playing. Shortcode attribute: showinfo; values: 0 (default) or 1. (Optional).
94
 
95
+ * **Show title:** it displays the title of the player. Shortcode attribute: player_title; values: 0 (default) or 1. (Optional).
96
+
97
+ * **Show published date:** it shows the date of the video of the player in the format set in the General Settings of Wordpress. Shortcode attribute: player_published_date; values: 0 (default) or 1. (Optional).
98
+
99
+ * **Show description:** it shows the description of the video of the player. Shortcode attribute: player_description; values: 0 (default) or 1. (Optional).
100
+
101
+ * **Title tag:** select an appropriate tag for the title of the video of the player. Shortcode attribute: player_title_tag; values: h1, h2, h3 (default), h4, h5, h6. (Optional).
102
+
103
+ * **Description words number:** the maximum number of words displayed in the description of the video of the player. Shortcode attribute: player_description_words_number; value: Number. (Optional).
104
+
105
  * **Order:** order of player. Shortcode attribute: player_order; values: Number. 1 (default). (Optional).
106
 
107
 
115
 
116
  * **Thumbnail columns:** it allows to control the number of columns in which the thumbnails are distributed. It uses [Bootstrap Grid system](http://getbootstrap.com/css/#grid) to allow responsive behavior. Shortcode attribute: thumb_columns_phones (Phones), thumb_columns_tablets (Tablets), thumb_columns_md (Medium Desktops), thumb_columns_ld (Large Desktops); value: Number. Max value 12. (Optional).
117
 
118
+ * **Show duration:** it displays the duration of each video. Shortcode attribute: duration; values: 0 (default) or 1. (Optional).
119
+
120
  * **Show title:** it displays the title of the thumbnail with a link to play the video in the player. Shortcode attribute: title; values: 0 (default) or 1. (Optional).
121
 
122
+ * **Show published date:** it shows the date of the video in the format set in the General Settings of Wordpress . Shortcode attribute: published_date; values: 0 (default) or 1. (Optional).
123
+
124
  * **Show description:** it shows the description of the thumbnail with the number of specified words. Shortcode attribute: description; values: 0 (default) or 1. (Optional).
125
 
126
  * **Title tag:** select an appropriate tag for the title. Shortcode attribute: title_tag; values: h1, h2, h3, h4, h5 (default), h6. (Optional).
139
 
140
  * **Show pagination:** It shows a simple pagination with Next and Previous buttons, and information of page number and total pages. Take into account the warning from google: "Please note that the value is an approximation and may not represent an exact value. In addition, the maximum value is 1,000,000". I have observed that this value does not work properly on Youtube accounts with many videos. Shortcode attribute: thumb_pagination; values: 0 or 1 (default). (Optional).
141
 
142
+ * **Thumbnail content tab order:** order of elements of Thumbnail content tab. Default order: Thumbnail, Title, Published date, Description. Shortcode attributes: thumb_order_thumb, thumb_order_title, thumb_order_publishedAt, thumb_order_desc; values: Number. (Optional).
143
+
144
+ * **Tab 0rder:** order of Thumbnails tab. Shortcode attribute: thumb_order; values: Number. 3 (default). (Optional).
145
+
146
 
147
  **Link tab:**
148
 
166
  * Italian (it_IT) - [Marco Milesi](https://profiles.wordpress.org/milmor).
167
  * Spanish (es_ES) - [PoseLab](http://poselab.com/)
168
 
169
+ If you have created your own language pack, or have an update of an existing one, you can [send me](mailto:javier@poselab.com) your gettext PO and MO so that I can bundle it into the Youtube Channel Gallery.
170
 
171
 
172
  == Installation ==
184
 
185
  = How do I find the YouTube user id? =
186
 
187
+ To find your channel's user ID and channel ID, sign in to YouTube and check your [advanced account settings](https://www.youtube.com/account) page.
188
 
189
+ = How do I get a Google API key? =
190
+
191
+ You can find how to get your Google API key and use it in the plugin in the [video tutorials](http://poselab.com/en/youtube-channel-gallery-help).
192
 
193
  If you go to a playlist you will get the following url format: https://www.youtube.com/playlist?list=PL33942589618ABDE3. The playlist id is what you have after list=. In this example, the playlist id is PL33942589618ABDE3.
194
 
195
+ = How do I find a YouTube playlist id? =
196
 
197
+ If you go to a playlist you will get the following url format: https://www.youtube.com/playlist?list=PL33942589618ABDE3. The playlist id is what you have after list=. In this example, the playlist id is PL33942589618ABDE3.
198
 
199
  = Thumbnails links go to the YouTube page instead of playing the video in the player? =
200
 
201
  If another plugin or your theme throws a javascript error before Youtube Channel Gallery has been executed, it will prevent Youtube Channel Gallery JavaScript from functioning properly, so thumbnails links will go to the YouTube page instead of playing the video in the player.
202
 
 
 
 
 
203
  = If the plugin is used on a page using SSL, the player will throw warnings in the browser console =
204
 
205
  See [HTTPS Support for YouTube Embeds](http://apiblog.youtube.com/2011/02/https-support-for-youtube-embeds.html):
217
 
218
  == Changelog ==
219
 
220
+ = 2.3 =
221
+ * Stop other videos if there is more than one instance of the plugin in the same page.
222
+ * Corrected problem with pagination when there are multiple instances in the same page.
223
+ * Added option to show video duration in thumbnails.
224
+ * Added options to show title, description and published date below the player.
225
+ * Added option to select description words number in player description.
226
+ * Option to select title tag of player.
227
+ * Added option to show published date in thumbnail content.
228
+ * Added option to order published date.
229
+ * Convert plain text URI to HTML links in description text.
230
+ * Added Customizer support.
231
+ * Correction for shortcodes inside pre tags.
232
+ * Error control in thumbnail alignment.
233
+ * Error control in max columns.
234
+ * Help as jquery tooltips.
235
+ * Some little optimizations.
236
+ * Error message optimization.
237
+ * Deleted default Google API Key because quota exceded and added link to Googl Developers Console and hto help.
238
+ * Updated spanish translation and pot file.
239
+
240
  = 2.2.2 =
241
  * Error message optimization to improve users' debug.
242
  * Changes in Spanish translation.
scripts.js CHANGED
@@ -1,20 +1,24 @@
1
  /*------------------------------------------------------------
2
  Plugin Name: Youtube Channel Gallery
3
  Plugin URI: http://www.poselab.com/
4
- Version: 2.2.2
5
  Description: Show a youtube video and a gallery of thumbnails for a youtube channel.
6
- ------------------------------------------------------------*/
7
  jQuery(document).ready(function($) {
8
-
9
  var PAGE = {};
10
  //thumbnails
11
  var ytcplayer = {};
12
  $('.youtubechannelgallery').on('click', '.ytclink', function(e) {
 
13
  var iframeid = $(this).attr('data-playerid');
14
  var youtubeid = $(this).attr('href').split("watch?v=")[1];
15
  var quality = $(this).attr('data-quality');
16
  checkIfInView($('#' + iframeid));
 
 
17
  ytcplayVideo (iframeid, youtubeid, quality);
 
18
 
19
  return false;
20
  });
@@ -33,11 +37,11 @@ jQuery(document).ready(function($) {
33
  });
34
 
35
  function ytcplayVideo (iframeid, youtubeid, quality) {
36
- if(iframeid in ytcplayer) {
37
- ytcplayer[iframeid].loadVideoById(youtubeid);
38
  }else{
39
  ytcplayer[iframeid] = new YT.Player(iframeid, {
40
- events: {
41
  'onReady': function(){
42
  ytcplayer[iframeid].loadVideoById(youtubeid);
43
  ytcplayer[iframeid].setPlaybackQuality(quality);
@@ -45,9 +49,42 @@ jQuery(document).ready(function($) {
45
  }
46
  });
47
  }
48
-
49
  }
50
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
 
52
  //Scroll to element only if not in view - jQuery
53
  //http://stackoverflow.com/a/10130707/1504078
@@ -55,7 +92,7 @@ jQuery(document).ready(function($) {
55
  if($(element).offset()){
56
  if($(element).offset().top < $(window).scrollTop()){
57
  //scroll up
58
- $('html,body').animate({scrollTop:$(element).offset().top - 10}, 500);
59
  }
60
  else if($(element).offset().top + $(element).height() > $(window).scrollTop() + (window.innerHeight || document.documentElement.clientHeight)){
61
  //scroll down
@@ -85,6 +122,7 @@ jQuery(document).ready(function($) {
85
  else {
86
  PAGE[wid] = 2;
87
  }
 
88
 
89
  $.ajax({
90
  url: ytcAjax.ajaxurl,
1
  /*------------------------------------------------------------
2
  Plugin Name: Youtube Channel Gallery
3
  Plugin URI: http://www.poselab.com/
4
+ Version: 2.3
5
  Description: Show a youtube video and a gallery of thumbnails for a youtube channel.
6
+ ------------------------------------------------------------*/
7
  jQuery(document).ready(function($) {
8
+
9
  var PAGE = {};
10
  //thumbnails
11
  var ytcplayer = {};
12
  $('.youtubechannelgallery').on('click', '.ytclink', function(e) {
13
+ var $this = $(this);
14
  var iframeid = $(this).attr('data-playerid');
15
  var youtubeid = $(this).attr('href').split("watch?v=")[1];
16
  var quality = $(this).attr('data-quality');
17
  checkIfInView($('#' + iframeid));
18
+
19
+ ytcStopVideo(iframeid);
20
  ytcplayVideo (iframeid, youtubeid, quality);
21
+ changePlayerContent ($this, youtubeid);
22
 
23
  return false;
24
  });
37
  });
38
 
39
  function ytcplayVideo (iframeid, youtubeid, quality) {
40
+ if(iframeid in ytcplayer) {
41
+ ytcplayer[iframeid].loadVideoById(youtubeid);
42
  }else{
43
  ytcplayer[iframeid] = new YT.Player(iframeid, {
44
+ events: {
45
  'onReady': function(){
46
  ytcplayer[iframeid].loadVideoById(youtubeid);
47
  ytcplayer[iframeid].setPlaybackQuality(quality);
49
  }
50
  });
51
  }
 
52
  }
53
 
54
+ function ytcStopVideo(ifr) {
55
+ $( 'iframe.ytcplayer:not(#' + ifr + ')' ).each( function() {
56
+ var iframeid = $(this).attr('id');
57
+ if(iframeid in ytcplayer) {
58
+ var url = ytcplayer[iframeid].getVideoUrl();
59
+ var youtubeid = url.split("watch?v=")[1];
60
+ var videoUrl = 'http://www.youtube.com/v/' + youtubeid + '?version=3';
61
+ if(ytcplayer[iframeid].getPlayerState() == 1){
62
+ ytcplayer[iframeid].cueVideoByUrl(videoUrl);
63
+ }
64
+ }
65
+ });
66
+ }
67
+
68
+ function changePlayerContent (thumb, youtubeid) {
69
+ var $widget = thumb.parents('.youtubechannelgallery'),
70
+ wid = $widget.find('[id^=ytc-]').attr('id');
71
+
72
+ $.ajax({
73
+ url: ytcAjax.ajaxurl,
74
+ type: 'POST',
75
+ data: {
76
+ action: 'ytc_changePlayerContent',
77
+ youtubeid: youtubeid,
78
+ wid: wid
79
+ },
80
+ success: function(data) {
81
+
82
+ $widget.find('.ytcplayercontent').replaceWith(data);
83
+
84
+ }
85
+ });
86
+ }
87
+
88
 
89
  //Scroll to element only if not in view - jQuery
90
  //http://stackoverflow.com/a/10130707/1504078
92
  if($(element).offset()){
93
  if($(element).offset().top < $(window).scrollTop()){
94
  //scroll up
95
+ $('html,body').animate({scrollTop:$(element).offset().top - 50}, 500);
96
  }
97
  else if($(element).offset().top + $(element).height() > $(window).scrollTop() + (window.innerHeight || document.documentElement.clientHeight)){
98
  //scroll down
122
  else {
123
  PAGE[wid] = 2;
124
  }
125
+ e.stopImmediatePropagation();
126
 
127
  $.ajax({
128
  url: ytcAjax.ajaxurl,
styles.css CHANGED
@@ -1 +1 @@
1
- #ytc-wrapper .col-xs-2-4,#ytc-wrapper .col-sm-2-4,#ytc-wrapper .col-md-2-4,#ytc-wrapper .col-lg-2-4{position:relative;min-height:1px;padding-right:7px;padding-left:7px}#ytc-wrapper .col-xs-2-4{float:left}@media (min-width:768px){#ytc-wrapper .col-sm-2-4{float:left}}@media (min-width:992px){#ytc-wrapper .col-md-2-4{float:left}}@media (min-width:1200px){#ytc-wrapper .col-lg-2-4{float:left}}#ytc-wrapper .col-xs-1-7,#ytc-wrapper .col-sm-1-7,#ytc-wrapper .col-md-1-7,#ytc-wrapper .col-lg-1-7{position:relative;min-height:1px;padding-right:7px;padding-left:7px}#ytc-wrapper .col-xs-1-7{float:left}@media (min-width:768px){#ytc-wrapper .col-sm-1-7{float:left}}@media (min-width:992px){#ytc-wrapper .col-md-1-7{float:left}}@media (min-width:1200px){#ytc-wrapper .col-lg-1-7{float:left}}#ytc-wrapper .col-xs-1-5,#ytc-wrapper .col-sm-1-5,#ytc-wrapper .col-md-1-5,#ytc-wrapper .col-lg-1-5{position:relative;min-height:1px;padding-right:7px;padding-left:7px}#ytc-wrapper .col-xs-1-5{float:left}@media (min-width:768px){#ytc-wrapper .col-sm-1-5{float:left}}@media (min-width:992px){#ytc-wrapper .col-md-1-5{float:left}}@media (min-width:1200px){#ytc-wrapper .col-lg-1-5{float:left}}#ytc-wrapper .col-xs-1-3,#ytc-wrapper .col-sm-1-3,#ytc-wrapper .col-md-1-3,#ytc-wrapper .col-lg-1-3{position:relative;min-height:1px;padding-right:7px;padding-left:7px}#ytc-wrapper .col-xs-1-3{float:left}@media (min-width:768px){#ytc-wrapper .col-sm-1-3{float:left}}@media (min-width:992px){#ytc-wrapper .col-md-1-3{float:left}}@media (min-width:1200px){#ytc-wrapper .col-lg-1-3{float:left}}#ytc-wrapper .col-xs-1-2,#ytc-wrapper .col-sm-1-2,#ytc-wrapper .col-md-1-2,#ytc-wrapper .col-lg-1-2{position:relative;min-height:1px;padding-right:7px;padding-left:7px}#ytc-wrapper .col-xs-1-2{float:left}@media (min-width:768px){#ytc-wrapper .col-sm-1-2{float:left}}@media (min-width:992px){#ytc-wrapper .col-md-1-2{float:left}}@media (min-width:1200px){#ytc-wrapper .col-lg-1-2{float:left}}#ytc-wrapper .col-xs-1-1,#ytc-wrapper .col-sm-1-1,#ytc-wrapper .col-md-1-1,#ytc-wrapper .col-lg-1-1{position:relative;min-height:1px;padding-right:7px;padding-left:7px}#ytc-wrapper .col-xs-1-1{float:left}@media (min-width:768px){#ytc-wrapper .col-sm-1-1{float:left}}@media (min-width:992px){#ytc-wrapper .col-md-1-1{float:left}}@media (min-width:1200px){#ytc-wrapper .col-lg-1-1{float:left}}#ytc-wrapper audio,#ytc-wrapper canvas,#ytc-wrapper progress,#ytc-wrapper video{display:inline-block;vertical-align:baseline}#ytc-wrapper a{background-color:transparent}#ytc-wrapper a:active,#ytc-wrapper a:hover{outline:0}#ytc-wrapper b,#ytc-wrapper strong{font-weight:700}#ytc-wrapper small{font-size:80%}#ytc-wrapper img{border:0}#ytc-wrapper svg:not(:root){overflow:hidden}#ytc-wrapper figure{margin:1em 40px}#ytc-wrapper .container{margin-right:auto;margin-left:auto;padding-left:7px!important;padding-right:7px!important}@media (min-width:768px){#ytc-wrapper .container{width:734px}}@media (min-width:992px){#ytc-wrapper .container{width:954px}}@media (min-width:1200px){#ytc-wrapper .container{width:1154px}}#ytc-wrapper .container-fluid{margin-right:auto;margin-left:auto;padding-left:7px!important;padding-right:7px!important}#ytc-wrapper .row{margin-left:-7px!important;margin-right:-7px!important}#ytc-wrapper .col-xs-1,#ytc-wrapper .col-sm-1,#ytc-wrapper .col-md-1,#ytc-wrapper .col-lg-1,#ytc-wrapper .col-xs-2,#ytc-wrapper .col-sm-2,#ytc-wrapper .col-md-2,#ytc-wrapper .col-lg-2,#ytc-wrapper .col-xs-3,#ytc-wrapper .col-sm-3,#ytc-wrapper .col-md-3,#ytc-wrapper .col-lg-3,#ytc-wrapper .col-xs-4,#ytc-wrapper .col-sm-4,#ytc-wrapper .col-md-4,#ytc-wrapper .col-lg-4,#ytc-wrapper .col-xs-5,#ytc-wrapper .col-sm-5,#ytc-wrapper .col-md-5,#ytc-wrapper .col-lg-5,#ytc-wrapper .col-xs-6,#ytc-wrapper .col-sm-6,#ytc-wrapper .col-md-6,#ytc-wrapper .col-lg-6,#ytc-wrapper .col-xs-7,#ytc-wrapper .col-sm-7,#ytc-wrapper .col-md-7,#ytc-wrapper .col-lg-7,#ytc-wrapper .col-xs-8,#ytc-wrapper .col-sm-8,#ytc-wrapper .col-md-8,#ytc-wrapper .col-lg-8,#ytc-wrapper .col-xs-9,#ytc-wrapper .col-sm-9,#ytc-wrapper .col-md-9,#ytc-wrapper .col-lg-9,#ytc-wrapper .col-xs-10,#ytc-wrapper .col-sm-10,#ytc-wrapper .col-md-10,#ytc-wrapper .col-lg-10,#ytc-wrapper .col-xs-11,#ytc-wrapper .col-sm-11,#ytc-wrapper .col-md-11,#ytc-wrapper .col-lg-11,#ytc-wrapper .col-xs-12,#ytc-wrapper .col-sm-12,#ytc-wrapper .col-md-12,#ytc-wrapper .col-lg-12{position:relative;min-height:1px;padding-left:7px!important;padding-right:7px!important}#ytc-wrapper .col-xs-1,#ytc-wrapper .col-xs-2,#ytc-wrapper .col-xs-3,#ytc-wrapper .col-xs-4,#ytc-wrapper .col-xs-5,#ytc-wrapper .col-xs-6,#ytc-wrapper .col-xs-7,#ytc-wrapper .col-xs-8,#ytc-wrapper .col-xs-9,#ytc-wrapper .col-xs-10,#ytc-wrapper .col-xs-11,#ytc-wrapper .col-xs-12{float:left}#ytc-wrapper .col-xs-12{width:100%}#ytc-wrapper .col-xs-11{width:91.66666667%}#ytc-wrapper .col-xs-10{width:83.33333333%}#ytc-wrapper .col-xs-9{width:75%}#ytc-wrapper .col-xs-8{width:66.66666667%}#ytc-wrapper .col-xs-7{width:58.33333333%}#ytc-wrapper .col-xs-6{width:50%}#ytc-wrapper .col-xs-5{width:41.66666667%}#ytc-wrapper .col-xs-4{width:33.33333333%}#ytc-wrapper .col-xs-3{width:25%}#ytc-wrapper .col-xs-2-4{width:20%}#ytc-wrapper .col-xs-2{width:16.66666667%}#ytc-wrapper .col-xs-1-7{width:14.28571429%}#ytc-wrapper .col-xs-1-5{width:12.5%}#ytc-wrapper .col-xs-1-3{width:11.11111111%}#ytc-wrapper .col-xs-1-2{width:10%}#ytc-wrapper .col-xs-1-1{width:9.09090909%}#ytc-wrapper .col-xs-1{width:8.33333333%}@media (min-width:768px){#ytc-wrapper .col-sm-1,#ytc-wrapper .col-sm-2,#ytc-wrapper .col-sm-3,#ytc-wrapper .col-sm-4,#ytc-wrapper .col-sm-5,#ytc-wrapper .col-sm-6,#ytc-wrapper .col-sm-7,#ytc-wrapper .col-sm-8,#ytc-wrapper .col-sm-9,#ytc-wrapper .col-sm-10,#ytc-wrapper .col-sm-11,#ytc-wrapper .col-sm-12{float:left}#ytc-wrapper .col-sm-12{width:100%}#ytc-wrapper .col-sm-11{width:91.66666667%}#ytc-wrapper .col-sm-10{width:83.33333333%}#ytc-wrapper .col-sm-9{width:75%}#ytc-wrapper .col-sm-8{width:66.66666667%}#ytc-wrapper .col-sm-7{width:58.33333333%}#ytc-wrapper .col-sm-6{width:50%}#ytc-wrapper .col-sm-5{width:41.66666667%}#ytc-wrapper .col-sm-4{width:33.33333333%}#ytc-wrapper .col-sm-3{width:25%}#ytc-wrapper .col-sm-2-4{width:20%}#ytc-wrapper .col-sm-2{width:16.66666667%}#ytc-wrapper .col-sm-1-7{width:14.28571429%}#ytc-wrapper .col-sm-1-5{width:12.5%}#ytc-wrapper .col-sm-1-3{width:11.11111111%}#ytc-wrapper .col-sm-1-2{width:10%}#ytc-wrapper .col-sm-1-1{width:9.09090909%}#ytc-wrapper .col-sm-1{width:8.33333333%}}@media (min-width:992px){#ytc-wrapper .col-md-1,#ytc-wrapper .col-md-2,#ytc-wrapper .col-md-3,#ytc-wrapper .col-md-4,#ytc-wrapper .col-md-5,#ytc-wrapper .col-md-6,#ytc-wrapper .col-md-7,#ytc-wrapper .col-md-8,#ytc-wrapper .col-md-9,#ytc-wrapper .col-md-10,#ytc-wrapper .col-md-11,#ytc-wrapper .col-md-12{float:left}#ytc-wrapper .col-md-12{width:100%}#ytc-wrapper .col-md-11{width:91.66666667%}#ytc-wrapper .col-md-10{width:83.33333333%}#ytc-wrapper .col-md-9{width:75%}#ytc-wrapper .col-md-8{width:66.66666667%}#ytc-wrapper .col-md-7{width:58.33333333%}#ytc-wrapper .col-md-6{width:50%}#ytc-wrapper .col-md-5{width:41.66666667%}#ytc-wrapper .col-md-4{width:33.33333333%}#ytc-wrapper .col-md-3{width:25%}#ytc-wrapper .col-md-2-4{width:20%}#ytc-wrapper .col-md-2{width:16.66666667%}#ytc-wrapper .col-md-1-7{width:14.28571429%}#ytc-wrapper .col-md-1-5{width:12.5%}#ytc-wrapper .col-md-1-3{width:11.11111111%}#ytc-wrapper .col-md-1-2{width:10%}#ytc-wrapper .col-md-1-1{width:9.09090909%}#ytc-wrapper .col-md-1{width:8.33333333%}}@media (min-width:1200px){#ytc-wrapper .col-lg-1,#ytc-wrapper .col-lg-2,#ytc-wrapper .col-lg-3,#ytc-wrapper .col-lg-4,#ytc-wrapper .col-lg-5,#ytc-wrapper .col-lg-6,#ytc-wrapper .col-lg-7,#ytc-wrapper .col-lg-8,#ytc-wrapper .col-lg-9,#ytc-wrapper .col-lg-10,#ytc-wrapper .col-lg-11,#ytc-wrapper .col-lg-12{float:left}#ytc-wrapper .col-lg-12{width:100%}#ytc-wrapper .col-lg-11{width:91.66666667%}#ytc-wrapper .col-lg-10{width:83.33333333%}#ytc-wrapper .col-lg-9{width:75%}#ytc-wrapper .col-lg-8{width:66.66666667%}#ytc-wrapper .col-lg-7{width:58.33333333%}#ytc-wrapper .col-lg-6{width:50%}#ytc-wrapper .col-lg-5{width:41.66666667%}#ytc-wrapper .col-lg-4{width:33.33333333%}#ytc-wrapper .col-lg-3{width:25%}#ytc-wrapper .col-lg-2-4{width:20%}#ytc-wrapper .col-lg-2{width:16.66666667%}#ytc-wrapper .col-lg-1-7{width:14.28571429%}#ytc-wrapper .col-lg-1-5{width:12.5%}#ytc-wrapper .col-lg-1-3{width:11.11111111%}#ytc-wrapper .col-lg-1-2{width:10%}#ytc-wrapper .col-lg-1-1{width:9.09090909%}#ytc-wrapper .col-lg-1{width:8.33333333%}}#ytc-wrapper .embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}#ytc-wrapper .embed-responsive .embed-responsive-item,#ytc-wrapper .embed-responsive iframe,#ytc-wrapper .embed-responsive embed,#ytc-wrapper .embed-responsive object,#ytc-wrapper .embed-responsive video{position:absolute;top:0;left:0;bottom:0;height:100%;width:100%;border:0}#ytc-wrapper .embed-responsive-16by9{padding-bottom:56.25%}#ytc-wrapper .embed-responsive-4by3{padding-bottom:75%}#ytc-wrapper .clearfix:before,#ytc-wrapper .clearfix:after,#ytc-wrapper .container:before,#ytc-wrapper .container:after,#ytc-wrapper .container-fluid:before,#ytc-wrapper .container-fluid:after,#ytc-wrapper .row:before,#ytc-wrapper .row:after{content:" ";display:table}#ytc-wrapper .clearfix:after,#ytc-wrapper .container:after,#ytc-wrapper .container-fluid:after,#ytc-wrapper .row:after{clear:both}#ytc-wrapper .center-block{display:block;margin-left:auto;margin-right:auto}#ytc-wrapper .pull-right{float:right!important}#ytc-wrapper .pull-left{float:left!important}#ytc-wrapper .hide{display:none!important}#ytc-wrapper .show{display:block!important}#ytc-wrapper .invisible{visibility:hidden}#ytc-wrapper .text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}#ytc-wrapper .hidden{display:none!important}#ytc-wrapper .affix{position:fixed}@-ms-viewport{width:device-width}#ytc-wrapper .visible-xs,#ytc-wrapper .visible-sm,#ytc-wrapper .visible-md,#ytc-wrapper .visible-lg{display:none!important}#ytc-wrapper .visible-xs-block,#ytc-wrapper .visible-xs-inline,#ytc-wrapper .visible-xs-inline-block,#ytc-wrapper .visible-sm-block,#ytc-wrapper .visible-sm-inline,#ytc-wrapper .visible-sm-inline-block,#ytc-wrapper .visible-md-block,#ytc-wrapper .visible-md-inline,#ytc-wrapper .visible-md-inline-block,#ytc-wrapper .visible-lg-block,#ytc-wrapper .visible-lg-inline,#ytc-wrapper .visible-lg-inline-block{display:none!important}@media (max-width:767px){#ytc-wrapper .visible-xs{display:block!important}#ytc-wrapper table.visible-xs{display:table!important}#ytc-wrapper tr.visible-xs{display:table-row!important}#ytc-wrapper th.visible-xs,#ytc-wrapper td.visible-xs{display:table-cell!important}}@media (max-width:767px){#ytc-wrapper .visible-xs-block{display:block!important}}@media (max-width:767px){#ytc-wrapper .visible-xs-inline{display:inline!important}}@media (max-width:767px){#ytc-wrapper .visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px) and (max-width:991px){#ytc-wrapper .visible-sm{display:block!important}#ytc-wrapper table.visible-sm{display:table!important}#ytc-wrapper tr.visible-sm{display:table-row!important}#ytc-wrapper th.visible-sm,#ytc-wrapper td.visible-sm{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){#ytc-wrapper .visible-sm-block{display:block!important}}@media (min-width:768px) and (max-width:991px){#ytc-wrapper .visible-sm-inline{display:inline!important}}@media (min-width:768px) and (max-width:991px){#ytc-wrapper .visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px) and (max-width:1199px){#ytc-wrapper .visible-md{display:block!important}#ytc-wrapper table.visible-md{display:table!important}#ytc-wrapper tr.visible-md{display:table-row!important}#ytc-wrapper th.visible-md,#ytc-wrapper td.visible-md{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){#ytc-wrapper .visible-md-block{display:block!important}}@media (min-width:992px) and (max-width:1199px){#ytc-wrapper .visible-md-inline{display:inline!important}}@media (min-width:992px) and (max-width:1199px){#ytc-wrapper .visible-md-inline-block{display:inline-block!important}}@media (min-width:1200px){#ytc-wrapper .visible-lg{display:block!important}#ytc-wrapper table.visible-lg{display:table!important}#ytc-wrapper tr.visible-lg{display:table-row!important}#ytc-wrapper th.visible-lg,#ytc-wrapper td.visible-lg{display:table-cell!important}}@media (min-width:1200px){#ytc-wrapper .visible-lg-block{display:block!important}}@media (min-width:1200px){#ytc-wrapper .visible-lg-inline{display:inline!important}}@media (min-width:1200px){#ytc-wrapper .visible-lg-inline-block{display:inline-block!important}}@media (max-width:767px){#ytc-wrapper .hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){#ytc-wrapper .hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){#ytc-wrapper .hidden-md{display:none!important}}@media (min-width:1200px){#ytc-wrapper .hidden-lg{display:none!important}}#ytc-wrapper .visible-print{display:none!important}@media print{#ytc-wrapper .visible-print{display:block!important}#ytc-wrapper table.visible-print{display:table!important}#ytc-wrapper tr.visible-print{display:table-row!important}#ytc-wrapper th.visible-print,#ytc-wrapper td.visible-print{display:table-cell!important}}#ytc-wrapper .visible-print-block{display:none!important}@media print{#ytc-wrapper .visible-print-block{display:block!important}}#ytc-wrapper .visible-print-inline{display:none!important}@media print{#ytc-wrapper .visible-print-inline{display:inline!important}}#ytc-wrapper .visible-print-inline-block{display:none!important}@media print{#ytc-wrapper .visible-print-inline-block{display:inline-block!important}}@media print{#ytc-wrapper .hidden-print{display:none!important}}#ytc-wrapper div{margin:0;padding:0}#ytc-wrapper *{-webkit-box-sizing:border-box!important;box-sizing:border-box!important}#ytc-wrapper :before,#ytc-wrapper :after{-webkit-box-sizing:border-box!important;box-sizing:border-box!important}#ytc-wrapper .container-fluid{padding:0!important}#ytc-wrapper .ytcplayer-wrapper{border:1px solid #999;margin-bottom:14px}#ytc-wrapper .ytcplayer-wrapper iframe{margin:0!important;padding:0!important}#ytc-wrapper .ytc-thumbnails{padding:0!important}#ytc-wrapper .ytc-thumbnails .ytc-row .ytc-column{margin-left:0!important;margin-right:0!important;-webkit-box-sizing:border-box!important;box-sizing:border-box!important;position:relative!important;margin-bottom:10px}#ytc-wrapper .ytc-thumbnails.ytc-thumb-align-left .ytc-column,#ytc-wrapper .ytc-thumbnails.ytc-thumb-align-right .ytc-column{margin-bottom:20px}#ytc-wrapper .ytc-thumbnails.ytc-thumb-align-left .ytctitle:first-child,#ytc-wrapper .ytc-thumbnails.ytc-thumb-align-right .ytctitle:first-child{margin:0 0 10px 0}#ytc-wrapper .ytc-thumbnails a.ytcthumb{padding-bottom:55%!important}#ytc-wrapper .ytc-thumbnails.ytc-thumb4x3 a.ytcthumb{padding-bottom:75%!important}#ytc-wrapper .ytc-thumbnails a.ytcthumb{display:block!important;border:1px solid #999;position:relative!important;line-height:0!important;width:100%!important;padding-top:0!important;padding-left:0!important;padding-right:0!important;margin:0!important;height:0!important;overflow:hidden!important;background-size:cover!important;background-position:center!important}#ytc-wrapper .ytc-thumbnails a.ytcthumb:hover{opacity:.75}#ytc-wrapper .ytc-thumbnails a.ytcthumb .ytcplay{background:url(img/play.png) no-repeat!important;background-position:-9999px -9999px!important;position:absolute!important;width:100%!important;height:100%!important}#ytc-wrapper .ytc-thumbnails a.ytcthumb:hover .ytcplay{background-position:center center!important}#ytc-wrapper .ytc-thumbnails .private{background:#262626;background-image:-webkit-gradient(linear, left top, left bottom, color-stop(0, #383838), to(#131313));background-image:-webkit-linear-gradient(top, #383838 0, #131313 100%);background-image:linear-gradient(to bottom,#383838 0,#131313 100%)}#ytc-wrapper .ytc-thumbnails .private a{background-size:38%!important;background-repeat:no-repeat!important;background-position:50% 76%!important}#ytc-wrapper .ytc-thumbnails .private a .private-text{width:100%!important;height:100%!important;padding-top:10px;position:absolute;text-align:center}#ytc-wrapper .ytc-thumbnails p{display:none!important}#ytc-wrapper .ytc-thumbnails .ytc-pagination{margin-top:16px}#ytc-wrapper .ytc-thumbnails .ytc-pagination div.ytc-next{text-align:right}#ytc-wrapper .ytc-thumbnails .ytc-pagination a{cursor:pointer}#ytc-wrapper .ytc-thumbnails .ytc-pagination .ytc-numeration{text-align:center}#ytc-wrapper .ytc-links{margin-top:16px}#ytc-wrapper .ytc-links .ytc-promotion a{font-size:10px;opacity:.3}#ytc-wrapper .ytc-links .ytc-youtubelink{text-align:right}
1
+ #ytc-wrapper .col-xs-2-4,#ytc-wrapper .col-sm-2-4,#ytc-wrapper .col-md-2-4,#ytc-wrapper .col-lg-2-4{position:relative;min-height:1px;padding-right:7px;padding-left:7px}#ytc-wrapper .col-xs-2-4{float:left}@media (min-width:768px){#ytc-wrapper .col-sm-2-4{float:left}}@media (min-width:992px){#ytc-wrapper .col-md-2-4{float:left}}@media (min-width:1200px){#ytc-wrapper .col-lg-2-4{float:left}}#ytc-wrapper .col-xs-1-7,#ytc-wrapper .col-sm-1-7,#ytc-wrapper .col-md-1-7,#ytc-wrapper .col-lg-1-7{position:relative;min-height:1px;padding-right:7px;padding-left:7px}#ytc-wrapper .col-xs-1-7{float:left}@media (min-width:768px){#ytc-wrapper .col-sm-1-7{float:left}}@media (min-width:992px){#ytc-wrapper .col-md-1-7{float:left}}@media (min-width:1200px){#ytc-wrapper .col-lg-1-7{float:left}}#ytc-wrapper .col-xs-1-5,#ytc-wrapper .col-sm-1-5,#ytc-wrapper .col-md-1-5,#ytc-wrapper .col-lg-1-5{position:relative;min-height:1px;padding-right:7px;padding-left:7px}#ytc-wrapper .col-xs-1-5{float:left}@media (min-width:768px){#ytc-wrapper .col-sm-1-5{float:left}}@media (min-width:992px){#ytc-wrapper .col-md-1-5{float:left}}@media (min-width:1200px){#ytc-wrapper .col-lg-1-5{float:left}}#ytc-wrapper .col-xs-1-3,#ytc-wrapper .col-sm-1-3,#ytc-wrapper .col-md-1-3,#ytc-wrapper .col-lg-1-3{position:relative;min-height:1px;padding-right:7px;padding-left:7px}#ytc-wrapper .col-xs-1-3{float:left}@media (min-width:768px){#ytc-wrapper .col-sm-1-3{float:left}}@media (min-width:992px){#ytc-wrapper .col-md-1-3{float:left}}@media (min-width:1200px){#ytc-wrapper .col-lg-1-3{float:left}}#ytc-wrapper .col-xs-1-2,#ytc-wrapper .col-sm-1-2,#ytc-wrapper .col-md-1-2,#ytc-wrapper .col-lg-1-2{position:relative;min-height:1px;padding-right:7px;padding-left:7px}#ytc-wrapper .col-xs-1-2{float:left}@media (min-width:768px){#ytc-wrapper .col-sm-1-2{float:left}}@media (min-width:992px){#ytc-wrapper .col-md-1-2{float:left}}@media (min-width:1200px){#ytc-wrapper .col-lg-1-2{float:left}}#ytc-wrapper .col-xs-1-1,#ytc-wrapper .col-sm-1-1,#ytc-wrapper .col-md-1-1,#ytc-wrapper .col-lg-1-1{position:relative;min-height:1px;padding-right:7px;padding-left:7px}#ytc-wrapper .col-xs-1-1{float:left}@media (min-width:768px){#ytc-wrapper .col-sm-1-1{float:left}}@media (min-width:992px){#ytc-wrapper .col-md-1-1{float:left}}@media (min-width:1200px){#ytc-wrapper .col-lg-1-1{float:left}}#ytc-wrapper audio,#ytc-wrapper canvas,#ytc-wrapper progress,#ytc-wrapper video{display:inline-block;vertical-align:baseline}#ytc-wrapper a{background-color:transparent}#ytc-wrapper a:active,#ytc-wrapper a:hover{outline:0}#ytc-wrapper b,#ytc-wrapper strong{font-weight:700}#ytc-wrapper small{font-size:80%}#ytc-wrapper img{border:0}#ytc-wrapper svg:not(:root){overflow:hidden}#ytc-wrapper figure{margin:1em 40px}#ytc-wrapper .container{margin-right:auto;margin-left:auto;padding-left:7px!important;padding-right:7px!important}@media (min-width:768px){#ytc-wrapper .container{width:734px}}@media (min-width:992px){#ytc-wrapper .container{width:954px}}@media (min-width:1200px){#ytc-wrapper .container{width:1154px}}#ytc-wrapper .container-fluid{margin-right:auto;margin-left:auto;padding-left:7px!important;padding-right:7px!important}#ytc-wrapper .row{margin-left:-7px!important;margin-right:-7px!important}#ytc-wrapper .col-xs-1,#ytc-wrapper .col-sm-1,#ytc-wrapper .col-md-1,#ytc-wrapper .col-lg-1,#ytc-wrapper .col-xs-2,#ytc-wrapper .col-sm-2,#ytc-wrapper .col-md-2,#ytc-wrapper .col-lg-2,#ytc-wrapper .col-xs-3,#ytc-wrapper .col-sm-3,#ytc-wrapper .col-md-3,#ytc-wrapper .col-lg-3,#ytc-wrapper .col-xs-4,#ytc-wrapper .col-sm-4,#ytc-wrapper .col-md-4,#ytc-wrapper .col-lg-4,#ytc-wrapper .col-xs-5,#ytc-wrapper .col-sm-5,#ytc-wrapper .col-md-5,#ytc-wrapper .col-lg-5,#ytc-wrapper .col-xs-6,#ytc-wrapper .col-sm-6,#ytc-wrapper .col-md-6,#ytc-wrapper .col-lg-6,#ytc-wrapper .col-xs-7,#ytc-wrapper .col-sm-7,#ytc-wrapper .col-md-7,#ytc-wrapper .col-lg-7,#ytc-wrapper .col-xs-8,#ytc-wrapper .col-sm-8,#ytc-wrapper .col-md-8,#ytc-wrapper .col-lg-8,#ytc-wrapper .col-xs-9,#ytc-wrapper .col-sm-9,#ytc-wrapper .col-md-9,#ytc-wrapper .col-lg-9,#ytc-wrapper .col-xs-10,#ytc-wrapper .col-sm-10,#ytc-wrapper .col-md-10,#ytc-wrapper .col-lg-10,#ytc-wrapper .col-xs-11,#ytc-wrapper .col-sm-11,#ytc-wrapper .col-md-11,#ytc-wrapper .col-lg-11,#ytc-wrapper .col-xs-12,#ytc-wrapper .col-sm-12,#ytc-wrapper .col-md-12,#ytc-wrapper .col-lg-12{position:relative;min-height:1px;padding-left:7px!important;padding-right:7px!important}#ytc-wrapper .col-xs-1,#ytc-wrapper .col-xs-2,#ytc-wrapper .col-xs-3,#ytc-wrapper .col-xs-4,#ytc-wrapper .col-xs-5,#ytc-wrapper .col-xs-6,#ytc-wrapper .col-xs-7,#ytc-wrapper .col-xs-8,#ytc-wrapper .col-xs-9,#ytc-wrapper .col-xs-10,#ytc-wrapper .col-xs-11,#ytc-wrapper .col-xs-12{float:left}#ytc-wrapper .col-xs-12{width:100%}#ytc-wrapper .col-xs-11{width:91.66666667%}#ytc-wrapper .col-xs-10{width:83.33333333%}#ytc-wrapper .col-xs-9{width:75%}#ytc-wrapper .col-xs-8{width:66.66666667%}#ytc-wrapper .col-xs-7{width:58.33333333%}#ytc-wrapper .col-xs-6{width:50%}#ytc-wrapper .col-xs-5{width:41.66666667%}#ytc-wrapper .col-xs-4{width:33.33333333%}#ytc-wrapper .col-xs-3{width:25%}#ytc-wrapper .col-xs-2-4{width:20%}#ytc-wrapper .col-xs-2{width:16.66666667%}#ytc-wrapper .col-xs-1-7{width:14.28571429%}#ytc-wrapper .col-xs-1-5{width:12.5%}#ytc-wrapper .col-xs-1-3{width:11.11111111%}#ytc-wrapper .col-xs-1-2{width:10%}#ytc-wrapper .col-xs-1-1{width:9.09090909%}#ytc-wrapper .col-xs-1{width:8.33333333%}@media (min-width:768px){#ytc-wrapper .col-sm-1,#ytc-wrapper .col-sm-2,#ytc-wrapper .col-sm-3,#ytc-wrapper .col-sm-4,#ytc-wrapper .col-sm-5,#ytc-wrapper .col-sm-6,#ytc-wrapper .col-sm-7,#ytc-wrapper .col-sm-8,#ytc-wrapper .col-sm-9,#ytc-wrapper .col-sm-10,#ytc-wrapper .col-sm-11,#ytc-wrapper .col-sm-12{float:left}#ytc-wrapper .col-sm-12{width:100%}#ytc-wrapper .col-sm-11{width:91.66666667%}#ytc-wrapper .col-sm-10{width:83.33333333%}#ytc-wrapper .col-sm-9{width:75%}#ytc-wrapper .col-sm-8{width:66.66666667%}#ytc-wrapper .col-sm-7{width:58.33333333%}#ytc-wrapper .col-sm-6{width:50%}#ytc-wrapper .col-sm-5{width:41.66666667%}#ytc-wrapper .col-sm-4{width:33.33333333%}#ytc-wrapper .col-sm-3{width:25%}#ytc-wrapper .col-sm-2-4{width:20%}#ytc-wrapper .col-sm-2{width:16.66666667%}#ytc-wrapper .col-sm-1-7{width:14.28571429%}#ytc-wrapper .col-sm-1-5{width:12.5%}#ytc-wrapper .col-sm-1-3{width:11.11111111%}#ytc-wrapper .col-sm-1-2{width:10%}#ytc-wrapper .col-sm-1-1{width:9.09090909%}#ytc-wrapper .col-sm-1{width:8.33333333%}}@media (min-width:992px){#ytc-wrapper .col-md-1,#ytc-wrapper .col-md-2,#ytc-wrapper .col-md-3,#ytc-wrapper .col-md-4,#ytc-wrapper .col-md-5,#ytc-wrapper .col-md-6,#ytc-wrapper .col-md-7,#ytc-wrapper .col-md-8,#ytc-wrapper .col-md-9,#ytc-wrapper .col-md-10,#ytc-wrapper .col-md-11,#ytc-wrapper .col-md-12{float:left}#ytc-wrapper .col-md-12{width:100%}#ytc-wrapper .col-md-11{width:91.66666667%}#ytc-wrapper .col-md-10{width:83.33333333%}#ytc-wrapper .col-md-9{width:75%}#ytc-wrapper .col-md-8{width:66.66666667%}#ytc-wrapper .col-md-7{width:58.33333333%}#ytc-wrapper .col-md-6{width:50%}#ytc-wrapper .col-md-5{width:41.66666667%}#ytc-wrapper .col-md-4{width:33.33333333%}#ytc-wrapper .col-md-3{width:25%}#ytc-wrapper .col-md-2-4{width:20%}#ytc-wrapper .col-md-2{width:16.66666667%}#ytc-wrapper .col-md-1-7{width:14.28571429%}#ytc-wrapper .col-md-1-5{width:12.5%}#ytc-wrapper .col-md-1-3{width:11.11111111%}#ytc-wrapper .col-md-1-2{width:10%}#ytc-wrapper .col-md-1-1{width:9.09090909%}#ytc-wrapper .col-md-1{width:8.33333333%}}@media (min-width:1200px){#ytc-wrapper .col-lg-1,#ytc-wrapper .col-lg-2,#ytc-wrapper .col-lg-3,#ytc-wrapper .col-lg-4,#ytc-wrapper .col-lg-5,#ytc-wrapper .col-lg-6,#ytc-wrapper .col-lg-7,#ytc-wrapper .col-lg-8,#ytc-wrapper .col-lg-9,#ytc-wrapper .col-lg-10,#ytc-wrapper .col-lg-11,#ytc-wrapper .col-lg-12{float:left}#ytc-wrapper .col-lg-12{width:100%}#ytc-wrapper .col-lg-11{width:91.66666667%}#ytc-wrapper .col-lg-10{width:83.33333333%}#ytc-wrapper .col-lg-9{width:75%}#ytc-wrapper .col-lg-8{width:66.66666667%}#ytc-wrapper .col-lg-7{width:58.33333333%}#ytc-wrapper .col-lg-6{width:50%}#ytc-wrapper .col-lg-5{width:41.66666667%}#ytc-wrapper .col-lg-4{width:33.33333333%}#ytc-wrapper .col-lg-3{width:25%}#ytc-wrapper .col-lg-2-4{width:20%}#ytc-wrapper .col-lg-2{width:16.66666667%}#ytc-wrapper .col-lg-1-7{width:14.28571429%}#ytc-wrapper .col-lg-1-5{width:12.5%}#ytc-wrapper .col-lg-1-3{width:11.11111111%}#ytc-wrapper .col-lg-1-2{width:10%}#ytc-wrapper .col-lg-1-1{width:9.09090909%}#ytc-wrapper .col-lg-1{width:8.33333333%}}#ytc-wrapper .embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}#ytc-wrapper .embed-responsive .embed-responsive-item,#ytc-wrapper .embed-responsive iframe,#ytc-wrapper .embed-responsive embed,#ytc-wrapper .embed-responsive object,#ytc-wrapper .embed-responsive video{position:absolute;top:0;left:0;bottom:0;height:100%;width:100%;border:0}#ytc-wrapper .embed-responsive-16by9{padding-bottom:56.25%}#ytc-wrapper .embed-responsive-4by3{padding-bottom:75%}#ytc-wrapper .clearfix:before,#ytc-wrapper .clearfix:after,#ytc-wrapper .container:before,#ytc-wrapper .container:after,#ytc-wrapper .container-fluid:before,#ytc-wrapper .container-fluid:after,#ytc-wrapper .row:before,#ytc-wrapper .row:after{content:" ";display:table}#ytc-wrapper .clearfix:after,#ytc-wrapper .container:after,#ytc-wrapper .container-fluid:after,#ytc-wrapper .row:after{clear:both}#ytc-wrapper .center-block{display:block;margin-left:auto;margin-right:auto}#ytc-wrapper .pull-right{float:right!important}#ytc-wrapper .pull-left{float:left!important}#ytc-wrapper .hide{display:none!important}#ytc-wrapper .show{display:block!important}#ytc-wrapper .invisible{visibility:hidden}#ytc-wrapper .text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}#ytc-wrapper .hidden{display:none!important}#ytc-wrapper .affix{position:fixed}@-ms-viewport{width:device-width}#ytc-wrapper .visible-xs,#ytc-wrapper .visible-sm,#ytc-wrapper .visible-md,#ytc-wrapper .visible-lg{display:none!important}#ytc-wrapper .visible-xs-block,#ytc-wrapper .visible-xs-inline,#ytc-wrapper .visible-xs-inline-block,#ytc-wrapper .visible-sm-block,#ytc-wrapper .visible-sm-inline,#ytc-wrapper .visible-sm-inline-block,#ytc-wrapper .visible-md-block,#ytc-wrapper .visible-md-inline,#ytc-wrapper .visible-md-inline-block,#ytc-wrapper .visible-lg-block,#ytc-wrapper .visible-lg-inline,#ytc-wrapper .visible-lg-inline-block{display:none!important}@media (max-width:767px){#ytc-wrapper .visible-xs{display:block!important}#ytc-wrapper table.visible-xs{display:table!important}#ytc-wrapper tr.visible-xs{display:table-row!important}#ytc-wrapper th.visible-xs,#ytc-wrapper td.visible-xs{display:table-cell!important}}@media (max-width:767px){#ytc-wrapper .visible-xs-block{display:block!important}}@media (max-width:767px){#ytc-wrapper .visible-xs-inline{display:inline!important}}@media (max-width:767px){#ytc-wrapper .visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px) and (max-width:991px){#ytc-wrapper .visible-sm{display:block!important}#ytc-wrapper table.visible-sm{display:table!important}#ytc-wrapper tr.visible-sm{display:table-row!important}#ytc-wrapper th.visible-sm,#ytc-wrapper td.visible-sm{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){#ytc-wrapper .visible-sm-block{display:block!important}}@media (min-width:768px) and (max-width:991px){#ytc-wrapper .visible-sm-inline{display:inline!important}}@media (min-width:768px) and (max-width:991px){#ytc-wrapper .visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px) and (max-width:1199px){#ytc-wrapper .visible-md{display:block!important}#ytc-wrapper table.visible-md{display:table!important}#ytc-wrapper tr.visible-md{display:table-row!important}#ytc-wrapper th.visible-md,#ytc-wrapper td.visible-md{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){#ytc-wrapper .visible-md-block{display:block!important}}@media (min-width:992px) and (max-width:1199px){#ytc-wrapper .visible-md-inline{display:inline!important}}@media (min-width:992px) and (max-width:1199px){#ytc-wrapper .visible-md-inline-block{display:inline-block!important}}@media (min-width:1200px){#ytc-wrapper .visible-lg{display:block!important}#ytc-wrapper table.visible-lg{display:table!important}#ytc-wrapper tr.visible-lg{display:table-row!important}#ytc-wrapper th.visible-lg,#ytc-wrapper td.visible-lg{display:table-cell!important}}@media (min-width:1200px){#ytc-wrapper .visible-lg-block{display:block!important}}@media (min-width:1200px){#ytc-wrapper .visible-lg-inline{display:inline!important}}@media (min-width:1200px){#ytc-wrapper .visible-lg-inline-block{display:inline-block!important}}@media (max-width:767px){#ytc-wrapper .hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){#ytc-wrapper .hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){#ytc-wrapper .hidden-md{display:none!important}}@media (min-width:1200px){#ytc-wrapper .hidden-lg{display:none!important}}#ytc-wrapper .visible-print{display:none!important}@media print{#ytc-wrapper .visible-print{display:block!important}#ytc-wrapper table.visible-print{display:table!important}#ytc-wrapper tr.visible-print{display:table-row!important}#ytc-wrapper th.visible-print,#ytc-wrapper td.visible-print{display:table-cell!important}}#ytc-wrapper .visible-print-block{display:none!important}@media print{#ytc-wrapper .visible-print-block{display:block!important}}#ytc-wrapper .visible-print-inline{display:none!important}@media print{#ytc-wrapper .visible-print-inline{display:inline!important}}#ytc-wrapper .visible-print-inline-block{display:none!important}@media print{#ytc-wrapper .visible-print-inline-block{display:inline-block!important}}@media print{#ytc-wrapper .hidden-print{display:none!important}}#ytc-wrapper div{margin:0;padding:0}#ytc-wrapper a{word-break:break-word}#ytc-wrapper *{-webkit-box-sizing:border-box!important;box-sizing:border-box!important;white-space:normal}#ytc-wrapper :before,#ytc-wrapper :after{-webkit-box-sizing:border-box!important;box-sizing:border-box!important}#ytc-wrapper .container-fluid{padding:0!important}#ytc-wrapper .ytcplayer-wrapper{border:1px solid #999;margin-bottom:14px}#ytc-wrapper .ytcplayer-wrapper iframe{margin:0!important;padding:0!important}#ytc-wrapper .ytcplayercontent{margin-bottom:20px}#ytc-wrapper time{font-size:small}#ytc-wrapper .ytc-thumbnails{padding:0!important}#ytc-wrapper .ytc-thumbnails .ytc-row .ytc-column{margin-left:0!important;margin-right:0!important;-webkit-box-sizing:border-box!important;box-sizing:border-box!important;position:relative!important;margin-bottom:10px}#ytc-wrapper .ytc-thumbnails.ytc-thumb-align-left .ytc-column,#ytc-wrapper .ytc-thumbnails.ytc-thumb-align-right .ytc-column{margin-bottom:20px}#ytc-wrapper .ytc-thumbnails.ytc-thumb-align-left .ytctitle:first-child,#ytc-wrapper .ytc-thumbnails.ytc-thumb-align-right .ytctitle:first-child{margin:0 0 10px 0}#ytc-wrapper .ytc-thumbnails .ytcthumb-cont{position:relative}#ytc-wrapper .ytc-thumbnails .video-time{margin-top:0;margin-right:0;padding:0 4px;font-weight:700;font-size:11px;background-color:#000;color:#fff!important;height:14px;line-height:14px;opacity:.75;filter:alpha(opacity=75);display:-moz-inline-stack;vertical-align:top;display:inline-block;position:absolute;right:2px;bottom:2px;pointer-events:none}#ytc-wrapper .ytc-thumbnails a.ytcthumb{padding-bottom:55%!important}#ytc-wrapper .ytc-thumbnails.ytc-thumb4x3 a.ytcthumb{padding-bottom:75%!important}#ytc-wrapper .ytc-thumbnails a.ytcthumb{display:block!important;border:1px solid #999;position:relative!important;line-height:0!important;width:100%!important;padding-top:0!important;padding-left:0!important;padding-right:0!important;margin:0!important;height:0!important;overflow:hidden!important;background-size:cover!important;background-position:center!important}#ytc-wrapper .ytc-thumbnails a.ytcthumb:hover{opacity:.75}#ytc-wrapper .ytc-thumbnails a.ytcthumb .ytcplay{background:url(img/play.png) no-repeat!important;background-position:-9999px -9999px!important;position:absolute!important;width:100%!important;height:100%!important}#ytc-wrapper .ytc-thumbnails a.ytcthumb:hover .ytcplay{background-position:center center!important}#ytc-wrapper .ytc-thumbnails .private{background:#262626;background-image:-webkit-gradient(linear, left top, left bottom, color-stop(0, #383838), to(#131313));background-image:-webkit-linear-gradient(top, #383838 0, #131313 100%);background-image:linear-gradient(to bottom,#383838 0,#131313 100%)}#ytc-wrapper .ytc-thumbnails .private a{background-size:38%!important;background-repeat:no-repeat!important;background-position:50% 76%!important}#ytc-wrapper .ytc-thumbnails .private a .private-text{width:100%!important;height:100%!important;padding-top:10px;position:absolute;text-align:center}#ytc-wrapper .ytc-thumbnails p{display:none!important}#ytc-wrapper .ytc-thumbnails .ytc-pagination{margin-top:16px}#ytc-wrapper .ytc-thumbnails .ytc-pagination div.ytc-next{text-align:right}#ytc-wrapper .ytc-thumbnails .ytc-pagination a{cursor:pointer}#ytc-wrapper .ytc-thumbnails .ytc-pagination .ytc-numeration{text-align:center}#ytc-wrapper .ytc-links{margin-top:16px}#ytc-wrapper .ytc-links .ytc-promotion a{font-size:10px;opacity:.3}#ytc-wrapper .ytc-links .ytc-youtubelink{text-align:right}
templates/admin_tabs.php CHANGED
@@ -21,12 +21,14 @@
21
  */
22
  ?>
23
  <div id="tabs-<?php echo $this->id; ?>-1" class="ytchgtabs-content tabs-1">
24
-
25
- <p class="<?php echo $this->get_field_id( 'ytchag_key' ); ?>">
26
- <label for="<?php echo $this->get_field_id( 'ytchag_key' ); ?>"><?php _e( 'YouTube API Key:', 'youtube-channel-gallery' ); ?></label>
27
- <input class="widefat wideinfo" id="<?php echo $this->get_field_id( 'ytchag_key' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_key' ); ?>" type="text" value="<?php echo esc_attr( $ytchag_key); ?>" />
28
- <span class="ytchag_info" title="<?php _e( 'Get your own YouTube API Key and put here.', 'youtube-channel-gallery' ); ?>">?</span>
29
- </p>
 
 
30
 
31
  <p>
32
  <label for="<?php echo $this->get_field_id( 'ytchag_feed' ); ?>"><?php _e( 'Video feed type:', 'youtube-channel-gallery' ); ?></label>
@@ -178,8 +180,58 @@
178
  </div>
179
 
180
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
181
  <p class="<?php echo $this->get_field_id( 'ytchag_player_order' ); ?>">
182
- <label for="<?php echo $this->get_field_id( 'ytchag_player_order' ); ?>"><?php _e( 'Order:', 'youtube-channel-gallery' ); ?></label>
183
  <input class="" id="<?php echo $this->get_field_id( 'ytchag_player_order' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_player_order' ); ?>" type="number" min="1" max="10" size="1" value="<?php echo esc_attr( $ytchag_player_order); ?>" />
184
  </p>
185
  </span>
@@ -231,7 +283,7 @@
231
 
232
  <br>
233
  <p class="<?php echo $this->get_field_id( 'ytchag_search_order' ); ?>">
234
- <label for="<?php echo $this->get_field_id( 'ytchag_search_order' ); ?>"><?php _e( 'Order:', 'youtube-channel-gallery' ); ?></label>
235
  <input class="" id="<?php echo $this->get_field_id( 'ytchag_search_order' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_search_order' ); ?>" type="number" min="1" max="10" size="1" value="<?php echo esc_attr( $ytchag_search_order); ?>" />
236
  </p>
237
  </div>
@@ -269,11 +321,11 @@
269
  </p>
270
 
271
 
272
- <div class="row thumbs-cols">
273
  <div class="col-md-12">
274
  <label for="<?php echo $this->get_field_id( 'ytchag_thumb_columns' ); ?>"><?php _e( 'Thumbnail columns:', 'youtube-channel-gallery' ); ?></label>
275
  </div>
276
- <div class="col-md-6">
277
  <div class="table">
278
  <div class="table-row">
279
  <div>
@@ -293,7 +345,7 @@
293
  </div>
294
  </div>
295
  </div>
296
- <div class="col-md-6">
297
  <div class="table">
298
  <div class="table-row">
299
  <div>
@@ -316,11 +368,23 @@
316
  </div>
317
 
318
 
 
 
 
 
 
 
 
 
 
 
 
 
 
319
 
320
- <p>
321
  <fieldset class="ytchg-field-tit-desc">
322
  <legend class="ytchg-tit-desc">
323
- <a href="#"><?php _e( 'Show title or description', 'youtube-channel-gallery' ); ?></a>
324
  </legend>
325
 
326
  <div class="ytchg-title-and-description ytchgtabs-content">
@@ -330,10 +394,19 @@
330
  <input class="checkbox ytchg-tit" type="checkbox" value="1" <?php checked( (bool) $instance['ytchag_title'], true ); ?> id="<?php echo $this->get_field_id( 'ytchag_title' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_title' ); ?>" />
331
  <label for="<?php echo $this->get_field_id( 'ytchag_title' ); ?>"><?php _e( 'Show title', 'youtube-channel-gallery' ); ?></label>
332
  </div>
 
 
 
 
 
 
 
333
  <div class="col-md-6">
334
  <input class="checkbox ytchg-desc" type="checkbox" value="1" <?php checked( (bool) $instance['ytchag_description'], true ); ?> id="<?php echo $this->get_field_id( 'ytchag_description' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_description' ); ?>" />
335
  <label for="<?php echo $this->get_field_id( 'ytchag_description' ); ?>"><?php _e( 'Show description', 'youtube-channel-gallery' ); ?></label>
336
  </div>
 
 
337
  </div>
338
 
339
  <div class="row">
@@ -391,33 +464,43 @@
391
  </div>
392
  </fieldset>
393
 
394
- <input class="checkbox" type="checkbox" value="1" <?php checked( (bool) $instance['ytchag_nofollow'], true ); ?> id="<?php echo $this->get_field_id( 'ytchag_nofollow' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_nofollow' ); ?>" />
395
- <label for="<?php echo $this->get_field_id( 'ytchag_nofollow' ); ?>"><?php _e( 'Add "nofollow" attribute to links', 'youtube-channel-gallery' ); ?></label>
396
- <span class="ytchag_info" title="<?php _e( '"nofollow" attribute provides a way for webmasters to tell search engines "Don\'t follow this specific link."', 'youtube-channel-gallery' ); ?>">?</span>
397
-
398
-
399
- <span class="thumb_window">
400
- </br>
401
- <input class="checkbox" type="checkbox" value="1" <?php checked( (bool) $instance['ytchag_thumb_window'], true ); ?> id="<?php echo $this->get_field_id( 'ytchag_thumb_window' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_thumb_window' ); ?>" />
402
- <label for="<?php echo $this->get_field_id( 'ytchag_thumb_window' ); ?>"><?php _e( 'Open in a new window or tab', 'youtube-channel-gallery' ); ?></label>
403
- </span>
404
- <br>
405
- <br>
406
- <input class="checkbox" type="checkbox" value="1" <?php checked( (bool) $instance['ytchag_thumb_pagination'], true ); ?> id="<?php echo $this->get_field_id( 'ytchag_thumb_pagination' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_thumb_pagination' ); ?>" />
407
- <label for="<?php echo $this->get_field_id( 'ytchag_thumb_pagination' ); ?>"><?php _e( 'Show pagination', 'youtube-channel-gallery' ); ?></label>
408
- <p>
409
- <label><?php _e( 'Order:', 'youtube-channel-gallery' ); ?></label>
410
- <br>
411
- <label for="<?php echo $this->get_field_id( 'ytchag_thumb_order_thumb' ); ?>"><?php _e( 'Thumbnail:', 'youtube-channel-gallery' ); ?></label>
412
- <input size="1" class="" id="<?php echo $this->get_field_id( 'ytchag_thumb_order_thumb' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_thumb_order_thumb' ); ?>" type="number" min="1" max="3" value="<?php echo esc_attr( $ytchag_thumb_order_thumb); ?>" />
413
- <label for="<?php echo $this->get_field_id( 'ytchag_thumb_order_title' ); ?>"><?php _e( 'Title:', 'youtube-channel-gallery' ); ?></label>
414
- <input size="1"class="" id="<?php echo $this->get_field_id( 'ytchag_thumb_order_title' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_thumb_order_title' ); ?>" type="number" min="1" max="3" value="<?php echo esc_attr( $ytchag_thumb_order_title); ?>" />
415
- <label for="<?php echo $this->get_field_id( 'ytchag_thumb_order_desc' ); ?>"><?php _e( 'Description:', 'youtube-channel-gallery' ); ?></label>
416
- <input size="1" class="" id="<?php echo $this->get_field_id( 'ytchag_thumb_order_desc' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_thumb_order_desc' ); ?>" type="number" min="1" max="3" value="<?php echo esc_attr( $ytchag_thumb_order_desc); ?>" />
417
- </p>
418
- </p>
 
 
 
 
 
 
 
 
 
 
419
  <p class="<?php echo $this->get_field_id( 'ytchag_thumb_order' ); ?>">
420
- <label for="<?php echo $this->get_field_id( 'ytchag_thumb_order' ); ?>"><?php _e( 'Order:', 'youtube-channel-gallery' ); ?></label>
421
  <input class="" id="<?php echo $this->get_field_id( 'ytchag_thumb_order' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_thumb_order' ); ?>" type="number" min="1" max="10" size="1" value="<?php echo esc_attr( $ytchag_thumb_order); ?>" />
422
  </p>
423
 
@@ -454,7 +537,7 @@
454
  </p>
455
 
456
  <p class="<?php echo $this->get_field_id( 'ytchag_link_order' ); ?>">
457
- <label for="<?php echo $this->get_field_id( 'ytchag_link_order' ); ?>"><?php _e( 'Order:', 'youtube-channel-gallery' ); ?></label>
458
  <input class="" id="<?php echo $this->get_field_id( 'ytchag_link_order' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_link_order' ); ?>" type="number" min="1" max="3" size="1" value="<?php echo esc_attr( $ytchag_link_order); ?>" />
459
  </p>
460
 
21
  */
22
  ?>
23
  <div id="tabs-<?php echo $this->id; ?>-1" class="ytchgtabs-content tabs-1">
24
+ <div class="row">
25
+ <div class="col-md-12">
26
+ <label for="<?php echo $this->get_field_id( 'ytchag_key' ); ?>"><?php _e( 'YouTube API Key:', 'youtube-channel-gallery' ); ?></label>
27
+ <input class="widefat wideinfo" id="<?php echo $this->get_field_id( 'ytchag_key' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_key' ); ?>" type="text" value="<?php echo esc_attr( $ytchag_key); ?>" />
28
+ <span class="ytchag_info" title="<?php _e( 'Get your own YouTube API Key and put here.', 'youtube-channel-gallery' ); ?>">?</span>
29
+ <div class="info"><?php _e( 'Get <a href="https://console.developers.google.com/" target="_blank">your Google API key</a>. See <a href="http://poselab.com/en/youtube-channel-gallery-help/" target="_blank">help</a>', 'youtube-channel-gallery' ); ?></div>
30
+ </div>
31
+ </div>
32
 
33
  <p>
34
  <label for="<?php echo $this->get_field_id( 'ytchag_feed' ); ?>"><?php _e( 'Video feed type:', 'youtube-channel-gallery' ); ?></label>
180
  </div>
181
 
182
 
183
+ <fieldset class="ytchg-field-tit-desc">
184
+ <legend class="ytchg-tit-desc">
185
+ <a href="#"><?php _e( 'Show additional content', 'youtube-channel-gallery' ); ?></a>
186
+ </legend>
187
+
188
+ <div class="ytchg-title-and-description ytchgtabs-content">
189
+
190
+ <div class="row">
191
+ <div class="col-md-6">
192
+ <input class="checkbox ytchg-tit" type="checkbox" value="1" <?php checked( (bool) $instance['ytchag_player_title'], true ); ?> id="<?php echo $this->get_field_id( 'ytchag_player_title' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_player_title' ); ?>" />
193
+ <label for="<?php echo $this->get_field_id( 'ytchag_player_title' ); ?>"><?php _e( 'Show title', 'youtube-channel-gallery' ); ?></label>
194
+ </div>
195
+ <div class="col-md-6">
196
+ <input class="checkbox ytchg-desc" type="checkbox" value="1" <?php checked( (bool) $instance['ytchag_player_publishedAt'], true ); ?> id="<?php echo $this->get_field_id( 'ytchag_player_publishedAt' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_player_publishedAt' ); ?>" />
197
+ <label for="<?php echo $this->get_field_id( 'ytchag_player_publishedAt' ); ?>"><?php _e( 'Show published date', 'youtube-channel-gallery' ); ?></label>
198
+ </div>
199
+ </div>
200
+
201
+ <div class="row">
202
+ <div class="col-md-6">
203
+ <input class="checkbox ytchg-desc" type="checkbox" value="1" <?php checked( (bool) $instance['ytchag_player_description'], true ); ?> id="<?php echo $this->get_field_id( 'ytchag_player_description' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_player_description' ); ?>" />
204
+ <label for="<?php echo $this->get_field_id( 'ytchag_player_description' ); ?>"><?php _e( 'Show description', 'youtube-channel-gallery' ); ?></label>
205
+ </div>
206
+ <div class="col-md-6">
207
+ </div>
208
+ </div>
209
+
210
+ <div class="row">
211
+ <div class="col-md-6">
212
+ <label for="<?php echo $this->get_field_id( 'ytchag_player_title_tag' ); ?>"><?php _e( 'Title tag:', 'youtube-channel-gallery' ); ?></label>
213
+ <select class="widefat" id="<?php echo $this->get_field_id( 'ytchag_player_title_tag' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_player_title_tag' ); ?>">
214
+ <option value="h1"<?php selected( $instance['ytchag_player_title_tag'], 'h1' ); ?>><?php _e( 'h1', 'youtube-channel-gallery' ); ?></option>
215
+ <option value="h2"<?php selected( $instance['ytchag_player_title_tag'], 'h2' ); ?>><?php _e( 'h2', 'youtube-channel-gallery' ); ?></option>
216
+ <option value="h3"<?php selected( $instance['ytchag_player_title_tag'], 'h3' ); ?>><?php _e( 'h3', 'youtube-channel-gallery' ); ?></option>
217
+ <option value="h4"<?php selected( $instance['ytchag_player_title_tag'], 'h4' ); ?>><?php _e( 'h4', 'youtube-channel-gallery' ); ?></option>
218
+ <option value="h5"<?php selected( $instance['ytchag_player_title_tag'], 'h5' ); ?>><?php _e( 'h5', 'youtube-channel-gallery' ); ?></option>
219
+ <option value="h6"<?php selected( $instance['ytchag_player_title_tag'], 'h6' ); ?>><?php _e( 'h6', 'youtube-channel-gallery' ); ?></option>
220
+ </select>
221
+ </div>
222
+ <div class="col-md-6">
223
+ <label for="<?php echo $this->get_field_id( 'ytchag_player_description_words_number' ); ?>"><?php _e( 'Description words:', 'youtube-channel-gallery' ); ?></label><br>
224
+ <input class="widefat wideinfo" id="<?php echo $this->get_field_id( 'ytchag_player_description_words_number' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_player_description_words_number' ); ?>" type="number" min="1" max="99" size="1" value="<?php echo esc_attr( $ytchag_player_description_words_number ); ?>" />
225
+ <span class="ytchag_info" title="<?php _e( 'Set the maximum number of words that will be displayed of the description. This field is useful when the descriptions of videos in the gallery have different sizes.', 'youtube-channel-gallery' ); ?>">?</span>
226
+ </div>
227
+ </div>
228
+ </div>
229
+ </fieldset>
230
+
231
+
232
+
233
  <p class="<?php echo $this->get_field_id( 'ytchag_player_order' ); ?>">
234
+ <label for="<?php echo $this->get_field_id( 'ytchag_player_order' ); ?>"><?php _e( 'Tab order:', 'youtube-channel-gallery' ); ?></label>
235
  <input class="" id="<?php echo $this->get_field_id( 'ytchag_player_order' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_player_order' ); ?>" type="number" min="1" max="10" size="1" value="<?php echo esc_attr( $ytchag_player_order); ?>" />
236
  </p>
237
  </span>
283
 
284
  <br>
285
  <p class="<?php echo $this->get_field_id( 'ytchag_search_order' ); ?>">
286
+ <label for="<?php echo $this->get_field_id( 'ytchag_search_order' ); ?>"><?php _e( 'Tab order:', 'youtube-channel-gallery' ); ?></label>
287
  <input class="" id="<?php echo $this->get_field_id( 'ytchag_search_order' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_search_order' ); ?>" type="number" min="1" max="10" size="1" value="<?php echo esc_attr( $ytchag_search_order); ?>" />
288
  </p>
289
  </div>
321
  </p>
322
 
323
 
324
+ <div class="row">
325
  <div class="col-md-12">
326
  <label for="<?php echo $this->get_field_id( 'ytchag_thumb_columns' ); ?>"><?php _e( 'Thumbnail columns:', 'youtube-channel-gallery' ); ?></label>
327
  </div>
328
+ <div class="col-md-5">
329
  <div class="table">
330
  <div class="table-row">
331
  <div>
345
  </div>
346
  </div>
347
  </div>
348
+ <div class="col-md-7">
349
  <div class="table">
350
  <div class="table-row">
351
  <div>
368
  </div>
369
 
370
 
371
+ <div class="row">
372
+ <div class="col-md-5">
373
+ <input class="checkbox" type="checkbox" value="1" <?php checked( (bool) $instance['ytchag_duration'], true ); ?> id="<?php echo $this->get_field_id( 'ytchag_duration' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_duration' ); ?>" />
374
+ <label for="<?php echo $this->get_field_id( 'ytchag_duration' ); ?>"><?php _e( 'Show duration', 'youtube-channel-gallery' ); ?></label>
375
+ </div>
376
+ <div class="col-md-7">
377
+ <input class="checkbox" type="checkbox" value="1" <?php checked( (bool) $instance['ytchag_nofollow'], true ); ?> id="<?php echo $this->get_field_id( 'ytchag_nofollow' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_nofollow' ); ?>" />
378
+ <label for="<?php echo $this->get_field_id( 'ytchag_nofollow' ); ?>"><?php _e( 'Add "nofollow" to links', 'youtube-channel-gallery' ); ?></label>
379
+ <span class="ytchag_info" title="<?php _e( str_replace('"','&quot;','"nofollow" attribute provides a way for webmasters to tell search engines "Don\'t follow this specific link."'), 'youtube-channel-gallery' ); ?>">?</span>
380
+ </div>
381
+ </div>
382
+
383
+
384
 
 
385
  <fieldset class="ytchg-field-tit-desc">
386
  <legend class="ytchg-tit-desc">
387
+ <a href="#"><?php _e( 'Show additional content', 'youtube-channel-gallery' ); ?></a>
388
  </legend>
389
 
390
  <div class="ytchg-title-and-description ytchgtabs-content">
394
  <input class="checkbox ytchg-tit" type="checkbox" value="1" <?php checked( (bool) $instance['ytchag_title'], true ); ?> id="<?php echo $this->get_field_id( 'ytchag_title' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_title' ); ?>" />
395
  <label for="<?php echo $this->get_field_id( 'ytchag_title' ); ?>"><?php _e( 'Show title', 'youtube-channel-gallery' ); ?></label>
396
  </div>
397
+ <div class="col-md-6">
398
+ <input class="checkbox ytchg-desc" type="checkbox" value="1" <?php checked( (bool) $instance['ytchag_publishedAt'], true ); ?> id="<?php echo $this->get_field_id( 'ytchag_publishedAt' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_publishedAt' ); ?>" />
399
+ <label for="<?php echo $this->get_field_id( 'ytchag_publishedAt' ); ?>"><?php _e( 'Show published date', 'youtube-channel-gallery' ); ?></label>
400
+ </div>
401
+ </div>
402
+
403
+ <div class="row">
404
  <div class="col-md-6">
405
  <input class="checkbox ytchg-desc" type="checkbox" value="1" <?php checked( (bool) $instance['ytchag_description'], true ); ?> id="<?php echo $this->get_field_id( 'ytchag_description' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_description' ); ?>" />
406
  <label for="<?php echo $this->get_field_id( 'ytchag_description' ); ?>"><?php _e( 'Show description', 'youtube-channel-gallery' ); ?></label>
407
  </div>
408
+ <div class="col-md-6">
409
+ </div>
410
  </div>
411
 
412
  <div class="row">
464
  </div>
465
  </fieldset>
466
 
467
+
468
+ <div class="row">
469
+ <div class="col-md-6 thumb_window">
470
+ <input class="checkbox" type="checkbox" value="1" <?php checked( (bool) $instance['ytchag_thumb_window'], true ); ?> id="<?php echo $this->get_field_id( 'ytchag_thumb_window' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_thumb_window' ); ?>" />
471
+ <label for="<?php echo $this->get_field_id( 'ytchag_thumb_window' ); ?>"><?php _e( 'Open in a new window', 'youtube-channel-gallery' ); ?></label>
472
+ </div>
473
+ <div class="col-md-6">
474
+ <input class="checkbox" type="checkbox" value="1" <?php checked( (bool) $instance['ytchag_thumb_pagination'], true ); ?> id="<?php echo $this->get_field_id( 'ytchag_thumb_pagination' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_thumb_pagination' ); ?>" />
475
+ <label for="<?php echo $this->get_field_id( 'ytchag_thumb_pagination' ); ?>"><?php _e( 'Show pagination', 'youtube-channel-gallery' ); ?></label>
476
+ </div>
477
+ </div>
478
+
479
+
480
+ <div class="row">
481
+ <div class="col-md-12">
482
+ <label><?php _e( 'Thumbnail content tab order:', 'youtube-channel-gallery' ); ?></label>
483
+ </div>
484
+ <div class="col-md-6">
485
+ <label for="<?php echo $this->get_field_id( 'ytchag_thumb_order_thumb' ); ?>"><?php _e( 'Thumbnail:', 'youtube-channel-gallery' ); ?></label>
486
+ <input size="1" class="" id="<?php echo $this->get_field_id( 'ytchag_thumb_order_thumb' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_thumb_order_thumb' ); ?>" type="number" min="1" max="3" value="<?php echo esc_attr( $ytchag_thumb_order_thumb); ?>" />
487
+ </div>
488
+ <div class="col-md-6">
489
+ <label for="<?php echo $this->get_field_id( 'ytchag_thumb_order_title' ); ?>"><?php _e( 'Title:', 'youtube-channel-gallery' ); ?></label>
490
+ <input size="1" class="" id="<?php echo $this->get_field_id( 'ytchag_thumb_order_title' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_thumb_order_title' ); ?>" type="number" min="1" max="3" value="<?php echo esc_attr( $ytchag_thumb_order_title); ?>" />
491
+ </div>
492
+ <div class="col-md-6">
493
+ <label for="<?php echo $this->get_field_id( 'ytchag_thumb_order_publishedAt' ); ?>"><?php _e( 'Published date:', 'youtube-channel-gallery' ); ?></label>
494
+ <input size="1" class="" id="<?php echo $this->get_field_id( 'ytchag_thumb_order_publishedAt' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_thumb_order_publishedAt' ); ?>" type="number" min="1" max="3" value="<?php echo esc_attr( $ytchag_thumb_order_publishedAt); ?>" />
495
+ </div>
496
+ <div class="col-md-6">
497
+ <label for="<?php echo $this->get_field_id( 'ytchag_thumb_order_desc' ); ?>"><?php _e( 'Description:', 'youtube-channel-gallery' ); ?></label>
498
+ <input size="1" class="" id="<?php echo $this->get_field_id( 'ytchag_thumb_order_desc' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_thumb_order_desc' ); ?>" type="number" min="1" max="3" value="<?php echo esc_attr( $ytchag_thumb_order_desc); ?>" />
499
+ </div>
500
+ </div>
501
+
502
  <p class="<?php echo $this->get_field_id( 'ytchag_thumb_order' ); ?>">
503
+ <label for="<?php echo $this->get_field_id( 'ytchag_thumb_order' ); ?>"><?php _e( 'Tab order:', 'youtube-channel-gallery' ); ?></label>
504
  <input class="" id="<?php echo $this->get_field_id( 'ytchag_thumb_order' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_thumb_order' ); ?>" type="number" min="1" max="10" size="1" value="<?php echo esc_attr( $ytchag_thumb_order); ?>" />
505
  </p>
506
 
537
  </p>
538
 
539
  <p class="<?php echo $this->get_field_id( 'ytchag_link_order' ); ?>">
540
+ <label for="<?php echo $this->get_field_id( 'ytchag_link_order' ); ?>"><?php _e( 'Tab order:', 'youtube-channel-gallery' ); ?></label>
541
  <input class="" id="<?php echo $this->get_field_id( 'ytchag_link_order' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_link_order' ); ?>" type="number" min="1" max="3" size="1" value="<?php echo esc_attr( $ytchag_link_order); ?>" />
542
  </p>
543
 
templates/desc.php CHANGED
@@ -1,4 +1,4 @@
1
- <div class="ytctdescription">
2
- <?php echo ($ytchag_description_words_number ? implode(' ', array_slice(explode(' ', $thumb->description), 0, $ytchag_description_words_number)) : $thumb->description)?>
3
- </div>
4
-
1
+ <?php $words = isset($playercontent) ? $ytchag_player_description_words_number : $ytchag_description_words_number;?>
2
+ <div class="ytc<?php echo isset($playercontent)? $playercontent : '';?>tdescription">
3
+ <?php echo make_clickable(($words ? wp_trim_words( $thumb->description, $words, '...' ) : $thumb->description));?>
4
+ </div>
templates/publishedAt.php ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <time datetime="<?php echo $thumb->publishedAt; ?>" class="ytc<?php echo isset($playercontent)? $playercontent : '';?>publishedAt">
2
+ <?php echo date_i18n( get_option( 'date_format' ), strtotime( $thumb->publishedAt ) ); ?>
3
+ </time>
templates/thumb.php CHANGED
@@ -5,5 +5,10 @@
5
  <?php endif; ?>
6
  <div class="ytcplay"></div>
7
  </a>
 
 
 
 
 
8
  </div>
9
 
5
  <?php endif; ?>
6
  <div class="ytcplay"></div>
7
  </a>
8
+ <?php if ($ytchag_duration): ?>
9
+ <span class="video-time">
10
+ <span><?php echo $thumb->duration;?></span>
11
+ </span>
12
+ <?php endif; ?>
13
  </div>
14
 
templates/thumbs.php CHANGED
@@ -7,11 +7,14 @@
7
 
8
  <?php $i = 0; ?>
9
  <?php $col = 1; ?>
10
- <?php $columns = max($ytchag_thumb_columns_phones, $ytchag_thumb_columns_tablets, $ytchag_thumb_columns_md, $ytchag_thumb_columns_ld); ?>
 
 
 
11
  <?php foreach ($thumbs as $thumb): ?>
12
 
13
  <?php if ($multiplos): ?>
14
- <?php if ($i % $columns === 0): ?>
15
  <?php if ($i > 0): ?>
16
  </div>
17
  <?php endif; ?>
@@ -33,15 +36,18 @@
33
  ?>
34
  <div class="ytc-column <?php echo $col_xs?> <?php echo $col_sm?> <?php echo $col_md?> <?php echo $col_lg?>">
35
  <?php
36
- if ($ytchag_thumbnail_alignment == 'none') {
37
  foreach ($thumb->modules as $module) {
38
  if ($module === 'title' && $ytchag_title) {
39
  include 'title.php';
40
  }
 
 
 
41
  elseif ($module === 'desc' && $ytchag_description) {
42
  include 'desc.php';
43
  }
44
- elseif ($module !== 'title' && $module !== 'desc') {
45
  include $module . '.php';
46
  }
47
  }
@@ -81,6 +87,9 @@
81
  if ($module === 'title' && $ytchag_title) {
82
  include 'title.php';
83
  }
 
 
 
84
  elseif ($module === 'desc' && $ytchag_description) {
85
  include 'desc.php';
86
  }
7
 
8
  <?php $i = 0; ?>
9
  <?php $col = 1; ?>
10
+ <?php
11
+ $columns = max($ytchag_thumb_columns_phones, $ytchag_thumb_columns_tablets, $ytchag_thumb_columns_md, $ytchag_thumb_columns_ld);
12
+ $columns == 0 ? 1 : $columns;
13
+ ?>
14
  <?php foreach ($thumbs as $thumb): ?>
15
 
16
  <?php if ($multiplos): ?>
17
+ <?php if ( $columns!=0 & $i % $columns === 0 ): ?>
18
  <?php if ($i > 0): ?>
19
  </div>
20
  <?php endif; ?>
36
  ?>
37
  <div class="ytc-column <?php echo $col_xs?> <?php echo $col_sm?> <?php echo $col_md?> <?php echo $col_lg?>">
38
  <?php
39
+ if ($ytchag_thumbnail_alignment != 'left' || $ytchag_thumbnail_alignment != 'right') {
40
  foreach ($thumb->modules as $module) {
41
  if ($module === 'title' && $ytchag_title) {
42
  include 'title.php';
43
  }
44
+ elseif ($module === 'publishedAt' && $ytchag_publishedAt) {
45
+ include 'publishedAt.php';
46
+ }
47
  elseif ($module === 'desc' && $ytchag_description) {
48
  include 'desc.php';
49
  }
50
+ elseif ($module !== 'title' && $module !== 'publishedAt' && $module !== 'desc') {
51
  include $module . '.php';
52
  }
53
  }
87
  if ($module === 'title' && $ytchag_title) {
88
  include 'title.php';
89
  }
90
+ elseif ($module === 'publishedAt' && $ytchag_publishedAt) {
91
+ include 'publishedAt.php';
92
+ }
93
  elseif ($module === 'desc' && $ytchag_description) {
94
  include 'desc.php';
95
  }
templates/title.php CHANGED
@@ -1,3 +1,10 @@
1
- <<?php echo $ytchag_title_tag?> class="ytctitle">
2
- <a class="<?php echo (($ytchag_player == 2) ? 'popup-youtube' : 'ytclink')?>" href="https://www.youtube.com/watch?v=<?php echo $thumb->id?>" data-playerid="ytcplayer<?php echo $plugincount?>" data-quality="<?php echo $thumb->quality?>" alt="<?php echo $thumb->title?>" title="<?php echo $thumb->title?>" <?php echo ($ytchag_nofollow ? 'rel="nofollow"' : '')?> <?php echo ($ytchag_thumb_window ? 'target="_blank"' : '')?>><?php echo $thumb->title?></a>
3
- </<?php echo $ytchag_title_tag?>>
 
 
 
 
 
 
 
1
+ <?php $tag = isset($playercontent) ? $ytchag_player_title_tag : $ytchag_title_tag;?>
2
+ <<?php echo $tag?> class="ytc<?php echo isset($playercontent)? $playercontent : '';?>title">
3
+ <?php if(!isset($playercontent)): ?>
4
+ <a class="<?php echo (($ytchag_player == 2) ? 'popup-youtube' : 'ytclink')?>" href="https://www.youtube.com/watch?v=<?php echo $thumb->id?>" data-playerid="ytcplayer<?php echo $plugincount?>" data-quality="<?php echo $thumb->quality?>" alt="<?php echo $thumb->title?>" title="<?php echo $thumb->title?>" <?php echo ($ytchag_nofollow ? 'rel="nofollow"' : '')?> <?php echo ($ytchag_thumb_window ? 'target="_blank"' : '')?>>
5
+ <?php endif; ?>
6
+ <?php echo $thumb->title;?>
7
+ <?php if(!isset($playercontent)): ?>
8
+ </a>
9
+ <?php endif; ?>
10
+ </<?php echo $tag?>>
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: 2.2.2
9
  License: GPL2
10
 
11
  Copyright 2013 Javier Gómez Pose (email : javierpose@gmail.com)
@@ -49,7 +49,7 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
49
 
50
  array( 'classname' => 'youtubechannelgallery ytccf', 'description' => __( 'Show a youtube video and a gallery of thumbnails for a youtube channel', 'youtube-channel-gallery' ), ), // Args
51
 
52
- array( 'width' => 260 )
53
  );
54
 
55
  add_action('wp_ajax_ytc_next', array($this, 'nextVideos'));
@@ -57,8 +57,44 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
57
 
58
  add_action('wp_ajax_ytc_search', array($this, 'searchVideos'));
59
  add_action('wp_ajax_nopriv_ytc_search', array($this, 'searchVideos'));
 
 
 
 
60
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
 
63
  function nextVideos() {
64
 
@@ -127,7 +163,8 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
127
 
128
  $modules[$ytchag_thumb_order_thumb . '1'] = 'thumb';
129
  $modules[$ytchag_thumb_order_title . '2'] = 'title';
130
- $modules[$ytchag_thumb_order_desc . '3'] = 'desc';
 
131
 
132
  ksort($modules);
133
 
@@ -144,11 +181,11 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
144
  $ytchag_prev_token = $json->prevPageToken;
145
  }
146
 
147
- $thumbs = $this->getThumbs($json->items, $modules, $ytchag_thumb_width);
148
 
149
  include 'templates/thumbs.php';
150
 
151
- exit();
152
  }
153
 
154
  function searchVideos() {
@@ -199,7 +236,7 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
199
 
200
  if ($videos_result['response']['code'] != 200) {
201
  echo '';
202
- exit();
203
  }
204
 
205
  // Thumb order
@@ -208,7 +245,8 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
208
 
209
  $modules[$ytchag_thumb_order_thumb . '1'] = 'thumb';
210
  $modules[$ytchag_thumb_order_title . '2'] = 'title';
211
- $modules[$ytchag_thumb_order_desc . '3'] = 'desc';
 
212
 
213
  ksort($modules);
214
 
@@ -225,14 +263,14 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
225
  $ytchag_prev_token = $json->prevPageToken;
226
  }
227
 
228
- $thumbs = $this->getThumbs($json->items, $modules, $ytchag_thumb_width);
229
 
230
  include 'templates/thumbs.php';
231
 
232
- exit();
233
  }
234
 
235
- function getThumbs($items, $modules, $thumb_width) {
236
 
237
  $thumbs = array();
238
 
@@ -243,10 +281,15 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
243
  $thumb->id = isset($item->snippet->resourceId->videoId) ? $item->snippet->resourceId->videoId : null;
244
  $thumb->id = $thumb->id ? $thumb->id : $item->id->videoId;
245
  $thumb->title = $item->snippet->title;
 
246
  $thumb->description = $item->snippet->description;
247
  $thumb->modules = $modules;
248
  $thumb->privacyStatus = isset($item->status->privacyStatus) ? $item->status->privacyStatus : null;
249
 
 
 
 
 
250
  if ($thumb->privacyStatus == 'private') {
251
  $thumb->img = plugins_url( '/img/private.png', __FILE__ );
252
  $thumb->quality = 'medium';
@@ -271,6 +314,40 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
271
  return $thumbs;
272
  }
273
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
274
  /**
275
  * Front-end display of widget.
276
  */
@@ -321,6 +398,11 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
321
  $instance['ytchag_modestbranding'] = strip_tags( $new_instance['ytchag_modestbranding'] );
322
  $instance['ytchag_rel'] = strip_tags( $new_instance['ytchag_rel'] );
323
  $instance['ytchag_showinfo'] = strip_tags( $new_instance['ytchag_showinfo'] );
 
 
 
 
 
324
  $instance['ytchag_player_order'] = strip_tags( $new_instance['ytchag_player_order'] );
325
 
326
  // Search options
@@ -344,11 +426,14 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
344
  $instance['ytchag_thumb_pagination'] = strip_tags( $new_instance['ytchag_thumb_pagination'] );
345
  $instance['ytchag_thumb_order_thumb'] = strip_tags( $new_instance['ytchag_thumb_order_thumb'] );
346
  $instance['ytchag_thumb_order_title'] = strip_tags( $new_instance['ytchag_thumb_order_title'] );
 
347
  $instance['ytchag_thumb_order_desc'] = strip_tags( $new_instance['ytchag_thumb_order_desc'] );
348
  $instance['ytchag_thumb_order'] = strip_tags( $new_instance['ytchag_thumb_order'] );
349
 
350
  $instance['ytchag_title'] = strip_tags( $new_instance['ytchag_title'] );
 
351
  $instance['ytchag_description'] = strip_tags( $new_instance['ytchag_description'] );
 
352
  $instance['ytchag_thumbnail_alignment'] = strip_tags( $new_instance['ytchag_thumbnail_alignment'] );
353
  $instance['ytchag_thumbnail_alignment_width'] = strip_tags( $new_instance['ytchag_thumbnail_alignment_width'] );
354
  $instance['ytchag_thumbnail_alignment_device'] = strip_tags( $new_instance['ytchag_thumbnail_alignment_device'] );
@@ -395,7 +480,7 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
395
  'title' => 'Videos',
396
 
397
  // Feed options
398
- 'ytchag_key' => 'AIzaSyA0IBAaDqJxfQiqeYg_i2kVKW5P9ZLheVU',
399
  'ytchag_feed' => 'user',
400
  'ytchag_identify_by' => 'username',
401
  'ytchag_user' => 'youtube',
@@ -418,6 +503,11 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
418
  'ytchag_modestbranding' => '',
419
  'ytchag_rel' => '',
420
  'ytchag_showinfo' => '',
 
 
 
 
 
421
  'ytchag_player_order' => '1',
422
 
423
  // Search options
@@ -441,11 +531,14 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
441
  'ytchag_thumb_pagination' => '1',
442
  'ytchag_thumb_order_thumb' => '1',
443
  'ytchag_thumb_order_title' => '2',
444
- 'ytchag_thumb_order_desc' => '3',
 
445
  'ytchag_thumb_order' => '3',
446
 
447
  'ytchag_title' => '',
 
448
  'ytchag_description' => '',
 
449
  'ytchag_thumbnail_alignment' => 'none',
450
  'ytchag_thumbnail_alignment_width' => 'half',
451
  'ytchag_thumbnail_alignment_device' => 'tablet',
@@ -458,7 +551,7 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
458
  'ytchag_link_window' => '',
459
  'ytchag_link_order' => '4',
460
 
461
- 'ytchag_promotion' => '1',
462
 
463
 
464
  );
@@ -504,6 +597,11 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
504
  $ytchag_modestbranding = apply_filters( 'ytchag_modestbranding', $instance['ytchag_modestbranding'] );
505
  $ytchag_rel = apply_filters( 'ytchag_rel', $instance['ytchag_rel'] );
506
  $ytchag_showinfo = apply_filters( 'ytchag_showinfo', $instance['ytchag_showinfo'] );
 
 
 
 
 
507
  $ytchag_player_order = apply_filters( 'ytchag_player_order', $instance['ytchag_player_order'] );
508
 
509
  // Search options
@@ -527,11 +625,14 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
527
  $ytchag_thumb_pagination = apply_filters( 'ytchag_thumb_pagination', $instance['ytchag_thumb_pagination'] );
528
  $ytchag_thumb_order_thumb = apply_filters( 'ytchag_thumb_order_thumb', $instance['ytchag_thumb_order_thumb'] );
529
  $ytchag_thumb_order_title = apply_filters( 'ytchag_thumb_order_title', $instance['ytchag_thumb_order_title'] );
 
530
  $ytchag_thumb_order_desc = apply_filters( 'ytchag_thumb_order_desc', $instance['ytchag_thumb_order_desc'] );
531
  $ytchag_thumb_order= apply_filters( 'ytchag_thumb_order', $instance['ytchag_thumb_order'] );
532
 
533
  $ytchag_title = apply_filters( 'ytchag_title', $instance['ytchag_title'] );
 
534
  $ytchag_description = apply_filters( 'ytchag_description', $instance['ytchag_description'] );
 
535
  $ytchag_thumbnail_alignment = apply_filters( 'ytchag_thumbnail_alignment', $instance['ytchag_thumbnail_alignment'] );
536
  $ytchag_thumbnail_alignment_width = apply_filters( 'ytchag_thumbnail_alignment_width', $instance['ytchag_thumbnail_alignment_width'] );
537
  $ytchag_thumbnail_alignment_device = apply_filters( 'ytchag_thumbnail_alignment_device', $instance['ytchag_thumbnail_alignment_device'] );
@@ -554,7 +655,7 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
554
  //--------------------------------
555
 
556
  // Feed options
557
- $ytchag_key = ( $ytchag_key) ? $ytchag_key: 'AIzaSyA6oW5D-ZlSIG-OHSBOR25TMd3YDRU7HdU'; //default user
558
  $ytchag_feed = ( $ytchag_feed ) ? $ytchag_feed : 'user'; //default user
559
  $ytchag_feed_order = ( $ytchag_feed_order ) ? $ytchag_feed_order : 'date'; //default date
560
 
@@ -569,6 +670,11 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
569
  $ytchag_modestbranding = ( $ytchag_modestbranding ) ? '' : '&modestbranding='. $ytchag_modestbranding; //default 0
570
  $ytchag_rel = ( $ytchag_rel ) ? '&rel='. $ytchag_rel : '&rel=0'; //default 1
571
  $ytchag_showinfo = ( $ytchag_showinfo ) ? '&showinfo='. $ytchag_showinfo : '&showinfo=0'; //default 1
 
 
 
 
 
572
  $ytchag_player_order = isset( $ytchag_player_order ) ? $ytchag_player_order : '1'; // order
573
 
574
  // Search options
@@ -594,7 +700,9 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
594
 
595
  //title and desc
596
  $ytchag_title = ( $ytchag_title ) ? $ytchag_title : 0;
 
597
  $ytchag_description = ( $ytchag_description ) ? $ytchag_description : 0;
 
598
  $ytchag_thumbnail_alignment = ( $ytchag_thumbnail_alignment ) ? $ytchag_thumbnail_alignment : 'none';
599
  $ytchag_thumbnail_alignment_width = ( $ytchag_thumbnail_alignment_width ) ? $ytchag_thumbnail_alignment_width : 'half';
600
  $ytchag_thumbnail_alignment_device = ( $ytchag_thumbnail_alignment_device ) ? $ytchag_thumbnail_alignment_device : 'tablet';
@@ -677,7 +785,6 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
677
 
678
  $transientId = 'ytc-' . md5($ytchag_feed_url);
679
  $videos_result = $this->get_rss_data ( $ytchag_cache, $transientId, $ytchag_feed_url, $ytchag_cache_time );
680
-
681
  ob_start();
682
  if ($videos_result['response']['code'] != 200) {
683
  $json = json_decode($videos_result['body']);
@@ -691,12 +798,13 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
691
  }
692
 
693
  $content = '<div class="vmcerror">';
694
- $content .= sprintf( __( 'Error type: "%1$s". ', 'youtube-channel-gallery' ), $videos_result['response']['message'] );
695
- $content .= sprintf( __( 'Error message: "%1$s" ', 'youtube-channel-gallery' ), $json->error->message );
696
- $content .= sprintf( __( 'Domain: "%1$s". ', 'youtube-channel-gallery' ), $json->error->errors[0]->domain );
697
- $content .= sprintf( __( 'Reason: "%1$s". ', 'youtube-channel-gallery' ), $json->error->errors[0]->reason );
698
- $content .= sprintf( __( 'Location type: "%1$s". ', 'youtube-channel-gallery' ), $json->error->errors[0]->locationType );
699
- $content .= sprintf( __( 'Location: "%1$s". ', 'youtube-channel-gallery' ), $json->error->errors[0]->location ) . '<br><br>';
 
700
 
701
  $content .= sprintf( __( 'Check in YouTube if the id %1$s belongs to a %2$s. ', 'youtube-channel-gallery' ), $error_link, $error_type );
702
  if ( $ytchag_feed !== 'playlist' && ($ytchag_feed === 'favorites' || $ytchag_feed === 'likes') ) {
@@ -729,11 +837,12 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
729
 
730
  $modules[$ytchag_thumb_order_thumb . '1'] = 'thumb';
731
  $modules[$ytchag_thumb_order_title . '2'] = 'title';
732
- $modules[$ytchag_thumb_order_desc . '3'] = 'desc';
 
733
 
734
  ksort($modules);
735
 
736
- $thumbs = $this->getThumbs($json->items, $modules, $ytchag_thumb_width);
737
 
738
  $content = '';
739
 
@@ -756,12 +865,16 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
756
  ksort($modules);
757
 
758
  $plugincount += 1;
 
 
 
759
  echo '<div class="youtubechannelgallery">';
760
  echo '<div id="ytc-'. $plugincount .'">';
761
  echo '<div id="ytc-wrapper">';
762
  foreach ($modules as $module) {
763
  if ($module === 'player' && $ytchag_player == 1) {
764
  include 'templates/player.php';
 
765
  }
766
  elseif ($module !== 'player') {
767
  include 'templates/' . $module . '.php';
@@ -771,7 +884,6 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
771
  echo '</div>';
772
  echo '</div>';
773
 
774
- update_option('ytc-' . $plugincount, $instance);
775
 
776
  }
777
  else {
@@ -878,7 +990,10 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
878
  public function register_admin_scripts_and_styles( $hook ) {
879
  if ( 'widgets.php' != $hook )
880
  return;
881
- wp_enqueue_style( 'youtube-channel-gallery', plugins_url( '/admin-styles.css', __FILE__ ) );
 
 
 
882
  wp_enqueue_script( 'youtube-channel-gallery', plugins_url( '/admin-scripts.js', __FILE__ ), false, false, true );
883
 
884
  }
@@ -892,7 +1007,7 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
892
  extract( shortcode_atts( array(
893
 
894
  // Feed options
895
- 'key' => 'AIzaSyA0IBAaDqJxfQiqeYg_i2kVKW5P9ZLheVU',
896
  'feed' => 'user',
897
  'identify_by' => 'username',
898
  'user' => 'youtube',
@@ -915,6 +1030,11 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
915
  'modestbranding' => '',
916
  'rel' => '',
917
  'showinfo' => '',
 
 
 
 
 
918
  'player_order' => '1',
919
 
920
  // Search options
@@ -938,11 +1058,14 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
938
  'thumb_pagination' => '1',
939
  'thumb_order_thumb' => '1',
940
  'thumb_order_title' => '2',
941
- 'thumb_order_desc' => '3',
 
942
  'thumb_order' => '3',
943
 
944
  'title' => '',
 
945
  'description' => '',
 
946
  'thumbnail_alignment' => 'none',
947
  'thumbnail_alignment_width' => 'half',
948
  'thumbnail_alignment_device' => 'tablet',
@@ -983,6 +1106,11 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
983
  $instance['ytchag_modestbranding'] = $modestbranding;
984
  $instance['ytchag_rel'] = $rel;
985
  $instance['ytchag_showinfo'] = $showinfo;
 
 
 
 
 
986
  $instance['ytchag_player_order'] = $player_order;
987
 
988
  // Search options
@@ -1006,11 +1134,14 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
1006
  $instance['ytchag_thumb_pagination'] = $thumb_pagination;
1007
  $instance['ytchag_thumb_order_thumb'] = $thumb_order_thumb;
1008
  $instance['ytchag_thumb_order_title'] = $thumb_order_title;
 
1009
  $instance['ytchag_thumb_order_desc'] = $thumb_order_desc;
1010
  $instance['ytchag_thumb_order'] = $thumb_order;
1011
 
1012
  $instance['ytchag_title'] = $title;
 
1013
  $instance['ytchag_description'] = $description;
 
1014
  $instance['ytchag_thumbnail_alignment'] = $thumbnail_alignment;
1015
  $instance['ytchag_thumbnail_alignment_width'] = $thumbnail_alignment_width;
1016
  $instance['ytchag_thumbnail_alignment_device'] = $thumbnail_alignment_device;
@@ -1032,7 +1163,7 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
1032
  $instance['ytchag_user_uploads'] = $playlists['uploads'];
1033
  $instance['ytchag_user_favorites'] = isset($playlists['favorites']) ? $playlists['favorites'] : null;
1034
 
1035
- if (!$instance['ytchag_thumb_columns_phones'] &&
1036
  !$instance['ytchag_thumb_columns_tablets'] &&
1037
  !$instance['ytchag_thumb_columns_md'] &&
1038
  !$instance['ytchag_thumb_columns_ld']) {
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: 2.3
9
  License: GPL2
10
 
11
  Copyright 2013 Javier Gómez Pose (email : javierpose@gmail.com)
49
 
50
  array( 'classname' => 'youtubechannelgallery ytccf', 'description' => __( 'Show a youtube video and a gallery of thumbnails for a youtube channel', 'youtube-channel-gallery' ), ), // Args
51
 
52
+ array( 'width' => 400 )
53
  );
54
 
55
  add_action('wp_ajax_ytc_next', array($this, 'nextVideos'));
57
 
58
  add_action('wp_ajax_ytc_search', array($this, 'searchVideos'));
59
  add_action('wp_ajax_nopriv_ytc_search', array($this, 'searchVideos'));
60
+
61
+ add_action('wp_ajax_ytc_changePlayerContent', array($this, 'changePlayerContent'));
62
+ add_action('wp_ajax_nopriv_ytc_changePlayerContent', array($this, 'changePlayerContent'));
63
+
64
  }
65
+ function changePlayerContent($wid='', $youtubeid='') {
66
+ //for ajax
67
+ if($wid==''){
68
+ $wid = $_POST['wid'];
69
+ $youtubeid = $_POST['youtubeid'];
70
+ $ajax_request = 1;
71
+ }
72
+
73
+ $instance = get_option($wid);
74
+
75
+ extract($instance);
76
+ $playercontent = 'player';
77
+
78
+ $thumb = $this->getThumbsDetails($youtubeid, $ytchag_key);
79
+
80
+ echo '<div class="ytcplayercontent">';
81
 
82
+ if ($ytchag_player_title) {
83
+ include 'templates/title.php';
84
+ }
85
+ if ($ytchag_player_publishedAt) {
86
+ include 'templates/publishedAt.php';
87
+ }
88
+ if ($ytchag_player_description) {
89
+ include 'templates/desc.php';
90
+ }
91
+ echo '</div>';
92
+
93
+ if(isset($ajax_request)){
94
+
95
+ wp_die();
96
+ }
97
+ }
98
 
99
  function nextVideos() {
100
 
163
 
164
  $modules[$ytchag_thumb_order_thumb . '1'] = 'thumb';
165
  $modules[$ytchag_thumb_order_title . '2'] = 'title';
166
+ $modules[$ytchag_thumb_order_publishedAt . '3'] = 'publishedAt';
167
+ $modules[$ytchag_thumb_order_desc . '4'] = 'desc';
168
 
169
  ksort($modules);
170
 
181
  $ytchag_prev_token = $json->prevPageToken;
182
  }
183
 
184
+ $thumbs = $this->getThumbs($json->items, $modules, $ytchag_thumb_width, $ytchag_key);
185
 
186
  include 'templates/thumbs.php';
187
 
188
+ wp_die();
189
  }
190
 
191
  function searchVideos() {
236
 
237
  if ($videos_result['response']['code'] != 200) {
238
  echo '';
239
+ wp_die();
240
  }
241
 
242
  // Thumb order
245
 
246
  $modules[$ytchag_thumb_order_thumb . '1'] = 'thumb';
247
  $modules[$ytchag_thumb_order_title . '2'] = 'title';
248
+ $modules[$ytchag_thumb_order_publishedAt . '3'] = 'publishedAt';
249
+ $modules[$ytchag_thumb_order_desc . '4'] = 'desc';
250
 
251
  ksort($modules);
252
 
263
  $ytchag_prev_token = $json->prevPageToken;
264
  }
265
 
266
+ $thumbs = $this->getThumbs($json->items, $modules, $ytchag_thumb_width, $ytchag_key);
267
 
268
  include 'templates/thumbs.php';
269
 
270
+ wp_die();
271
  }
272
 
273
+ function getThumbs($items, $modules, $thumb_width, $key) {
274
 
275
  $thumbs = array();
276
 
281
  $thumb->id = isset($item->snippet->resourceId->videoId) ? $item->snippet->resourceId->videoId : null;
282
  $thumb->id = $thumb->id ? $thumb->id : $item->id->videoId;
283
  $thumb->title = $item->snippet->title;
284
+ $thumb->publishedAt = $item->snippet->publishedAt;
285
  $thumb->description = $item->snippet->description;
286
  $thumb->modules = $modules;
287
  $thumb->privacyStatus = isset($item->status->privacyStatus) ? $item->status->privacyStatus : null;
288
 
289
+ $details = $this->getThumbsDetails($thumb->id, $key);
290
+ $thumb->duration = $details->duration;
291
+
292
+
293
  if ($thumb->privacyStatus == 'private') {
294
  $thumb->img = plugins_url( '/img/private.png', __FILE__ );
295
  $thumb->quality = 'medium';
314
  return $thumbs;
315
  }
316
 
317
+ function getThumbsDetails($id, $key) {
318
+
319
+ $video_details_api = 'https://www.googleapis.com/youtube/v3/videos?part=snippet,statistics,contentDetails,status&id=' . $id . '&key=' . $key;
320
+ $json = json_decode(file_get_contents($video_details_api));
321
+
322
+ $details = new stdClass();
323
+
324
+ $details->title = $json->items[0]->snippet->title;
325
+ $details->publishedAt = $json->items[0]->snippet->publishedAt;
326
+ $details->description = $json->items[0]->snippet->description;
327
+
328
+
329
+ //duration
330
+ //-----------
331
+ $d = $json->items[0]->contentDetails->duration;
332
+ $d_colon = str_ireplace(array('PT', 'H', 'M', 'S'), array('',':',':',''), $d);
333
+ //seconds
334
+ if(substr_count($d_colon, ':') == 0){
335
+ $d_zeros = '00:00:'.$d_colon;
336
+ $details->duration = '0:'.date("s", strtotime($d_zeros));
337
+ }
338
+ //minutes
339
+ elseif(substr_count($d_colon, ':') == 1){
340
+ $d_zeros = "00:".$d_colon;
341
+ $details->duration = date("i:s", strtotime($d_zeros));
342
+ }
343
+ //hours
344
+ else{
345
+ $details->duration = date("H:i:s", strtotime($d_colon));
346
+ }
347
+
348
+ return $details;
349
+ }
350
+
351
  /**
352
  * Front-end display of widget.
353
  */
398
  $instance['ytchag_modestbranding'] = strip_tags( $new_instance['ytchag_modestbranding'] );
399
  $instance['ytchag_rel'] = strip_tags( $new_instance['ytchag_rel'] );
400
  $instance['ytchag_showinfo'] = strip_tags( $new_instance['ytchag_showinfo'] );
401
+ $instance['ytchag_player_title'] = strip_tags( $new_instance['ytchag_player_title'] );
402
+ $instance['ytchag_player_publishedAt'] = strip_tags( $new_instance['ytchag_player_publishedAt'] );
403
+ $instance['ytchag_player_description'] = strip_tags( $new_instance['ytchag_player_description'] );
404
+ $instance['ytchag_player_title_tag'] = strip_tags( $new_instance['ytchag_player_title_tag'] );
405
+ $instance['ytchag_player_description_words_number'] = strip_tags( $new_instance['ytchag_player_description_words_number'] );
406
  $instance['ytchag_player_order'] = strip_tags( $new_instance['ytchag_player_order'] );
407
 
408
  // Search options
426
  $instance['ytchag_thumb_pagination'] = strip_tags( $new_instance['ytchag_thumb_pagination'] );
427
  $instance['ytchag_thumb_order_thumb'] = strip_tags( $new_instance['ytchag_thumb_order_thumb'] );
428
  $instance['ytchag_thumb_order_title'] = strip_tags( $new_instance['ytchag_thumb_order_title'] );
429
+ $instance['ytchag_thumb_order_publishedAt'] = strip_tags( $new_instance['ytchag_thumb_order_publishedAt'] );
430
  $instance['ytchag_thumb_order_desc'] = strip_tags( $new_instance['ytchag_thumb_order_desc'] );
431
  $instance['ytchag_thumb_order'] = strip_tags( $new_instance['ytchag_thumb_order'] );
432
 
433
  $instance['ytchag_title'] = strip_tags( $new_instance['ytchag_title'] );
434
+ $instance['ytchag_publishedAt'] = strip_tags( $new_instance['ytchag_publishedAt'] );
435
  $instance['ytchag_description'] = strip_tags( $new_instance['ytchag_description'] );
436
+ $instance['ytchag_duration'] = strip_tags( $new_instance['ytchag_duration'] );
437
  $instance['ytchag_thumbnail_alignment'] = strip_tags( $new_instance['ytchag_thumbnail_alignment'] );
438
  $instance['ytchag_thumbnail_alignment_width'] = strip_tags( $new_instance['ytchag_thumbnail_alignment_width'] );
439
  $instance['ytchag_thumbnail_alignment_device'] = strip_tags( $new_instance['ytchag_thumbnail_alignment_device'] );
480
  'title' => 'Videos',
481
 
482
  // Feed options
483
+ 'ytchag_key' => '',
484
  'ytchag_feed' => 'user',
485
  'ytchag_identify_by' => 'username',
486
  'ytchag_user' => 'youtube',
503
  'ytchag_modestbranding' => '',
504
  'ytchag_rel' => '',
505
  'ytchag_showinfo' => '',
506
+ 'ytchag_player_title' => '',
507
+ 'ytchag_player_publishedAt' => '',
508
+ 'ytchag_player_description' => '',
509
+ 'ytchag_player_title_tag' => 'h3',
510
+ 'ytchag_player_description_words_number' => '',
511
  'ytchag_player_order' => '1',
512
 
513
  // Search options
531
  'ytchag_thumb_pagination' => '1',
532
  'ytchag_thumb_order_thumb' => '1',
533
  'ytchag_thumb_order_title' => '2',
534
+ 'ytchag_thumb_order_publishedAt' => '3',
535
+ 'ytchag_thumb_order_desc' => '4',
536
  'ytchag_thumb_order' => '3',
537
 
538
  'ytchag_title' => '',
539
+ 'ytchag_publishedAt' => '',
540
  'ytchag_description' => '',
541
+ 'ytchag_duration' => '',
542
  'ytchag_thumbnail_alignment' => 'none',
543
  'ytchag_thumbnail_alignment_width' => 'half',
544
  'ytchag_thumbnail_alignment_device' => 'tablet',
551
  'ytchag_link_window' => '',
552
  'ytchag_link_order' => '4',
553
 
554
+ 'ytchag_promotion' => '1',
555
 
556
 
557
  );
597
  $ytchag_modestbranding = apply_filters( 'ytchag_modestbranding', $instance['ytchag_modestbranding'] );
598
  $ytchag_rel = apply_filters( 'ytchag_rel', $instance['ytchag_rel'] );
599
  $ytchag_showinfo = apply_filters( 'ytchag_showinfo', $instance['ytchag_showinfo'] );
600
+ $ytchag_player_title = apply_filters( 'ytchag_player_title', $instance['ytchag_player_title'] );
601
+ $ytchag_player_publishedAt = apply_filters( 'ytchag_player_publishedAt', $instance['ytchag_player_publishedAt'] );
602
+ $ytchag_player_description = apply_filters( 'ytchag_player_description', $instance['ytchag_player_description'] );
603
+ $ytchag_player_title_tag = apply_filters( 'ytchag_player_title_tag', $instance['ytchag_player_title_tag'] );
604
+ $ytchag_player_description_words_number = apply_filters( 'ytchag_player_description_words_number', $instance['ytchag_player_description_words_number'] );
605
  $ytchag_player_order = apply_filters( 'ytchag_player_order', $instance['ytchag_player_order'] );
606
 
607
  // Search options
625
  $ytchag_thumb_pagination = apply_filters( 'ytchag_thumb_pagination', $instance['ytchag_thumb_pagination'] );
626
  $ytchag_thumb_order_thumb = apply_filters( 'ytchag_thumb_order_thumb', $instance['ytchag_thumb_order_thumb'] );
627
  $ytchag_thumb_order_title = apply_filters( 'ytchag_thumb_order_title', $instance['ytchag_thumb_order_title'] );
628
+ $ytchag_thumb_order_publishedAt = apply_filters( 'ytchag_thumb_order_publishedAt', $instance['ytchag_thumb_order_publishedAt'] );
629
  $ytchag_thumb_order_desc = apply_filters( 'ytchag_thumb_order_desc', $instance['ytchag_thumb_order_desc'] );
630
  $ytchag_thumb_order= apply_filters( 'ytchag_thumb_order', $instance['ytchag_thumb_order'] );
631
 
632
  $ytchag_title = apply_filters( 'ytchag_title', $instance['ytchag_title'] );
633
+ $ytchag_publishedAt = apply_filters( 'ytchag_publishedAt', $instance['ytchag_publishedAt'] );
634
  $ytchag_description = apply_filters( 'ytchag_description', $instance['ytchag_description'] );
635
+ $ytchag_duration = apply_filters( 'ytchag_duration', $instance['ytchag_duration'] );
636
  $ytchag_thumbnail_alignment = apply_filters( 'ytchag_thumbnail_alignment', $instance['ytchag_thumbnail_alignment'] );
637
  $ytchag_thumbnail_alignment_width = apply_filters( 'ytchag_thumbnail_alignment_width', $instance['ytchag_thumbnail_alignment_width'] );
638
  $ytchag_thumbnail_alignment_device = apply_filters( 'ytchag_thumbnail_alignment_device', $instance['ytchag_thumbnail_alignment_device'] );
655
  //--------------------------------
656
 
657
  // Feed options
658
+ $ytchag_key = ( $ytchag_key) ? $ytchag_key: ''; //default user
659
  $ytchag_feed = ( $ytchag_feed ) ? $ytchag_feed : 'user'; //default user
660
  $ytchag_feed_order = ( $ytchag_feed_order ) ? $ytchag_feed_order : 'date'; //default date
661
 
670
  $ytchag_modestbranding = ( $ytchag_modestbranding ) ? '' : '&modestbranding='. $ytchag_modestbranding; //default 0
671
  $ytchag_rel = ( $ytchag_rel ) ? '&rel='. $ytchag_rel : '&rel=0'; //default 1
672
  $ytchag_showinfo = ( $ytchag_showinfo ) ? '&showinfo='. $ytchag_showinfo : '&showinfo=0'; //default 1
673
+ $ytchag_player_title = ( $ytchag_player_title ) ? $ytchag_player_title : 0;
674
+ $ytchag_player_publishedAt = ( $ytchag_player_publishedAt ) ? $ytchag_player_publishedAt : 0;
675
+ $ytchag_player_description = ( $ytchag_player_description ) ? $ytchag_player_description : 0;
676
+ $ytchag_player_title_tag = ( $ytchag_player_title_tag ) ? $ytchag_player_title_tag : 'h3';
677
+ $ytchag_player_description_words_number = ( $ytchag_player_description_words_number ) ? $ytchag_player_description_words_number : 10;
678
  $ytchag_player_order = isset( $ytchag_player_order ) ? $ytchag_player_order : '1'; // order
679
 
680
  // Search options
700
 
701
  //title and desc
702
  $ytchag_title = ( $ytchag_title ) ? $ytchag_title : 0;
703
+ $ytchag_publishedAt = ( $ytchag_publishedAt ) ? $ytchag_publishedAt : 0;
704
  $ytchag_description = ( $ytchag_description ) ? $ytchag_description : 0;
705
+ $ytchag_duration = ( $ytchag_duration ) ? $ytchag_duration : 0;
706
  $ytchag_thumbnail_alignment = ( $ytchag_thumbnail_alignment ) ? $ytchag_thumbnail_alignment : 'none';
707
  $ytchag_thumbnail_alignment_width = ( $ytchag_thumbnail_alignment_width ) ? $ytchag_thumbnail_alignment_width : 'half';
708
  $ytchag_thumbnail_alignment_device = ( $ytchag_thumbnail_alignment_device ) ? $ytchag_thumbnail_alignment_device : 'tablet';
785
 
786
  $transientId = 'ytc-' . md5($ytchag_feed_url);
787
  $videos_result = $this->get_rss_data ( $ytchag_cache, $transientId, $ytchag_feed_url, $ytchag_cache_time );
 
788
  ob_start();
789
  if ($videos_result['response']['code'] != 200) {
790
  $json = json_decode($videos_result['body']);
798
  }
799
 
800
  $content = '<div class="vmcerror">';
801
+ $content .= isset($videos_result['response']['message']) ? sprintf( __( 'Error type: "%1$s". ', 'youtube-channel-gallery' ), $videos_result['response']['message'] ) : '';
802
+ $content .= isset($json->error->message) ? sprintf( __( 'Error message: "%1$s" ', 'youtube-channel-gallery' ), $json->error->message ) : '';
803
+ $content .= isset($json->error->errors[0]->domain) ? sprintf( __( 'Domain: "%1$s". ', 'youtube-channel-gallery' ), $json->error->errors[0]->domain ) : '';
804
+ $content .= isset($json->error->errors[0]->reason) ? sprintf( __( 'Reason: "%1$s". ', 'youtube-channel-gallery' ), $json->error->errors[0]->reason ) : '';
805
+ $content .= isset($json->error->errors[0]->locationType) ? sprintf( __( 'Location type: "%1$s". ', 'youtube-channel-gallery' ), $json->error->errors[0]->locationType ) : '';
806
+ $content .= isset($json->error->errors[0]->location) ? sprintf( __( 'Location: "%1$s". ', 'youtube-channel-gallery' ), $json->error->errors[0]->location ) : '';
807
+ $content .= '<br><br>';
808
 
809
  $content .= sprintf( __( 'Check in YouTube if the id %1$s belongs to a %2$s. ', 'youtube-channel-gallery' ), $error_link, $error_type );
810
  if ( $ytchag_feed !== 'playlist' && ($ytchag_feed === 'favorites' || $ytchag_feed === 'likes') ) {
837
 
838
  $modules[$ytchag_thumb_order_thumb . '1'] = 'thumb';
839
  $modules[$ytchag_thumb_order_title . '2'] = 'title';
840
+ $modules[$ytchag_thumb_order_publishedAt . '3'] = 'publishedAt';
841
+ $modules[$ytchag_thumb_order_desc . '4'] = 'desc';
842
 
843
  ksort($modules);
844
 
845
+ $thumbs = $this->getThumbs($json->items, $modules, $ytchag_thumb_width, $ytchag_key);
846
 
847
  $content = '';
848
 
865
  ksort($modules);
866
 
867
  $plugincount += 1;
868
+
869
+ update_option('ytc-' . $plugincount, $instance);
870
+
871
  echo '<div class="youtubechannelgallery">';
872
  echo '<div id="ytc-'. $plugincount .'">';
873
  echo '<div id="ytc-wrapper">';
874
  foreach ($modules as $module) {
875
  if ($module === 'player' && $ytchag_player == 1) {
876
  include 'templates/player.php';
877
+ $this->changePlayerContent('ytc-'. $plugincount, $thumbs[0]->id);
878
  }
879
  elseif ($module !== 'player') {
880
  include 'templates/' . $module . '.php';
884
  echo '</div>';
885
  echo '</div>';
886
 
 
887
 
888
  }
889
  else {
990
  public function register_admin_scripts_and_styles( $hook ) {
991
  if ( 'widgets.php' != $hook )
992
  return;
993
+ wp_enqueue_style( 'jquery_ui_styles' );
994
+ wp_enqueue_style( 'youtube-channel-gallery', plugins_url( '/admin-styles.css', __FILE__ ) );
995
+ wp_enqueue_script( 'jquery-ui-core' );
996
+ wp_enqueue_script( 'jquery-ui-tooltip' );
997
  wp_enqueue_script( 'youtube-channel-gallery', plugins_url( '/admin-scripts.js', __FILE__ ), false, false, true );
998
 
999
  }
1007
  extract( shortcode_atts( array(
1008
 
1009
  // Feed options
1010
+ 'key' => '',
1011
  'feed' => 'user',
1012
  'identify_by' => 'username',
1013
  'user' => 'youtube',
1030
  'modestbranding' => '',
1031
  'rel' => '',
1032
  'showinfo' => '',
1033
+ 'player_title' => '',
1034
+ 'player_published_date' => '',
1035
+ 'player_description' => '',
1036
+ 'player_title_tag' => 'h3',
1037
+ 'player_description_words_number' => '',
1038
  'player_order' => '1',
1039
 
1040
  // Search options
1058
  'thumb_pagination' => '1',
1059
  'thumb_order_thumb' => '1',
1060
  'thumb_order_title' => '2',
1061
+ 'thumb_order_publishedAt' => '3',
1062
+ 'thumb_order_desc' => '4',
1063
  'thumb_order' => '3',
1064
 
1065
  'title' => '',
1066
+ 'published_date' => '',
1067
  'description' => '',
1068
+ 'duration' => '',
1069
  'thumbnail_alignment' => 'none',
1070
  'thumbnail_alignment_width' => 'half',
1071
  'thumbnail_alignment_device' => 'tablet',
1106
  $instance['ytchag_modestbranding'] = $modestbranding;
1107
  $instance['ytchag_rel'] = $rel;
1108
  $instance['ytchag_showinfo'] = $showinfo;
1109
+ $instance['ytchag_player_title'] = $player_title;
1110
+ $instance['ytchag_player_publishedAt'] = $player_published_date;
1111
+ $instance['ytchag_player_description'] = $player_description;
1112
+ $instance['ytchag_player_title_tag'] = $player_title_tag;
1113
+ $instance['ytchag_player_description_words_number'] = $player_description_words_number;
1114
  $instance['ytchag_player_order'] = $player_order;
1115
 
1116
  // Search options
1134
  $instance['ytchag_thumb_pagination'] = $thumb_pagination;
1135
  $instance['ytchag_thumb_order_thumb'] = $thumb_order_thumb;
1136
  $instance['ytchag_thumb_order_title'] = $thumb_order_title;
1137
+ $instance['ytchag_thumb_order_publishedAt'] = $thumb_order_publishedAt;
1138
  $instance['ytchag_thumb_order_desc'] = $thumb_order_desc;
1139
  $instance['ytchag_thumb_order'] = $thumb_order;
1140
 
1141
  $instance['ytchag_title'] = $title;
1142
+ $instance['ytchag_publishedAt'] = $published_date;
1143
  $instance['ytchag_description'] = $description;
1144
+ $instance['ytchag_duration'] = $duration;
1145
  $instance['ytchag_thumbnail_alignment'] = $thumbnail_alignment;
1146
  $instance['ytchag_thumbnail_alignment_width'] = $thumbnail_alignment_width;
1147
  $instance['ytchag_thumbnail_alignment_device'] = $thumbnail_alignment_device;
1163
  $instance['ytchag_user_uploads'] = $playlists['uploads'];
1164
  $instance['ytchag_user_favorites'] = isset($playlists['favorites']) ? $playlists['favorites'] : null;
1165
 
1166
+ if (!$instance['ytchag_thumb_columns_phones'] &&
1167
  !$instance['ytchag_thumb_columns_tablets'] &&
1168
  !$instance['ytchag_thumb_columns_md'] &&
1169
  !$instance['ytchag_thumb_columns_ld']) {