Youtube Channel Gallery - Version 1.8.4

Version Description

  • Changes in CSS.
  • Added option to add "nofollow" attribute to links.
  • Improvements in the code.
Download this release

Release Info

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

Code changes from version 1.8.3 to 1.8.4

languages/youtube-channel-gallery-es_ES.mo CHANGED
Binary file
languages/youtube-channel-gallery-es_ES.po CHANGED
@@ -7,9 +7,9 @@ msgid ""
7
  msgstr ""
8
  "Project-Id-Version: youtube-channel-gallery\n"
9
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2013-05-15 18:09+0100\n"
11
- "PO-Revision-Date: 2013-05-15 18:09+0100\n"
12
- "Last-Translator: Javier <javierpose@gmail.com>\n"
13
  "Language-Team: PoseLab <javierpose@gmail.com>\n"
14
  "MIME-Version: 1.0\n"
15
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -31,298 +31,320 @@ msgstr "Galería de Canal de Youtube"
31
  msgid "Show a youtube video and a gallery of thumbnails for a youtube channel"
32
  msgstr "Muestra un vídeo y una galería de miniaturas de una canal de Youtube "
33
 
34
- #: youtube-channel-gallery.php:201
35
  msgid "Title:"
36
  msgstr "Título:"
37
 
38
- #: youtube-channel-gallery.php:327
39
- #: youtube-channel-gallery.php:331
40
- #: youtube-channel-gallery.php:372
41
- msgid "YouTube user id:"
42
- msgstr "Id de usuario de Youtube:"
43
-
44
- #: youtube-channel-gallery.php:334
45
- msgid "YouTube playlist id:"
46
- msgstr "Id de lista de reproducción de YouTube:"
47
-
48
- #: youtube-channel-gallery.php:347
49
  msgid "Feed"
50
  msgstr "Feed"
51
 
52
- #: youtube-channel-gallery.php:348
53
  msgid "Player"
54
  msgstr "Reproductor"
55
 
56
- #: youtube-channel-gallery.php:349
57
  msgid "Thumbnails"
58
  msgstr "Miniaturas"
59
 
60
- #: youtube-channel-gallery.php:350
61
  msgid "Link"
62
  msgstr "Enlace"
63
 
64
- #: youtube-channel-gallery.php:363
65
  msgid "Video feed type:"
66
  msgstr "Tipo de feed de vídeo:"
67
 
68
- #: youtube-channel-gallery.php:365
69
  msgid "Uploaded by a user"
70
  msgstr "Subidos por el usuario"
71
 
72
- #: youtube-channel-gallery.php:367
73
  msgid "Playlist"
74
  msgstr "Lista de reproducción"
75
 
76
- #: youtube-channel-gallery.php:377
 
 
 
 
 
 
 
 
77
  msgid "Playlist order:"
78
  msgstr "Orden de lista de reproducción:"
79
 
80
- #: youtube-channel-gallery.php:379
81
  msgid "Ascending Order"
82
  msgstr "Ascendente"
83
 
84
- #: youtube-channel-gallery.php:380
85
  msgid "Descending Order"
86
  msgstr "Descendente"
87
 
88
- #: youtube-channel-gallery.php:385
89
  msgid "Cache time (hours):"
90
  msgstr "Tiempo de cache (horas):"
91
 
92
- #: youtube-channel-gallery.php:387
93
  msgid "Hours that RSS data is saved in database, to not make a request every time the page is displayed. Assign this value according to how often you upgrade your playlist in YouTube."
94
  msgstr "Horas que los datos del RSS se guardan en la base de datos, para no hacer una solicitud cada vez que se muestra la página. Asigna este valor en función de la frecuencia con que actualizas la lista de reproducción en YouTube."
95
 
96
- #: youtube-channel-gallery.php:392
97
  msgid "Activate cache"
98
  msgstr "Activar caché"
99
 
100
- #: youtube-channel-gallery.php:393
101
  msgid "If you disable this field the cache will be deleted and will not be used. This is useful to refresh immediately the YouTube RSS used by the plugin. Reenable the cache when the gallery shows the changes you made in your youtube account."
102
  msgstr "Si se deshabilita este campo la caché se borrará y no será utilizada. Esto es útil para actualizar inmediatamente el RSS de YouTube usado por el plugin. Vuelve a habilitar la caché cuando la galería muestre los cambios que ha realizado en su cuenta de YouTube."
103
 
104
- #: youtube-channel-gallery.php:408
105
- #: youtube-channel-gallery.php:490
106
  msgid "Aspect ratio:"
107
  msgstr "Relación de aspecto:"
108
 
109
- #: youtube-channel-gallery.php:410
110
- #: youtube-channel-gallery.php:492
111
  msgid "Standard (4x3)"
112
  msgstr "Estándar (4x3)"
113
 
114
- #: youtube-channel-gallery.php:411
115
- #: youtube-channel-gallery.php:493
116
  msgid "Widescreen (16x9)"
117
  msgstr "Panorámico (16x9)"
118
 
119
- #: youtube-channel-gallery.php:416
120
  msgid "Theme:"
121
  msgstr "Tema:"
122
 
123
- #: youtube-channel-gallery.php:418
124
  msgid "Dark"
125
  msgstr "Oscuro"
126
 
127
- #: youtube-channel-gallery.php:419
128
  msgid "Light"
129
  msgstr "Claro"
130
 
131
- #: youtube-channel-gallery.php:424
132
  msgid "Progress bar color:"
133
  msgstr "Color de barra de progreso:"
134
 
135
- #: youtube-channel-gallery.php:426
136
  msgid "Red"
137
  msgstr "Rojo"
138
 
139
- #: youtube-channel-gallery.php:427
140
  msgid "White"
141
  msgstr "Blanco"
142
 
143
- #: youtube-channel-gallery.php:432
144
  msgid "Video quality:"
145
  msgstr "Calidad del vídeo:"
146
 
147
- #: youtube-channel-gallery.php:434
148
  msgid "default"
149
  msgstr "por defecto"
150
 
151
- #: youtube-channel-gallery.php:435
152
  msgid "highres"
153
  msgstr "alta resolución"
154
 
155
- #: youtube-channel-gallery.php:436
156
  msgid "hd1080"
157
  msgstr "hd1080"
158
 
159
- #: youtube-channel-gallery.php:437
160
  msgid "hd720"
161
  msgstr "hd720"
162
 
163
- #: youtube-channel-gallery.php:438
164
  msgid "large"
165
  msgstr "largo"
166
 
167
- #: youtube-channel-gallery.php:439
168
  msgid "medium"
169
  msgstr "mediano"
170
 
171
- #: youtube-channel-gallery.php:440
172
  msgid "small"
173
  msgstr "pequeño"
174
 
175
- #: youtube-channel-gallery.php:442
176
  msgid "Default value enables YouTube to select the most appropriate playback quality. If you select a quality level that is not available for the video, then the quality will be set to the next lowest level that is available."
177
  msgstr "El valor predeterminado permite a YouTube seleccionar la calidad de reproducción más adecuada. Si selecciona un nivel de calidad que no está disponible para el vídeo, la calidad se ajustará al siguiente nivel más bajo que este disponible."
178
 
179
- #: youtube-channel-gallery.php:446
180
  msgid "Autoplay"
181
  msgstr "Autoplay"
182
 
183
- #: youtube-channel-gallery.php:451
184
  msgid "Show YouTube logo"
185
  msgstr "Mostrar el logotipo de YouTube"
186
 
