WP Embed Facebook - Version 3.0

Version Description

Download this release

Release Info

Developer poxtron
Plugin Icon 128x128 WP Embed Facebook
Version 3.0
Comparing to
See all releases

Code changes from version 2.2.3 to 3.0

Files changed (46) hide show
  1. lang/wp-embed-facebook-es_AR.mo +0 -0
  2. lang/wp-embed-facebook-es_AR.po +0 -672
  3. lang/wp-embed-facebook-es_CL.mo +0 -0
  4. lang/wp-embed-facebook-es_CL.po +0 -672
  5. lang/wp-embed-facebook-es_ES.mo +0 -0
  6. lang/wp-embed-facebook-es_ES.po +0 -672
  7. lang/wp-embed-facebook-es_GT.mo +0 -0
  8. lang/wp-embed-facebook-es_GT.po +0 -672
  9. lang/wp-embed-facebook-es_MX.mo +0 -0
  10. lang/wp-embed-facebook-es_MX.po +0 -672
  11. lang/wp-embed-facebook-es_PE.mo +0 -0
  12. lang/wp-embed-facebook-es_PE.po +0 -672
  13. lang/wp-embed-facebook-es_VE.mo +0 -0
  14. lang/wp-embed-facebook-es_VE.po +0 -672
  15. lang/wp-embed-facebook.pot +0 -618
  16. lib/admin/admin.css +0 -54
  17. lib/admin/ic_image_settings.png +0 -0
  18. lib/admin/ic_setting.png +0 -0
  19. lib/base_facebook.php +0 -1494
  20. lib/class-sigami-facebook.php +0 -142
  21. lib/class-wef-magic-embeds.php +0 -155
  22. lib/class-wef-social-plugins.php +0 -507
  23. lib/class-wef-widget.php +0 -81
  24. lib/class-wp-embed-fb-admin.php +0 -728
  25. lib/class-wp-embed-fb-plugin.php +0 -575
  26. lib/class-wp-embed-fb.php +0 -619
  27. lib/js/fb.js +0 -56
  28. lib/js/fb.min.js +0 -1
  29. lib/js/wpembedfb.js +0 -5
  30. lib/js/wpembedfb.min.js +0 -1
  31. lib/lightbox2/css/lightbox.css +0 -2
  32. lib/lightbox2/css/lightbox.css.map +0 -7
  33. lib/lightbox2/css/lightbox.sass +0 -165
  34. lib/lightbox2/images/close.png +0 -0
  35. lib/lightbox2/images/loading.gif +0 -0
  36. lib/lightbox2/images/next.png +0 -0
  37. lib/lightbox2/images/prev.png +0 -0
  38. lib/lightbox2/js/lightbox.js +0 -500
  39. lib/lightbox2/js/lightbox.min.js +0 -1
  40. lib/class-wef-comments.php → library/Comments.php +6 -4
  41. library/Plugin_Framework.php +544 -0
  42. library/defaults.php +9 -0
  43. readme.txt +22 -12
  44. templates/default/photo.php +3 -2
  45. templates/default/single-post.php +3 -3
  46. wp-embed-facebook.php +58 -32
lang/wp-embed-facebook-es_AR.mo DELETED
Binary file
lang/wp-embed-facebook-es_AR.po DELETED
@@ -1,672 +0,0 @@
1
- # Copyright (C) 2016 Miguel Sirvent
2
- # This file is distributed under the same license as the WP Embed Facebook package.
3
- msgid ""
4
- msgstr ""
5
- "Project-Id-Version: WP Embed Facebook 2.1.6\n"
6
- "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-embed-"
7
- "facebook\n"
8
- "POT-Creation-Date: 2016-10-06 11:26-0500\n"
9
- "PO-Revision-Date: 2016-10-06 11:54-0500\n"
10
- "Last-Translator: Miguel Sirvent <miguel.sirvent@gmail.com>\n"
11
- "Language-Team: Miguel Sirvent <miguel@sigami.net>\n"
12
- "Language: es_AR\n"
13
- "MIME-Version: 1.0\n"
14
- "Content-Type: text/plain; charset=UTF-8\n"
15
- "Content-Transfer-Encoding: 8bit\n"
16
- "X-Generator: Poedit 1.8.9\n"
17
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
18
- "_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
19
- "esc_html_x:1,2c\n"
20
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
21
- "X-Poedit-SourceCharset: UTF-8\n"
22
- "X-Poedit-Basepath: ..\n"
23
- "X-Textdomain-Support: yes\n"
24
- "X-Poedit-Wpheader: wp-embed-facebook.php\n"
25
- "X-Poedit-SearchPath-0: .\n"
26
- "X-Poedit-SearchPathExcluded-0: *.js\n"
27
-
28
- #: lib/class-wef-magic-embeds.php:123
29
- msgid "Shortcode used:"
30
- msgstr "Shortcode utilizado:"
31
-
32
- #: lib/class-wef-magic-embeds.php:128
33
- msgid "Final code:"
34
- msgstr "Código final:"
35
-
36
- #: lib/class-wef-magic-embeds.php:133
37
- msgid "More information:"
38
- msgstr "Más información:"
39
-
40
- #: lib/class-wef-social-plugins.php:504
41
- msgid "Invalid Facebook plugin type use it like this: [fb_plugin like]"
42
- msgstr ""
43
- "Tipo de plugin de Facebook inválido utilizarlo como así: [como fb_plugin]"
44
-
45
- #. Plugin Name of the plugin/theme
46
- msgid "WP Embed Facebook"
47
- msgstr "Incrustar Facebook (WP Embed Facebook)"
48
-
49
- #: lib/class-wef-widget.php:15
50
- #, fuzzy
51
- msgid "Shortcode widget"
52
- msgstr "Shortcode utilizado:"
53
-
54
- #: lib/class-wef-widget.php:50
55
- msgid "Title:"
56
- msgstr ""
57
-
58
- #: lib/class-wef-widget.php:54
59
- #, fuzzy
60
- msgid "Shortcode:"
61
- msgstr "Shortcode utilizado:"
62
-
63
- #: lib/class-wp-embed-fb-admin.php:28
64
- #, fuzzy
65
- msgid ""
66
- "To enable comment moderation and embed albums, events, profiles and video as "
67
- "HTML5 setup a facebook app on <a id=\"wef_settings_link\" href=\"%s"
68
- "\">settings</a>"
69
- msgstr ""
70
- "Para activar la moderación de comentarios e incrustar álbumes, eventos, "
71
- "perfiles y vídeo en HTML5 configura una App de Facebook en <a href=\"%s"
72
- "\">configuración</a>"
73
-
74
- #: lib/class-wp-embed-fb-admin.php:138
75
- msgid "Settings"
76
- msgstr "Configuracion"
77
-
78
- #: lib/class-wp-embed-fb-admin.php:345
79
- msgid "Magic Embeds"
80
- msgstr "Incrustados Mágicos"
81
-
82
- #: lib/class-wp-embed-fb-admin.php:346
83
- msgid "Social Plugins"
84
- msgstr "Social Plugins"
85
-
86
- #: lib/class-wp-embed-fb-admin.php:347
87
- msgid "Custom Embeds"
88
- msgstr "Incrustados personalizados"
89
-
90
- #: lib/class-wp-embed-fb-admin.php:348 lib/class-wp-embed-fb-admin.php:633
91
- msgid "Lightbox"
92
- msgstr "Lightbox"
93
-
94
- #: lib/class-wp-embed-fb-admin.php:349
95
- msgid "Advanced"
96
- msgstr "Avanzado"
97
-
98
- #: lib/class-wp-embed-fb-admin.php:365
99
- msgid ""
100
- "Auto embeds understand the url you are entering and return a social plugin "
101
- "or a custom embed. <br>They can be activated by <a href=\"%s\" title="
102
- "\"WordPress Embeds\" target=\"_blank\">pasting the url on the editor</a> or "
103
- "by the [facebook url ] <a href=\"%s\" title=\"[facebook] Shortcode "
104
- "attributes and examples\" target=\"_blank\">shortcode</a>."
105
- msgstr ""
106
- "Los auto incrustados entienden la url vas a entrar y devuelve un incrustado "
107
- "personalizado o un plugin social.<br>Pueden ser activados al <a href=\"%s\" "
108
- "title=\"WordPress Embeds\" target=\"_blank\">pegar la url en el editor</a> o "
109
- "por el <a href=\"%s\" title=\"[facebook] Shortcode attributes and examples\" "
110
- "target=\"_blank\">shortcode</a> [facebook url] ."
111
-
112
- #: lib/class-wp-embed-fb-admin.php:366
113
- msgid "Auto Embeds"
114
- msgstr "Auto Incrustados"
115
-
116
- #: lib/class-wp-embed-fb-admin.php:367
117
- msgid "Auto embed url's on editor "
118
- msgstr "Auto incrustar urls en el editor"
119
-
120
- #: lib/class-wp-embed-fb-admin.php:368
121
- msgid "Maximum width in pixels"
122
- msgstr "Máxima anchura en píxeles"
123
-
124
- #: lib/class-wp-embed-fb-admin.php:369
125
- msgid "Embed video as post"
126
- msgstr "Incrustar video como post"
127
-
128
- #: lib/class-wp-embed-fb-admin.php:373
129
- msgid ""
130
- "The quote plugin lets people select text on your page and add it to their "
131
- "share.<br><a href=\"%s\" target=\"_blank\" title=\"WP Embed Facebook\">Demo</"
132
- "a>"
133
- msgstr ""
134
- "El plugin de cita permite a las personas Seleccionar texto en tu página y "
135
- "agregarla a su participación.<br><a href=\"%s\" target=\"_blank\" title=\"WP "
136
- "Embed Facebook\">Ejemplo</a>"
137
-
138
- #: lib/class-wp-embed-fb-admin.php:373
139
- msgid "Quote Plugin"
140
- msgstr "Quote Plugin"
141
-
142
- #: lib/class-wp-embed-fb-admin.php:374 lib/class-wp-embed-fb-admin.php:379
143
- msgid "Active"
144
- msgstr "Activo"
145
-
146
- #: lib/class-wp-embed-fb-admin.php:375 lib/class-wp-embed-fb-admin.php:380
147
- msgid "Post types"
148
- msgstr "Tipos de entradas"
149
-
150
- #: lib/class-wp-embed-fb-admin.php:376 lib/class-wp-embed-fb-admin.php:381
151
- msgid "Post types separated by commas i.e. post,page,attachment"
152
- msgstr "Tipos de post separado por comas, es decir: post,page,attachment"
153
-
154
- #: lib/class-wp-embed-fb-admin.php:378
155
- msgid "Comments"
156
- msgstr "Comentarios"
157
-
158
- #: lib/class-wp-embed-fb-admin.php:382
159
- msgid "Sync comment count"
160
- msgstr "Sincronizar conteo de comentarios"
161
-
162
- #: lib/class-wp-embed-fb-admin.php:385
163
- msgid "Add open graph meta"
164
- msgstr "Agregar meta open graph"
165
-
166
- #: lib/class-wp-embed-fb-admin.php:386
167
- msgid "Needed to moderate comments"
168
- msgstr "Necesario para moderar comentarios"
169
-
170
- #: lib/class-wp-embed-fb-admin.php:386
171
- msgid ""
172
- "Disable this if you already have another plugin adding <a title=\"Moderation "
173
- "Setup Instructions\" target=\"_blank\" href=\"%s\">the fb:app_id meta</a>"
174
- msgstr ""
175
- "Desactivar esto si ya tienes otro plugin añadiendo <a title=\"Moderation "
176
- "Setup Instructions\" target=\"_blank\" href=\"%s\">la meta fb:app_id</a>"
177
-
178
- #: lib/class-wp-embed-fb-admin.php:387
179
- msgid "To enable comments moderation setup your App ID"
180
- msgstr "Para permitir moderación en comentarios configurar tu App ID"
181
-
182
- #: lib/class-wp-embed-fb-admin.php:390
183
- msgid ""
184
- "If you cant see the \"Moderate comment\" link above each comment you will "
185
- "need to <a title=\"Sharing Debugger\" target=\"_blank\" href=\"%s\">scrape "
186
- "the url</a>"
187
- msgstr ""
188
- "Si no ves el enlace \"Moderar comentaio\" sobre cada comentario tendras que "
189
- "<a title=\"Sharing Debugger\" target=\"_blank\" href=\"%s\">raspar la url</a>"
190
-
191
- #: lib/class-wp-embed-fb-admin.php:394
192
- msgid "Notes:"
193
- msgstr "Notas:"
194
-
195
- #: lib/class-wp-embed-fb-admin.php:396
196
- msgid "Facebook settings"
197
- msgstr "Ajustes de Facebook"
198
-
199
- #: lib/class-wp-embed-fb-admin.php:397
200
- msgid "Social Plugins Language"
201
- msgstr "Lenguaje de los plugins sociales"
202
-
203
- #: lib/class-wp-embed-fb-admin.php:400
204
- msgid ""
205
- "Creating a Facebook app is easy view the <a href=\"%s\" target=\"_blank\" "
206
- "title=\"WP Embed FB documentation\">step by step guide</a> or view <a href="
207
- "\"%s\" target=\"_blank\" title=\"Facebook Apps\">your apps</a>."
208
- msgstr ""
209
- "Crear una aplicación de Facebook es fácil ver la <a href=\"%s\" target="
210
- "\"_blank\" title=\"WP Embed FB documentation\">Guía paso a paso</a> o ver <a "
211
- "href=\"%s\" target=\"_blank\" title=\"Facebook Apps\">tus aplicaciones</a>."
212
-
213
- #: lib/class-wp-embed-fb-admin.php:407
214
- msgid "App ID"
215
- msgstr "App ID"
216
-
217
- #: lib/class-wp-embed-fb-admin.php:409
218
- msgid "App Secret"
219
- msgstr "App Secret"
220
-
221
- #: lib/class-wp-embed-fb-admin.php:421
222
- msgid ""
223
- "<a title=\"Facebook Social Plugins\" href=\"%s\" rel=\"nofollow\" target="
224
- "\"_blank\">Social plugins</a> are pieces of code that Facebook developers "
225
- "created for us mortals."
226
- msgstr ""
227
- "<a title=\"Facebook Social Plugins\" href=\"%s\" rel=\"nofollow\" target="
228
- "\"_blank\">Los plugins sociales</a> son piezas de código que los "
229
- "desarrolladores de Facebook creado para nosotros los mortales."
230
-
231
- #: lib/class-wp-embed-fb-admin.php:423 lib/class-wp-embed-fb-admin.php:566
232
- msgid "Example:"
233
- msgstr "Ejemplo:"
234
-
235
- #: lib/class-wp-embed-fb-admin.php:425
236
- msgid "Embed a like button for the curent page:"
237
- msgstr "Insertar un botón de me gusta de la página actual:"
238
-
239
- #: lib/class-wp-embed-fb-admin.php:428
240
- msgid "add debug=1 to debug the result."
241
- msgstr "Añadir debug=1 para depurar el resultado."
242
-
243
- #: lib/class-wp-embed-fb-admin.php:435
244
- msgid "Page plugin"
245
- msgstr "Page plugin"
246
-
247
- #: lib/class-wp-embed-fb-admin.php:442
248
- msgid "Tabs separated by commas i.e. timeline,events,messages"
249
- msgstr "Pestañas separadas por comas, es decir: timeline,events,messages"
250
-
251
- #: lib/class-wp-embed-fb-admin.php:449
252
- msgid "Post plugin"
253
- msgstr "Post plugin"
254
-
255
- #: lib/class-wp-embed-fb-admin.php:456
256
- msgid "Video"
257
- msgstr "Video"
258
-
259
- #: lib/class-wp-embed-fb-admin.php:463
260
- msgid "Single comment"
261
- msgstr "Single comment"
262
-
263
- #: lib/class-wp-embed-fb-admin.php:467
264
- msgid "Activate them on all your posts on the \"Magic embeds\" section"
265
- msgstr "Activar en todos tus posts en la sección \"Incrustados Mágicos\""
266
-
267
- #: lib/class-wp-embed-fb-admin.php:467
268
- msgid "Comments plugin"
269
- msgstr "Comments plugin"
270
-
271
- #: lib/class-wp-embed-fb-admin.php:474
272
- msgid "Activate it on all your posts on the \"Magic embeds\" section"
273
- msgstr "Activar en todos tus posts en la sección \"Incrustados Mágicos\""
274
-
275
- #: lib/class-wp-embed-fb-admin.php:474
276
- msgid "Quote plugin"
277
- msgstr "Quote plugin"
278
-
279
- #: lib/class-wp-embed-fb-admin.php:477
280
- msgid "Save button"
281
- msgstr "Save button"
282
-
283
- #: lib/class-wp-embed-fb-admin.php:480
284
- msgid "Like button"
285
- msgstr "Like button"
286
-
287
- #: lib/class-wp-embed-fb-admin.php:489
288
- msgid "Send button"
289
- msgstr "Send button"
290
-
291
- #: lib/class-wp-embed-fb-admin.php:493
292
- msgid "Share button"
293
- msgstr "Share button"
294
-
295
- #: lib/class-wp-embed-fb-admin.php:497
296
- msgid "Follow button"
297
- msgstr "Follow button"
298
-
299
- #: lib/class-wp-embed-fb-admin.php:507
300
- msgid "Adaptive view"
301
- msgstr "Vista Adaptiva"
302
-
303
- #: lib/class-wp-embed-fb-admin.php:519
304
- msgid "General"
305
- msgstr "General"
306
-
307
- #: lib/class-wp-embed-fb-admin.php:531
308
- msgid "Albums"
309
- msgstr "Álbumes"
310
-
311
- #: lib/class-wp-embed-fb-admin.php:532
312
- msgid "Number of Photos"
313
- msgstr "Número de Imágenes"
314
-
315
- #: lib/class-wp-embed-fb-admin.php:534
316
- msgid "Events"
317
- msgstr "Eventos"
318
-
319
- #: lib/class-wp-embed-fb-admin.php:535
320
- msgid "Use WP time to calculate the date"
321
- msgstr "Usa el tiempo de WP para calcular la fecha"
322
-
323
- #: lib/class-wp-embed-fb-admin.php:536 lib/class-wp-embed-fb-admin.php:549
324
- msgid "Time format"
325
- msgstr "Formato de fecha"
326
-
327
- #: lib/class-wp-embed-fb-admin.php:537 lib/class-wp-embed-fb-admin.php:550
328
- msgid "examples"
329
- msgstr "ejemplos"
330
-
331
- #: lib/class-wp-embed-fb-admin.php:539
332
- msgid "Pages"
333
- msgstr "Páginas"
334
-
335
- #: lib/class-wp-embed-fb-admin.php:540 lib/class-wp-embed-fb-admin.php:545
336
- #: lib/class-wp-embed-fb-admin.php:548 lib/class-wp-embed-fb-admin.php:555
337
- msgid "Use by default on \"Auto Embeds\""
338
- msgstr "Utilizar por defecto en \"Auto incrustados\""
339
-
340
- #: lib/class-wp-embed-fb-admin.php:541
341
- msgid "Show like button"
342
- msgstr "Mostrar botón \"Me gusta\""
343
-
344
- #: lib/class-wp-embed-fb-admin.php:542
345
- msgid "Number of posts"
346
- msgstr "Número de publicaciones"
347
-
348
- #: lib/class-wp-embed-fb-admin.php:544
349
- msgid "Photos"
350
- msgstr "Fotos"
351
-
352
- #: lib/class-wp-embed-fb-admin.php:547
353
- msgid "Posts"
354
- msgstr "Publicaciones"
355
-
356
- #: lib/class-wp-embed-fb-admin.php:554
357
- msgid "Videos"
358
- msgstr "Vídeos"
359
-
360
- #: lib/class-wp-embed-fb-admin.php:556
361
- msgid "Force 16:9 ratio"
362
- msgstr "Fuerza de relación 16:9"
363
-
364
- #: lib/class-wp-embed-fb-admin.php:558
365
- msgid "Profiles"
366
- msgstr "Perfiles"
367
-
368
- #: lib/class-wp-embed-fb-admin.php:559
369
- msgid "Show follow button"
370
- msgstr "Botón de seguir"
371
-
372
- #: lib/class-wp-embed-fb-admin.php:564
373
- msgid ""
374
- "Custom embeds can be triggered using the [facebook url] or [embed] "
375
- "shortcodes also by activating \"Auto Embeds\" on Magic Embeds section."
376
- msgstr ""
377
- "Los Incrustados personalizados pueden activados utilizado los shortcodes "
378
- "[facebook url] o [embed] también al activar \"Auto Incrustados\" en la "
379
- "sección Incrustados Mágicos."
380
-
381
- #: lib/class-wp-embed-fb-admin.php:571
382
- msgid ""
383
- "<a href=\"%s\" title=\"WP Embed Facebook Shortcode\" target=\"_blank\">Read "
384
- "More</a>"
385
- msgstr ""
386
- "<a href=\"%s\" title=\"WP Embed Facebook Shortcode\" target=\"_blank\">Leer "
387
- "más</a>"
388
-
389
- #: lib/class-wp-embed-fb-admin.php:578 lib/class-wp-embed-fb-admin.php:612
390
- msgid "By default you can only embed public pages, videos, photos and posts."
391
- msgstr ""
392
- "Por default sólo puede incrustar páginas, videos, fotos y publicaciones "
393
- "públicas."
394
-
395
- #: lib/class-wp-embed-fb-admin.php:579 lib/class-wp-embed-fb-admin.php:613
396
- msgid ""
397
- "To embed albums, events, profiles and video as HTML5 you will need to setup "
398
- "a Facebook App on Magic Embeds section"
399
- msgstr ""
400
- "Para incrustar álbumes, eventos, perfiles y vídeo en HTML5, necesitará "
401
- "configurar una App Facebook en la sección de incrustados mágicos"
402
-
403
- #: lib/class-wp-embed-fb-admin.php:592
404
- msgid "Lightbox Options"
405
- msgstr "Opciones de Lightbox"
406
-
407
- #: lib/class-wp-embed-fb-admin.php:593
408
- msgid "Show Image Number Label"
409
- msgstr "Etiqueta de número de imagen"
410
-
411
- #: lib/class-wp-embed-fb-admin.php:594
412
- msgid "Album Label"
413
- msgstr "Etiqueta del album"
414
-
415
- #: lib/class-wp-embed-fb-admin.php:595
416
- msgid "Fade Duration"
417
- msgstr "Duración del esfumado"
418
-
419
- #: lib/class-wp-embed-fb-admin.php:596
420
- msgid "Resize Duration"
421
- msgstr "Duración del cambio de tamaño"
422
-
423
- #: lib/class-wp-embed-fb-admin.php:597
424
- msgid "Position From Top"
425
- msgstr "Posición desde arriba"
426
-
427
- #: lib/class-wp-embed-fb-admin.php:598
428
- msgid "Max Height"
429
- msgstr "Altura máxima"
430
-
431
- #: lib/class-wp-embed-fb-admin.php:599
432
- msgid "Max Width"
433
- msgstr "Anchura máxima"
434
-
435
- #: lib/class-wp-embed-fb-admin.php:600
436
- msgid "Always Show Nav On TouchDevices"
437
- msgstr "Siempre mostrar nav. en dispositivos táctiles"
438
-
439
- #: lib/class-wp-embed-fb-admin.php:601
440
- msgid "Fit Images In Viewport"
441
- msgstr "Escalar imágenes a la ventana"
442
-
443
- #: lib/class-wp-embed-fb-admin.php:602
444
- msgid "Disable Scrolling"
445
- msgstr "Desactivar desplazamiento"
446
-
447
- #: lib/class-wp-embed-fb-admin.php:603
448
- msgid "Loop Through Album"
449
- msgstr "Bucle por el álbum"
450
-
451
- #: lib/class-wp-embed-fb-admin.php:604
452
- msgid "Use this lightbox on the [gallery] shortcode"
453
- msgstr "Utilice este Lightbox en el shortcode [gallery]"
454
-
455
- #: lib/class-wp-embed-fb-admin.php:623
456
- msgid ""
457
- "Beware altering this options without the proper knowledge could make the "
458
- "world disappear."
459
- msgstr ""
460
-
461
- #: lib/class-wp-embed-fb-admin.php:626
462
- msgid "Enqueue styles and scripts"
463
- msgstr "Enqueue estilos y scripts"
464
-
465
- #: lib/class-wp-embed-fb-admin.php:627
466
- msgid "Only when there is an embed present"
467
- msgstr "Sólo cuando hay un incrustado presente"
468
-
469
- #: lib/class-wp-embed-fb-admin.php:628
470
- msgid "Use permalinks on social plugins urls"
471
- msgstr ""
472
-
473
- #: lib/class-wp-embed-fb-admin.php:629
474
- msgid "Facebook SDK"
475
- msgstr "SDK de Facebook"
476
-
477
- #: lib/class-wp-embed-fb-admin.php:630
478
- msgid "Template Styles"
479
- msgstr "Estilos de la plantilla"
480
-
481
- #: lib/class-wp-embed-fb-admin.php:631
482
- msgid "Adaptive social plugins script"
483
- msgstr "Script pasa social plugins adaptivos"
484
-
485
- #: lib/class-wp-embed-fb-admin.php:634
486
- msgid "Enqueue script"
487
- msgstr "Registrar el script del plugin"
488
-
489
- #: lib/class-wp-embed-fb-admin.php:635
490
- msgid "Attribute"
491
- msgstr "Atributo"
492
-
493
- #: lib/class-wp-embed-fb-admin.php:637
494
- msgid "Other Options"
495
- msgstr "Otras Opciones"
496
-
497
- #: lib/class-wp-embed-fb-admin.php:638
498
- msgid "Add fb-root on top of content"
499
- msgstr "Añadir fb-root en la parte superior contenido"
500
-
501
- #: lib/class-wp-embed-fb-admin.php:639
502
- msgid "Force Facebook SDK script on all site"
503
- msgstr "Forzar el script de Facebook SDK en todo sitio"
504
-
505
- #: lib/class-wp-embed-fb-admin.php:640
506
- msgid "Force app token"
507
- msgstr "Forzar el token de la app"
508
-
509
- #: lib/class-wp-embed-fb-admin.php:660
510
- msgid "Save all settings"
511
- msgstr "Guardar todos los ajustes"
512
-
513
- #: lib/class-wp-embed-fb-admin.php:665
514
- msgid "Restore default values?"
515
- msgstr "¿ Restaurar valores predeterminados ?"
516
-
517
- #: lib/class-wp-embed-fb-admin.php:668
518
- msgid "Restore defaults"
519
- msgstr "Restaurar valores predeterminados"
520
-
521
- #: lib/class-wp-embed-fb-admin.php:676
522
- msgid "Premium Extension Available"
523
- msgstr "Extensión Premium disponible"
524
-
525
- #: lib/class-wp-embed-fb-admin.php:680
526
- msgid "Shortcodes for embedding a full event or page."
527
- msgstr "Shortcodes para incrustar un evento o una página."
528
-
529
- #: lib/class-wp-embed-fb-admin.php:682
530
- msgid "Elegant template for custom embeds"
531
- msgstr "Plantilla Elegant para incrustados personalizados"
532
-
533
- #: lib/class-wp-embed-fb-admin.php:684
534
- msgid "Albums with more that 100 photos."
535
- msgstr "Álbumes con más 100 fotos."
536
-
537
- #: lib/class-wp-embed-fb-admin.php:686
538
- msgid "One Year Premium Support"
539
- msgstr "Soporte Premium por un año"
540
-
541
- #: lib/class-wp-embed-fb-admin.php:690
542
- msgid "Check it out"
543
- msgstr "Échale un vistazo!"
544
-
545
- #: lib/class-wp-embed-fb-admin.php:694
546
- msgid "Plus new features cooking"
547
- msgstr "Más novedades un la cocina"
548
-
549
- #: lib/class-wp-embed-fb-admin.php:697
550
- msgid ""
551
- "Embed private data, shortcode creator, widgets, special templates for albums "
552
- "and pages"
553
- msgstr ""
554
- "Incrusta datos privados, creador de shortcodes, widgets, plantillas "
555
- "especiales para álbumes y páginas"
556
-
557
- #: lib/class-wp-embed-fb-admin.php:702
558
- msgid "This free plugin has taken thousands of hours to maintain and develop"
559
- msgstr ""
560
- "Este plugin gratuito ha costado miles de horas en mantener y desarrollar"
561
-
562
- #: lib/class-wp-embed-fb-admin.php:707
563
- msgid "Rate it"
564
- msgstr "Valóralo ahora"
565
-
566
- #: lib/class-wp-embed-fb-admin.php:715
567
- msgid "Donate"
568
- msgstr "Dona"
569
-
570
- #: lib/class-wp-embed-fb-admin.php:720
571
- msgid "More information"
572
- msgstr "Más información"
573
-
574
- #: lib/class-wp-embed-fb.php:56
575
- msgid "This is not a valid facebook url"
576
- msgstr "Esto no es una url válida de facebook"
577
-
578
- #: lib/class-wp-embed-fb.php:71
579
- msgid ""
580
- "You are using the [facebook] shortcode wrong. See examples <a title="
581
- "\"Examples\" target=\"_blank\" href=\"%s\" >here</a>."
582
- msgstr ""
583
- "Usas el shortcode [facebook] mal. Ver ejemplos <a title=\"Examples\" target="
584
- "\"_blank\" href=\"%s\">aquí</a>."
585
-
586
- #: lib/class-wp-embed-fb.php:188
587
- msgid ""
588
- "Error: Try embedding this post as a social plugin (only visible to admins)"
589
- msgstr ""
590
- "Error: Trata de incrustar este post como un plugin social (visible sólo para "
591
- "administradores)"
592
-
593
- #: lib/class-wp-embed-fb.php:191 lib/class-wp-embed-fb.php:230
594
- msgid "Code"
595
- msgstr "Código"
596
-
597
- #: lib/class-wp-embed-fb.php:193 lib/class-wp-embed-fb.php:232
598
- #: lib/class-wp-embed-fb.php:430
599
- msgid "Error"
600
- msgstr "Error"
601
-
602
- #: lib/class-wp-embed-fb.php:437
603
- msgid ""
604
- "<small>To embed this type of content you need to setup a facebook app on <a "
605
- "href=\"%s\" title=\"WP Embed Facebook Settings\">settings</a></small>"
606
- msgstr ""
607
- "<small>Para incrustar este tipo de contenido necesita configurar una "
608
- "aplicación de Facebook en <a href=\"%s\" title=\"WP Embed Facebook Settings"
609
- "\">configuración</a></small>"
610
-
611
- #: templates/classic/com-page.php:20 templates/classic/page.php:34
612
- #: templates/classic/post.php:21 templates/default/com-page.php:20
613
- #: templates/default/page.php:34 templates/default/post.php:21
614
- msgid "%d people like this."
615
- msgstr "a %d les gusta esto."
616
-
617
- #: templates/classic/com-page.php:26 templates/classic/com-page.php:27
618
- #: templates/classic/page.php:24 templates/classic/page.php:25
619
- #: templates/default/com-page.php:26 templates/default/com-page.php:27
620
- #: templates/default/page.php:24 templates/default/page.php:25
621
- msgid "Web Site"
622
- msgstr "Sitio Web"
623
-
624
- #: templates/classic/event.php:27 templates/classic/event.php:30
625
- #: templates/default/event.php:27 templates/default/event.php:30
626
- msgid "@ "
627
- msgstr "en: "
628
-
629
- #: templates/classic/event.php:34 templates/default/event.php:34
630
- msgid "Creator: "
631
- msgstr "Creador: "
632
-
633
- #: templates/classic/single-post.php:125 templates/default/single-post.php:125
634
- msgid "likes"
635
- msgstr "me gusta"
636
-
637
- #: templates/classic/single-post.php:128 templates/default/single-post.php:128
638
- msgid "comments"
639
- msgstr "comentarios"
640
-
641
- #: templates/classic/single-post.php:131 templates/default/single-post.php:131
642
- msgid "shares"
643
- msgstr "comparticiones"
644
-
645
- #. Author URI of the plugin/theme
646
- msgid "http://www.wpembedfb.com"
647
- msgstr "http://www.wpembedfb.com"
648
-
649
- #. Description of the plugin/theme
650
- #, fuzzy
651
- msgid ""
652
- "Embed any public Facebook video, photo, album, event, page, comment, "
653
- "profile, or post. Add Facebook comments to all your site, insert Facebook "
654
- "social plugins (like, save, send, share, follow, quote, comments) anywhere "
655
- "on your site. View the <a href=\"http://www.wpembedfb.com/demo-site/\" title="
656
- "\"plugin website\" target=\"_blank\">demo site</a>."
657
- msgstr ""
658
- "Incrusta un post, video, foto, álbum, evento, página, comentario o perfil "
659
- "público. Agrega comentarios de Facebook a todo tu sitio, inserta plugins "
660
- "sociales (me gusta, guardar, enviar, compartir, seguir, cita, comentarios) "
661
- "en cualquier lugar de su sitio. Ver los <a href=\"http://www.wpembedfb.com/"
662
- "demo-site/\" title=\"plugin website\" target=\"_blank\">ejemplos</a>."
663
-
664
- #. Author of the plugin/theme
665
- msgid "Miguel Sirvent"
666
- msgstr "Miguel Sirvent"
667
-
668
- #~ msgid "Download this video"
669
- #~ msgstr "Descargar este video"
670
-
671
- #~ msgid "%sShow download option <br> under video"
672
- #~ msgstr "%sMostrar opción para descargar <br> debajo del video"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lang/wp-embed-facebook-es_CL.mo DELETED
Binary file
lang/wp-embed-facebook-es_CL.po DELETED
@@ -1,672 +0,0 @@
1
- # Copyright (C) 2016 Miguel Sirvent
2
- # This file is distributed under the same license as the WP Embed Facebook package.
3
- msgid ""
4
- msgstr ""
5
- "Project-Id-Version: WP Embed Facebook 2.1.6\n"
6
- "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-embed-"
7
- "facebook\n"
8
- "POT-Creation-Date: 2016-10-06 11:26-0500\n"
9
- "PO-Revision-Date: 2016-10-06 11:54-0500\n"
10
- "Last-Translator: Miguel Sirvent <miguel.sirvent@gmail.com>\n"
11
- "Language-Team: Miguel Sirvent <miguel@sigami.net>\n"
12
- "Language: es_CL\n"
13
- "MIME-Version: 1.0\n"
14
- "Content-Type: text/plain; charset=UTF-8\n"
15
- "Content-Transfer-Encoding: 8bit\n"
16
- "X-Generator: Poedit 1.8.9\n"
17
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
18
- "_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
19
- "esc_html_x:1,2c\n"
20
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
21
- "X-Poedit-SourceCharset: UTF-8\n"
22
- "X-Poedit-Basepath: ..\n"
23
- "X-Textdomain-Support: yes\n"
24
- "X-Poedit-Wpheader: wp-embed-facebook.php\n"
25
- "X-Poedit-SearchPath-0: .\n"
26
- "X-Poedit-SearchPathExcluded-0: *.js\n"
27
-
28
- #: lib/class-wef-magic-embeds.php:123
29
- msgid "Shortcode used:"
30
- msgstr "Shortcode utilizado:"
31
-
32
- #: lib/class-wef-magic-embeds.php:128
33
- msgid "Final code:"
34
- msgstr "Código final:"
35
-
36
- #: lib/class-wef-magic-embeds.php:133
37
- msgid "More information:"
38
- msgstr "Más información:"
39
-
40
- #: lib/class-wef-social-plugins.php:504
41
- msgid "Invalid Facebook plugin type use it like this: [fb_plugin like]"
42
- msgstr ""
43
- "Tipo de plugin de Facebook inválido utilizarlo como así: [como fb_plugin]"
44
-
45
- #. Plugin Name of the plugin/theme
46
- msgid "WP Embed Facebook"
47
- msgstr "Incrustar Facebook (WP Embed Facebook)"
48
-
49
- #: lib/class-wef-widget.php:15
50
- #, fuzzy
51
- msgid "Shortcode widget"
52
- msgstr "Shortcode utilizado:"
53
-
54
- #: lib/class-wef-widget.php:50
55
- msgid "Title:"
56
- msgstr ""
57
-
58
- #: lib/class-wef-widget.php:54
59
- #, fuzzy
60
- msgid "Shortcode:"
61
- msgstr "Shortcode utilizado:"
62
-
63
- #: lib/class-wp-embed-fb-admin.php:28
64
- #, fuzzy
65
- msgid ""
66
- "To enable comment moderation and embed albums, events, profiles and video as "
67
- "HTML5 setup a facebook app on <a id=\"wef_settings_link\" href=\"%s"
68
- "\">settings</a>"
69
- msgstr ""
70
- "Para activar la moderación de comentarios e incrustar álbumes, eventos, "
71
- "perfiles y vídeo en HTML5 configura una App de Facebook en <a href=\"%s"
72
- "\">configuración</a>"
73
-
74
- #: lib/class-wp-embed-fb-admin.php:138
75
- msgid "Settings"
76
- msgstr "Configuracion"
77
-
78
- #: lib/class-wp-embed-fb-admin.php:345
79
- msgid "Magic Embeds"
80
- msgstr "Incrustados Mágicos"
81
-
82
- #: lib/class-wp-embed-fb-admin.php:346
83
- msgid "Social Plugins"
84
- msgstr "Social Plugins"
85
-
86
- #: lib/class-wp-embed-fb-admin.php:347
87
- msgid "Custom Embeds"
88
- msgstr "Incrustados personalizados"
89
-
90
- #: lib/class-wp-embed-fb-admin.php:348 lib/class-wp-embed-fb-admin.php:633
91
- msgid "Lightbox"
92
- msgstr "Lightbox"
93
-
94
- #: lib/class-wp-embed-fb-admin.php:349
95
- msgid "Advanced"
96
- msgstr "Avanzado"
97
-
98
- #: lib/class-wp-embed-fb-admin.php:365
99
- msgid ""
100
- "Auto embeds understand the url you are entering and return a social plugin "
101
- "or a custom embed. <br>They can be activated by <a href=\"%s\" title="
102
- "\"WordPress Embeds\" target=\"_blank\">pasting the url on the editor</a> or "
103
- "by the [facebook url ] <a href=\"%s\" title=\"[facebook] Shortcode "
104
- "attributes and examples\" target=\"_blank\">shortcode</a>."
105
- msgstr ""
106
- "Los auto incrustados entienden la url vas a entrar y devuelve un incrustado "
107
- "personalizado o un plugin social.<br>Pueden ser activados al <a href=\"%s\" "
108
- "title=\"WordPress Embeds\" target=\"_blank\">pegar la url en el editor</a> o "
109
- "por el <a href=\"%s\" title=\"[facebook] Shortcode attributes and examples\" "
110
- "target=\"_blank\">shortcode</a> [facebook url] ."
111
-
112
- #: lib/class-wp-embed-fb-admin.php:366
113
- msgid "Auto Embeds"
114
- msgstr "Auto Incrustados"
115
-
116
- #: lib/class-wp-embed-fb-admin.php:367
117
- msgid "Auto embed url's on editor "
118
- msgstr "Auto incrustar urls en el editor"
119
-
120
- #: lib/class-wp-embed-fb-admin.php:368
121
- msgid "Maximum width in pixels"
122
- msgstr "Máxima anchura en píxeles"
123
-
124
- #: lib/class-wp-embed-fb-admin.php:369
125
- msgid "Embed video as post"
126
- msgstr "Incrustar video como post"
127
-
128
- #: lib/class-wp-embed-fb-admin.php:373
129
- msgid ""
130
- "The quote plugin lets people select text on your page and add it to their "
131
- "share.<br><a href=\"%s\" target=\"_blank\" title=\"WP Embed Facebook\">Demo</"
132
- "a>"
133
- msgstr ""
134
- "El plugin de cita permite a las personas Seleccionar texto en tu página y "
135
- "agregarla a su participación.<br><a href=\"%s\" target=\"_blank\" title=\"WP "
136
- "Embed Facebook\">Ejemplo</a>"
137
-
138
- #: lib/class-wp-embed-fb-admin.php:373
139
- msgid "Quote Plugin"
140
- msgstr "Quote Plugin"
141
-
142
- #: lib/class-wp-embed-fb-admin.php:374 lib/class-wp-embed-fb-admin.php:379
143
- msgid "Active"
144
- msgstr "Activo"
145
-
146
- #: lib/class-wp-embed-fb-admin.php:375 lib/class-wp-embed-fb-admin.php:380
147
- msgid "Post types"
148
- msgstr "Tipos de entradas"
149
-
150
- #: lib/class-wp-embed-fb-admin.php:376 lib/class-wp-embed-fb-admin.php:381
151
- msgid "Post types separated by commas i.e. post,page,attachment"
152
- msgstr "Tipos de post separado por comas, es decir: post,page,attachment"
153
-
154
- #: lib/class-wp-embed-fb-admin.php:378
155
- msgid "Comments"
156
- msgstr "Comentarios"
157
-
158
- #: lib/class-wp-embed-fb-admin.php:382
159
- msgid "Sync comment count"
160
- msgstr "Sincronizar conteo de comentarios"
161
-
162
- #: lib/class-wp-embed-fb-admin.php:385
163
- msgid "Add open graph meta"
164
- msgstr "Agregar meta open graph"
165
-
166
- #: lib/class-wp-embed-fb-admin.php:386
167
- msgid "Needed to moderate comments"
168
- msgstr "Necesario para moderar comentarios"
169
-
170
- #: lib/class-wp-embed-fb-admin.php:386
171
- msgid ""
172
- "Disable this if you already have another plugin adding <a title=\"Moderation "
173
- "Setup Instructions\" target=\"_blank\" href=\"%s\">the fb:app_id meta</a>"
174
- msgstr ""
175
- "Desactivar esto si ya tienes otro plugin añadiendo <a title=\"Moderation "
176
- "Setup Instructions\" target=\"_blank\" href=\"%s\">la meta fb:app_id</a>"
177
-
178
- #: lib/class-wp-embed-fb-admin.php:387
179
- msgid "To enable comments moderation setup your App ID"
180
- msgstr "Para permitir moderación en comentarios configurar tu App ID"
181
-
182
- #: lib/class-wp-embed-fb-admin.php:390
183
- msgid ""
184
- "If you cant see the \"Moderate comment\" link above each comment you will "
185
- "need to <a title=\"Sharing Debugger\" target=\"_blank\" href=\"%s\">scrape "
186
- "the url</a>"
187
- msgstr ""
188
- "Si no ves el enlace \"Moderar comentaio\" sobre cada comentario tendras que "
189
- "<a title=\"Sharing Debugger\" target=\"_blank\" href=\"%s\">raspar la url</a>"
190
-
191
- #: lib/class-wp-embed-fb-admin.php:394
192
- msgid "Notes:"
193
- msgstr "Notas:"
194
-
195
- #: lib/class-wp-embed-fb-admin.php:396
196
- msgid "Facebook settings"
197
- msgstr "Ajustes de Facebook"
198
-
199
- #: lib/class-wp-embed-fb-admin.php:397
200
- msgid "Social Plugins Language"
201
- msgstr "Lenguaje de los plugins sociales"
202
-
203
- #: lib/class-wp-embed-fb-admin.php:400
204
- msgid ""
205
- "Creating a Facebook app is easy view the <a href=\"%s\" target=\"_blank\" "
206
- "title=\"WP Embed FB documentation\">step by step guide</a> or view <a href="
207
- "\"%s\" target=\"_blank\" title=\"Facebook Apps\">your apps</a>."
208
- msgstr ""
209
- "Crear una aplicación de Facebook es fácil ver la <a href=\"%s\" target="
210
- "\"_blank\" title=\"WP Embed FB documentation\">Guía paso a paso</a> o ver <a "
211
- "href=\"%s\" target=\"_blank\" title=\"Facebook Apps\">tus aplicaciones</a>."
212
-
213
- #: lib/class-wp-embed-fb-admin.php:407
214
- msgid "App ID"
215
- msgstr "App ID"
216
-
217
- #: lib/class-wp-embed-fb-admin.php:409
218
- msgid "App Secret"
219
- msgstr "App Secret"
220
-
221
- #: lib/class-wp-embed-fb-admin.php:421
222
- msgid ""
223
- "<a title=\"Facebook Social Plugins\" href=\"%s\" rel=\"nofollow\" target="
224
- "\"_blank\">Social plugins</a> are pieces of code that Facebook developers "
225
- "created for us mortals."
226
- msgstr ""
227
- "<a title=\"Facebook Social Plugins\" href=\"%s\" rel=\"nofollow\" target="
228
- "\"_blank\">Los plugins sociales</a> son piezas de código que los "
229
- "desarrolladores de Facebook creado para nosotros los mortales."
230
-
231
- #: lib/class-wp-embed-fb-admin.php:423 lib/class-wp-embed-fb-admin.php:566
232
- msgid "Example:"
233
- msgstr "Ejemplo:"
234
-
235
- #: lib/class-wp-embed-fb-admin.php:425
236
- msgid "Embed a like button for the curent page:"
237
- msgstr "Insertar un botón de me gusta de la página actual:"
238
-
239
- #: lib/class-wp-embed-fb-admin.php:428
240
- msgid "add debug=1 to debug the result."
241
- msgstr "Añadir debug=1 para depurar el resultado."
242
-
243
- #: lib/class-wp-embed-fb-admin.php:435
244
- msgid "Page plugin"
245
- msgstr "Page plugin"
246
-
247
- #: lib/class-wp-embed-fb-admin.php:442
248
- msgid "Tabs separated by commas i.e. timeline,events,messages"
249
- msgstr "Pestañas separadas por comas, es decir: timeline,events,messages"
250
-
251
- #: lib/class-wp-embed-fb-admin.php:449
252
- msgid "Post plugin"
253
- msgstr "Post plugin"
254
-
255
- #: lib/class-wp-embed-fb-admin.php:456
256
- msgid "Video"
257
- msgstr "Video"
258
-
259
- #: lib/class-wp-embed-fb-admin.php:463
260
- msgid "Single comment"
261
- msgstr "Single comment"
262
-
263
- #: lib/class-wp-embed-fb-admin.php:467
264
- msgid "Activate them on all your posts on the \"Magic embeds\" section"
265
- msgstr "Activar en todos tus posts en la sección \"Incrustados Mágicos\""
266
-
267
- #: lib/class-wp-embed-fb-admin.php:467
268
- msgid "Comments plugin"
269
- msgstr "Comments plugin"
270
-
271
- #: lib/class-wp-embed-fb-admin.php:474
272
- msgid "Activate it on all your posts on the \"Magic embeds\" section"
273
- msgstr "Activar en todos tus posts en la sección \"Incrustados Mágicos\""
274
-
275
- #: lib/class-wp-embed-fb-admin.php:474
276
- msgid "Quote plugin"
277
- msgstr "Quote plugin"
278
-
279
- #: lib/class-wp-embed-fb-admin.php:477
280
- msgid "Save button"
281
- msgstr "Save button"
282
-
283
- #: lib/class-wp-embed-fb-admin.php:480
284
- msgid "Like button"
285
- msgstr "Like button"
286
-
287
- #: lib/class-wp-embed-fb-admin.php:489
288
- msgid "Send button"
289
- msgstr "Send button"
290
-
291
- #: lib/class-wp-embed-fb-admin.php:493
292
- msgid "Share button"
293
- msgstr "Share button"
294
-
295
- #: lib/class-wp-embed-fb-admin.php:497
296
- msgid "Follow button"
297
- msgstr "Follow button"
298
-
299
- #: lib/class-wp-embed-fb-admin.php:507
300
- msgid "Adaptive view"
301
- msgstr "Vista Adaptiva"
302
-
303
- #: lib/class-wp-embed-fb-admin.php:519
304
- msgid "General"
305
- msgstr "General"
306
-
307
- #: lib/class-wp-embed-fb-admin.php:531
308
- msgid "Albums"
309
- msgstr "Álbumes"
310
-
311
- #: lib/class-wp-embed-fb-admin.php:532
312
- msgid "Number of Photos"
313
- msgstr "Número de Imágenes"
314
-
315
- #: lib/class-wp-embed-fb-admin.php:534
316
- msgid "Events"
317
- msgstr "Eventos"
318
-
319
- #: lib/class-wp-embed-fb-admin.php:535
320
- msgid "Use WP time to calculate the date"
321
- msgstr "Usa el tiempo de WP para calcular la fecha"
322
-
323
- #: lib/class-wp-embed-fb-admin.php:536 lib/class-wp-embed-fb-admin.php:549
324
- msgid "Time format"
325
- msgstr "Formato de fecha"
326
-
327
- #: lib/class-wp-embed-fb-admin.php:537 lib/class-wp-embed-fb-admin.php:550
328
- msgid "examples"
329
- msgstr "ejemplos"
330
-
331
- #: lib/class-wp-embed-fb-admin.php:539
332
- msgid "Pages"
333
- msgstr "Páginas"
334
-
335
- #: lib/class-wp-embed-fb-admin.php:540 lib/class-wp-embed-fb-admin.php:545
336
- #: lib/class-wp-embed-fb-admin.php:548 lib/class-wp-embed-fb-admin.php:555
337
- msgid "Use by default on \"Auto Embeds\""
338
- msgstr "Utilizar por defecto en \"Auto incrustados\""
339
-
340
- #: lib/class-wp-embed-fb-admin.php:541
341
- msgid "Show like button"
342
- msgstr "Mostrar botón \"Me gusta\""
343
-
344
- #: lib/class-wp-embed-fb-admin.php:542
345
- msgid "Number of posts"
346
- msgstr "Número de publicaciones"
347
-
348
- #: lib/class-wp-embed-fb-admin.php:544
349
- msgid "Photos"
350
- msgstr "Fotos"
351
-
352
- #: lib/class-wp-embed-fb-admin.php:547
353
- msgid "Posts"
354
- msgstr "Publicaciones"
355
-
356
- #: lib/class-wp-embed-fb-admin.php:554
357
- msgid "Videos"
358
- msgstr "Vídeos"
359
-
360
- #: lib/class-wp-embed-fb-admin.php:556
361
- msgid "Force 16:9 ratio"
362
- msgstr "Fuerza de relación 16:9"
363
-
364
- #: lib/class-wp-embed-fb-admin.php:558
365
- msgid "Profiles"
366
- msgstr "Perfiles"
367
-
368
- #: lib/class-wp-embed-fb-admin.php:559
369
- msgid "Show follow button"
370
- msgstr "Botón de seguir"
371
-
372
- #: lib/class-wp-embed-fb-admin.php:564
373
- msgid ""
374
- "Custom embeds can be triggered using the [facebook url] or [embed] "
375
- "shortcodes also by activating \"Auto Embeds\" on Magic Embeds section."
376
- msgstr ""
377
- "Los Incrustados personalizados pueden activados utilizado los shortcodes "
378
- "[facebook url] o [embed] también al activar \"Auto Incrustados\" en la "
379
- "sección Incrustados Mágicos."
380
-
381
- #: lib/class-wp-embed-fb-admin.php:571
382
- msgid ""
383
- "<a href=\"%s\" title=\"WP Embed Facebook Shortcode\" target=\"_blank\">Read "
384
- "More</a>"
385
- msgstr ""
386
- "<a href=\"%s\" title=\"WP Embed Facebook Shortcode\" target=\"_blank\">Leer "
387
- "más</a>"
388
-
389
- #: lib/class-wp-embed-fb-admin.php:578 lib/class-wp-embed-fb-admin.php:612
390
- msgid "By default you can only embed public pages, videos, photos and posts."
391
- msgstr ""
392
- "Por default sólo puede incrustar páginas, videos, fotos y publicaciones "
393
- "públicas."
394
-
395
- #: lib/class-wp-embed-fb-admin.php:579 lib/class-wp-embed-fb-admin.php:613
396
- msgid ""
397
- "To embed albums, events, profiles and video as HTML5 you will need to setup "
398
- "a Facebook App on Magic Embeds section"
399
- msgstr ""
400
- "Para incrustar álbumes, eventos, perfiles y vídeo en HTML5, necesitará "
401
- "configurar una App Facebook en la sección de incrustados mágicos"
402
-
403
- #: lib/class-wp-embed-fb-admin.php:592
404
- msgid "Lightbox Options"
405
- msgstr "Opciones de Lightbox"
406
-
407
- #: lib/class-wp-embed-fb-admin.php:593
408
- msgid "Show Image Number Label"
409
- msgstr "Etiqueta de número de imagen"
410
-
411
- #: lib/class-wp-embed-fb-admin.php:594
412
- msgid "Album Label"
413
- msgstr "Etiqueta del album"
414
-
415
- #: lib/class-wp-embed-fb-admin.php:595
416
- msgid "Fade Duration"
417
- msgstr "Duración del esfumado"
418
-
419
- #: lib/class-wp-embed-fb-admin.php:596
420
- msgid "Resize Duration"
421
- msgstr "Duración del cambio de tamaño"
422
-
423
- #: lib/class-wp-embed-fb-admin.php:597
424
- msgid "Position From Top"
425
- msgstr "Posición desde arriba"
426
-
427
- #: lib/class-wp-embed-fb-admin.php:598
428
- msgid "Max Height"
429
- msgstr "Altura máxima"
430
-
431
- #: lib/class-wp-embed-fb-admin.php:599
432
- msgid "Max Width"
433
- msgstr "Anchura máxima"
434
-
435
- #: lib/class-wp-embed-fb-admin.php:600
436
- msgid "Always Show Nav On TouchDevices"
437
- msgstr "Siempre mostrar nav. en dispositivos táctiles"
438
-
439
- #: lib/class-wp-embed-fb-admin.php:601
440
- msgid "Fit Images In Viewport"
441
- msgstr "Escalar imágenes a la ventana"
442
-
443
- #: lib/class-wp-embed-fb-admin.php:602
444
- msgid "Disable Scrolling"
445
- msgstr "Desactivar desplazamiento"
446
-
447
- #: lib/class-wp-embed-fb-admin.php:603
448
- msgid "Loop Through Album"
449
- msgstr "Bucle por el álbum"
450
-
451
- #: lib/class-wp-embed-fb-admin.php:604
452
- msgid "Use this lightbox on the [gallery] shortcode"
453
- msgstr "Utilice este Lightbox en el shortcode [gallery]"
454
-
455
- #: lib/class-wp-embed-fb-admin.php:623
456
- msgid ""
457
- "Beware altering this options without the proper knowledge could make the "
458
- "world disappear."
459
- msgstr ""
460
-
461
- #: lib/class-wp-embed-fb-admin.php:626
462
- msgid "Enqueue styles and scripts"
463
- msgstr "Enqueue estilos y scripts"
464
-
465
- #: lib/class-wp-embed-fb-admin.php:627
466
- msgid "Only when there is an embed present"
467
- msgstr "Sólo cuando hay un incrustado presente"
468
-
469
- #: lib/class-wp-embed-fb-admin.php:628
470
- msgid "Use permalinks on social plugins urls"
471
- msgstr ""
472
-
473
- #: lib/class-wp-embed-fb-admin.php:629
474
- msgid "Facebook SDK"
475
- msgstr "SDK de Facebook"
476
-
477
- #: lib/class-wp-embed-fb-admin.php:630
478
- msgid "Template Styles"
479
- msgstr "Estilos de la plantilla"
480
-
481
- #: lib/class-wp-embed-fb-admin.php:631
482
- msgid "Adaptive social plugins script"
483
- msgstr "Script pasa social plugins adaptivos"
484
-
485
- #: lib/class-wp-embed-fb-admin.php:634
486
- msgid "Enqueue script"
487
- msgstr "Registrar el script del plugin"
488
-
489
- #: lib/class-wp-embed-fb-admin.php:635
490
- msgid "Attribute"
491
- msgstr "Atributo"
492
-
493
- #: lib/class-wp-embed-fb-admin.php:637
494
- msgid "Other Options"
495
- msgstr "Otras Opciones"
496
-
497
- #: lib/class-wp-embed-fb-admin.php:638
498
- msgid "Add fb-root on top of content"
499
- msgstr "Añadir fb-root en la parte superior contenido"
500
-
501
- #: lib/class-wp-embed-fb-admin.php:639
502
- msgid "Force Facebook SDK script on all site"
503
- msgstr "Forzar el script de Facebook SDK en todo sitio"
504
-
505
- #: lib/class-wp-embed-fb-admin.php:640
506
- msgid "Force app token"
507
- msgstr "Forzar el token de la app"
508
-
509
- #: lib/class-wp-embed-fb-admin.php:660
510
- msgid "Save all settings"
511
- msgstr "Guardar todos los ajustes"
512
-
513
- #: lib/class-wp-embed-fb-admin.php:665
514
- msgid "Restore default values?"
515
- msgstr "¿ Restaurar valores predeterminados ?"
516
-
517
- #: lib/class-wp-embed-fb-admin.php:668
518
- msgid "Restore defaults"
519
- msgstr "Restaurar valores predeterminados"
520
-
521
- #: lib/class-wp-embed-fb-admin.php:676
522
- msgid "Premium Extension Available"
523
- msgstr "Extensión Premium disponible"
524
-
525
- #: lib/class-wp-embed-fb-admin.php:680
526
- msgid "Shortcodes for embedding a full event or page."
527
- msgstr "Shortcodes para incrustar un evento o una página."
528
-
529
- #: lib/class-wp-embed-fb-admin.php:682
530
- msgid "Elegant template for custom embeds"
531
- msgstr "Plantilla Elegant para incrustados personalizados"
532
-
533
- #: lib/class-wp-embed-fb-admin.php:684
534
- msgid "Albums with more that 100 photos."
535
- msgstr "Álbumes con más 100 fotos."
536
-
537
- #: lib/class-wp-embed-fb-admin.php:686
538
- msgid "One Year Premium Support"
539
- msgstr "Soporte Premium por un año"
540
-
541
- #: lib/class-wp-embed-fb-admin.php:690
542
- msgid "Check it out"
543
- msgstr "Échale un vistazo!"
544
-
545
- #: lib/class-wp-embed-fb-admin.php:694
546
- msgid "Plus new features cooking"
547
- msgstr "Más novedades un la cocina"
548
-
549
- #: lib/class-wp-embed-fb-admin.php:697
550
- msgid ""
551
- "Embed private data, shortcode creator, widgets, special templates for albums "
552
- "and pages"
553
- msgstr ""
554
- "Incrusta datos privados, creador de shortcodes, widgets, plantillas "
555
- "especiales para álbumes y páginas"
556
-
557
- #: lib/class-wp-embed-fb-admin.php:702
558
- msgid "This free plugin has taken thousands of hours to maintain and develop"
559
- msgstr ""
560
- "Este plugin gratuito ha costado miles de horas en mantener y desarrollar"
561
-
562
- #: lib/class-wp-embed-fb-admin.php:707
563
- msgid "Rate it"
564
- msgstr "Valóralo ahora"
565
-
566
- #: lib/class-wp-embed-fb-admin.php:715
567
- msgid "Donate"
568
- msgstr "Dona"
569
-
570
- #: lib/class-wp-embed-fb-admin.php:720
571
- msgid "More information"
572
- msgstr "Más información"
573
-
574
- #: lib/class-wp-embed-fb.php:56
575
- msgid "This is not a valid facebook url"
576
- msgstr "Esto no es una url válida de facebook"
577
-
578
- #: lib/class-wp-embed-fb.php:71
579
- msgid ""
580
- "You are using the [facebook] shortcode wrong. See examples <a title="
581
- "\"Examples\" target=\"_blank\" href=\"%s\" >here</a>."
582
- msgstr ""
583
- "Usas el shortcode [facebook] mal. Ver ejemplos <a title=\"Examples\" target="
584
- "\"_blank\" href=\"%s\">aquí</a>."
585
-
586
- #: lib/class-wp-embed-fb.php:188
587
- msgid ""
588
- "Error: Try embedding this post as a social plugin (only visible to admins)"
589
- msgstr ""
590
- "Error: Trata de incrustar este post como un plugin social (visible sólo para "
591
- "administradores)"
592
-
593
- #: lib/class-wp-embed-fb.php:191 lib/class-wp-embed-fb.php:230
594
- msgid "Code"
595
- msgstr "Código"
596
-
597
- #: lib/class-wp-embed-fb.php:193 lib/class-wp-embed-fb.php:232
598
- #: lib/class-wp-embed-fb.php:430
599
- msgid "Error"
600
- msgstr "Error"
601
-
602
- #: lib/class-wp-embed-fb.php:437
603
- msgid ""
604
- "<small>To embed this type of content you need to setup a facebook app on <a "
605
- "href=\"%s\" title=\"WP Embed Facebook Settings\">settings</a></small>"
606
- msgstr ""
607
- "<small>Para incrustar este tipo de contenido necesita configurar una "
608
- "aplicación de Facebook en <a href=\"%s\" title=\"WP Embed Facebook Settings"
609
- "\">configuración</a></small>"
610
-
611
- #: templates/classic/com-page.php:20 templates/classic/page.php:34
612
- #: templates/classic/post.php:21 templates/default/com-page.php:20
613
- #: templates/default/page.php:34 templates/default/post.php:21
614
- msgid "%d people like this."
615
- msgstr "a %d les gusta esto."
616
-
617
- #: templates/classic/com-page.php:26 templates/classic/com-page.php:27
618
- #: templates/classic/page.php:24 templates/classic/page.php:25
619
- #: templates/default/com-page.php:26 templates/default/com-page.php:27
620
- #: templates/default/page.php:24 templates/default/page.php:25
621
- msgid "Web Site"
622
- msgstr "Sitio Web"
623
-
624
- #: templates/classic/event.php:27 templates/classic/event.php:30
625
- #: templates/default/event.php:27 templates/default/event.php:30
626
- msgid "@ "
627
- msgstr "en: "
628
-
629
- #: templates/classic/event.php:34 templates/default/event.php:34
630
- msgid "Creator: "
631
- msgstr "Creador: "
632
-
633
- #: templates/classic/single-post.php:125 templates/default/single-post.php:125
634
- msgid "likes"
635
- msgstr "me gusta"
636
-
637
- #: templates/classic/single-post.php:128 templates/default/single-post.php:128
638
- msgid "comments"
639
- msgstr "comentarios"
640
-
641
- #: templates/classic/single-post.php:131 templates/default/single-post.php:131
642
- msgid "shares"
643
- msgstr "comparticiones"
644
-
645
- #. Author URI of the plugin/theme
646
- msgid "http://www.wpembedfb.com"
647
- msgstr "http://www.wpembedfb.com"
648
-
649
- #. Description of the plugin/theme
650
- #, fuzzy
651
- msgid ""
652
- "Embed any public Facebook video, photo, album, event, page, comment, "
653
- "profile, or post. Add Facebook comments to all your site, insert Facebook "
654
- "social plugins (like, save, send, share, follow, quote, comments) anywhere "
655
- "on your site. View the <a href=\"http://www.wpembedfb.com/demo-site/\" title="
656
- "\"plugin website\" target=\"_blank\">demo site</a>."
657
- msgstr ""
658
- "Incrusta un post, video, foto, álbum, evento, página, comentario o perfil "
659
- "público. Agrega comentarios de Facebook a todo tu sitio, inserta plugins "
660
- "sociales (me gusta, guardar, enviar, compartir, seguir, cita, comentarios) "
661
- "en cualquier lugar de su sitio. Ver los <a href=\"http://www.wpembedfb.com/"
662
- "demo-site/\" title=\"plugin website\" target=\"_blank\">ejemplos</a>."
663
-
664
- #. Author of the plugin/theme
665
- msgid "Miguel Sirvent"
666
- msgstr "Miguel Sirvent"
667
-
668
- #~ msgid "Download this video"
669
- #~ msgstr "Descargar este video"
670
-
671
- #~ msgid "%sShow download option <br> under video"
672
- #~ msgstr "%sMostrar opción para descargar <br> debajo del video"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lang/wp-embed-facebook-es_ES.mo DELETED
Binary file
lang/wp-embed-facebook-es_ES.po DELETED
@@ -1,672 +0,0 @@
1
- # Copyright (C) 2016 Miguel Sirvent
2
- # This file is distributed under the same license as the WP Embed Facebook package.
3
- msgid ""
4
- msgstr ""
5
- "Project-Id-Version: WP Embed Facebook 2.1.6\n"
6
- "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-embed-"
7
- "facebook\n"
8
- "POT-Creation-Date: 2016-10-06 11:26-0500\n"
9
- "PO-Revision-Date: 2016-10-06 11:53-0500\n"
10
- "Last-Translator: Miguel Sirvent <miguel.sirvent@gmail.com>\n"
11
- "Language-Team: Miguel Sirvent <miguel@sigami.net>\n"
12
- "Language: es_ES\n"
13
- "MIME-Version: 1.0\n"
14
- "Content-Type: text/plain; charset=UTF-8\n"
15
- "Content-Transfer-Encoding: 8bit\n"
16
- "X-Generator: Poedit 1.8.9\n"
17
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
18
- "_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
19
- "esc_html_x:1,2c\n"
20
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
21
- "X-Poedit-SourceCharset: UTF-8\n"
22
- "X-Poedit-Basepath: ..\n"
23
- "X-Textdomain-Support: yes\n"
24
- "X-Poedit-Wpheader: wp-embed-facebook.php\n"
25
- "X-Poedit-SearchPath-0: .\n"
26
- "X-Poedit-SearchPathExcluded-0: *.js\n"
27
-
28
- #: lib/class-wef-magic-embeds.php:123
29
- msgid "Shortcode used:"
30
- msgstr "Shortcode utilizado:"
31
-
32
- #: lib/class-wef-magic-embeds.php:128
33
- msgid "Final code:"
34
- msgstr "Código final:"
35
-
36
- #: lib/class-wef-magic-embeds.php:133
37
- msgid "More information:"
38
- msgstr "Más información:"
39
-
40
- #: lib/class-wef-social-plugins.php:504
41
- msgid "Invalid Facebook plugin type use it like this: [fb_plugin like]"
42
- msgstr ""
43
- "Tipo de plugin de Facebook inválido utilizarlo como así: [como fb_plugin]"
44
-
45
- #. Plugin Name of the plugin/theme
46
- msgid "WP Embed Facebook"
47
- msgstr "Incrustar Facebook (WP Embed Facebook)"
48
-
49
- #: lib/class-wef-widget.php:15
50
- #, fuzzy
51
- msgid "Shortcode widget"
52
- msgstr "Shortcode utilizado:"
53
-
54
- #: lib/class-wef-widget.php:50
55
- msgid "Title:"
56
- msgstr ""
57
-
58
- #: lib/class-wef-widget.php:54
59
- #, fuzzy
60
- msgid "Shortcode:"
61
- msgstr "Shortcode utilizado:"
62
-
63
- #: lib/class-wp-embed-fb-admin.php:28
64
- #, fuzzy
65
- msgid ""
66
- "To enable comment moderation and embed albums, events, profiles and video as "
67
- "HTML5 setup a facebook app on <a id=\"wef_settings_link\" href=\"%s"
68
- "\">settings</a>"
69
- msgstr ""
70
- "Para activar la moderación de comentarios e incrustar álbumes, eventos, "
71
- "perfiles y vídeo en HTML5 configura una App de Facebook en <a href=\"%s"
72
- "\">configuración</a>"
73
-
74
- #: lib/class-wp-embed-fb-admin.php:138
75
- msgid "Settings"
76
- msgstr "Configuracion"
77
-
78
- #: lib/class-wp-embed-fb-admin.php:345
79
- msgid "Magic Embeds"
80
- msgstr "Incrustados Mágicos"
81
-
82
- #: lib/class-wp-embed-fb-admin.php:346
83
- msgid "Social Plugins"
84
- msgstr "Social Plugins"
85
-
86
- #: lib/class-wp-embed-fb-admin.php:347
87
- msgid "Custom Embeds"
88
- msgstr "Incrustados personalizados"
89
-
90
- #: lib/class-wp-embed-fb-admin.php:348 lib/class-wp-embed-fb-admin.php:633
91
- msgid "Lightbox"
92
- msgstr "Lightbox"
93
-
94
- #: lib/class-wp-embed-fb-admin.php:349
95
- msgid "Advanced"
96
- msgstr "Avanzado"
97
-
98
- #: lib/class-wp-embed-fb-admin.php:365
99
- msgid ""
100
- "Auto embeds understand the url you are entering and return a social plugin "
101
- "or a custom embed. <br>They can be activated by <a href=\"%s\" title="
102
- "\"WordPress Embeds\" target=\"_blank\">pasting the url on the editor</a> or "
103
- "by the [facebook url ] <a href=\"%s\" title=\"[facebook] Shortcode "
104
- "attributes and examples\" target=\"_blank\">shortcode</a>."
105
- msgstr ""
106
- "Los auto incrustados entienden la url vas a entrar y devuelve un incrustado "
107
- "personalizado o un plugin social.<br>Pueden ser activados al <a href=\"%s\" "
108
- "title=\"WordPress Embeds\" target=\"_blank\">pegar la url en el editor</a> o "
109
- "por el <a href=\"%s\" title=\"[facebook] Shortcode attributes and examples\" "
110
- "target=\"_blank\">shortcode</a> [facebook url] ."
111
-
112
- #: lib/class-wp-embed-fb-admin.php:366
113
- msgid "Auto Embeds"
114
- msgstr "Auto Incrustados"
115
-
116
- #: lib/class-wp-embed-fb-admin.php:367
117
- msgid "Auto embed url's on editor "
118
- msgstr "Auto incrustar urls en el editor"
119
-
120
- #: lib/class-wp-embed-fb-admin.php:368
121
- msgid "Maximum width in pixels"
122
- msgstr "Máxima anchura en píxeles"
123
-
124
- #: lib/class-wp-embed-fb-admin.php:369
125
- msgid "Embed video as post"
126
- msgstr "Incrustar video como post"
127
-
128
- #: lib/class-wp-embed-fb-admin.php:373
129
- msgid ""
130
- "The quote plugin lets people select text on your page and add it to their "
131
- "share.<br><a href=\"%s\" target=\"_blank\" title=\"WP Embed Facebook\">Demo</"
132
- "a>"
133
- msgstr ""
134
- "El plugin de cita permite a las personas Seleccionar texto en tu página y "
135
- "agregarla a su participación.<br><a href=\"%s\" target=\"_blank\" title=\"WP "
136
- "Embed Facebook\">Ejemplo</a>"
137
-
138
- #: lib/class-wp-embed-fb-admin.php:373
139
- msgid "Quote Plugin"
140
- msgstr "Quote Plugin"
141
-
142
- #: lib/class-wp-embed-fb-admin.php:374 lib/class-wp-embed-fb-admin.php:379
143
- msgid "Active"
144
- msgstr "Activo"
145
-
146
- #: lib/class-wp-embed-fb-admin.php:375 lib/class-wp-embed-fb-admin.php:380
147
- msgid "Post types"
148
- msgstr "Tipos de entradas"
149
-
150
- #: lib/class-wp-embed-fb-admin.php:376 lib/class-wp-embed-fb-admin.php:381
151
- msgid "Post types separated by commas i.e. post,page,attachment"
152
- msgstr "Tipos de post separado por comas, es decir: post,page,attachment"
153
-
154
- #: lib/class-wp-embed-fb-admin.php:378
155
- msgid "Comments"
156
- msgstr "Comentarios"
157
-
158
- #: lib/class-wp-embed-fb-admin.php:382
159
- msgid "Sync comment count"
160
- msgstr "Sincronizar conteo de comentarios"
161
-
162
- #: lib/class-wp-embed-fb-admin.php:385
163
- msgid "Add open graph meta"
164
- msgstr "Agregar meta open graph"
165
-
166
- #: lib/class-wp-embed-fb-admin.php:386
167
- msgid "Needed to moderate comments"
168
- msgstr "Necesario para moderar comentarios"
169
-
170
- #: lib/class-wp-embed-fb-admin.php:386
171
- msgid ""
172
- "Disable this if you already have another plugin adding <a title=\"Moderation "
173
- "Setup Instructions\" target=\"_blank\" href=\"%s\">the fb:app_id meta</a>"
174
- msgstr ""
175
- "Desactivar esto si ya tienes otro plugin añadiendo <a title=\"Moderation "
176
- "Setup Instructions\" target=\"_blank\" href=\"%s\">la meta fb:app_id</a>"
177
-
178
- #: lib/class-wp-embed-fb-admin.php:387
179
- msgid "To enable comments moderation setup your App ID"
180
- msgstr "Para permitir moderación en comentarios configurar tu App ID"
181
-
182
- #: lib/class-wp-embed-fb-admin.php:390
183
- msgid ""
184
- "If you cant see the \"Moderate comment\" link above each comment you will "
185
- "need to <a title=\"Sharing Debugger\" target=\"_blank\" href=\"%s\">scrape "
186
- "the url</a>"
187
- msgstr ""
188
- "Si no ves el enlace \"Moderar comentaio\" sobre cada comentario tendras que "
189
- "<a title=\"Sharing Debugger\" target=\"_blank\" href=\"%s\">raspar la url</a>"
190
-
191
- #: lib/class-wp-embed-fb-admin.php:394
192
- msgid "Notes:"
193
- msgstr "Notas:"
194
-
195
- #: lib/class-wp-embed-fb-admin.php:396
196
- msgid "Facebook settings"
197
- msgstr "Ajustes de Facebook"
198
-
199
- #: lib/class-wp-embed-fb-admin.php:397
200
- msgid "Social Plugins Language"
201
- msgstr "Lenguaje de los plugins sociales"
202
-
203
- #: lib/class-wp-embed-fb-admin.php:400
204
- msgid ""
205
- "Creating a Facebook app is easy view the <a href=\"%s\" target=\"_blank\" "
206
- "title=\"WP Embed FB documentation\">step by step guide</a> or view <a href="
207
- "\"%s\" target=\"_blank\" title=\"Facebook Apps\">your apps</a>."
208
- msgstr ""
209
- "Crear una aplicación de Facebook es fácil ver la <a href=\"%s\" target="
210
- "\"_blank\" title=\"WP Embed FB documentation\">Guía paso a paso</a> o ver <a "
211
- "href=\"%s\" target=\"_blank\" title=\"Facebook Apps\">tus aplicaciones</a>."
212
-
213
- #: lib/class-wp-embed-fb-admin.php:407
214
- msgid "App ID"
215
- msgstr "App ID"
216
-
217
- #: lib/class-wp-embed-fb-admin.php:409
218
- msgid "App Secret"
219
- msgstr "App Secret"
220
-
221
- #: lib/class-wp-embed-fb-admin.php:421
222
- msgid ""
223
- "<a title=\"Facebook Social Plugins\" href=\"%s\" rel=\"nofollow\" target="
224
- "\"_blank\">Social plugins</a> are pieces of code that Facebook developers "
225
- "created for us mortals."
226
- msgstr ""
227
- "<a title=\"Facebook Social Plugins\" href=\"%s\" rel=\"nofollow\" target="
228
- "\"_blank\">Los plugins sociales</a> son piezas de código que los "
229
- "desarrolladores de Facebook creado para nosotros los mortales."
230
-
231
- #: lib/class-wp-embed-fb-admin.php:423 lib/class-wp-embed-fb-admin.php:566
232
- msgid "Example:"
233
- msgstr "Ejemplo:"
234
-
235
- #: lib/class-wp-embed-fb-admin.php:425
236
- msgid "Embed a like button for the curent page:"
237
- msgstr "Insertar un botón de me gusta de la página actual:"
238
-
239
- #: lib/class-wp-embed-fb-admin.php:428
240
- msgid "add debug=1 to debug the result."
241
- msgstr "Añadir debug=1 para depurar el resultado."
242
-
243
- #: lib/class-wp-embed-fb-admin.php:435
244
- msgid "Page plugin"
245
- msgstr "Page plugin"
246
-
247
- #: lib/class-wp-embed-fb-admin.php:442
248
- msgid "Tabs separated by commas i.e. timeline,events,messages"
249
- msgstr "Pestañas separadas por comas, es decir: timeline,events,messages"
250
-
251
- #: lib/class-wp-embed-fb-admin.php:449
252
- msgid "Post plugin"
253
- msgstr "Post plugin"
254
-
255
- #: lib/class-wp-embed-fb-admin.php:456
256
- msgid "Video"
257
- msgstr "Video"
258
-
259
- #: lib/class-wp-embed-fb-admin.php:463
260
- msgid "Single comment"
261
- msgstr "Single comment"
262
-
263
- #: lib/class-wp-embed-fb-admin.php:467
264
- msgid "Activate them on all your posts on the \"Magic embeds\" section"
265
- msgstr "Activar en todos tus posts en la sección \"Incrustados Mágicos\""
266
-
267
- #: lib/class-wp-embed-fb-admin.php:467
268
- msgid "Comments plugin"
269
- msgstr "Comments plugin"
270
-
271
- #: lib/class-wp-embed-fb-admin.php:474
272
- msgid "Activate it on all your posts on the \"Magic embeds\" section"
273
- msgstr "Activar en todos tus posts en la sección \"Incrustados Mágicos\""
274
-
275
- #: lib/class-wp-embed-fb-admin.php:474
276
- msgid "Quote plugin"
277
- msgstr "Quote plugin"
278
-
279
- #: lib/class-wp-embed-fb-admin.php:477
280
- msgid "Save button"
281
- msgstr "Save button"
282
-
283
- #: lib/class-wp-embed-fb-admin.php:480
284
- msgid "Like button"
285
- msgstr "Like button"
286
-
287
- #: lib/class-wp-embed-fb-admin.php:489
288
- msgid "Send button"
289
- msgstr "Send button"
290
-
291
- #: lib/class-wp-embed-fb-admin.php:493
292
- msgid "Share button"
293
- msgstr "Share button"
294
-
295
- #: lib/class-wp-embed-fb-admin.php:497
296
- msgid "Follow button"
297
- msgstr "Follow button"
298
-
299
- #: lib/class-wp-embed-fb-admin.php:507
300
- msgid "Adaptive view"
301
- msgstr "Vista Adaptiva"
302
-
303
- #: lib/class-wp-embed-fb-admin.php:519
304
- msgid "General"
305
- msgstr "General"
306
-
307
- #: lib/class-wp-embed-fb-admin.php:531
308
- msgid "Albums"
309
- msgstr "Álbumes"
310
-
311
- #: lib/class-wp-embed-fb-admin.php:532
312
- msgid "Number of Photos"
313
- msgstr "Número de Imágenes"
314
-
315
- #: lib/class-wp-embed-fb-admin.php:534
316
- msgid "Events"
317
- msgstr "Eventos"
318
-
319
- #: lib/class-wp-embed-fb-admin.php:535
320
- msgid "Use WP time to calculate the date"
321
- msgstr "Usa el tiempo de WP para calcular la fecha"
322
-
323
- #: lib/class-wp-embed-fb-admin.php:536 lib/class-wp-embed-fb-admin.php:549
324
- msgid "Time format"
325
- msgstr "Formato de fecha"
326
-
327
- #: lib/class-wp-embed-fb-admin.php:537 lib/class-wp-embed-fb-admin.php:550
328
- msgid "examples"
329
- msgstr "ejemplos"
330
-
331
- #: lib/class-wp-embed-fb-admin.php:539
332
- msgid "Pages"
333
- msgstr "Páginas"
334
-
335
- #: lib/class-wp-embed-fb-admin.php:540 lib/class-wp-embed-fb-admin.php:545
336
- #: lib/class-wp-embed-fb-admin.php:548 lib/class-wp-embed-fb-admin.php:555
337
- msgid "Use by default on \"Auto Embeds\""
338
- msgstr "Utilizar por defecto en \"Auto incrustados\""
339
-
340
- #: lib/class-wp-embed-fb-admin.php:541
341
- msgid "Show like button"
342
- msgstr "Mostrar botón \"Me gusta\""
343
-
344
- #: lib/class-wp-embed-fb-admin.php:542
345
- msgid "Number of posts"
346
- msgstr "Número de publicaciones"
347
-
348
- #: lib/class-wp-embed-fb-admin.php:544
349
- msgid "Photos"
350
- msgstr "Fotos"
351
-
352
- #: lib/class-wp-embed-fb-admin.php:547
353
- msgid "Posts"
354
- msgstr "Publicaciones"
355
-
356
- #: lib/class-wp-embed-fb-admin.php:554
357
- msgid "Videos"
358
- msgstr "Vídeos"
359
-
360
- #: lib/class-wp-embed-fb-admin.php:556
361
- msgid "Force 16:9 ratio"
362
- msgstr "Fuerza de relación 16:9"
363
-
364
- #: lib/class-wp-embed-fb-admin.php:558
365
- msgid "Profiles"
366
- msgstr "Perfiles"
367
-
368
- #: lib/class-wp-embed-fb-admin.php:559
369
- msgid "Show follow button"
370
- msgstr "Botón de seguir"
371
-
372
- #: lib/class-wp-embed-fb-admin.php:564
373
- msgid ""
374
- "Custom embeds can be triggered using the [facebook url] or [embed] "
375
- "shortcodes also by activating \"Auto Embeds\" on Magic Embeds section."
376
- msgstr ""
377
- "Los Incrustados personalizados pueden activados utilizado los shortcodes "
378
- "[facebook url] o [embed] también al activar \"Auto Incrustados\" en la "
379
- "sección Incrustados Mágicos."
380
-
381
- #: lib/class-wp-embed-fb-admin.php:571
382
- msgid ""
383
- "<a href=\"%s\" title=\"WP Embed Facebook Shortcode\" target=\"_blank\">Read "
384
- "More</a>"
385
- msgstr ""
386
- "<a href=\"%s\" title=\"WP Embed Facebook Shortcode\" target=\"_blank\">Leer "
387
- "más</a>"
388
-
389
- #: lib/class-wp-embed-fb-admin.php:578 lib/class-wp-embed-fb-admin.php:612
390
- msgid "By default you can only embed public pages, videos, photos and posts."
391
- msgstr ""
392
- "Por default sólo puede incrustar páginas, videos, fotos y publicaciones "
393
- "públicas."
394
-
395
- #: lib/class-wp-embed-fb-admin.php:579 lib/class-wp-embed-fb-admin.php:613
396
- msgid ""
397
- "To embed albums, events, profiles and video as HTML5 you will need to setup "
398
- "a Facebook App on Magic Embeds section"
399
- msgstr ""
400
- "Para incrustar álbumes, eventos, perfiles y vídeo en HTML5, necesitará "
401
- "configurar una App Facebook en la sección de incrustados mágicos"
402
-
403
- #: lib/class-wp-embed-fb-admin.php:592
404
- msgid "Lightbox Options"
405
- msgstr "Opciones de Lightbox"
406
-
407
- #: lib/class-wp-embed-fb-admin.php:593
408
- msgid "Show Image Number Label"
409
- msgstr "Etiqueta de número de imagen"
410
-
411
- #: lib/class-wp-embed-fb-admin.php:594
412
- msgid "Album Label"
413
- msgstr "Etiqueta del album"
414
-
415
- #: lib/class-wp-embed-fb-admin.php:595
416
- msgid "Fade Duration"
417
- msgstr "Duración del esfumado"
418
-
419
- #: lib/class-wp-embed-fb-admin.php:596
420
- msgid "Resize Duration"
421
- msgstr "Duración del cambio de tamaño"
422
-
423
- #: lib/class-wp-embed-fb-admin.php:597
424
- msgid "Position From Top"
425
- msgstr "Posición desde arriba"
426
-
427
- #: lib/class-wp-embed-fb-admin.php:598
428
- msgid "Max Height"
429
- msgstr "Altura máxima"
430
-
431
- #: lib/class-wp-embed-fb-admin.php:599
432
- msgid "Max Width"
433
- msgstr "Anchura máxima"
434
-
435
- #: lib/class-wp-embed-fb-admin.php:600
436
- msgid "Always Show Nav On TouchDevices"
437
- msgstr "Siempre mostrar nav. en dispositivos táctiles"
438
-
439
- #: lib/class-wp-embed-fb-admin.php:601
440
- msgid "Fit Images In Viewport"
441
- msgstr "Escalar imágenes a la ventana"
442
-
443
- #: lib/class-wp-embed-fb-admin.php:602
444
- msgid "Disable Scrolling"
445
- msgstr "Desactivar desplazamiento"
446
-
447
- #: lib/class-wp-embed-fb-admin.php:603
448
- msgid "Loop Through Album"
449
- msgstr "Bucle por el álbum"
450
-
451
- #: lib/class-wp-embed-fb-admin.php:604
452
- msgid "Use this lightbox on the [gallery] shortcode"
453
- msgstr "Utilice este Lightbox en el shortcode [gallery]"
454
-
455
- #: lib/class-wp-embed-fb-admin.php:623
456
- msgid ""
457
- "Beware altering this options without the proper knowledge could make the "
458
- "world disappear."
459
- msgstr ""
460
-
461
- #: lib/class-wp-embed-fb-admin.php:626
462
- msgid "Enqueue styles and scripts"
463
- msgstr "Enqueue estilos y scripts"
464
-
465
- #: lib/class-wp-embed-fb-admin.php:627
466
- msgid "Only when there is an embed present"
467
- msgstr "Sólo cuando hay un incrustado presente"
468
-
469
- #: lib/class-wp-embed-fb-admin.php:628
470
- msgid "Use permalinks on social plugins urls"
471
- msgstr ""
472
-
473
- #: lib/class-wp-embed-fb-admin.php:629
474
- msgid "Facebook SDK"
475
- msgstr "SDK de Facebook"
476
-
477
- #: lib/class-wp-embed-fb-admin.php:630
478
- msgid "Template Styles"
479
- msgstr "Estilos de la plantilla"
480
-
481
- #: lib/class-wp-embed-fb-admin.php:631
482
- msgid "Adaptive social plugins script"
483
- msgstr "Script pasa social plugins adaptivos"
484
-
485
- #: lib/class-wp-embed-fb-admin.php:634
486
- msgid "Enqueue script"
487
- msgstr "Registrar el script del plugin"
488
-
489
- #: lib/class-wp-embed-fb-admin.php:635
490
- msgid "Attribute"
491
- msgstr "Atributo"
492
-
493
- #: lib/class-wp-embed-fb-admin.php:637
494
- msgid "Other Options"
495
- msgstr "Otras Opciones"
496
-
497
- #: lib/class-wp-embed-fb-admin.php:638
498
- msgid "Add fb-root on top of content"
499
- msgstr "Añadir fb-root en la parte superior contenido"
500
-
501
- #: lib/class-wp-embed-fb-admin.php:639
502
- msgid "Force Facebook SDK script on all site"
503
- msgstr "Forzar el script de Facebook SDK en todo sitio"
504
-
505
- #: lib/class-wp-embed-fb-admin.php:640
506
- msgid "Force app token"
507
- msgstr "Forzar el token de la app"
508
-
509
- #: lib/class-wp-embed-fb-admin.php:660
510
- msgid "Save all settings"
511
- msgstr "Guardar todos los ajustes"
512
-
513
- #: lib/class-wp-embed-fb-admin.php:665
514
- msgid "Restore default values?"
515
- msgstr "¿ Restaurar valores predeterminados ?"
516
-
517
- #: lib/class-wp-embed-fb-admin.php:668
518
- msgid "Restore defaults"
519
- msgstr "Restaurar valores predeterminados"
520
-
521
- #: lib/class-wp-embed-fb-admin.php:676
522
- msgid "Premium Extension Available"
523
- msgstr "Extensión Premium disponible"
524
-
525
- #: lib/class-wp-embed-fb-admin.php:680
526
- msgid "Shortcodes for embedding a full event or page."
527
- msgstr "Shortcodes para incrustar un evento o una página."
528
-
529
- #: lib/class-wp-embed-fb-admin.php:682
530
- msgid "Elegant template for custom embeds"
531
- msgstr "Plantilla Elegant para incrustados personalizados"
532
-
533
- #: lib/class-wp-embed-fb-admin.php:684
534
- msgid "Albums with more that 100 photos."
535
- msgstr "Álbumes con más 100 fotos."
536
-
537
- #: lib/class-wp-embed-fb-admin.php:686
538
- msgid "One Year Premium Support"
539
- msgstr "Soporte Premium por un año"
540
-
541
- #: lib/class-wp-embed-fb-admin.php:690
542
- msgid "Check it out"
543
- msgstr "Échale un vistazo!"
544
-
545
- #: lib/class-wp-embed-fb-admin.php:694
546
- msgid "Plus new features cooking"
547
- msgstr "Más novedades un la cocina"
548
-
549
- #: lib/class-wp-embed-fb-admin.php:697
550
- msgid ""
551
- "Embed private data, shortcode creator, widgets, special templates for albums "
552
- "and pages"
553
- msgstr ""
554
- "Incrusta datos privados, creador de shortcodes, widgets, plantillas "
555
- "especiales para álbumes y páginas"
556
-
557
- #: lib/class-wp-embed-fb-admin.php:702
558
- msgid "This free plugin has taken thousands of hours to maintain and develop"
559
- msgstr ""
560
- "Este plugin gratuito ha costado miles de horas en mantener y desarrollar"
561
-
562
- #: lib/class-wp-embed-fb-admin.php:707
563
- msgid "Rate it"
564
- msgstr "Valóralo ahora"
565
-
566
- #: lib/class-wp-embed-fb-admin.php:715
567
- msgid "Donate"
568
- msgstr "Dona"
569
-
570
- #: lib/class-wp-embed-fb-admin.php:720
571
- msgid "More information"
572
- msgstr "Más información"
573
-
574
- #: lib/class-wp-embed-fb.php:56
575
- msgid "This is not a valid facebook url"
576
- msgstr "Esto no es una url válida de facebook"
577
-
578
- #: lib/class-wp-embed-fb.php:71
579
- msgid ""
580
- "You are using the [facebook] shortcode wrong. See examples <a title="
581
- "\"Examples\" target=\"_blank\" href=\"%s\" >here</a>."
582
- msgstr ""
583
- "Usas el shortcode [facebook] mal. Ver ejemplos <a title=\"Examples\" target="
584
- "\"_blank\" href=\"%s\">aquí</a>."
585
-
586
- #: lib/class-wp-embed-fb.php:188
587
- msgid ""
588
- "Error: Try embedding this post as a social plugin (only visible to admins)"
589
- msgstr ""
590
- "Error: Trata de incrustar este post como un plugin social (visible sólo para "
591
- "administradores)"
592
-
593
- #: lib/class-wp-embed-fb.php:191 lib/class-wp-embed-fb.php:230
594
- msgid "Code"
595
- msgstr "Código"
596
-
597
- #: lib/class-wp-embed-fb.php:193 lib/class-wp-embed-fb.php:232
598
- #: lib/class-wp-embed-fb.php:430
599
- msgid "Error"
600
- msgstr "Error"
601
-
602
- #: lib/class-wp-embed-fb.php:437
603
- msgid ""
604
- "<small>To embed this type of content you need to setup a facebook app on <a "
605
- "href=\"%s\" title=\"WP Embed Facebook Settings\">settings</a></small>"
606
- msgstr ""
607
- "<small>Para incrustar este tipo de contenido necesita configurar una "
608
- "aplicación de Facebook en <a href=\"%s\" title=\"WP Embed Facebook Settings"
609
- "\">configuración</a></small>"
610
-
611
- #: templates/classic/com-page.php:20 templates/classic/page.php:34
612
- #: templates/classic/post.php:21 templates/default/com-page.php:20
613
- #: templates/default/page.php:34 templates/default/post.php:21
614
- msgid "%d people like this."
615
- msgstr "a %d les gusta esto."
616
-
617
- #: templates/classic/com-page.php:26 templates/classic/com-page.php:27
618
- #: templates/classic/page.php:24 templates/classic/page.php:25
619
- #: templates/default/com-page.php:26 templates/default/com-page.php:27
620
- #: templates/default/page.php:24 templates/default/page.php:25
621
- msgid "Web Site"
622
- msgstr "Sitio Web"
623
-
624
- #: templates/classic/event.php:27 templates/classic/event.php:30
625
- #: templates/default/event.php:27 templates/default/event.php:30
626
- msgid "@ "
627
- msgstr "en: "
628
-
629
- #: templates/classic/event.php:34 templates/default/event.php:34
630
- msgid "Creator: "
631
- msgstr "Creador: "
632
-
633
- #: templates/classic/single-post.php:125 templates/default/single-post.php:125
634
- msgid "likes"
635
- msgstr "me gusta"
636
-
637
- #: templates/classic/single-post.php:128 templates/default/single-post.php:128
638
- msgid "comments"
639
- msgstr "comentarios"
640
-
641
- #: templates/classic/single-post.php:131 templates/default/single-post.php:131
642
- msgid "shares"
643
- msgstr "comparticiones"
644
-
645
- #. Author URI of the plugin/theme
646
- msgid "http://www.wpembedfb.com"
647
- msgstr "http://www.wpembedfb.com"
648
-
649
- #. Description of the plugin/theme
650
- #, fuzzy
651
- msgid ""
652
- "Embed any public Facebook video, photo, album, event, page, comment, "
653
- "profile, or post. Add Facebook comments to all your site, insert Facebook "
654
- "social plugins (like, save, send, share, follow, quote, comments) anywhere "
655
- "on your site. View the <a href=\"http://www.wpembedfb.com/demo-site/\" title="
656
- "\"plugin website\" target=\"_blank\">demo site</a>."
657
- msgstr ""
658
- "Incrusta un post, video, foto, álbum, evento, página, comentario o perfil "
659
- "público. Agrega comentarios de Facebook a todo tu sitio, inserta plugins "
660
- "sociales (me gusta, guardar, enviar, compartir, seguir, cita, comentarios) "
661
- "en cualquier lugar de su sitio. Ver los <a href=\"http://www.wpembedfb.com/"
662
- "demo-site/\" title=\"plugin website\" target=\"_blank\">ejemplos</a>."
663
-
664
- #. Author of the plugin/theme
665
- msgid "Miguel Sirvent"
666
- msgstr "Miguel Sirvent"
667
-
668
- #~ msgid "Download this video"
669
- #~ msgstr "Descargar este video"
670
-
671
- #~ msgid "%sShow download option <br> under video"
672
- #~ msgstr "%sMostrar opción para descargar <br> debajo del video"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lang/wp-embed-facebook-es_GT.mo DELETED
Binary file
lang/wp-embed-facebook-es_GT.po DELETED
@@ -1,672 +0,0 @@
1
- # Copyright (C) 2016 Miguel Sirvent
2
- # This file is distributed under the same license as the WP Embed Facebook package.
3
- msgid ""
4
- msgstr ""
5
- "Project-Id-Version: WP Embed Facebook 2.1.6\n"
6
- "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-embed-"
7
- "facebook\n"
8
- "POT-Creation-Date: 2016-10-06 11:26-0500\n"
9
- "PO-Revision-Date: 2016-10-06 11:53-0500\n"
10
- "Last-Translator: Miguel Sirvent <miguel.sirvent@gmail.com>\n"
11
- "Language-Team: Miguel Sirvent <miguel@sigami.net>\n"
12
- "Language: es_GT\n"
13
- "MIME-Version: 1.0\n"
14
- "Content-Type: text/plain; charset=UTF-8\n"
15
- "Content-Transfer-Encoding: 8bit\n"
16
- "X-Generator: Poedit 1.8.9\n"
17
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
18
- "_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
19
- "esc_html_x:1,2c\n"
20
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
21
- "X-Poedit-SourceCharset: UTF-8\n"
22
- "X-Poedit-Basepath: ..\n"
23
- "X-Textdomain-Support: yes\n"
24
- "X-Poedit-Wpheader: wp-embed-facebook.php\n"
25
- "X-Poedit-SearchPath-0: .\n"
26
- "X-Poedit-SearchPathExcluded-0: *.js\n"
27
-
28
- #: lib/class-wef-magic-embeds.php:123
29
- msgid "Shortcode used:"
30
- msgstr "Shortcode utilizado:"
31
-
32
- #: lib/class-wef-magic-embeds.php:128
33
- msgid "Final code:"
34
- msgstr "Código final:"
35
-
36
- #: lib/class-wef-magic-embeds.php:133
37
- msgid "More information:"
38
- msgstr "Más información:"
39
-
40
- #: lib/class-wef-social-plugins.php:504
41
- msgid "Invalid Facebook plugin type use it like this: [fb_plugin like]"
42
- msgstr ""
43
- "Tipo de plugin de Facebook inválido utilizarlo como así: [como fb_plugin]"
44
-
45
- #. Plugin Name of the plugin/theme
46
- msgid "WP Embed Facebook"
47
- msgstr "Incrustar Facebook (WP Embed Facebook)"
48
-
49
- #: lib/class-wef-widget.php:15
50
- #, fuzzy
51
- msgid "Shortcode widget"
52
- msgstr "Shortcode utilizado:"
53
-
54
- #: lib/class-wef-widget.php:50
55
- msgid "Title:"
56
- msgstr ""
57
-
58
- #: lib/class-wef-widget.php:54
59
- #, fuzzy
60
- msgid "Shortcode:"
61
- msgstr "Shortcode utilizado:"
62
-
63
- #: lib/class-wp-embed-fb-admin.php:28
64
- #, fuzzy
65
- msgid ""
66
- "To enable comment moderation and embed albums, events, profiles and video as "
67
- "HTML5 setup a facebook app on <a id=\"wef_settings_link\" href=\"%s"
68
- "\">settings</a>"
69
- msgstr ""
70
- "Para activar la moderación de comentarios e incrustar álbumes, eventos, "
71
- "perfiles y vídeo en HTML5 configura una App de Facebook en <a href=\"%s"
72
- "\">configuración</a>"
73
-
74
- #: lib/class-wp-embed-fb-admin.php:138
75
- msgid "Settings"
76
- msgstr "Configuracion"
77
-
78
- #: lib/class-wp-embed-fb-admin.php:345
79
- msgid "Magic Embeds"
80
- msgstr "Incrustados Mágicos"
81
-
82
- #: lib/class-wp-embed-fb-admin.php:346
83
- msgid "Social Plugins"
84
- msgstr "Social Plugins"
85
-
86
- #: lib/class-wp-embed-fb-admin.php:347
87
- msgid "Custom Embeds"
88
- msgstr "Incrustados personalizados"
89
-
90
- #: lib/class-wp-embed-fb-admin.php:348 lib/class-wp-embed-fb-admin.php:633
91
- msgid "Lightbox"
92
- msgstr "Lightbox"
93
-
94
- #: lib/class-wp-embed-fb-admin.php:349
95
- msgid "Advanced"
96
- msgstr "Avanzado"
97
-
98
- #: lib/class-wp-embed-fb-admin.php:365
99
- msgid ""
100
- "Auto embeds understand the url you are entering and return a social plugin "
101
- "or a custom embed. <br>They can be activated by <a href=\"%s\" title="
102
- "\"WordPress Embeds\" target=\"_blank\">pasting the url on the editor</a> or "
103
- "by the [facebook url ] <a href=\"%s\" title=\"[facebook] Shortcode "
104
- "attributes and examples\" target=\"_blank\">shortcode</a>."
105
- msgstr ""
106
- "Los auto incrustados entienden la url vas a entrar y devuelve un incrustado "
107
- "personalizado o un plugin social.<br>Pueden ser activados al <a href=\"%s\" "
108
- "title=\"WordPress Embeds\" target=\"_blank\">pegar la url en el editor</a> o "
109
- "por el <a href=\"%s\" title=\"[facebook] Shortcode attributes and examples\" "
110
- "target=\"_blank\">shortcode</a> [facebook url] ."
111
-
112
- #: lib/class-wp-embed-fb-admin.php:366
113
- msgid "Auto Embeds"
114
- msgstr "Auto Incrustados"
115
-
116
- #: lib/class-wp-embed-fb-admin.php:367
117
- msgid "Auto embed url's on editor "
118
- msgstr "Auto incrustar urls en el editor"
119
-
120
- #: lib/class-wp-embed-fb-admin.php:368
121
- msgid "Maximum width in pixels"
122
- msgstr "Máxima anchura en píxeles"
123
-
124
- #: lib/class-wp-embed-fb-admin.php:369
125
- msgid "Embed video as post"
126
- msgstr "Incrustar video como post"
127
-
128
- #: lib/class-wp-embed-fb-admin.php:373
129
- msgid ""
130
- "The quote plugin lets people select text on your page and add it to their "
131
- "share.<br><a href=\"%s\" target=\"_blank\" title=\"WP Embed Facebook\">Demo</"
132
- "a>"
133
- msgstr ""
134
- "El plugin de cita permite a las personas Seleccionar texto en tu página y "
135
- "agregarla a su participación.<br><a href=\"%s\" target=\"_blank\" title=\"WP "
136
- "Embed Facebook\">Ejemplo</a>"
137
-
138
- #: lib/class-wp-embed-fb-admin.php:373
139
- msgid "Quote Plugin"
140
- msgstr "Quote Plugin"
141
-
142
- #: lib/class-wp-embed-fb-admin.php:374 lib/class-wp-embed-fb-admin.php:379
143
- msgid "Active"
144
- msgstr "Activo"
145
-
146
- #: lib/class-wp-embed-fb-admin.php:375 lib/class-wp-embed-fb-admin.php:380
147
- msgid "Post types"
148
- msgstr "Tipos de entradas"
149
-
150
- #: lib/class-wp-embed-fb-admin.php:376 lib/class-wp-embed-fb-admin.php:381
151
- msgid "Post types separated by commas i.e. post,page,attachment"
152
- msgstr "Tipos de post separado por comas, es decir: post,page,attachment"
153
-
154
- #: lib/class-wp-embed-fb-admin.php:378
155
- msgid "Comments"
156
- msgstr "Comentarios"
157
-
158
- #: lib/class-wp-embed-fb-admin.php:382
159
- msgid "Sync comment count"
160
- msgstr "Sincronizar conteo de comentarios"
161
-
162
- #: lib/class-wp-embed-fb-admin.php:385
163
- msgid "Add open graph meta"
164
- msgstr "Agregar meta open graph"
165
-
166
- #: lib/class-wp-embed-fb-admin.php:386
167
- msgid "Needed to moderate comments"
168
- msgstr "Necesario para moderar comentarios"
169
-
170
- #: lib/class-wp-embed-fb-admin.php:386
171
- msgid ""
172
- "Disable this if you already have another plugin adding <a title=\"Moderation "
173
- "Setup Instructions\" target=\"_blank\" href=\"%s\">the fb:app_id meta</a>"
174
- msgstr ""
175
- "Desactivar esto si ya tienes otro plugin añadiendo <a title=\"Moderation "
176
- "Setup Instructions\" target=\"_blank\" href=\"%s\">la meta fb:app_id</a>"
177
-
178
- #: lib/class-wp-embed-fb-admin.php:387
179
- msgid "To enable comments moderation setup your App ID"
180
- msgstr "Para permitir moderación en comentarios configurar tu App ID"
181
-
182
- #: lib/class-wp-embed-fb-admin.php:390
183
- msgid ""
184
- "If you cant see the \"Moderate comment\" link above each comment you will "
185
- "need to <a title=\"Sharing Debugger\" target=\"_blank\" href=\"%s\">scrape "
186
- "the url</a>"
187
- msgstr ""
188
- "Si no ves el enlace \"Moderar comentaio\" sobre cada comentario tendras que "
189
- "<a title=\"Sharing Debugger\" target=\"_blank\" href=\"%s\">raspar la url</a>"
190
-
191
- #: lib/class-wp-embed-fb-admin.php:394
192
- msgid "Notes:"
193
- msgstr "Notas:"
194
-
195
- #: lib/class-wp-embed-fb-admin.php:396
196
- msgid "Facebook settings"
197
- msgstr "Ajustes de Facebook"
198
-
199
- #: lib/class-wp-embed-fb-admin.php:397
200
- msgid "Social Plugins Language"
201
- msgstr "Lenguaje de los plugins sociales"
202
-
203
- #: lib/class-wp-embed-fb-admin.php:400
204
- msgid ""
205
- "Creating a Facebook app is easy view the <a href=\"%s\" target=\"_blank\" "
206
- "title=\"WP Embed FB documentation\">step by step guide</a> or view <a href="
207
- "\"%s\" target=\"_blank\" title=\"Facebook Apps\">your apps</a>."
208
- msgstr ""
209
- "Crear una aplicación de Facebook es fácil ver la <a href=\"%s\" target="
210
- "\"_blank\" title=\"WP Embed FB documentation\">Guía paso a paso</a> o ver <a "
211
- "href=\"%s\" target=\"_blank\" title=\"Facebook Apps\">tus aplicaciones</a>."
212
-
213
- #: lib/class-wp-embed-fb-admin.php:407
214
- msgid "App ID"
215
- msgstr "App ID"
216
-
217
- #: lib/class-wp-embed-fb-admin.php:409
218
- msgid "App Secret"
219
- msgstr "App Secret"
220
-
221
- #: lib/class-wp-embed-fb-admin.php:421
222
- msgid ""
223
- "<a title=\"Facebook Social Plugins\" href=\"%s\" rel=\"nofollow\" target="
224
- "\"_blank\">Social plugins</a> are pieces of code that Facebook developers "
225
- "created for us mortals."
226
- msgstr ""
227
- "<a title=\"Facebook Social Plugins\" href=\"%s\" rel=\"nofollow\" target="
228
- "\"_blank\">Los plugins sociales</a> son piezas de código que los "
229
- "desarrolladores de Facebook creado para nosotros los mortales."
230
-
231
- #: lib/class-wp-embed-fb-admin.php:423 lib/class-wp-embed-fb-admin.php:566
232
- msgid "Example:"
233
- msgstr "Ejemplo:"
234
-
235
- #: lib/class-wp-embed-fb-admin.php:425
236
- msgid "Embed a like button for the curent page:"
237
- msgstr "Insertar un botón de me gusta de la página actual:"
238
-
239
- #: lib/class-wp-embed-fb-admin.php:428
240
- msgid "add debug=1 to debug the result."
241
- msgstr "Añadir debug=1 para depurar el resultado."
242
-
243
- #: lib/class-wp-embed-fb-admin.php:435
244
- msgid "Page plugin"
245
- msgstr "Page plugin"
246
-
247
- #: lib/class-wp-embed-fb-admin.php:442
248
- msgid "Tabs separated by commas i.e. timeline,events,messages"
249
- msgstr "Pestañas separadas por comas, es decir: timeline,events,messages"
250
-
251
- #: lib/class-wp-embed-fb-admin.php:449
252
- msgid "Post plugin"
253
- msgstr "Post plugin"
254
-
255
- #: lib/class-wp-embed-fb-admin.php:456
256
- msgid "Video"
257
- msgstr "Video"
258
-
259
- #: lib/class-wp-embed-fb-admin.php:463
260
- msgid "Single comment"
261
- msgstr "Single comment"
262
-
263
- #: lib/class-wp-embed-fb-admin.php:467
264
- msgid "Activate them on all your posts on the \"Magic embeds\" section"
265
- msgstr "Activar en todos tus posts en la sección \"Incrustados Mágicos\""
266
-
267
- #: lib/class-wp-embed-fb-admin.php:467
268
- msgid "Comments plugin"
269
- msgstr "Comments plugin"
270
-
271
- #: lib/class-wp-embed-fb-admin.php:474
272
- msgid "Activate it on all your posts on the \"Magic embeds\" section"
273
- msgstr "Activar en todos tus posts en la sección \"Incrustados Mágicos\""
274
-
275
- #: lib/class-wp-embed-fb-admin.php:474
276
- msgid "Quote plugin"
277
- msgstr "Quote plugin"
278
-
279
- #: lib/class-wp-embed-fb-admin.php:477
280
- msgid "Save button"
281
- msgstr "Save button"
282
-
283
- #: lib/class-wp-embed-fb-admin.php:480
284
- msgid "Like button"
285
- msgstr "Like button"
286
-
287
- #: lib/class-wp-embed-fb-admin.php:489
288
- msgid "Send button"
289
- msgstr "Send button"
290
-
291
- #: lib/class-wp-embed-fb-admin.php:493
292
- msgid "Share button"
293
- msgstr "Share button"
294
-
295
- #: lib/class-wp-embed-fb-admin.php:497
296
- msgid "Follow button"
297
- msgstr "Follow button"
298
-
299
- #: lib/class-wp-embed-fb-admin.php:507
300
- msgid "Adaptive view"
301
- msgstr "Vista Adaptiva"
302
-
303
- #: lib/class-wp-embed-fb-admin.php:519
304
- msgid "General"
305
- msgstr "General"
306
-
307
- #: lib/class-wp-embed-fb-admin.php:531
308
- msgid "Albums"
309
- msgstr "Álbumes"
310
-
311
- #: lib/class-wp-embed-fb-admin.php:532
312
- msgid "Number of Photos"
313
- msgstr "Número de Imágenes"
314
-
315
- #: lib/class-wp-embed-fb-admin.php:534
316
- msgid "Events"
317
- msgstr "Eventos"
318
-
319
- #: lib/class-wp-embed-fb-admin.php:535
320
- msgid "Use WP time to calculate the date"
321
- msgstr "Usa el tiempo de WP para calcular la fecha"
322
-
323
- #: lib/class-wp-embed-fb-admin.php:536 lib/class-wp-embed-fb-admin.php:549
324
- msgid "Time format"
325
- msgstr "Formato de fecha"
326
-
327
- #: lib/class-wp-embed-fb-admin.php:537 lib/class-wp-embed-fb-admin.php:550
328
- msgid "examples"
329
- msgstr "ejemplos"
330
-
331
- #: lib/class-wp-embed-fb-admin.php:539
332
- msgid "Pages"
333
- msgstr "Páginas"
334
-
335
- #: lib/class-wp-embed-fb-admin.php:540 lib/class-wp-embed-fb-admin.php:545
336
- #: lib/class-wp-embed-fb-admin.php:548 lib/class-wp-embed-fb-admin.php:555
337
- msgid "Use by default on \"Auto Embeds\""
338
- msgstr "Utilizar por defecto en \"Auto incrustados\""
339
-
340
- #: lib/class-wp-embed-fb-admin.php:541
341
- msgid "Show like button"
342
- msgstr "Mostrar botón \"Me gusta\""
343
-
344
- #: lib/class-wp-embed-fb-admin.php:542
345
- msgid "Number of posts"
346
- msgstr "Número de publicaciones"
347
-
348
- #: lib/class-wp-embed-fb-admin.php:544
349
- msgid "Photos"
350
- msgstr "Fotos"
351
-
352
- #: lib/class-wp-embed-fb-admin.php:547
353
- msgid "Posts"
354
- msgstr "Publicaciones"
355
-
356
- #: lib/class-wp-embed-fb-admin.php:554
357
- msgid "Videos"
358
- msgstr "Vídeos"
359
-
360
- #: lib/class-wp-embed-fb-admin.php:556
361
- msgid "Force 16:9 ratio"
362
- msgstr "Fuerza de relación 16:9"
363
-
364
- #: lib/class-wp-embed-fb-admin.php:558
365
- msgid "Profiles"
366
- msgstr "Perfiles"
367
-
368
- #: lib/class-wp-embed-fb-admin.php:559
369
- msgid "Show follow button"
370
- msgstr "Botón de seguir"
371
-
372
- #: lib/class-wp-embed-fb-admin.php:564
373
- msgid ""
374
- "Custom embeds can be triggered using the [facebook url] or [embed] "
375
- "shortcodes also by activating \"Auto Embeds\" on Magic Embeds section."
376
- msgstr ""
377
- "Los Incrustados personalizados pueden activados utilizado los shortcodes "
378
- "[facebook url] o [embed] también al activar \"Auto Incrustados\" en la "
379
- "sección Incrustados Mágicos."
380
-
381
- #: lib/class-wp-embed-fb-admin.php:571
382
- msgid ""
383
- "<a href=\"%s\" title=\"WP Embed Facebook Shortcode\" target=\"_blank\">Read "
384
- "More</a>"
385
- msgstr ""
386
- "<a href=\"%s\" title=\"WP Embed Facebook Shortcode\" target=\"_blank\">Leer "
387
- "más</a>"
388
-
389
- #: lib/class-wp-embed-fb-admin.php:578 lib/class-wp-embed-fb-admin.php:612
390
- msgid "By default you can only embed public pages, videos, photos and posts."
391
- msgstr ""
392
- "Por default sólo puede incrustar páginas, videos, fotos y publicaciones "
393
- "públicas."
394
-
395
- #: lib/class-wp-embed-fb-admin.php:579 lib/class-wp-embed-fb-admin.php:613
396
- msgid ""
397
- "To embed albums, events, profiles and video as HTML5 you will need to setup "
398
- "a Facebook App on Magic Embeds section"
399
- msgstr ""
400
- "Para incrustar álbumes, eventos, perfiles y vídeo en HTML5, necesitará "
401
- "configurar una App Facebook en la sección de incrustados mágicos"
402
-
403
- #: lib/class-wp-embed-fb-admin.php:592
404
- msgid "Lightbox Options"
405
- msgstr "Opciones de Lightbox"
406
-
407
- #: lib/class-wp-embed-fb-admin.php:593
408
- msgid "Show Image Number Label"
409
- msgstr "Etiqueta de número de imagen"
410
-
411
- #: lib/class-wp-embed-fb-admin.php:594
412
- msgid "Album Label"
413
- msgstr "Etiqueta del album"
414
-
415
- #: lib/class-wp-embed-fb-admin.php:595
416
- msgid "Fade Duration"
417
- msgstr "Duración del esfumado"
418
-
419
- #: lib/class-wp-embed-fb-admin.php:596
420
- msgid "Resize Duration"
421
- msgstr "Duración del cambio de tamaño"
422
-
423
- #: lib/class-wp-embed-fb-admin.php:597
424
- msgid "Position From Top"
425
- msgstr "Posición desde arriba"
426
-
427
- #: lib/class-wp-embed-fb-admin.php:598
428
- msgid "Max Height"
429
- msgstr "Altura máxima"
430
-
431
- #: lib/class-wp-embed-fb-admin.php:599
432
- msgid "Max Width"
433
- msgstr "Anchura máxima"
434
-
435
- #: lib/class-wp-embed-fb-admin.php:600
436
- msgid "Always Show Nav On TouchDevices"
437
- msgstr "Siempre mostrar nav. en dispositivos táctiles"
438
-
439
- #: lib/class-wp-embed-fb-admin.php:601
440
- msgid "Fit Images In Viewport"
441
- msgstr "Escalar imágenes a la ventana"
442
-
443
- #: lib/class-wp-embed-fb-admin.php:602
444
- msgid "Disable Scrolling"
445
- msgstr "Desactivar desplazamiento"
446
-
447
- #: lib/class-wp-embed-fb-admin.php:603
448
- msgid "Loop Through Album"
449
- msgstr "Bucle por el álbum"
450
-
451
- #: lib/class-wp-embed-fb-admin.php:604
452
- msgid "Use this lightbox on the [gallery] shortcode"
453
- msgstr "Utilice este Lightbox en el shortcode [gallery]"
454
-
455
- #: lib/class-wp-embed-fb-admin.php:623
456
- msgid ""
457
- "Beware altering this options without the proper knowledge could make the "
458
- "world disappear."
459
- msgstr ""
460
-
461
- #: lib/class-wp-embed-fb-admin.php:626
462
- msgid "Enqueue styles and scripts"
463
- msgstr "Enqueue estilos y scripts"
464
-
465
- #: lib/class-wp-embed-fb-admin.php:627
466
- msgid "Only when there is an embed present"
467
- msgstr "Sólo cuando hay un incrustado presente"
468
-
469
- #: lib/class-wp-embed-fb-admin.php:628
470
- msgid "Use permalinks on social plugins urls"
471
- msgstr ""
472
-
473
- #: lib/class-wp-embed-fb-admin.php:629
474
- msgid "Facebook SDK"
475
- msgstr "SDK de Facebook"
476
-
477
- #: lib/class-wp-embed-fb-admin.php:630
478
- msgid "Template Styles"
479
- msgstr "Estilos de la plantilla"
480
-
481
- #: lib/class-wp-embed-fb-admin.php:631
482
- msgid "Adaptive social plugins script"
483
- msgstr "Script pasa social plugins adaptivos"
484
-
485
- #: lib/class-wp-embed-fb-admin.php:634
486
- msgid "Enqueue script"
487
- msgstr "Registrar el script del plugin"
488
-
489
- #: lib/class-wp-embed-fb-admin.php:635
490
- msgid "Attribute"
491
- msgstr "Atributo"
492
-
493
- #: lib/class-wp-embed-fb-admin.php:637
494
- msgid "Other Options"
495
- msgstr "Otras Opciones"
496
-
497
- #: lib/class-wp-embed-fb-admin.php:638
498
- msgid "Add fb-root on top of content"
499
- msgstr "Añadir fb-root en la parte superior contenido"
500
-
501
- #: lib/class-wp-embed-fb-admin.php:639
502
- msgid "Force Facebook SDK script on all site"
503
- msgstr "Forzar el script de Facebook SDK en todo sitio"
504
-
505
- #: lib/class-wp-embed-fb-admin.php:640
506
- msgid "Force app token"
507
- msgstr "Forzar el token de la app"
508
-
509
- #: lib/class-wp-embed-fb-admin.php:660
510
- msgid "Save all settings"
511
- msgstr "Guardar todos los ajustes"
512
-
513
- #: lib/class-wp-embed-fb-admin.php:665
514
- msgid "Restore default values?"
515
- msgstr "¿ Restaurar valores predeterminados ?"
516
-
517
- #: lib/class-wp-embed-fb-admin.php:668
518
- msgid "Restore defaults"
519
- msgstr "Restaurar valores predeterminados"
520
-
521
- #: lib/class-wp-embed-fb-admin.php:676
522
- msgid "Premium Extension Available"
523
- msgstr "Extensión Premium disponible"
524
-
525
- #: lib/class-wp-embed-fb-admin.php:680
526
- msgid "Shortcodes for embedding a full event or page."
527
- msgstr "Shortcodes para incrustar un evento o una página."
528
-
529
- #: lib/class-wp-embed-fb-admin.php:682
530
- msgid "Elegant template for custom embeds"
531
- msgstr "Plantilla Elegant para incrustados personalizados"
532
-
533
- #: lib/class-wp-embed-fb-admin.php:684
534
- msgid "Albums with more that 100 photos."
535
- msgstr "Álbumes con más 100 fotos."
536
-
537
- #: lib/class-wp-embed-fb-admin.php:686
538
- msgid "One Year Premium Support"
539
- msgstr "Soporte Premium por un año"
540
-
541
- #: lib/class-wp-embed-fb-admin.php:690
542
- msgid "Check it out"
543
- msgstr "Échale un vistazo!"
544
-
545
- #: lib/class-wp-embed-fb-admin.php:694
546
- msgid "Plus new features cooking"
547
- msgstr "Más novedades un la cocina"
548
-
549
- #: lib/class-wp-embed-fb-admin.php:697
550
- msgid ""
551
- "Embed private data, shortcode creator, widgets, special templates for albums "
552
- "and pages"
553
- msgstr ""
554
- "Incrusta datos privados, creador de shortcodes, widgets, plantillas "
555
- "especiales para álbumes y páginas"
556
-
557
- #: lib/class-wp-embed-fb-admin.php:702
558
- msgid "This free plugin has taken thousands of hours to maintain and develop"
559
- msgstr ""
560
- "Este plugin gratuito ha costado miles de horas en mantener y desarrollar"
561
-
562
- #: lib/class-wp-embed-fb-admin.php:707
563
- msgid "Rate it"
564
- msgstr "Valóralo ahora"
565
-
566
- #: lib/class-wp-embed-fb-admin.php:715
567
- msgid "Donate"
568
- msgstr "Dona"
569
-
570
- #: lib/class-wp-embed-fb-admin.php:720
571
- msgid "More information"
572
- msgstr "Más información"
573
-
574
- #: lib/class-wp-embed-fb.php:56
575
- msgid "This is not a valid facebook url"
576
- msgstr "Esto no es una url válida de facebook"
577
-
578
- #: lib/class-wp-embed-fb.php:71
579
- msgid ""
580
- "You are using the [facebook] shortcode wrong. See examples <a title="
581
- "\"Examples\" target=\"_blank\" href=\"%s\" >here</a>."
582
- msgstr ""
583
- "Usas el shortcode [facebook] mal. Ver ejemplos <a title=\"Examples\" target="
584
- "\"_blank\" href=\"%s\">aquí</a>."
585
-
586
- #: lib/class-wp-embed-fb.php:188
587
- msgid ""
588
- "Error: Try embedding this post as a social plugin (only visible to admins)"
589
- msgstr ""
590
- "Error: Trata de incrustar este post como un plugin social (visible sólo para "
591
- "administradores)"
592
-
593
- #: lib/class-wp-embed-fb.php:191 lib/class-wp-embed-fb.php:230
594
- msgid "Code"
595
- msgstr "Código"
596
-
597
- #: lib/class-wp-embed-fb.php:193 lib/class-wp-embed-fb.php:232
598
- #: lib/class-wp-embed-fb.php:430
599
- msgid "Error"
600
- msgstr "Error"
601
-
602
- #: lib/class-wp-embed-fb.php:437
603
- msgid ""
604
- "<small>To embed this type of content you need to setup a facebook app on <a "
605
- "href=\"%s\" title=\"WP Embed Facebook Settings\">settings</a></small>"
606
- msgstr ""
607
- "<small>Para incrustar este tipo de contenido necesita configurar una "
608
- "aplicación de Facebook en <a href=\"%s\" title=\"WP Embed Facebook Settings"
609
- "\">configuración</a></small>"
610
-
611
- #: templates/classic/com-page.php:20 templates/classic/page.php:34
612
- #: templates/classic/post.php:21 templates/default/com-page.php:20
613
- #: templates/default/page.php:34 templates/default/post.php:21
614
- msgid "%d people like this."
615
- msgstr "a %d les gusta esto."
616
-
617
- #: templates/classic/com-page.php:26 templates/classic/com-page.php:27
618
- #: templates/classic/page.php:24 templates/classic/page.php:25
619
- #: templates/default/com-page.php:26 templates/default/com-page.php:27
620
- #: templates/default/page.php:24 templates/default/page.php:25
621
- msgid "Web Site"
622
- msgstr "Sitio Web"
623
-
624
- #: templates/classic/event.php:27 templates/classic/event.php:30
625
- #: templates/default/event.php:27 templates/default/event.php:30
626
- msgid "@ "
627
- msgstr "en: "
628
-
629
- #: templates/classic/event.php:34 templates/default/event.php:34
630
- msgid "Creator: "
631
- msgstr "Creador: "
632
-
633
- #: templates/classic/single-post.php:125 templates/default/single-post.php:125
634
- msgid "likes"
635
- msgstr "me gusta"
636
-
637
- #: templates/classic/single-post.php:128 templates/default/single-post.php:128
638
- msgid "comments"
639
- msgstr "comentarios"
640
-
641
- #: templates/classic/single-post.php:131 templates/default/single-post.php:131
642
- msgid "shares"
643
- msgstr "comparticiones"
644
-
645
- #. Author URI of the plugin/theme
646
- msgid "http://www.wpembedfb.com"
647
- msgstr "http://www.wpembedfb.com"
648
-
649
- #. Description of the plugin/theme
650
- #, fuzzy
651
- msgid ""
652
- "Embed any public Facebook video, photo, album, event, page, comment, "
653
- "profile, or post. Add Facebook comments to all your site, insert Facebook "
654
- "social plugins (like, save, send, share, follow, quote, comments) anywhere "
655
- "on your site. View the <a href=\"http://www.wpembedfb.com/demo-site/\" title="
656
- "\"plugin website\" target=\"_blank\">demo site</a>."
657
- msgstr ""
658
- "Incrusta un post, video, foto, álbum, evento, página, comentario o perfil "
659
- "público. Agrega comentarios de Facebook a todo tu sitio, inserta plugins "
660
- "sociales (me gusta, guardar, enviar, compartir, seguir, cita, comentarios) "
661
- "en cualquier lugar de su sitio. Ver los <a href=\"http://www.wpembedfb.com/"
662
- "demo-site/\" title=\"plugin website\" target=\"_blank\">ejemplos</a>."
663
-
664
- #. Author of the plugin/theme
665
- msgid "Miguel Sirvent"
666
- msgstr "Miguel Sirvent"
667
-
668
- #~ msgid "Download this video"
669
- #~ msgstr "Descargar este video"
670
-
671
- #~ msgid "%sShow download option <br> under video"
672
- #~ msgstr "%sMostrar opción para descargar <br> debajo del video"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lang/wp-embed-facebook-es_MX.mo DELETED
Binary file
lang/wp-embed-facebook-es_MX.po DELETED
@@ -1,672 +0,0 @@
1
- # Copyright (C) 2016 Miguel Sirvent
2
- # This file is distributed under the same license as the WP Embed Facebook package.
3
- msgid ""
4
- msgstr ""
5
- "Project-Id-Version: WP Embed Facebook 2.1.6\n"
6
- "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-embed-"
7
- "facebook\n"
8
- "POT-Creation-Date: 2016-10-06 11:26-0500\n"
9
- "PO-Revision-Date: 2016-10-06 11:53-0500\n"
10
- "Last-Translator: Miguel Sirvent <miguel.sirvent@gmail.com>\n"
11
- "Language-Team: Miguel Sirvent <miguel@sigami.net>\n"
12
- "Language: es_MX\n"
13
- "MIME-Version: 1.0\n"
14
- "Content-Type: text/plain; charset=UTF-8\n"
15
- "Content-Transfer-Encoding: 8bit\n"
16
- "X-Generator: Poedit 1.8.9\n"
17
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
18
- "_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
19
- "esc_html_x:1,2c\n"
20
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
21
- "X-Poedit-SourceCharset: UTF-8\n"
22
- "X-Poedit-Basepath: ..\n"
23
- "X-Textdomain-Support: yes\n"
24
- "X-Poedit-Wpheader: wp-embed-facebook.php\n"
25
- "X-Poedit-SearchPath-0: .\n"
26
- "X-Poedit-SearchPathExcluded-0: *.js\n"
27
-
28
- #: lib/class-wef-magic-embeds.php:123
29
- msgid "Shortcode used:"
30
- msgstr "Shortcode utilizado:"
31
-
32
- #: lib/class-wef-magic-embeds.php:128
33
- msgid "Final code:"
34
- msgstr "Código final:"
35
-
36
- #: lib/class-wef-magic-embeds.php:133
37
- msgid "More information:"
38
- msgstr "Más información:"
39
-
40
- #: lib/class-wef-social-plugins.php:504
41
- msgid "Invalid Facebook plugin type use it like this: [fb_plugin like]"
42
- msgstr ""
43
- "Tipo de plugin de Facebook inválido utilizarlo como así: [como fb_plugin]"
44
-
45
- #. Plugin Name of the plugin/theme
46
- msgid "WP Embed Facebook"
47
- msgstr "Incrustar Facebook (WP Embed Facebook)"
48
-
49
- #: lib/class-wef-widget.php:15
50
- #, fuzzy
51
- msgid "Shortcode widget"
52
- msgstr "Shortcode utilizado:"
53
-
54
- #: lib/class-wef-widget.php:50
55
- msgid "Title:"
56
- msgstr ""
57
-
58
- #: lib/class-wef-widget.php:54
59
- #, fuzzy
60
- msgid "Shortcode:"
61
- msgstr "Shortcode utilizado:"
62
-
63
- #: lib/class-wp-embed-fb-admin.php:28
64
- #, fuzzy
65
- msgid ""
66
- "To enable comment moderation and embed albums, events, profiles and video as "
67
- "HTML5 setup a facebook app on <a id=\"wef_settings_link\" href=\"%s"
68
- "\">settings</a>"
69
- msgstr ""
70
- "Para activar la moderación de comentarios e incrustar álbumes, eventos, "
71
- "perfiles y vídeo en HTML5 configura una App de Facebook en <a href=\"%s"
72
- "\">configuración</a>"
73
-
74
- #: lib/class-wp-embed-fb-admin.php:138
75
- msgid "Settings"
76
- msgstr "Configuracion"
77
-
78
- #: lib/class-wp-embed-fb-admin.php:345
79
- msgid "Magic Embeds"
80
- msgstr "Incrustados Mágicos"
81
-
82
- #: lib/class-wp-embed-fb-admin.php:346
83
- msgid "Social Plugins"
84
- msgstr "Social Plugins"
85
-
86
- #: lib/class-wp-embed-fb-admin.php:347
87
- msgid "Custom Embeds"
88
- msgstr "Incrustados personalizados"
89
-
90
- #: lib/class-wp-embed-fb-admin.php:348 lib/class-wp-embed-fb-admin.php:633
91
- msgid "Lightbox"
92
- msgstr "Lightbox"
93
-
94
- #: lib/class-wp-embed-fb-admin.php:349
95
- msgid "Advanced"
96
- msgstr "Avanzado"
97
-
98
- #: lib/class-wp-embed-fb-admin.php:365
99
- msgid ""
100
- "Auto embeds understand the url you are entering and return a social plugin "
101
- "or a custom embed. <br>They can be activated by <a href=\"%s\" title="
102
- "\"WordPress Embeds\" target=\"_blank\">pasting the url on the editor</a> or "
103
- "by the [facebook url ] <a href=\"%s\" title=\"[facebook] Shortcode "
104
- "attributes and examples\" target=\"_blank\">shortcode</a>."
105
- msgstr ""
106
- "Los auto incrustados entienden la url vas a entrar y devuelve un incrustado "
107
- "personalizado o un plugin social.<br>Pueden ser activados al <a href=\"%s\" "
108
- "title=\"WordPress Embeds\" target=\"_blank\">pegar la url en el editor</a> o "
109
- "por el <a href=\"%s\" title=\"[facebook] Shortcode attributes and examples\" "
110
- "target=\"_blank\">shortcode</a> [facebook url] ."
111
-
112
- #: lib/class-wp-embed-fb-admin.php:366
113
- msgid "Auto Embeds"
114
- msgstr "Auto Incrustados"
115
-
116
- #: lib/class-wp-embed-fb-admin.php:367
117
- msgid "Auto embed url's on editor "
118
- msgstr "Auto incrustar urls en el editor"
119
-
120
- #: lib/class-wp-embed-fb-admin.php:368
121
- msgid "Maximum width in pixels"
122
- msgstr "Máxima anchura en píxeles"
123
-
124
- #: lib/class-wp-embed-fb-admin.php:369
125
- msgid "Embed video as post"
126
- msgstr "Incrustar video como post"
127
-
128
- #: lib/class-wp-embed-fb-admin.php:373
129
- msgid ""
130
- "The quote plugin lets people select text on your page and add it to their "
131
- "share.<br><a href=\"%s\" target=\"_blank\" title=\"WP Embed Facebook\">Demo</"
132
- "a>"
133
- msgstr ""
134
- "El plugin de cita permite a las personas Seleccionar texto en tu página y "
135
- "agregarla a su participación.<br><a href=\"%s\" target=\"_blank\" title=\"WP "
136
- "Embed Facebook\">Ejemplo</a>"
137
-
138
- #: lib/class-wp-embed-fb-admin.php:373
139
- msgid "Quote Plugin"
140
- msgstr "Quote Plugin"
141
-
142
- #: lib/class-wp-embed-fb-admin.php:374 lib/class-wp-embed-fb-admin.php:379
143
- msgid "Active"
144
- msgstr "Activo"
145
-
146
- #: lib/class-wp-embed-fb-admin.php:375 lib/class-wp-embed-fb-admin.php:380
147
- msgid "Post types"
148
- msgstr "Tipos de entradas"
149
-
150
- #: lib/class-wp-embed-fb-admin.php:376 lib/class-wp-embed-fb-admin.php:381
151
- msgid "Post types separated by commas i.e. post,page,attachment"
152
- msgstr "Tipos de post separado por comas, es decir: post,page,attachment"
153
-
154
- #: lib/class-wp-embed-fb-admin.php:378
155
- msgid "Comments"
156
- msgstr "Comentarios"
157
-
158
- #: lib/class-wp-embed-fb-admin.php:382
159
- msgid "Sync comment count"
160
- msgstr "Sincronizar conteo de comentarios"
161
-
162
- #: lib/class-wp-embed-fb-admin.php:385
163
- msgid "Add open graph meta"
164
- msgstr "Agregar meta open graph"
165
-
166
- #: lib/class-wp-embed-fb-admin.php:386
167
- msgid "Needed to moderate comments"
168
- msgstr "Necesario para moderar comentarios"
169
-
170
- #: lib/class-wp-embed-fb-admin.php:386
171
- msgid ""
172
- "Disable this if you already have another plugin adding <a title=\"Moderation "
173
- "Setup Instructions\" target=\"_blank\" href=\"%s\">the fb:app_id meta</a>"
174
- msgstr ""
175
- "Desactivar esto si ya tienes otro plugin añadiendo <a title=\"Moderation "
176
- "Setup Instructions\" target=\"_blank\" href=\"%s\">la meta fb:app_id</a>"
177
-
178
- #: lib/class-wp-embed-fb-admin.php:387
179
- msgid "To enable comments moderation setup your App ID"
180
- msgstr "Para permitir moderación en comentarios configurar tu App ID"
181
-
182
- #: lib/class-wp-embed-fb-admin.php:390
183
- msgid ""
184
- "If you cant see the \"Moderate comment\" link above each comment you will "
185
- "need to <a title=\"Sharing Debugger\" target=\"_blank\" href=\"%s\">scrape "
186
- "the url</a>"
187
- msgstr ""
188
- "Si no ves el enlace \"Moderar comentaio\" sobre cada comentario tendras que "
189
- "<a title=\"Sharing Debugger\" target=\"_blank\" href=\"%s\">raspar la url</a>"
190
-
191
- #: lib/class-wp-embed-fb-admin.php:394
192
- msgid "Notes:"
193
- msgstr "Notas:"
194
-
195
- #: lib/class-wp-embed-fb-admin.php:396
196
- msgid "Facebook settings"
197
- msgstr "Ajustes de Facebook"
198
-
199
- #: lib/class-wp-embed-fb-admin.php:397
200
- msgid "Social Plugins Language"
201
- msgstr "Lenguaje de los plugins sociales"
202
-
203
- #: lib/class-wp-embed-fb-admin.php:400
204
- msgid ""
205
- "Creating a Facebook app is easy view the <a href=\"%s\" target=\"_blank\" "
206
- "title=\"WP Embed FB documentation\">step by step guide</a> or view <a href="
207
- "\"%s\" target=\"_blank\" title=\"Facebook Apps\">your apps</a>."
208
- msgstr ""
209
- "Crear una aplicación de Facebook es fácil ver la <a href=\"%s\" target="
210
- "\"_blank\" title=\"WP Embed FB documentation\">Guía paso a paso</a> o ver <a "
211
- "href=\"%s\" target=\"_blank\" title=\"Facebook Apps\">tus aplicaciones</a>."
212
-
213
- #: lib/class-wp-embed-fb-admin.php:407
214
- msgid "App ID"
215
- msgstr "App ID"
216
-
217
- #: lib/class-wp-embed-fb-admin.php:409
218
- msgid "App Secret"
219
- msgstr "App Secret"
220
-
221
- #: lib/class-wp-embed-fb-admin.php:421
222
- msgid ""
223
- "<a title=\"Facebook Social Plugins\" href=\"%s\" rel=\"nofollow\" target="
224
- "\"_blank\">Social plugins</a> are pieces of code that Facebook developers "
225
- "created for us mortals."
226
- msgstr ""
227
- "<a title=\"Facebook Social Plugins\" href=\"%s\" rel=\"nofollow\" target="
228
- "\"_blank\">Los plugins sociales</a> son piezas de código que los "
229
- "desarrolladores de Facebook creado para nosotros los mortales."
230
-
231
- #: lib/class-wp-embed-fb-admin.php:423 lib/class-wp-embed-fb-admin.php:566
232
- msgid "Example:"
233
- msgstr "Ejemplo:"
234
-
235
- #: lib/class-wp-embed-fb-admin.php:425
236
- msgid "Embed a like button for the curent page:"
237
- msgstr "Insertar un botón de me gusta de la página actual:"
238
-
239
- #: lib/class-wp-embed-fb-admin.php:428
240
- msgid "add debug=1 to debug the result."
241
- msgstr "Añadir debug=1 para depurar el resultado."
242
-
243
- #: lib/class-wp-embed-fb-admin.php:435
244
- msgid "Page plugin"
245
- msgstr "Page plugin"
246
-
247
- #: lib/class-wp-embed-fb-admin.php:442
248
- msgid "Tabs separated by commas i.e. timeline,events,messages"
249
- msgstr "Pestañas separadas por comas, es decir: timeline,events,messages"
250
-
251
- #: lib/class-wp-embed-fb-admin.php:449
252
- msgid "Post plugin"
253
- msgstr "Post plugin"
254
-
255
- #: lib/class-wp-embed-fb-admin.php:456
256
- msgid "Video"
257
- msgstr "Video"
258
-
259
- #: lib/class-wp-embed-fb-admin.php:463
260
- msgid "Single comment"
261
- msgstr "Single comment"
262
-
263
- #: lib/class-wp-embed-fb-admin.php:467
264
- msgid "Activate them on all your posts on the \"Magic embeds\" section"
265
- msgstr "Activar en todos tus posts en la sección \"Incrustados Mágicos\""
266
-
267
- #: lib/class-wp-embed-fb-admin.php:467
268
- msgid "Comments plugin"
269
- msgstr "Comments plugin"
270
-
271
- #: lib/class-wp-embed-fb-admin.php:474
272
- msgid "Activate it on all your posts on the \"Magic embeds\" section"
273
- msgstr "Activar en todos tus posts en la sección \"Incrustados Mágicos\""
274
-
275
- #: lib/class-wp-embed-fb-admin.php:474
276
- msgid "Quote plugin"
277
- msgstr "Quote plugin"
278
-
279
- #: lib/class-wp-embed-fb-admin.php:477
280
- msgid "Save button"
281
- msgstr "Save button"
282
-
283
- #: lib/class-wp-embed-fb-admin.php:480
284
- msgid "Like button"
285
- msgstr "Like button"
286
-
287
- #: lib/class-wp-embed-fb-admin.php:489
288
- msgid "Send button"
289
- msgstr "Send button"
290
-
291
- #: lib/class-wp-embed-fb-admin.php:493
292
- msgid "Share button"
293
- msgstr "Share button"
294
-
295
- #: lib/class-wp-embed-fb-admin.php:497
296
- msgid "Follow button"
297
- msgstr "Follow button"
298
-
299
- #: lib/class-wp-embed-fb-admin.php:507
300
- msgid "Adaptive view"
301
- msgstr "Vista Adaptiva"
302
-
303
- #: lib/class-wp-embed-fb-admin.php:519
304
- msgid "General"
305
- msgstr "General"
306
-
307
- #: lib/class-wp-embed-fb-admin.php:531
308
- msgid "Albums"
309
- msgstr "Álbumes"
310
-
311
- #: lib/class-wp-embed-fb-admin.php:532
312
- msgid "Number of Photos"
313
- msgstr "Número de Imágenes"
314
-
315
- #: lib/class-wp-embed-fb-admin.php:534
316
- msgid "Events"
317
- msgstr "Eventos"
318
-
319
- #: lib/class-wp-embed-fb-admin.php:535
320
- msgid "Use WP time to calculate the date"
321
- msgstr "Usa el tiempo de WP para calcular la fecha"
322
-
323
- #: lib/class-wp-embed-fb-admin.php:536 lib/class-wp-embed-fb-admin.php:549
324
- msgid "Time format"
325
- msgstr "Formato de fecha"
326
-
327
- #: lib/class-wp-embed-fb-admin.php:537 lib/class-wp-embed-fb-admin.php:550
328
- msgid "examples"
329
- msgstr "ejemplos"
330
-
331
- #: lib/class-wp-embed-fb-admin.php:539
332
- msgid "Pages"
333
- msgstr "Páginas"
334
-
335
- #: lib/class-wp-embed-fb-admin.php:540 lib/class-wp-embed-fb-admin.php:545
336
- #: lib/class-wp-embed-fb-admin.php:548 lib/class-wp-embed-fb-admin.php:555
337
- msgid "Use by default on \"Auto Embeds\""
338
- msgstr "Utilizar por defecto en \"Auto incrustados\""
339
-
340
- #: lib/class-wp-embed-fb-admin.php:541
341
- msgid "Show like button"
342
- msgstr "Mostrar botón \"Me gusta\""
343
-
344
- #: lib/class-wp-embed-fb-admin.php:542
345
- msgid "Number of posts"
346
- msgstr "Número de publicaciones"
347
-
348
- #: lib/class-wp-embed-fb-admin.php:544
349
- msgid "Photos"
350
- msgstr "Fotos"
351
-
352
- #: lib/class-wp-embed-fb-admin.php:547
353
- msgid "Posts"
354
- msgstr "Publicaciones"
355
-
356
- #: lib/class-wp-embed-fb-admin.php:554
357
- msgid "Videos"
358
- msgstr "Vídeos"
359
-
360
- #: lib/class-wp-embed-fb-admin.php:556
361
- msgid "Force 16:9 ratio"
362
- msgstr "Fuerza de relación 16:9"
363
-
364
- #: lib/class-wp-embed-fb-admin.php:558
365
- msgid "Profiles"
366
- msgstr "Perfiles"
367
-
368
- #: lib/class-wp-embed-fb-admin.php:559
369
- msgid "Show follow button"
370
- msgstr "Botón de seguir"
371
-
372
- #: lib/class-wp-embed-fb-admin.php:564
373
- msgid ""
374
- "Custom embeds can be triggered using the [facebook url] or [embed] "
375
- "shortcodes also by activating \"Auto Embeds\" on Magic Embeds section."
376
- msgstr ""
377
- "Los Incrustados personalizados pueden activados utilizado los shortcodes "
378
- "[facebook url] o [embed] también al activar \"Auto Incrustados\" en la "
379
- "sección Incrustados Mágicos."
380
-
381
- #: lib/class-wp-embed-fb-admin.php:571
382
- msgid ""
383
- "<a href=\"%s\" title=\"WP Embed Facebook Shortcode\" target=\"_blank\">Read "
384
- "More</a>"
385
- msgstr ""
386
- "<a href=\"%s\" title=\"WP Embed Facebook Shortcode\" target=\"_blank\">Leer "
387
- "más</a>"
388
-
389
- #: lib/class-wp-embed-fb-admin.php:578 lib/class-wp-embed-fb-admin.php:612
390
- msgid "By default you can only embed public pages, videos, photos and posts."
391
- msgstr ""
392
- "Por default sólo puede incrustar páginas, videos, fotos y publicaciones "
393
- "públicas."
394
-
395
- #: lib/class-wp-embed-fb-admin.php:579 lib/class-wp-embed-fb-admin.php:613
396
- msgid ""
397
- "To embed albums, events, profiles and video as HTML5 you will need to setup "
398
- "a Facebook App on Magic Embeds section"
399
- msgstr ""
400
- "Para incrustar álbumes, eventos, perfiles y vídeo en HTML5, necesitará "
401
- "configurar una App Facebook en la sección de incrustados mágicos"
402
-
403
- #: lib/class-wp-embed-fb-admin.php:592
404
- msgid "Lightbox Options"
405
- msgstr "Opciones de Lightbox"
406
-
407
- #: lib/class-wp-embed-fb-admin.php:593
408
- msgid "Show Image Number Label"
409
- msgstr "Etiqueta de número de imagen"
410
-
411
- #: lib/class-wp-embed-fb-admin.php:594
412
- msgid "Album Label"
413
- msgstr "Etiqueta del album"
414
-
415
- #: lib/class-wp-embed-fb-admin.php:595
416
- msgid "Fade Duration"
417
- msgstr "Duración del esfumado"
418
-
419
- #: lib/class-wp-embed-fb-admin.php:596
420
- msgid "Resize Duration"
421
- msgstr "Duración del cambio de tamaño"
422
-
423
- #: lib/class-wp-embed-fb-admin.php:597
424
- msgid "Position From Top"
425
- msgstr "Posición desde arriba"
426
-
427
- #: lib/class-wp-embed-fb-admin.php:598
428
- msgid "Max Height"
429
- msgstr "Altura máxima"
430
-
431
- #: lib/class-wp-embed-fb-admin.php:599
432
- msgid "Max Width"
433
- msgstr "Anchura máxima"
434
-
435
- #: lib/class-wp-embed-fb-admin.php:600
436
- msgid "Always Show Nav On TouchDevices"
437
- msgstr "Siempre mostrar nav. en dispositivos táctiles"
438
-
439
- #: lib/class-wp-embed-fb-admin.php:601
440
- msgid "Fit Images In Viewport"
441
- msgstr "Escalar imágenes a la ventana"
442
-
443
- #: lib/class-wp-embed-fb-admin.php:602
444
- msgid "Disable Scrolling"
445
- msgstr "Desactivar desplazamiento"
446
-
447
- #: lib/class-wp-embed-fb-admin.php:603
448
- msgid "Loop Through Album"
449
- msgstr "Bucle por el álbum"
450
-
451
- #: lib/class-wp-embed-fb-admin.php:604
452
- msgid "Use this lightbox on the [gallery] shortcode"
453
- msgstr "Utilice este Lightbox en el shortcode [gallery]"
454
-
455
- #: lib/class-wp-embed-fb-admin.php:623
456
- msgid ""
457
- "Beware altering this options without the proper knowledge could make the "
458
- "world disappear."
459
- msgstr ""
460
-
461
- #: lib/class-wp-embed-fb-admin.php:626
462
- msgid "Enqueue styles and scripts"
463
- msgstr "Enqueue estilos y scripts"
464
-
465
- #: lib/class-wp-embed-fb-admin.php:627
466
- msgid "Only when there is an embed present"
467
- msgstr "Sólo cuando hay un incrustado presente"
468
-
469
- #: lib/class-wp-embed-fb-admin.php:628
470
- msgid "Use permalinks on social plugins urls"
471
- msgstr ""
472
-
473
- #: lib/class-wp-embed-fb-admin.php:629
474
- msgid "Facebook SDK"
475
- msgstr "SDK de Facebook"
476
-
477
- #: lib/class-wp-embed-fb-admin.php:630
478
- msgid "Template Styles"
479
- msgstr "Estilos de la plantilla"
480
-
481
- #: lib/class-wp-embed-fb-admin.php:631
482
- msgid "Adaptive social plugins script"
483
- msgstr "Script pasa social plugins adaptivos"
484
-
485
- #: lib/class-wp-embed-fb-admin.php:634
486
- msgid "Enqueue script"
487
- msgstr "Registrar el script del plugin"
488
-
489
- #: lib/class-wp-embed-fb-admin.php:635
490
- msgid "Attribute"
491
- msgstr "Atributo"
492
-
493
- #: lib/class-wp-embed-fb-admin.php:637
494
- msgid "Other Options"
495
- msgstr "Otras Opciones"
496
-
497
- #: lib/class-wp-embed-fb-admin.php:638
498
- msgid "Add fb-root on top of content"
499
- msgstr "Añadir fb-root en la parte superior contenido"
500
-
501
- #: lib/class-wp-embed-fb-admin.php:639
502
- msgid "Force Facebook SDK script on all site"
503
- msgstr "Forzar el script de Facebook SDK en todo sitio"
504
-
505
- #: lib/class-wp-embed-fb-admin.php:640
506
- msgid "Force app token"
507
- msgstr "Forzar el token de la app"
508
-
509
- #: lib/class-wp-embed-fb-admin.php:660
510
- msgid "Save all settings"
511
- msgstr "Guardar todos los ajustes"
512
-
513
- #: lib/class-wp-embed-fb-admin.php:665
514
- msgid "Restore default values?"
515
- msgstr "¿ Restaurar valores predeterminados ?"
516
-
517
- #: lib/class-wp-embed-fb-admin.php:668
518
- msgid "Restore defaults"
519
- msgstr "Restaurar valores predeterminados"
520
-
521
- #: lib/class-wp-embed-fb-admin.php:676
522
- msgid "Premium Extension Available"
523
- msgstr "Extensión Premium disponible"
524
-
525
- #: lib/class-wp-embed-fb-admin.php:680
526
- msgid "Shortcodes for embedding a full event or page."
527
- msgstr "Shortcodes para incrustar un evento o una página."
528
-
529
- #: lib/class-wp-embed-fb-admin.php:682
530
- msgid "Elegant template for custom embeds"
531
- msgstr "Plantilla Elegant para incrustados personalizados"
532
-
533
- #: lib/class-wp-embed-fb-admin.php:684
534
- msgid "Albums with more that 100 photos."
535
- msgstr "Álbumes con más 100 fotos."
536
-
537
- #: lib/class-wp-embed-fb-admin.php:686
538
- msgid "One Year Premium Support"
539
- msgstr "Soporte Premium por un año"
540
-
541
- #: lib/class-wp-embed-fb-admin.php:690
542
- msgid "Check it out"
543
- msgstr "Échale un vistazo!"
544
-
545
- #: lib/class-wp-embed-fb-admin.php:694
546
- msgid "Plus new features cooking"
547
- msgstr "Más novedades un la cocina"
548
-
549
- #: lib/class-wp-embed-fb-admin.php:697
550
- msgid ""
551
- "Embed private data, shortcode creator, widgets, special templates for albums "
552
- "and pages"
553
- msgstr ""
554
- "Incrusta datos privados, creador de shortcodes, widgets, plantillas "
555
- "especiales para álbumes y páginas"
556
-
557
- #: lib/class-wp-embed-fb-admin.php:702
558
- msgid "This free plugin has taken thousands of hours to maintain and develop"
559
- msgstr ""
560
- "Este plugin gratuito ha costado miles de horas en mantener y desarrollar"
561
-
562
- #: lib/class-wp-embed-fb-admin.php:707
563
- msgid "Rate it"
564
- msgstr "Valóralo ahora"
565
-
566
- #: lib/class-wp-embed-fb-admin.php:715
567
- msgid "Donate"
568
- msgstr "Dona"
569
-
570
- #: lib/class-wp-embed-fb-admin.php:720
571
- msgid "More information"
572
- msgstr "Más información"
573
-
574
- #: lib/class-wp-embed-fb.php:56
575
- msgid "This is not a valid facebook url"
576
- msgstr "Esto no es una url válida de facebook"
577
-
578
- #: lib/class-wp-embed-fb.php:71
579
- msgid ""
580
- "You are using the [facebook] shortcode wrong. See examples <a title="
581
- "\"Examples\" target=\"_blank\" href=\"%s\" >here</a>."
582
- msgstr ""
583
- "Usas el shortcode [facebook] mal. Ver ejemplos <a title=\"Examples\" target="
584
- "\"_blank\" href=\"%s\">aquí</a>."
585
-
586
- #: lib/class-wp-embed-fb.php:188
587
- msgid ""
588
- "Error: Try embedding this post as a social plugin (only visible to admins)"
589
- msgstr ""
590
- "Error: Trata de incrustar este post como un plugin social (visible sólo para "
591
- "administradores)"
592
-
593
- #: lib/class-wp-embed-fb.php:191 lib/class-wp-embed-fb.php:230
594
- msgid "Code"
595
- msgstr "Código"
596
-
597
- #: lib/class-wp-embed-fb.php:193 lib/class-wp-embed-fb.php:232
598
- #: lib/class-wp-embed-fb.php:430
599
- msgid "Error"
600
- msgstr "Error"
601
-
602
- #: lib/class-wp-embed-fb.php:437
603
- msgid ""
604
- "<small>To embed this type of content you need to setup a facebook app on <a "
605
- "href=\"%s\" title=\"WP Embed Facebook Settings\">settings</a></small>"
606
- msgstr ""
607
- "<small>Para incrustar este tipo de contenido necesita configurar una "
608
- "aplicación de Facebook en <a href=\"%s\" title=\"WP Embed Facebook Settings"
609
- "\">configuración</a></small>"
610
-
611
- #: templates/classic/com-page.php:20 templates/classic/page.php:34
612
- #: templates/classic/post.php:21 templates/default/com-page.php:20
613
- #: templates/default/page.php:34 templates/default/post.php:21
614
- msgid "%d people like this."
615
- msgstr "a %d les gusta esto."
616
-
617
- #: templates/classic/com-page.php:26 templates/classic/com-page.php:27
618
- #: templates/classic/page.php:24 templates/classic/page.php:25
619
- #: templates/default/com-page.php:26 templates/default/com-page.php:27
620
- #: templates/default/page.php:24 templates/default/page.php:25
621
- msgid "Web Site"
622
- msgstr "Sitio Web"
623
-
624
- #: templates/classic/event.php:27 templates/classic/event.php:30
625
- #: templates/default/event.php:27 templates/default/event.php:30
626
- msgid "@ "
627
- msgstr "en: "
628
-
629
- #: templates/classic/event.php:34 templates/default/event.php:34
630
- msgid "Creator: "
631
- msgstr "Creador: "
632
-
633
- #: templates/classic/single-post.php:125 templates/default/single-post.php:125
634
- msgid "likes"
635
- msgstr "me gusta"
636
-
637
- #: templates/classic/single-post.php:128 templates/default/single-post.php:128
638
- msgid "comments"
639
- msgstr "comentarios"
640
-
641
- #: templates/classic/single-post.php:131 templates/default/single-post.php:131
642
- msgid "shares"
643
- msgstr "comparticiones"
644
-
645
- #. Author URI of the plugin/theme
646
- msgid "http://www.wpembedfb.com"
647
- msgstr "http://www.wpembedfb.com"
648
-
649
- #. Description of the plugin/theme
650
- #, fuzzy
651
- msgid ""
652
- "Embed any public Facebook video, photo, album, event, page, comment, "
653
- "profile, or post. Add Facebook comments to all your site, insert Facebook "
654
- "social plugins (like, save, send, share, follow, quote, comments) anywhere "
655
- "on your site. View the <a href=\"http://www.wpembedfb.com/demo-site/\" title="
656
- "\"plugin website\" target=\"_blank\">demo site</a>."
657
- msgstr ""
658
- "Incrusta un post, video, foto, álbum, evento, página, comentario o perfil "
659
- "público. Agrega comentarios de Facebook a todo tu sitio, inserta plugins "
660
- "sociales (me gusta, guardar, enviar, compartir, seguir, cita, comentarios) "
661
- "en cualquier lugar de su sitio. Ver los <a href=\"http://www.wpembedfb.com/"
662
- "demo-site/\" title=\"plugin website\" target=\"_blank\">ejemplos</a>."
663
-
664
- #. Author of the plugin/theme
665
- msgid "Miguel Sirvent"
666
- msgstr "Miguel Sirvent"
667
-
668
- #~ msgid "Download this video"
669
- #~ msgstr "Descargar este video"
670
-
671
- #~ msgid "%sShow download option <br> under video"
672
- #~ msgstr "%sMostrar opción para descargar <br> debajo del video"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lang/wp-embed-facebook-es_PE.mo DELETED
Binary file
lang/wp-embed-facebook-es_PE.po DELETED
@@ -1,672 +0,0 @@
1
- # Copyright (C) 2016 Miguel Sirvent
2
- # This file is distributed under the same license as the WP Embed Facebook package.
3
- msgid ""
4
- msgstr ""
5
- "Project-Id-Version: WP Embed Facebook 2.1.6\n"
6
- "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-embed-"
7
- "facebook\n"
8
- "POT-Creation-Date: 2016-10-06 11:26-0500\n"
9
- "PO-Revision-Date: 2016-10-06 11:53-0500\n"
10
- "Last-Translator: Miguel Sirvent <miguel.sirvent@gmail.com>\n"
11
- "Language-Team: Miguel Sirvent <miguel@sigami.net>\n"
12
- "Language: es_PE\n"
13
- "MIME-Version: 1.0\n"
14
- "Content-Type: text/plain; charset=UTF-8\n"
15
- "Content-Transfer-Encoding: 8bit\n"
16
- "X-Generator: Poedit 1.8.9\n"
17
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
18
- "_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
19
- "esc_html_x:1,2c\n"
20
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
21
- "X-Poedit-SourceCharset: UTF-8\n"
22
- "X-Poedit-Basepath: ..\n"
23
- "X-Textdomain-Support: yes\n"
24
- "X-Poedit-Wpheader: wp-embed-facebook.php\n"
25
- "X-Poedit-SearchPath-0: .\n"
26
- "X-Poedit-SearchPathExcluded-0: *.js\n"
27
-
28
- #: lib/class-wef-magic-embeds.php:123
29
- msgid "Shortcode used:"
30
- msgstr "Shortcode utilizado:"
31
-
32
- #: lib/class-wef-magic-embeds.php:128
33
- msgid "Final code:"
34
- msgstr "Código final:"
35
-
36
- #: lib/class-wef-magic-embeds.php:133
37
- msgid "More information:"
38
- msgstr "Más información:"
39
-
40
- #: lib/class-wef-social-plugins.php:504
41
- msgid "Invalid Facebook plugin type use it like this: [fb_plugin like]"
42
- msgstr ""
43
- "Tipo de plugin de Facebook inválido utilizarlo como así: [como fb_plugin]"
44
-
45
- #. Plugin Name of the plugin/theme
46
- msgid "WP Embed Facebook"
47
- msgstr "Incrustar Facebook (WP Embed Facebook)"
48
-
49
- #: lib/class-wef-widget.php:15
50
- #, fuzzy
51
- msgid "Shortcode widget"
52
- msgstr "Shortcode utilizado:"
53
-
54
- #: lib/class-wef-widget.php:50
55
- msgid "Title:"
56
- msgstr ""
57
-
58
- #: lib/class-wef-widget.php:54
59
- #, fuzzy
60
- msgid "Shortcode:"
61
- msgstr "Shortcode utilizado:"
62
-
63
- #: lib/class-wp-embed-fb-admin.php:28
64
- #, fuzzy
65
- msgid ""
66
- "To enable comment moderation and embed albums, events, profiles and video as "
67
- "HTML5 setup a facebook app on <a id=\"wef_settings_link\" href=\"%s"
68
- "\">settings</a>"
69
- msgstr ""
70
- "Para activar la moderación de comentarios e incrustar álbumes, eventos, "
71
- "perfiles y vídeo en HTML5 configura una App de Facebook en <a href=\"%s"
72
- "\">configuración</a>"
73
-
74
- #: lib/class-wp-embed-fb-admin.php:138
75
- msgid "Settings"
76
- msgstr "Configuracion"
77
-
78
- #: lib/class-wp-embed-fb-admin.php:345
79
- msgid "Magic Embeds"
80
- msgstr "Incrustados Mágicos"
81
-
82
- #: lib/class-wp-embed-fb-admin.php:346
83
- msgid "Social Plugins"
84
- msgstr "Social Plugins"
85
-
86
- #: lib/class-wp-embed-fb-admin.php:347
87
- msgid "Custom Embeds"
88
- msgstr "Incrustados personalizados"
89
-
90
- #: lib/class-wp-embed-fb-admin.php:348 lib/class-wp-embed-fb-admin.php:633
91
- msgid "Lightbox"
92
- msgstr "Lightbox"
93
-
94
- #: lib/class-wp-embed-fb-admin.php:349
95
- msgid "Advanced"
96
- msgstr "Avanzado"
97
-
98
- #: lib/class-wp-embed-fb-admin.php:365
99
- msgid ""
100
- "Auto embeds understand the url you are entering and return a social plugin "
101
- "or a custom embed. <br>They can be activated by <a href=\"%s\" title="
102
- "\"WordPress Embeds\" target=\"_blank\">pasting the url on the editor</a> or "
103
- "by the [facebook url ] <a href=\"%s\" title=\"[facebook] Shortcode "
104
- "attributes and examples\" target=\"_blank\">shortcode</a>."
105
- msgstr ""
106
- "Los auto incrustados entienden la url vas a entrar y devuelve un incrustado "
107
- "personalizado o un plugin social.<br>Pueden ser activados al <a href=\"%s\" "
108
- "title=\"WordPress Embeds\" target=\"_blank\">pegar la url en el editor</a> o "
109
- "por el <a href=\"%s\" title=\"[facebook] Shortcode attributes and examples\" "
110
- "target=\"_blank\">shortcode</a> [facebook url] ."
111
-
112
- #: lib/class-wp-embed-fb-admin.php:366
113
- msgid "Auto Embeds"
114
- msgstr "Auto Incrustados"
115
-
116
- #: lib/class-wp-embed-fb-admin.php:367
117
- msgid "Auto embed url's on editor "
118
- msgstr "Auto incrustar urls en el editor"
119
-
120
- #: lib/class-wp-embed-fb-admin.php:368
121
- msgid "Maximum width in pixels"
122
- msgstr "Máxima anchura en píxeles"
123
-
124
- #: lib/class-wp-embed-fb-admin.php:369
125
- msgid "Embed video as post"
126
- msgstr "Incrustar video como post"
127
-
128
- #: lib/class-wp-embed-fb-admin.php:373
129
- msgid ""
130
- "The quote plugin lets people select text on your page and add it to their "
131
- "share.<br><a href=\"%s\" target=\"_blank\" title=\"WP Embed Facebook\">Demo</"
132
- "a>"
133
- msgstr ""
134
- "El plugin de cita permite a las personas Seleccionar texto en tu página y "
135
- "agregarla a su participación.<br><a href=\"%s\" target=\"_blank\" title=\"WP "
136
- "Embed Facebook\">Ejemplo</a>"
137
-
138
- #: lib/class-wp-embed-fb-admin.php:373
139
- msgid "Quote Plugin"
140
- msgstr "Quote Plugin"
141
-
142
- #: lib/class-wp-embed-fb-admin.php:374 lib/class-wp-embed-fb-admin.php:379
143
- msgid "Active"
144
- msgstr "Activo"
145
-
146
- #: lib/class-wp-embed-fb-admin.php:375 lib/class-wp-embed-fb-admin.php:380
147
- msgid "Post types"
148
- msgstr "Tipos de entradas"
149
-
150
- #: lib/class-wp-embed-fb-admin.php:376 lib/class-wp-embed-fb-admin.php:381
151
- msgid "Post types separated by commas i.e. post,page,attachment"
152
- msgstr "Tipos de post separado por comas, es decir: post,page,attachment"
153
-
154
- #: lib/class-wp-embed-fb-admin.php:378
155
- msgid "Comments"
156
- msgstr "Comentarios"
157
-
158
- #: lib/class-wp-embed-fb-admin.php:382
159
- msgid "Sync comment count"
160
- msgstr "Sincronizar conteo de comentarios"
161
-
162
- #: lib/class-wp-embed-fb-admin.php:385
163
- msgid "Add open graph meta"
164
- msgstr "Agregar meta open graph"
165
-
166
- #: lib/class-wp-embed-fb-admin.php:386
167
- msgid "Needed to moderate comments"
168
- msgstr "Necesario para moderar comentarios"
169
-
170
- #: lib/class-wp-embed-fb-admin.php:386
171
- msgid ""
172
- "Disable this if you already have another plugin adding <a title=\"Moderation "
173
- "Setup Instructions\" target=\"_blank\" href=\"%s\">the fb:app_id meta</a>"
174
- msgstr ""
175
- "Desactivar esto si ya tienes otro plugin añadiendo <a title=\"Moderation "
176
- "Setup Instructions\" target=\"_blank\" href=\"%s\">la meta fb:app_id</a>"
177
-
178
- #: lib/class-wp-embed-fb-admin.php:387
179
- msgid "To enable comments moderation setup your App ID"
180
- msgstr "Para permitir moderación en comentarios configurar tu App ID"
181
-
182
- #: lib/class-wp-embed-fb-admin.php:390
183
- msgid ""
184
- "If you cant see the \"Moderate comment\" link above each comment you will "
185
- "need to <a title=\"Sharing Debugger\" target=\"_blank\" href=\"%s\">scrape "
186
- "the url</a>"
187
- msgstr ""
188
- "Si no ves el enlace \"Moderar comentaio\" sobre cada comentario tendras que "
189
- "<a title=\"Sharing Debugger\" target=\"_blank\" href=\"%s\">raspar la url</a>"
190
-
191
- #: lib/class-wp-embed-fb-admin.php:394
192
- msgid "Notes:"
193
- msgstr "Notas:"
194
-
195
- #: lib/class-wp-embed-fb-admin.php:396
196
- msgid "Facebook settings"
197
- msgstr "Ajustes de Facebook"
198
-
199
- #: lib/class-wp-embed-fb-admin.php:397
200
- msgid "Social Plugins Language"
201
- msgstr "Lenguaje de los plugins sociales"
202
-
203
- #: lib/class-wp-embed-fb-admin.php:400
204
- msgid ""
205
- "Creating a Facebook app is easy view the <a href=\"%s\" target=\"_blank\" "
206
- "title=\"WP Embed FB documentation\">step by step guide</a> or view <a href="
207
- "\"%s\" target=\"_blank\" title=\"Facebook Apps\">your apps</a>."
208
- msgstr ""
209
- "Crear una aplicación de Facebook es fácil ver la <a href=\"%s\" target="
210
- "\"_blank\" title=\"WP Embed FB documentation\">Guía paso a paso</a> o ver <a "
211
- "href=\"%s\" target=\"_blank\" title=\"Facebook Apps\">tus aplicaciones</a>."
212
-
213
- #: lib/class-wp-embed-fb-admin.php:407
214
- msgid "App ID"
215
- msgstr "App ID"
216
-
217
- #: lib/class-wp-embed-fb-admin.php:409
218
- msgid "App Secret"
219
- msgstr "App Secret"
220
-
221
- #: lib/class-wp-embed-fb-admin.php:421
222
- msgid ""
223
- "<a title=\"Facebook Social Plugins\" href=\"%s\" rel=\"nofollow\" target="
224
- "\"_blank\">Social plugins</a> are pieces of code that Facebook developers "
225
- "created for us mortals."
226
- msgstr ""
227
- "<a title=\"Facebook Social Plugins\" href=\"%s\" rel=\"nofollow\" target="
228
- "\"_blank\">Los plugins sociales</a> son piezas de código que los "
229
- "desarrolladores de Facebook creado para nosotros los mortales."
230
-
231
- #: lib/class-wp-embed-fb-admin.php:423 lib/class-wp-embed-fb-admin.php:566
232
- msgid "Example:"
233
- msgstr "Ejemplo:"
234
-
235
- #: lib/class-wp-embed-fb-admin.php:425
236
- msgid "Embed a like button for the curent page:"
237
- msgstr "Insertar un botón de me gusta de la página actual:"
238
-
239
- #: lib/class-wp-embed-fb-admin.php:428
240
- msgid "add debug=1 to debug the result."
241
- msgstr "Añadir debug=1 para depurar el resultado."
242
-
243
- #: lib/class-wp-embed-fb-admin.php:435
244
- msgid "Page plugin"
245
- msgstr "Page plugin"
246
-
247
- #: lib/class-wp-embed-fb-admin.php:442
248
- msgid "Tabs separated by commas i.e. timeline,events,messages"
249
- msgstr "Pestañas separadas por comas, es decir: timeline,events,messages"
250
-
251
- #: lib/class-wp-embed-fb-admin.php:449
252
- msgid "Post plugin"
253
- msgstr "Post plugin"
254
-
255
- #: lib/class-wp-embed-fb-admin.php:456
256
- msgid "Video"
257
- msgstr "Video"
258
-
259
- #: lib/class-wp-embed-fb-admin.php:463
260
- msgid "Single comment"
261
- msgstr "Single comment"
262
-
263
- #: lib/class-wp-embed-fb-admin.php:467
264
- msgid "Activate them on all your posts on the \"Magic embeds\" section"
265
- msgstr "Activar en todos tus posts en la sección \"Incrustados Mágicos\""
266
-
267
- #: lib/class-wp-embed-fb-admin.php:467
268
- msgid "Comments plugin"
269
- msgstr "Comments plugin"
270
-
271
- #: lib/class-wp-embed-fb-admin.php:474
272
- msgid "Activate it on all your posts on the \"Magic embeds\" section"
273
- msgstr "Activar en todos tus posts en la sección \"Incrustados Mágicos\""
274
-
275
- #: lib/class-wp-embed-fb-admin.php:474
276
- msgid "Quote plugin"
277
- msgstr "Quote plugin"
278
-
279
- #: lib/class-wp-embed-fb-admin.php:477
280
- msgid "Save button"
281
- msgstr "Save button"
282
-
283
- #: lib/class-wp-embed-fb-admin.php:480
284
- msgid "Like button"
285
- msgstr "Like button"
286
-
287
- #: lib/class-wp-embed-fb-admin.php:489
288
- msgid "Send button"
289
- msgstr "Send button"
290
-
291
- #: lib/class-wp-embed-fb-admin.php:493
292
- msgid "Share button"
293
- msgstr "Share button"
294
-
295
- #: lib/class-wp-embed-fb-admin.php:497
296
- msgid "Follow button"
297
- msgstr "Follow button"
298
-
299
- #: lib/class-wp-embed-fb-admin.php:507
300
- msgid "Adaptive view"
301
- msgstr "Vista Adaptiva"
302
-
303
- #: lib/class-wp-embed-fb-admin.php:519
304
- msgid "General"
305
- msgstr "General"
306
-
307
- #: lib/class-wp-embed-fb-admin.php:531
308
- msgid "Albums"
309
- msgstr "Álbumes"
310
-
311
- #: lib/class-wp-embed-fb-admin.php:532
312
- msgid "Number of Photos"
313
- msgstr "Número de Imágenes"
314
-
315
- #: lib/class-wp-embed-fb-admin.php:534
316
- msgid "Events"
317
- msgstr "Eventos"
318
-
319
- #: lib/class-wp-embed-fb-admin.php:535
320
- msgid "Use WP time to calculate the date"
321
- msgstr "Usa el tiempo de WP para calcular la fecha"
322
-
323
- #: lib/class-wp-embed-fb-admin.php:536 lib/class-wp-embed-fb-admin.php:549
324
- msgid "Time format"
325
- msgstr "Formato de fecha"
326
-
327
- #: lib/class-wp-embed-fb-admin.php:537 lib/class-wp-embed-fb-admin.php:550
328
- msgid "examples"
329
- msgstr "ejemplos"
330
-
331
- #: lib/class-wp-embed-fb-admin.php:539
332
- msgid "Pages"
333
- msgstr "Páginas"
334
-
335
- #: lib/class-wp-embed-fb-admin.php:540 lib/class-wp-embed-fb-admin.php:545
336
- #: lib/class-wp-embed-fb-admin.php:548 lib/class-wp-embed-fb-admin.php:555
337
- msgid "Use by default on \"Auto Embeds\""
338
- msgstr "Utilizar por defecto en \"Auto incrustados\""
339
-
340
- #: lib/class-wp-embed-fb-admin.php:541
341
- msgid "Show like button"
342
- msgstr "Mostrar botón \"Me gusta\""
343
-
344
- #: lib/class-wp-embed-fb-admin.php:542
345
- msgid "Number of posts"
346
- msgstr "Número de publicaciones"
347
-
348
- #: lib/class-wp-embed-fb-admin.php:544
349
- msgid "Photos"
350
- msgstr "Fotos"
351
-
352
- #: lib/class-wp-embed-fb-admin.php:547
353
- msgid "Posts"
354
- msgstr "Publicaciones"
355
-
356
- #: lib/class-wp-embed-fb-admin.php:554
357
- msgid "Videos"
358
- msgstr "Vídeos"
359
-
360
- #: lib/class-wp-embed-fb-admin.php:556
361
- msgid "Force 16:9 ratio"
362
- msgstr "Fuerza de relación 16:9"
363
-
364
- #: lib/class-wp-embed-fb-admin.php:558
365
- msgid "Profiles"
366
- msgstr "Perfiles"
367
-
368
- #: lib/class-wp-embed-fb-admin.php:559
369
- msgid "Show follow button"
370
- msgstr "Botón de seguir"
371
-
372
- #: lib/class-wp-embed-fb-admin.php:564
373
- msgid ""
374
- "Custom embeds can be triggered using the [facebook url] or [embed] "
375
- "shortcodes also by activating \"Auto Embeds\" on Magic Embeds section."
376
- msgstr ""
377
- "Los Incrustados personalizados pueden activados utilizado los shortcodes "
378
- "[facebook url] o [embed] también al activar \"Auto Incrustados\" en la "
379
- "sección Incrustados Mágicos."
380
-
381
- #: lib/class-wp-embed-fb-admin.php:571
382
- msgid ""
383
- "<a href=\"%s\" title=\"WP Embed Facebook Shortcode\" target=\"_blank\">Read "
384
- "More</a>"
385
- msgstr ""
386
- "<a href=\"%s\" title=\"WP Embed Facebook Shortcode\" target=\"_blank\">Leer "
387
- "más</a>"
388
-
389
- #: lib/class-wp-embed-fb-admin.php:578 lib/class-wp-embed-fb-admin.php:612
390
- msgid "By default you can only embed public pages, videos, photos and posts."
391
- msgstr ""
392
- "Por default sólo puede incrustar páginas, videos, fotos y publicaciones "
393
- "públicas."
394
-
395
- #: lib/class-wp-embed-fb-admin.php:579 lib/class-wp-embed-fb-admin.php:613
396
- msgid ""
397
- "To embed albums, events, profiles and video as HTML5 you will need to setup "
398
- "a Facebook App on Magic Embeds section"
399
- msgstr ""
400
- "Para incrustar álbumes, eventos, perfiles y vídeo en HTML5, necesitará "
401
- "configurar una App Facebook en la sección de incrustados mágicos"
402
-
403
- #: lib/class-wp-embed-fb-admin.php:592
404
- msgid "Lightbox Options"
405
- msgstr "Opciones de Lightbox"
406
-
407
- #: lib/class-wp-embed-fb-admin.php:593
408
- msgid "Show Image Number Label"
409
- msgstr "Etiqueta de número de imagen"
410
-
411
- #: lib/class-wp-embed-fb-admin.php:594
412
- msgid "Album Label"
413
- msgstr "Etiqueta del album"
414
-
415
- #: lib/class-wp-embed-fb-admin.php:595
416
- msgid "Fade Duration"
417
- msgstr "Duración del esfumado"
418
-
419
- #: lib/class-wp-embed-fb-admin.php:596
420
- msgid "Resize Duration"
421
- msgstr "Duración del cambio de tamaño"
422
-
423
- #: lib/class-wp-embed-fb-admin.php:597
424
- msgid "Position From Top"
425
- msgstr "Posición desde arriba"
426
-
427
- #: lib/class-wp-embed-fb-admin.php:598
428
- msgid "Max Height"
429
- msgstr "Altura máxima"
430
-
431
- #: lib/class-wp-embed-fb-admin.php:599
432
- msgid "Max Width"
433
- msgstr "Anchura máxima"
434
-
435
- #: lib/class-wp-embed-fb-admin.php:600
436
- msgid "Always Show Nav On TouchDevices"
437
- msgstr "Siempre mostrar nav. en dispositivos táctiles"
438
-
439
- #: lib/class-wp-embed-fb-admin.php:601
440
- msgid "Fit Images In Viewport"
441
- msgstr "Escalar imágenes a la ventana"
442
-
443
- #: lib/class-wp-embed-fb-admin.php:602
444
- msgid "Disable Scrolling"
445
- msgstr "Desactivar desplazamiento"
446
-
447
- #: lib/class-wp-embed-fb-admin.php:603
448
- msgid "Loop Through Album"
449
- msgstr "Bucle por el álbum"
450
-
451
- #: lib/class-wp-embed-fb-admin.php:604
452
- msgid "Use this lightbox on the [gallery] shortcode"
453
- msgstr "Utilice este Lightbox en el shortcode [gallery]"
454
-
455
- #: lib/class-wp-embed-fb-admin.php:623
456
- msgid ""
457
- "Beware altering this options without the proper knowledge could make the "
458
- "world disappear."
459
- msgstr ""
460
-
461
- #: lib/class-wp-embed-fb-admin.php:626
462
- msgid "Enqueue styles and scripts"
463
- msgstr "Enqueue estilos y scripts"
464
-
465
- #: lib/class-wp-embed-fb-admin.php:627
466
- msgid "Only when there is an embed present"
467
- msgstr "Sólo cuando hay un incrustado presente"
468
-
469
- #: lib/class-wp-embed-fb-admin.php:628
470
- msgid "Use permalinks on social plugins urls"
471
- msgstr ""
472
-
473
- #: lib/class-wp-embed-fb-admin.php:629
474
- msgid "Facebook SDK"
475
- msgstr "SDK de Facebook"
476
-
477
- #: lib/class-wp-embed-fb-admin.php:630
478
- msgid "Template Styles"
479
- msgstr "Estilos de la plantilla"
480
-
481
- #: lib/class-wp-embed-fb-admin.php:631
482
- msgid "Adaptive social plugins script"
483
- msgstr "Script pasa social plugins adaptivos"
484
-
485
- #: lib/class-wp-embed-fb-admin.php:634
486
- msgid "Enqueue script"
487
- msgstr "Registrar el script del plugin"
488
-
489
- #: lib/class-wp-embed-fb-admin.php:635
490
- msgid "Attribute"
491
- msgstr "Atributo"
492
-
493
- #: lib/class-wp-embed-fb-admin.php:637
494
- msgid "Other Options"
495
- msgstr "Otras Opciones"
496
-
497
- #: lib/class-wp-embed-fb-admin.php:638
498
- msgid "Add fb-root on top of content"
499
- msgstr "Añadir fb-root en la parte superior contenido"
500
-
501
- #: lib/class-wp-embed-fb-admin.php:639
502
- msgid "Force Facebook SDK script on all site"
503
- msgstr "Forzar el script de Facebook SDK en todo sitio"
504
-
505
- #: lib/class-wp-embed-fb-admin.php:640
506
- msgid "Force app token"
507
- msgstr "Forzar el token de la app"
508
-
509
- #: lib/class-wp-embed-fb-admin.php:660
510
- msgid "Save all settings"
511
- msgstr "Guardar todos los ajustes"
512
-
513
- #: lib/class-wp-embed-fb-admin.php:665
514
- msgid "Restore default values?"
515
- msgstr "¿ Restaurar valores predeterminados ?"
516
-
517
- #: lib/class-wp-embed-fb-admin.php:668
518
- msgid "Restore defaults"
519
- msgstr "Restaurar valores predeterminados"
520
-
521
- #: lib/class-wp-embed-fb-admin.php:676
522
- msgid "Premium Extension Available"
523
- msgstr "Extensión Premium disponible"
524
-
525
- #: lib/class-wp-embed-fb-admin.php:680
526
- msgid "Shortcodes for embedding a full event or page."
527
- msgstr "Shortcodes para incrustar un evento o una página."
528
-
529
- #: lib/class-wp-embed-fb-admin.php:682
530
- msgid "Elegant template for custom embeds"
531
- msgstr "Plantilla Elegant para incrustados personalizados"
532
-
533
- #: lib/class-wp-embed-fb-admin.php:684
534
- msgid "Albums with more that 100 photos."
535
- msgstr "Álbumes con más 100 fotos."
536
-
537
- #: lib/class-wp-embed-fb-admin.php:686
538
- msgid "One Year Premium Support"
539
- msgstr "Soporte Premium por un año"
540
-
541
- #: lib/class-wp-embed-fb-admin.php:690
542
- msgid "Check it out"
543
- msgstr "Échale un vistazo!"
544
-
545
- #: lib/class-wp-embed-fb-admin.php:694
546
- msgid "Plus new features cooking"
547
- msgstr "Más novedades un la cocina"
548
-
549
- #: lib/class-wp-embed-fb-admin.php:697
550
- msgid ""
551
- "Embed private data, shortcode creator, widgets, special templates for albums "
552
- "and pages"
553
- msgstr ""
554
- "Incrusta datos privados, creador de shortcodes, widgets, plantillas "
555
- "especiales para álbumes y páginas"
556
-
557
- #: lib/class-wp-embed-fb-admin.php:702
558
- msgid "This free plugin has taken thousands of hours to maintain and develop"
559
- msgstr ""
560
- "Este plugin gratuito ha costado miles de horas en mantener y desarrollar"
561
-
562
- #: lib/class-wp-embed-fb-admin.php:707
563
- msgid "Rate it"
564
- msgstr "Valóralo ahora"
565
-
566
- #: lib/class-wp-embed-fb-admin.php:715
567
- msgid "Donate"
568
- msgstr "Dona"
569
-
570
- #: lib/class-wp-embed-fb-admin.php:720
571
- msgid "More information"
572
- msgstr "Más información"
573
-
574
- #: lib/class-wp-embed-fb.php:56
575
- msgid "This is not a valid facebook url"
576
- msgstr "Esto no es una url válida de facebook"
577
-
578
- #: lib/class-wp-embed-fb.php:71
579
- msgid ""
580
- "You are using the [facebook] shortcode wrong. See examples <a title="
581
- "\"Examples\" target=\"_blank\" href=\"%s\" >here</a>."
582
- msgstr ""
583
- "Usas el shortcode [facebook] mal. Ver ejemplos <a title=\"Examples\" target="
584
- "\"_blank\" href=\"%s\">aquí</a>."
585
-
586
- #: lib/class-wp-embed-fb.php:188
587
- msgid ""
588
- "Error: Try embedding this post as a social plugin (only visible to admins)"
589
- msgstr ""
590
- "Error: Trata de incrustar este post como un plugin social (visible sólo para "
591
- "administradores)"
592
-
593
- #: lib/class-wp-embed-fb.php:191 lib/class-wp-embed-fb.php:230
594
- msgid "Code"
595
- msgstr "Código"
596
-
597
- #: lib/class-wp-embed-fb.php:193 lib/class-wp-embed-fb.php:232
598
- #: lib/class-wp-embed-fb.php:430
599
- msgid "Error"
600
- msgstr "Error"
601
-
602
- #: lib/class-wp-embed-fb.php:437
603
- msgid ""
604
- "<small>To embed this type of content you need to setup a facebook app on <a "
605
- "href=\"%s\" title=\"WP Embed Facebook Settings\">settings</a></small>"
606
- msgstr ""
607
- "<small>Para incrustar este tipo de contenido necesita configurar una "
608
- "aplicación de Facebook en <a href=\"%s\" title=\"WP Embed Facebook Settings"
609
- "\">configuración</a></small>"
610
-
611
- #: templates/classic/com-page.php:20 templates/classic/page.php:34
612
- #: templates/classic/post.php:21 templates/default/com-page.php:20
613
- #: templates/default/page.php:34 templates/default/post.php:21
614
- msgid "%d people like this."
615
- msgstr "a %d les gusta esto."
616
-
617
- #: templates/classic/com-page.php:26 templates/classic/com-page.php:27
618
- #: templates/classic/page.php:24 templates/classic/page.php:25
619
- #: templates/default/com-page.php:26 templates/default/com-page.php:27
620
- #: templates/default/page.php:24 templates/default/page.php:25
621
- msgid "Web Site"
622
- msgstr "Sitio Web"
623
-
624
- #: templates/classic/event.php:27 templates/classic/event.php:30
625
- #: templates/default/event.php:27 templates/default/event.php:30
626
- msgid "@ "
627
- msgstr "en: "
628
-
629
- #: templates/classic/event.php:34 templates/default/event.php:34
630
- msgid "Creator: "
631
- msgstr "Creador: "
632
-
633
- #: templates/classic/single-post.php:125 templates/default/single-post.php:125
634
- msgid "likes"
635
- msgstr "me gusta"
636
-
637
- #: templates/classic/single-post.php:128 templates/default/single-post.php:128
638
- msgid "comments"
639
- msgstr "comentarios"
640
-
641
- #: templates/classic/single-post.php:131 templates/default/single-post.php:131
642
- msgid "shares"
643
- msgstr "comparticiones"
644
-
645
- #. Author URI of the plugin/theme
646
- msgid "http://www.wpembedfb.com"
647
- msgstr "http://www.wpembedfb.com"
648
-
649
- #. Description of the plugin/theme
650
- #, fuzzy
651
- msgid ""
652
- "Embed any public Facebook video, photo, album, event, page, comment, "
653
- "profile, or post. Add Facebook comments to all your site, insert Facebook "
654
- "social plugins (like, save, send, share, follow, quote, comments) anywhere "
655
- "on your site. View the <a href=\"http://www.wpembedfb.com/demo-site/\" title="
656
- "\"plugin website\" target=\"_blank\">demo site</a>."
657
- msgstr ""
658
- "Incrusta un post, video, foto, álbum, evento, página, comentario o perfil "
659
- "público. Agrega comentarios de Facebook a todo tu sitio, inserta plugins "
660
- "sociales (me gusta, guardar, enviar, compartir, seguir, cita, comentarios) "
661
- "en cualquier lugar de su sitio. Ver los <a href=\"http://www.wpembedfb.com/"
662
- "demo-site/\" title=\"plugin website\" target=\"_blank\">ejemplos</a>."
663
-
664
- #. Author of the plugin/theme
665
- msgid "Miguel Sirvent"
666
- msgstr "Miguel Sirvent"
667
-
668
- #~ msgid "Download this video"
669
- #~ msgstr "Descargar este video"
670
-
671
- #~ msgid "%sShow download option <br> under video"
672
- #~ msgstr "%sMostrar opción para descargar <br> debajo del video"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lang/wp-embed-facebook-es_VE.mo DELETED
Binary file
lang/wp-embed-facebook-es_VE.po DELETED
@@ -1,672 +0,0 @@
1
- # Copyright (C) 2016 Miguel Sirvent
2
- # This file is distributed under the same license as the WP Embed Facebook package.
3
- msgid ""
4
- msgstr ""
5
- "Project-Id-Version: WP Embed Facebook 2.1.6\n"
6
- "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-embed-"
7
- "facebook\n"
8
- "POT-Creation-Date: 2016-10-06 11:26-0500\n"
9
- "PO-Revision-Date: 2016-10-06 11:53-0500\n"
10
- "Last-Translator: Miguel Sirvent <miguel.sirvent@gmail.com>\n"
11
- "Language-Team: Miguel Sirvent <miguel@sigami.net>\n"
12
- "Language: es_VE\n"
13
- "MIME-Version: 1.0\n"
14
- "Content-Type: text/plain; charset=UTF-8\n"
15
- "Content-Transfer-Encoding: 8bit\n"
16
- "X-Generator: Poedit 1.8.9\n"
17
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
18
- "_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
19
- "esc_html_x:1,2c\n"
20
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
21
- "X-Poedit-SourceCharset: UTF-8\n"
22
- "X-Poedit-Basepath: ..\n"
23
- "X-Textdomain-Support: yes\n"
24
- "X-Poedit-Wpheader: wp-embed-facebook.php\n"
25
- "X-Poedit-SearchPath-0: .\n"
26
- "X-Poedit-SearchPathExcluded-0: *.js\n"
27
-
28
- #: lib/class-wef-magic-embeds.php:123
29
- msgid "Shortcode used:"
30
- msgstr "Shortcode utilizado:"
31
-
32
- #: lib/class-wef-magic-embeds.php:128
33
- msgid "Final code:"
34
- msgstr "Código final:"
35
-
36
- #: lib/class-wef-magic-embeds.php:133
37
- msgid "More information:"
38
- msgstr "Más información:"
39
-
40
- #: lib/class-wef-social-plugins.php:504
41
- msgid "Invalid Facebook plugin type use it like this: [fb_plugin like]"
42
- msgstr ""
43
- "Tipo de plugin de Facebook inválido utilizarlo como así: [como fb_plugin]"
44
-
45
- #. Plugin Name of the plugin/theme
46
- msgid "WP Embed Facebook"
47
- msgstr "Incrustar Facebook (WP Embed Facebook)"
48
-
49
- #: lib/class-wef-widget.php:15
50
- #, fuzzy
51
- msgid "Shortcode widget"
52
- msgstr "Shortcode utilizado:"
53
-
54
- #: lib/class-wef-widget.php:50
55
- msgid "Title:"
56
- msgstr ""
57
-
58
- #: lib/class-wef-widget.php:54
59
- #, fuzzy
60
- msgid "Shortcode:"
61
- msgstr "Shortcode utilizado:"
62
-
63
- #: lib/class-wp-embed-fb-admin.php:28
64
- #, fuzzy
65
- msgid ""
66
- "To enable comment moderation and embed albums, events, profiles and video as "
67
- "HTML5 setup a facebook app on <a id=\"wef_settings_link\" href=\"%s"
68
- "\">settings</a>"
69
- msgstr ""
70
- "Para activar la moderación de comentarios e incrustar álbumes, eventos, "
71
- "perfiles y vídeo en HTML5 configura una App de Facebook en <a href=\"%s"
72
- "\">configuración</a>"
73
-
74
- #: lib/class-wp-embed-fb-admin.php:138
75
- msgid "Settings"
76
- msgstr "Configuracion"
77
-
78
- #: lib/class-wp-embed-fb-admin.php:345
79
- msgid "Magic Embeds"
80
- msgstr "Incrustados Mágicos"
81
-
82
- #: lib/class-wp-embed-fb-admin.php:346
83
- msgid "Social Plugins"
84
- msgstr "Social Plugins"
85
-
86
- #: lib/class-wp-embed-fb-admin.php:347
87
- msgid "Custom Embeds"
88
- msgstr "Incrustados personalizados"
89
-
90
- #: lib/class-wp-embed-fb-admin.php:348 lib/class-wp-embed-fb-admin.php:633
91
- msgid "Lightbox"
92
- msgstr "Lightbox"
93
-
94
- #: lib/class-wp-embed-fb-admin.php:349
95
- msgid "Advanced"
96
- msgstr "Avanzado"
97
-
98
- #: lib/class-wp-embed-fb-admin.php:365
99
- msgid ""
100
- "Auto embeds understand the url you are entering and return a social plugin "
101
- "or a custom embed. <br>They can be activated by <a href=\"%s\" title="
102
- "\"WordPress Embeds\" target=\"_blank\">pasting the url on the editor</a> or "
103
- "by the [facebook url ] <a href=\"%s\" title=\"[facebook] Shortcode "
104
- "attributes and examples\" target=\"_blank\">shortcode</a>."
105
- msgstr ""
106
- "Los auto incrustados entienden la url vas a entrar y devuelve un incrustado "
107
- "personalizado o un plugin social.<br>Pueden ser activados al <a href=\"%s\" "
108
- "title=\"WordPress Embeds\" target=\"_blank\">pegar la url en el editor</a> o "
109
- "por el <a href=\"%s\" title=\"[facebook] Shortcode attributes and examples\" "
110
- "target=\"_blank\">shortcode</a> [facebook url] ."
111
-
112
- #: lib/class-wp-embed-fb-admin.php:366
113
- msgid "Auto Embeds"
114
- msgstr "Auto Incrustados"
115
-
116
- #: lib/class-wp-embed-fb-admin.php:367
117
- msgid "Auto embed url's on editor "
118
- msgstr "Auto incrustar urls en el editor"
119
-
120
- #: lib/class-wp-embed-fb-admin.php:368
121
- msgid "Maximum width in pixels"
122
- msgstr "Máxima anchura en píxeles"
123
-
124
- #: lib/class-wp-embed-fb-admin.php:369
125
- msgid "Embed video as post"
126
- msgstr "Incrustar video como post"
127
-
128
- #: lib/class-wp-embed-fb-admin.php:373
129
- msgid ""
130
- "The quote plugin lets people select text on your page and add it to their "
131
- "share.<br><a href=\"%s\" target=\"_blank\" title=\"WP Embed Facebook\">Demo</"
132
- "a>"
133
- msgstr ""
134
- "El plugin de cita permite a las personas Seleccionar texto en tu página y "
135
- "agregarla a su participación.<br><a href=\"%s\" target=\"_blank\" title=\"WP "
136
- "Embed Facebook\">Ejemplo</a>"
137
-
138
- #: lib/class-wp-embed-fb-admin.php:373
139
- msgid "Quote Plugin"
140
- msgstr "Quote Plugin"
141
-
142
- #: lib/class-wp-embed-fb-admin.php:374 lib/class-wp-embed-fb-admin.php:379
143
- msgid "Active"
144
- msgstr "Activo"
145
-
146
- #: lib/class-wp-embed-fb-admin.php:375 lib/class-wp-embed-fb-admin.php:380
147
- msgid "Post types"
148
- msgstr "Tipos de entradas"
149
-
150
- #: lib/class-wp-embed-fb-admin.php:376 lib/class-wp-embed-fb-admin.php:381
151
- msgid "Post types separated by commas i.e. post,page,attachment"
152
- msgstr "Tipos de post separado por comas, es decir: post,page,attachment"
153
-
154
- #: lib/class-wp-embed-fb-admin.php:378
155
- msgid "Comments"
156
- msgstr "Comentarios"
157
-
158
- #: lib/class-wp-embed-fb-admin.php:382
159
- msgid "Sync comment count"
160
- msgstr "Sincronizar conteo de comentarios"
161
-
162
- #: lib/class-wp-embed-fb-admin.php:385
163
- msgid "Add open graph meta"
164
- msgstr "Agregar meta open graph"
165
-
166
- #: lib/class-wp-embed-fb-admin.php:386
167
- msgid "Needed to moderate comments"
168
- msgstr "Necesario para moderar comentarios"
169
-
170
- #: lib/class-wp-embed-fb-admin.php:386
171
- msgid ""
172
- "Disable this if you already have another plugin adding <a title=\"Moderation "
173
- "Setup Instructions\" target=\"_blank\" href=\"%s\">the fb:app_id meta</a>"
174
- msgstr ""
175
- "Desactivar esto si ya tienes otro plugin añadiendo <a title=\"Moderation "
176
- "Setup Instructions\" target=\"_blank\" href=\"%s\">la meta fb:app_id</a>"
177
-
178
- #: lib/class-wp-embed-fb-admin.php:387
179
- msgid "To enable comments moderation setup your App ID"
180
- msgstr "Para permitir moderación en comentarios configurar tu App ID"
181
-
182
- #: lib/class-wp-embed-fb-admin.php:390
183
- msgid ""
184
- "If you cant see the \"Moderate comment\" link above each comment you will "
185
- "need to <a title=\"Sharing Debugger\" target=\"_blank\" href=\"%s\">scrape "
186
- "the url</a>"
187
- msgstr ""
188
- "Si no ves el enlace \"Moderar comentaio\" sobre cada comentario tendras que "
189
- "<a title=\"Sharing Debugger\" target=\"_blank\" href=\"%s\">raspar la url</a>"
190
-
191
- #: lib/class-wp-embed-fb-admin.php:394
192
- msgid "Notes:"
193
- msgstr "Notas:"
194
-
195
- #: lib/class-wp-embed-fb-admin.php:396
196
- msgid "Facebook settings"
197
- msgstr "Ajustes de Facebook"
198
-
199
- #: lib/class-wp-embed-fb-admin.php:397
200
- msgid "Social Plugins Language"
201
- msgstr "Lenguaje de los plugins sociales"
202
-
203
- #: lib/class-wp-embed-fb-admin.php:400
204
- msgid ""
205
- "Creating a Facebook app is easy view the <a href=\"%s\" target=\"_blank\" "
206
- "title=\"WP Embed FB documentation\">step by step guide</a> or view <a href="
207
- "\"%s\" target=\"_blank\" title=\"Facebook Apps\">your apps</a>."
208
- msgstr ""
209
- "Crear una aplicación de Facebook es fácil ver la <a href=\"%s\" target="
210
- "\"_blank\" title=\"WP Embed FB documentation\">Guía paso a paso</a> o ver <a "
211
- "href=\"%s\" target=\"_blank\" title=\"Facebook Apps\">tus aplicaciones</a>."
212
-
213
- #: lib/class-wp-embed-fb-admin.php:407
214
- msgid "App ID"
215
- msgstr "App ID"
216
-
217
- #: lib/class-wp-embed-fb-admin.php:409
218
- msgid "App Secret"
219
- msgstr "App Secret"
220
-
221
- #: lib/class-wp-embed-fb-admin.php:421
222
- msgid ""
223
- "<a title=\"Facebook Social Plugins\" href=\"%s\" rel=\"nofollow\" target="
224
- "\"_blank\">Social plugins</a> are pieces of code that Facebook developers "
225
- "created for us mortals."
226
- msgstr ""
227
- "<a title=\"Facebook Social Plugins\" href=\"%s\" rel=\"nofollow\" target="
228
- "\"_blank\">Los plugins sociales</a> son piezas de código que los "
229
- "desarrolladores de Facebook creado para nosotros los mortales."
230
-
231
- #: lib/class-wp-embed-fb-admin.php:423 lib/class-wp-embed-fb-admin.php:566
232
- msgid "Example:"
233
- msgstr "Ejemplo:"
234
-
235
- #: lib/class-wp-embed-fb-admin.php:425
236
- msgid "Embed a like button for the curent page:"
237
- msgstr "Insertar un botón de me gusta de la página actual:"
238
-
239
- #: lib/class-wp-embed-fb-admin.php:428
240
- msgid "add debug=1 to debug the result."
241
- msgstr "Añadir debug=1 para depurar el resultado."
242
-
243
- #: lib/class-wp-embed-fb-admin.php:435
244
- msgid "Page plugin"
245
- msgstr "Page plugin"
246
-
247
- #: lib/class-wp-embed-fb-admin.php:442
248
- msgid "Tabs separated by commas i.e. timeline,events,messages"
249
- msgstr "Pestañas separadas por comas, es decir: timeline,events,messages"
250
-
251
- #: lib/class-wp-embed-fb-admin.php:449
252
- msgid "Post plugin"
253
- msgstr "Post plugin"
254
-
255
- #: lib/class-wp-embed-fb-admin.php:456
256
- msgid "Video"
257
- msgstr "Video"
258
-
259
- #: lib/class-wp-embed-fb-admin.php:463
260
- msgid "Single comment"
261
- msgstr "Single comment"
262
-
263
- #: lib/class-wp-embed-fb-admin.php:467
264
- msgid "Activate them on all your posts on the \"Magic embeds\" section"
265
- msgstr "Activar en todos tus posts en la sección \"Incrustados Mágicos\""
266
-
267
- #: lib/class-wp-embed-fb-admin.php:467
268
- msgid "Comments plugin"
269
- msgstr "Comments plugin"
270
-
271
- #: lib/class-wp-embed-fb-admin.php:474
272
- msgid "Activate it on all your posts on the \"Magic embeds\" section"
273
- msgstr "Activar en todos tus posts en la sección \"Incrustados Mágicos\""
274
-
275
- #: lib/class-wp-embed-fb-admin.php:474
276
- msgid "Quote plugin"
277
- msgstr "Quote plugin"
278
-
279
- #: lib/class-wp-embed-fb-admin.php:477
280
- msgid "Save button"
281
- msgstr "Save button"
282
-
283
- #: lib/class-wp-embed-fb-admin.php:480
284
- msgid "Like button"
285
- msgstr "Like button"
286
-
287
- #: lib/class-wp-embed-fb-admin.php:489
288
- msgid "Send button"
289
- msgstr "Send button"
290
-
291
- #: lib/class-wp-embed-fb-admin.php:493
292
- msgid "Share button"
293
- msgstr "Share button"
294
-
295
- #: lib/class-wp-embed-fb-admin.php:497
296
- msgid "Follow button"
297
- msgstr "Follow button"
298
-
299
- #: lib/class-wp-embed-fb-admin.php:507
300
- msgid "Adaptive view"
301
- msgstr "Vista Adaptiva"
302
-
303
- #: lib/class-wp-embed-fb-admin.php:519
304
- msgid "General"
305
- msgstr "General"
306
-
307
- #: lib/class-wp-embed-fb-admin.php:531
308
- msgid "Albums"
309
- msgstr "Álbumes"
310
-
311
- #: lib/class-wp-embed-fb-admin.php:532
312
- msgid "Number of Photos"
313
- msgstr "Número de Imágenes"
314
-
315
- #: lib/class-wp-embed-fb-admin.php:534
316
- msgid "Events"
317
- msgstr "Eventos"
318
-
319
- #: lib/class-wp-embed-fb-admin.php:535
320
- msgid "Use WP time to calculate the date"
321
- msgstr "Usa el tiempo de WP para calcular la fecha"
322
-
323
- #: lib/class-wp-embed-fb-admin.php:536 lib/class-wp-embed-fb-admin.php:549
324
- msgid "Time format"
325
- msgstr "Formato de fecha"
326
-
327
- #: lib/class-wp-embed-fb-admin.php:537 lib/class-wp-embed-fb-admin.php:550
328
- msgid "examples"
329
- msgstr "ejemplos"
330
-
331
- #: lib/class-wp-embed-fb-admin.php:539
332
- msgid "Pages"
333
- msgstr "Páginas"
334
-
335
- #: lib/class-wp-embed-fb-admin.php:540 lib/class-wp-embed-fb-admin.php:545
336
- #: lib/class-wp-embed-fb-admin.php:548 lib/class-wp-embed-fb-admin.php:555
337
- msgid "Use by default on \"Auto Embeds\""
338
- msgstr "Utilizar por defecto en \"Auto incrustados\""
339
-
340
- #: lib/class-wp-embed-fb-admin.php:541
341
- msgid "Show like button"
342
- msgstr "Mostrar botón \"Me gusta\""
343
-
344
- #: lib/class-wp-embed-fb-admin.php:542
345
- msgid "Number of posts"
346
- msgstr "Número de publicaciones"
347
-
348
- #: lib/class-wp-embed-fb-admin.php:544
349
- msgid "Photos"
350
- msgstr "Fotos"
351
-
352
- #: lib/class-wp-embed-fb-admin.php:547
353
- msgid "Posts"
354
- msgstr "Publicaciones"
355
-
356
- #: lib/class-wp-embed-fb-admin.php:554
357
- msgid "Videos"
358
- msgstr "Vídeos"
359
-
360
- #: lib/class-wp-embed-fb-admin.php:556
361
- msgid "Force 16:9 ratio"
362
- msgstr "Fuerza de relación 16:9"
363
-
364
- #: lib/class-wp-embed-fb-admin.php:558
365
- msgid "Profiles"
366
- msgstr "Perfiles"
367
-
368
- #: lib/class-wp-embed-fb-admin.php:559
369
- msgid "Show follow button"
370
- msgstr "Botón de seguir"
371
-
372
- #: lib/class-wp-embed-fb-admin.php:564
373
- msgid ""
374
- "Custom embeds can be triggered using the [facebook url] or [embed] "
375
- "shortcodes also by activating \"Auto Embeds\" on Magic Embeds section."
376
- msgstr ""
377
- "Los Incrustados personalizados pueden activados utilizado los shortcodes "
378
- "[facebook url] o [embed] también al activar \"Auto Incrustados\" en la "
379
- "sección Incrustados Mágicos."
380
-
381
- #: lib/class-wp-embed-fb-admin.php:571
382
- msgid ""
383
- "<a href=\"%s\" title=\"WP Embed Facebook Shortcode\" target=\"_blank\">Read "
384
- "More</a>"
385
- msgstr ""
386
- "<a href=\"%s\" title=\"WP Embed Facebook Shortcode\" target=\"_blank\">Leer "
387
- "más</a>"
388
-
389
- #: lib/class-wp-embed-fb-admin.php:578 lib/class-wp-embed-fb-admin.php:612
390
- msgid "By default you can only embed public pages, videos, photos and posts."
391
- msgstr ""
392
- "Por default sólo puede incrustar páginas, videos, fotos y publicaciones "
393
- "públicas."
394
-
395
- #: lib/class-wp-embed-fb-admin.php:579 lib/class-wp-embed-fb-admin.php:613
396
- msgid ""
397
- "To embed albums, events, profiles and video as HTML5 you will need to setup "
398
- "a Facebook App on Magic Embeds section"
399
- msgstr ""
400
- "Para incrustar álbumes, eventos, perfiles y vídeo en HTML5, necesitará "
401
- "configurar una App Facebook en la sección de incrustados mágicos"
402
-
403
- #: lib/class-wp-embed-fb-admin.php:592
404
- msgid "Lightbox Options"
405
- msgstr "Opciones de Lightbox"
406
-
407
- #: lib/class-wp-embed-fb-admin.php:593
408
- msgid "Show Image Number Label"
409
- msgstr "Etiqueta de número de imagen"
410
-
411
- #: lib/class-wp-embed-fb-admin.php:594
412
- msgid "Album Label"
413
- msgstr "Etiqueta del album"
414
-
415
- #: lib/class-wp-embed-fb-admin.php:595
416
- msgid "Fade Duration"
417
- msgstr "Duración del esfumado"
418
-
419
- #: lib/class-wp-embed-fb-admin.php:596
420
- msgid "Resize Duration"
421
- msgstr "Duración del cambio de tamaño"
422
-
423
- #: lib/class-wp-embed-fb-admin.php:597
424
- msgid "Position From Top"
425
- msgstr "Posición desde arriba"
426
-
427
- #: lib/class-wp-embed-fb-admin.php:598
428
- msgid "Max Height"
429
- msgstr "Altura máxima"
430
-
431
- #: lib/class-wp-embed-fb-admin.php:599
432
- msgid "Max Width"
433
- msgstr "Anchura máxima"
434
-
435
- #: lib/class-wp-embed-fb-admin.php:600
436
- msgid "Always Show Nav On TouchDevices"
437
- msgstr "Siempre mostrar nav. en dispositivos táctiles"
438
-
439
- #: lib/class-wp-embed-fb-admin.php:601
440
- msgid "Fit Images In Viewport"
441
- msgstr "Escalar imágenes a la ventana"
442
-
443
- #: lib/class-wp-embed-fb-admin.php:602
444
- msgid "Disable Scrolling"
445
- msgstr "Desactivar desplazamiento"
446
-
447
- #: lib/class-wp-embed-fb-admin.php:603
448
- msgid "Loop Through Album"
449
- msgstr "Bucle por el álbum"
450
-
451
- #: lib/class-wp-embed-fb-admin.php:604
452
- msgid "Use this lightbox on the [gallery] shortcode"
453
- msgstr "Utilice este Lightbox en el shortcode [gallery]"
454
-
455
- #: lib/class-wp-embed-fb-admin.php:623
456
- msgid ""
457
- "Beware altering this options without the proper knowledge could make the "
458
- "world disappear."
459
- msgstr ""
460
-
461
- #: lib/class-wp-embed-fb-admin.php:626
462
- msgid "Enqueue styles and scripts"
463
- msgstr "Enqueue estilos y scripts"
464
-
465
- #: lib/class-wp-embed-fb-admin.php:627
466
- msgid "Only when there is an embed present"
467
- msgstr "Sólo cuando hay un incrustado presente"
468
-
469
- #: lib/class-wp-embed-fb-admin.php:628
470
- msgid "Use permalinks on social plugins urls"
471
- msgstr ""
472
-
473
- #: lib/class-wp-embed-fb-admin.php:629
474
- msgid "Facebook SDK"
475
- msgstr "SDK de Facebook"
476
-
477
- #: lib/class-wp-embed-fb-admin.php:630
478
- msgid "Template Styles"
479
- msgstr "Estilos de la plantilla"
480
-
481
- #: lib/class-wp-embed-fb-admin.php:631
482
- msgid "Adaptive social plugins script"
483
- msgstr "Script pasa social plugins adaptivos"
484
-
485
- #: lib/class-wp-embed-fb-admin.php:634
486
- msgid "Enqueue script"
487
- msgstr "Registrar el script del plugin"
488
-
489
- #: lib/class-wp-embed-fb-admin.php:635
490
- msgid "Attribute"
491
- msgstr "Atributo"
492
-
493
- #: lib/class-wp-embed-fb-admin.php:637
494
- msgid "Other Options"
495
- msgstr "Otras Opciones"
496
-
497
- #: lib/class-wp-embed-fb-admin.php:638
498
- msgid "Add fb-root on top of content"
499
- msgstr "Añadir fb-root en la parte superior contenido"
500
-
501
- #: lib/class-wp-embed-fb-admin.php:639
502
- msgid "Force Facebook SDK script on all site"
503
- msgstr "Forzar el script de Facebook SDK en todo sitio"
504
-
505
- #: lib/class-wp-embed-fb-admin.php:640
506
- msgid "Force app token"
507
- msgstr "Forzar el token de la app"
508
-
509
- #: lib/class-wp-embed-fb-admin.php:660
510
- msgid "Save all settings"
511
- msgstr "Guardar todos los ajustes"
512
-
513
- #: lib/class-wp-embed-fb-admin.php:665
514
- msgid "Restore default values?"
515
- msgstr "¿ Restaurar valores predeterminados ?"
516
-
517
- #: lib/class-wp-embed-fb-admin.php:668
518
- msgid "Restore defaults"
519
- msgstr "Restaurar valores predeterminados"
520
-
521
- #: lib/class-wp-embed-fb-admin.php:676
522
- msgid "Premium Extension Available"
523
- msgstr "Extensión Premium disponible"
524
-
525
- #: lib/class-wp-embed-fb-admin.php:680
526
- msgid "Shortcodes for embedding a full event or page."
527
- msgstr "Shortcodes para incrustar un evento o una página."
528
-
529
- #: lib/class-wp-embed-fb-admin.php:682
530
- msgid "Elegant template for custom embeds"
531
- msgstr "Plantilla Elegant para incrustados personalizados"
532
-
533
- #: lib/class-wp-embed-fb-admin.php:684
534
- msgid "Albums with more that 100 photos."
535
- msgstr "Álbumes con más 100 fotos."
536
-
537
- #: lib/class-wp-embed-fb-admin.php:686
538
- msgid "One Year Premium Support"
539
- msgstr "Soporte Premium por un año"
540
-
541
- #: lib/class-wp-embed-fb-admin.php:690
542
- msgid "Check it out"
543
- msgstr "Échale un vistazo!"
544
-
545
- #: lib/class-wp-embed-fb-admin.php:694
546
- msgid "Plus new features cooking"
547
- msgstr "Más novedades un la cocina"
548
-
549
- #: lib/class-wp-embed-fb-admin.php:697
550
- msgid ""
551
- "Embed private data, shortcode creator, widgets, special templates for albums "
552
- "and pages"
553
- msgstr ""
554
- "Incrusta datos privados, creador de shortcodes, widgets, plantillas "
555
- "especiales para álbumes y páginas"
556
-
557
- #: lib/class-wp-embed-fb-admin.php:702
558
- msgid "This free plugin has taken thousands of hours to maintain and develop"
559
- msgstr ""
560
- "Este plugin gratuito ha costado miles de horas en mantener y desarrollar"
561
-
562
- #: lib/class-wp-embed-fb-admin.php:707
563
- msgid "Rate it"
564
- msgstr "Valóralo ahora"
565
-
566
- #: lib/class-wp-embed-fb-admin.php:715
567
- msgid "Donate"
568
- msgstr "Dona"
569
-
570
- #: lib/class-wp-embed-fb-admin.php:720
571
- msgid "More information"
572
- msgstr "Más información"
573
-
574
- #: lib/class-wp-embed-fb.php:56
575
- msgid "This is not a valid facebook url"
576
- msgstr "Esto no es una url válida de facebook"
577
-
578
- #: lib/class-wp-embed-fb.php:71
579
- msgid ""
580
- "You are using the [facebook] shortcode wrong. See examples <a title="
581
- "\"Examples\" target=\"_blank\" href=\"%s\" >here</a>."
582
- msgstr ""
583
- "Usas el shortcode [facebook] mal. Ver ejemplos <a title=\"Examples\" target="
584
- "\"_blank\" href=\"%s\">aquí</a>."
585
-
586
- #: lib/class-wp-embed-fb.php:188
587
- msgid ""
588
- "Error: Try embedding this post as a social plugin (only visible to admins)"
589
- msgstr ""
590
- "Error: Trata de incrustar este post como un plugin social (visible sólo para "
591
- "administradores)"
592
-
593
- #: lib/class-wp-embed-fb.php:191 lib/class-wp-embed-fb.php:230
594
- msgid "Code"
595
- msgstr "Código"
596
-
597
- #: lib/class-wp-embed-fb.php:193 lib/class-wp-embed-fb.php:232
598
- #: lib/class-wp-embed-fb.php:430
599
- msgid "Error"
600
- msgstr "Error"
601
-
602
- #: lib/class-wp-embed-fb.php:437
603
- msgid ""
604
- "<small>To embed this type of content you need to setup a facebook app on <a "
605
- "href=\"%s\" title=\"WP Embed Facebook Settings\">settings</a></small>"
606
- msgstr ""
607
- "<small>Para incrustar este tipo de contenido necesita configurar una "
608
- "aplicación de Facebook en <a href=\"%s\" title=\"WP Embed Facebook Settings"
609
- "\">configuración</a></small>"
610
-
611
- #: templates/classic/com-page.php:20 templates/classic/page.php:34
612
- #: templates/classic/post.php:21 templates/default/com-page.php:20
613
- #: templates/default/page.php:34 templates/default/post.php:21
614
- msgid "%d people like this."
615
- msgstr "a %d les gusta esto."
616
-
617
- #: templates/classic/com-page.php:26 templates/classic/com-page.php:27
618
- #: templates/classic/page.php:24 templates/classic/page.php:25
619
- #: templates/default/com-page.php:26 templates/default/com-page.php:27
620
- #: templates/default/page.php:24 templates/default/page.php:25
621
- msgid "Web Site"
622
- msgstr "Sitio Web"
623
-
624
- #: templates/classic/event.php:27 templates/classic/event.php:30
625
- #: templates/default/event.php:27 templates/default/event.php:30
626
- msgid "@ "
627
- msgstr "en: "
628
-
629
- #: templates/classic/event.php:34 templates/default/event.php:34
630
- msgid "Creator: "
631
- msgstr "Creador: "
632
-
633
- #: templates/classic/single-post.php:125 templates/default/single-post.php:125
634
- msgid "likes"
635
- msgstr "me gusta"
636
-
637
- #: templates/classic/single-post.php:128 templates/default/single-post.php:128
638
- msgid "comments"
639
- msgstr "comentarios"
640
-
641
- #: templates/classic/single-post.php:131 templates/default/single-post.php:131
642
- msgid "shares"
643
- msgstr "comparticiones"
644
-
645
- #. Author URI of the plugin/theme
646
- msgid "http://www.wpembedfb.com"
647
- msgstr "http://www.wpembedfb.com"
648
-
649
- #. Description of the plugin/theme
650
- #, fuzzy
651
- msgid ""
652
- "Embed any public Facebook video, photo, album, event, page, comment, "
653
- "profile, or post. Add Facebook comments to all your site, insert Facebook "
654
- "social plugins (like, save, send, share, follow, quote, comments) anywhere "
655
- "on your site. View the <a href=\"http://www.wpembedfb.com/demo-site/\" title="
656
- "\"plugin website\" target=\"_blank\">demo site</a>."
657
- msgstr ""
658
- "Incrusta un post, video, foto, álbum, evento, página, comentario o perfil "
659
- "público. Agrega comentarios de Facebook a todo tu sitio, inserta plugins "
660
- "sociales (me gusta, guardar, enviar, compartir, seguir, cita, comentarios) "
661
- "en cualquier lugar de su sitio. Ver los <a href=\"http://www.wpembedfb.com/"
662
- "demo-site/\" title=\"plugin website\" target=\"_blank\">ejemplos</a>."
663
-
664
- #. Author of the plugin/theme
665
- msgid "Miguel Sirvent"
666
- msgstr "Miguel Sirvent"
667
-
668
- #~ msgid "Download this video"
669
- #~ msgstr "Descargar este video"
670
-
671
- #~ msgid "%sShow download option <br> under video"
672
- #~ msgstr "%sMostrar opción para descargar <br> debajo del video"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lang/wp-embed-facebook.pot DELETED
@@ -1,618 +0,0 @@
1
- # Copyright (C) 2017 Miguel Sirvent
2
- # This file is distributed under the same license as the WP Embed Facebook package.
3
- msgid ""
4
- msgstr ""
5
- "Project-Id-Version: WP Embed Facebook 2.2.2\n"
6
- "Report-Msgid-Bugs-To: "
7
- "https://wordpress.org/support/plugin/wp-embed-facebook\n"
8
- "POT-Creation-Date: 2016-10-06 11:26-0500\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=utf-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
13
- "Last-Translator: Miguel Sirvent <miguel@sigami.net>\n"
14
- "Language-Team: Miguel Sirvent <miguel@sigami.net>\n"
15
- "X-Generator: grunt-wp-i18n 0.5.4\n"
16
- "X-Poedit-KeywordsList: "
17
- "__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_"
18
- "attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
19
- "Language: en\n"
20
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
21
- "X-Poedit-Country: United States\n"
22
- "X-Poedit-SourceCharset: UTF-8\n"
23
- "X-Poedit-Basepath: ..\n"
24
- "X-Poedit-SearchPath-0: .\n"
25
- "X-Poedit-Bookmarks: \n"
26
- "X-Textdomain-Support: yes\n"
27
- "X-Poedit-SearchPathExcluded-0: *.js\n"
28
- "X-Poedit-Wpheader: wp-embed-facebook.php\n"
29
-
30
- #: lib/class-wef-magic-embeds.php:123
31
- msgid "Shortcode used:"
32
- msgstr ""
33
-
34
- #: lib/class-wef-magic-embeds.php:128
35
- msgid "Final code:"
36
- msgstr ""
37
-
38
- #: lib/class-wef-magic-embeds.php:133
39
- msgid "More information:"
40
- msgstr ""
41
-
42
- #: lib/class-wef-social-plugins.php:504
43
- msgid "Invalid Facebook plugin type use it like this: [fb_plugin like]"
44
- msgstr ""
45
-
46
- #. Plugin Name of the plugin/theme
47
- msgid "WP Embed Facebook"
48
- msgstr ""
49
-
50
- #: lib/class-wef-widget.php:15
51
- msgid "Shortcode widget"
52
- msgstr ""
53
-
54
- #: lib/class-wef-widget.php:50
55
- msgid "Title:"
56
- msgstr ""
57
-
58
- #: lib/class-wef-widget.php:54
59
- msgid "Shortcode:"
60
- msgstr ""
61
-
62
- #: lib/class-wp-embed-fb-admin.php:28
63
- msgid ""
64
- "To enable comment moderation and embed albums, events, profiles and video "
65
- "as HTML5 setup a facebook app on <a id=\"wef_settings_link\" "
66
- "href=\"%s\">settings</a>"
67
- msgstr ""
68
-
69
- #: lib/class-wp-embed-fb-admin.php:138
70
- msgid "Settings"
71
- msgstr ""
72
-
73
- #: lib/class-wp-embed-fb-admin.php:345
74
- msgid "Magic Embeds"
75
- msgstr ""
76
-
77
- #: lib/class-wp-embed-fb-admin.php:346
78
- msgid "Social Plugins"
79
- msgstr ""
80
-
81
- #: lib/class-wp-embed-fb-admin.php:347
82
- msgid "Custom Embeds"
83
- msgstr ""
84
-
85
- #: lib/class-wp-embed-fb-admin.php:348 lib/class-wp-embed-fb-admin.php:633
86
- msgid "Lightbox"
87
- msgstr ""
88
-
89
- #: lib/class-wp-embed-fb-admin.php:349
90
- msgid "Advanced"
91
- msgstr ""
92
-
93
- #: lib/class-wp-embed-fb-admin.php:365
94
- msgid ""
95
- "Auto embeds understand the url you are entering and return a social plugin "
96
- "or a custom embed. <br>They can be activated by <a href=\"%s\" "
97
- "title=\"WordPress Embeds\" target=\"_blank\">pasting the url on the "
98
- "editor</a> or by the [facebook url ] <a href=\"%s\" title=\"[facebook] "
99
- "Shortcode attributes and examples\" target=\"_blank\">shortcode</a>."
100
- msgstr ""
101
-
102
- #: lib/class-wp-embed-fb-admin.php:366
103
- msgid "Auto Embeds"
104
- msgstr ""
105
-
106
- #: lib/class-wp-embed-fb-admin.php:367
107
- msgid "Auto embed url's on editor "
108
- msgstr ""
109
-
110
- #: lib/class-wp-embed-fb-admin.php:368
111
- msgid "Maximum width in pixels"
112
- msgstr ""
113
-
114
- #: lib/class-wp-embed-fb-admin.php:369
115
- msgid "Embed video as post"
116
- msgstr ""
117
-
118
- #: lib/class-wp-embed-fb-admin.php:373
119
- msgid ""
120
- "The quote plugin lets people select text on your page and add it to their "
121
- "share.<br><a href=\"%s\" target=\"_blank\" title=\"WP Embed "
122
- "Facebook\">Demo</a>"
123
- msgstr ""
124
-
125
- #: lib/class-wp-embed-fb-admin.php:373
126
- msgid "Quote Plugin"
127
- msgstr ""
128
-
129
- #: lib/class-wp-embed-fb-admin.php:374 lib/class-wp-embed-fb-admin.php:379
130
- msgid "Active"
131
- msgstr ""
132
-
133
- #: lib/class-wp-embed-fb-admin.php:375 lib/class-wp-embed-fb-admin.php:380
134
- msgid "Post types"
135
- msgstr ""
136
-
137
- #: lib/class-wp-embed-fb-admin.php:376 lib/class-wp-embed-fb-admin.php:381
138
- msgid "Post types separated by commas i.e. post,page,attachment"
139
- msgstr ""
140
-
141
- #: lib/class-wp-embed-fb-admin.php:378
142
- msgid "Comments"
143
- msgstr ""
144
-
145
- #: lib/class-wp-embed-fb-admin.php:382
146
- msgid "Sync comment count"
147
- msgstr ""
148
-
149
- #: lib/class-wp-embed-fb-admin.php:385
150
- msgid "Add open graph meta"
151
- msgstr ""
152
-
153
- #: lib/class-wp-embed-fb-admin.php:386
154
- msgid "Needed to moderate comments"
155
- msgstr ""
156
-
157
- #: lib/class-wp-embed-fb-admin.php:386
158
- msgid ""
159
- "Disable this if you already have another plugin adding <a "
160
- "title=\"Moderation Setup Instructions\" target=\"_blank\" href=\"%s\">the "
161
- "fb:app_id meta</a>"
162
- msgstr ""
163
-
164
- #: lib/class-wp-embed-fb-admin.php:387
165
- msgid "To enable comments moderation setup your App ID"
166
- msgstr ""
167
-
168
- #: lib/class-wp-embed-fb-admin.php:390
169
- msgid ""
170
- "If you cant see the \"Moderate comment\" link above each comment you will "
171
- "need to <a title=\"Sharing Debugger\" target=\"_blank\" href=\"%s\">scrape "
172
- "the url</a>"
173
- msgstr ""
174
-
175
- #: lib/class-wp-embed-fb-admin.php:394
176
- msgid "Notes:"
177
- msgstr ""
178
-
179
- #: lib/class-wp-embed-fb-admin.php:396
180
- msgid "Facebook settings"
181
- msgstr ""
182
-
183
- #: lib/class-wp-embed-fb-admin.php:397
184
- msgid "Social Plugins Language"
185
- msgstr ""
186
-
187
- #: lib/class-wp-embed-fb-admin.php:400
188
- msgid ""
189
- "Creating a Facebook app is easy view the <a href=\"%s\" target=\"_blank\" "
190
- "title=\"WP Embed FB documentation\">step by step guide</a> or view <a "
191
- "href=\"%s\" target=\"_blank\" title=\"Facebook Apps\">your apps</a>."
192
- msgstr ""
193
-
194
- #: lib/class-wp-embed-fb-admin.php:407
195
- msgid "App ID"
196
- msgstr ""
197
-
198
- #: lib/class-wp-embed-fb-admin.php:409
199
- msgid "App Secret"
200
- msgstr ""
201
-
202
- #: lib/class-wp-embed-fb-admin.php:421
203
- msgid ""
204
- "<a title=\"Facebook Social Plugins\" href=\"%s\" rel=\"nofollow\" "
205
- "target=\"_blank\">Social plugins</a> are pieces of code that Facebook "
206
- "developers created for us mortals."
207
- msgstr ""
208
-
209
- #: lib/class-wp-embed-fb-admin.php:423 lib/class-wp-embed-fb-admin.php:566
210
- msgid "Example:"
211
- msgstr ""
212
-
213
- #: lib/class-wp-embed-fb-admin.php:425
214
- msgid "Embed a like button for the curent page:"
215
- msgstr ""
216
-
217
- #: lib/class-wp-embed-fb-admin.php:428
218
- msgid "add debug=1 to debug the result."
219
- msgstr ""
220
-
221
- #: lib/class-wp-embed-fb-admin.php:435
222
- msgid "Page plugin"
223
- msgstr ""
224
-
225
- #: lib/class-wp-embed-fb-admin.php:442
226
- msgid "Tabs separated by commas i.e. timeline,events,messages"
227
- msgstr ""
228
-
229
- #: lib/class-wp-embed-fb-admin.php:449
230
- msgid "Post plugin"
231
- msgstr ""
232
-
233
- #: lib/class-wp-embed-fb-admin.php:456
234
- msgid "Video"
235
- msgstr ""
236
-
237
- #: lib/class-wp-embed-fb-admin.php:463
238
- msgid "Single comment"
239
- msgstr ""
240
-
241
- #: lib/class-wp-embed-fb-admin.php:467
242
- msgid "Activate them on all your posts on the \"Magic embeds\" section"
243
- msgstr ""
244
-
245
- #: lib/class-wp-embed-fb-admin.php:467
246
- msgid "Comments plugin"
247
- msgstr ""
248
-
249
- #: lib/class-wp-embed-fb-admin.php:474
250
- msgid "Activate it on all your posts on the \"Magic embeds\" section"
251
- msgstr ""
252
-
253
- #: lib/class-wp-embed-fb-admin.php:474
254
- msgid "Quote plugin"
255
- msgstr ""
256
-
257
- #: lib/class-wp-embed-fb-admin.php:477
258
- msgid "Save button"
259
- msgstr ""
260
-
261
- #: lib/class-wp-embed-fb-admin.php:480
262
- msgid "Like button"
263
- msgstr ""
264
-
265
- #: lib/class-wp-embed-fb-admin.php:489
266
- msgid "Send button"
267
- msgstr ""
268
-
269
- #: lib/class-wp-embed-fb-admin.php:493
270
- msgid "Share button"
271
- msgstr ""
272
-
273
- #: lib/class-wp-embed-fb-admin.php:497
274
- msgid "Follow button"
275
- msgstr ""
276
-
277
- #: lib/class-wp-embed-fb-admin.php:507
278
- msgid "Adaptive view"
279
- msgstr ""
280
-
281
- #: lib/class-wp-embed-fb-admin.php:519
282
- msgid "General"
283
- msgstr ""
284
-
285
- #: lib/class-wp-embed-fb-admin.php:531
286
- msgid "Albums"
287
- msgstr ""
288
-
289
- #: lib/class-wp-embed-fb-admin.php:532
290
- msgid "Number of Photos"
291
- msgstr ""
292
-
293
- #: lib/class-wp-embed-fb-admin.php:534
294
- msgid "Events"
295
- msgstr ""
296
-
297
- #: lib/class-wp-embed-fb-admin.php:535
298
- msgid "Use WP time to calculate the date"
299
- msgstr ""
300
-
301
- #: lib/class-wp-embed-fb-admin.php:536 lib/class-wp-embed-fb-admin.php:549
302
- msgid "Time format"
303
- msgstr ""
304
-
305
- #: lib/class-wp-embed-fb-admin.php:537 lib/class-wp-embed-fb-admin.php:550
306
- msgid "examples"
307
- msgstr ""
308
-
309
- #: lib/class-wp-embed-fb-admin.php:539
310
- msgid "Pages"
311
- msgstr ""
312
-
313
- #: lib/class-wp-embed-fb-admin.php:540 lib/class-wp-embed-fb-admin.php:545
314
- #: lib/class-wp-embed-fb-admin.php:548 lib/class-wp-embed-fb-admin.php:555
315
- msgid "Use by default on \"Auto Embeds\""
316
- msgstr ""
317
-
318
- #: lib/class-wp-embed-fb-admin.php:541
319
- msgid "Show like button"
320
- msgstr ""
321
-
322
- #: lib/class-wp-embed-fb-admin.php:542
323
- msgid "Number of posts"
324
- msgstr ""
325
-
326
- #: lib/class-wp-embed-fb-admin.php:544
327
- msgid "Photos"
328
- msgstr ""
329
-
330
- #: lib/class-wp-embed-fb-admin.php:547
331
- msgid "Posts"
332
- msgstr ""
333
-
334
- #: lib/class-wp-embed-fb-admin.php:554
335
- msgid "Videos"
336
- msgstr ""
337
-
338
- #: lib/class-wp-embed-fb-admin.php:556
339
- msgid "Force 16:9 ratio"
340
- msgstr ""
341
-
342
- #: lib/class-wp-embed-fb-admin.php:558
343
- msgid "Profiles"
344
- msgstr ""
345
-
346
- #: lib/class-wp-embed-fb-admin.php:559
347
- msgid "Show follow button"
348
- msgstr ""
349
-
350
- #: lib/class-wp-embed-fb-admin.php:564
351
- msgid ""
352
- "Custom embeds can be triggered using the [facebook url] or [embed] "
353
- "shortcodes also by activating \"Auto Embeds\" on Magic Embeds section."
354
- msgstr ""
355
-
356
- #: lib/class-wp-embed-fb-admin.php:571
357
- msgid ""
358
- "<a href=\"%s\" title=\"WP Embed Facebook Shortcode\" target=\"_blank\">Read "
359
- "More</a>"
360
- msgstr ""
361
-
362
- #: lib/class-wp-embed-fb-admin.php:578 lib/class-wp-embed-fb-admin.php:612
363
- msgid "By default you can only embed public pages, videos, photos and posts."
364
- msgstr ""
365
-
366
- #: lib/class-wp-embed-fb-admin.php:579 lib/class-wp-embed-fb-admin.php:613
367
- msgid ""
368
- "To embed albums, events, profiles and video as HTML5 you will need to setup "
369
- "a Facebook App on Magic Embeds section"
370
- msgstr ""
371
-
372
- #: lib/class-wp-embed-fb-admin.php:592
373
- msgid "Lightbox Options"
374
- msgstr ""
375
-
376
- #: lib/class-wp-embed-fb-admin.php:593
377
- msgid "Show Image Number Label"
378
- msgstr ""
379
-
380
- #: lib/class-wp-embed-fb-admin.php:594
381
- msgid "Album Label"
382
- msgstr ""
383
-
384
- #: lib/class-wp-embed-fb-admin.php:595
385
- msgid "Fade Duration"
386
- msgstr ""
387
-
388
- #: lib/class-wp-embed-fb-admin.php:596
389
- msgid "Resize Duration"
390
- msgstr ""
391
-
392
- #: lib/class-wp-embed-fb-admin.php:597
393
- msgid "Position From Top"
394
- msgstr ""
395
-
396
- #: lib/class-wp-embed-fb-admin.php:598
397
- msgid "Max Height"
398
- msgstr ""
399
-
400
- #: lib/class-wp-embed-fb-admin.php:599
401
- msgid "Max Width"
402
- msgstr ""
403
-
404
- #: lib/class-wp-embed-fb-admin.php:600
405
- msgid "Always Show Nav On TouchDevices"
406
- msgstr ""
407
-
408
- #: lib/class-wp-embed-fb-admin.php:601
409
- msgid "Fit Images In Viewport"
410
- msgstr ""
411
-
412
- #: lib/class-wp-embed-fb-admin.php:602
413
- msgid "Disable Scrolling"
414
- msgstr ""
415
-
416
- #: lib/class-wp-embed-fb-admin.php:603
417
- msgid "Loop Through Album"
418
- msgstr ""
419
-
420
- #: lib/class-wp-embed-fb-admin.php:604
421
- msgid "Use this lightbox on the [gallery] shortcode"
422
- msgstr ""
423
-
424
- #: lib/class-wp-embed-fb-admin.php:623
425
- msgid ""
426
- "Beware altering this options without the proper knowledge could make the "
427
- "world disappear."
428
- msgstr ""
429
-
430
- #: lib/class-wp-embed-fb-admin.php:626
431
- msgid "Enqueue styles and scripts"
432
- msgstr ""
433
-
434
- #: lib/class-wp-embed-fb-admin.php:627
435
- msgid "Only when there is an embed present"
436
- msgstr ""
437
-
438
- #: lib/class-wp-embed-fb-admin.php:628
439
- msgid "Use permalinks on social plugins urls"
440
- msgstr ""
441
-
442
- #: lib/class-wp-embed-fb-admin.php:629
443
- msgid "Facebook SDK"
444
- msgstr ""
445
-
446
- #: lib/class-wp-embed-fb-admin.php:630
447
- msgid "Template Styles"
448
- msgstr ""
449
-
450
- #: lib/class-wp-embed-fb-admin.php:631
451
- msgid "Adaptive social plugins script"
452
- msgstr ""
453
-
454
- #: lib/class-wp-embed-fb-admin.php:634
455
- msgid "Enqueue script"
456
- msgstr ""
457
-
458
- #: lib/class-wp-embed-fb-admin.php:635
459
- msgid "Attribute"
460
- msgstr ""
461
-
462
- #: lib/class-wp-embed-fb-admin.php:637
463
- msgid "Other Options"
464
- msgstr ""
465
-
466
- #: lib/class-wp-embed-fb-admin.php:638
467
- msgid "Add fb-root on top of content"
468
- msgstr ""
469
-
470
- #: lib/class-wp-embed-fb-admin.php:639
471
- msgid "Force Facebook SDK script on all site"
472
- msgstr ""
473
-
474
- #: lib/class-wp-embed-fb-admin.php:640
475
- msgid "Force app token"
476
- msgstr ""
477
-
478
- #: lib/class-wp-embed-fb-admin.php:660
479
- msgid "Save all settings"
480
- msgstr ""
481
-
482
- #: lib/class-wp-embed-fb-admin.php:665
483
- msgid "Restore default values?"
484
- msgstr ""
485
-
486
- #: lib/class-wp-embed-fb-admin.php:668
487
- msgid "Restore defaults"
488
- msgstr ""
489
-
490
- #: lib/class-wp-embed-fb-admin.php:676
491
- msgid "Premium Extension Available"
492
- msgstr ""
493
-
494
- #: lib/class-wp-embed-fb-admin.php:680
495
- msgid "Shortcodes for embedding a full event or page."
496
- msgstr ""
497
-
498
- #: lib/class-wp-embed-fb-admin.php:682
499
- msgid "Elegant template for custom embeds"
500
- msgstr ""
501
-
502
- #: lib/class-wp-embed-fb-admin.php:684
503
- msgid "Albums with more that 100 photos."
504
- msgstr ""
505
-
506
- #: lib/class-wp-embed-fb-admin.php:686
507
- msgid "One Year Premium Support"
508
- msgstr ""
509
-
510
- #: lib/class-wp-embed-fb-admin.php:690
511
- msgid "Check it out"
512
- msgstr ""
513
-
514
- #: lib/class-wp-embed-fb-admin.php:694
515
- msgid "Plus new features cooking"
516
- msgstr ""
517
-
518
- #: lib/class-wp-embed-fb-admin.php:697
519
- msgid ""
520
- "Embed private data, shortcode creator, widgets, special templates for "
521
- "albums and pages"
522
- msgstr ""
523
-
524
- #: lib/class-wp-embed-fb-admin.php:702
525
- msgid "This free plugin has taken thousands of hours to maintain and develop"
526
- msgstr ""
527
-
528
- #: lib/class-wp-embed-fb-admin.php:707
529
- msgid "Rate it"
530
- msgstr ""
531
-
532
- #: lib/class-wp-embed-fb-admin.php:715
533
- msgid "Donate"
534
- msgstr ""
535
-
536
- #: lib/class-wp-embed-fb-admin.php:720
537
- msgid "More information"
538
- msgstr ""
539
-
540
- #: lib/class-wp-embed-fb.php:56
541
- msgid "This is not a valid facebook url"
542
- msgstr ""
543
-
544
- #: lib/class-wp-embed-fb.php:71
545
- msgid ""
546
- "You are using the [facebook] shortcode wrong. See examples <a "
547
- "title=\"Examples\" target=\"_blank\" href=\"%s\" >here</a>."
548
- msgstr ""
549
-
550
- #: lib/class-wp-embed-fb.php:188
551
- msgid "Error: Try embedding this post as a social plugin (only visible to admins)"
552
- msgstr ""
553
-
554
- #: lib/class-wp-embed-fb.php:191 lib/class-wp-embed-fb.php:230
555
- msgid "Code"
556
- msgstr ""
557
-
558
- #: lib/class-wp-embed-fb.php:193 lib/class-wp-embed-fb.php:232
559
- #: lib/class-wp-embed-fb.php:430
560
- msgid "Error"
561
- msgstr ""
562
-
563
- #: lib/class-wp-embed-fb.php:437
564
- msgid ""
565
- "<small>To embed this type of content you need to setup a facebook app on <a "
566
- "href=\"%s\" title=\"WP Embed Facebook Settings\">settings</a></small>"
567
- msgstr ""
568
-
569
- #: templates/classic/com-page.php:20 templates/classic/page.php:34
570
- #: templates/classic/post.php:21 templates/default/com-page.php:20
571
- #: templates/default/page.php:34 templates/default/post.php:21
572
- msgid "%d people like this."
573
- msgstr ""
574
-
575
- #: templates/classic/com-page.php:26 templates/classic/com-page.php:27
576
- #: templates/classic/page.php:24 templates/classic/page.php:25
577
- #: templates/default/com-page.php:26 templates/default/com-page.php:27
578
- #: templates/default/page.php:24 templates/default/page.php:25
579
- msgid "Web Site"
580
- msgstr ""
581
-
582
- #: templates/classic/event.php:27 templates/classic/event.php:30
583
- #: templates/default/event.php:27 templates/default/event.php:30
584
- msgid "@ "
585
- msgstr ""
586
-
587
- #: templates/classic/event.php:34 templates/default/event.php:34
588
- msgid "Creator: "
589
- msgstr ""
590
-
591
- #: templates/classic/single-post.php:125 templates/default/single-post.php:125
592
- msgid "likes"
593
- msgstr ""
594
-
595
- #: templates/classic/single-post.php:128 templates/default/single-post.php:128
596
- msgid "comments"
597
- msgstr ""
598
-
599
- #: templates/classic/single-post.php:131 templates/default/single-post.php:131
600
- msgid "shares"
601
- msgstr ""
602
-
603
- #. Author URI of the plugin/theme
604
- msgid "http://www.wpembedfb.com"
605
- msgstr ""
606
-
607
- #. Description of the plugin/theme
608
- msgid ""
609
- "Embed any public Facebook video, photo, album, event, page, comment, "
610
- "profile, or post. Add Facebook comments to all your site, insert Facebook "
611
- "social plugins (like, save, send, share, follow, quote, comments) anywhere "
612
- "on your site. View the <a href=\"http://www.wpembedfb.com/demo-site/\" "
613
- "title=\"plugin website\" target=\"_blank\">demo site</a>."
614
- msgstr ""
615
-
616
- #. Author of the plugin/theme
617
- msgid "Miguel Sirvent"
618
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/admin/admin.css DELETED
@@ -1,54 +0,0 @@
1
-
2
- section {
3
- display:none;
4
- }
5
-
6
- section:first-child {
7
- display:block;
8
- }
9
-
10
- th{
11
- text-align: right;
12
- }
13
- th h3 {
14
- text-align: left;
15
- }
16
-
17
- td {
18
- padding-left: 10px;
19
- }
20
-
21
- .wef-content{
22
- width: 72%;
23
- float: left;
24
- /*border-right: 1px solid gray;*/
25
- }
26
- .wef-sidebar{
27
- width: 28%;
28
- float: left;
29
- text-align: center;
30
- /*border-left: 1px solid gray;*/
31
- /*padding: 0 10px;*/
32
- }
33
-
34
- @media (max-width: 870px) {
35
- .wef-sidebar, .wef-content {
36
- width: 100% !important;
37
- }
38
- }
39
- .wef-sidebar .button-red {
40
- background: #D2002C none repeat scroll 0 0;
41
- border-color: #AA0012;
42
- box-shadow: 0 1px 0 rgba(230, 14, 23, 0.5) inset, 0 1px 0 rgba(173, 173, 173, 0.15);
43
- color: #FFF;
44
- text-decoration: none;
45
- }
46
- .wef-sidebar .button-red:focus, .wef-sidebar .button-red:hover {
47
- background: #AB1F42 none repeat scroll 0 0;
48
- border-color: #AA0012;
49
- box-shadow: 0 1px 0 rgba(230, 14, 23, 0.5) inset;
50
- }
51
-
52
- h3 small {
53
- font-size: 0.7em;
54
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/admin/ic_image_settings.png DELETED
Binary file
lib/admin/ic_setting.png DELETED
Binary file
lib/base_facebook.php DELETED
@@ -1,1494 +0,0 @@
1
- <?php
2
- /**
3
- * Copyright 2011 Facebook, Inc.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License"); you may
6
- * not use this file except in compliance with the License. You may obtain
7
- * a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14
- * License for the specific language governing permissions and limitations
15
- * under the License.
16
- */
17
-
18
- if (!function_exists('curl_init')) {
19
- wp_die('Facebook needs the CURL PHP extension.');
20
- }
21
- if (!function_exists('json_decode')) {
22
- wp_die('Facebook needs the JSON PHP extension.');
23
- }
24
-
25
-
26
- /**
27
- * Thrown when an API call returns an exception.
28
- *
29
- * @author Naitik Shah <naitik@facebook.com>
30
- */
31
- class FacebookApiException extends Exception
32
- {
33
- /**
34
- * The result from the API server that represents the exception information.
35
- */
36
- protected $result;
37
-
38
- /**
39
- * Make a new API Exception with the given result.
40
- *
41
- * @param array $result The result from the API server
42
- */
43
- public function __construct($result)
44
- {
45
- $this->result = $result;
46
-
47
- $code = isset($result['error_code']) ? $result['error_code'] : 0;
48
-
49
- if (isset($result['error_description'])) {
50
- // OAuth 2.0 Draft 10 style
51
- $msg = $result['error_description'];
52
- } else if (isset($result['error']) && is_array($result['error'])) {
53
- // OAuth 2.0 Draft 00 style
54
- $msg = $result['error']['message'];
55
- } else if (isset($result['error_msg'])) {
56
- // Rest server style
57
- $msg = $result['error_msg'];
58
- } else {
59
- $msg = 'Unknown Error. Check getResult()';
60
- }
61
-
62
- parent::__construct($msg, $code);
63
- }
64
-
65
- /**
66
- * Return the associated result object returned by the API server.
67
- *
68
- * @return array The result from the API server
69
- */
70
- public function getResult()
71
- {
72
- return $this->result;
73
- }
74
-
75
- /**
76
- * Returns the associated type for the error. This will default to
77
- * 'Exception' when a type is not available.
78
- *
79
- * @return string
80
- */
81
- public function getType()
82
- {
83
- if (isset($this->result['error'])) {
84
- $error = $this->result['error'];
85
- if (is_string($error)) {
86
- // OAuth 2.0 Draft 10 style
87
- return $error;
88
- } else if (is_array($error)) {
89
- // OAuth 2.0 Draft 00 style
90
- if (isset($error['type'])) {
91
- return $error['type'];
92
- }
93
- }
94
- }
95
-
96
- return 'Exception';
97
- }
98
-
99
- /**
100
- * To make debugging easier.
101
- *
102
- * @return string The string representation of the error
103
- */
104
- public function __toString()
105
- {
106
- $str = $this->getType() . ': ';
107
- if ($this->code != 0) {
108
- $str .= $this->code . ': ';
109
- }
110
- return $str . $this->message;
111
- }
112
- }
113
-
114
- /**
115
- * Provides access to the Facebook Platform. This class provides
116
- * a majority of the functionality needed, but the class is abstract
117
- * because it is designed to be sub-classed. The subclass must
118
- * implement the four abstract methods listed at the bottom of
119
- * the file.
120
- *
121
- * @author Naitik Shah <naitik@facebook.com>
122
- */
123
- abstract class BaseFacebook
124
- {
125
- /**
126
- * Version.
127
- */
128
- const VERSION = '3.2.0';
129
-
130
- /**
131
- * Signed Request Algorithm.
132
- */
133
- const SIGNED_REQUEST_ALGORITHM = 'HMAC-SHA256';
134
-
135
- /**
136
- * Default options for curl.
137
- */
138
- public static $CURL_OPTS = array(
139
- CURLOPT_CONNECTTIMEOUT => 10,
140
- CURLOPT_RETURNTRANSFER => true,
141
- CURLOPT_TIMEOUT => 60,
142
- CURLOPT_USERAGENT => 'facebook-php-3.2',
143
- );
144
-
145
- /**
146
- * List of query parameters that get automatically dropped when rebuilding
147
- * the current URL.
148
- */
149
- protected static $DROP_QUERY_PARAMS = array(
150
- 'code',
151
- 'state',
152
- 'signed_request',
153
- );
154
-
155
- /**
156
- * Maps aliases to Facebook domains.
157
- */
158
- public static $DOMAIN_MAP = array(
159
- 'api' => 'https://api.facebook.com/',
160
- 'api_video' => 'https://api-video.facebook.com/',
161
- 'api_read' => 'https://api-read.facebook.com/',
162
- 'graph' => 'https://graph.facebook.com/',
163
- 'graph_video' => 'https://graph-video.facebook.com/',
164
- 'www' => 'https://www.facebook.com/',
165
- );
166
-
167
- /**
168
- * The Application ID.
169
- *
170
- * @var string
171
- */
172
- protected $appId;
173
-
174
- /**
175
- * The Application App Secret.
176
- *
177
- * @var string
178
- */
179
- protected $appSecret;
180
-
181
- /**
182
- * The ID of the Facebook user, or 0 if the user is logged out.
183
- *
184
- * @var integer
185
- */
186
- protected $user;
187
-
188
- /**
189
- * The data from the signed_request token.
190
- */
191
- protected $signedRequest;
192
-
193
- /**
194
- * A CSRF state variable to assist in the defense against CSRF attacks.
195
- */
196
- protected $state;
197
-
198
- /**
199
- * The OAuth access token received in exchange for a valid authorization
200
- * code. null means the access token has yet to be determined.
201
- *
202
- * @var string
203
- */
204
- protected $accessToken = null;
205
-
206
- /**
207
- * Indicates if the CURL based @ syntax for file uploads is enabled.
208
- *
209
- * @var boolean
210
- */
211
- protected $fileUploadSupport = false;
212
-
213
- /**
214
- * Indicates if we trust HTTP_X_FORWARDED_* headers.
215
- *
216
- * @var boolean
217
- */
218
- protected $trustForwarded = false;
219
-
220
- /**
221
- * Initialize a Facebook Application.
222
- *
223
- * The configuration:
224
- * - appId: the application ID
225
- * - secret: the application secret
226
- * - fileUpload: (optional) boolean indicating if file uploads are enabled
227
- *
228
- * @param array $config The application configuration
229
- */
230
- public function __construct($config)
231
- {
232
- $this->setAppId($config['appId']);
233
- $this->setAppSecret($config['secret']);
234
- if (isset($config['fileUpload'])) {
235
- $this->setFileUploadSupport($config['fileUpload']);
236
- }
237
- if (isset($config['trustForwarded']) && $config['trustForwarded']) {
238
- $this->trustForwarded = true;
239
- }
240
- $state = $this->getPersistentData('state');
241
- if (!empty($state)) {
242
- $this->state = $state;
243
- }
244
- }
245
-
246
- /**
247
- * Set the Application ID.
248
- *
249
- * @param string $appId The Application ID
250
- * @return BaseFacebook
251
- */
252
- public function setAppId($appId)
253
- {
254
- $this->appId = $appId;
255
- return $this;
256
- }
257
-
258
- /**
259
- * Get the Application ID.
260
- *
261
- * @return string the Application ID
262
- */
263
- public function getAppId()
264
- {
265
- return $this->appId;
266
- }
267
-
268
- /**
269
- * Set the App Secret.
270
- *
271
- * @param string $apiSecret The App Secret
272
- * @return BaseFacebook
273
- * @deprecated
274
- */
275
- public function setApiSecret($apiSecret)
276
- {
277
- $this->setAppSecret($apiSecret);
278
- return $this;
279
- }
280
-
281
- /**
282
- * Set the App Secret.
283
- *
284
- * @param string $appSecret The App Secret
285
- * @return BaseFacebook
286
- */
287
- public function setAppSecret($appSecret)
288
- {
289
- $this->appSecret = $appSecret;
290
- return $this;
291
- }
292
-
293
- /**
294
- * Get the App Secret.
295
- *
296
- * @return string the App Secret
297
- * @deprecated
298
- */
299
- public function getApiSecret()
300
- {
301
- return $this->getAppSecret();
302
- }
303
-
304
- /**
305
- * Get the App Secret.
306
- *
307
- * @return string the App Secret
308
- */
309
- public function getAppSecret()
310
- {
311
- return $this->appSecret;
312
- }
313
-
314
- /**
315
- * Set the file upload support status.
316
- *
317
- * @param boolean $fileUploadSupport The file upload support status.
318
- * @return BaseFacebook
319
- */
320
- public function setFileUploadSupport($fileUploadSupport)
321
- {
322
- $this->fileUploadSupport = $fileUploadSupport;
323
- return $this;
324
- }
325
-
326
- /**
327
- * Get the file upload support status.
328
- *
329
- * @return boolean true if and only if the server supports file upload.
330
- */
331
- public function getFileUploadSupport()
332
- {
333
- return $this->fileUploadSupport;
334
- }
335
-
336
- /**
337
- * DEPRECATED! Please use getFileUploadSupport instead.
338
- *
339
- * Get the file upload support status.
340
- *
341
- * @return boolean true if and only if the server supports file upload.
342
- */
343
- public function useFileUploadSupport()
344
- {
345
- return $this->getFileUploadSupport();
346
- }
347
-
348
- /**
349
- * Sets the access token for api calls. Use this if you get
350
- * your access token by other means and just want the SDK
351
- * to use it.
352
- *
353
- * @param string $access_token an access token.
354
- * @return BaseFacebook
355
- */
356
- public function setAccessToken($access_token)
357
- {
358
- $this->accessToken = $access_token;
359
- return $this;
360
- }
361
-
362
- /**
363
- * Extend an access token, while removing the short-lived token that might
364
- * have been generated via client-side flow. Thanks to http://bit.ly/b0Pt0H
365
- * for the workaround.
366
- */
367
- public function setExtendedAccessToken()
368
- {
369
- try {
370
- // need to circumvent json_decode by calling _oauthRequest
371
- // directly, since response isn't JSON format.
372
- $access_token_response = $this->_oauthRequest(
373
- $this->getUrl('graph', '/oauth/access_token'),
374
- $params = array(
375
- 'client_id' => $this->getAppId(),
376
- 'client_secret' => $this->getAppSecret(),
377
- 'grant_type' => 'fb_exchange_token',
378
- 'fb_exchange_token' => $this->getAccessToken(),
379
- )
380
- );
381
- } catch (FacebookApiException $e) {
382
- // most likely that user very recently revoked authorization.
383
- // In any event, we don't have an access token, so say so.
384
- return false;
385
- }
386
-
387
- if (empty($access_token_response)) {
388
- return false;
389
- }
390
-
391
- $response_params = array();
392
- parse_str($access_token_response, $response_params);
393
-
394
- if (!isset($response_params['access_token'])) {
395
- return false;
396
- }
397
-
398
- $this->destroySession();
399
-
400
- $this->setPersistentData(
401
- 'access_token', $response_params['access_token']
402
- );
403
-
404
- return $response_params['access_token'];
405
- }
406
-
407
- /**
408
- * Determines the access token that should be used for API calls.
409
- * The first time this is called, $this->accessToken is set equal
410
- * to either a valid user access token, or it's set to the application
411
- * access token if a valid user access token wasn't available. Subsequent
412
- * calls return whatever the first call returned.
413
- *
414
- * @return string The access token
415
- */
416
- public function getAccessToken()
417
- {
418
- if ($this->accessToken !== null) {
419
- // we've done this already and cached it. Just return.
420
- return $this->accessToken;
421
- }
422
-
423
- // first establish access token to be the application
424
- // access token, in case we navigate to the /oauth/access_token
425
- // endpoint, where SOME access token is required.
426
- $this->setAccessToken($this->getApplicationAccessToken());
427
- $user_access_token = $this->getUserAccessToken();
428
- if ($user_access_token) {
429
- $this->setAccessToken($user_access_token);
430
- }
431
-
432
- return $this->accessToken;
433
- }
434
-
435
- /**
436
- * Determines and returns the user access token, first using
437
- * the signed request if present, and then falling back on
438
- * the authorization code if present. The intent is to
439
- * return a valid user access token, or false if one is determined
440
- * to not be available.
441
- *
442
- * @return string A valid user access token, or false if one
443
- * could not be determined.
444
- */
445
- protected function getUserAccessToken()
446
- {
447
- // first, consider a signed request if it's supplied.
448
- // if there is a signed request, then it alone determines
449
- // the access token.
450
- $signed_request = $this->getSignedRequest();
451
- if ($signed_request) {
452
- // apps.facebook.com hands the access_token in the signed_request
453
- if (array_key_exists('oauth_token', $signed_request)) {
454
- $access_token = $signed_request['oauth_token'];
455
- $this->setPersistentData('access_token', $access_token);
456
- return $access_token;
457
- }
458
-
459
- // the JS SDK puts a code in with the redirect_uri of ''
460
- if (array_key_exists('code', $signed_request)) {
461
- $code = $signed_request['code'];
462
- $access_token = $this->getAccessTokenFromCode($code, '');
463
- if ($access_token) {
464
- $this->setPersistentData('code', $code);
465
- $this->setPersistentData('access_token', $access_token);
466
- return $access_token;
467
- }
468
- }
469
-
470
- // signed request states there's no access token, so anything
471
- // stored should be cleared.
472
- $this->clearAllPersistentData();
473
- return false; // respect the signed request's data, even
474
- // if there's an authorization code or something else
475
- }
476
-
477
- $code = $this->getCode();
478
- if ($code && $code != $this->getPersistentData('code')) {
479
- $access_token = $this->getAccessTokenFromCode($code);
480
- if ($access_token) {
481
- $this->setPersistentData('code', $code);
482
- $this->setPersistentData('access_token', $access_token);
483
- return $access_token;
484
- }
485
-
486
- // code was bogus, so everything based on it should be invalidated.
487
- $this->clearAllPersistentData();
488
- return false;
489
- }
490
-
491
- // as a fallback, just return whatever is in the persistent
492
- // store, knowing nothing explicit (signed request, authorization
493
- // code, etc.) was present to shadow it (or we saw a code in $_REQUEST,
494
- // but it's the same as what's in the persistent store)
495
- return $this->getPersistentData('access_token');
496
- }
497
-
498
- /**
499
- * Retrieve the signed request, either from a request parameter or,
500
- * if not present, from a cookie.
501
- *
502
- * @return string the signed request, if available, or null otherwise.
503
- */
504
- public function getSignedRequest()
505
- {
506
- if (!$this->signedRequest) {
507
- if (isset($_REQUEST['signed_request'])) {
508
- $this->signedRequest = $this->parseSignedRequest(
509
- $_REQUEST['signed_request']);
510
- } else if (isset($_COOKIE[$this->getSignedRequestCookieName()])) {
511
- $this->signedRequest = $this->parseSignedRequest(
512
- $_COOKIE[$this->getSignedRequestCookieName()]);
513
- }
514
- }
515
- return $this->signedRequest;
516
- }
517
-
518
- /**
519
- * Get the UID of the connected user, or 0
520
- * if the Facebook user is not connected.
521
- *
522
- * @return string the UID if available.
523
- */
524
- public function getUser()
525
- {
526
- if ($this->user !== null) {
527
- // we've already determined this and cached the value.
528
- return $this->user;
529
- }
530
-
531
- return $this->user = $this->getUserFromAvailableData();
532
- }
533
-
534
- /**
535
- * Determines the connected user by first examining any signed
536
- * requests, then considering an authorization code, and then
537
- * falling back to any persistent store storing the user.
538
- *
539
- * @return integer The id of the connected Facebook user,
540
- * or 0 if no such user exists.
541
- */
542
- protected function getUserFromAvailableData()
543
- {
544
- // if a signed request is supplied, then it solely determines
545
- // who the user is.
546
- $signed_request = $this->getSignedRequest();
547
- if ($signed_request) {
548
- if (array_key_exists('user_id', $signed_request)) {
549
- $user = $signed_request['user_id'];
550
- $this->setPersistentData('user_id', $signed_request['user_id']);
551
- return $user;
552
- }
553
-
554
- // if the signed request didn't present a user id, then invalidate
555
- // all entries in any persistent store.
556
- $this->clearAllPersistentData();
557
- return 0;
558
- }
559
-
560
- $user = $this->getPersistentData('user_id', $default = 0);
561
- $persisted_access_token = $this->getPersistentData('access_token');
562
-
563
- // use access_token to fetch user id if we have a user access_token, or if
564
- // the cached access token has changed.
565
- $access_token = $this->getAccessToken();
566
- if ($access_token &&
567
- $access_token != $this->getApplicationAccessToken() &&
568
- !($user && $persisted_access_token == $access_token)
569
- ) {
570
- $user = $this->getUserFromAccessToken();
571
- if ($user) {
572
- /** @noinspection PhpParamsInspection */
573
- $this->setPersistentData('user_id', $user);
574
- } else {
575
- $this->clearAllPersistentData();
576
- }
577
- }
578
-
579
- return $user;
580
- }
581
-
582
- /**
583
- * Get a Login URL for use with redirects. By default, full page redirect is
584
- * assumed. If you are using the generated URL with a window.open() call in
585
- * JavaScript, you can pass in display=popup as part of the $params.
586
- *
587
- * The parameters:
588
- * - redirect_uri: the url to go to after a successful login
589
- * - scope: comma separated list of requested extended perms
590
- *
591
- * @param array $params Provide custom parameters
592
- * @return string The URL for the login flow
593
- */
594
- public function getLoginUrl($params = array())
595
- {
596
- $this->establishCSRFTokenState();
597
- $currentUrl = $this->getCurrentUrl();
598
-
599
- // if 'scope' is passed as an array, convert to comma separated list
600
- $scopeParams = isset($params['scope']) ? $params['scope'] : null;
601
- if ($scopeParams && is_array($scopeParams)) {
602
- $params['scope'] = implode(',', $scopeParams);
603
- }
604
-
605
- return $this->getUrl(
606
- 'www',
607
- 'dialog/oauth',
608
- array_merge(array(
609
- 'client_id' => $this->getAppId(),
610
- 'redirect_uri' => $currentUrl, // possibly overwritten
611
- 'state' => $this->state),
612
- $params));
613
- }
614
-
615
- /**
616
- * Get a Logout URL suitable for use with redirects.
617
- *
618
- * The parameters:
619
- * - next: the url to go to after a successful logout
620
- *
621
- * @param array $params Provide custom parameters
622
- * @return string The URL for the logout flow
623
- */
624
- public function getLogoutUrl($params = array())
625
- {
626
- return $this->getUrl(
627
- 'www',
628
- 'logout.php',
629
- array_merge(array(
630
- 'next' => $this->getCurrentUrl(),
631
- 'access_token' => $this->getUserAccessToken(),
632
- ), $params)
633
- );
634
- }
635
-
636
- /**
637
- * Get a login status URL to fetch the status from Facebook.
638
- *
639
- * The parameters:
640
- * - ok_session: the URL to go to if a session is found
641
- * - no_session: the URL to go to if the user is not connected
642
- * - no_user: the URL to go to if the user is not signed into facebook
643
- *
644
- * @param array $params Provide custom parameters
645
- * @return string The URL for the logout flow
646
- */
647
- public function getLoginStatusUrl($params = array())
648
- {
649
- return $this->getUrl(
650
- 'www',
651
- 'extern/login_status.php',
652
- array_merge(array(
653
- 'api_key' => $this->getAppId(),
654
- 'no_session' => $this->getCurrentUrl(),
655
- 'no_user' => $this->getCurrentUrl(),
656
- 'ok_session' => $this->getCurrentUrl(),
657
- 'session_version' => 3,
658
- ), $params)
659
- );
660
- }
661
-
662
- /**
663
- * Make an API call.
664
- *
665
- * @return mixed The decoded response
666
- */
667
- public function api(/* polymorphic */)
668
- {
669
- $args = func_get_args();
670
- if (is_array($args[0])) {
671
- return $this->_restserver($args[0]);
672
- } else {
673
- return call_user_func_array(array($this, '_graph'), $args);
674
- }
675
- }
676
-
677
- /**
678
- * Constructs and returns the name of the cookie that
679
- * potentially houses the signed request for the app user.
680
- * The cookie is not set by the BaseFacebook class, but
681
- * it may be set by the JavaScript SDK.
682
- *
683
- * @return string the name of the cookie that would house
684
- * the signed request value.
685
- */
686
- protected function getSignedRequestCookieName()
687
- {
688
- return 'fbsr_' . $this->getAppId();
689
- }
690
-
691
- /**
692
- * Constructs and returns the name of the coookie that potentially contain
693
- * metadata. The cookie is not set by the BaseFacebook class, but it may be
694
- * set by the JavaScript SDK.
695
- *
696
- * @return string the name of the cookie that would house metadata.
697
- */
698
- protected function getMetadataCookieName()
699
- {
700
- return 'fbm_' . $this->getAppId();
701
- }
702
-
703
- /**
704
- * Get the authorization code from the query parameters, if it exists,
705
- * and otherwise return false to signal no authorization code was
706
- * discoverable.
707
- *
708
- * @return mixed The authorization code, or false if the authorization
709
- * code could not be determined.
710
- */
711
- protected function getCode()
712
- {
713
- if (isset($_REQUEST['code'])) {
714
- if ($this->state !== null &&
715
- isset($_REQUEST['state']) &&
716
- $this->state === $_REQUEST['state']
717
- ) {
718
-
719
- // CSRF state has done its job, so clear it
720
- $this->state = null;
721
- $this->clearPersistentData('state');
722
- return $_REQUEST['code'];
723
- } else {
724
- self::errorLog('CSRF state token does not match one provided.');
725
- return false;
726
- }
727
- }
728
-
729
- return false;
730
- }
731
-
732
- /**
733
- * Retrieves the UID with the understanding that
734
- * $this->accessToken has already been set and is
735
- * seemingly legitimate. It relies on Facebook's Graph API
736
- * to retrieve user information and then extract
737
- * the user ID.
738
- *
739
- * @return integer Returns the UID of the Facebook user, or 0
740
- * if the Facebook user could not be determined.
741
- */
742
- protected function getUserFromAccessToken()
743
- {
744
- try {
745
- $user_info = $this->api('/me');
746
- return $user_info['id'];
747
- } catch (FacebookApiException $e) {
748
- return 0;
749
- }
750
- }
751
-
752
- /**
753
- * Returns the access token that should be used for logged out
754
- * users when no authorization code is available.
755
- *
756
- * @return string The application access token, useful for gathering
757
- * public information about users and applications.
758
- */
759
- protected function getApplicationAccessToken()
760
- {
761
- return $this->appId . '|' . $this->appSecret;
762
- }
763
-
764
- /**
765
- * Lays down a CSRF state token for this process.
766
- *
767
- * @return void
768
- */
769
- protected function establishCSRFTokenState()
770
- {
771
- if ($this->state === null) {
772
- $this->state = md5(uniqid(mt_rand(), true));
773
- $this->setPersistentData('state', $this->state);
774
- }
775
- }
776
-
777
- /**
778
- * Retrieves an access token for the given authorization code
779
- * (previously generated from www.facebook.com on behalf of
780
- * a specific user). The authorization code is sent to graph.facebook.com
781
- * and a legitimate access token is generated provided the access token
782
- * and the user for which it was generated all match, and the user is
783
- * either logged in to Facebook or has granted an offline access permission.
784
- *
785
- * @param string $code An authorization code.
786
- * @param string $redirect_uri A redirect url.
787
- * @return mixed An access token exchanged for the authorization code, or
788
- * false if an access token could not be generated.
789
- */
790
- protected function getAccessTokenFromCode($code, $redirect_uri = null)
791
- {
792
- if (empty($code)) {
793
- return false;
794
- }
795
-
796
- if ($redirect_uri === null) {
797
- $redirect_uri = $this->getCurrentUrl();
798
- }
799
-
800
- try {
801
- // need to circumvent json_decode by calling _oauthRequest
802
- // directly, since response isn't JSON format.
803
- $access_token_response =
804
- $this->_oauthRequest(
805
- $this->getUrl('graph', '/oauth/access_token'),
806
- $params = array('client_id' => $this->getAppId(),
807
- 'client_secret' => $this->getAppSecret(),
808
- 'redirect_uri' => $redirect_uri,
809
- 'code' => $code));
810
- } catch (FacebookApiException $e) {
811
- // most likely that user very recently revoked authorization.
812
- // In any event, we don't have an access token, so say so.
813
- return false;
814
- }
815
-
816
- if (empty($access_token_response)) {
817
- return false;
818
- }
819
-
820
- $response_params = array();
821
- parse_str($access_token_response, $response_params);
822
- if (!isset($response_params['access_token'])) {
823
- return false;
824
- }
825
-
826
- return $response_params['access_token'];
827
- }
828
-
829
- /**
830
- * Invoke the old restserver.php endpoint.
831
- *
832
- * @param array $params Method call object
833
- *
834
- * @return mixed The decoded response object
835
- * @throws FacebookApiException
836
- */
837
- protected function _restserver($params)
838
- {
839
- // generic application level parameters
840
- $params['api_key'] = $this->getAppId();
841
- $params['format'] = 'json-strings';
842
-
843
- $result = json_decode($this->_oauthRequest(
844
- $this->getApiUrl($params['method']),
845
- $params
846
- ), true);
847
-
848
- // results are returned, errors are thrown
849
- if (is_array($result) && isset($result['error_code'])) {
850
- $this->throwAPIException($result);
851
- // @codeCoverageIgnoreStart
852
- }
853
- // @codeCoverageIgnoreEnd
854
-
855
- $method = strtolower($params['method']);
856
- if ($method === 'auth.expiresession' ||
857
- $method === 'auth.revokeauthorization'
858
- ) {
859
- $this->destroySession();
860
- }
861
-
862
- return $result;
863
- }
864
-
865
- /**
866
- * Return true if this is video post.
867
- *
868
- * @param string $path The path
869
- * @param string $method The http method (default 'GET')
870
- *
871
- * @return boolean true if this is video post
872
- */
873
- protected function isVideoPost($path, $method = 'GET')
874
- {
875
- if ($method == 'POST' && preg_match("/^(\/)(.+)(\/)(videos)$/", $path)) {
876
- return true;
877
- }
878
- return false;
879
- }
880
-
881
- /**
882
- * Invoke the Graph API.
883
- *
884
- * @param string $path The path (required)
885
- * @param string $method The http method (default 'GET')
886
- * @param array $params The query/post data
887
- *
888
- * @return mixed The decoded response object
889
- * @throws FacebookApiException
890
- */
891
- protected function _graph($path, $method = 'GET', $params = array())
892
- {
893
- if (is_array($method) && empty($params)) {
894
- $params = $method;
895
- $method = 'GET';
896
- }
897
- $params['method'] = $method; // method override as we always do a POST
898
-
899
- if ($this->isVideoPost($path, $method)) {
900
- $domainKey = 'graph_video';
901
- } else {
902
- $domainKey = 'graph';
903
- }
904
-
905
- $result = json_decode($this->_oauthRequest(
906
- $this->getUrl($domainKey, $path),
907
- $params
908
- ), true);
909
-
910
- // results are returned, errors are thrown
911
- if (is_array($result) && isset($result['error'])) {
912
- $this->throwAPIException($result);
913
- // @codeCoverageIgnoreStart
914
- }
915
- // @codeCoverageIgnoreEnd
916
-
917
- return $result;
918
- }
919
-
920
- /**
921
- * Make a OAuth Request.
922
- *
923
- * @param string $url The path (required)
924
- * @param array $params The query/post data
925
- *
926
- * @return string The decoded response object
927
- * @throws FacebookApiException
928
- */
929
- protected function _oauthRequest($url, $params)
930
- {
931
- if (!isset($params['access_token'])) {
932
- $params['access_token'] = $this->getAccessToken();
933
- }
934
-
935
- // json_encode all params values that are not strings
936
- foreach ($params as $key => $value) {
937
- if (!is_string($value)) {
938
- $params[$key] = json_encode($value);
939
- }
940
- }
941
-
942
- return $this->makeRequest($url, $params);
943
- }/** @noinspection PhpUndefinedClassInspection */
944
-
945
- /**
946
- * Makes an HTTP request. This method can be overridden by subclasses if
947
- * developers want to do fancier things or use something other than curl to
948
- * make the request.
949
- *
950
- * @param string $url The URL to make the request to
951
- * @param array $params The parameters to use for the POST body
952
- * @param CurlHandler $ch Initialized curl handle
953
- *
954
- * @return string The response text
955
- * @throws FacebookApiException
956
- */
957
- protected function makeRequest($url, $params, $ch = null)
958
- {
959
- if (!$ch) {
960
- $ch = curl_init();
961
- }
962
-
963
- $opts = self::$CURL_OPTS;
964
- if ($this->getFileUploadSupport()) {
965
- $opts[CURLOPT_POSTFIELDS] = $params;
966
- } else {
967
- $opts[CURLOPT_POSTFIELDS] = http_build_query($params, null, '&');
968
- }
969
- $opts[CURLOPT_URL] = $url;
970
-
971
- // disable the 'Expect: 100-continue' behaviour. This causes CURL to wait
972
- // for 2 seconds if the server does not support this header.
973
- if (isset($opts[CURLOPT_HTTPHEADER])) {
974
- $existing_headers = $opts[CURLOPT_HTTPHEADER];
975
- $existing_headers[] = 'Expect:';
976
- $opts[CURLOPT_HTTPHEADER] = $existing_headers;
977
- } else {
978
- $opts[CURLOPT_HTTPHEADER] = array('Expect:');
979
- }
980
- //no ssl verification xz3 modifications
981
- $opts[CURLOPT_SSL_VERIFYPEER] = false;
982
- //end modifications
983
- curl_setopt_array($ch, $opts);
984
- $result = curl_exec($ch);
985
-
986
- if (curl_errno($ch) == 60) { // CURLE_SSL_CACERT
987
- self::errorLog('Invalid or no certificate authority found, ' .
988
- 'using bundled information');
989
- curl_setopt($ch, CURLOPT_CAINFO,
990
- dirname(__FILE__) . '/fb_ca_chain_bundle.crt');
991
- $result = curl_exec($ch);
992
- }
993
-
994
- // With dual stacked DNS responses, it's possible for a server to
995
- // have IPv6 enabled but not have IPv6 connectivity. If this is
996
- // the case, curl will try IPv4 first and if that fails, then it will
997
- // fall back to IPv6 and the error EHOSTUNREACH is returned by the
998
- // operating system.
999
- if ($result === false && empty($opts[CURLOPT_IPRESOLVE])) {
1000
- $matches = array();
1001
- $regex = '/Failed to connect to ([^:].*): Network is unreachable/';
1002
- if (preg_match($regex, curl_error($ch), $matches)) {
1003
- if (strlen(@inet_pton($matches[1])) === 16) {
1004
- self::errorLog('Invalid IPv6 configuration on server, ' .
1005
- 'Please disable or get native IPv6 on your server.');
1006
- self::$CURL_OPTS[CURLOPT_IPRESOLVE] = CURL_IPRESOLVE_V4;
1007
- curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
1008
- $result = curl_exec($ch);
1009
- }
1010
- }
1011
- }
1012
-
1013
- if ($result === false) {
1014
- $e = new FacebookApiException(array(
1015
- 'error_code' => curl_errno($ch),
1016
- 'error' => array(
1017
- 'message' => curl_error($ch),
1018
- 'type' => 'CurlException',
1019
- ),
1020
- ));
1021
- curl_close($ch);
1022
- throw $e;
1023
- }
1024
- curl_close($ch);
1025
- return $result;
1026
- }
1027
-
1028
- /**
1029
- * Parses a signed_request and validates the signature.
1030
- *
1031
- * @param string $signed_request A signed token
1032
- * @return array The payload inside it or null if the sig is wrong
1033
- */
1034
- protected function parseSignedRequest($signed_request)
1035
- {
1036
- list($encoded_sig, $payload) = explode('.', $signed_request, 2);
1037
-
1038
- // decode the data
1039
- $sig = self::base64UrlDecode($encoded_sig);
1040
- $data = json_decode(self::base64UrlDecode($payload), true);
1041
-
1042
- if (strtoupper($data['algorithm']) !== self::SIGNED_REQUEST_ALGORITHM) {
1043
- self::errorLog(
1044
- 'Unknown algorithm. Expected ' . self::SIGNED_REQUEST_ALGORITHM);
1045
- return null;
1046
- }
1047
-
1048
- // check sig
1049
- $expected_sig = hash_hmac('sha256', $payload,
1050
- $this->getAppSecret(), $raw = true);
1051
- if ($sig !== $expected_sig) {
1052
- self::errorLog('Bad Signed JSON signature!');
1053
- return null;
1054
- }
1055
-
1056
- return $data;
1057
- }
1058
-
1059
- /**
1060
- * Makes a signed_request blob using the given data.
1061
- *
1062
- * @param array $data The data array.
1063
- * @return string The signed request.
1064
- */
1065
- protected function makeSignedRequest($data)
1066
- {
1067
- if (!is_array($data)) {
1068
- throw new InvalidArgumentException(
1069
- 'makeSignedRequest expects an array. Got: ' . print_r($data, true));
1070
- }
1071
- $data['algorithm'] = self::SIGNED_REQUEST_ALGORITHM;
1072
- $data['issued_at'] = time();
1073
- $json = json_encode($data);
1074
- $b64 = self::base64UrlEncode($json);
1075
- $raw_sig = hash_hmac('sha256', $b64, $this->getAppSecret(), $raw = true);
1076
- $sig = self::base64UrlEncode($raw_sig);
1077
- return $sig . '.' . $b64;
1078
- }
1079
-
1080
- /**
1081
- * Build the URL for api given parameters.
1082
- *
1083
- * @param $method String the method name.
1084
- * @return string The URL for the given parameters
1085
- */
1086
- protected function getApiUrl($method)
1087
- {
1088
- static $READ_ONLY_CALLS =
1089
- array('admin.getallocation' => 1,
1090
- 'admin.getappproperties' => 1,
1091
- 'admin.getbannedusers' => 1,
1092
- 'admin.getlivestreamvialink' => 1,
1093
- 'admin.getmetrics' => 1,
1094
- 'admin.getrestrictioninfo' => 1,
1095
- 'application.getpublicinfo' => 1,
1096
- 'auth.getapppublickey' => 1,
1097
- 'auth.getsession' => 1,
1098
- 'auth.getsignedpublicsessiondata' => 1,
1099
- 'comments.get' => 1,
1100
- 'connect.getunconnectedfriendscount' => 1,
1101
- 'dashboard.getactivity' => 1,
1102
- 'dashboard.getcount' => 1,
1103
- 'dashboard.getglobalnews' => 1,
1104
- 'dashboard.getnews' => 1,
1105
- 'dashboard.multigetcount' => 1,
1106
- 'dashboard.multigetnews' => 1,
1107
- 'data.getcookies' => 1,
1108
- 'events.get' => 1,
1109
- 'events.getmembers' => 1,
1110
- 'fbml.getcustomtags' => 1,
1111
- 'feed.getappfriendstories' => 1,
1112
- 'feed.getregisteredtemplatebundlebyid' => 1,
1113
- 'feed.getregisteredtemplatebundles' => 1,
1114
- 'fql.multiquery' => 1,
1115
- 'fql.query' => 1,
1116
- 'friends.arefriends' => 1,
1117
- 'friends.get' => 1,
1118
- 'friends.getappusers' => 1,
1119
- 'friends.getlists' => 1,
1120
- 'friends.getmutualfriends' => 1,
1121
- 'gifts.get' => 1,
1122
- 'groups.get' => 1,
1123
- 'groups.getmembers' => 1,
1124
- 'intl.gettranslations' => 1,
1125
- 'links.get' => 1,
1126
- 'notes.get' => 1,
1127
- 'notifications.get' => 1,
1128
- 'pages.getinfo' => 1,
1129
- 'pages.isadmin' => 1,
1130
- 'pages.isappadded' => 1,
1131
- 'pages.isfan' => 1,
1132
- 'permissions.checkavailableapiaccess' => 1,
1133
- 'permissions.checkgrantedapiaccess' => 1,
1134
- 'photos.get' => 1,
1135
- 'photos.getalbums' => 1,
1136
- 'photos.gettags' => 1,
1137
- 'profile.getinfo' => 1,
1138
- 'profile.getinfooptions' => 1,
1139
- 'stream.get' => 1,
1140
- 'stream.getcomments' => 1,
1141
- 'stream.getfilters' => 1,
1142
- 'users.getinfo' => 1,
1143
- 'users.getloggedinuser' => 1,
1144
- 'users.getstandardinfo' => 1,
1145
- 'users.hasapppermission' => 1,
1146
- 'users.isappuser' => 1,
1147
- 'users.isverified' => 1,
1148
- 'video.getuploadlimits' => 1);
1149
- $name = 'api';
1150
- if (isset($READ_ONLY_CALLS[strtolower($method)])) {
1151
- $name = 'api_read';
1152
- } else if (strtolower($method) == 'video.upload') {
1153
- $name = 'api_video';
1154
- }
1155
- return self::getUrl($name, 'restserver.php');
1156
- }
1157
-
1158
- /**
1159
- * Build the URL for given domain alias, path and parameters.
1160
- *
1161
- * @param $name string The name of the domain
1162
- * @param $path string Optional path (without a leading slash)
1163
- * @param $params array Optional query parameters
1164
- *
1165
- * @return string The URL for the given parameters
1166
- */
1167
- protected function getUrl($name, $path = '', $params = array())
1168
- {
1169
- $url = self::$DOMAIN_MAP[$name];
1170
- if ($path) {
1171
- if ($path[0] === '/') {
1172
- $path = substr($path, 1);
1173
- }
1174
- $url .= $path;
1175
- }
1176
- if ($params) {
1177
- $url .= '?' . http_build_query($params, null, '&');
1178
- }
1179
-
1180
- return $url;
1181
- }
1182
-
1183
- protected function getHttpHost()
1184
- {
1185
- if ($this->trustForwarded && isset($_SERVER['HTTP_X_FORWARDED_HOST'])) {
1186
- return $_SERVER['HTTP_X_FORWARDED_HOST'];
1187
- }
1188
- return $_SERVER['HTTP_HOST'];
1189
- }
1190
-
1191
- protected function getHttpProtocol()
1192
- {
1193
- if ($this->trustForwarded && isset($_SERVER['HTTP_X_FORWARDED_PROTO'])) {
1194
- if ($_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
1195
- return 'https';
1196
- }
1197
- return 'http';
1198
- }
1199
- if (isset($_SERVER['HTTPS']) &&
1200
- ($_SERVER['HTTPS'] === 'on' || $_SERVER['HTTPS'] == 1)
1201
- ) {
1202
- return 'https';
1203
- }
1204
- return 'http';
1205
- }
1206
-
1207
- /**
1208
- * Get the base domain used for the cookie.
1209
- */
1210
- protected function getBaseDomain()
1211
- {
1212
- // The base domain is stored in the metadata cookie if not we fallback
1213
- // to the current hostname
1214
- $metadata = $this->getMetadataCookie();
1215
- /** @noinspection PhpParamsInspection */
1216
- if (array_key_exists('base_domain', $metadata) &&
1217
- !empty($metadata['base_domain'])
1218
- ) {
1219
- return trim($metadata['base_domain'], '.');
1220
- }
1221
- return $this->getHttpHost();
1222
- }
1223
-
1224
- /**
1225
- *
1226
- * /**
1227
- * Returns the Current URL, stripping it of known FB parameters that should
1228
- * not persist.
1229
- *
1230
- * @return string The current URL
1231
- */
1232
- protected function getCurrentUrl()
1233
- {
1234
- $protocol = $this->getHttpProtocol() . '://';
1235
- $host = $this->getHttpHost();
1236
- $currentUrl = $protocol . $host . $_SERVER['REQUEST_URI'];
1237
- $parts = parse_url($currentUrl);
1238
-
1239
- $query = '';
1240
- if (!empty($parts['query'])) {
1241
- // drop known fb params
1242
- $params = explode('&', $parts['query']);
1243
- $retained_params = array();
1244
- foreach ($params as $param) {
1245
- if ($this->shouldRetainParam($param)) {
1246
- $retained_params[] = $param;
1247
- }
1248
- }
1249
-
1250
- if (!empty($retained_params)) {
1251
- $query = '?' . implode($retained_params, '&');
1252
- }
1253
- }
1254
-
1255
- // use port if non default
1256
- $port =
1257
- isset($parts['port']) &&
1258
- (($protocol === 'http://' && $parts['port'] !== 80) ||
1259
- ($protocol === 'https://' && $parts['port'] !== 443))
1260
- ? ':' . $parts['port'] : '';
1261
-
1262
- // rebuild
1263
- return $protocol . $parts['host'] . $port . $parts['path'] . $query;
1264
- }
1265
-
1266
- /**
1267
- * Returns true if and only if the key or key/value pair should
1268
- * be retained as part of the query string. This amounts to
1269
- * a brute-force search of the very small list of Facebook-specific
1270
- * params that should be stripped out.
1271
- *
1272
- * @param string $param A key or key/value pair within a URL's query (e.g.
1273
- * 'foo=a', 'foo=', or 'foo'.
1274
- *
1275
- * @return boolean
1276
- */
1277
- protected function shouldRetainParam($param)
1278
- {
1279
- foreach (self::$DROP_QUERY_PARAMS as $drop_query_param) {
1280
- if (strpos($param, $drop_query_param . '=') === 0) {
1281
- return false;
1282
- }
1283
- }
1284
-
1285
- return true;
1286
- }
1287
-
1288
- /**
1289
- * Analyzes the supplied result to see if it was thrown
1290
- * because the access token is no longer valid. If that is
1291
- * the case, then we destroy the session.
1292
- *
1293
- * @param $result array A record storing the error message returned
1294
- * by a failed API call.
1295
- *
1296
- * @throws FacebookApiException
1297
- */
1298
- protected function throwAPIException($result)
1299
- {
1300
- $e = new FacebookApiException($result);
1301
- switch ($e->getType()) {
1302
- // OAuth 2.0 Draft 00 style
1303
- case 'OAuthException':
1304
- // OAuth 2.0 Draft 10 style
1305
- case 'invalid_token':
1306
- // REST server errors are just Exceptions
1307
- case 'Exception':
1308
- $message = $e->getMessage();
1309
- if ((strpos($message, 'Error validating access token') !== false) ||
1310
- (strpos($message, 'Invalid OAuth access token') !== false) ||
1311
- (strpos($message, 'An active access token must be used') !== false)
1312
- ) {
1313
- $this->destroySession();
1314
- }
1315
- break;
1316
- }
1317
-
1318
- throw $e;
1319
- }
1320
-
1321
-
1322
- /**
1323
- * Prints to the error log if you aren't in command line mode.
1324
- *
1325
- * @param string $msg Log message
1326
- */
1327
- protected static function errorLog($msg)
1328
- {
1329
- // disable error log if we are running in a CLI environment
1330
- // @codeCoverageIgnoreStart
1331
- if (php_sapi_name() != 'cli') {
1332
- error_log($msg);
1333
- }
1334
- // uncomment this if you want to see the errors on the page
1335
- // print 'error_log: '.$msg."\n";
1336
- // @codeCoverageIgnoreEnd
1337
- }
1338
-
1339
- /**
1340
- * Base64 encoding that doesn't need to be urlencode()ed.
1341
- * Exactly the same as base64_encode except it uses
1342
- * - instead of +
1343
- * _ instead of /
1344
- * No padded =
1345
- *
1346
- * @param string $input base64UrlEncoded string
1347
- * @return string
1348
- */
1349
- protected static function base64UrlDecode($input)
1350
- {
1351
- return base64_decode(strtr($input, '-_', '+/'));
1352
- }
1353
-
1354
- /**
1355
- * Base64 encoding that doesn't need to be urlencode()ed.
1356
- * Exactly the same as base64_encode except it uses
1357
- * - instead of +
1358
- * _ instead of /
1359
- *
1360
- * @param string $input string
1361
- * @return string base64Url encoded string
1362
- */
1363
- protected static function base64UrlEncode($input)
1364
- {
1365
- $str = strtr(base64_encode($input), '+/', '-_');
1366
- $str = str_replace('=', '', $str);
1367
- return $str;
1368
- }
1369
-
1370
- /**
1371
- * Destroy the current session
1372
- */
1373
- public function destroySession()
1374
- {
1375
- $this->accessToken = null;
1376
- $this->signedRequest = null;
1377
- $this->user = null;
1378
- $this->clearAllPersistentData();
1379
-
1380
- // Javascript sets a cookie that will be used in getSignedRequest that we
1381
- // need to clear if we can
1382
- $cookie_name = $this->getSignedRequestCookieName();
1383
- if (array_key_exists($cookie_name, $_COOKIE)) {
1384
- unset($_COOKIE[$cookie_name]);
1385
- if (!headers_sent()) {
1386
- $base_domain = $this->getBaseDomain();
1387
- setcookie($cookie_name, '', 1, '/', '.' . $base_domain);
1388
- } else {
1389
- // @codeCoverageIgnoreStart
1390
- self::errorLog(
1391
- 'There exists a cookie that we wanted to clear that we couldn\'t ' .
1392
- 'clear because headers was already sent. Make sure to do the first ' .
1393
- 'API call before outputing anything.'
1394
- );
1395
- // @codeCoverageIgnoreEnd
1396
- }
1397
- }
1398
- }
1399
-
1400
- /**
1401
- * Parses the metadata cookie that our Javascript API set
1402
- *
1403
- * @return array mapping key to value
1404
- */
1405
- protected function getMetadataCookie()
1406
- {
1407
- $cookie_name = $this->getMetadataCookieName();
1408
- if (!array_key_exists($cookie_name, $_COOKIE)) {
1409
- return array();
1410
- }
1411
-
1412
- // The cookie value can be wrapped in "-characters so remove them
1413
- $cookie_value = trim($_COOKIE[$cookie_name], '"');
1414
-
1415
- if (empty($cookie_value)) {
1416
- return array();
1417
- }
1418
-
1419
- $parts = explode('&', $cookie_value);
1420
- $metadata = array();
1421
- foreach ($parts as $part) {
1422
- $pair = explode('=', $part, 2);
1423
- if (!empty($pair[0])) {
1424
- $metadata[urldecode($pair[0])] =
1425
- (count($pair) > 1) ? urldecode($pair[1]) : '';
1426
- }
1427
- }
1428
-
1429
- return $metadata;
1430
- }
1431
-
1432
- protected static function isAllowedDomain($big, $small)
1433
- {
1434
- if ($big === $small) {
1435
- return true;
1436
- }
1437
- return self::endsWith($big, '.' . $small);
1438
- }
1439
-
1440
- protected static function endsWith($big, $small)
1441
- {
1442
- $len = strlen($small);
1443
- if ($len === 0) {
1444
- return true;
1445
- }
1446
- return substr($big, -$len) === $small;
1447
- }
1448
-
1449
- /**
1450
- * Each of the following four methods should be overridden in
1451
- * a concrete subclass, as they are in the provided Facebook class.
1452
- * The Facebook class uses PHP sessions to provide a primitive
1453
- * persistent store, but another subclass--one that you implement--
1454
- * might use a database, memcache, or an in-memory cache.
1455
- *
1456
- * @see Facebook
1457
- */
1458
-
1459
- /**
1460
- * Stores the given ($key, $value) pair, so that future calls to
1461
- * getPersistentData($key) return $value. This call may be in another request.
1462
- *
1463
- * @param string $key
1464
- * @param array $value
1465
- *
1466
- * @return void
1467
- */
1468
- abstract protected function setPersistentData($key, $value);
1469
-
1470
- /**
1471
- * Get the data for $key, persisted by BaseFacebook::setPersistentData()
1472
- *
1473
- * @param string $key The key of the data to retrieve
1474
- * @param boolean $default The default value to return if $key is not found
1475
- *
1476
- * @return mixed
1477
- */
1478
- abstract protected function getPersistentData($key, $default = false);
1479
-
1480
- /**
1481
- * Clear the data with $key from the persistent storage
1482
- *
1483
- * @param string $key
1484
- * @return void
1485
- */
1486
- abstract protected function clearPersistentData($key);
1487
-
1488
- /**
1489
- * Clear all data from the persistent storage
1490
- *
1491
- * @return void
1492
- */
1493
- abstract protected function clearAllPersistentData();
1494
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/class-sigami-facebook.php DELETED
@@ -1,142 +0,0 @@
1
- <?php
2
- /**
3
- * Extends the BaseFacebook class with the intent of using
4
- * PHP sessions to store user ids and access tokens.
5
- */
6
- class Sigami_Facebook extends BaseFacebook
7
- {
8
- const FBSS_COOKIE_NAME = 'fbss';
9
-
10
- // We can set this to a high number because the main session
11
- // expiration will trump this.
12
- const FBSS_COOKIE_EXPIRE = 31556926; // 1 year
13
-
14
- // Stores the shared session ID if one is set.
15
- protected $sharedSessionID;
16
-
17
- /**
18
- * Identical to the parent constructor, except that
19
- * we start a PHP session to store the user ID and
20
- * access token if during the course of execution
21
- * we discover them.
22
- *
23
- * @param Array $config the application configuration. Additionally
24
- * accepts "sharedSession" as a boolean to turn on a secondary
25
- * cookie for environments with a shared session (that is, your app
26
- * shares the domain with other apps).
27
- * @see BaseFacebook::__construct in facebook.php
28
- */
29
- public function __construct($config) {
30
- parent::__construct($config);
31
- if (!empty($config['sharedSession'])) {
32
- $this->initSharedSession();
33
- }
34
- }
35
-
36
- protected static $kSupportedKeys =
37
- array('state', 'code', 'access_token', 'user_id');
38
-
39
- protected function initSharedSession() {
40
- $cookie_name = $this->getSharedSessionCookieName();
41
- if (isset($_COOKIE[$cookie_name])) {
42
- $data = $this->parseSignedRequest($_COOKIE[$cookie_name]);
43
- if ($data && !empty($data['domain']) &&
44
- self::isAllowedDomain($this->getHttpHost(), $data['domain'])) {
45
- // good case
46
- $this->sharedSessionID = $data['id'];
47
- return;
48
- }
49
- // ignoring potentially unreachable data
50
- }
51
- // evil/corrupt/missing case
52
- $base_domain = $this->getBaseDomain();
53
- $this->sharedSessionID = md5(uniqid(mt_rand(), true));
54
- $cookie_value = $this->makeSignedRequest(
55
- array(
56
- 'domain' => $base_domain,
57
- 'id' => $this->sharedSessionID,
58
- )
59
- );
60
- $_COOKIE[$cookie_name] = $cookie_value;
61
- if (!headers_sent()) {
62
- $expire = time() + self::FBSS_COOKIE_EXPIRE;
63
- setcookie($cookie_name, $cookie_value, $expire, '/', '.'.$base_domain);
64
- } else {
65
- // @codeCoverageIgnoreStart
66
- self::errorLog(
67
- 'Shared session ID cookie could not be set! You must ensure you '.
68
- 'create the Facebook instance before headers have been sent. This '.
69
- 'will cause authentication issues after the first request.'
70
- );
71
- // @codeCoverageIgnoreEnd
72
- }
73
- }
74
-
75
- /**
76
- * Provides the implementations of the inherited abstract
77
- * methods. The implementation uses PHP sessions to maintain
78
- * a store for authorization codes, user ids, CSRF states, and
79
- * access tokens.
80
- *
81
- * @param string $key
82
- * @param array $value
83
- */
84
- protected function setPersistentData($key, $value) {
85
- if (!in_array($key, self::$kSupportedKeys)) {
86
- self::errorLog('Unsupported key passed to setPersistentData.');
87
- return;
88
- }
89
-
90
- $session_var_name = $this->constructSessionVariableName($key);
91
- $_SESSION[$session_var_name] = $value;
92
- }
93
-
94
- protected function getPersistentData($key, $default = false) {
95
- if (!in_array($key, self::$kSupportedKeys)) {
96
- self::errorLog('Unsupported key passed to getPersistentData.');
97
- return $default;
98
- }
99
-
100
- $session_var_name = $this->constructSessionVariableName($key);
101
- return isset($_SESSION[$session_var_name]) ?
102
- $_SESSION[$session_var_name] : $default;
103
- }
104
-
105
- protected function clearPersistentData($key) {
106
- if (!in_array($key, self::$kSupportedKeys)) {
107
- self::errorLog('Unsupported key passed to clearPersistentData.');
108
- return;
109
- }
110
-
111
- $session_var_name = $this->constructSessionVariableName($key);
112
- unset($_SESSION[$session_var_name]);
113
- }
114
-
115
- protected function clearAllPersistentData() {
116
- foreach (self::$kSupportedKeys as $key) {
117
- $this->clearPersistentData($key);
118
- }
119
- if ($this->sharedSessionID) {
120
- $this->deleteSharedSessionCookie();
121
- }
122
- }
123
-
124
- protected function deleteSharedSessionCookie() {
125
- $cookie_name = $this->getSharedSessionCookieName();
126
- unset($_COOKIE[$cookie_name]);
127
- $base_domain = $this->getBaseDomain();
128
- setcookie($cookie_name, '', 1, '/', '.'.$base_domain);
129
- }
130
-
131
- protected function getSharedSessionCookieName() {
132
- return self::FBSS_COOKIE_NAME . '_' . $this->getAppId();
133
- }
134
-
135
- protected function constructSessionVariableName($key) {
136
- $parts = array('fb', $this->getAppId(), $key);
137
- if ($this->sharedSessionID) {
138
- array_unshift($parts, $this->sharedSessionID);
139
- }
140
- return implode('_', $parts);
141
- }
142
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/class-wef-magic-embeds.php DELETED
@@ -1,155 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Where all the embedding happens.
5
- *
6
- * @uses WP_Embed_FB
7
- * @uses WEF_Social_Plugins
8
- * @uses WP_Embed_FB_Plugin
9
- */
10
- class WEF_Magic_Embeds extends WP_Embed_FB_Plugin {
11
- static function hooks() {
12
-
13
- /** @see WEF_Magic_Embeds::plugins_loaded */
14
- if ( self::get_option( 'auto_embed_active' ) == 'true' ) {
15
- add_filter( 'plugins_loaded', __CLASS__ . '::plugins_loaded' );
16
- }
17
-
18
- /** @see WEF_Magic_Embeds::the_content */
19
- add_filter( 'the_content', __CLASS__ . '::the_content' );
20
-
21
- /** @see WP_Embed_FB::shortcode */
22
- add_shortcode( 'facebook', 'WP_Embed_FB::shortcode' );
23
- add_shortcode( 'embedfb', 'WP_Embed_FB::shortcode' );
24
-
25
- /** @see WEF_Social_Plugins::shortcode */
26
- add_shortcode( 'fb_plugin', 'WEF_Social_Plugins::shortcode' );
27
-
28
- //TODO add content filter and option to force embed when it fails for weirb reasons
29
- //TODO do some magic with [facebook] JetPack shortcode.
30
-
31
- // PLUGIN ACTIONS AND FILTERS
32
- /** @see WEF_Social_Plugins::shortcode */
33
- add_filter( 'wef_sp_defaults', __CLASS__ . '::wef_sp_defaults', 10, 2 );
34
- add_filter( 'wef_sp_shortcode_filter', __CLASS__ . '::wef_sp_shortcode_filter',10,4 );
35
- //wef_sp_embed
36
- }
37
-
38
- /**
39
- * Adds fb_foot to top and quote plugin
40
- *
41
- * @param string $the_content Post content
42
- *
43
- * @return string
44
- */
45
- static function the_content( $the_content ) {
46
- if ( self::get_option( 'fb_root' ) === 'true' ) {
47
- $the_content = '<div id="fb-root"></div>' . PHP_EOL . $the_content;
48
- }
49
- if ( is_single() && ( self::get_option( 'quote_plugin_active' ) === 'true' ) ) {
50
- $array = self::string_to_array( self::get_option( 'quote_post_types' ) );
51
- if ( in_array( $GLOBALS['post']->post_type, $array ) ) {
52
- $the_content .= WEF_Social_Plugins::get( 'quote' );
53
- }
54
- }
55
-
56
- return $the_content;
57
- }
58
-
59
- /**
60
- * Adds Embed register handler
61
- */
62
- static function plugins_loaded() {
63
- wp_embed_register_handler( "wpembedfb", "/(http|https):\/\/www\.facebook\.com\/([^<\s]*)/", 'WP_Embed_FB::embed_register_handler' );
64
- }
65
-
66
- static function wef_sp_defaults( $defaults, $type ) {
67
- $options = self::get_option();
68
- foreach ( $defaults as $key => $value ) {
69
- if ( in_array( $key, self::$link_types ) ) {
70
- $defaults[ $key ] = self::get_true_url();
71
- } else {
72
- $defaults[ $key ] = $options["{$type}_$key"];
73
- }
74
- }
75
-
76
- return $defaults;
77
- }
78
-
79
- static function get_true_url(){
80
- global $wp;
81
- if(is_home())
82
- return home_url();
83
-
84
- if(in_the_loop()){
85
- global $post;
86
- if(WP_Embed_FB_Plugin::get_option('permalink_on_social_plugins') === 'true'){
87
- return get_permalink($post->ID);
88
- } else {
89
- $query = '/?p=' .$post->ID;
90
- }
91
- } else {
92
- if(WP_Embed_FB_Plugin::get_option('permalink_on_social_plugins') === 'true'){
93
- $query = $wp->request;
94
- } else {
95
- $query = '/?' .$wp->query_string;
96
- }
97
- }
98
-
99
- return home_url($query);
100
- }
101
-
102
- static function wef_sp_shortcode_filter($ret,$type,$atts,$defaults) {
103
- if ( isset( $defaults[ $type ]['width'] ) && $type != 'comments' && $type != 'page' ) {
104
- $default_width = $defaults[ $type ]['width'];
105
- if ( isset( $atts['adaptive'] ) ) {
106
- if ( $atts['adaptive'] == 'true' ) {
107
- $ret = self::add_adaptive( $default_width, $atts ).$ret;
108
- }
109
- } elseif ( self::get_option( 'adaptive_fb_plugin' ) == 'true' ) {
110
- $ret = self::add_adaptive( $default_width, $atts ).$ret;
111
- }
112
- }
113
- if ( isset( $atts['debug'] ) ) {
114
- $atts_raw = $atts;
115
- $debug = '';
116
- $atts_raw_string = '';
117
- unset( $atts_raw['debug'] );
118
- foreach ( $atts_raw as $key => $value ) {
119
- $atts_raw_string .= "$key=$value ";
120
- }
121
- $debug .= '<br><pre>';
122
- $debug .= '<strong>';
123
- $debug .= __( 'Shortcode used:', 'wp-embed-facebook' ) . "<br>";
124
- $debug .= '</strong>';
125
- $debug .= esc_html( htmlentities( "[fb_plugin $type $atts_raw_string]" ) );
126
- $debug .= '<br>';
127
- $debug .= '<strong>';
128
- $debug .= __( 'Final code:', 'wp-embed-facebook' ) . "<br>";
129
- $debug .= '</strong>';
130
- $debug .= esc_html( htmlentities( $ret, ENT_QUOTES ) );
131
- $debug .= '<br>';
132
- $debug .= '<strong>';
133
- $debug .= __( 'More information:', 'wp-embed-facebook' );
134
- $debug .= '</strong>';
135
- $debug .= WEF_Social_Plugins::get_links( $type );
136
- $debug .= '</pre>';
137
- $ret .= $debug;
138
- }
139
- return $ret;
140
- }
141
-
142
-
143
- private static function add_adaptive( $default_width, $atts ) {
144
- $width = isset( $atts['width'] ) ? $atts['width'] : $default_width;
145
- wp_enqueue_script( 'wpemfb' );
146
- $ret = '';
147
- $ret .= '<div class="wef-measure"';
148
- if ( ! empty( $width ) ) {
149
- $ret .= ' style="max-width: ' . $width . 'px;"';
150
- }
151
- $ret .= '></div>';
152
- return $ret;
153
- }
154
-
155
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/class-wef-social-plugins.php DELETED
@@ -1,507 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Group of static functions to render facebook social plugins on WordPress it has no dependencies.
5
- *
6
- * @author Miguel Sirvent
7
- */
8
- class WEF_Social_Plugins {
9
- /**
10
- * Quote Plugin
11
- *
12
- * The quote plugin lets people select text on your page and add it to their share, so they can tell a more
13
- * expressive story.
14
- *
15
- * <code>
16
- *
17
- * href: The absolute URL of the page that will be quoted.
18
- * layout:
19
- * quote: On text selection, a button with a blue Facebook icon and "Share Quote" text is shown as an
20
- * overlay. When a person clicks it, it will open a share dialog with the highlighted text as
21
- * a quote.
22
- * button: Behaves the same as the "quote" option but has just a blue Facebook icon in the button.
23
- *
24
- * </code>
25
- *
26
- * @link https://developers.facebook.com/docs/plugins/quote
27
- */
28
- static $quote = array(
29
- 'href' => '',
30
- 'layout' => array( 'quote', 'button' )
31
- );
32
- /**
33
- * Save Button
34
- *
35
- * The save button lets people save items or services to a private list on Facebook, share it with friends, and
36
- * receive relevant notifications. For example, a person can save an item of clothing, trip, or link that they're
37
- * thinking about and go back to that list for future consumption, or get notified when that item or trip has a
38
- * promotional deal.
39
- *
40
- * <code>
41
- *
42
- * uri: The absolute link of the page that will be saved.
43
- * size: large or small
44
- *
45
- * </code>
46
- *
47
- * @link https://developers.facebook.com/docs/plugins/save
48
- */
49
- static $save = array(
50
- 'uri' => '',
51
- 'size' => array( 'large', 'small' )
52
- );
53
- /**
54
- * Like Button
55
- *
56
- * A single click on the Like button will 'like' pieces of content on the web and share them on Facebook. You can
57
- * also display a Share button next to the Like button to let people add a personal message and customize who they
58
- * share with.
59
- *
60
- * <code>
61
- *
62
- * action: The verb to display on the button.
63
- * like
64
- * recommend
65
- * colorscheme: The color scheme used by the plugin for any text outside of the button itself.
66
- * light
67
- * dark
68
- * href: The absolute URL of the page that will be quoted.
69
- * kid-directed-site: TIf your web site or online service, or a portion of your service, is directed to children
70
- * under 13 you must enable this
71
- * layout: Selects one of the different layouts that are available for the plugin.
72
- * standard
73
- * button_count
74
- * button
75
- * box_count
76
- * ref: A label for tracking referrals which must be less than 50 characters and can contain alphanumeric
77
- * characters and some punctuation (currently +/=-.:_).
78
- * share: Specifies whether to include a share button beside the Like button. This only works with the XFBML
79
- * version.
80
- * show_faces: Specifies whether to display profile photos below the button (standard layout only). You must not
81
- * enable this on child-directed sites.
82
- * width: The width of the plugin (standard layout only), which is subject to the minimum and default width.
83
- * default 450 minimum 225
84
- *
85
- * </code>
86
- *
87
- * @link https://developers.facebook.com/docs/plugins/like-button
88
- */
89
- static $like = array(
90
- 'action' => array( 'like', 'recommend' ),
91
- 'colorscheme' => array( 'light', 'dark' ),
92
- 'href' => '',
93
- 'kid-directed-site' => array( 'false', 'true' ),
94
- 'layout' => array( 'standard', 'button_count', 'button', 'box_count' ),
95
- 'ref' => '',
96
- 'share' => array( 'false', 'true' ),
97
- 'show-faces' => array( 'true', 'false' ),
98
- 'width' => '450'
99
- );
100
- /**
101
- * Share Button
102
- *
103
- * The Share button lets people add a personalized message to links before sharing on their timeline, in groups, or
104
- * to their friends via a Facebook Message.
105
- *
106
- * <code>
107
- *
108
- * href: The absolute URL of the page that will be quoted.
109
- * layout: Selects one of the different layouts that are available for the plugin.
110
- * link
111
- * icon_link
112
- * icon
113
- * button_count
114
- * button
115
- * box_count
116
- * mobile_iframe: If set to true, the share button will open the share dialog in an iframe (instead of a popup) on
117
- * top of your website on mobile. This option is only available for mobile, not desktop.
118
- * characters and some punctuation (currently +/=-.:_).
119
- *
120
- * </code>
121
- *
122
- * @link https://developers.facebook.com/docs/plugins/share-button/
123
- */
124
- static $share = array(
125
- 'href' => '',
126
- 'layout' => array( 'icon_link', 'link', 'icon', 'button_count', 'button', 'box_count' ),
127
- 'mobile_iframe' => array( 'false', 'true' ),
128
- );
129
- /**
130
- * Send Button
131
- *
132
- * The Send button lets people privately send content on your site to one or more friends in a Facebook message.
133
- *
134
- * <code>
135
- *
136
- * href: The absolute URL of the page that will be quoted.
137
- * colorscheme: The color scheme used by the plugin.
138
- * light
139
- * dark
140
- * kid-directed-site: TIf your web site or online service, or a portion of your service, is directed to children
141
- * under 13 you must enable this
142
- * ref: A label for tracking referrals which must be less than 50 characters and can contain alphanumeric
143
- * characters and some punctuation (currently +/=-.:_).
144
- *
145
- * </code>
146
- *
147
- * @link https://developers.facebook.com/docs/plugins/send-button
148
- */
149
- static $send = array(
150
- 'colorscheme' => array( 'light', 'dark' ),
151
- 'href' => '',
152
- 'kid-directed-site' => array( 'false', 'true' ),
153
- 'ref' => '',
154
- );
155
- /**
156
- * Embedded Comments
157
- *
158
- * Embedded comments are a simple way to put public post comments - by a Page or a person on Facebook - into the
159
- * content of your web site or web page. Only public comments from Facebook Pages and profiles can be embedded.
160
- *
161
- * <code>
162
- *
163
- * href: The absolute URL of the comment.
164
- * width: The width of the embedded comment container. Min. 220px.
165
- * include-parent: Set to true to include parent comment (if URL is a reply).
166
- *
167
- * </code>
168
- *
169
- * @link https://developers.facebook.com/docs/plugins/embedded-comments/
170
- *
171
- * fb-comment-comment ?
172
- */
173
- static $comment = array(
174
- 'href' => '',
175
- 'width' => '560',
176
- 'include-parent' => array( 'false', 'true' )
177
- );
178
- /**
179
- * Embedded Video & Live Video Player
180
- *
181
- * With the embedded video player you can easily add Facebook videos and Facebook live videos to your website. You
182
- * can use any public video post by a Page or a person as video or live video source.
183
- *
184
- * <code>
185
- *
186
- * href: The absolute URL of the page that will be quoted.
187
- * allowfullscreen: Allow the video to be played in fullscreen mode.
188
- * autoplay: Automatically start playing the video when the page loads. The video will be played without sound
189
- * (muted). People can turn on sound via the video player controls. This setting does not apply to mobile
190
- * devices.
191
- * width: The width of the video container. Min. 220px.
192
- * show-text: Set to true to include the text from the Facebook post associated with the video, if any.
193
- * show-captions: Set to true to show captions (if available) by default. Captions are only available on desktop.
194
- *
195
- * </code>
196
- *
197
- * @link https://developers.facebook.com/docs/plugins/embedded-video-player/
198
- *
199
- * @link https://developers.facebook.com/docs/plugins/embedded-video-player/#how-to-get-a-video-posts-url
200
- */
201
- static $video = array(
202
- 'href' => '',
203
- 'allowfullscreen' => array( 'false', 'true' ),
204
- 'autoplay' => array( 'false', 'true' ),
205
- 'width' => '',
206
- 'show-text' => array( 'false', 'true' ),
207
- 'show-captions' => array( 'true', 'false' ),
208
- );
209
- /**
210
- * Page Plugin
211
- *
212
- * The Page plugin lets you easily embed and promote any Facebook Page on your website. Just like on Facebook, your
213
- * visitors can like and share the Page without leaving your site.
214
- *
215
- * <code>
216
- *
217
- * href: The absolute URL of the page that will be quoted.
218
- * width: The pixel width of the plugin. Min. is 180 & Max. is 500
219
- * height: The pixel height of the plugin. Min. is 70
220
- * tabs: Tabs to render i.e. timeline, events, messages. Use a comma-separated list to add multiple tabs, i.e.
221
- * timeline, events. hide_cover: Tabs to render i.e. timeline, events, messages. Use a comma-separated list to
222
- * add multiple tabs, i.e. timeline, events.
223
- * hide-cover: Hide cover photo in the header
224
- * show-facepile: Show profile photos when friends like this
225
- * hide-cta: Hide the custom call to action button (if available)
226
- * small-header: Use the small header instead
227
- * adapt-container-width: Try to fit inside the container width
228
- *
229
- * </code>
230
- *
231
- * @link https://developers.facebook.com/docs/plugins/page-plugin/
232
- */
233
- static $page = array(
234
- 'href' => '',
235
- 'width' => '340',
236
- 'height' => '500',
237
- 'tabs' => '',
238
- 'hide-cover' => array( 'false', 'true' ),
239
- 'show-facepile' => array( 'true', 'false' ),
240
- 'hide-cta' => array( 'false', 'true' ),
241
- 'small-header' => array( 'false', 'true' ),
242
- 'adapt-container-width' => array( 'true', 'false' ),
243
- );
244
- /**
245
- * Comments Plugin
246
- *
247
- * The comments plugin lets people comment on content on your site using their Facebook account. People can choose
248
- * to share their comment activity with their friends (and friends of their friends) on Facebook as well. The
249
- * comments plugin also includes built-in moderation tools and social relevance ranking.
250
- *
251
- * <code>
252
- *
253
- * colorscheme: The color scheme used by the comments plugin.
254
- * dark
255
- * light
256
- * href: The absolute URL of the page that will be quoted.
257
- * mobile: A boolean value that specifies whether to show the mobile-optimized version or not.
258
- * num_posts: The number of comments to show by default. The minimum value is 1
259
- * order_by: The order to use when displaying comments.
260
- * social
261
- * reverse_time
262
- * time
263
- * width: The width of the comments plugin on the webpage. This can be either a pixel value or a percentage (such
264
- * as 100%) for fluid width. The mobile version of the comments plugin ignores the width parameter and
265
- * instead has a fluid width of 100%. The minimum width supported by the comments plugin is 320px.
266
- *
267
- * </code>
268
- *
269
- * @link https://developers.facebook.com/docs/plugins/comments/
270
- */
271
- static $comments = array(
272
- 'colorscheme' => array( 'light', 'dark' ),
273
- 'href' => '',
274
- 'mobile' => array( 'false', 'true' ),
275
- 'num_posts' => '10',
276
- 'order_by' => array( 'social', 'reverse_time', 'time' ),
277
- 'width' => '550px',
278
- );
279
- static $comments_count = array(
280
- 'href' => ''
281
- );
282
- /**
283
- * Embedded Posts
284
- *
285
- * Embedded Posts are a simple way to put public posts - by a Page or a person on Facebook - into the content of
286
- * your web site or web page. Only public posts from Facebook Pages and profiles can be embedded.
287
- *
288
- * <code>
289
- *
290
- * href: The absolute URL of the post to be embedded.
291
- * width: The width of the plugin. (between 350 and 750)
292
- * show-text: show te post content (it was not documented Õ..õ )
293
- *
294
- * </code>
295
- *
296
- * @link https://developers.facebook.com/docs/plugins/embedded-posts/
297
- */
298
- static $post = array(
299
- 'href' => '',
300
- 'width' => '500',
301
- 'show-text' => array( 'true', 'false' ),
302
- );
303
- /**
304
- * Follow Button
305
- *
306
- * The Follow button lets people subscribe to the public updates of others on Facebook.
307
- *
308
- * <code>
309
- *
310
- * colorscheme: The color scheme used by the comments plugin.
311
- * dark
312
- * light
313
- * href: The absolute URL of the page that will be quoted.
314
- * kid-directed-site: TIf your web site or online service, or a portion of your service, is directed to children
315
- * under 13 you must enable this
316
- * layout: Selects one of the different layouts that are available for the plugin.
317
- * standard
318
- * button_count
319
- * box_count
320
- * show-faces: Specifies whether to display profile photos below the button (standard layout only).
321
- * width: The width of the plugin. The layout you choose affects the minimum and default widths you can use.
322
- * default 450 minimum 225
323
- *
324
- * </code>
325
- *
326
- * @link https://developers.facebook.com/docs/plugins/follow-button/
327
- *
328
- */
329
- static $follow = array(
330
- 'colorscheme' => array( 'light', 'dark' ),
331
- 'href' => '',
332
- 'kid-directed-site' => array( 'false', 'true' ),
333
- 'layout' => array( 'standard', 'button_count', 'box_count' ),
334
- 'show-faces' => array( 'true', 'false' ),
335
- 'width' => '450',
336
- );
337
- /**
338
- * Associative array with the default variables interpreted by fb
339
- */
340
- private static $defaults = null;
341
- /**
342
- * Associative array containing links for demos and documentation
343
- */
344
- private static $links = array(
345
- 'quote' => array(
346
- 'docs' => 'https://developers.facebook.com/docs/plugins/quote',
347
- 'demo' => 'http://www.wpembedfb.com/demo-site/?p=99'
348
- ),
349
- 'save' => array(
350
- 'docs' => 'https://developers.facebook.com/docs/plugins/save',
351
- 'demo' => 'http://www.wpembedfb.com/demo-site/?p=41'
352
- ),
353
- 'like' => array(
354
- 'docs' => 'https://developers.facebook.com/docs/plugins/like-button',
355
- 'demo' => 'http://www.wpembedfb.com/demo-site/?p=26'
356
- ),
357
- 'share' => array(
358
- 'docs' => 'https://developers.facebook.com/docs/plugins/share-button/',
359
- 'demo' => 'http://www.wpembedfb.com/demo-site/?p=36'
360
- ),
361
- 'send' => array(
362
- 'docs' => 'https://developers.facebook.com/docs/plugins/send-button',
363
- 'demo' => 'http://www.wpembedfb.com/demo-site/?p=46'
364
- ),
365
- 'comment' => array(
366
- 'docs' => 'https://developers.facebook.com/docs/plugins/embedded-comments/',
367
- 'demo' => 'http://www.wpembedfb.com/demo-site/?p=50'
368
- ),
369
- 'video' => array(
370
- 'docs' => 'https://developers.facebook.com/docs/plugins/embedded-video-player/',
371
- 'demo' => 'http://www.wpembedfb.com/demo-site/?p=62'
372
- ),
373
- 'page' => array(
374
- 'docs' => 'https://developers.facebook.com/docs/plugins/page-plugin/',
375
- 'demo' => 'http://www.wpembedfb.com/demo-site/?p=70'
376
- ),
377
- 'comments' => array(
378
- 'docs' => 'https://developers.facebook.com/docs/plugins/comments/',
379
- 'demo' => 'http://www.wpembedfb.com/demo-site/?p=105'
380
- ),
381
- 'post' => array(
382
- 'docs' => 'https://developers.facebook.com/docs/plugins/embedded-posts/',
383
- 'demo' => 'http://www.wpembedfb.com/demo-site/?p=94'
384
- ),
385
- 'follow' => array(
386
- 'docs' => 'https://developers.facebook.com/docs/plugins/follow-button/',
387
- 'demo' => 'http://www.wpembedfb.com/demo-site/?p=89'
388
- )
389
- );
390
-
391
- static function get_links( $type, $link = true ) {
392
- $ret = '';
393
- if ( isset( self::$links[ $type ] ) ) {
394
- if ( $link ) {
395
- $ret = '<small>';
396
- $ret .= '<a href="' . self::$links[ $type ]['demo'] . '" target="_blank" title="WP Embed Facebook Demo">Demo</a> ';
397
- $ret .= '<a href="' . self::$links[ $type ]['docs'] . '" target="_blank" title="Official FB documentation">Info</a>';
398
- $ret .= '</small>';
399
- } else {
400
- $ret = self::$links[ $type ];
401
- }
402
-
403
- }
404
-
405
- return $ret;
406
- }
407
-
408
- static function get_defaults() {
409
-
410
- if ( self::$defaults === null ) {
411
- $vars = get_class_vars( __CLASS__ );
412
- unset( $vars['defaults'] );
413
- unset( $vars['links'] );
414
- foreach ( $vars as $type => $options ) {
415
- foreach ( $options as $option => $default ) {
416
- if ( is_array( $default ) ) {
417
- $vars[ $type ][ $option ] = $default[0];
418
- }
419
- }
420
- }
421
- self::$defaults = $vars;
422
- }
423
-
424
- return self::$defaults;
425
- }
426
-
427
- /**
428
- * Gets the HTML code of any social plugin if any
429
- *
430
- * @param string $type = quote|save|like|share|send|comment|video|page|comments|post|follow
431
- * @param array $options Defaults are WEF_Social_Plugin::$type
432
- *
433
- * @see WEF_Social_Plugins::$quote
434
- * @see WEF_Social_Plugins::$save
435
- * @see WEF_Social_Plugins::$like
436
- * @see WEF_Social_Plugins::$share
437
- * @see WEF_Social_Plugins::$send
438
- * @see WEF_Social_Plugins::$comment
439
- * @see WEF_Social_Plugins::$video
440
- * @see WEF_Social_Plugins::$page
441
- * @see WEF_Social_Plugins::$comments
442
- * @see WEF_Social_Plugins::$post
443
- * @see WEF_Social_Plugins::$follow
444
- *
445
- * @return string
446
- */
447
- static function get( $type = 'like', $options = array() ) {
448
- if ( $type == 'comment' ) {
449
- $type_clean = 'comment-embed';
450
- } elseif ( $type == 'comments_count' ) {
451
- $type_clean = 'comments-count';
452
- } elseif ( $type == 'share' ) {
453
- $type_clean = 'share-button';
454
- } else {
455
- $type_clean = $type;
456
- }
457
-
458
- do_action( 'wef_sp_get_action' );
459
-
460
- $defaults = self::get_defaults();
461
- $filtered_options = apply_filters( 'wef_sp_defaults', $defaults[ $type ], $type );
462
- $extra = '';
463
- $real_options = array();
464
- foreach ( $defaults[ $type ] as $option => $def_value ) {
465
- if ( isset( $options[ $option ] ) && ( $options[ $option ] != $def_value ) ) {
466
- $real_options[ $option ] = $options[ $option ];
467
- } elseif ( isset( $filtered_options[ $option ] ) && ( $filtered_options[ $option ] != $def_value ) ) {
468
- $real_options[ $option ] = $filtered_options[ $option ];
469
- }
470
- if ( isset( $real_options[ $option ] ) && ( $real_options[ $option ] == $def_value ) ) {
471
- unset( $real_options[ $option ] );
472
- }
473
- }
474
-
475
- foreach ( $real_options as $option => $value ) {
476
- $extra .= "data-$option=\"$value\" ";
477
- }
478
-
479
- return apply_filters( 'wef_sp_get_filter', "<div class=\"fb-$type_clean\" $extra></div>", $type, $options, $defaults );
480
- }
481
-
482
- static function shortcode( $atts = array() ) {
483
- $type = array_shift( $atts );
484
- if ( $type == 'comments-count' ) {
485
- $type = 'comments_count';
486
- }
487
- $defaults = self::get_defaults();
488
-
489
- if ( isset( $defaults[ $type ] ) ) {
490
-
491
- $data = shortcode_atts( $defaults[ $type ], $atts );
492
-
493
- $ret = self::get( $type, $data );
494
-
495
- if ( ( WP_Embed_FB_Plugin::get_option( 'enq_when_needed' ) == 'true' ) && ( WP_Embed_FB_Plugin::get_option( 'enq_fbjs' ) == 'true' ) ) {
496
- wp_enqueue_script( 'wpemfb-fbjs' );
497
- }
498
-
499
- do_action( 'wef_sp_shortcode_action' );
500
-
501
- return apply_filters( 'wef_sp_shortcode_filter', $ret, $type, $atts, $defaults );
502
- }
503
-
504
- return __( 'Invalid Facebook plugin type use it like this: [fb_plugin like]', 'wp-embed-facebook' );
505
- }
506
-
507
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/class-wef-widget.php DELETED
@@ -1,81 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Adds WEF_Widget widget.
5
- */
6
- class WEF_Widget extends WP_Widget {
7
-
8
- /**
9
- * Register widget with WordPress.
10
- */
11
- function __construct() {
12
- parent::__construct(
13
- 'wef_widget', // Base ID
14
- esc_html__( 'WP Embed Facebook', 'wp-embed-facebook' ), // Name
15
- array( 'description' => esc_html__( 'Shortcode widget', 'wp-embed-facebook' ), ) // Args
16
- );
17
- }
18
-
19
- /**
20
- * Front-end display of widget.
21
- *
22
- * @see WP_Widget::widget()
23
- *
24
- * @param array $args Widget arguments.
25
- * @param array $instance Saved values from database.
26
- */
27
- public function widget( $args, $instance ) {
28
- echo $args['before_widget'];
29
- if ( ! empty( $instance['title'] ) ) {
30
- echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ) . $args['after_title'];
31
- }
32
- echo do_shortcode($instance['shortcode']);
33
- echo $args['after_widget'];
34
- }
35
-
36
- /**
37
- * Back-end widget form.
38
- *
39
- * @see WP_Widget::form()
40
- *
41
- * @param array $instance Previously saved values from database.
42
- *
43
- * @return string
44
- */
45
- public function form( $instance ) {
46
- $title = ! empty( $instance['title'] ) ? $instance['title'] : '';
47
- $shortcode = ! empty( $instance['shortcode'] ) ? $instance['shortcode'] : '';
48
- ?>
49
- <p>
50
- <label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php esc_attr_e( 'Title:', 'wp-embed-facebook' ); ?></label>
51
- <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>">
52
- </p>
53
- <p>
54
- <label for="<?php echo esc_attr( $this->get_field_id( 'shortcode' ) ); ?>"><?php esc_attr_e( 'Shortcode:', 'wp-embed-facebook' ); ?><br>
55
- <small>Example: [fb_plugin like]</small></label>
56
- <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'shortcode' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'shortcode' ) ); ?>" type="text" value="<?php echo esc_attr( $shortcode ); ?>">
57
- </p>
58
- <?php
59
- return true;
60
- }
61
-
62
- /**
63
- * Sanitize widget form values as they are saved.
64
- *
65
- * @see WP_Widget::update()
66
- *
67
- * @param array $new_instance Values just sent to be saved.
68
- * @param array $old_instance Previously saved values from database.
69
- *
70
- * @return array Updated safe values to be saved.
71
- */
72
- public function update( $new_instance, $old_instance ) {
73
- $instance = array();
74
- $instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : '';
75
-
76
- $instance['shortcode'] = ( ! empty( $new_instance['shortcode'] ) ) ? strip_tags( $new_instance['shortcode'] ) : '';
77
-
78
- return $instance;
79
- }
80
-
81
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/class-wp-embed-fb-admin.php DELETED
@@ -1,728 +0,0 @@
1
- <?php
2
-
3
- class WP_Embed_FB_Admin extends WP_Embed_FB_Plugin {
4
-
5
- static function hooks() {
6
- //Donate or review notice
7
- add_action( 'admin_notices', __CLASS__ . '::admin_notices' );
8
- add_action( 'wp_ajax_wpemfb_close_warning', __CLASS__ . '::wpemfb_close_warning' );
9
-
10
- //settings page
11
- add_action( 'admin_menu', __CLASS__ . '::add_page' );
12
- add_action( 'in_admin_footer', __CLASS__ . '::in_admin_footer' );
13
-
14
- //editor style
15
- add_action( 'admin_init', __CLASS__ . '::admin_init' );
16
-
17
- //register styles and scripts
18
- add_action( 'admin_enqueue_scripts', __CLASS__ . '::admin_enqueue_scripts' );
19
- }
20
-
21
- static function admin_notices() {
22
- if ( ( self::get_option( 'close_warning2' ) == 'false' ) ) :
23
- ?>
24
- <div class="notice wpemfb_warning is-dismissible">
25
- <h2>WP Embed Facebook</h2>
26
- <p>
27
- <?php
28
- printf( __( 'To enable comment moderation and embed albums, events, profiles and video as HTML5 setup a facebook app on <a id="wef_settings_link" href="%s">settings</a>', 'wp-embed-facebook' ), admin_url('options-general.php?page=embedfacebook') )
29
- ?>
30
- </p>
31
- </div>
32
- <?php
33
- endif;
34
- }
35
-
36
- static function wpemfb_close_warning() {
37
- if ( current_user_can( 'manage_options' ) ) {
38
- $options = self::get_option();
39
- $options['close_warning2'] = 'true';
40
- self::set_options( $options );
41
- }
42
- die;
43
- }
44
-
45
- static function wpemfb_video_down() {
46
- if ( current_user_can( 'manage_options' ) ) {
47
- $options = self::get_option();
48
- $options['close_warning2'] = 'true';
49
- self::set_options( $options );
50
- }
51
- die;
52
- }
53
-
54
- /**
55
- * Add WP Embed Facebook page to Settings
56
- */
57
- static function add_page() {
58
- add_options_page( 'EmbedFacebook', 'Embed Facebook', 'manage_options', 'embedfacebook', array(
59
- __CLASS__,
60
- 'wpemfb_page'
61
- ) );
62
- }
63
-
64
- /**
65
- * Enqueue WP Embed Facebook js and css to admin page
66
- *
67
- * @param string $hook_suffix current page
68
- */
69
- static function admin_enqueue_scripts( $hook_suffix ) {
70
- if ( $hook_suffix == 'settings_page_embedfacebook' ) {
71
- wp_enqueue_style( 'wpemfb-admin-css', self::url() . 'lib/admin/admin.css' );
72
- add_thickbox();
73
- }
74
- wp_enqueue_style( 'wpemfb-default', self::url() . 'templates/default/default.css', array(), false );
75
- wp_enqueue_style( 'wpemfb-classic', self::url() . 'templates/classic/classic.css', array(), false );
76
- wp_enqueue_style( 'wpemfb-lightbox', self::url() . 'lib/lightbox2/css/lightbox.css', array(), false );
77
- }
78
-
79
- static function in_admin_footer() {
80
- global $hook_suffix;
81
- ob_start();
82
- if ( $hook_suffix == 'settings_page_embedfacebook' ) :
83
- ?>
84
- <script type="text/javascript">
85
- jQuery(document).ready(function () {
86
- var sections = jQuery('section');
87
- var tabs = jQuery(".nav-tab-wrapper a");
88
- var hash = jQuery(window.location.hash);
89
- sections.hide();
90
- if (hash.length) {
91
- var index = hash.index() - 4;
92
- console.log(index);
93
- sections.eq(index).show();
94
- jQuery.each(tabs, function (key, value) {
95
- jQuery(value).removeClass("nav-tab-active");
96
- });
97
- tabs.eq(index).addClass('nav-tab-active');
98
- } else {
99
- sections.first().show();
100
- }
101
- tabs.on('click', function (event) {
102
- var index = jQuery(this).index();
103
- var url = window.location.pathname + window.location.search + '#' + sections.eq(index)[0].id;
104
- event.preventDefault();
105
- sections.hide();
106
- jQuery.each(tabs, function (key, value) {
107
- jQuery(value).removeClass("nav-tab-active");
108
- });
109
- sections.eq(index).show();
110
- jQuery(this).addClass('nav-tab-active');
111
- window.history.pushState(sections.eq(index)[0].id, tabs.eq(index)[0].innerText, url);
112
- });
113
- });
114
- </script>
115
- <?php
116
- endif;
117
- if ( self::get_option( 'close_warning2' ) == 'false' ) :
118
- ?>
119
- <script type="text/javascript">
120
- jQuery(document).on('click', '.wpemfb_warning .notice-dismiss', function () {
121
- jQuery.post(ajaxurl, {action: 'wpemfb_close_warning'});
122
- });
123
-
124
- jQuery(document).on('click', '#wef_settings_link', function (e) {
125
- e.preventDefault();
126
- jQuery.post(ajaxurl, {action: 'wpemfb_close_warning'}, function () {
127
- window.location = "<?php echo admin_url("options-general.php?page=embedfacebook"); ?>"
128
- });
129
-
130
- });
131
- </script>
132
- <?php
133
- endif;
134
- echo ob_get_clean();
135
- }
136
-
137
- static function add_action_link( $links ) {
138
- array_unshift( $links, '<a title="WP Embed Facebook Settings" href="' . admin_url( "options-general.php?page=embedfacebook" ) . '">' . __( "Settings" ) . '</a>' );
139
-
140
- return $links;
141
- }
142
-
143
- /**
144
- * Add template editor style to the embeds.
145
- */
146
- static function admin_init() {
147
- //add_editor_style( self::url() . 'templates/default/default.css' );
148
- //add_editor_style( self::url() . 'templates/classic/classic.css' );
149
- //This way I only have to change the version instead of all
150
- add_filter('mce_css',__CLASS__.'::mce_css');
151
- }
152
-
153
- static function mce_css($css){
154
-
155
- $list = array();
156
-
157
- $list[] = add_query_arg(
158
- 'version',
159
- '2.2.1',
160
- WP_Embed_FB_Plugin::url() . 'templates/classic/classic.css'
161
- );
162
- $list[] = add_query_arg(
163
- 'version',
164
- '2.2.1',
165
- WP_Embed_FB_Plugin::url() . 'templates/default/default.css'
166
- );
167
-
168
- if(!empty($css)){
169
- $css .= ',';
170
- }
171
-
172
- return $css . implode( ',', $list );
173
- }
174
-
175
- /**
176
- * Render form sections
177
- *
178
- * @param string|bool $title
179
- */
180
- static function section( $title = '' ) {
181
- if ( $title ) :
182
- if ( is_string( $title ) )
183
- echo "<h3>$title</h3>"
184
- ?>
185
- <table>
186
- <tbody>
187
- <?php
188
- else :
189
- ?>
190
- </tbody>
191
- </table>
192
- <?php
193
- endif;
194
- }
195
-
196
- /**
197
- * Render form fields
198
- *
199
- * @param string $type Type of input field
200
- * @param string $name Input name
201
- * @param string $label Input Label
202
- * @param array $args
203
- * @param array $atts Embed attributes
204
- */
205
- static function field( $type, $name = '', $label = '', $args = array(), $atts = array() ) {
206
- /** @since 2.1.1 */
207
- $options = apply_filters('wpemfb_field_options',self::get_option());
208
- $attsString = '';
209
- if ( ! empty( $atts ) ) {
210
- foreach ( $atts as $att => $val ) {
211
- $attsString .= $att . '="' . $val . '" ';
212
- }
213
- }
214
- switch ( $type ) {
215
- case 'checkbox':
216
- $checked = ( $options[ $name ] === 'true' ) ? 'checked' : '';
217
- ob_start();
218
- ?>
219
- <tr valign="middle">
220
- <th<?php //echo ( $name == 'video_download' ) ? ' style="width: 60%;"' : ''
221
- ?>><label
222
- for="<?php echo $name ?>"><?php echo $label ?></label></th>
223
- <td>
224
- <input type="checkbox" id="<?php echo $name ?>"
225
- name="<?php echo $name ?>" <?php echo $checked ?> <?php echo $attsString ?>/>
226
- </td>
227
- </tr>
228
- <?php
229
- ob_end_flush();
230
- break;
231
- case 'select' :
232
- $option = $options[ $name ];
233
- ob_start();
234
- ?>
235
- <tr valign="middle">
236
- <th><label for="<?php echo $name ?>"><?php echo $label ?></label></th>
237
- <td>
238
- <select name="<?php echo $name ?>" <?php echo $attsString ?>>
239
- <?php
240
- foreach ( $args as $value => $name ) :
241
- if ( is_numeric( $value ) ) {
242
- $value = $name;
243
- }
244
- ?>
245
- <option
246
- value="<?php echo $value ?>" <?php echo $option == $value ? 'selected' : '' ?>><?php echo $name ?></option>
247
- <?php endforeach; ?>
248
- </select>
249
- </td>
250
- </tr>
251
- <?php
252
- ob_end_flush();
253
- break;
254
- case 'number' :
255
- ob_start();
256
- ?>
257
- <tr valign="middle">
258
- <th><label for="<?php echo $name ?>"><?php echo $label ?></label></th>
259
- <td>
260
- <input id="<?php echo $name ?>"
261
- type="<?php echo $type ?>"
262
- name="<?php echo $name ?>" <?php echo isset( $args['required'] ) ? 'required' : '' ?>
263
- value="<?php echo $options[ $name ] ?>" <?php echo $attsString ?>/>
264
- </td>
265
- </tr>
266
- <?php
267
- ob_end_flush();
268
- break;
269
- case 'string' :
270
- ob_start();
271
- ?>
272
- <tr valign="middle">
273
- <th><?php echo $label ?></th>
274
- <td>
275
- <?php echo $name ?>
276
- </td>
277
- </tr>
278
- <?php
279
- ob_end_flush();
280
- break;
281
- default:
282
- ob_start();
283
- ?>
284
- <tr valign="middle">
285
- <th><label for="<?php echo $name ?>"><?php echo $label ?></label></th>
286
- <td>
287
- <input id="<?php echo $name ?>"
288
- type="<?php echo $type ?>"
289
- name="<?php echo $name ?>" <?php echo isset( $args['required'] ) ? 'required' : '' ?>
290
- value="<?php echo esc_attr($options[ $name ]) ?>" <?php echo $attsString ?>
291
- class="regular-text"/>
292
- </td>
293
- </tr>
294
- <?php
295
- ob_end_flush();
296
- break;
297
- }
298
- }
299
-
300
- /**
301
- * Gets $_POST variables and saves them to the database
302
- */
303
- private static function save_data() {
304
- $options = self::get_option();
305
- foreach ( $options as $option => $value ) {
306
- if ( $value == 'true' || $value == 'false' ) {
307
- if ( isset( $_POST[ $option ] ) ) {
308
- $options[ $option ] = 'true';
309
- } else {
310
- $options[ $option ] = 'false';
311
- }
312
- } else {
313
- if ( isset( $_POST[ $option ] ) ) {
314
- $sanitized = sanitize_text_field( $_POST[ $option ] );
315
- $options[ $option ] = stripslashes($sanitized);
316
- }
317
- }
318
- }
319
- /** @since 2.1.1 */
320
- do_action('wpemfb_save_data');
321
-
322
- self::set_options( $options );
323
- }
324
-
325
- /**
326
- * Renders the wp-admin settings page
327
- */
328
- static function wpemfb_page() {
329
- if ( isset( $_POST['save-data'] ) && wp_verify_nonce( $_POST['save-data'], 'W7ziLKoLoj' ) ) {
330
- self::save_data();
331
- }
332
- if ( isset( $_POST['restore-data'] ) && wp_verify_nonce( $_POST['restore-data'], 'W7ziLKoLojka' ) ) {
333
- self::set_options( self::get_defaults() );
334
- }
335
- ?>
336
- <div class="wrap">
337
- <h2>WP Embed Facebook</h2>
338
-
339
- <div class="wef-content">
340
- <form id="config-form" action="" method="post">
341
- <?php wp_nonce_field( 'W7ziLKoLoj', 'save-data' ); ?>
342
- <?php
343
- $has_app = self::has_fb_app();
344
- $tabs = array(
345
- __( 'Magic Embeds', 'wp-embed-facebook' ),
346
- __( 'Social Plugins', 'wp-embed-facebook' ),
347
- __( 'Custom Embeds', 'wp-embed-facebook' ),
348
- __( 'Lightbox', 'wp-embed-facebook' ),
349
- __( 'Advanced', 'wp-embed-facebook' ),
350
- );
351
- $tabs = apply_filters( 'wpemfb_tabs', $tabs );
352
- ?>
353
- <h2 class="nav-tab-wrapper">
354
- <?php
355
- foreach ( $tabs as $tab ) {
356
- $class = $tabs[0] == $tab ? "nav-tab-active" : "";
357
- echo "<a class='nav-tab $class' href='#'>$tab</a>";
358
- }
359
- ?>
360
- </h2><br>
361
- <section id="magic_embeds" class="sections">
362
- <?php
363
- self::section( true );
364
- self::field( 'string',
365
- sprintf( __( 'Auto embeds understand the url you are entering and return a social plugin or a custom embed. <br>They can be activated by <a href="%s" title="WordPress Embeds" target="_blank">pasting the url on the editor</a> or by the [facebook url ] <a href="%s" title="[facebook] Shortcode attributes and examples" target="_blank">shortcode</a>.', 'wp-embed-facebook' ), 'https://codex.wordpress.org/Embeds', 'http://www.wpembedfb.com/shortcode-attributes-and-examples/' ),
366
- '<h3>' . __( 'Auto Embeds', 'wp-embed-facebook' ) . '</h3>' );
367
- self::field( 'checkbox', 'auto_embed_active', __( 'Auto embed url\'s on editor ', 'wp-embed-facebook' ) );
368
- self::field( 'number', 'max_width', __( 'Maximum width in pixels', 'wp-embed-facebook' ), array(), array( 'min' => '0' ) );
369
- self::field( 'checkbox', 'video_as_post', __( 'Embed video as post', 'wp-embed-facebook' ) );
370
- ?>
371
- <?php
372
-
373
- self::field( 'string', sprintf( __( 'The quote plugin lets people select text on your page and add it to their share.<br><a href="%s" target="_blank" title="WP Embed Facebook">Demo</a>', 'wp-embed-facebook' ), 'http://www.wpembedfb.com/demo-site/social-plugins/quote-plugin/' ), '<h3>' . __( 'Quote Plugin', 'wp-embed-facebook' ) . '</h3>' );
374
- self::field( 'checkbox', 'quote_plugin_active', __( 'Active', 'wp-embed-facebook' ) );
375
- self::field( 'text', 'quote_post_types', __( 'Post types', 'wp-embed-facebook' ) );
376
- self::field( 'string', __( 'Post types separated by commas i.e. post,page,attachment', 'wp-embed-facebook' ) );
377
-
378
- self::field( 'string', 'Replace WP comments for FB comments on selected post types', '<h3>' . __( 'Comments', 'wp-embed-facebook' ) . '</h3>' );
379
- self::field( 'checkbox', 'auto_comments_active', __( 'Active', 'wp-embed-facebook' ) );
380
- self::field( 'text', 'auto_comments_post_types', __( 'Post types', 'wp-embed-facebook' ) );
381
- self::field( 'string', __( 'Post types separated by commas i.e. post,page,attachment', 'wp-embed-facebook' ) );
382
- self::field( 'checkbox', 'comments_count_active', __( 'Sync comment count', 'wp-embed-facebook' ) );
383
- self::field( 'string', '<small>Comments count get stored on _wef_comments_count post meta.<br>You can refresh the comment count by updating the post</small>' );
384
-
385
- self::field( 'checkbox', 'comments_open_graph', __( 'Add open graph meta', 'wp-embed-facebook' ) );
386
- self::field( 'string', __( 'Needed to moderate comments', 'wp-embed-facebook' ) . '<br><small>' . sprintf( __( 'Disable this if you already have another plugin adding <a title="Moderation Setup Instructions" target="_blank" href="%s">the fb:app_id meta</a>', 'wp-embed-facebook' ), 'https://developers.facebook.com/docs/plugins/comments/#moderation-setup-instructions' ) . '</small>' );
387
- $comment_notes = __( 'To enable comments moderation setup your App ID', 'wp-embed-facebook' );
388
- $comment_notes .= '<br>';
389
- $comment_notes .= '<small>';
390
- $comment_notes .= sprintf( __( 'If you cant see the "Moderate comment" link above each comment you will need to <a title="Sharing Debugger" target="_blank" href="%s">scrape the url</a>', 'wp-embed-facebook' ), 'https://developers.facebook.com/tools/debug/sharing/' );
391
- $comment_notes .= '<br>';
392
- $comment_notes .= 'An automatic solution for this will be available on future releases<br>';
393
- $comment_notes .= '</small><br>';
394
- self::field( 'string', $comment_notes, __( 'Notes:', 'wp-embed-facebook' ) );
395
-
396
- self::field( 'string', '', '<h3>' . __( 'Facebook settings', 'wp-embed-facebook' ) . '</h3>' );
397
- self::field( 'select', 'sdk_lang', __( 'Social Plugins Language', 'wp-embed-facebook' ), self::get_fb_locales() );
398
- self::field( 'string',
399
- sprintf(
400
- __( 'Creating a Facebook app is easy view the <a href="%s" target="_blank" title="WP Embed FB documentation">step by step guide</a> or view <a href="%s" target="_blank" title="Facebook Apps">your apps</a>.'
401
- , 'wp-embed-facebook'
402
- ),
403
- 'http://www.wpembedfb.com/blog/creating-a-facebook-app-the-step-by-step-guide/',
404
- 'https://developers.facebook.com/apps'
405
- ),
406
- '' );
407
- self::field( 'text', 'app_id', __( 'App ID', 'wp-embed-facebook' ) );
408
- self::field( 'string', 'Needed for comments moderation and custom embeds' );
409
- self::field( 'text', 'app_secret', __( 'App Secret', 'wp-embed-facebook' ) );
410
- self::field( 'string', 'Needed for custom embeds' );
411
- //TODO auto scrape fb share using fb api on updated posts, filtered by post_type
412
- // self::field( 'checkbox', 'scrape_open_graph', __( 'Scrape FB share data', 'wp-embed-facebook' ) );
413
- // self::field( 'string', __( '<small>This will update the contents of the share every time you update a plublished post<br>You need a FB App for this.</small>', 'wp-embed-facebook' ), '<h4>Notes:</h4>' );
414
-
415
- self::section();
416
- ?>
417
- </section>
418
-
419
- <section id="social_plugins" class="sections">
420
- <p>
421
- <?php printf( __( '<a title="Facebook Social Plugins" href="%s" rel="nofollow" target="_blank">Social plugins</a> are pieces of code that Facebook developers created for us mortals.', 'wp-embed-facebook' ), 'https://developers.facebook.com/docs/plugins/' ) ?>
422
- <br>
423
- <strong><?php _e( 'Example:', 'wp-embed-facebook' ) ?></strong>
424
- <br>
425
- <?php _e( 'Embed a like button for the curent page:', 'wp-embed-facebook' ) ?>
426
- <br>
427
- [fb_plugin like share=true layout=button_count]&nbsp;
428
- <?php _e( 'add debug=1 to debug the result.', 'wp-embed-facebook' ) ?>
429
-
430
- </p>
431
- <?php
432
- $vars = get_class_vars( 'WEF_Social_Plugins' );
433
- self::section( true );
434
-
435
- self::field( 'string', '[fb_plugin page href=]', '<h3>' . __( 'Page plugin', 'wp-embed-facebook' ). '<br>' . WEF_Social_Plugins::get_links( 'page' ) . '</h3>' );
436
- self::field( 'number', 'page_width', 'width', array(), array(
437
- 'min' => '220',
438
- 'max' => '500'
439
- ) );
440
- self::field( 'number', 'page_height', 'height', array(), array( 'min' => '70' ) );
441
- self::field( 'text', 'page_tabs', 'tabs' );
442
- self::field( 'string', __( 'Tabs separated by commas i.e. timeline,events,messages' ) );
443
- self::field( 'checkbox', 'page_hide-cover', 'hide-cover' );
444
- self::field( 'checkbox', 'page_show-facepile', 'show-facepile' );
445
- self::field( 'checkbox', 'page_hide-cta', 'hide-cta' );
446
- self::field( 'checkbox', 'page_small-header', 'small-header' );
447
- self::field( 'checkbox', 'page_adapt-container-width', 'adapt-container-width' );
448
-
449
- self::field( 'string', '[fb_plugin post href=]', '<h3>' . __( 'Post plugin', 'wp-embed-facebook' ). '<br>' . WEF_Social_Plugins::get_links( 'post' ) . '</h3>' );
450
- self::field( 'number', 'post_width', 'width', array(), array(
451
- 'min' => '350',
452
- 'max' => '750'
453
- ) );
454
- self::field( 'checkbox', 'post_show-text', 'show-text' );
455
-
456
- self::field( 'string', '[fb_plugin video href=]', '<h3>' . __( 'Video', 'wp-embed-facebook' ). '<br>' . WEF_Social_Plugins::get_links( 'video' ) . '</h3>' );
457
- self::field( 'checkbox', 'video_allowfullscreen', 'allowfullscreen' );
458
- self::field( 'checkbox', 'video_autoplay', 'autoplay' );
459
- self::field( 'checkbox', 'video_show-text', 'show-text' );
460
- self::field( 'checkbox', 'video_show-captions', 'show-captions' );
461
- self::field( 'number', 'video_width', 'width', array(), array( 'min' => '220' ) );
462
-
463
- self::field( 'string', '[fb_plugin comment href=]', '<h3>' . __( 'Single comment', 'wp-embed-facebook' ). '<br>' . WEF_Social_Plugins::get_links( 'comment' ) . '</h3>' );
464
- self::field( 'number', 'comment_width', 'width', array(), array( 'min' => '220' ) );
465
- self::field( 'checkbox', 'comment_include-parent', 'include-parent' );
466
-
467
- self::field( 'string', '[fb_plugin comments]<br><small>' . __( 'Activate them on all your posts on the "Magic embeds" section', 'wp-embed-facebook' ) . '</small>', '<h3>' . __( 'Comments plugin', 'wp-embed-facebook' ). '<br>' . WEF_Social_Plugins::get_links( 'comments' ) . '</h3>' );
468
- self::field( 'select', 'comments_colorscheme', 'colorscheme', $vars['comments']['colorscheme'] );
469
- self::field( 'checkbox', 'comments_mobile', 'mobile' );
470
- self::field( 'number', 'comments_num_posts', 'num_posts', array(), array( 'min' => '1' ) );
471
- self::field( 'select', 'comments_order_by', 'order_by', $vars['comments']['order_by'] );
472
- self::field( 'text', 'comments_width', 'width' );
473
-
474
- self::field( 'string', '[fb_plugin quote]<br><small>' . __( 'Activate it on all your posts on the "Magic embeds" section', 'wp-embed-facebook' ) . '</small>', '<h3>' . __( 'Quote plugin', 'wp-embed-facebook' ). '<br>' . WEF_Social_Plugins::get_links( 'quote' ) . '</h3>' );
475
- self::field( 'select', 'quote_layout', 'layout', $vars['quote']['layout'] );
476
-
477
- self::field( 'string', '[fb_plugin save]', '<h3>' . __( 'Save button', 'wp-embed-facebook' ). '<br>' . WEF_Social_Plugins::get_links( 'save' ) . '</h3>' );
478
- self::field( 'select', 'save_size', 'size', $vars['save']['size'] );
479
-
480
- self::field( 'string', '[fb_plugin like]', '<h3>' . __( 'Like button', 'wp-embed-facebook' ). '<br>' . WEF_Social_Plugins::get_links( 'like' ) . '</h3>' );
481
- self::field( 'select', 'like_action', 'action', $vars['like']['action'] );
482
- self::field( 'select', 'like_colorscheme', 'colorscheme', $vars['like']['colorscheme'] );
483
- self::field( 'checkbox', 'like_kid-directed-site', 'kid-directed-site' );
484
- self::field( 'select', 'like_layout', 'layout', $vars['like']['layout'] );
485
- self::field( 'checkbox', 'like_share', 'share' );
486
- self::field( 'checkbox', 'like_show-faces', 'show-faces' );
487
- self::field( 'number', 'like_width', 'width', array(), array( 'min' => '225' ) );
488
-
489
- self::field( 'string', '[fb_plugin send]', '<h3>' . __( 'Send button', 'wp-embed-facebook' ). '<br>' . WEF_Social_Plugins::get_links( 'send' ) . '</h3>' );
490
- self::field( 'select', 'send_colorscheme', 'colorscheme', $vars['send']['colorscheme'] );
491
- self::field( 'checkbox', 'send_kid-directed-site', 'kid-directed-site' );
492
-
493
- self::field( 'string', '[fb_plugin share]', '<h3>' . __( 'Share button', 'wp-embed-facebook' ). '<br>' . WEF_Social_Plugins::get_links( 'share' ) . '</h3>' );
494
- self::field( 'select', 'share_layout', 'layout', $vars['share']['layout'] );
495
- self::field( 'checkbox', 'share_mobile_iframe', 'mobile_iframe' );
496
-
497
- self::field( 'string', '[fb_plugin follow href=]', '<h3>' . __( 'Follow button', 'wp-embed-facebook' ). '<br>' . WEF_Social_Plugins::get_links( 'follow' ) . '</h3>' );
498
- self::field( 'select', 'follow_colorscheme', 'colorscheme', $vars['follow']['colorscheme'] );
499
- self::field( 'checkbox', 'follow_kid-directed-site', 'kid-directed-site' );
500
- self::field( 'select', 'follow_layout', 'layout', $vars['follow']['layout'] );
501
- self::field( 'checkbox', 'follow_show-faces', 'show-faces' );
502
- self::field( 'number', 'follow_width', 'width', array(), array(
503
- 'min' => '225',
504
- 'max' => '450'
505
- ) );
506
-
507
- self::field( 'string', 'Make the embed smaller according to screen size', '<h3>' . __( 'Adaptive view', 'wp-embed-facebook' ) . '</h3>' );
508
- self::field( 'checkbox', 'adaptive_fb_plugin', 'active' );
509
- self::section();
510
-
511
- ?>
512
- </section>
513
-
514
- <section id="custom_embeds" class="sections">
515
- <?php if ( ! $has_app ) : ?>
516
- <div style="display: none">
517
- <?php endif; ?>
518
- <?php
519
- self::section( __( "General", 'wp-embed-facebook' ) );
520
- /**
521
- * Filter available templates
522
- *
523
- * @since 2.0.2
524
- */
525
- $templates = apply_filters( 'wpemfb_admin_theme', array(
526
- 'default' => 'Default',
527
- 'classic' => 'Classic'
528
- ) );
529
- self::field( 'select', 'theme', 'Template', $templates );
530
-
531
- self::field( 'string', '', '<h3>' . __( 'Albums', 'wp-embed-facebook' ) . '</h3>' );
532
- self::field( 'number', 'max_photos', __( 'Number of Photos', 'wp-embed-facebook' ), array(), array( 'min' => '0' ) );
533
-
534
- self::field( 'string', '', '<h3>' . __( 'Events', 'wp-embed-facebook' ) . '</h3>' );
535
- self::field( 'checkbox', 'ev_local_tz', __( 'Use WP time to calculate the date', 'wp-embed-facebook' ) );
536
- self::field( 'text', 'event_start_time_format', __( 'Time format', 'wp-embed-facebook' ) );
537
- self::field( 'string', '<a href="https://codex.wordpress.org/Formatting_Date_and_Time" target="_blank">'.__('examples','wp-embed-facebook').'<a/>', '' );
538
-
539
- self::field( 'string', '', '<h3>' . __( 'Pages', 'wp-embed-facebook' ) . '</h3>' );
540
- self::field( 'checkbox', 'raw_page', __( 'Use by default on "Auto Embeds"', 'wp-embed-facebook' ) );
541
- self::field( 'checkbox', 'show_like', __( 'Show like button', 'wp-embed-facebook' ) );
542
- self::field( 'number', 'max_posts', __( 'Number of posts', 'wp-embed-facebook' ), array(), array( 'min' => '0' ) );
543
-
544
- self::field( 'string', '', '<h3>' . __( 'Photos', 'wp-embed-facebook' ) . '</h3>' );
545
- self::field( 'checkbox', 'raw_photo', __( 'Use by default on "Auto Embeds"', 'wp-embed-facebook' ) );
546
-
547
- self::field( 'string', '', '<h3>' . __( 'Posts', 'wp-embed-facebook' ) . '</h3>' );
548
- self::field( 'checkbox', 'raw_post', __( 'Use by default on "Auto Embeds"', 'wp-embed-facebook' ) );
549
- self::field( 'text', 'single_post_time_format', __( 'Time format', 'wp-embed-facebook' ) );
550
- self::field( 'string', '<a href="https://codex.wordpress.org/Formatting_Date_and_Time" target="_blank">'.__('examples','wp-embed-facebook').'<a/>', '' );
551
-
552
-
553
-
554
- self::field( 'string', '', '<h3>' . __( 'Videos', 'wp-embed-facebook' ) . '</h3>' );
555
- self::field( 'checkbox', 'raw_video', __( 'Use by default on "Auto Embeds"', 'wp-embed-facebook' ) );
556
- self::field( 'checkbox', 'video_ratio', __( 'Force 16:9 ratio', 'wp-embed-facebook' ) );
557
-
558
- self::field( 'string', '', '<h3>' . __( 'Profiles', 'wp-embed-facebook' ) . '</h3>' );
559
- self::field( 'checkbox', 'show_follow', __( 'Show follow button', 'wp-embed-facebook' ) );
560
-
561
- self::section();
562
- ?>
563
- <p>
564
- <?php _e( 'Custom embeds can be triggered using the [facebook url] or [embed] shortcodes also by activating "Auto Embeds" on Magic Embeds section.', 'wp-embed-facebook' ) ?>
565
- <br>
566
- <strong><?php _e( 'Example:', 'wp-embed-facebook' ) ?></strong>
567
- <br>
568
- Page custom embed<br>
569
- [facebook https://www.facebook.com/sydneyoperahouse/ social_plugin=false posts=2]
570
- <br>
571
- <?php printf( __( '<a href="%s" title="WP Embed Facebook Shortcode" target="_blank">Read More</a>', 'wp-embed-facebook' ), 'http://www.wpembedfb.com/shortcode-attributes-and-examples/' ) ?>
572
- </p>
573
- <?php
574
- if ( ! $has_app ) :
575
- ?>
576
- </div>
577
- <p>
578
- <?php _e( 'By default you can only embed public pages, videos, photos and posts.', 'wp-embed-facebook' ) ?>
579
- <br><?php _e( 'To embed albums, events, profiles and video as HTML5 you will need to setup a Facebook App on Magic Embeds section', 'wp-embed-facebook' ) ?>
580
- </p>
581
- <?php
582
- endif;
583
- ?>
584
- </section>
585
-
586
- <section id="lightbox" class="sections">
587
- <h4>Lightbox is only active on custom embeds.</h4>
588
- <?php if ( ! $has_app ) : ?>
589
- <div style="display: none">
590
- <?php endif; ?>
591
- <?php
592
- self::section( __( "Lightbox Options", 'wp-embed-facebook' ) );
593
- self::field( 'checkbox', 'LB_showImageNumberLabel', __( 'Show Image Number Label', 'wp-embed-facebook' ) );
594
- self::field( 'text', 'LB_albumLabel', __( 'Album Label', 'wp-embed-facebook' ) );
595
- self::field( 'number', 'LB_fadeDuration', __( 'Fade Duration', 'wp-embed-facebook' ), array(), array( 'min' => '0' ) );
596
- self::field( 'number', 'LB_resizeDuration', __( 'Resize Duration', 'wp-embed-facebook' ), array(), array( 'min' => '0' ) );
597
- self::field( 'number', 'LB_positionFromTop', __( 'Position From Top', 'wp-embed-facebook' ), array(), array( 'min' => '0' ) );
598
- self::field( 'number', 'LB_maxHeight', __( 'Max Height', 'wp-embed-facebook' ), array(), array( 'min' => '0' ) );
599
- self::field( 'number', 'LB_maxWidth', __( 'Max Width', 'wp-embed-facebook' ), array(), array( 'min' => '0' ) );
600
- self::field( 'checkbox', 'LB_alwaysShowNavOnTouchDevices', __( 'Always Show Nav On TouchDevices', 'wp-embed-facebook' ) );
601
- self::field( 'checkbox', 'LB_fitImagesInViewport', __( 'Fit Images In Viewport', 'wp-embed-facebook' ) );
602
- self::field( 'checkbox', 'LB_disableScrolling', __( 'Disable Scrolling', 'wp-embed-facebook' ) );
603
- self::field( 'checkbox', 'LB_wrapAround', __( 'Loop Through Album', 'wp-embed-facebook' ) );
604
- self::field( 'checkbox', 'LB_wpGallery', __( 'Use this lightbox on the [gallery] shortcode', 'wp-embed-facebook' ) );
605
- self::field( 'string','<small>Experimental</small>' );
606
-
607
- self::section();
608
- if ( ! $has_app ) :
609
- ?>
610
- </div>
611
- <p>
612
- <?php _e( 'By default you can only embed public pages, videos, photos and posts.', 'wp-embed-facebook' ) ?>
613
- <br><?php _e( 'To embed albums, events, profiles and video as HTML5 you will need to setup a Facebook App on Magic Embeds section', 'wp-embed-facebook' ) ?>
614
- </p>
615
- <?php
616
- endif;
617
- ?>
618
- </section>
619
-
620
- <?php do_action( 'wpemfb_options' ); ?>
621
-
622
- <section id="advanced" class="sections">
623
- <p><?php _e('Beware altering this options without the proper knowledge could make the world disappear.','wp-embed-facebook') ?></p>
624
- <?php
625
- self::section( true );
626
- self::field( 'string', '', '<h3>' . __( 'Enqueue styles and scripts', 'wp-embed-facebook' ) . '</h3>' );
627
- self::field( 'checkbox', 'enq_when_needed', __( 'Only when there is an embed present', 'wp-embed-facebook' ) );
628
- self::field( 'checkbox', 'permalink_on_social_plugins', __( 'Use permalinks on social plugins urls', 'wp-embed-facebook' ) );
629
- self::field( 'checkbox', 'enq_fbjs', __( 'Facebook SDK', 'wp-embed-facebook' ) );
630
- self::field( 'checkbox', 'enqueue_style', __( 'Template Styles', 'wp-embed-facebook' ) );
631
- self::field( 'checkbox', 'enq_wpemfb', __( 'Adaptive social plugins script', 'wp-embed-facebook' ) );
632
-
633
- self::field( 'string', '', '<h3>' . __( 'Lightbox', 'wp-embed-facebook' ) . '</h3>' );
634
- self::field( 'checkbox', 'enq_lightbox', __( 'Enqueue script', 'wp-embed-facebook' ) );
635
- self::field( 'text', 'lightbox_att', __( 'Attribute', 'wp-embed-facebook' ) );
636
-
637
- self::field( 'string', '', '<h3>' . __( 'Other Options', 'wp-embed-facebook' ) . '</h3>' );
638
- self::field( 'checkbox', 'fb_root', __( 'Add fb-root on top of content', 'wp-embed-facebook' ) );
639
- self::field( 'checkbox', 'enq_fbjs_global', __( 'Force Facebook SDK script on all site', 'wp-embed-facebook' ) );
640
- self::field( 'checkbox', 'force_app_token', __( 'Force app token', 'wp-embed-facebook' ) );
641
- $versions = array(
642
- 'v2.3' => '2.3',
643
- 'v2.4' => '2.4',
644
- 'v2.5' => '2.5',
645
- 'v2.6' => '2.6',
646
- 'v2.7' => '2.7',
647
- 'v2.8' => '2.8',
648
- 'v2.9' => '2.9',
649
- 'v2.10' => '2.10',
650
- 'v2.11' => '2.11',
651
- );
652
- self::field( 'select', 'sdk_version', 'Facebook SDK Version', $versions );
653
-
654
- self::section();
655
- ?>
656
- </section>
657
-
658
- <input type="hidden" name="close_warning2" value="true">
659
- <input type="submit" name="submit" class="button button-primary"
660
- value="<?php _e( 'Save all settings', 'wp-embed-facebook' ) ?>"/>
661
- </form>
662
- <br>
663
-
664
- <form method="post"
665
- onsubmit="return confirm('<?php _e( 'Restore default values?', 'wp-embed-facebook' ) ?>');"
666
- style="text-align: right">
667
- <input type="submit" name="restore" class="button"
668
- value="<?php _e( 'Restore defaults', 'wp-embed-facebook' ) ?>"/>
669
- <br>
670
- <?php wp_nonce_field( 'W7ziLKoLojka', 'restore-data' ); ?>
671
- <br>
672
- </form>
673
- </div>
674
- <div class="wef-sidebar">
675
- <?php ob_start(); ?>
676
- <h1><?php _e( 'Premium Extension Available', 'wp-embed-facebook' ) ?></h1>
677
- <br>
678
-
679
- <div class="features-list">
680
- <p><?php _e( 'Shortcodes for embedding a full event or page.', 'wp-embed-facebook' ) ?></p>
681
-
682
- <p><?php _e( 'Elegant template for custom embeds', 'wp-embed-facebook' ) ?></p>
683
-
684
- <p><?php _e( 'Albums with more that 100 photos.', 'wp-embed-facebook' ) ?></p>
685
-
686
- <p><?php _e( 'One Year Premium Support', 'wp-embed-facebook' ) ?></p>
687
-
688
- <p>
689
- <a class="button button-red" title="Premium extension" target="_blank"
690
- href="http://www.wpembedfb.com/premium"><?php _e( 'Check it out', 'wp-embed-facebook' ) ?></a>
691
- </p>
692
-
693
- <p>
694
- <?php _e( 'Plus new features cooking', 'wp-embed-facebook' ) ?>
695
- <br>
696
- <small>
697
- <?php _e( 'Embed private data, shortcode creator, widgets, special templates for albums and pages', 'wp-embed-facebook' ) ?>
698
- </small>
699
- </p>
700
- </div>
701
- <hr>
702
- <h4><?php _e( "This free plugin has taken thousands of hours to maintain and develop", 'wp-embed-facebook' ) ?></h4>
703
-
704
- <p>
705
- <strong>
706
- <a href="http://wordpress.org/plugins/wp-embed-facebook" title="wordpress.org"
707
- target="_blank"><?php _e( "Rate it", 'wp-embed-facebook' ) ?>
708
- <br>
709
- <span style="color: gold;"> &#9733;&#9733;&#9733;&#9733;&#9733; </span>
710
- </a>
711
- </strong>
712
- </p>
713
-
714
- <p><strong><a target="_blank" title="paypal"
715
- href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=R8Q85GT3Q8Q26">👾<?php _e( 'Donate', 'wp-embed-facebook' ) ?>
716
- 👾</a></strong>
717
- </p>
718
- <hr>
719
- <p><a href="http://www.wpembedfb.com" title="plugin website" target="_blank">
720
- <small><?php _e( 'More information', 'wp-embed-facebook' ) ?></small>
721
- </a></p>
722
- <?php echo apply_filters( 'wpemfb_admin', ob_get_clean() ); ?>
723
-
724
- </div>
725
- </div>
726
- <?php
727
- }
728
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/class-wp-embed-fb-plugin.php DELETED
@@ -1,575 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Main plugin file, stores defauls and utilities used along all the plugin.
5
- *
6
- */
7
- class WP_Embed_FB_Plugin {
8
- const option_name = 'wpemfb_options';
9
- private static $path = null;
10
- private static $url = null;
11
- private static $options = null;
12
- private static $defaults = null;
13
- private static $lb_defaults = null;
14
- private static $has_photon = null;
15
- private static $wp_timezone = null;
16
-
17
- /**
18
- * @var array $link_types Link fields needed for rendering a social plugin
19
- */
20
- static $link_types = array( 'href', 'uri' );
21
-
22
- static function hooks() {
23
- //Session start when there is a facebook app
24
- add_action( 'init', __CLASS__ . '::init', 999 );
25
-
26
- //Translation string
27
- add_action( 'plugins_loaded', __CLASS__ . '::plugins_loaded' );
28
-
29
- //register all scripts and styles
30
- add_action( 'wp_enqueue_scripts', __CLASS__ . '::wp_enqueue_scripts' );
31
-
32
- add_action( 'widgets_init', __CLASS__ . '::widgets_init' );
33
-
34
- }
35
-
36
- static function install() {
37
- $type = ( get_option( 'wpemfb_theme' ) || get_option( self::option_name ) ) ? 'reactivated' : 'activated';
38
- self::get_option();
39
-
40
- return self::whois( $type );
41
- }
42
-
43
- /**
44
- * Delete all plugin options on uninstall
45
- */
46
- static function uninstall() {
47
- if ( is_multisite() ) {
48
- $sites = get_sites();
49
- foreach ( $sites as $site ) {
50
- switch_to_blog( $site['blog_id'] );
51
- delete_option( self::option_name );
52
- delete_post_meta_by_key( '_wef_comment_count' );
53
- }
54
- restore_current_blog();
55
- } else {
56
- delete_option( self::option_name );
57
- delete_post_meta_by_key( '_wef_comment_count' );
58
- }
59
-
60
- return self::whois( 'uninstalled' );
61
- }
62
-
63
- static function deactivate() {
64
- return self::whois( 'deactivated' );
65
- }
66
-
67
- /**
68
- * @return array old options to be deleated since 2.1
69
- */
70
- static function old_options() {
71
- return array(
72
- 'show_posts',
73
- 'close_warning',
74
- 'height',
75
- 'close_warning1',
76
- 'max_width',
77
- 'max_photos',
78
- 'max_posts',
79
- 'app_id',
80
- 'app_secret',
81
- 'proportions',
82
- 'show_like',
83
- 'fb_root',
84
- 'theme',
85
- 'show_follow',
86
- 'video_ratio',
87
- 'video_as_post',
88
- 'raw_video',
89
- 'raw_photo',
90
- 'raw_post',
91
- 'raw_page',
92
- 'enqueue_style',
93
- 'enq_lightbox',
94
- 'enq_wpemfb',
95
- 'enq_fbjs',
96
- 'ev_local_tz',
97
- 'page_height',
98
- 'page_show_faces',
99
- 'page_small_header',
100
- 'page_hide_cover',
101
- 'page_show_posts',
102
- 'sdk_lang',
103
- 'close_warning2',
104
- 'force_app_token',
105
- 'video_download',
106
- 'sdk_version'
107
- );
108
- }
109
-
110
- static function get_defaults() {
111
- if ( self::$defaults === null ) {
112
- $locale = get_locale();
113
- $locale = str_replace( array(
114
- 'es_MX',
115
- 'es_AR',
116
- 'es_CL',
117
- 'es_GT',
118
- 'es_PE',
119
- 'es_VE'
120
- ), 'es_LA', $locale );
121
-
122
- $fb_locales = self::get_fb_locales();
123
-
124
- if(isset($fb_locales[$locale])){
125
- $sdk_lang = $locale;
126
- } else {
127
- $sdk_lang = 'en_US';
128
- }
129
-
130
- $vars = WEF_Social_Plugins::get_defaults();
131
- $social_options = array();
132
- foreach ( $vars as $key => $value ) {
133
- foreach ( $value as $d_key => $d_value ) {
134
- if ( ! in_array( $d_key, self::$link_types ) ) {
135
- $social_options["{$key}_$d_key"] = $d_value;
136
- }
137
- }
138
- }
139
- self::$defaults = array(
140
- 'sdk_lang' => $sdk_lang,
141
- 'max_width' => '450',
142
- 'max_photos' => '24',
143
- 'max_posts' => '0',
144
- 'app_id' => '',
145
- 'app_secret' => '',
146
- 'theme' => 'default',
147
- 'sdk_version' => 'v2.11',
148
- 'show_like' => 'true',
149
- 'fb_root' => 'true',
150
- 'show_follow' => 'true',
151
- 'video_ratio' => 'false',
152
- 'video_as_post' => 'false',
153
- 'raw_video' => 'false',
154
- 'raw_photo' => 'false',
155
- 'raw_post' => 'false',
156
- 'raw_page' => 'false',
157
- 'enqueue_style' => 'true',
158
- 'enq_lightbox' => 'true',
159
- 'enq_wpemfb' => 'true',
160
- 'enq_fbjs' => 'true',
161
- 'ev_local_tz' => 'false',
162
- 'close_warning2' => 'false',
163
- 'force_app_token' => 'true',
164
- 'video_download' => 'false',
165
- 'enq_fbjs_global' => 'false',
166
- 'enq_when_needed' => 'false',
167
- //Lightbox options
168
- 'LB_albumLabel' => 'Image %1 of %2',
169
- 'LB_alwaysShowNavOnTouchDevices' => 'false',
170
- 'LB_showImageNumberLabel' => 'true',
171
- 'LB_wrapAround' => 'false',
172
- 'LB_disableScrolling' => 'false',
173
- 'LB_fitImagesInViewport' => 'true',
174
- 'LB_maxWidth' => '0',
175
- 'LB_maxHeight' => '0',
176
- 'LB_positionFromTop' => '50',
177
- 'LB_resizeDuration' => '700',
178
- 'LB_fadeDuration' => '500',
179
- 'LB_wpGallery' => 'false',
180
- 'FB_plugins_as_iframe' => 'false',
181
- 'adaptive_fb_plugin' => 'false',
182
- 'quote_plugin_active' => 'false',
183
- 'quote_post_types' => 'post,page',
184
- 'auto_embed_active' => 'true',
185
- //
186
- // 'auto_embed_post_types' => '',//TODO filter embed register handler per post_type
187
- 'auto_comments_active' => 'false',
188
- 'auto_comments_post_types' => 'post',
189
- 'comments_count_active' => 'true',
190
- 'comments_open_graph' => 'true',
191
- // 'scrape_open_graph' => 'true',
192
- 'lightbox_att' => 'data-lightbox="roadtrip"',
193
- 'event_start_time_format' => 'l, j F Y g:i a',
194
- 'single_post_time_format' => 'l, j F Y g:s a',
195
- 'single_post_from_like' => 'false',
196
- 'permalink_on_social_plugins' => 'false',
197
- ) + $social_options;
198
- }
199
-
200
- return apply_filters( 'wpemfb_defaults', self::$defaults );
201
- }
202
-
203
- static function get_lb_defaults() {
204
- if ( self::$lb_defaults === null ) {
205
- $keys = array(
206
- 'albumLabel',
207
- 'alwaysShowNavOnTouchDevices',
208
- 'showImageNumberLabel',
209
- 'wrapAround',
210
- 'disableScrolling',
211
- 'fitImagesInViewport',
212
- 'maxWidth',
213
- 'maxHeight',
214
- 'positionFromTop',
215
- 'resizeDuration',
216
- 'fadeDuration',
217
- 'wpGallery'
218
- );
219
- self::$lb_defaults = array();
220
- $defaults = self::get_defaults();
221
- foreach ( $keys as $key ) {
222
- self::$lb_defaults[ $key ] = $defaults[ 'LB_' . $key ];
223
- }
224
- }
225
-
226
- return self::$lb_defaults;
227
- }
228
-
229
- /**
230
- * session start if necessary
231
- */
232
- static function init() {
233
- if ( self::has_fb_app() ) {
234
- if ( version_compare( phpversion(), '5.4.0', '<' ) ) {
235
- if ( session_id() == '' ) {
236
- session_start();
237
- }
238
- } elseif ( session_status() == PHP_SESSION_NONE ) {
239
- session_start();
240
- }
241
- if ( (float) substr( WP_Embed_FB_Plugin::get_option( 'sdk_version' ), 1 ) <= 2.3 ) {
242
- $options = WP_Embed_FB_Plugin::get_option();
243
- $options['sdk_version'] = 'v2.11';
244
- WP_Embed_FB_Plugin::set_options( $options );
245
- }
246
- }
247
- }
248
-
249
- /**
250
- * Load translation file
251
- */
252
- static function plugins_loaded() {
253
-
254
- load_plugin_textdomain( 'wp-embed-facebook', false, 'wp-embed-facebook/lang' );
255
-
256
- }
257
-
258
- /**
259
- * Enqueue wp embed facebook styles
260
- */
261
- static function wp_enqueue_scripts() {
262
- foreach ( array( 'default', 'classic' ) as $theme ) {
263
- $on_theme = get_stylesheet_directory() . "/plugins/wp-embed-facebook/$theme/$theme.css";
264
- $true_path = self::url() . "templates/$theme/$theme.css";
265
- if ( file_exists( $on_theme ) ) {
266
- $true_path = get_stylesheet_directory_uri() . "/plugins/wp-embed-facebook/$theme/$theme.css";
267
- }
268
-
269
- wp_register_style( 'wpemfb-' . $theme, $true_path, array(), '1.1' );
270
- }
271
- wp_register_style( 'wpemfb-lightbox', self::url() . 'lib/lightbox2/css/lightbox.css', array( ), '1.0' );
272
- wp_register_script( 'wpemfb-lightbox', self::url() . 'lib/lightbox2/js/lightbox.min.js', array( 'jquery' ), '1.0' );
273
- $lb_defaults = self::get_lb_defaults();
274
- $options = self::get_option();
275
- $translation_array = array();
276
- foreach ( $lb_defaults as $default_name => $value ) {
277
- if ( $options[ 'LB_' . $default_name ] !== $value ) {
278
- $translation_array[ $default_name ] = $options[ 'LB_' . $default_name ];
279
- }
280
- }
281
- if ( ! empty( $translation_array ) ) {
282
- //TODO use something like wp_add_inline_script('wpemfb-lightbox','new Lightbox(WEF_LB)') for LightBox options
283
- wp_localize_script( 'wpemfb-lightbox', 'WEF_LB', $translation_array );
284
- }
285
- wp_register_script( 'wpemfb', self::url() . 'lib/js/wpembedfb.min.js', array( 'jquery' ), '1.0',true );
286
-
287
- wp_register_script( 'wpemfb-fbjs', self::url() . 'lib/js/fb.min.js', array( ), '1.1' );
288
- $translation_array = array(
289
- 'local' => $options['sdk_lang'],
290
- 'version' => $options['sdk_version'],
291
- 'fb_id' => $options['app_id'] == '0' ? '' : $options['app_id']
292
- );
293
- if ( $options['auto_comments_active'] == 'true' && $options['comments_count_active'] == 'true' ) {
294
- $translation_array = $translation_array + array(
295
- 'ajaxurl' => admin_url( 'admin-ajax.php' ),
296
- );
297
- }
298
- wp_localize_script( 'wpemfb-fbjs', 'WEF', $translation_array );
299
-
300
- if ( $options['enq_when_needed'] == 'false' ) {
301
- if ( $options['enq_lightbox'] == 'true' ) {
302
- wp_enqueue_script( 'wpemfb-lightbox' );
303
- wp_enqueue_style( 'wpemfb-lightbox' );
304
- }
305
- if ( $options['enq_wpemfb'] == 'true' ) {
306
- wp_enqueue_script( 'wpemfb' );
307
- }
308
- if ( $options['enq_fbjs'] == 'true' ) {
309
- wp_enqueue_script( 'wpemfb-fbjs' );
310
- }
311
- }
312
- if ( $options['enq_fbjs_global'] == 'true' ) {
313
- wp_enqueue_script( 'wpemfb-fbjs' );
314
- }
315
-
316
- if ( ( $options['auto_comments_active'] == 'true' ) && is_single() ) {
317
- $array = WP_Embed_FB_Plugin::string_to_array( $options['auto_comments_post_types'] );
318
- $queried_object = get_queried_object();
319
- if ( in_array( $queried_object->post_type, $array ) ) {
320
- wp_enqueue_script( 'wpemfb-fbjs' );
321
- }
322
- }
323
- }
324
-
325
- static function path() {
326
- if ( self::$path == null ) {
327
- self::$path = dirname( plugin_dir_path( __FILE__ ) ) . '/';
328
- }
329
-
330
- return self::$path;
331
- }
332
-
333
- static function url() {
334
- if ( self::$url == null ) {
335
- self::$url = dirname( plugin_dir_url( __FILE__ ) ) . '/';
336
- }
337
-
338
- return self::$url;
339
- }
340
-
341
- static function get_option( $option = null ) {
342
- if ( ! is_array( self::$options ) ) {
343
- $options = get_option( self::option_name );
344
- $defaults = self::get_defaults();
345
- if ( is_array( $options ) ) {
346
- if ( $options == $defaults ) {
347
- self::$options = $options;
348
- } else {
349
- //check option array for corruption
350
- $compare = array();
351
- foreach ( $defaults as $default_key => $default_value ) {
352
- $compare[ $default_key ] = isset( $options[ $default_key ] ) ? $options[ $default_key ] : $default_value;
353
- }
354
- if ( $compare !== $options ) {
355
- if ( isset( $option['page_show_faces'] ) ) {
356
- $compare['page_show-facepile'] = $option['page_show_faces'];
357
- $compare['page_small-header'] = $option['page_small_header'];
358
- $compare['page_hide-cover'] = $option['page_hide_cover'];
359
- if ( $option['page_show_posts'] == 'true' ) {
360
- $compare['page_tabs'] = 'timeline';
361
- }
362
- }
363
- self::set_options( $compare );
364
- } else {
365
- //set cache value
366
- self::$options = $options;
367
- }
368
- }
369
- } else {
370
- if ( get_option( 'wpemfb_theme' ) ) {
371
- //upgrade options
372
- foreach ( self::old_options() as $old_option ) {
373
- if ( isset( $defaults[ $old_option ] ) ) {
374
- $defaults[ $old_option ] = get_option( 'wpemfb_' . $old_option );
375
- }
376
- delete_option( 'wpemfb_' . $old_option );
377
- }
378
- self::set_options( $defaults );
379
- } else {
380
- //new instalation
381
- //TODO get app id and secret from other plugins Jetpack or WP Social Login or... one day...
382
- self::set_options( $defaults );
383
- }
384
- }
385
- }
386
- if ( $option ) {
387
- return isset( self::$options[ $option ] ) ? self::$options[ $option ] : false;
388
- } else {
389
- return self::$options;
390
- }
391
- }
392
-
393
- static function set_options( $options ) {
394
- update_option( self::option_name, $options, true );
395
- self::$options = $options;
396
- }
397
-
398
- static function has_fb_app() {
399
- $app_id = WP_Embed_FB_Plugin::get_option( 'app_id' );
400
- $app_secret = WP_Embed_FB_Plugin::get_option( 'app_secret' );
401
- if ( empty( $app_id ) || empty( $app_secret ) || $app_id === '0' || $app_secret === '0' ) {
402
- return false;
403
- } else {
404
- return true;
405
- }
406
- }
407
-
408
- static function has_photon() {
409
- if ( self::$has_photon === null ) {
410
- if ( class_exists( 'Jetpack' ) && method_exists( 'Jetpack', 'get_active_modules' ) && in_array( 'photon', Jetpack::get_active_modules() ) ) {
411
- self::$has_photon = true;
412
- } else {
413
- self::$has_photon = false;
414
- }
415
- }
416
-
417
- return self::$has_photon;
418
- }
419
-
420
- static function get_fb_locales() {
421
- return array(
422
-
423
- 'af_ZA' => 'Afrikaans',
424
- 'ar_AR' => 'Arabic',
425
- 'ar_IN' => 'Assamese',
426
- 'az_AZ' => 'Azerbaijani',
427
- 'be_BY' => 'Belarusian',
428
- 'bg_BG' => 'Bulgarian',
429
- 'bn_IN' => 'Bengali',
430
- 'br_FR' => 'Breton',
431
- 'bs_BA' => 'Bosnian',
432
- 'ca_ES' => 'Catalan',
433
- 'cb_IQ' => 'Sorani Kurdish',
434
- 'co_FR' => 'Corsican',
435
- 'cs_CZ' => 'Czech',
436
- 'cx_PH' => 'Cebuano',
437
- 'cy_GB' => 'Welsh',
438
- 'da_DK' => 'Danish',
439
- 'de_DE' => 'German',
440
- 'el_GR' => 'Greek',
441
- 'en_GB' => 'English (UK)',
442
- 'en_UD' => 'English (Upside Down)',
443
- 'en_US' => 'English (US)',
444
- 'es_ES' => 'Spanish (Spain)',
445
- 'es_LA' => 'Spanish',
446
- 'et_EE' => 'Estonian',
447
- 'eu_ES' => 'Basque',
448
- 'fa_IR' => 'Persian',
449
- 'ff_NG' => 'Fulah',
450
- 'fi_FI' => 'Finnish',
451
- 'fo_FO' => 'Faroese',
452
- 'fr_CA' => 'French (Canada)',
453
- 'fr_FR' => 'French (France)',
454
- 'fy_NL' => 'Frisian',
455
- 'ga_IE' => 'Irish',
456
- 'gl_ES' => 'Galician',
457
- 'gn_PY' => 'Guarani',
458
- 'gu_IN' => 'Gujarati',
459
- 'ha_NG' => 'Hausa',
460
- 'he_IL' => 'Hebrew',
461
- 'hi_IN' => 'Hindi',
462
- 'hr_HR' => 'Croatian',
463
- 'hu_HU' => 'Hungarian',
464
- 'hy_AM' => 'Armenian',
465
- 'id_ID' => 'Indonesian',
466
- 'is_IS' => 'Icelandic',
467
- 'it_IT' => 'Italian',
468
- 'ja_JP' => 'Japanese',
469
- 'ja_KS' => 'Japanese (Kansai)',
470
- 'jv_ID' => 'Javanese',
471
- 'ka_GE' => 'Georgian',
472
- 'kk_KZ' => 'Kazakh',
473
- 'km_KH' => 'Khmer',
474
- 'kn_IN' => 'Kannada',
475
- 'ko_KR' => 'Korean',
476
- 'ku_TR' => 'Kurdish (Kurmanji)',
477
- 'lt_LT' => 'Lithuanian',
478
- 'lv_LV' => 'Latvian',
479
- 'mg_MG' => 'Malagasy',
480
- 'mk_MK' => 'Macedonian',
481
- 'ml_IN' => 'Malayalam',
482
- 'mn_MN' => 'Mongolian',
483
- 'mr_IN' => 'Marathi',
484
- 'ms_MY' => 'Malay',
485
- 'mt_MT' => 'Maltese',
486
- 'my_MM' => 'Burmese',
487
- 'nb_NO' => 'Norwegian (bokmal)',
488
- 'ne_NP' => 'Nepali',
489
- 'nl_BE' => 'Dutch (België)',
490
- 'nl_NL' => 'Dutch',
491
- 'nn_NO' => 'Norwegian (nynorsk)',
492
- 'or_IN' => 'Oriya',
493
- 'pa_IN' => 'Punjabi',
494
- 'pl_PL' => 'Polish',
495
- 'ps_AF' => 'Pashto',
496
- 'pt_BR' => 'Portuguese (Brazil)',
497
- 'pt_PT' => 'Portuguese (Portugal)',
498
- 'qz_MM' => 'Burmese',
499
- 'ro_RO' => 'Romanian',
500
- 'ru_RU' => 'Russian',
501
- 'rw_RW' => 'Kinyarwanda',
502
- 'sc_IT' => 'Sardinian',
503
- 'si_LK' => 'Sinhala',
504
- 'sk_SK' => 'Slovak',
505
- 'sl_SI' => 'Slovenian',
506
- 'so_SO' => 'Somali',
507
- 'sq_AL' => 'Albanian',
508
- 'sr_RS' => 'Serbian',
509
- 'sv_SE' => 'Swedish',
510
- 'sw_KE' => 'Swahili',
511
- 'sz_PL' => 'Silesian',
512
- 'ta_IN' => 'Tamil',
513
- 'te_IN' => 'Telugu',
514
- 'tg_TJ' => 'Tajik',
515
- 'th_TH' => 'Thai',
516
- 'tl_PH' => 'Filipino',
517
- 'tr_TR' => 'Turkish',
518
- 'tz_MA' => 'Tamazight',
519
- 'uk_UA' => 'Ukrainian',
520
- 'ur_PK' => 'Urdu',
521
- 'uz_UZ' => 'Uzbek',
522
- 'vi_VN' => 'Vietnamese',
523
- 'zh_CN' => 'Simplified Chinese (China)',
524
- 'zh_HK' => 'Traditional Chinese (Hong Kong)',
525
- 'zh_TW' => 'Traditional Chinese (Taiwan)',
526
-
527
- );
528
- }
529
-
530
- static function get_timezone() {
531
- if ( self::$wp_timezone === null ) {
532
- $tzstring = get_option( 'timezone_string', '' );
533
- if ( empty( $tzstring ) ) {
534
- $current_offset = get_option( 'gmt_offset', 0 );
535
- if ( 0 == $current_offset ) {
536
- $tzstring = 'Etc/GMT';
537
- } else {
538
- $tzstring = ( $current_offset < 0 ) ? 'Etc/GMT' . $current_offset : 'Etc/GMT+' . $current_offset;
539
- }
540
- }
541
- self::$wp_timezone = $tzstring;
542
- }
543
-
544
- return self::$wp_timezone;
545
- }
546
-
547
- static function string_to_array( $string ) {
548
- $array = explode( ',', $string );
549
-
550
- return array_map( 'trim', $array );
551
- }
552
-
553
- static function widgets_init() {
554
- register_widget( 'WEF_Widget' );
555
- }
556
-
557
- static function lightbox_title( $title ) {
558
- $clean_title = esc_attr( wp_rel_nofollow( make_clickable( str_replace( array( '"', "'" ), array(
559
- '&#34;',
560
- '&#39;'
561
- ), $title ) ) ) );
562
-
563
- return apply_filters( 'wef_lightbox_title', 'data-title="' . $clean_title . '"', $title );
564
- }
565
-
566
- //("uninstalled","deactivated","activated","reactivated")
567
- protected static function whois( $install ) {
568
- $home = home_url();
569
- $home = esc_url( $home );
570
- @file_get_contents( "http://www.wpembedfb.com/api/?whois=$install&site_url=$home" );
571
-
572
- return true;
573
- }
574
-
575
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/class-wp-embed-fb.php DELETED
@@ -1,619 +0,0 @@
1
- <?php
2
-
3
- class WP_Embed_FB {
4
- /**
5
- * @var string Width of the current embed
6
- */
7
- static $width = null;
8
- /**
9
- * @var bool|null if the current embed is in raw format
10
- */
11
- static $raw = null;
12
- /**
13
- * @var string Theme to use on the embed
14
- */
15
- static $theme = null;
16
- /**
17
- * @var int|null Number of posts on the page embed
18
- */
19
- static $num_posts = null;
20
- /**
21
- * @var int|null Number of photos on album
22
- */
23
- static $num_photos = null;
24
- /**
25
- * @var null|Sigami_Facebook
26
- */
27
- private static $fbsdk = null;
28
-
29
- /* MAGIC HERE */
30
-
31
- /**
32
- * Shortcode function
33
- * [facebook='url' width='600' raw='true' social_plugin='true' posts='2' ] width is optional
34
- *
35
- * @param array $atts [0]=>url ['width']=>embed width ['raw']=>for videos and photos
36
- *
37
- * @return string
38
- */
39
- static function shortcode( $atts ) {
40
- $compat = array('href','uri','src','url','link');
41
- foreach($compat as $com){
42
- if(isset($atts[$com])){
43
- $atts[0] = $atts[$com];
44
- unset($atts[$com]);
45
- }
46
- }
47
- if ( ! empty( $atts ) && isset( $atts[0] ) ) {
48
- $clean = trim( $atts[0], '=' );
49
- $clean = html_entity_decode($clean);
50
-
51
- if ( is_numeric( $clean ) ) {
52
- $juice = $clean;
53
- $clean = "https://www.facebook.com/$juice";
54
- } else {
55
- if ( strpos( $clean, 'facebook.com' ) === false ) {
56
- return "<p>" . __( "This is not a valid facebook url", "wp-embed-facebook" ) . " $clean </p>";
57
- }
58
- $juice = str_replace( array(
59
- 'https:',
60
- 'http:',
61
- '//facebook.com/',
62
- '//m.facebook.com/',
63
- '//www.facebook.com/'
64
- ), '', $clean );
65
- }
66
- $embed = self::fb_embed( array( 'https', '://www.facebook.com/', $juice ), $clean, $atts );
67
-
68
- return $embed;
69
- }
70
-
71
- return sprintf(__('You are using the [facebook] shortcode wrong. See examples <a title="Examples" target="_blank" href="%s" >here</a>.','wp-embed-facebook'),'http://www.wpembedfb.com/demo-site/category/custom-embeds/');
72
- }
73
-
74
- static function embed_register_handler(
75
- $match, /** @noinspection PhpUnusedParameterInspection */
76
- $attr, $url = null, $atts = null
77
- ) {
78
- return self::fb_embed( $match, $url, $atts );
79
- }
80
-
81
- /**
82
- * Run rabbit
83
- *
84
- * @param array $match [2]=url without ' https://www.facebook.com/ '
85
- * @param string $url Original url
86
- * @param array $atts Attributes for the embed
87
- *
88
- * @return string Embedded content
89
- *
90
- */
91
- static function fb_embed( $match, $url = null, $atts = null ) {
92
- $juice = $match[2];
93
- self::set_atts( $atts );
94
- $type_and_id = apply_filters( 'wpemfb_type_id', self::get_type_and_id( $juice, $url ), $juice, $url );
95
- if ( is_string( $type_and_id ) ) {
96
- return $type_and_id;
97
- }
98
- if ( WP_Embed_FB_Plugin::get_option( 'enq_when_needed' ) == 'true' ) {
99
- if ( $type_and_id['type'] == 'album' ) {
100
- if ( WP_Embed_FB_Plugin::get_option( 'enq_lightbox' ) == 'true' ) {
101
- wp_enqueue_script( 'wpemfb-lightbox' );
102
- wp_enqueue_style( 'wpemfb-lightbox' );
103
- }
104
- }
105
- if ( WP_Embed_FB_Plugin::get_option( 'enq_wpemfb' ) == 'true' ) {
106
- wp_enqueue_script( 'wpemfb' );
107
- }
108
- if ( WP_Embed_FB_Plugin::get_option( 'enq_fbjs' ) == 'true' ) {
109
- wp_enqueue_script( 'wpemfb-fbjs' );
110
- }
111
- }
112
- if ( self::is_raw( $type_and_id['type'] ) ) {
113
- wp_enqueue_style( 'wpemfb-' . self::get_theme() );
114
- }
115
- do_action('wp_embed_fb');
116
- $return = self::print_embed( $type_and_id['fb_id'], $type_and_id['type'], $juice );
117
- self::clear_atts();
118
-
119
- return $return;
120
- }
121
-
122
- /**
123
- * @param string $juice facebook url without https://www.facebook.com
124
- * @param string $original Original url to return.
125
- *
126
- * @return array|string
127
- */
128
- static function get_type_and_id( $juice, $original ) {
129
- $has_fb_app = WP_Embed_FB_Plugin::has_fb_app();
130
- if ( $has_fb_app ) {
131
- $fbsdk = self::get_fbsdk();
132
- }
133
- $fb_id = null;
134
- $type = null;
135
- if ( ( $pos = strpos( $juice, "?" ) ) !== false ) {
136
- $vars = array();
137
- parse_str( parse_url( $juice, PHP_URL_QUERY ), $vars );
138
- if ( isset( $vars['fbid'] ) ) {
139
- $fb_id = $vars['fbid'];
140
- }
141
- if ( isset( $vars['id'] ) ) {
142
- $fb_id = $vars['id'];
143
- }
144
- if ( isset( $vars['v'] ) ) {
145
- $fb_id = $vars['v'];
146
- $type = 'video';
147
- }
148
- if ( isset( $vars['set'] ) ) {
149
- $setArray = explode( '.', $vars['set'] );
150
- $fb_id = $setArray[1];
151
- $type = 'album';
152
- }
153
-
154
- if ( isset( $vars['album_id'] ) ) {
155
- $fb_id = $vars['album_id'];
156
- $type = 'album';
157
- }
158
-
159
- if ( isset( $vars['story_fbid'] ) ) {
160
- $fb_id = $vars['story_fbid'];
161
- $type = 'post';
162
- }
163
-
164
- $juice = substr( $juice, 0, $pos );
165
- }
166
- $juiceArray = explode( '/', trim( $juice, '/' ) );
167
- if ( ! $fb_id ) {
168
- $fb_id = end( $juiceArray );
169
- $fb_id_array = explode( '-', $fb_id );
170
- if ( is_numeric( end( $fb_id_array ) ) ) {
171
- $fb_id = end( $fb_id_array );
172
- }
173
- $fb_id = str_replace( ':0', '', $fb_id );
174
- }
175
- if ( ! $type ) {
176
- if ( in_array( 'posts', $juiceArray ) ) {
177
- $type = 'post';
178
- if ( $has_fb_app && ( self::is_raw( 'post' ) ) ) {
179
- try {
180
- /** @noinspection PhpUndefinedVariableInspection */
181
- $data = $fbsdk->api( '/' . $juiceArray[0] . '?fields=id' );
182
- $fb_id = $data['id'] . '_' . $fb_id;
183
- } catch ( FacebookApiException $e ) {
184
- $res = '<p><a href="' . $original . '" target="_blank" rel="nofollow">' . $original . '</a>';
185
- if ( is_super_admin() ) {
186
- $error = $e->getResult();
187
- if ( isset( $error['error']['code'] ) && ( $error['error']['code'] == '803' ) ) {
188
- $res .= '<br><span style="color: #4a0e13">' . __( 'Error: Try embedding this post as a social plugin (only visible to admins)', 'wp-embed-facebook' ) . '</span>';
189
- } else {
190
- if ( isset( $error['error']['code'] ) ) {
191
- $res .= '<br><span style="color: #4a0e13">' . __( 'Code' ) . ':&nbsp;' . $error['error']['code'] . '&nbsp;in type</span>';
192
- }
193
- $res .= '<br><span style="color: #4a0e13">' . __( 'Error' ) . ':&nbsp;' . $error['error']['message'] . ' (only visible to admins)</span>';
194
- }
195
- }
196
- $res .= '</p>';
197
-
198
- return $res;
199
- }
200
- }
201
- } elseif ( in_array( 'photos', $juiceArray ) || in_array( 'photo.php', $juiceArray ) ) {
202
- $type = 'photo';
203
- } elseif ( in_array( 'events', $juiceArray ) ) {
204
- $type = 'event';
205
- } elseif ( in_array( 'videos', $juiceArray ) || in_array( 'video.php', $juiceArray ) ) {
206
- $type = 'video';
207
- }
208
- }
209
-
210
- /**
211
- * Filter the embed type.
212
- *
213
- * @since 1.8
214
- *
215
- * @param string $type the embed type.
216
- * @param array $clean url parts of the request.
217
- */
218
- $type = apply_filters( 'wpemfb_embed_type', $type, $juiceArray );
219
- if ( ! $type ) {
220
- if ( $has_fb_app ) {
221
- try {
222
- /** @noinspection PhpUndefinedVariableInspection */
223
- $metadata = $fbsdk->api( '/' . $fb_id . '?metadata=1' );
224
- $type = $metadata['metadata']['type'];
225
- } catch ( FacebookApiException $e ) {
226
- $res = '<p><a href="https://www.facebook.com/' . $juice . '" target="_blank" rel="nofollow">https://www.facebook.com/' . $juice . '</a>';
227
- if ( is_super_admin() ) {
228
- $error = $e->getResult();
229
- if ( isset( $error['error']['code'] ) ) {
230
- $res .= '<br><span style="color: #4a0e13">' . __( 'Code' ) . ':&nbsp;' . $error['error']['code'] . '&nbsp;' . $type . '</span>';
231
- }
232
- $res .= '<br><span style="color: #4a0e13">' . __( 'Error' ) . ':&nbsp;' . $error['error']['message'] . ' (only visible to admins)</span>';
233
- }
234
- $res .= '</p>';
235
-
236
- return $res;
237
- }
238
- } else {
239
- $type = 'page';
240
- }
241
- }
242
- $fb_id = apply_filters( 'wpemfb_embed_fb_id', $fb_id, $juiceArray );
243
-
244
- return array( 'type' => $type, 'fb_id' => $fb_id );
245
- }
246
-
247
- static function print_embed( $fb_id, $type, $juice ) {
248
- if($interrupt = apply_filters('wef_interrupt','',$fb_id,$type,$juice)){
249
- return $interrupt;
250
- }
251
- if ( ! self::is_raw( $type ) ) {
252
- $fb_data = array( 'social_plugin' => true, 'link' => $juice, 'type' => $type );
253
- $template_name = 'social-plugin';
254
- } else {
255
- switch ( $type ) {
256
- case 'page' :
257
- $fb_data = self::fb_api_get( $fb_id, $juice, $type );
258
- if ( ! self::valid_fb_data( $fb_data ) ) {
259
- return $fb_data;
260
- }
261
- if ( isset( $fb_data['is_community_page'] ) && $fb_data['is_community_page'] == "1" ) {
262
- $template_name = 'com-page';
263
- } else {
264
- $default = 'page';
265
- /**
266
- * Add a new template for a specific facebook category
267
- *
268
- * for example a Museum create the new template at your-theme/plugins/wp-embed-facebook/museum.php
269
- * then on functions.php of your theme
270
- *
271
- * add_filter( 'wpemfb_category_template', 'your_function', 10, 2 );
272
- *
273
- * function your_function( $default, $category ) {
274
- * if($category == 'Museum/art gallery')
275
- * return 'museum';
276
- * else
277
- * return $default;
278
- * }
279
- *
280
- * @updated 2.0
281
- * @since 1.0
282
- *
283
- * @param string $default file full path
284
- * @param array $fb_data ['category'] data from facebook
285
- */
286
- $template_name = apply_filters( 'wpemfb_category_template', $default, $fb_data['category'] );
287
- }
288
- break;
289
- case 'photo' :
290
- case 'post':
291
- case 'video' :
292
- case 'album' :
293
- case 'event' :
294
- $fb_data = self::fb_api_get( $fb_id, $juice, $type );
295
- $template_name = $type;
296
- break;
297
- case 'user' :
298
- $fb_data = self::fb_api_get( $fb_id, $juice, 'profile' );
299
- $template_name = 'profile';
300
- break;
301
- default :
302
- $fb_data = self::fb_api_get( $fb_id, $juice, $type );
303
- $template_name = $type;
304
- break;
305
- }
306
- }
307
-
308
- if ( ! self::valid_fb_data( $fb_data ) ) {
309
- return print_r( $fb_data, true );
310
- }
311
- $template = self::locate_template( $template_name );
312
- //get default variables to use on templates
313
- /** @noinspection PhpUnusedLocalVariableInspection */
314
- $width = ! empty( self::$width ) ? self::$width : WP_Embed_FB_Plugin::get_option( 'max_width' );
315
- /** @noinspection PhpUnusedLocalVariableInspection */
316
- ob_start();
317
- //show embed post on admin
318
- if ( is_admin() || ( isset( $_GET['action'] ) && $_GET['action'] = 'cs_render_element' ) ) : ?>
319
- <script>(function (d, s, id) {
320
- var js, fjs = d.getElementsByTagName(s)[0];
321
- if (d.getElementById(id)) return;
322
- js = d.createElement(s);
323
- js.id = id;
324
- js.src = "//connect.facebook.net/<?php echo WP_Embed_FB_Plugin::get_option('sdk_lang'); ?>/sdk.js#xfbml=1&version=<?php echo WP_Embed_FB_Plugin::get_option('sdk_version') ?>";
325
- fjs.parentNode.insertBefore(js, fjs);
326
- }(document, 'script', 'facebook-jssdk'));
327
- FB.XFBML.parse();</script>
328
- <?php endif;
329
- /**
330
- * Change the file to include on a certain embed.
331
- *
332
- * @since 1.8
333
- *
334
- * @param string $template file full path
335
- * @param array $fb_data data from facebook
336
- */
337
- echo apply_filters('wef_embedded_with','<!-- Embedded with WP Embed Facebook - http://wpembedfb.com -->');
338
- $template = apply_filters( 'wpemfb_template', $template, $fb_data, $type );
339
- /** @noinspection PhpIncludeInspection */
340
- include( $template );
341
-
342
- return preg_replace( '/^\s+|\n|\r|\s+$/m', '', ob_get_clean() );
343
- }
344
-
345
- /**
346
- * get data from fb using WP_Embed_FB::$fbsdk->api('/'.$fb_id) :)
347
- *
348
- * @param int $fb_id Facebook id
349
- * @param string $url Facebook url
350
- *
351
- * @type string type of embed
352
- * @return array|string
353
- */
354
- static function fb_api_get( $fb_id, $url, $type = "" ) {
355
- if ( WP_Embed_FB_Plugin::has_fb_app() ) {
356
- $fbsdk = self::get_fbsdk();
357
- try {
358
- switch ( $type ) {
359
- case 'album' :
360
- self::$num_photos = is_numeric( self::$num_photos ) ? self::$num_photos : WP_Embed_FB_Plugin::get_option( 'max_photos' );
361
- $api_string = $fb_id . '?fields=name,id,from,description,count,photos.fields(name,picture,source,id).limit(' . self::$num_photos . ')';
362
- break;
363
- case 'page' :
364
- $num_posts = is_numeric( self::$num_posts ) ? self::$num_posts : WP_Embed_FB_Plugin::get_option( 'max_posts' );
365
- $api_string = $fb_id . '?fields=name,picture,is_community_page,link,id,cover,category,website,genre,fan_count';
366
- if ( intval( $num_posts ) > 0 ) {
367
- $api_string .= ',posts.limit(' . $num_posts . '){id,full_picture,type,via,source,parent_id,call_to_action,story,place,child_attachments,icon,created_time,message,description,caption,name,shares,link,picture,object_id,likes.limit(1).summary(true),comments.limit(1).summary(true)}';
368
- }
369
- break;
370
- case 'video' :
371
- $api_string = $fb_id . '?fields=id,source,picture,from';
372
- break;
373
- case 'photo' :
374
- $api_string = $fb_id . '?fields=id,source,link,likes.limit(1).summary(true),comments.limit(1).summary(true)';
375
- break;
376
- case 'event' :
377
- $api_string = $fb_id . '?fields=id,name,start_time,end_time,owner,place,picture,timezone,cover';
378
- break;
379
- case 'post' :
380
- $api_string = $fb_id . '?fields=from{id,name,likes,link},id,full_picture,type,via,source,parent_id,call_to_action,story,place,child_attachments,icon,created_time,message,description,caption,name,shares,link,picture,object_id,likes.limit(1).summary(true),comments.limit(1).summary(true)';
381
- break;
382
- default :
383
- $api_string = $fb_id;
384
- break;
385
- }
386
- //echo "type";
387
- /**
388
- * Filter the fist fbsdk query
389
- *
390
- * @since 1.9
391
- *
392
- * @param string $api_string The fb api request string according to type
393
- * @param string $fb_id The id of the object being requested.
394
- * @param string $type The detected type of embed
395
- *
396
- */
397
- $fb_data = $fbsdk->api( WP_Embed_FB_Plugin::get_option( 'sdk_version' ) . '/' . apply_filters( 'wpemfb_api_string', $api_string, $fb_id, $type ) );
398
- $api_string2 = '';
399
-
400
- /**
401
- * Filter the second fbsdk query if necessary
402
- *
403
- * @since 1.9
404
- *
405
- * @param string $api_string2 The second request string empty if not necessary
406
- * @param array $fb_data The result from the first query
407
- * @param string $type The detected type of embed
408
- *
409
- */
410
- $api_string2 = apply_filters( 'wpemfb_2nd_api_string', $api_string2, $fb_data, $type );
411
-
412
- if ( ! empty( $api_string2 ) ) {
413
- $extra_data = $fbsdk->api( WP_Embed_FB_Plugin::get_option( 'sdk_version' ) . '/' . $api_string2 );
414
- $fb_data = array_merge( $fb_data, $extra_data );
415
- }
416
- /**
417
- * Filter all data received from facebook.
418
- *
419
- * @since 1.9
420
- *
421
- * @param array $fb_data the final result
422
- * @param string $type The detected type of embed
423
- */
424
- $fb_data = apply_filters( 'wpemfb_fb_data', $fb_data, $type );
425
-
426
- } catch ( FacebookApiException $e ) {
427
- $fb_data = '<p><a href="https://www.facebook.com/' . $url . '" target="_blank" rel="nofollow">https://www.facebook.com/' . $url . '</a>';
428
- if ( is_super_admin() ) {
429
- $error = $e->getResult();
430
- $fb_data .= '<br><small style="color: #4a0e13">' . __( 'Error' ) . ':&nbsp;' . $error['error']['message'] . ' (only visible to admins)</small>';
431
- }
432
- $fb_data .= '</p>';
433
- }
434
- } else {
435
- $fb_data = '<p><a href="https://www.facebook.com/' . $url . '" target="_blank" rel="nofollow">https://www.facebook.com/' . $url . '</a>';
436
- if ( is_super_admin() ) {
437
- $fb_data .= '<br><span style="color: #4a0e13">' . sprintf( __( '<small>To embed this type of content you need to setup a facebook app on <a href="%s" title="WP Embed Facebook Settings">settings</a></small>', 'wp-embed-facebook' ), admin_url( 'options-general.php?page=embedfacebook' ) ) . '</span>';
438
- }
439
- $fb_data .= '</p>';
440
- }
441
-
442
- return $fb_data;
443
- }
444
-
445
- static function set_atts( $atts ) {
446
- if ( WP_Embed_FB_Plugin::has_photon() ) {
447
- add_filter( 'jetpack_photon_skip_image', '__return_false' );
448
- }
449
- if ( isset( $atts['width'] ) ) {
450
- self::$width = $atts['width'];
451
- }
452
- if ( isset( $atts['raw'] ) ) {
453
- if ( $atts['raw'] == 'true' ) {
454
- self::$raw = true;
455
- } else {
456
- self::$raw = false;
457
- }
458
- }
459
-
460
- if ( isset( $atts['custom_embed'] ) ) {
461
- self::$raw = true;
462
- } elseif ( isset( $atts['social_plugin'] ) ) {
463
- if ( $atts['social_plugin'] == 'true' ) {
464
- self::$raw = false;
465
- } else {
466
- self::$raw = true;
467
- }
468
- }
469
-
470
- if ( isset( $atts['theme'] ) ) {
471
- self::$theme = $atts['theme'];
472
- }
473
- if ( isset( $atts['posts'] ) ) {
474
- self::$num_posts = intval( $atts['posts'] );
475
- }
476
- if ( isset( $atts['photos'] ) ) {
477
- self::$num_photos = intval( $atts['photos'] );
478
- }
479
- }
480
-
481
- static function clear_atts() {
482
- self::$width = self::$raw = self::$num_posts = self::$theme = self::$num_photos = null;
483
- if ( WP_Embed_FB_Plugin::has_photon() ) {
484
- add_filter( 'jetpack_photon_skip_image', '__return_true' );
485
- }
486
- }
487
-
488
- /* UTILITIES */
489
-
490
- static function get_theme() {
491
- if ( self::$theme ) {
492
- return self::$theme;
493
- } else {
494
- self::$theme = WP_Embed_FB_Plugin::get_option( 'theme' );
495
-
496
- return self::$theme;
497
- }
498
- }
499
-
500
- static function is_raw( $type ) {
501
- if ( self::$raw !== null ) {
502
- return self::$raw;
503
- } else {
504
- switch ( $type ) {
505
- case 'page':
506
- case 'photo':
507
- case 'post':
508
- case 'video':
509
- self::$raw = ( WP_Embed_FB_Plugin::get_option( 'raw_' . $type ) == 'false' ) ? false : true;
510
- break;
511
- default:
512
- self::$raw = true;
513
- break;
514
- }
515
-
516
- return self::$raw;
517
- }
518
- }
519
-
520
- /**
521
- * @return null|Sigami_Facebook
522
- */
523
- static function get_fbsdk() {
524
- if ( self::$fbsdk && self::$fbsdk instanceof Sigami_Facebook ) {
525
- if ( WP_Embed_FB_Plugin::get_option( 'force_app_token' ) == 'true' ) {
526
- self::$fbsdk->setAccessToken( WP_Embed_FB_Plugin::get_option( 'app_id' ) . '|' . WP_Embed_FB_Plugin::get_option( 'app_secret' ) );
527
- }
528
-
529
- } else {
530
- if ( ! class_exists( 'FacebookApiException' ) ) {
531
- /** @noinspection PhpIncludeInspection */
532
- require_once( WP_Embed_FB_Plugin::path() . 'lib/base_facebook.php');
533
- }
534
- /** @noinspection PhpIncludeInspection */
535
- require_once( WP_Embed_FB_Plugin::path() . 'lib/class-sigami-facebook.php');
536
- $config = array();
537
- $config['appId'] = WP_Embed_FB_Plugin::get_option( 'app_id' );
538
- $config['secret'] = WP_Embed_FB_Plugin::get_option( 'app_secret' );
539
- //$config['fileUpload'] = false; // optional
540
- self::$fbsdk = new Sigami_Facebook( $config );
541
- if ( WP_Embed_FB_Plugin::get_option( 'force_app_token' ) == 'true' ) {
542
- self::$fbsdk->setAccessToken( WP_Embed_FB_Plugin::get_option( 'app_id' ) . '|' . WP_Embed_FB_Plugin::get_option( 'app_secret' ) );
543
- }
544
-
545
- }
546
- do_action('kakashi_test');
547
-
548
- self::$fbsdk = apply_filters('wef_fbsdk',self::$fbsdk);
549
-
550
- return self::$fbsdk;
551
- }
552
-
553
- /**
554
- * Locate the template inside plugin or theme
555
- *
556
- * @param string $template_name Template file name
557
- *
558
- * @return string Template location
559
- */
560
- static function locate_template( $template_name ) {
561
- $theme = self::get_theme();
562
- $located = locate_template( array( 'plugins/wp-embed-facebook/' . $theme . '/' . $template_name . '.php' ) );
563
- $file = 'templates/' . $theme . '/' . $template_name . '.php';
564
- if ( empty( $located ) ) {
565
- $located = WP_Embed_FB_Plugin::path() . $file;
566
- }
567
-
568
- return $located;
569
- }
570
-
571
- static function valid_fb_data( $fb_data ) {
572
- if ( is_array( $fb_data ) && ( isset( $fb_data['id'] ) || isset( $fb_data['social_plugin'] ) || isset( $fb_data['data'] ) ) ) {
573
- return true;
574
- }
575
-
576
- return false;
577
- }
578
-
579
- /* DISPLAY UTILITIES */
580
-
581
- static function make_clickable( $text ) {
582
- if(empty($text))
583
- return $text;
584
- return wpautop( self::rel_nofollow( make_clickable( $text ) ) );
585
- }
586
-
587
- static function rel_nofollow( $text ) {
588
- $text = stripslashes( $text );
589
-
590
- return preg_replace_callback( '|<a (.+?)>|i', array( __CLASS__, 'nofollow_callback' ), $text );
591
- }
592
-
593
- static function nofollow_callback( $matches ) {
594
- $text = $matches[1];
595
- $text = str_replace( array( ' rel="nofollow"', " rel='nofollow'" ), '', $text );
596
-
597
- return "<a $text rel=\"nofollow\">";
598
- }
599
-
600
- /**
601
- * If a user has a lot of websites registered on fb this function will only link to the first one
602
- *
603
- * @param string $urls separated by spaces
604
- *
605
- * @return string first url
606
- */
607
- static function getwebsite( $urls ) {
608
- $url = explode( ' ', trim( $urls ) );
609
-
610
- if (preg_match('/https:/',$url[0]))
611
- return $url[0];
612
-
613
- if (preg_match('/http:/',$url[0]))
614
- return $url[0];
615
-
616
- return 'http://' . $url[0];
617
- }
618
-
619
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/js/fb.js DELETED
@@ -1,56 +0,0 @@
1
- window.fbAsyncInit = function() {
2
- FB.init({
3
- appId: WEF.fb_id,
4
- version: WEF.version,
5
- xfbml: true
6
- });
7
- if(!(typeof WEF.ajaxurl === "undefined")){
8
- FB.Event.subscribe('comment.create', wef_comment_callback);
9
- FB.Event.subscribe('comment.remove', wef_comment_callback);
10
- }
11
-
12
- };
13
-
14
- (function (d, s, id) {
15
- var js, fjs = d.getElementsByTagName(s)[0];
16
- if (d.getElementById(id)) return;
17
- js = d.createElement(s);
18
- js.id = id;
19
- // js.async = true;
20
- js.src = "//connect.facebook.net/" + WEF.local + "/sdk.js";
21
- fjs.parentNode.insertBefore(js, fjs);
22
- }(document, 'script', 'facebook-jssdk'));
23
-
24
- var wef_serialize = function(obj, prefix) {
25
- var str = [], p;
26
- for(p in obj) {
27
- if (obj.hasOwnProperty(p)) {
28
- var k = prefix ? prefix + "[" + p + "]" : p, v = obj[p];
29
- str.push((v !== null && typeof v === "object") ?
30
- wef_serialize(v, k) :
31
- encodeURIComponent(k) + "=" + encodeURIComponent(v));
32
- }
33
- }
34
- return str.join("&");
35
- };
36
-
37
- var wef_comment_callback = function(response) {
38
-
39
- // console.log(response);
40
-
41
- var wef_ajax = new XMLHttpRequest();
42
-
43
- // wef_ajax.onreadystatechange = function()
44
- // {
45
- // if(wef_ajax.readyState === 4 && wef_ajax.status === 200)
46
- // {
47
- // alert(wef_ajax.responseText);
48
- // }
49
- // };
50
-
51
- var data = wef_serialize({ action : 'wpemfb_comments', response : response });
52
-
53
- wef_ajax.open("POST", WEF.ajaxurl, true);
54
- wef_ajax.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
55
- wef_ajax.send(data);
56
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/js/fb.min.js DELETED
@@ -1 +0,0 @@
1
- window.fbAsyncInit=function(){FB.init({appId:WEF.fb_id,version:WEF.version,xfbml:!0}),"undefined"!=typeof WEF.ajaxurl&&(FB.Event.subscribe("comment.create",wef_comment_callback),FB.Event.subscribe("comment.remove",wef_comment_callback))},function(a,b,c){var d,e=a.getElementsByTagName(b)[0];a.getElementById(c)||(d=a.createElement(b),d.id=c,d.src="//connect.facebook.net/"+WEF.local+"/sdk.js",e.parentNode.insertBefore(d,e))}(document,"script","facebook-jssdk");var wef_serialize=function(a,b){var c,d=[];for(c in a)if(a.hasOwnProperty(c)){var e=b?b+"["+c+"]":c,f=a[c];d.push(null!==f&&"object"==typeof f?wef_serialize(f,e):encodeURIComponent(e)+"="+encodeURIComponent(f))}return d.join("&")},wef_comment_callback=function(a){var b=new XMLHttpRequest,c=wef_serialize({action:"wpemfb_comments",response:a});b.open("POST",WEF.ajaxurl,!0),b.setRequestHeader("Content-type","application/x-www-form-urlencoded"),b.send(c)};
 
lib/js/wpembedfb.js DELETED
@@ -1,5 +0,0 @@
1
- (function ($) {
2
- $(".wef-measure").each(function () {
3
- $(this).next().attr("data-width", $(this).outerWidth() + "px")
4
- })
5
- })(jQuery);
 
 
 
 
 
lib/js/wpembedfb.min.js DELETED
@@ -1 +0,0 @@
1
- !function(a){a(".wef-measure").each(function(){a(this).next().attr("data-width",a(this).outerWidth()+"px")})}(jQuery);
 
lib/lightbox2/css/lightbox.css DELETED
@@ -1,2 +0,0 @@
1
- body:after{content:url("../images/close.png") url("../images/loading.gif") url("../images/prev.png") url("../images/next.png");display:none}.lb-disable-scrolling{overflow:hidden !important}.lightboxOverlay{position:absolute;top:0;left:0;z-index:999999;background-color:#000;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=80);opacity:.8;display:none}.lightbox{position:absolute;left:0;width:100%;z-index:1000000;text-align:center;line-height:0;font-weight:normal;padding:0;height:0}.lightbox .lb-image{display:block;height:auto;max-width:inherit;border-radius:0}.lightbox .lb-image a img{border:none}.lightbox .lb-outerContainer{position:relative;background-color:rgba(0,0,0,0.5);*zoom:1;width:250px;height:250px;margin:0 auto;border-radius:0}.lightbox .lb-outerContainer:after{content:"";display:table;clear:both}.lightbox .lb-container{padding:4px}.lightbox .lb-container>.nav{left:0}.lightbox .lb-loader{position:absolute;top:43%;left:0;height:25%;width:100%;text-align:center;line-height:0}.lightbox .lb-cancel{display:block;width:32px;height:32px;margin:0 auto;background:url("../images/loading.gif") no-repeat}.lightbox .lb-prev,.lightbox .lb-next{height:100%;cursor:pointer;display:block}.lightbox .lb-nav{position:absolute;top:0;left:0;height:100%;width:100%;z-index:10}.lightbox .lb-nav a{outline:none;background-image:url("data:image/gifbase64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==")}.lightbox .lb-nav a.lb-prev{width:34%;left:0;float:left;background:url("../images/prev.png") left 48% no-repeat;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:0;-webkit-transition:opacity .6s;-moz-transition:opacity .6s;-o-transition:opacity .6s;transition:opacity .6s}.lightbox .lb-nav a.lb-prev:hover{filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}.lightbox .lb-nav a.lb-next{width:64%;right:0;float:right;background:url(../images/next.png) right 48% no-repeat;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:0;-webkit-transition:opacity .6s;-moz-transition:opacity .6s;-o-transition:opacity .6s;transition:opacity .6s}.lightbox .lb-nav a.lb-next:hover{filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}.lightbox .lb-dataContainer{margin:0 auto;padding-top:5px;*zoom:1;width:100%;border-radius:0}.lightbox .lb-dataContainer:after{content:"";display:table;clear:both}.lightbox .lb-data{padding:0 4px;color:#ccc}.lightbox .lb-data .lb-details{width:85%;float:left;text-align:left;line-height:1.1em}.lightbox .lb-data .lb-caption{font-size:13px;font-weight:bold;line-height:1em}.lightbox .lb-data .lb-number{display:block;clear:left;padding-bottom:1em;font-size:12px;color:#999}.lightbox .lb-data .lb-close{display:block;float:right;width:30px;height:30px;background:url(../images/close.png) top right no-repeat;text-align:right;outline:none;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=70);opacity:.7;-webkit-transition:opacity .2s;-moz-transition:opacity .2s;-o-transition:opacity .2s;transition:opacity .2s}.lightbox .lb-data .lb-close:hover{cursor:pointer;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}
2
- /*# sourceMappingURL=lightbox.css.map */
 
 
lib/lightbox2/css/lightbox.css.map DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "mappings": "AACE,UAAO,CACL,OAAO,CAAE,2GAA2G,CACpH,OAAO,CAAE,IAAI,CAEjB,qBAAqB,CACnB,QAAQ,CAAE,iBAAiB,CAE7B,gBAAgB,CACd,QAAQ,CAAE,QAAQ,CAClB,GAAG,CAAE,CAAC,CACN,IAAI,CAAE,CAAC,CACP,OAAO,CAAE,MAAM,CACf,gBAAgB,CAAE,IAAO,CACzB,MAAM,CAAE,mDAAmD,CAC3D,OAAO,CAAE,EAAG,CACZ,OAAO,CAAE,IAAI,CAEf,SAAS,CACP,QAAQ,CAAE,QAAQ,CAClB,IAAI,CAAE,CAAC,CACP,KAAK,CAAE,IAAI,CACX,OAAO,CAAE,OAAO,CAChB,UAAU,CAAE,MAAM,CAClB,WAAW,CAAE,CAAC,CACd,WAAW,CAAE,MAAM,CACnB,OAAO,CAAE,CAAC,CACV,MAAM,CAAE,CAAC,CACT,mBAAS,CACP,OAAO,CAAE,KAAK,CACd,MAAM,CAAE,IAAI,CACZ,SAAS,CAAE,OAAO,CAClB,aAAa,CAAE,CAAC,CAChB,yBAAK,CACH,MAAM,CAAE,IAAI,CAChB,4BAAkB,CAChB,QAAQ,CAAE,QAAQ,CAClB,gBAAgB,CAAE,eAAmB,CACrC,KAAK,CAAE,CAAC,CACR,KAAK,CAAE,KAAK,CACZ,MAAM,CAAE,KAAK,CACb,MAAM,CAAE,MAAM,CACd,aAAa,CAAE,CAAC,CAChB,kCAAO,CACL,OAAO,CAAE,EAAE,CACX,OAAO,CAAE,KAAK,CACd,KAAK,CAAE,IAAI,CACf,uBAAa,CACX,OAAO,CAAE,GAAG,CACZ,4BAAM,CACJ,IAAI,CAAE,CAAC,CACX,oBAAU,CACR,QAAQ,CAAE,QAAQ,CAClB,GAAG,CAAE,GAAG,CACR,IAAI,CAAE,CAAC,CACP,MAAM,CAAE,GAAG,CACX,KAAK,CAAE,IAAI,CACX,UAAU,CAAE,MAAM,CAClB,WAAW,CAAE,CAAC,CAChB,oBAAU,CACR,OAAO,CAAE,KAAK,CACd,KAAK,CAAE,IAAI,CACX,MAAM,CAAE,IAAI,CACZ,MAAM,CAAE,MAAM,CACd,UAAU,CAAE,sCAAsC,CACpD,qCAAkB,CAChB,MAAM,CAAE,IAAI,CACZ,MAAM,CAAE,OAAO,CACf,OAAO,CAAE,KAAK,CAChB,iBAAO,CACL,QAAQ,CAAE,QAAQ,CAClB,GAAG,CAAE,CAAC,CACN,IAAI,CAAE,CAAC,CACP,MAAM,CAAE,IAAI,CACZ,KAAK,CAAE,IAAI,CACX,OAAO,CAAE,EAAE,CACX,mBAAC,CACC,OAAO,CAAE,IAAI,CACb,gBAAgB,CAAE,wFAAwF,CAC5G,2BAAS,CACP,KAAK,CAAE,GAAG,CACV,IAAI,CAAE,CAAC,CACP,KAAK,CAAE,IAAI,CACX,UAAU,CAAE,4CAA4C,CACxD,MAAM,CAAE,kDAAkD,CAC1D,OAAO,CAAE,CAAC,CACV,kBAAkB,CAAE,WAAY,CAChC,eAAe,CAAE,WAAY,CAC7B,aAAa,CAAE,WAAY,CAC3B,UAAU,CAAE,WAAY,CACxB,iCAAO,CACL,MAAM,CAAE,oDAAoD,CAC5D,OAAO,CAAE,CAAC,CACd,2BAAS,CACP,KAAK,CAAE,GAAG,CACV,KAAK,CAAE,CAAC,CACR,KAAK,CAAE,KAAK,CACZ,UAAU,CAAE,2CAA2C,CACvD,MAAM,CAAE,kDAAkD,CAC1D,OAAO,CAAE,CAAC,CACV,kBAAkB,CAAE,WAAY,CAChC,eAAe,CAAE,WAAY,CAC7B,aAAa,CAAE,WAAY,CAC3B,UAAU,CAAE,WAAY,CACxB,iCAAO,CACL,MAAM,CAAE,oDAAoD,CAC5D,OAAO,CAAE,CAAC,CAChB,2BAAiB,CACf,MAAM,CAAE,MAAM,CACd,WAAW,CAAE,GAAG,CAChB,KAAK,CAAE,CAAC,CACR,KAAK,CAAE,IAAI,CACX,aAAa,CAAE,CAAC,CAChB,iCAAO,CACL,OAAO,CAAE,EAAE,CACX,OAAO,CAAE,KAAK,CACd,KAAK,CAAE,IAAI,CACf,kBAAQ,CACN,OAAO,CAAE,KAAK,CACd,KAAK,CAAE,IAAI,CACX,8BAAW,CACT,KAAK,CAAE,GAAG,CACV,KAAK,CAAE,IAAI,CACX,UAAU,CAAE,IAAI,CAChB,WAAW,CAAE,KAAK,CACpB,8BAAW,CACT,SAAS,CAAE,IAAI,CACf,WAAW,CAAE,IAAI,CACjB,WAAW,CAAE,GAAG,CAClB,6BAAU,CACR,OAAO,CAAE,KAAK,CACd,KAAK,CAAE,IAAI,CACX,cAAc,CAAE,GAAG,CACnB,SAAS,CAAE,IAAI,CACf,KAAK,CAAE,IAAO,CAChB,4BAAS,CACP,OAAO,CAAE,KAAK,CACd,KAAK,CAAE,KAAK,CACZ,KAAK,CAAE,IAAI,CACX,MAAM,CAAE,IAAI,CACZ,UAAU,CAAE,4CAA4C,CACxD,UAAU,CAAE,KAAK,CACjB,OAAO,CAAE,IAAI,CACb,MAAM,CAAE,mDAAmD,CAC3D,OAAO,CAAE,EAAG,CACZ,kBAAkB,CAAE,WAAY,CAChC,eAAe,CAAE,WAAY,CAC7B,aAAa,CAAE,WAAY,CAC3B,UAAU,CAAE,WAAY,CACxB,kCAAO,CACL,MAAM,CAAE,OAAO,CACf,MAAM,CAAE,oDAAoD,CAC5D,OAAO,CAAE,CAAC",
4
- "sources": ["lightbox.sass"],
5
- "names": [],
6
- "file": "lightbox.css"
7
- }
 
 
 
 
 
 
 
lib/lightbox2/css/lightbox.sass DELETED
@@ -1,165 +0,0 @@
1
- body
2
- &:after
3
- content: url('../images/close.png') url('../images/loading.gif') url('../images/prev.png') url('../images/next.png')
4
- display: none
5
-
6
- .lb-disable-scrolling
7
- overflow: hidden !important
8
-
9
- .lightboxOverlay
10
- position: absolute
11
- top: 0
12
- left: 0
13
- z-index: 999999
14
- background-color: #000000
15
- filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80)
16
- opacity: 0.8
17
- display: none
18
-
19
- .lightbox
20
- position: absolute
21
- left: 0
22
- width: 100%
23
- z-index: 1000000
24
- text-align: center
25
- line-height: 0
26
- font-weight: normal
27
- padding: 0
28
- height: 0
29
- .lb-image
30
- display: block
31
- height: auto
32
- max-width: inherit
33
- border-radius: 0
34
- a img
35
- border: none
36
- .lb-outerContainer
37
- position: relative
38
- background-color: rgba(0, 0, 0, 0.50)
39
- *zoom: 1
40
- width: 250px
41
- height: 250px
42
- margin: 0 auto
43
- border-radius: 0
44
- &:after
45
- content: ""
46
- display: table
47
- clear: both
48
- .lb-container
49
- padding: 4px
50
- > .nav
51
- left: 0
52
- .lb-loader
53
- position: absolute
54
- top: 43%
55
- left: 0
56
- height: 25%
57
- width: 100%
58
- text-align: center
59
- line-height: 0
60
- .lb-cancel
61
- display: block
62
- width: 32px
63
- height: 32px
64
- margin: 0 auto
65
- background: url('../images/loading.gif') no-repeat
66
- .lb-prev, .lb-next
67
- height: 100%
68
- cursor: pointer
69
- display: block
70
- .lb-nav
71
- position: absolute
72
- top: 0
73
- left: 0
74
- height: 100%
75
- width: 100%
76
- z-index: 10
77
- a
78
- outline: none
79
- background-image: url('data:image/gifbase64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==')
80
- a.lb-prev
81
- width: 34%
82
- left: 0
83
- float: left
84
- background: url('../images/prev.png') left 48% no-repeat
85
- filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0)
86
- opacity: 0
87
- -webkit-transition: opacity 0.6s
88
- -moz-transition: opacity 0.6s
89
- -o-transition: opacity 0.6s
90
- transition: opacity 0.6s
91
- &:hover
92
- filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100)
93
- opacity: 1
94
- a.lb-next
95
- width: 64%
96
- right: 0
97
- float: right
98
- background: url(../images/next.png) right 48% no-repeat
99
- filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0)
100
- opacity: 0
101
- -webkit-transition: opacity 0.6s
102
- -moz-transition: opacity 0.6s
103
- -o-transition: opacity 0.6s
104
- transition: opacity 0.6s
105
- &:hover
106
- filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100)
107
- opacity: 1
108
- .lb-dataContainer
109
- margin: 0 auto
110
- padding-top: 5px
111
- *zoom: 1
112
- width: 100%
113
- border-radius: 0
114
- &:after
115
- content: ""
116
- display: table
117
- clear: both
118
- .lb-data
119
- padding: 0 4px
120
- color: #ccc
121
- .lb-details
122
- width: 85%
123
- float: left
124
- text-align: left
125
- line-height: 1.1em
126
- .lb-caption
127
- font-size: 13px
128
- font-weight: bold
129
- line-height: 1em
130
- .lb-number
131
- display: block
132
- clear: left
133
- padding-bottom: 1em
134
- font-size: 12px
135
- color: #999999
136
- .lb-close
137
- display: block
138
- float: right
139
- width: 30px
140
- height: 30px
141
- background: url(../images/close.png) top right no-repeat
142
- text-align: right
143
- outline: none
144
- filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=70)
145
- opacity: 0.7
146
- -webkit-transition: opacity 0.2s
147
- -moz-transition: opacity 0.2s
148
- -o-transition: opacity 0.2s
149
- transition: opacity 0.2s
150
- &:hover
151
- cursor: pointer
152
- filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100)
153
- opacity: 1
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/lightbox2/images/close.png DELETED
Binary file
lib/lightbox2/images/loading.gif DELETED
Binary file
lib/lightbox2/images/next.png DELETED
Binary file
lib/lightbox2/images/prev.png DELETED
Binary file
lib/lightbox2/js/lightbox.js DELETED
@@ -1,500 +0,0 @@
1
- /**!
2
- * Lightbox v2.8.2
3
- * by Lokesh Dhakar
4
- * Adaptation for WordPress by Miguel Sirvent
5
- *
6
- * More info:
7
- * @link http://lokeshdhakar.com/projects/lightbox2/
8
- * @link http://wpembedfb.com
9
- *
10
- * Copyright 2007, 2015 Lokesh Dhakar
11
- * Released under the MIT license
12
- * https://github.com/lokesh/lightbox2/blob/master/LICENSE
13
- */
14
-
15
- jQuery(function ($) {
16
- // Descriptions of all options available on the demo site:
17
- // http://lokeshdhakar.com/projects/lightbox2/index.html#options
18
-
19
- function Lightbox(options) {
20
- this.album = [];
21
- this.currentImageIndex = void 0;
22
- this.init();
23
-
24
- // options
25
- this.options = $.extend({}, this.constructor.defaults);
26
- this.option(options);
27
- }
28
-
29
- Lightbox.defaults = {
30
- albumLabel: 'Image %1 of %2',
31
- alwaysShowNavOnTouchDevices: false,
32
- fadeDuration: 500,
33
- fitImagesInViewport: true,
34
- // maxWidth: 800,
35
- // maxHeight: 600,
36
- positionFromTop: 50,
37
- resizeDuration: 700,
38
- showImageNumberLabel: true,
39
- wrapAround: false,
40
- disableScrolling: false
41
- };
42
-
43
- Lightbox.prototype.option = function (options) {
44
- $.extend(this.options, options);
45
- };
46
-
47
- Lightbox.prototype.imageCountLabel = function (currentImageNum, totalImages) {
48
- return this.options.albumLabel.replace(/%1/g, currentImageNum).replace(/%2/g, totalImages);
49
- };
50
-
51
- Lightbox.prototype.init = function () {
52
- this.enable();
53
- this.build();
54
- };
55
-
56
- // Loop through anchors and areamaps looking for either data-lightbox attributes or rel attributes
57
- // that contain 'lightbox'. When these are clicked, start lightbox.
58
- Lightbox.prototype.enable = function () {
59
- var self = this;
60
- $('body').on('click', 'a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]', function (event) {
61
- self.start($(event.currentTarget));
62
- return false;
63
- });
64
- };
65
-
66
- // Build html for the lightbox and the overlay.
67
- // Attach event handlers to the new DOM elements. click click click
68
- Lightbox.prototype.build = function () {
69
- var self = this;
70
- $('' +
71
- '<div id="lightboxOverlay" class="lightboxOverlay"></div>' +
72
- '<div id="lightbox" class="lightbox">' +
73
- '<div class="lb-outerContainer">' +
74
- '<div class="lb-container">' +
75
- '<img class="lb-image" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" />' +
76
- '<div class="lb-nav">' +
77
- '<a class="lb-prev" href="" ></a>' +
78
- '<a class="lb-next" href="" ></a>' +
79
- '</div>' +
80
- '<div class="lb-loader">' +
81
- '<a class="lb-cancel"></a>' +
82
- '</div>' +
83
- '</div>' +
84
- '</div>' +
85
- '<div class="lb-dataContainer">' +
86
- '<div class="lb-data">' +
87
- '<div class="lb-details">' +
88
- '<span class="lb-caption"></span>' +
89
- '<span class="lb-number"></span>' +
90
- '</div>' +
91
- '<div class="lb-closeContainer">' +
92
- '<a class="lb-close"></a>' +
93
- '</div>' +
94
- '</div>' +
95
- '</div>' +
96
- '</div>' +
97
- '').appendTo($('body'));
98
-
99
- // Cache jQuery objects
100
- this.$lightbox = $('#lightbox');
101
- this.$overlay = $('#lightboxOverlay');
102
- this.$outerContainer = this.$lightbox.find('.lb-outerContainer');
103
- this.$container = this.$lightbox.find('.lb-container');
104
-
105
- // Store css values for future lookup
106
- this.containerTopPadding = parseInt(this.$container.css('padding-top'), 10);
107
- this.containerRightPadding = parseInt(this.$container.css('padding-right'), 10);
108
- this.containerBottomPadding = parseInt(this.$container.css('padding-bottom'), 10);
109
- this.containerLeftPadding = parseInt(this.$container.css('padding-left'), 10);
110
-
111
- // Attach event handlers to the newly minted DOM elements
112
- this.$overlay.hide().on('click', function () {
113
- self.end();
114
- return false;
115
- });
116
-
117
- this.$lightbox.hide().on('click', function (event) {
118
- if ($(event.target).attr('id') === 'lightbox') {
119
- self.end();
120
- }
121
- return false;
122
- });
123
-
124
- this.$outerContainer.on('click', function (event) {
125
- if ($(event.target).attr('id') === 'lightbox') {
126
- self.end();
127
- }
128
- return false;
129
- });
130
-
131
- this.$lightbox.find('.lb-prev').on('click', function () {
132
- if (self.currentImageIndex === 0) {
133
- self.changeImage(self.album.length - 1);
134
- } else {
135
- self.changeImage(self.currentImageIndex - 1);
136
- }
137
- return false;
138
- });
139
-
140
- this.$lightbox.find('.lb-next').on('click', function () {
141
- if (self.currentImageIndex === self.album.length - 1) {
142
- self.changeImage(0);
143
- } else {
144
- self.changeImage(self.currentImageIndex + 1);
145
- }
146
- return false;
147
- });
148
-
149
- this.$lightbox.find('.lb-loader, .lb-close').on('click', function () {
150
- self.end();
151
- return false;
152
- });
153
- };
154
-
155
- // Show overlay and lightbox. If the image is part of a set, add siblings to album array.
156
- Lightbox.prototype.start = function ($link) {
157
- var self = this;
158
- var $window = $(window);
159
-
160
- $window.on('resize', $.proxy(this.sizeOverlay, this));
161
-
162
- $('select, object, embed').css({
163
- visibility: 'hidden'
164
- });
165
-
166
- this.sizeOverlay();
167
-
168
- this.album = [];
169
- var imageNumber = 0;
170
-
171
- function addToAlbum($link) {
172
- self.album.push({
173
- link: $link.attr('href'),
174
- title: $link.attr('data-title') || $link.attr('title')
175
- });
176
- }
177
-
178
- // Support both data-lightbox attribute and rel attribute implementations
179
- var dataLightboxValue = $link.attr('data-lightbox');
180
- var $links;
181
-
182
- if (dataLightboxValue) {
183
- $links = $($link.prop('tagName') + '[data-lightbox="' + dataLightboxValue + '"]');
184
- for (var i = 0; i < $links.length; i = ++i) {
185
- addToAlbum($($links[i]));
186
- if ($links[i] === $link[0]) {
187
- imageNumber = i;
188
- }
189
- }
190
- } else {
191
- if ($link.attr('rel') === 'lightbox') {
192
- // If image is not part of a set
193
- addToAlbum($link);
194
- } else {
195
- // If image is part of a set
196
- $links = $($link.prop('tagName') + '[rel="' + $link.attr('rel') + '"]');
197
- for (var j = 0; j < $links.length; j = ++j) {
198
- addToAlbum($($links[j]));
199
- if ($links[j] === $link[0]) {
200
- imageNumber = j;
201
- }
202
- }
203
- }
204
- }
205
- //console.log($window.scrollTop());
206
-
207
- // Position Lightbox
208
- var top = $window.scrollTop() + this.options.positionFromTop;
209
- var left = $window.scrollLeft();
210
- this.$lightbox.css({
211
- top: top + 'px',
212
- left: left + 'px'
213
- }).fadeIn(this.options.fadeDuration);
214
-
215
- // Disable scrolling of the page while open
216
- if (this.options.disableScrolling) {
217
- $('body').addClass('lb-disable-scrolling');
218
- $('html').addClass('lb-disable-scrolling');
219
- }
220
-
221
- this.changeImage(imageNumber);
222
- };
223
-
224
- // Hide most UI elements in preparation for the animated resizing of the lightbox.
225
- Lightbox.prototype.changeImage = function (imageNumber) {
226
- var self = this;
227
-
228
- this.disableKeyboardNav();
229
- var $image = this.$lightbox.find('.lb-image');
230
-
231
- this.$overlay.fadeIn(this.options.fadeDuration);
232
-
233
- $('.lb-loader').fadeIn('slow');
234
- this.$lightbox.find('.lb-image, .lb-nav, .lb-prev, .lb-next, .lb-dataContainer, .lb-numbers, .lb-caption').hide();
235
-
236
- this.$outerContainer.addClass('animating');
237
-
238
- // When image to show is preloaded, we send the width and height to sizeContainer()
239
- var preloader = new Image();
240
- preloader.onload = function () {
241
- var $preloader;
242
- var imageHeight;
243
- var imageWidth;
244
- var maxImageHeight;
245
- var maxImageWidth;
246
- var windowHeight;
247
- var windowWidth;
248
-
249
- $image.attr('src', self.album[imageNumber].link);
250
-
251
- $preloader = $(preloader);
252
-
253
- $image.width(preloader.width);
254
- $image.height(preloader.height);
255
-
256
- if (self.options.fitImagesInViewport) {
257
- // Fit image inside the viewport.
258
- // Take into account the border around the image and an additional 10px gutter on each side.
259
-
260
- windowWidth = $(window).width();
261
- windowHeight = $(window).height();
262
- maxImageWidth = windowWidth - self.containerLeftPadding - self.containerRightPadding - 20;
263
- maxImageHeight = windowHeight - self.containerTopPadding - self.containerBottomPadding - 120;
264
-
265
- // Check if image size is larger then maxWidth|maxHeight in settings
266
- if (self.options.maxWidth && self.options.maxWidth < maxImageWidth) {
267
- maxImageWidth = self.options.maxWidth;
268
- }
269
- if (self.options.maxHeight && self.options.maxHeight < maxImageWidth) {
270
- maxImageHeight = self.options.maxHeight;
271
- }
272
-
273
- // Is there a fitting issue?
274
- if ((preloader.width > maxImageWidth) || (preloader.height > maxImageHeight)) {
275
- if ((preloader.width / maxImageWidth) > (preloader.height / maxImageHeight)) {
276
- imageWidth = maxImageWidth;
277
- imageHeight = parseInt(preloader.height / (preloader.width / imageWidth), 10);
278
- $image.width(imageWidth);
279
- $image.height(imageHeight);
280
- } else {
281
- imageHeight = maxImageHeight;
282
- imageWidth = parseInt(preloader.width / (preloader.height / imageHeight), 10);
283
- $image.width(imageWidth);
284
- $image.height(imageHeight);
285
- }
286
- }
287
- }
288
- self.sizeContainer($image.width(), $image.height());
289
- };
290
-
291
- preloader.src = this.album[imageNumber].link;
292
- this.currentImageIndex = imageNumber;
293
- };
294
-
295
- // Stretch overlay to fit the viewport
296
- Lightbox.prototype.sizeOverlay = function () {
297
- this.$overlay
298
- .width($(document).width())
299
- .height($(document).height());
300
- };
301
-
302
- // Animate the size of the lightbox to fit the image we are showing
303
- Lightbox.prototype.sizeContainer = function (imageWidth, imageHeight) {
304
- var self = this;
305
-
306
- var oldWidth = this.$outerContainer.outerWidth();
307
- var oldHeight = this.$outerContainer.outerHeight();
308
- var newWidth = imageWidth + this.containerLeftPadding + this.containerRightPadding;
309
- var newHeight = imageHeight + this.containerTopPadding + this.containerBottomPadding;
310
-
311
- function postResize() {
312
- self.$lightbox.find('.lb-dataContainer').width(newWidth);
313
- self.$lightbox.find('.lb-prevLink').height(newHeight);
314
- self.$lightbox.find('.lb-nextLink').height(newHeight);
315
- self.showImage();
316
- }
317
-
318
- if (oldWidth !== newWidth || oldHeight !== newHeight) {
319
- this.$outerContainer.animate({
320
- width: newWidth,
321
- height: newHeight
322
- }, this.options.resizeDuration, 'swing', function () {
323
- postResize();
324
- });
325
- } else {
326
- postResize();
327
- }
328
- };
329
-
330
- // Display the image and its details and begin preload neighboring images.
331
- Lightbox.prototype.showImage = function () {
332
- this.$lightbox.find('.lb-loader').stop(true).hide();
333
- this.$lightbox.find('.lb-image').fadeIn('slow');
334
-
335
- this.updateNav();
336
- this.updateDetails();
337
- this.preloadNeighboringImages();
338
- this.enableKeyboardNav();
339
- };
340
-
341
- // Display previous and next navigation if appropriate.
342
- Lightbox.prototype.updateNav = function () {
343
- // Check to see if the browser supports touch events. If so, we take the conservative approach
344
- // and assume that mouse hover events are not supported and always show prev/next navigation
345
- // arrows in image sets.
346
- var alwaysShowNav = false;
347
- try {
348
- document.createEvent('TouchEvent');
349
- alwaysShowNav = (this.options.alwaysShowNavOnTouchDevices) ? true : false;
350
- } catch (e) {
351
- }
352
-
353
- this.$lightbox.find('.lb-nav').show();
354
-
355
- if (this.album.length > 1) {
356
- if (this.options.wrapAround) {
357
- if (alwaysShowNav) {
358
- this.$lightbox.find('.lb-prev, .lb-next').css('opacity', '1');
359
- }
360
- this.$lightbox.find('.lb-prev, .lb-next').show();
361
- } else {
362
- if (this.currentImageIndex > 0) {
363
- this.$lightbox.find('.lb-prev').show();
364
- if (alwaysShowNav) {
365
- this.$lightbox.find('.lb-prev').css('opacity', '1');
366
- }
367
- }
368
- if (this.currentImageIndex < this.album.length - 1) {
369
- this.$lightbox.find('.lb-next').show();
370
- if (alwaysShowNav) {
371
- this.$lightbox.find('.lb-next').css('opacity', '1');
372
- }
373
- }
374
- }
375
- }
376
- };
377
-
378
- // Display caption, image number, and closing button.
379
- Lightbox.prototype.updateDetails = function () {
380
- var self = this;
381
-
382
- // Enable anchor clicks in the injected caption html.
383
- // Thanks Nate Wright for the fix. @https://github.com/NateWr
384
- if (typeof this.album[this.currentImageIndex].title !== 'undefined' &&
385
- this.album[this.currentImageIndex].title !== '') {
386
- this.$lightbox.find('.lb-caption')
387
- .html(this.album[this.currentImageIndex].title)
388
- .fadeIn('fast')
389
- .find('a').on('click', function (event) {
390
- if ($(this).attr('target') !== undefined) {
391
- window.open($(this).attr('href'), $(this).attr('target'));
392
- } else {
393
- location.href = $(this).attr('href');
394
- }
395
- });
396
- }
397
-
398
- if (this.album.length > 1 && this.options.showImageNumberLabel) {
399
- var labelText = this.imageCountLabel(this.currentImageIndex + 1, this.album.length);
400
- this.$lightbox.find('.lb-number').text(labelText).fadeIn('fast');
401
- } else {
402
- this.$lightbox.find('.lb-number').hide();
403
- }
404
-
405
- this.$outerContainer.removeClass('animating');
406
-
407
- this.$lightbox.find('.lb-dataContainer').fadeIn(this.options.resizeDuration, function () {
408
- return self.sizeOverlay();
409
- });
410
- };
411
-
412
- // Preload previous and next images in set.
413
- Lightbox.prototype.preloadNeighboringImages = function () {
414
- if (this.album.length > this.currentImageIndex + 1) {
415
- var preloadNext = new Image();
416
- preloadNext.src = this.album[this.currentImageIndex + 1].link;
417
- }
418
- if (this.currentImageIndex > 0) {
419
- var preloadPrev = new Image();
420
- preloadPrev.src = this.album[this.currentImageIndex - 1].link;
421
- }
422
- };
423
-
424
- Lightbox.prototype.enableKeyboardNav = function () {
425
- $(document).on('keyup.keyboard', $.proxy(this.keyboardAction, this));
426
- };
427
-
428
- Lightbox.prototype.disableKeyboardNav = function () {
429
- $(document).off('.keyboard');
430
- };
431
-
432
- Lightbox.prototype.keyboardAction = function (event) {
433
- var KEYCODE_ESC = 27;
434
- var KEYCODE_LEFTARROW = 37;
435
- var KEYCODE_RIGHTARROW = 39;
436
-
437
- var keycode = event.keyCode;
438
- var key = String.fromCharCode(keycode).toLowerCase();
439
- if (keycode === KEYCODE_ESC || key.match(/x|o|c/)) {
440
- this.end();
441
- } else if (key === 'p' || keycode === KEYCODE_LEFTARROW) {
442
- if (this.currentImageIndex !== 0) {
443
- this.changeImage(this.currentImageIndex - 1);
444
- } else if (this.options.wrapAround && this.album.length > 1) {
445
- this.changeImage(this.album.length - 1);
446
- }
447
- } else if (key === 'n' || keycode === KEYCODE_RIGHTARROW) {
448
- if (this.currentImageIndex !== this.album.length - 1) {
449
- this.changeImage(this.currentImageIndex + 1);
450
- } else if (this.options.wrapAround && this.album.length > 1) {
451
- this.changeImage(0);
452
- }
453
- }
454
- };
455
- // Closing time. :-(
456
- Lightbox.prototype.end = function () {
457
- this.disableKeyboardNav();
458
- $(window).off('resize', this.sizeOverlay);
459
- this.$lightbox.fadeOut(this.options.fadeDuration);
460
- this.$overlay.fadeOut(this.options.fadeDuration);
461
- $('select, object, embed').css({
462
- visibility: 'visible'
463
- });
464
- if (this.options.disableScrolling) {
465
- $('body').removeClass('lb-disable-scrolling');
466
- $('html').removeClass('lb-disable-scrolling');
467
- }
468
- };
469
- if (typeof WEF_LB === "undefined") {
470
- new Lightbox();
471
- }
472
- else {
473
- for (var key in WEF_LB) {
474
- if (WEF_LB.hasOwnProperty(key)) {
475
- if (WEF_LB[key] === 'false') {
476
- WEF_LB[key] = false;
477
- }
478
- else if (WEF_LB[key] === 'true') {
479
- WEF_LB[key] = true;
480
- }
481
- else if (key !== 'albumLabel') {
482
- WEF_LB[key] = parseInt(WEF_LB[key]);
483
- }
484
- }
485
- }
486
- if (WEF_LB.hasOwnProperty('wpGallery') && WEF_LB['wpGallery']) {
487
- $('.gallery-icon a').each(function () {
488
- var href = $(this).attr('href');
489
- var p = new RegExp('.*?(\\.jpg|\\.png|\\.gif|\\.svg)', 'i');
490
- var m = p.exec(href);
491
- if (m !== null) {
492
- $(this).attr('data-lightbox', 'roadtrip');
493
- }
494
-
495
- });
496
- }
497
-
498
- new Lightbox(WEF_LB);
499
- }
500
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/lightbox2/js/lightbox.min.js DELETED
@@ -1 +0,0 @@
1
- jQuery(function(a){function b(b){this.album=[],this.currentImageIndex=void 0,this.init(),this.options=a.extend({},this.constructor.defaults),this.option(b)}if(b.defaults={albumLabel:"Image %1 of %2",alwaysShowNavOnTouchDevices:!1,fadeDuration:500,fitImagesInViewport:!0,positionFromTop:50,resizeDuration:700,showImageNumberLabel:!0,wrapAround:!1,disableScrolling:!1},b.prototype.option=function(b){a.extend(this.options,b)},b.prototype.imageCountLabel=function(a,b){return this.options.albumLabel.replace(/%1/g,a).replace(/%2/g,b)},b.prototype.init=function(){this.enable(),this.build()},b.prototype.enable=function(){var b=this;a("body").on("click","a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]",function(c){return b.start(a(c.currentTarget)),!1})},b.prototype.build=function(){var b=this;a('<div id="lightboxOverlay" class="lightboxOverlay"></div><div id="lightbox" class="lightbox"><div class="lb-outerContainer"><div class="lb-container"><img class="lb-image" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" /><div class="lb-nav"><a class="lb-prev" href="" ></a><a class="lb-next" href="" ></a></div><div class="lb-loader"><a class="lb-cancel"></a></div></div></div><div class="lb-dataContainer"><div class="lb-data"><div class="lb-details"><span class="lb-caption"></span><span class="lb-number"></span></div><div class="lb-closeContainer"><a class="lb-close"></a></div></div></div></div>').appendTo(a("body")),this.$lightbox=a("#lightbox"),this.$overlay=a("#lightboxOverlay"),this.$outerContainer=this.$lightbox.find(".lb-outerContainer"),this.$container=this.$lightbox.find(".lb-container"),this.containerTopPadding=parseInt(this.$container.css("padding-top"),10),this.containerRightPadding=parseInt(this.$container.css("padding-right"),10),this.containerBottomPadding=parseInt(this.$container.css("padding-bottom"),10),this.containerLeftPadding=parseInt(this.$container.css("padding-left"),10),this.$overlay.hide().on("click",function(){return b.end(),!1}),this.$lightbox.hide().on("click",function(c){return"lightbox"===a(c.target).attr("id")&&b.end(),!1}),this.$outerContainer.on("click",function(c){return"lightbox"===a(c.target).attr("id")&&b.end(),!1}),this.$lightbox.find(".lb-prev").on("click",function(){return 0===b.currentImageIndex?b.changeImage(b.album.length-1):b.changeImage(b.currentImageIndex-1),!1}),this.$lightbox.find(".lb-next").on("click",function(){return b.currentImageIndex===b.album.length-1?b.changeImage(0):b.changeImage(b.currentImageIndex+1),!1}),this.$lightbox.find(".lb-loader, .lb-close").on("click",function(){return b.end(),!1})},b.prototype.start=function(b){function c(a){d.album.push({link:a.attr("href"),title:a.attr("data-title")||a.attr("title")})}var d=this,e=a(window);e.on("resize",a.proxy(this.sizeOverlay,this)),a("select, object, embed").css({visibility:"hidden"}),this.sizeOverlay(),this.album=[];var f,g=0,h=b.attr("data-lightbox");if(h){f=a(b.prop("tagName")+'[data-lightbox="'+h+'"]');for(var i=0;i<f.length;i=++i)c(a(f[i])),f[i]===b[0]&&(g=i)}else if("lightbox"===b.attr("rel"))c(b);else{f=a(b.prop("tagName")+'[rel="'+b.attr("rel")+'"]');for(var j=0;j<f.length;j=++j)c(a(f[j])),f[j]===b[0]&&(g=j)}var k=e.scrollTop()+this.options.positionFromTop,l=e.scrollLeft();this.$lightbox.css({top:k+"px",left:l+"px"}).fadeIn(this.options.fadeDuration),this.options.disableScrolling&&(a("body").addClass("lb-disable-scrolling"),a("html").addClass("lb-disable-scrolling")),this.changeImage(g)},b.prototype.changeImage=function(b){var c=this;this.disableKeyboardNav();var d=this.$lightbox.find(".lb-image");this.$overlay.fadeIn(this.options.fadeDuration),a(".lb-loader").fadeIn("slow"),this.$lightbox.find(".lb-image, .lb-nav, .lb-prev, .lb-next, .lb-dataContainer, .lb-numbers, .lb-caption").hide(),this.$outerContainer.addClass("animating");var e=new Image;e.onload=function(){var f,g,h,i,j,k,l;d.attr("src",c.album[b].link),f=a(e),d.width(e.width),d.height(e.height),c.options.fitImagesInViewport&&(l=a(window).width(),k=a(window).height(),j=l-c.containerLeftPadding-c.containerRightPadding-20,i=k-c.containerTopPadding-c.containerBottomPadding-120,c.options.maxWidth&&c.options.maxWidth<j&&(j=c.options.maxWidth),c.options.maxHeight&&c.options.maxHeight<j&&(i=c.options.maxHeight),(e.width>j||e.height>i)&&(e.width/j>e.height/i?(h=j,g=parseInt(e.height/(e.width/h),10),d.width(h),d.height(g)):(g=i,h=parseInt(e.width/(e.height/g),10),d.width(h),d.height(g)))),c.sizeContainer(d.width(),d.height())},e.src=this.album[b].link,this.currentImageIndex=b},b.prototype.sizeOverlay=function(){this.$overlay.width(a(document).width()).height(a(document).height())},b.prototype.sizeContainer=function(a,b){function c(){d.$lightbox.find(".lb-dataContainer").width(g),d.$lightbox.find(".lb-prevLink").height(h),d.$lightbox.find(".lb-nextLink").height(h),d.showImage()}var d=this,e=this.$outerContainer.outerWidth(),f=this.$outerContainer.outerHeight(),g=a+this.containerLeftPadding+this.containerRightPadding,h=b+this.containerTopPadding+this.containerBottomPadding;e!==g||f!==h?this.$outerContainer.animate({width:g,height:h},this.options.resizeDuration,"swing",function(){c()}):c()},b.prototype.showImage=function(){this.$lightbox.find(".lb-loader").stop(!0).hide(),this.$lightbox.find(".lb-image").fadeIn("slow"),this.updateNav(),this.updateDetails(),this.preloadNeighboringImages(),this.enableKeyboardNav()},b.prototype.updateNav=function(){var a=!1;try{document.createEvent("TouchEvent"),a=!!this.options.alwaysShowNavOnTouchDevices}catch(b){}this.$lightbox.find(".lb-nav").show(),this.album.length>1&&(this.options.wrapAround?(a&&this.$lightbox.find(".lb-prev, .lb-next").css("opacity","1"),this.$lightbox.find(".lb-prev, .lb-next").show()):(this.currentImageIndex>0&&(this.$lightbox.find(".lb-prev").show(),a&&this.$lightbox.find(".lb-prev").css("opacity","1")),this.currentImageIndex<this.album.length-1&&(this.$lightbox.find(".lb-next").show(),a&&this.$lightbox.find(".lb-next").css("opacity","1"))))},b.prototype.updateDetails=function(){var b=this;if("undefined"!=typeof this.album[this.currentImageIndex].title&&""!==this.album[this.currentImageIndex].title&&this.$lightbox.find(".lb-caption").html(this.album[this.currentImageIndex].title).fadeIn("fast").find("a").on("click",function(b){void 0!==a(this).attr("target")?window.open(a(this).attr("href"),a(this).attr("target")):location.href=a(this).attr("href")}),this.album.length>1&&this.options.showImageNumberLabel){var c=this.imageCountLabel(this.currentImageIndex+1,this.album.length);this.$lightbox.find(".lb-number").text(c).fadeIn("fast")}else this.$lightbox.find(".lb-number").hide();this.$outerContainer.removeClass("animating"),this.$lightbox.find(".lb-dataContainer").fadeIn(this.options.resizeDuration,function(){return b.sizeOverlay()})},b.prototype.preloadNeighboringImages=function(){if(this.album.length>this.currentImageIndex+1){var a=new Image;a.src=this.album[this.currentImageIndex+1].link}if(this.currentImageIndex>0){var b=new Image;b.src=this.album[this.currentImageIndex-1].link}},b.prototype.enableKeyboardNav=function(){a(document).on("keyup.keyboard",a.proxy(this.keyboardAction,this))},b.prototype.disableKeyboardNav=function(){a(document).off(".keyboard")},b.prototype.keyboardAction=function(a){var b=27,c=37,d=39,e=a.keyCode,f=String.fromCharCode(e).toLowerCase();e===b||f.match(/x|o|c/)?this.end():"p"===f||e===c?0!==this.currentImageIndex?this.changeImage(this.currentImageIndex-1):this.options.wrapAround&&this.album.length>1&&this.changeImage(this.album.length-1):"n"!==f&&e!==d||(this.currentImageIndex!==this.album.length-1?this.changeImage(this.currentImageIndex+1):this.options.wrapAround&&this.album.length>1&&this.changeImage(0))},b.prototype.end=function(){this.disableKeyboardNav(),a(window).off("resize",this.sizeOverlay),this.$lightbox.fadeOut(this.options.fadeDuration),this.$overlay.fadeOut(this.options.fadeDuration),a("select, object, embed").css({visibility:"visible"}),this.options.disableScrolling&&(a("body").removeClass("lb-disable-scrolling"),a("html").removeClass("lb-disable-scrolling"))},"undefined"==typeof WEF_LB)new b;else{for(var c in WEF_LB)WEF_LB.hasOwnProperty(c)&&("false"===WEF_LB[c]?WEF_LB[c]=!1:"true"===WEF_LB[c]?WEF_LB[c]=!0:"albumLabel"!==c&&(WEF_LB[c]=parseInt(WEF_LB[c])));WEF_LB.hasOwnProperty("wpGallery")&&WEF_LB.wpGallery&&a(".gallery-icon a").each(function(){var b=a(this).attr("href"),c=new RegExp(".*?(\\.jpg|\\.png|\\.gif|\\.svg)","i"),d=c.exec(b);null!==d&&a(this).attr("data-lightbox","roadtrip")}),new b(WEF_LB)}});
 
lib/class-wef-comments.php → library/Comments.php RENAMED
@@ -1,18 +1,20 @@
1
  <?php
2
 
 
 
3
  /**
4
  * Handles comments auto embeds and comment count synchronization. It includes all actions and filters. Comments plugin
5
  * can also be invoked using the [fb_plugin comments] shortocode.
6
  *
7
  * @see WEF_Social_Plugins
8
  */
9
- class WEF_Comments extends WP_Embed_FB_Plugin {
10
  static function hooks() {
11
 
12
  /** @see WEF_Comments::comments_template */
13
  add_filter( 'comments_template', __CLASS__ . '::comments_template' );
14
 
15
- if ( self::get_option( 'comments_count_active' ) === 'true' ) {
16
 
17
  /** @see WEF_Comments::get_comments_number */
18
  add_filter( 'get_comments_number', __CLASS__ . '::get_comments_number', 10, 2 );
@@ -29,7 +31,7 @@ class WEF_Comments extends WP_Embed_FB_Plugin {
29
 
30
  }
31
 
32
- if ( self::get_option( 'comments_open_graph' ) === 'true' ) {
33
  /** @see WEF_Comments::wp_head */
34
  add_action( 'wp_head', __CLASS__ . '::wp_head' );
35
  }
@@ -39,7 +41,7 @@ class WEF_Comments extends WP_Embed_FB_Plugin {
39
  * Adds FB open graph app_id meta tag to head
40
  */
41
  static function wp_head() {
42
- $app_id = self::get_option( 'app_id' );
43
  if ( ! empty( $app_id ) ) {
44
  echo '<meta property="fb:app_id" content="' . $app_id . '" />' . PHP_EOL;
45
  }
1
  <?php
2
 
3
+ namespace SIGAMI\WP_Embed_FB;
4
+
5
  /**
6
  * Handles comments auto embeds and comment count synchronization. It includes all actions and filters. Comments plugin
7
  * can also be invoked using the [fb_plugin comments] shortocode.
8
  *
9
  * @see WEF_Social_Plugins
10
  */
11
+ class WEF_Comments {
12
  static function hooks() {
13
 
14
  /** @see WEF_Comments::comments_template */
15
  add_filter( 'comments_template', __CLASS__ . '::comments_template' );
16
 
17
+ if ( Plugin::get_option( 'comments_count_active' ) === 'true' ) {
18
 
19
  /** @see WEF_Comments::get_comments_number */
20
  add_filter( 'get_comments_number', __CLASS__ . '::get_comments_number', 10, 2 );
31
 
32
  }
33
 
34
+ if ( Plugin::get_option( 'comments_open_graph' ) === 'true' ) {
35
  /** @see WEF_Comments::wp_head */
36
  add_action( 'wp_head', __CLASS__ . '::wp_head' );
37
  }
41
  * Adds FB open graph app_id meta tag to head
42
  */
43
  static function wp_head() {
44
+ $app_id = Plugin::get_option( 'app_id' );
45
  if ( ! empty( $app_id ) ) {
46
  echo '<meta property="fb:app_id" content="' . $app_id . '" />' . PHP_EOL;
47
  }
library/Plugin_Framework.php ADDED
@@ -0,0 +1,544 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Created for: wp-embed-facebook
4
+ * By: Miguel Sirvent
5
+ * Date: 23/05/18
6
+ * Time: 10:41 PM
7
+ */
8
+
9
+ namespace SIGAMI\WP_Embed_FB;
10
+
11
+ abstract class Plugin_Framework {
12
+
13
+ const VER = '1.1.2';
14
+
15
+ const FILE = null;
16
+
17
+ const OPTION = null;
18
+
19
+ # Admin page options
20
+ /**
21
+ * @var string menu|submenu|management|options|theme|plugins|users|dashboard|posts|media|links|pages|comments
22
+ */
23
+ protected static $type = 'options';
24
+ protected static $page_title = 'New Page';
25
+ protected static $menu_title = 'New Page';
26
+ protected static $capability = 'manage_options';
27
+ protected static $menu_slug = 'new_page';
28
+ # Only for menu pages (Top Level)
29
+ protected static $icon = '';
30
+ protected static $position = null;
31
+ # Only for submenu pages
32
+ protected static $parent_slug = 'options-general.php';
33
+ # Sections of the admin page
34
+ protected static $tabs = array( 'General', 'Advanced' );
35
+
36
+ # Cache of commonly used vars.
37
+ protected static $defaults = null;
38
+ private static $options = null;
39
+ private static $path = null;
40
+ private static $url = null;
41
+ private static $instance = null;
42
+
43
+ static function instance() {
44
+ if ( self::$instance === null ) {
45
+ self::$instance = new static();
46
+ }
47
+
48
+ return self::$instance;
49
+ }
50
+
51
+ protected function __construct() {
52
+ # plugin translation
53
+ add_action( 'plugins_loaded', get_called_class() . '::load_translation' );
54
+
55
+ if ( ! empty( static::OPTION ) ) {
56
+
57
+ register_setting( "Settings_" . static::OPTION, static::OPTION, [
58
+ 'sanitize_callback' => get_called_class() . '::sanitize_option',
59
+ 'default' => static::defaults(),
60
+ ] );
61
+
62
+ register_activation_hook( static::FILE, get_called_class() . '::activation' );
63
+ register_uninstall_hook( static::FILE, get_called_class() . '::uninstall' );
64
+ register_deactivation_hook( static::FILE, get_called_class() . '::deactivation' );
65
+
66
+ if ( is_admin() ) {
67
+ /** @see Plugin_Framework::add_page() */
68
+ add_action( 'admin_menu', get_called_class() . '::add_page' );
69
+ /** @see Plugin_Framework::add_pager_script() */
70
+ add_action( 'current_screen', get_called_class() . '::add_pager_script' );
71
+ }
72
+
73
+ }
74
+ }
75
+
76
+ static function activation() {
77
+ static::get_option();
78
+ do_action( static::OPTION . '_' . __FUNCTION__ );
79
+ }
80
+
81
+ static function uninstall() {
82
+ do_action( static::OPTION . '_' . __FUNCTION__ );
83
+ delete_option( static::OPTION );
84
+ }
85
+
86
+ static function deactivation() {
87
+ do_action( static::OPTION . '_' . __FUNCTION__ );
88
+ }
89
+
90
+ static function path() {
91
+ if ( null === self::$path ) {
92
+ self::$path = plugin_dir_path( static::FILE );
93
+ }
94
+
95
+ return self::$path;
96
+ }
97
+
98
+ static function url() {
99
+ if ( null === self::$url ) {
100
+ self::$url = plugin_dir_url( static::FILE );
101
+ }
102
+
103
+ return self::$url;
104
+ }
105
+
106
+ static function load_translation() {
107
+ load_plugin_textdomain( 'text_domain', false, 'lang/' );
108
+ }
109
+
110
+ /**
111
+ * @return array Default variables used on this plugin
112
+ */
113
+ static function defaults() {
114
+ if ( self::$defaults === null ) {
115
+ self::$defaults = array(
116
+ 'off_option' => 0,
117
+ 'on_option' => 'on',
118
+ 'text_option' => 'Somethin crazy',
119
+ 'checklist_option' => array( 'one' => 'One name', 'two' => 'Two title' ),
120
+ 'number_option' => 34,
121
+ );
122
+ }
123
+
124
+ return self::$defaults;
125
+ }
126
+
127
+ /**
128
+ * To save options pass an array with all values as set on defaults. See example below:
129
+ *
130
+ * <code>
131
+ * # Set single option
132
+ * Plugin::set_options( ['option'=>'new value'] + Plugin::get_option() );
133
+ * or
134
+ * Plugin::set_options( array_merge(Plugin::get_option(),['option'=>'new value']) );
135
+ *
136
+ * # reset option to default
137
+ * Plugin::set_option(array_merge(Plugin::defaults(),['other_option'=>Plugin::defaults()['other_option']]));
138
+ *
139
+ * # Reset all options to defaults
140
+ * Plugin::set_options(Plugin::defaults());
141
+ *
142
+ * </code>
143
+ * @param array $options
144
+ */
145
+ static function set_options( $options ) {
146
+ update_option( static::OPTION, $options, true );
147
+ self::$options = get_option( static::OPTION );
148
+ }
149
+
150
+ /**
151
+ * Get a single option or all of them.
152
+ *
153
+ * @param null|string $option
154
+ *
155
+ * @return array|mixed The queried option. False if the option does not exists. Array with all options if $option is null;
156
+ */
157
+ static function get_option( $option = null ) {
158
+ if ( ! is_array( self::$options ) ) {
159
+ $options = get_option( static::OPTION );
160
+ if ( is_array( $options ) ) {
161
+ if ( $options === static::defaults() ) {
162
+ self::$options = $options;
163
+ } else {
164
+ $compare = array();
165
+ foreach ( static::defaults() as $default_key => $default_value ) {
166
+ $compare[ $default_key ] = isset( $options[ $default_key ] )
167
+ ? $options[ $default_key ] : $default_value;
168
+ }
169
+ if ( $compare === $options ) {
170
+ self::$options = $options;
171
+ } else {
172
+ static::set_options( $compare );
173
+ }
174
+ }
175
+ } else {
176
+ static::set_options( static::defaults() );
177
+ }
178
+ }
179
+ if ( $option ) {
180
+ return isset( self::$options[ $option ] ) ? self::$options[ $option ] : false;
181
+ } else {
182
+ return self::$options;
183
+ }
184
+ }
185
+
186
+ /**
187
+ * Sanitizes the option values before saving it to database.
188
+ *
189
+ * @param array $options Options previous to be saved on data base
190
+ *
191
+ * @return array The validated option.
192
+ */
193
+ static function sanitize_option( $options ) {
194
+
195
+ $defaults = static::defaults();
196
+
197
+ if ( is_string( $options ) && $options == 'restore' ) {
198
+ return $defaults;
199
+ }
200
+
201
+ if ( $options === $defaults ) {
202
+ return $options;
203
+ }
204
+
205
+ $clean = array();
206
+ foreach ( $defaults as $name => $default_value ) {
207
+ $clean[ $name ] = $default_value;
208
+ if ( ( ( $default_value === 'on' ) || ( $default_value === 0 ) ) ) {
209
+ if ( isset( $options[ $name ] ) && ( $options[ $name ] !== 0 ) ) {
210
+ $clean[ $name ] = 'on';
211
+ } else {
212
+ $clean[ $name ] = 0;
213
+ }
214
+ } elseif ( isset( $options[ $name ] ) ) {
215
+ if ( ( is_int( $default_value ) && is_int( $options[ $name ] ) )
216
+ || ( is_string( $default_value ) && is_string( $options[ $name ] ) )
217
+ || ( is_object( $default_value ) && is_object( $options[ $name ] ) )
218
+ || ( is_array( $default_value ) && is_array( $options[ $name ] ) ) ) {
219
+ $clean[ $name ] = $options[ $name ];
220
+ }
221
+ }
222
+ }
223
+
224
+ return $clean;
225
+ }
226
+
227
+ /**
228
+ * Add page to Settings
229
+ */
230
+ static function add_page() {
231
+ $function = 'add_' . static::$type . '_page';
232
+ if ( function_exists( $function ) ) {
233
+
234
+ if ( static::$type == 'menu' ) {
235
+ $options_page = call_user_func( $function, static::$page_title, static::$menu_title,
236
+ static::$capability, static::$menu_slug, get_called_class() . '::display_page',
237
+ static::$icon, static::$position );
238
+ } elseif ( static::$type == 'submenu' ) {
239
+ $options_page = call_user_func( $function, static::$parent_slug,
240
+ static::$page_title, static::$menu_title, static::$capability,
241
+ static::$menu_slug, get_called_class() . '::display_page' );
242
+ } else {
243
+ $options_page = call_user_func( $function, static::$page_title, static::$menu_title,
244
+ static::$capability, static::$menu_slug,
245
+ get_called_class() . '::display_page' );
246
+ }
247
+
248
+ if ( false === $options_page ) {
249
+ wp_die( 'Invalid page: ' . static::$type . ' ' . $function );
250
+ }
251
+
252
+ } else {
253
+ wp_die( 'Invalid page type: ' . static::$type );
254
+ }
255
+ }
256
+
257
+ static function add_pager_script() {
258
+ global $current_screen;
259
+
260
+ if ( strpos( $current_screen->id, static::$menu_slug ) !== false ) {
261
+
262
+ if ( count( static::$tabs ) > 1 ) {
263
+ add_action( 'in_admin_footer', get_called_class() . '::pager_script' );
264
+ }
265
+
266
+ }
267
+ }
268
+
269
+ static function pager_script() {
270
+ ob_start();
271
+ ?>
272
+ <script type="text/javascript">
273
+ jQuery(document).ready(function () {
274
+ var sections = jQuery('section');
275
+ var tabs = jQuery(".nav-tab-wrapper a");
276
+ var hash = jQuery(window.location.hash);
277
+ sections.hide();
278
+ if (hash.length) {
279
+ var index = hash.index() - 6; //why 6 ? dunno
280
+ //console.log(index);
281
+ sections.eq(index).show();
282
+ jQuery.each(tabs, function (key, value) {
283
+ jQuery(value).removeClass("nav-tab-active");
284
+ });
285
+ tabs.eq(index).addClass('nav-tab-active');
286
+ } else {
287
+ sections.first().show();
288
+ }
289
+ tabs.on('click', function (event) {
290
+ var index = jQuery(this).index();
291
+ var url = window.location.pathname + window.location.search + '#' + sections.eq(index)[0].id;
292
+ event.preventDefault();
293
+ sections.hide();
294
+ jQuery.each(tabs, function (key, value) {
295
+ jQuery(value).removeClass("nav-tab-active");
296
+ });
297
+ sections.eq(index).show();
298
+ jQuery(this).addClass('nav-tab-active');
299
+ window.history.pushState(sections.eq(index)[0].id, tabs.eq(index)[0].innerText, url);
300
+ });
301
+ });
302
+ </script>
303
+ <?php
304
+ echo ob_get_clean();
305
+ }
306
+
307
+ /**
308
+ * Render form sections
309
+ *
310
+ * @param string|bool $title
311
+ */
312
+ static function section( $title = '' ) {
313
+ if ( $title ) :
314
+ if ( is_string( $title ) )
315
+ echo "<h3>$title</h3>"
316
+ ?>
317
+ <table class="form-table">
318
+ <tbody>
319
+ <?php
320
+ else :
321
+ ?>
322
+ </tbody>
323
+ </table>
324
+ <?php
325
+ endif;
326
+ }
327
+
328
+ /**
329
+ * Render form fields
330
+ *
331
+ * @param string $type Type of input field
332
+ * @param string $name Input name
333
+ * @param string $label Input Label
334
+ * @param string $description Field description
335
+ * @param array|null $atts HTML attributes like example ['required','max'=>20,'onclick'=>'do_something()']
336
+ * @param array $values Option values for select and checklist fields
337
+ */
338
+ static function field(
339
+ $type, $name = '', $label = '', $description = '', $atts = null, $values = array()
340
+ ) {
341
+ //TODO add aria-describedby on input that points to the id of description
342
+ $options = apply_filters( static::OPTION . '_field_options', static::get_option() );
343
+ $attsString = '';
344
+ if ( ! empty( $atts ) ) {
345
+ foreach ( $atts as $att => $val ) {
346
+ if ( is_numeric( $att ) ) {
347
+ $attsString .= " $val ";
348
+ } else {
349
+ $attsString .= $att . '="' . $val . '" ';
350
+ }
351
+
352
+ }
353
+ }
354
+ switch ( $type ) {
355
+ case 'checklist':
356
+
357
+ ob_start();
358
+ ?>
359
+ <tr>
360
+ <th><?php echo $label ?></th>
361
+ <td>
362
+ <fieldset>
363
+ <?php
364
+ foreach ( $values as $value => $title ) :
365
+ $checked = ( in_array( $value, $options[ $name ] ) ) ? 'checked'
366
+ : '';
367
+ ?>
368
+ <label for="<?php echo "{$name}_$value" ?>">
369
+ <input type="checkbox" id="<?php echo "{$name}_$value" ?>"
370
+ name="<?php echo static::OPTION . "[$name][]" ?>"
371
+ value="<?php echo $value ?>" <?php echo $checked ?> <?php echo $attsString ?>/>
372
+ <span><?php echo $title ?></span>
373
+ </label>
374
+ <br>
375
+
376
+ <?php endforeach; ?>
377
+ </fieldset>
378
+ <?php if ( ! empty( $description ) ) : ?>
379
+ <p class="description"><?php echo $description ?></p>
380
+ <?php endif; ?>
381
+ </td>
382
+ </tr>
383
+ <?php
384
+ ob_end_flush();
385
+ break;
386
+ case 'checkbox':
387
+ $checked = ( $options[ $name ] === 'on' ) ? 'checked' : '';
388
+ ob_start();
389
+ ?>
390
+ <tr valign="middle">
391
+ <th scope="row"><label
392
+ for="<?php echo $name ?>"><?php echo $label ?></label></th>
393
+ <td>
394
+ <input type="checkbox" id="<?php echo $name ?>"
395
+ name="<?php echo static::OPTION
396
+ . "[$name]" ?>" <?php echo $checked ?> <?php echo $attsString ?>/>
397
+ <?php if ( ! empty( $description ) ) : ?>
398
+ <span><?php echo $description ?></span>
399
+ <?php endif; ?>
400
+ </td>
401
+ </tr>
402
+ <?php
403
+ ob_end_flush();
404
+ break;
405
+ case 'select' :
406
+ $option = $options[ $name ];
407
+ ob_start();
408
+ ?>
409
+ <tr valign="middle">
410
+ <th scope="row"><label for="<?php echo static::OPTION
411
+ . "[$name]" ?>"><?php echo $label ?></label>
412
+ </th>
413
+ <td>
414
+ <select name="<?php echo static::OPTION
415
+ . "[$name]" ?>" <?php echo $attsString ?>>
416
+ <?php
417
+ foreach ( $values as $value => $name ) :
418
+ if ( is_numeric( $value ) ) {
419
+ $value = $name;
420
+ }
421
+ ?>
422
+ <option value="<?php echo $name ?>" <?php echo $option == $value
423
+ ? 'selected' : '' ?>><?php echo $name ?></option>
424
+ <?php endforeach; ?>
425
+ </select>
426
+ <?php if ( ! empty( $description ) ) : ?>
427
+ <p class="description"><?php echo $description ?></p>
428
+ <?php endif; ?>
429
+ </td>
430
+ </tr>
431
+ <?php
432
+ ob_end_flush();
433
+ break;
434
+
435
+ case 'string' :
436
+ ob_start();
437
+ ?>
438
+ <tr valign="middle">
439
+ <th><?php echo $label ?></th>
440
+ <td>
441
+ <?php echo $name ?>
442
+ </td>
443
+ </tr>
444
+ <?php
445
+ ob_end_flush();
446
+ break;
447
+ default:
448
+ ob_start();
449
+ ?>
450
+ <tr>
451
+ <th scope="row"><label for="<?php echo static::OPTION
452
+ . "[$name]" ?>"><?php echo $label ?></label>
453
+ </th>
454
+ <td>
455
+ <input id="<?php echo $name ?>"
456
+ type="<?php echo $type ?>"
457
+ name="<?php echo static::OPTION . "[$name]" ?>"
458
+ value="<?php echo esc_attr( $options[ $name ] ) ?>" <?php echo $attsString ?>
459
+ <?php echo ! isset( $atts['class'] ) ? ' class="regular-text" '
460
+ : ''; ?>/>
461
+ <?php if ( ! empty( $description ) ) : ?>
462
+ <p class="description"><?php echo $description ?></p>
463
+ <?php endif; ?>
464
+ </td>
465
+ </tr>
466
+ <?php
467
+ ob_end_flush();
468
+ break;
469
+ }
470
+ }
471
+
472
+ /**
473
+ * Renders the wp-admin settings page
474
+ */
475
+ static function display_page() {
476
+ if ( isset( $_POST['restore-data'] )
477
+ && wp_verify_nonce( $_POST['restore-data'], 'W7ziLKoLojka' ) ) {
478
+ update_option( static::OPTION, static::defaults(), true );
479
+ }
480
+ ?>
481
+ <div class="wrap">
482
+ <h2><?php echo static::$page_title ?></h2>
483
+ <?php //settings_errors(); ?>
484
+ <!--suppress HtmlUnknownTarget -->
485
+ <form action="options.php" method="post">
486
+ <?php settings_fields( "Settings_" . static::OPTION ); ?>
487
+ <?php
488
+ $tabs = apply_filters( static::OPTION . '_tabs', static::$tabs );
489
+ ?>
490
+ <?php if ( count( static::$tabs ) > 1 ) : ?>
491
+ <h2 class="nav-tab-wrapper">
492
+ <?php
493
+ foreach ( $tabs as $tab ) {
494
+ $class = $tabs[0] == $tab ? "nav-tab-active" : "";
495
+ echo "<a class='nav-tab $class' href='#'>$tab</a>";
496
+ }
497
+ ?>
498
+ </h2><br>
499
+ <?php endif; ?>
500
+ <?php echo static::form_content() ?>
501
+ <?php submit_button(); ?>
502
+ </form>
503
+ <br>
504
+ <!--suppress HtmlUnknownTarget -->
505
+ <form action="options.php" method="post"
506
+ onsubmit="return confirm('<?php _e( 'Restore default values?',
507
+ 'text_domain' ) ?>');">
508
+ <?php settings_fields( "Settings_" . static::OPTION ); ?>
509
+ <input type="hidden" name="<?php echo static::OPTION ?>" value="restore"/>
510
+ <input type="submit" name="restore" class="button"
511
+ value="<?php _e( 'Restore defaults', 'text_domain' ) ?>"/>
512
+ </form>
513
+ </div>
514
+ <?php
515
+ }
516
+
517
+ static function form_content() {
518
+ ob_start();
519
+ ?>
520
+ <section id="general" class="section">
521
+ <?php
522
+ self::section( __( 'General options', 'text_domain' ) );
523
+ self::field( 'text', 'text_option', __( 'Text Option', 'text_domain' ), 'Help text' );
524
+ self::field( 'checkbox', 'off_option', __( 'Off Option', 'text_domain' ) );
525
+ self::field( 'checkbox', 'on_option', __( 'On Option', 'text_domain' ), 'extra info' );
526
+ self::section();
527
+ ?>
528
+ </section>
529
+ <section id="advanced" class="section">
530
+ <?php
531
+ self::section( __( 'Advanced options', 'text_domain' ) );
532
+ self::field( 'number', 'number_option', __( 'Number Option', 'text_domain' ),
533
+ 'Help text', array( 'max' => '30' ) );
534
+ #using the default values on checklist is optional they can also be created by other means
535
+ self::field( 'checklist', 'checklist_option', __( 'Checklist Option', 'text_domain' ),
536
+ 'more info', '', self::get_option( 'checklist_option' ) );
537
+ self::section();
538
+ ?>
539
+ </section>
540
+ <?php
541
+ return ob_get_clean();
542
+ }
543
+
544
+ }
library/defaults.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Created for: wp-embed-facebook
4
+ * By: Miguel Sirvent
5
+ * Date: 23/05/18
6
+ * Time: 10:17 PM
7
+ */
8
+
9
+ //TODO place all default settings for
readme.txt CHANGED
@@ -2,19 +2,25 @@
2
  Contributors: poxtron
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=R8Q85GT3Q8Q26
4
  Tags: Facebook, facebook, Social Plugins, embed facebook, facebook video, facebook posts, facebook publication, facebook publications, facebook event, facebook events, facebook pages, facebook page, facebook profiles, facebook album, facebook albums, facebook photos, facebook photo, social,
5
- Requires at least: 4.6
6
- Tested up to: 4.8
7
- Stable tag: 2.2.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
 
 
 
 
 
 
11
  Embed any public Facebook video, page, comment, event, album, photo, profile. Add Facebook comments to all your site or embed any Social Plugin.
12
 
13
  == Description ==
14
 
15
  Automatically embed any type of content from Facebook directly into your site by simply copying the url into the editor.
16
 
17
- There are two types of embeds: Custom Embeds that are entirely native to this plugin and social plugins which are pieces of code created by Facebook developers
18
 
19
  [All custom embeds examples](http://www.wpembedfb.com/demo-site/category/custom-embeds/)
20
 
@@ -22,13 +28,13 @@ There are two types of embeds: Custom Embeds that are entirely native to this pl
22
 
23
  As an alternative to automatically embed your content you can use the `[facebook url]` shortcode instead and pass on some parameters to change each embed [examples](http://www.wpembedfb.com/demo-site/category/custom-embeds/).
24
 
25
- You can also use the native `[embed]` [shortcode](https://codex.wordpress.org/Embeds).
26
 
27
  = Supported Embeds =
28
  * Facebook Live Video
29
  * Facebook Videos
30
  * Facebook Albums
31
- * Facebook Events
32
  * Facebook Photos
33
  * Facebook Fan pages
34
  * Facebook Profiles
@@ -40,11 +46,15 @@ Pieces of code crafted by Facebook developers for us mortals ( [official documen
40
 
41
  Examples:
42
 
43
- A like and share button for the current page
44
 
45
  `[fb_plugin like share=true]`
46
 
47
- Send a message to a Facebook fan page.
 
 
 
 
48
 
49
  `[fb_plugin page href=https://www.facebook.com/wpemf/ small-header=true height=350 tabs=messages ]`
50
 
@@ -71,12 +81,8 @@ If you found a bug or want to add an extra feature create a pull request on [git
71
 
72
  = Premium extension =
73
  * "Elegant" custom embeds theme
74
- * Embed full event shortcode
75
  * Embed full fan page shortcode
76
- * Embed events with address and admins
77
  * Embed albums with more that 100 photos
78
- * Embed all upcoming events of a fan page
79
- * mbed personal data
80
  * Features cooking
81
  * Shortcode creator
82
  * Special templates for albums and pages
@@ -147,6 +153,10 @@ Buying the premium extensions helps to keep this project alive.
147
 
148
  == Changelog ==
149
 
 
 
 
 
150
  = 2.2.3 =
151
  * Added: filter for $fbsdk
152
  * Added: Facebook SDK v2.11
2
  Contributors: poxtron
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=R8Q85GT3Q8Q26
4
  Tags: Facebook, facebook, Social Plugins, embed facebook, facebook video, facebook posts, facebook publication, facebook publications, facebook event, facebook events, facebook pages, facebook page, facebook profiles, facebook album, facebook albums, facebook photos, facebook photo, social,
5
+ Requires at least: 4.9.5
6
+ Tested up to: 4.9.5
7
+ Stable tag: 3.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
+
12
+
13
+
14
+ TODO Borrar la sección del album y usar solo el gallery de wp
15
+
16
+
17
  Embed any public Facebook video, page, comment, event, album, photo, profile. Add Facebook comments to all your site or embed any Social Plugin.
18
 
19
  == Description ==
20
 
21
  Automatically embed any type of content from Facebook directly into your site by simply copying the url into the editor.
22
 
23
+ There are two types of embeds: Custom Embeds that which entirely native to this plugin and social plugins which are pieces of code created by Facebook developers
24
 
25
  [All custom embeds examples](http://www.wpembedfb.com/demo-site/category/custom-embeds/)
26
 
28
 
29
  As an alternative to automatically embed your content you can use the `[facebook url]` shortcode instead and pass on some parameters to change each embed [examples](http://www.wpembedfb.com/demo-site/category/custom-embeds/).
30
 
31
+ You can also use the built in WordPress `[embed]` [shortcode](https://codex.wordpress.org/Embeds).
32
 
33
  = Supported Embeds =
34
  * Facebook Live Video
35
  * Facebook Videos
36
  * Facebook Albums
37
+ * Facebook Page Events List
38
  * Facebook Photos
39
  * Facebook Fan pages
40
  * Facebook Profiles
46
 
47
  Examples:
48
 
49
+ A like and share button for the current page (works on a sidebar)
50
 
51
  `[fb_plugin like share=true]`
52
 
53
+ Embed a complete Facebook fan page with latest post, events and the posibility to send a direct message
54
+
55
+ `[fb_plugin page href=https://www.facebook.com/sydneyoperahouse/ tabs=timeline,events,messages ] `
56
+
57
+ Embed all upcoming events of a fan page
58
 
59
  `[fb_plugin page href=https://www.facebook.com/wpemf/ small-header=true height=350 tabs=messages ]`
60
 
81
 
82
  = Premium extension =
83
  * "Elegant" custom embeds theme
 
84
  * Embed full fan page shortcode
 
85
  * Embed albums with more that 100 photos
 
 
86
  * Features cooking
87
  * Shortcode creator
88
  * Special templates for albums and pages
153
 
154
  == Changelog ==
155
 
156
+ = 2.2.4 =
157
+ * Fixed: Missing icons on custom embeds
158
+ * Added: Facebook SDK v2.12
159
+
160
  = 2.2.3 =
161
  * Added: filter for $fbsdk
162
  * Added: Facebook SDK v2.11
templates/default/photo.php CHANGED
@@ -3,8 +3,9 @@
3
  echo $fb_data['link'] ?>" target="_blank" rel="nofollow">
4
  <img src="<?php echo $fb_data['source'] ?>" width="100%" height="auto" >
5
  </a>
 
6
  <a class="wef-post-link" href="<?php echo $fb_data['link'] ?> " target="_blank" rel="nofollow">
7
- <?php echo isset($fb_data['likes']) ? '<img src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/y6/r/l9Fe9Ugss0S.gif" />'.$fb_data['likes']['summary']['total_count'].' ' : "" ?>
8
- <?php echo isset($fb_data['comments']) ? '<img src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/yg/r/V8Yrm0eKZpi.gif" />'.$fb_data['comments']['summary']['total_count'].' ' : "" ?>
9
  </a>
10
  </div>
3
  echo $fb_data['link'] ?>" target="_blank" rel="nofollow">
4
  <img src="<?php echo $fb_data['source'] ?>" width="100%" height="auto" >
5
  </a>
6
+
7
  <a class="wef-post-link" href="<?php echo $fb_data['link'] ?> " target="_blank" rel="nofollow">
8
+ <?php echo isset($fb_data['likes']) ? '<img width="16px" height="16px" src="'.WP_Embed_FB_Plugin::url().'lib/images/like.png" /> '.$fb_data['likes']['summary']['total_count'].' ' : "" ?>
9
+ <?php echo isset($fb_data['comments']) ? ' <img width="16px" height="16px" src="'.WP_Embed_FB_Plugin::url().'lib/images/comments.png"/> '.$fb_data['comments']['summary']['total_count'].' ' : "" ?>
10
  </a>
11
  </div>
templates/default/single-post.php CHANGED
@@ -134,9 +134,9 @@ $link_info = $name . $description . $caption;
134
  <a class="wef-post-likes"
135
  href="<?php echo "https://www.facebook.com/" . $linkArray[0] . "/posts/" . $linkArray[1] ?> "
136
  target="_blank" rel="nofollow" title="<?php echo esc_attr($title_count) ?>">
137
- <?php echo isset($fb_post['likes']) ? '<img src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/y6/r/l9Fe9Ugss0S.gif" />' . $fb_post['likes']['summary']['total_count'] . ' ' : "" ?>
138
- <?php echo isset($fb_post['comments']) ? '<img src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/yg/r/V8Yrm0eKZpi.gif" />' . $fb_post['comments']['summary']['total_count'] . ' ' : "" ?>
139
- <?php echo isset($fb_post['shares']) ? '<img src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/y2/r/o19N6EzzbUm.png" />' . $fb_post['shares']['count'] . ' ' : "" ?>
140
  </a>
141
  </div>
142
  </div>
134
  <a class="wef-post-likes"
135
  href="<?php echo "https://www.facebook.com/" . $linkArray[0] . "/posts/" . $linkArray[1] ?> "
136
  target="_blank" rel="nofollow" title="<?php echo esc_attr($title_count) ?>">
137
+ <?php echo isset($fb_post['likes']) ? ' <img width="16px" height="16px" src="'.WP_Embed_FB_Plugin::url().'lib/images/like.png" /> ' . $fb_post['likes']['summary']['total_count'] . ' ' : "" ?>
138
+ <?php echo isset($fb_post['comments']) ? ' <img width="16px" height="16px" src="'.WP_Embed_FB_Plugin::url().'lib/images/comments.png" /> ' . $fb_post['comments']['summary']['total_count'] . ' ' : "" ?>
139
+ <?php echo isset($fb_post['shares']) ? ' <img width="16px" height="16px" src="'.WP_Embed_FB_Plugin::url().'lib/images/share.png" /> ' . $fb_post['shares']['count'] . ' ' : "" ?>
140
  </a>
141
  </div>
142
  </div>
wp-embed-facebook.php CHANGED
@@ -4,52 +4,78 @@ Plugin Name: WP Embed Facebook
4
  Plugin URI: http://www.wpembedfb.com
5
  Description: Embed any public Facebook video, photo, album, event, page, comment, profile, or post. Add Facebook comments to all your site, insert Facebook social plugins (like, save, send, share, follow, quote, comments) anywhere on your site. View the <a href="http://www.wpembedfb.com/demo-site/" title="plugin website" target="_blank">demo site</a>.
6
  Author: Miguel Sirvent
7
- Version: 2.2.3
8
  Author URI: http://www.wpembedfb.com
9
  Text Domain: wp-embed-facebook
10
  Domain Path: /lang
11
- */
12
 
13
- /** @noinspection PhpIncludeInspection */
14
- require_once( plugin_dir_path( __FILE__ ) . 'lib/class-wp-embed-fb-plugin.php' );
15
- WP_Embed_FB_Plugin::hooks();
16
 
17
- /** @noinspection PhpIncludeInspection */
18
- require_once( WP_Embed_FB_Plugin::path() . 'lib/class-wef-widget.php' );
19
- /** @noinspection PhpIncludeInspection */
20
- require_once( WP_Embed_FB_Plugin::path() . 'lib/class-wef-social-plugins.php' );
21
 
 
 
 
 
 
 
 
 
 
22
 
23
- /** @see WP_Embed_FB_Plugin::install */
24
- register_activation_hook( __FILE__, 'WP_Embed_FB_Plugin::install' );
25
 
26
- /** @see WP_Embed_FB_Plugin::uninstall */
27
- register_uninstall_hook( __FILE__, 'WP_Embed_FB_Plugin::uninstall' );
28
 
29
- /** @see WP_Embed_FB_Plugin::deactivate */
30
- register_deactivation_hook( __FILE__, 'WP_Embed_FB_Plugin::deactivate' );
31
 
32
- /** @noinspection PhpIncludeInspection */
33
- require_once( WP_Embed_FB_Plugin::path() . 'lib/class-wp-embed-fb.php' );
34
 
35
- /* Magic here */
36
- /** @noinspection PhpIncludeInspection */
37
- require_once( WP_Embed_FB_Plugin::path() . 'lib/class-wef-magic-embeds.php' );
38
- WEF_Magic_Embeds::hooks();
39
 
 
 
 
 
 
 
40
 
41
- if ( WP_Embed_FB_Plugin::get_option( 'auto_comments_active' ) === 'true' ) {
42
- /** @noinspection PhpIncludeInspection */
43
- require_once( WP_Embed_FB_Plugin::path() . 'lib/class-wef-comments.php' );
44
- WEF_Comments::hooks();
45
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
 
47
- if ( is_admin() ) {
48
- /** @noinspection PhpIncludeInspection */
49
- require_once( WP_Embed_FB_Plugin::path() . 'lib/class-wp-embed-fb-admin.php' );
50
- WP_Embed_FB_Admin::hooks();
51
 
52
- /** @see WP_Embed_FB_Admin::add_action_link */
53
- add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'WP_Embed_FB_Admin::add_action_link' );
54
  }
55
 
 
4
  Plugin URI: http://www.wpembedfb.com
5
  Description: Embed any public Facebook video, photo, album, event, page, comment, profile, or post. Add Facebook comments to all your site, insert Facebook social plugins (like, save, send, share, follow, quote, comments) anywhere on your site. View the <a href="http://www.wpembedfb.com/demo-site/" title="plugin website" target="_blank">demo site</a>.
6
  Author: Miguel Sirvent
7
+ Version: 3.0.0
8
  Author URI: http://www.wpembedfb.com
9
  Text Domain: wp-embed-facebook
10
  Domain Path: /lang
11
+ */
12
 
13
+ namespace SIGAMI\WP_Embed_FB;
 
 
14
 
15
+ spl_autoload_register( __NAMESPACE__ . '\auto_loader' );
 
 
 
16
 
17
+ function auto_loader( $class_name ) {
18
+ if ( false !== strpos( $class_name, __NAMESPACE__ ) ) {
19
+ $classes_dir = realpath( plugin_dir_path( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'inc'
20
+ . DIRECTORY_SEPARATOR;
21
+ /** @noinspection PhpIncludeInspection */
22
+ require_once $classes_dir . str_replace( [ __NAMESPACE__, '\\' ], '', $class_name )
23
+ . '.php';
24
+ }
25
+ }
26
 
27
+ final class Plugin extends Plugin_Framework {
 
28
 
29
+ const FILE = __FILE__;
 
30
 
31
+ const OPTION = 'wp-embed-fb';
 
32
 
33
+ # Sections of the admin page
34
+ protected static $tabs = [ 'General' ];
35
 
36
+ static function load_translation() {
37
+ load_plugin_textdomain( 'wp-embed-fb', false,
38
+ dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
39
+ }
40
 
41
+ static function defaults() {
42
+ if ( self::$defaults === null ) {
43
+ self::$defaults = [
44
+ 'option' => 'on',
45
+ ];
46
+ }
47
 
48
+ return self::$defaults;
49
+ }
50
+
51
+ static function form_content() {
52
+ ob_start();
53
+ ?>
54
+ <section id="general" class="section">
55
+ <?php
56
+ self::section( __( 'Options', 'wp-embed-fb' ) );
57
+ self::field( 'checkbox', 'option', __( 'Option', 'wp-embed-fb' ),
58
+ __( 'Description', 'wp-embed-fb' ) );
59
+ self::section();
60
+ ?>
61
+ </section>
62
+ <?php
63
+
64
+ return ob_get_clean();
65
+ }
66
+
67
+ protected function __construct() {
68
+
69
+ self::$page_title = __( 'Page Title', 'wp-embed-fb' );
70
+ self::$menu_title = __( 'Menu Title', 'wp-embed-fb' );
71
+ self::$menu_slug = 'wp-embed-fb';
72
+
73
+ parent::__construct();
74
+
75
+ $options = self::get_option();
76
 
77
+ }
 
 
 
78
 
 
 
79
  }
80
 
81
+ Plugin::instance();