187
- #: youtube-channel-gallery.php:452
188
  msgid "Activate this field to show the YouTube logo in the control bar. Setting the color parameter to white will show the YouTube logo in the control bar."
189
  msgstr "Activa este campo para mostrar el logotipo de YouTube en la barra de control. Un ajuste del parámetro de color a blanco mostrará el logotipo de YouTube en la barra de control."
190
 
191
- #: youtube-channel-gallery.php:457
192
  msgid "Show related videos"
193
  msgstr "Mostrar los vídeos relacionados"
194
 
195
- #: youtube-channel-gallery.php:458
196
  msgid "Activate this field to show related videos when playback of the video ends."
197
  msgstr "Activa este campo para mostrar videos relacionados cuando termine la reproducción del vídeo."
198
 
199
- #: youtube-channel-gallery.php:463
200
  msgid "Show info"
201
  msgstr "Mostrar información"
202
 
203
- #: youtube-channel-gallery.php:464
204
  msgid "Activate this field to display information like the video title and uploader before the video starts playing."
205
  msgstr "Active este campo para mostrar información como el título del vídeo y nombre de usuario antes de que el vídeo comience a reproducirse."
206
 
207
- #: youtube-channel-gallery.php:477
208
  msgid "Number of videos to show:"
209
  msgstr "Número de vídeos a mostrar:"
210
 
211
- #: youtube-channel-gallery.php:479
212
  msgid "The plugin can display a maximum of 50 videos. This limitation will change in a future release."
213
  msgstr "El plugin puede mostrar un máximo de 50 vídeos. Esta limitación cambiará en una futura versión."
214
 
215
- #: youtube-channel-gallery.php:483
216
  msgid "Thumbnail width:"
217
  msgstr "Ancho de miniaturas:"
218
 
219
- #: youtube-channel-gallery.php:485
220
  msgid "This field is used to assign the appropriate quality of thumbnail images in top and bottom alignments and to assign width to thumbnails in left and right alignments. If the quality of thumbnail images is not enough, insert a larger value. If you are unsure you can assign one of the following values​​: 120, 320, 480 or 640"
221
  msgstr "Este campo se utiliza para asignar la calidad de imagen más adecuada a las miniaturas en las alineaciones superior e inferior y para asignar ancho a las miniaturas en las alineaciones izquierda y derecha. Si la calidad de las imágenes de las miniaturas no es suficiente, introduzca un valor mayor. Si no está seguro de que valor usar puede asignar uno de los siguientes valores: 120, 320, 480 ó 640"
222
 
223
- #: youtube-channel-gallery.php:498
224
  msgid "Thumbnail columns:"
225
  msgstr "Columnas de las miniaturas:"
226
 
227
- #: youtube-channel-gallery.php:505
 
 
 
 
 
 
 
 
228
  msgid "Show title or description"
229
  msgstr "Mostrar título y descripción"
230
 
231
- #: youtube-channel-gallery.php:512
232
  msgid "Show title"
233
  msgstr "Mostrar Título"
234
 
235
- #: youtube-channel-gallery.php:517
236
  msgid "Show description"
237
  msgstr "Mostrar descripción"
238
 
239
- #: youtube-channel-gallery.php:521
240
  msgid "Thumbnail alignment:"
241
  msgstr "Alineación de miniaturas:"
242
 
243
- #: youtube-channel-gallery.php:523
244
  msgid "Left"
245
  msgstr "Izquierda"
246
 
247
- #: youtube-channel-gallery.php:524
248
  msgid "Right"
249
  msgstr "Derecha"
250
 
251
- #: youtube-channel-gallery.php:525
252
  msgid "Top"
253
  msgstr "Arriba"
254
 
255
- #: youtube-channel-gallery.php:526
256
  msgid "Bottom"
257
  msgstr "Abajo"
258
 
259
- #: youtube-channel-gallery.php:531
260
  msgid "Description words number:"
261
  msgstr "Número de palabras en la descripción:"
262
 
263
- #: youtube-channel-gallery.php:533
264
  msgid "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."
265
  msgstr "Establece el número máximo de palabras que se mostrarán en la descripción. Este campo es útil cuando la descripción de los vídeos de la galería tienen diferentes tamaños."
266
 
267
- #: youtube-channel-gallery.php:553
268
  msgid "Link text:"
269
  msgstr "Texto del enlace"
270
 
271
- #: youtube-channel-gallery.php:559
272
  msgid "Show link to channel"
273
  msgstr "Mostrar enlace al canal"
274
 
275
- #: youtube-channel-gallery.php:564
276
  msgid "Open in a new window or tab"
277
  msgstr "Abrir en una ventana nueva o pestaña"
278
 
279
- #: youtube-channel-gallery.php:650
280
  msgid "Show more videos»"
281
  msgstr "Ver más vídeos»"
282
 
283
- #: youtube-channel-gallery.php:663
284
  msgid "There is no video to show."
285
  msgstr "No hay ningún vídeo para mostrar."
286
 
287
- #: youtube-channel-gallery.php:734
288
  #, php-format
289
  msgid "Message from server: %1$s. Check in YouTube if the id <a href=\"%2$s\" target=\"_blank\">%3$s</a> belongs to a %4$s. To locate the id of your %4$s check the <a href=\"http://wordpress.org/extend/plugins/youtube-channel-gallery/faq/\" target=\"_blank\">FAQ</a> of the plugin."
290
  msgstr "Mensaje del servidor: %1$s. Compruebe en YouTube si el id <a href=\"%2$s\" target=\"_blank\">%3$s</a> pertenece a un %4$s. Para localizar el id de la carpeta %4$s revise el <a href=\"http://wordpress.org/extend/plugins/youtube-channel-gallery/faq/\" target=\"_blank\"> FAQ </ a> del plugin."
291
 
292
  #~ msgid "Video width:"
293
  #~ msgstr "Ancho del vídeo:"
 
294
  #~ msgid "Show info (title, uploader)"
295
  #~ msgstr "Mostrar información (título, cargador)"
 
296
  #~ msgid "You must insert a valid YouTube user id."
297
  #~ msgstr "Debes introducir un id válido de usuario de YouTube."
 
298
  #~ msgid "You must insert a valid playlist id."
299
  #~ msgstr "Debes introducir un id válido de lista de reproducción de YouTube."
 
300
  #~ msgid "User's favorites"
301
  #~ msgstr "Favoritos del usuario"
 
302
  #~ msgid "Light:"
303
  #~ msgstr "Claro"
 
304
  #~ msgid "No post to duplicate has been supplied!"
305
  #~ msgstr "No se facilitó ninguna entrada a copiar"
 
306
  #~ msgid "Post creation failed, could not find original post:"
307
  #~ msgstr ""
308
  #~ "Creación realizada sin éxito, no ha sido posible encontrar la entrada "
309
  #~ "original:"
 
310
  #~ msgid "No page to duplicate has been supplied!"
311
  #~ msgstr "No se facilitó ninguna página a copiar"
 
312
  #~ msgid "Make a duplicate from this post"
313
  #~ msgstr "Crea una copia de esta entrada"
 
314
  #~ msgid "Duplicate"
315
  #~ msgstr "Duplicar"
 
316
  #~ msgid "Make a duplicate from this page"
317
  #~ msgstr "Crea una copia de esta página"
 
318
  #~ msgid "Copy to a new draft"
319
  #~ msgstr "Copia en un borrador nuevo"
 
320
  #~ msgid "Duplicate Post Options"
321
  #~ msgstr "Opciones"
 
322
  #~ msgid "Duplicate Post"
323
  #~ msgstr "Duplicate Post"
 
324
  #~ msgid "Copy post/page date also"
325
  #~ msgstr "Copiar también fecha del post o la página"
 
326
  #~ msgid ""
327
  #~ "Normally, the new draft has publication date set to current time: check "
328
  #~ "the box to copy the original post/page date"
@@ -330,42 +352,54 @@ msgstr "Mensaje del servidor: %1$s. Compruebe en YouTube si el id <a href=\"%2$s
330
  #~ "Normalmente se establece la fecha de publicación del nuevo borrador a la "
331
  #~ "fecha actual: compruebe la casilla para copiar la fecha original del post "
332
  #~ "o la página"
 
333
  #~ msgid "Do not copy these fields"
334
  #~ msgstr "No copiar estos campos"
 
335
  #~ msgid ""
336
  #~ "Comma-separated list of meta fields that must not be copied when cloning "
337
  #~ "a post/page"
338
  #~ msgstr ""
339
  #~ "Lista separada por comas de meta campos que no pueden ser copiados cuando "
340
  #~ "se clona una entrada/pagina."
 
341
  #~ msgid "Title prefix"
342
  #~ msgstr "Prefijo del titulo"
 
343
  #~ msgid ""
344
  #~ "Prefix to be added before the original title when cloning a post/page, e."
345
  #~ "g. \"Copy of\" (blank for no prefix)"
346
  #~ msgstr ""
347
  #~ "Prefijo a ser agregado antes del titulo original cuando se clona una "
348
  #~ "entrada/pagina, ej. \"Copia de\" (en blanco para no agregar prefijo)"
 
349
  #~ msgid "Minimum level to copy posts"
350
  #~ msgstr "Nivel mínimo para copiar posts"
 
351
  #~ msgid ""
352
  #~ "Warning: users will be able to copy all posts, even those of higher level "
353
  #~ "users"
354
  #~ msgstr ""
355
  #~ "Atención: los usuarios podrán copiar todos los posts, incluso aquellos de "
356
  #~ "usuarios de nivel más alto"
 
357
  #~ msgid "Save Changes"
358
  #~ msgstr "Guardar los cambios"
 
359
  #~ msgid "Donate"
360
  #~ msgstr "Hacer una donación"
 
361
  #~ msgid "Translate"
362
  #~ msgstr "Traducir"
 
363
  #~ msgid "http://www.lopo.it/duplicate-post-plugin/"
364
  #~ msgstr "Copy text \t http://www.lopo.it/duplicate-post-plugin/"
 
365
  #~ msgid "Creates a copy of a post."
366
  #~ msgstr "Crear una copia de las entradas."
 
367
  #~ msgid "Enrico Battocchi"
368
  #~ msgstr "Enrico Battocchi"
 
369
  #~ msgid "http://www.lopo.it"
370
  #~ msgstr "http://www.lopo.it"
371
-
7
  msgstr ""
8
  "Project-Id-Version: youtube-channel-gallery\n"
9
  "Report-Msgid-Bugs-To: \n"
10
+ "POT-Creation-Date: 2013-05-20 22:17+0100\n"
11
+ "PO-Revision-Date: 2013-05-20 22:19+0100\n"
12
+ "Last-Translator: \n"
13
  "Language-Team: PoseLab <javierpose@gmail.com>\n"
14
  "MIME-Version: 1.0\n"
15
  "Content-Type: text/plain; charset=UTF-8\n"
31
  msgid "Show a youtube video and a gallery of thumbnails for a youtube channel"
32
  msgstr "Muestra un vídeo y una galería de miniaturas de una canal de Youtube "
33
 
34
+ #: youtube-channel-gallery.php:174
35
  msgid "Title:"
36
  msgstr "Título:"
37
 
38
+ #: youtube-channel-gallery.php:180
 
 
 
 
 
 
 
 
 
 
39
  msgid "Feed"
40
  msgstr "Feed"
41
 
42
+ #: youtube-channel-gallery.php:181
43
  msgid "Player"
44
  msgstr "Reproductor"
45
 
46
+ #: youtube-channel-gallery.php:182
47
  msgid "Thumbnails"
48
  msgstr "Miniaturas"
49
 
50
+ #: youtube-channel-gallery.php:183
51
  msgid "Link"
52
  msgstr "Enlace"
53
 
54
+ #: youtube-channel-gallery.php:196
55
  msgid "Video feed type:"
56
  msgstr "Tipo de feed de vídeo:"
57
 
58
+ #: youtube-channel-gallery.php:198
59
  msgid "Uploaded by a user"
60
  msgstr "Subidos por el usuario"
61
 
62
+ #: youtube-channel-gallery.php:200
63
  msgid "Playlist"
64
  msgstr "Lista de reproducción"
65
 
66
+ #: youtube-channel-gallery.php:205
67
+ msgid "YouTube user id:"
68
+ msgstr "Id de usuario de Youtube:"
69
+
70
+ #: youtube-channel-gallery.php:206
71
+ msgid "YouTube playlist id:"
72
+ msgstr "Id de lista de reproducción de YouTube:"
73
+
74
+ #: youtube-channel-gallery.php:211
75
  msgid "Playlist order:"
76
  msgstr "Orden de lista de reproducción:"
77
 
78
+ #: youtube-channel-gallery.php:213
79
  msgid "Ascending Order"
80
  msgstr "Ascendente"
81
 
82
+ #: youtube-channel-gallery.php:214
83
  msgid "Descending Order"
84
  msgstr "Descendente"
85
 
86
+ #: youtube-channel-gallery.php:219
87
  msgid "Cache time (hours):"
88
  msgstr "Tiempo de cache (horas):"
89
 
90
+ #: youtube-channel-gallery.php:221
91
  msgid "Hours that RSS data is saved in database, to not make a request every time the page is displayed. Assign this value according to how often you upgrade your playlist in YouTube."
92
  msgstr "Horas que los datos del RSS se guardan en la base de datos, para no hacer una solicitud cada vez que se muestra la página. Asigna este valor en función de la frecuencia con que actualizas la lista de reproducción en YouTube."
93
 
94
+ #: youtube-channel-gallery.php:226
95
  msgid "Activate cache"
96
  msgstr "Activar caché"
97
 
98
+ #: youtube-channel-gallery.php:227
99
  msgid "If you disable this field the cache will be deleted and will not be used. This is useful to refresh immediately the YouTube RSS used by the plugin. Reenable the cache when the gallery shows the changes you made in your youtube account."
100
  msgstr "Si se deshabilita este campo la caché se borrará y no será utilizada. Esto es útil para actualizar inmediatamente el RSS de YouTube usado por el plugin. Vuelve a habilitar la caché cuando la galería muestre los cambios que ha realizado en su cuenta de YouTube."
101
 
102
+ #: youtube-channel-gallery.php:242
103
+ #: youtube-channel-gallery.php:324
104
  msgid "Aspect ratio:"
105
  msgstr "Relación de aspecto:"
106
 
107
+ #: youtube-channel-gallery.php:244
108
+ #: youtube-channel-gallery.php:326
109
  msgid "Standard (4x3)"
110
  msgstr "Estándar (4x3)"
111
 
112
+ #: youtube-channel-gallery.php:245
113
+ #: youtube-channel-gallery.php:327
114
  msgid "Widescreen (16x9)"
115
  msgstr "Panorámico (16x9)"
116
 
117
+ #: youtube-channel-gallery.php:250
118
  msgid "Theme:"
119
  msgstr "Tema:"
120
 
121
+ #: youtube-channel-gallery.php:252
122
  msgid "Dark"
123
  msgstr "Oscuro"
124
 
125
+ #: youtube-channel-gallery.php:253
126
  msgid "Light"
127
  msgstr "Claro"
128
 
129
+ #: youtube-channel-gallery.php:258
130
  msgid "Progress bar color:"
131
  msgstr "Color de barra de progreso:"
132
 
133
+ #: youtube-channel-gallery.php:260
134
  msgid "Red"
135
  msgstr "Rojo"
136
 
137
+ #: youtube-channel-gallery.php:261
138
  msgid "White"
139
  msgstr "Blanco"
140
 
141
+ #: youtube-channel-gallery.php:266
142
  msgid "Video quality:"
143
  msgstr "Calidad del vídeo:"
144
 
145
+ #: youtube-channel-gallery.php:268
146
  msgid "default"
147
  msgstr "por defecto"
148
 
149
+ #: youtube-channel-gallery.php:269
150
  msgid "highres"
151
  msgstr "alta resolución"
152
 
153
+ #: youtube-channel-gallery.php:270
154
  msgid "hd1080"
155
  msgstr "hd1080"
156
 
157
+ #: youtube-channel-gallery.php:271
158
  msgid "hd720"
159
  msgstr "hd720"
160
 
161
+ #: youtube-channel-gallery.php:272
162
  msgid "large"
163
  msgstr "largo"
164
 
165
+ #: youtube-channel-gallery.php:273
166
  msgid "medium"
167
  msgstr "mediano"
168
 
169
+ #: youtube-channel-gallery.php:274
170
  msgid "small"
171
  msgstr "pequeño"
172
 
173
+ #: youtube-channel-gallery.php:276
174
  msgid "Default value enables YouTube to select the most appropriate playback quality. If you select a quality level that is not available for the video, then the quality will be set to the next lowest level that is available."
175
  msgstr "El valor predeterminado permite a YouTube seleccionar la calidad de reproducción más adecuada. Si selecciona un nivel de calidad que no está disponible para el vídeo, la calidad se ajustará al siguiente nivel más bajo que este disponible."
176
 
177
+ #: youtube-channel-gallery.php:280
178
  msgid "Autoplay"
179
  msgstr "Autoplay"
180
 
181
+ #: youtube-channel-gallery.php:285
182
  msgid "Show YouTube logo"
183
  msgstr "Mostrar el logotipo de YouTube"
184
 
185
+ #: youtube-channel-gallery.php:286
186
  msgid "Activate this field to show the YouTube logo in the control bar. Setting the color parameter to white will show the YouTube logo in the control bar."
187
  msgstr "Activa este campo para mostrar el logotipo de YouTube en la barra de control. Un ajuste del parámetro de color a blanco mostrará el logotipo de YouTube en la barra de control."
188
 
189
+ #: youtube-channel-gallery.php:291
190
  msgid "Show related videos"
191
  msgstr "Mostrar los vídeos relacionados"
192
 
193
+ #: youtube-channel-gallery.php:292
194
  msgid "Activate this field to show related videos when playback of the video ends."
195
  msgstr "Activa este campo para mostrar videos relacionados cuando termine la reproducción del vídeo."
196
 
197
+ #: youtube-channel-gallery.php:297
198
  msgid "Show info"
199
  msgstr "Mostrar información"
200
 
201
+ #: youtube-channel-gallery.php:298
202
  msgid "Activate this field to display information like the video title and uploader before the video starts playing."
203
  msgstr "Active este campo para mostrar información como el título del vídeo y nombre de usuario antes de que el vídeo comience a reproducirse."
204
 
205
+ #: youtube-channel-gallery.php:311
206
  msgid "Number of videos to show:"
207
  msgstr "Número de vídeos a mostrar:"
208
 
209
+ #: youtube-channel-gallery.php:313
210
  msgid "The plugin can display a maximum of 50 videos. This limitation will change in a future release."
211
  msgstr "El plugin puede mostrar un máximo de 50 vídeos. Esta limitación cambiará en una futura versión."
212
 
213
+ #: youtube-channel-gallery.php:317
214
  msgid "Thumbnail width:"
215
  msgstr "Ancho de miniaturas:"
216
 
217
+ #: youtube-channel-gallery.php:319
218
  msgid "This field is used to assign the appropriate quality of thumbnail images in top and bottom alignments and to assign width to thumbnails in left and right alignments. If the quality of thumbnail images is not enough, insert a larger value. If you are unsure you can assign one of the following values​​: 120, 320, 480 or 640"
219
  msgstr "Este campo se utiliza para asignar la calidad de imagen más adecuada a las miniaturas en las alineaciones superior e inferior y para asignar ancho a las miniaturas en las alineaciones izquierda y derecha. Si la calidad de las imágenes de las miniaturas no es suficiente, introduzca un valor mayor. Si no está seguro de que valor usar puede asignar uno de los siguientes valores: 120, 320, 480 ó 640"
220
 
221
+ #: youtube-channel-gallery.php:332
222
  msgid "Thumbnail columns:"
223
  msgstr "Columnas de las miniaturas:"
224
 
225
+ #: youtube-channel-gallery.php:338
226
+ msgid "Add \"nofollow\" attribute to links"
227
+ msgstr "Añade el atributo \"nofollow\" a los enlaces"
228
+
229
+ #: youtube-channel-gallery.php:339
230
+ msgid "\"nofollow\" attribute provides a way for webmasters to tell search engines \"Don't follow this specific link.\""
231
+ msgstr "El atributo \"nofollow\" ofrece a los webmasters un modo de indicar a los motores de búsqueda para no seguir un enlace."
232
+
233
+ #: youtube-channel-gallery.php:344
234
  msgid "Show title or description"
235
  msgstr "Mostrar título y descripción"
236
 
237
+ #: youtube-channel-gallery.php:351
238
  msgid "Show title"
239
  msgstr "Mostrar Título"
240
 
241
+ #: youtube-channel-gallery.php:356
242
  msgid "Show description"
243
  msgstr "Mostrar descripción"
244
 
245
+ #: youtube-channel-gallery.php:360
246
  msgid "Thumbnail alignment:"
247
  msgstr "Alineación de miniaturas:"
248
 
249
+ #: youtube-channel-gallery.php:362
250
  msgid "Left"
251
  msgstr "Izquierda"
252
 
253
+ #: youtube-channel-gallery.php:363
254
  msgid "Right"
255
  msgstr "Derecha"
256
 
257
+ #: youtube-channel-gallery.php:364
258
  msgid "Top"
259
  msgstr "Arriba"
260
 
261
+ #: youtube-channel-gallery.php:365
262
  msgid "Bottom"
263
  msgstr "Abajo"
264
 
265
+ #: youtube-channel-gallery.php:370
266
  msgid "Description words number:"
267
  msgstr "Número de palabras en la descripción:"
268
 
269
+ #: youtube-channel-gallery.php:372
270
  msgid "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."
271
  msgstr "Establece el número máximo de palabras que se mostrarán en la descripción. Este campo es útil cuando la descripción de los vídeos de la galería tienen diferentes tamaños."
272
 
273
+ #: youtube-channel-gallery.php:392
274
  msgid "Link text:"
275
  msgstr "Texto del enlace"
276
 
277
+ #: youtube-channel-gallery.php:398
278
  msgid "Show link to channel"
279
  msgstr "Mostrar enlace al canal"
280
 
281
+ #: youtube-channel-gallery.php:403
282
  msgid "Open in a new window or tab"
283
  msgstr "Abrir en una ventana nueva o pestaña"
284
 
285
+ #: youtube-channel-gallery.php:492
286
  msgid "Show more videos»"
287
  msgstr "Ver más vídeos»"
288
 
289
+ #: youtube-channel-gallery.php:505
290
  msgid "There is no video to show."
291
  msgstr "No hay ningún vídeo para mostrar."
292
 
293
+ #: youtube-channel-gallery.php:576
294
  #, php-format
295
  msgid "Message from server: %1$s. Check in YouTube if the id <a href=\"%2$s\" target=\"_blank\">%3$s</a> belongs to a %4$s. To locate the id of your %4$s check the <a href=\"http://wordpress.org/extend/plugins/youtube-channel-gallery/faq/\" target=\"_blank\">FAQ</a> of the plugin."
296
  msgstr "Mensaje del servidor: %1$s. Compruebe en YouTube si el id <a href=\"%2$s\" target=\"_blank\">%3$s</a> pertenece a un %4$s. Para localizar el id de la carpeta %4$s revise el <a href=\"http://wordpress.org/extend/plugins/youtube-channel-gallery/faq/\" target=\"_blank\"> FAQ </ a> del plugin."
297
 
298
  #~ msgid "Video width:"
299
  #~ msgstr "Ancho del vídeo:"
300
+
301
  #~ msgid "Show info (title, uploader)"
302
  #~ msgstr "Mostrar información (título, cargador)"
303
+
304
  #~ msgid "You must insert a valid YouTube user id."
305
  #~ msgstr "Debes introducir un id válido de usuario de YouTube."
306
+
307
  #~ msgid "You must insert a valid playlist id."
308
  #~ msgstr "Debes introducir un id válido de lista de reproducción de YouTube."
309
+
310
  #~ msgid "User's favorites"
311
  #~ msgstr "Favoritos del usuario"
312
+
313
  #~ msgid "Light:"
314
  #~ msgstr "Claro"
315
+
316
  #~ msgid "No post to duplicate has been supplied!"
317
  #~ msgstr "No se facilitó ninguna entrada a copiar"
318
+
319
  #~ msgid "Post creation failed, could not find original post:"
320
  #~ msgstr ""
321
  #~ "Creación realizada sin éxito, no ha sido posible encontrar la entrada "
322
  #~ "original:"
323
+
324
  #~ msgid "No page to duplicate has been supplied!"
325
  #~ msgstr "No se facilitó ninguna página a copiar"
326
+
327
  #~ msgid "Make a duplicate from this post"
328
  #~ msgstr "Crea una copia de esta entrada"
329
+
330
  #~ msgid "Duplicate"
331
  #~ msgstr "Duplicar"
332
+
333
  #~ msgid "Make a duplicate from this page"
334
  #~ msgstr "Crea una copia de esta página"
335
+
336
  #~ msgid "Copy to a new draft"
337
  #~ msgstr "Copia en un borrador nuevo"
338
+
339
  #~ msgid "Duplicate Post Options"
340
  #~ msgstr "Opciones"
341
+
342
  #~ msgid "Duplicate Post"
343
  #~ msgstr "Duplicate Post"
344
+
345
  #~ msgid "Copy post/page date also"
346
  #~ msgstr "Copiar también fecha del post o la página"
347
+
348
  #~ msgid ""
349
  #~ "Normally, the new draft has publication date set to current time: check "
350
  #~ "the box to copy the original post/page date"
352
  #~ "Normalmente se establece la fecha de publicación del nuevo borrador a la "
353
  #~ "fecha actual: compruebe la casilla para copiar la fecha original del post "
354
  #~ "o la página"
355
+
356
  #~ msgid "Do not copy these fields"
357
  #~ msgstr "No copiar estos campos"
358
+
359
  #~ msgid ""
360
  #~ "Comma-separated list of meta fields that must not be copied when cloning "
361
  #~ "a post/page"
362
  #~ msgstr ""
363
  #~ "Lista separada por comas de meta campos que no pueden ser copiados cuando "
364
  #~ "se clona una entrada/pagina."
365
+
366
  #~ msgid "Title prefix"
367
  #~ msgstr "Prefijo del titulo"
368
+
369
  #~ msgid ""
370
  #~ "Prefix to be added before the original title when cloning a post/page, e."
371
  #~ "g. \"Copy of\" (blank for no prefix)"
372
  #~ msgstr ""
373
  #~ "Prefijo a ser agregado antes del titulo original cuando se clona una "
374
  #~ "entrada/pagina, ej. \"Copia de\" (en blanco para no agregar prefijo)"
375
+
376
  #~ msgid "Minimum level to copy posts"
377
  #~ msgstr "Nivel mínimo para copiar posts"
378
+
379
  #~ msgid ""
380
  #~ "Warning: users will be able to copy all posts, even those of higher level "
381
  #~ "users"
382
  #~ msgstr ""
383
  #~ "Atención: los usuarios podrán copiar todos los posts, incluso aquellos de "
384
  #~ "usuarios de nivel más alto"
385
+
386
  #~ msgid "Save Changes"
387
  #~ msgstr "Guardar los cambios"
388
+
389
  #~ msgid "Donate"
390
  #~ msgstr "Hacer una donación"
391
+
392
  #~ msgid "Translate"
393
  #~ msgstr "Traducir"
394
+
395
  #~ msgid "http://www.lopo.it/duplicate-post-plugin/"
396
  #~ msgstr "Copy text \t http://www.lopo.it/duplicate-post-plugin/"
397
+
398
  #~ msgid "Creates a copy of a post."
399
  #~ msgstr "Crear una copia de las entradas."
400
+
401
  #~ msgid "Enrico Battocchi"
402
  #~ msgstr "Enrico Battocchi"
403
+
404
  #~ msgid "http://www.lopo.it"
405
  #~ msgstr "http://www.lopo.it"
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: javitxu123
3
  Donate link: http://poselab.com/
4
  Tags: widget, gallery, youtube, channel, user, sidebar, video, youtube playlist, html5, iframe, Youtube channel, youtube videos
5
  Requires at least: 2.8
6
- Tested up to: 3.4.1
7
- Stable tag: 1.8.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -65,6 +65,7 @@ Description of the different fields of the plugin:
65
  * **Thumbnail width:** indicates the width of the thumbnails. The height is automatically generated based on the aspect ratio selected. Shortcode attribute: thumbwidth; value: Number. (Optional).
66
  * **Aspect ratio:** indicates the proportions of the thumbnails, standard (4:3) or widescreen (16:9) format. Shortcode attribute: thumbratio; values: 4x3 (default) or 16x9. (Optional).
67
  * **Thumbnail columns:** it allows to control the number of columns in which the thumbnails are distributed. Shortcode attribute: thumbcolumns; value: Number. (Optional).
 
68
  * **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).
69
  * **Show description:** it shows the description of the thumbnail with the number of specified words. Shortcode attribute: description; values: 0 (default) or 1. (Optional).
70
  * **Thumbnail alignment:** it defines the alignment of the thumbnail respect to its description and title. Shortcode attribute: thumbnail_alignment; values: left (default), right, top or bottom. (Optional).
@@ -114,6 +115,11 @@ If you go to a playlist you will get the following url format: https://www.youtu
114
 
115
  This will happen if your playlist has more than 1000 videos because YouTube API has this limit.
116
 
 
 
 
 
 
117
 
118
  == Screenshots ==
119
 
@@ -126,6 +132,11 @@ This will happen if your playlist has more than 1000 videos because YouTube API
126
 
127
  == Changelog ==
128
 
 
 
 
 
 
129
  = 1.8.3 =
130
  * Fixed error with alignments without title or description.
131
  * Changes in CSS.
3
  Donate link: http://poselab.com/
4
  Tags: widget, gallery, youtube, channel, user, sidebar, video, youtube playlist, html5, iframe, Youtube channel, youtube videos
5
  Requires at least: 2.8
6
+ Tested up to: 3.5.1
7
+ Stable tag: 1.8.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
65
  * **Thumbnail width:** indicates the width of the thumbnails. The height is automatically generated based on the aspect ratio selected. Shortcode attribute: thumbwidth; value: Number. (Optional).
66
  * **Aspect ratio:** indicates the proportions of the thumbnails, standard (4:3) or widescreen (16:9) format. Shortcode attribute: thumbratio; values: 4x3 (default) or 16x9. (Optional).
67
  * **Thumbnail columns:** it allows to control the number of columns in which the thumbnails are distributed. Shortcode attribute: thumbcolumns; value: Number. (Optional).
68
+ * **Add "nofollow" attribute to links:** "nofollow" attribute provides a way for webmasters to tell search engines "Don't follow this specific link". Shortcode attribute: nofollow; values: 0 (default) or 1. (Optional).
69
  * **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).
70
  * **Show description:** it shows the description of the thumbnail with the number of specified words. Shortcode attribute: description; values: 0 (default) or 1. (Optional).
71
  * **Thumbnail alignment:** it defines the alignment of the thumbnail respect to its description and title. Shortcode attribute: thumbnail_alignment; values: left (default), right, top or bottom. (Optional).
115
 
116
  This will happen if your playlist has more than 1000 videos because YouTube API has this limit.
117
 
118
+ = Thumbnails links go to the YouTube page instead of playing the video in the player? =
119
+
120
+ 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.
121
+
122
+
123
 
124
  == Screenshots ==
125
 
132
 
133
  == Changelog ==
134
 
135
+ = 1.8.4 =
136
+ * Changes in CSS.
137
+ * Added option to add "nofollow" attribute to links.
138
+ * Improvements in the code.
139
+
140
  = 1.8.3 =
141
  * Fixed error with alignments without title or description.
142
  * Changes in CSS.
styles.css CHANGED
@@ -1,11 +1,13 @@
1
  /*------------------------------------------------------------
2
  Plugin Name: Youtube Channel Gallery
3
  Plugin URI: http://www.poselab.com/
4
- Version: 1.8.3
5
  Description: Show a youtube video and a gallery of thumbnails for a youtube channel.
6
  ------------------------------------------------------------*/
7
  /*plugin wrapper*/
8
- .youtubechannelgallery, .youtubechannelgallery *{
 
 
9
  -webkit-box-sizing: border-box!important;
10
  -moz-box-sizing: border-box!important;
11
  box-sizing: border-box!important;
@@ -29,7 +31,7 @@ padding-bottom: height of player;
29
  */
30
  .ytcplayer-wrapper{
31
  position: relative!important;padding: 0!important;padding-bottom: 56.25%!important; height: 0!important; width: 100%!important;
32
- margin-bottom: 10px;
33
  }
34
  .ytcplayer-wrapper.ytc-player4x3{
35
  padding-bottom: 75%!important;
@@ -55,9 +57,9 @@ ul.ytchagallery li .ytcliinner {overflow: hidden!important;}
55
  }
56
 
57
  /*Play button*/
58
- ul.ytchagallery a.ytcthumb .ytcplay{background: url(img/play.png) -9999px -9999px no-repeat!important; position: absolute!important; width: 100%!important; height: 100%!important}
59
  ul.ytchagallery a.ytcthumb:hover{opacity: 0.75;}
60
- ul.ytchagallery a.ytcthumb:hover .ytcplay{background-position: center center;}
61
 
62
  ul.ytchagallery p{display: none!important}/*for some themes*/
63
 
1
  /*------------------------------------------------------------
2
  Plugin Name: Youtube Channel Gallery
3
  Plugin URI: http://www.poselab.com/
4
+ Version: 1.8.4
5
  Description: Show a youtube video and a gallery of thumbnails for a youtube channel.
6
  ------------------------------------------------------------*/
7
  /*plugin wrapper*/
8
+ .youtubechannelgallery, .youtubechannelgallery *,
9
+ .ytcplayer-fixwidthwrapper, .ytcplayer-fixwidthwrapper *,
10
+ .ytchagallery, .ytchagallery * {
11
  -webkit-box-sizing: border-box!important;
12
  -moz-box-sizing: border-box!important;
13
  box-sizing: border-box!important;
31
  */
32
  .ytcplayer-wrapper{
33
  position: relative!important;padding: 0!important;padding-bottom: 56.25%!important; height: 0!important; width: 100%!important;
34
+ margin-bottom: 10px; background:
35
  }
36
  .ytcplayer-wrapper.ytc-player4x3{
37
  padding-bottom: 75%!important;
57
  }
58
 
59
  /*Play button*/
60
+ ul.ytchagallery 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}
61
  ul.ytchagallery a.ytcthumb:hover{opacity: 0.75;}
62
+ ul.ytchagallery a.ytcthumb:hover .ytcplay{background-position: center center!important;}
63
 
64
  ul.ytchagallery p{display: none!important}/*for some themes*/
65
 
youtube-channel-gallery.php CHANGED
@@ -5,7 +5,7 @@
5
  Description: Show a youtube video and a gallery of thumbnails for a youtube channel.
6
  Author: Javier Gómez Pose
7
  Author URI: http://www.poselab.com/
8
- Version: 1.8.3
9
  License: GPL2
10
 
11
  Copyright 2013 Javier Gómez Pose (email : javierpose@gmail.com)
@@ -103,6 +103,8 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
103
  $instance['ytchag_thumb_width'] = strip_tags( $new_instance['ytchag_thumb_width'] );
104
  $instance['ytchag_thumb_ratio'] = strip_tags( $new_instance['ytchag_thumb_ratio'] );
105
  $instance['ytchag_thumb_columns'] = strip_tags( $new_instance['ytchag_thumb_columns'] );
 
 
106
  $instance['ytchag_title'] = strip_tags( $new_instance['ytchag_title'] );
107
  $instance['ytchag_description'] = strip_tags( $new_instance['ytchag_description'] );
108
  $instance['ytchag_thumbnail_alignment'] = strip_tags( $new_instance['ytchag_thumbnail_alignment'] );
@@ -145,6 +147,8 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
145
  'ytchag_thumb_width' => '90',
146
  'ytchag_thumb_ratio' => '4x3',
147
  'ytchag_thumb_columns' => '3',
 
 
148
  'ytchag_title' => '',
149
  'ytchag_description' => '',
150
  'ytchag_thumbnail_alignment' => 'top',
@@ -158,41 +162,10 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
158
 
159
  );
160
 
161
- $instance = wp_parse_args( (array) $instance, $defaults );
162
-
163
- $title = isset( $instance['title'] ) ? esc_attr( $instance['title'] ) : '';
164
-
165
- // Feed options
166
- $ytchag_feed = isset( $instance['ytchag_feed'] ) ? esc_attr( $instance['ytchag_feed'] ) : '';
167
- $ytchag_user = isset( $instance['ytchag_user'] ) ? esc_attr( $instance['ytchag_user'] ) : ''; //left ytchag_user variable name for backward compatibility
168
- $ytchag_feed_order = isset( $instance['ytchag_feed_order'] ) ? esc_attr( $instance['ytchag_feed_order'] ) : '';
169
- $ytchag_cache_time = isset( $instance['ytchag_cache_time'] ) ? esc_attr( $instance['ytchag_cache_time'] ) : '';
170
- //$ytchag_cache = isset( $instance['ytchag_cache'] ) ? esc_attr( $instance['ytchag_cache'] ) : '';
171
-
172
- // Player options
173
- $ytchag_ratio = isset( $instance['ytchag_ratio'] ) ? esc_attr( $instance['ytchag_ratio'] ) : '';
174
- $ytchag_theme = isset( $instance['ytchag_theme'] ) ? esc_attr( $instance['ytchag_theme'] ) : '';
175
- $ytchag_color = isset( $instance['ytchag_color'] ) ? esc_attr( $instance['ytchag_color'] ) : '';
176
- $ytchag_quality = isset( $instance['ytchag_quality'] ) ? esc_attr( $instance['ytchag_quality'] ) : '';
177
- $ytchag_autoplay = isset( $instance['ytchag_autoplay'] ) ? esc_attr( $instance['ytchag_autoplay'] ) : '';
178
- $ytchag_modestbranding = isset( $instance['ytchag_modestbranding'] ) ? esc_attr( $instance['ytchag_modestbranding'] ) : '';
179
- $ytchag_rel = isset( $instance['ytchag_rel'] ) ? esc_attr( $instance['ytchag_rel'] ) : '';
180
- $ytchag_showinfo = isset( $instance['ytchag_showinfo'] ) ? esc_attr( $instance['ytchag_showinfo'] ) : '';
181
-
182
- // Thumbnail options
183
- $ytchag_maxitems = isset( $instance['ytchag_maxitems'] ) ? esc_attr( $instance['ytchag_maxitems'] ) : '';
184
- $ytchag_thumb_width = isset( $instance['ytchag_thumb_width'] ) ? esc_attr( $instance['ytchag_thumb_width'] ) : '';
185
- $ytchag_thumb_ratio = isset( $instance['ytchag_thumb_ratio'] ) ? esc_attr( $instance['ytchag_thumb_ratio'] ) : '';
186
- $ytchag_thumb_columns = isset( $instance['ytchag_thumb_columns'] ) ? esc_attr( $instance['ytchag_thumb_columns'] ) : '';
187
- $ytchag_title = isset( $instance['ytchag_title'] ) ? esc_attr( $instance['ytchag_title'] ) : '';
188
- $ytchag_description = isset( $instance['ytchag_description'] ) ? esc_attr( $instance['ytchag_description'] ) : '';
189
- $ytchag_thumbnail_alignment = isset( $instance['ytchag_thumbnail_alignment'] ) ? esc_attr( $instance['ytchag_thumbnail_alignment'] ) : '';
190
- $ytchag_description_words_number = isset( $instance['ytchag_description_words_number'] ) ? esc_attr( $instance['ytchag_description_words_number'] ) : '';
191
-
192
- // Link options
193
- $ytchag_link = isset( $instance['ytchag_link'] ) ? esc_attr( $instance['ytchag_link'] ) : 0;
194
- $ytchag_link_tx = isset( $instance['ytchag_link_tx'] ) ? esc_attr( $instance['ytchag_link_tx'] ) : '';
195
- $ytchag_link_window = isset( $instance['ytchag_link_window'] ) ? esc_attr( $instance['ytchag_link_window'] ) : 0;
196
 
197
  ?>
198
 
@@ -360,6 +333,11 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
360
  <input class="widefat" id="<?php echo $this->get_field_id( 'ytchag_thumb_columns' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_thumb_columns' ); ?>" type="text" value="<?php echo esc_attr( $ytchag_thumb_columns ); ?>" />
361
  </p>
362
 
 
 
 
 
 
363
  <p>
364
  <fieldset class="ytchg-field-tit-desc">
365
  <legend class="ytchg-tit-desc">
@@ -466,6 +444,8 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
466
  $ytchag_thumb_width = apply_filters( 'ytchag_thumb_width', $instance['ytchag_thumb_width'] );
467
  $ytchag_thumb_ratio = apply_filters( 'ytchag_thumb_ratio', $instance['ytchag_thumb_ratio'] );
468
  $ytchag_thumb_columns = apply_filters( 'ytchag_thumb_columns', $instance['ytchag_thumb_columns'] );
 
 
469
  $ytchag_title = apply_filters( 'ytchag_title', $instance['ytchag_title'] );
470
  $ytchag_description = apply_filters( 'ytchag_description', $instance['ytchag_description'] );
471
  $ytchag_thumbnail_alignment = apply_filters( 'ytchag_thumbnail_alignment', $instance['ytchag_thumbnail_alignment'] );
@@ -499,6 +479,7 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
499
  $ytchag_maxitems = ( $ytchag_maxitems ) ? $ytchag_maxitems : 9;
500
  $ytchag_thumb_width = ( $ytchag_thumb_width ) ? $ytchag_thumb_width : 85;
501
  $ytchag_thumb_columns = ( ( $ytchag_thumb_columns ) || ( $ytchag_thumb_columns != 0 ) ) ? $ytchag_thumb_columns : 0;
 
502
 
503
  //title and desc
504
  $ytchag_title = ( $ytchag_title ) ? $ytchag_title : 0;
@@ -509,7 +490,7 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
509
  // Link options
510
  $ytchag_link = ( $ytchag_link ) ? $ytchag_link : 0;
511
  $ytchag_link_tx = ( $ytchag_link_tx ) ? $ytchag_link_tx : __( 'Show more videos»', 'youtube-channel-gallery' );
512
- $ytchag_link_window = ( $ytchag_link_window ) ? 'target="_blank"' : 0;
513
  //--------------------------------
514
  //end defaults
515
 
@@ -741,7 +722,7 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
741
  $title_and_description_content= '<div class="ytctitledesc-cont">';
742
 
743
  if ( $ytchag_title ) {
744
- $title_and_description_content.= '<h5 class="ytctitle"><a class="ytclink" href="http://youtu.be/' . $youtubeid . '" data-playerid="ytcplayer' . $plugincount . '" data-quality="' . $ytchag_quality . '" alt="' . $title . '" title="' . $title . '">' . $title . '</a></h5>';
745
  }
746
 
747
  if ( $ytchag_description ) {
@@ -772,7 +753,7 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
772
  }
773
 
774
  $content.= '<div class="ytcthumb-cont"' . $ytchag_thumbnail_fixed_witdh . '>';
775
- $content.= '<a class="ytcthumb ytclink" href="http://youtu.be/' . $youtubeid . '" data-playerid="ytcplayer' . $plugincount . '" data-quality="' . $ytchag_quality . '" title="' . $title . '" style="background-image:url(' . $thumb . ')">';
776
  $content.= '<div class="ytcplay"></div>';
777
  $content.= '</a>';
778
  $content.= '</div>';
@@ -805,7 +786,7 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
805
 
806
  //link to youtube.com gallery
807
  if ( $ytchag_link ) {
808
- $content.= '<a href="' . $ytchag_link_url . '" class="ytcmore" ' .$ytchag_link_window. ' >' . $ytchag_link_tx . '</a>';
809
  }
810
  //--}
811
  }
@@ -935,6 +916,8 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
935
  'thumbwidth' => '90',
936
  'thumbratio' => '4x3',
937
  'thumbcolumns' => '3',
 
 
938
  'title' => '',
939
  'description' => '',
940
  'thumbnail_alignment' => 'top',
@@ -969,6 +952,8 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
969
  $instance['ytchag_thumb_width'] = $thumbwidth;
970
  $instance['ytchag_thumb_ratio'] = $thumbratio;
971
  $instance['ytchag_thumb_columns'] = $thumbcolumns;
 
 
972
  $instance['ytchag_title'] = $title;
973
  $instance['ytchag_description'] = $description;
974
  $instance['ytchag_thumbnail_alignment'] = $thumbnail_alignment;
5
  Description: Show a youtube video and a gallery of thumbnails for a youtube channel.
6
  Author: Javier Gómez Pose
7
  Author URI: http://www.poselab.com/
8
+ Version: 1.8.4
9
  License: GPL2
10
 
11
  Copyright 2013 Javier Gómez Pose (email : javierpose@gmail.com)
103
  $instance['ytchag_thumb_width'] = strip_tags( $new_instance['ytchag_thumb_width'] );
104
  $instance['ytchag_thumb_ratio'] = strip_tags( $new_instance['ytchag_thumb_ratio'] );
105
  $instance['ytchag_thumb_columns'] = strip_tags( $new_instance['ytchag_thumb_columns'] );
106
+ $instance['ytchag_nofollow'] = strip_tags( $new_instance['ytchag_nofollow'] );
107
+
108
  $instance['ytchag_title'] = strip_tags( $new_instance['ytchag_title'] );
109
  $instance['ytchag_description'] = strip_tags( $new_instance['ytchag_description'] );
110
  $instance['ytchag_thumbnail_alignment'] = strip_tags( $new_instance['ytchag_thumbnail_alignment'] );
147
  'ytchag_thumb_width' => '90',
148
  'ytchag_thumb_ratio' => '4x3',
149
  'ytchag_thumb_columns' => '3',
150
+ 'ytchag_nofollow' => '',
151
+
152
  'ytchag_title' => '',
153
  'ytchag_description' => '',
154
  'ytchag_thumbnail_alignment' => 'top',
162
 
163
  );
164
 
165
+ // any options not set get the default
166
+ $instance = wp_parse_args( $instance, $defaults );
167
+ // extract them for cleaner code
168
+ extract( $instance, EXTR_SKIP );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
169
 
170
  ?>
171
 
333
  <input class="widefat" id="<?php echo $this->get_field_id( 'ytchag_thumb_columns' ); ?>" name="<?php echo $this->get_field_name( 'ytchag_thumb_columns' ); ?>" type="text" value="<?php echo esc_attr( $ytchag_thumb_columns ); ?>" />
334
  </p>
335
 
336
+
337
+ <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' ); ?>" />
338
+ <label for="<?php echo $this->get_field_id( 'ytchag_nofollow' ); ?>"><?php _e( 'Add "nofollow" attribute to links', 'youtube-channel-gallery' ); ?></label>
339
+ <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>
340
+
341
  <p>
342
  <fieldset class="ytchg-field-tit-desc">
343
  <legend class="ytchg-tit-desc">
444
  $ytchag_thumb_width = apply_filters( 'ytchag_thumb_width', $instance['ytchag_thumb_width'] );
445
  $ytchag_thumb_ratio = apply_filters( 'ytchag_thumb_ratio', $instance['ytchag_thumb_ratio'] );
446
  $ytchag_thumb_columns = apply_filters( 'ytchag_thumb_columns', $instance['ytchag_thumb_columns'] );
447
+ $ytchag_nofollow = apply_filters( 'ytchag_nofollow', $instance['ytchag_nofollow'] );
448
+
449
  $ytchag_title = apply_filters( 'ytchag_title', $instance['ytchag_title'] );
450
  $ytchag_description = apply_filters( 'ytchag_description', $instance['ytchag_description'] );
451
  $ytchag_thumbnail_alignment = apply_filters( 'ytchag_thumbnail_alignment', $instance['ytchag_thumbnail_alignment'] );
479
  $ytchag_maxitems = ( $ytchag_maxitems ) ? $ytchag_maxitems : 9;
480
  $ytchag_thumb_width = ( $ytchag_thumb_width ) ? $ytchag_thumb_width : 85;
481
  $ytchag_thumb_columns = ( ( $ytchag_thumb_columns ) || ( $ytchag_thumb_columns != 0 ) ) ? $ytchag_thumb_columns : 0;
482
+ $ytchag_nofollow = ( $ytchag_nofollow ) ? ' rel="nofollow"' : '';
483
 
484
  //title and desc
485
  $ytchag_title = ( $ytchag_title ) ? $ytchag_title : 0;
490
  // Link options
491
  $ytchag_link = ( $ytchag_link ) ? $ytchag_link : 0;
492
  $ytchag_link_tx = ( $ytchag_link_tx ) ? $ytchag_link_tx : __( 'Show more videos»', 'youtube-channel-gallery' );
493
+ $ytchag_link_window = ( $ytchag_link_window ) ? 'target="_blank"' : '';
494
  //--------------------------------
495
  //end defaults
496
 
722
  $title_and_description_content= '<div class="ytctitledesc-cont">';
723
 
724
  if ( $ytchag_title ) {
725
+ $title_and_description_content.= '<h5 class="ytctitle"><a class="ytclink" href="http://youtu.be/' . $youtubeid . '" data-playerid="ytcplayer' . $plugincount . '" data-quality="' . $ytchag_quality . '" alt="' . $title . '" title="' . $title . '" ' . $ytchag_nofollow . '>' . $title . '</a></h5>';
726
  }
727
 
728
  if ( $ytchag_description ) {
753
  }
754
 
755
  $content.= '<div class="ytcthumb-cont"' . $ytchag_thumbnail_fixed_witdh . '>';
756
+ $content.= '<a class="ytcthumb ytclink" href="http://youtu.be/' . $youtubeid . '" data-playerid="ytcplayer' . $plugincount . '" data-quality="' . $ytchag_quality . '" title="' . $title . '" style="background-image:url(' . $thumb . ')" ' . $ytchag_nofollow . '>';
757
  $content.= '<div class="ytcplay"></div>';
758
  $content.= '</a>';
759
  $content.= '</div>';
786
 
787
  //link to youtube.com gallery
788
  if ( $ytchag_link ) {
789
+ $content.= '<a href="' . $ytchag_link_url . '" class="ytcmore" ' . $ytchag_link_window .' ' . $ytchag_nofollow .' >' . $ytchag_link_tx . '</a>';
790
  }
791
  //--}
792
  }
916
  'thumbwidth' => '90',
917
  'thumbratio' => '4x3',
918
  'thumbcolumns' => '3',
919
+ 'nofollow' => '',
920
+
921
  'title' => '',
922
  'description' => '',
923
  'thumbnail_alignment' => 'top',
952
  $instance['ytchag_thumb_width'] = $thumbwidth;
953
  $instance['ytchag_thumb_ratio'] = $thumbratio;
954
  $instance['ytchag_thumb_columns'] = $thumbcolumns;
955
+ $instance['ytchag_nofollow'] = $nofollow;
956
+
957
  $instance['ytchag_title'] = $title;
958
  $instance['ytchag_description'] = $description;
959
  $instance['ytchag_thumbnail_alignment'] = $thumbnail_alignment;