WP jQuery Lightbox - Version 1.4.8

Version Description

Fixed support for WordPress 4.4, Fixed translations not being loaded properly

Download this release

Release Info

Developer ulfben
Plugin Icon wp plugin WP jQuery Lightbox
Version 1.4.8
Comparing to
See all releases

Code changes from version 1.4.6 to 1.4.8

Files changed (51) hide show
  1. languages/jqlb-pt_PT.mo +0 -0
  2. languages/jqlb-pt_PT.po +0 -149
  3. languages/{jqlb-cs_CZ.mo → wp-jquery-lightbox-cs_CZ.mo} +0 -0
  4. languages/{jqlb-cs_CZ.po → wp-jquery-lightbox-cs_CZ.po} +0 -0
  5. languages/{jqlb-da_DK.mo → wp-jquery-lightbox-da_DK.mo} +0 -0
  6. languages/{jqlb-da_DK.po → wp-jquery-lightbox-da_DK.po} +0 -0
  7. languages/{jqlb-de_DE.mo → wp-jquery-lightbox-de_DE.mo} +0 -0
  8. languages/{jqlb-de_DE.po → wp-jquery-lightbox-de_DE.po} +0 -0
  9. languages/{jqlb-es_ES.mo → wp-jquery-lightbox-es_ES.mo} +0 -0
  10. languages/{jqlb-es_ES.po → wp-jquery-lightbox-es_ES.po} +0 -0
  11. languages/{jqlb-fi.mo → wp-jquery-lightbox-fi.mo} +0 -0
  12. languages/{jqlb-fi.po → wp-jquery-lightbox-fi.po} +0 -0
  13. languages/{jqlb-fr_FR.mo → wp-jquery-lightbox-fr_FR.mo} +0 -0
  14. languages/{jqlb-fr_FR.po → wp-jquery-lightbox-fr_FR.po} +0 -0
  15. languages/{jqlb-he_IL.mo → wp-jquery-lightbox-he_IL.mo} +0 -0
  16. languages/{jqlb-he_IL.po → wp-jquery-lightbox-he_IL.po} +0 -0
  17. languages/{jqlb-it_IT.mo → wp-jquery-lightbox-it_IT.mo} +0 -0
  18. languages/{jqlb-it_IT.po → wp-jquery-lightbox-it_IT.po} +0 -0
  19. languages/{jqlb-ja.mo → wp-jquery-lightbox-ja.mo} +0 -0
  20. languages/{jqlb-ja.po → wp-jquery-lightbox-ja.po} +0 -0
  21. languages/{jqlb-lt_LT.mo → wp-jquery-lightbox-lt_LT.mo} +0 -0
  22. languages/{jqlb-lt_LT.po → wp-jquery-lightbox-lt_LT.po} +0 -0
  23. languages/{jqlb-nb_NO.mo → wp-jquery-lightbox-nb_NO.mo} +0 -0
  24. languages/{jqlb-nb_NO.po → wp-jquery-lightbox-nb_NO.po} +0 -0
  25. languages/{jqlb-nl_NL.mo → wp-jquery-lightbox-nl_NL.mo} +0 -0
  26. languages/{jqlb-nl_NL.po → wp-jquery-lightbox-nl_NL.po} +0 -0
  27. languages/{jqlb-pl_PL.mo → wp-jquery-lightbox-pl_PL.mo} +0 -0
  28. languages/{jqlb-pl_PL.po → wp-jquery-lightbox-pl_PL.po} +0 -0
  29. languages/{jqlb-pt_BR.mo → wp-jquery-lightbox-pt_BR.mo} +0 -0
  30. languages/{jqlb-pt_BR.po → wp-jquery-lightbox-pt_BR.po} +0 -0
  31. languages/wp-jquery-lightbox-pt_PT.mo +0 -0
  32. languages/wp-jquery-lightbox-pt_PT.po +166 -0
  33. languages/{jqlb-ro_RO.mo → wp-jquery-lightbox-ro_RO.mo} +0 -0
  34. languages/{jqlb-ro_RO.po → wp-jquery-lightbox-ro_RO.po} +0 -0
  35. languages/{jqlb-ru_RU.mo → wp-jquery-lightbox-ru_RU.mo} +0 -0
  36. languages/{jqlb-ru_RU.po → wp-jquery-lightbox-ru_RU.po} +0 -0
  37. languages/{jqlb-sk_SK.mo → wp-jquery-lightbox-sk_SK.mo} +0 -0
  38. languages/{jqlb-sk_SK.po → wp-jquery-lightbox-sk_SK.po} +0 -0
  39. readme.txt +30 -3
  40. styles/images/pt_PT/blank.gif +0 -0
  41. styles/images/pt_PT/close.gif +0 -0
  42. styles/images/pt_PT/closelabel.gif +0 -0
  43. styles/images/pt_PT/loading.gif +0 -0
  44. styles/images/pt_PT/next.gif +0 -0
  45. styles/images/pt_PT/nextlabel.gif +0 -0
  46. styles/images/pt_PT/prev.gif +0 -0
  47. styles/images/pt_PT/prevlabel.gif +0 -0
  48. styles/lightbox.css +2 -1
  49. styles/lightbox.min.css +1 -1
  50. styles/lightbox.min.pt_PT.css +145 -0
  51. wp-jquery-lightbox.php +13 -6
languages/jqlb-pt_PT.mo DELETED
Binary file
languages/jqlb-pt_PT.po DELETED
@@ -1,149 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: WP JQuery Lightbox\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2011-06-26 20:31+0100\n"
6
- "PO-Revision-Date: 2014-05-12 14:56-0000\n"
7
- "Last-Translator: Pedro Mendonça <ped.gaspar@gmail.com>\n"
8
- "Language-Team: Pedro Mendonça <ped.gaspar@gmail.com>\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "X-Poedit-KeywordsList: __;_e;_c;__ngettext:1,2\n"
13
- "X-Poedit-Basepath: .\n"
14
- "X-Poedit-SourceCharset: UTF-8\n"
15
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
- "Language: pt_PT\n"
17
- "X-Generator: Poedit 1.6.4\n"
18
-
19
- #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:42
20
- msgid "Settings"
21
- msgstr "Definições"
22
-
23
- #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:113
24
- msgid "previous image"
25
- msgstr "Imagem anterior"
26
-
27
- #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:114
28
- msgid "next image"
29
- msgstr "Imagem seguinte"
30
-
31
- #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:115
32
- msgid "&laquo; Previous"
33
- msgstr "&laquo; Anterior"
34
-
35
- #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:116
36
- msgid "Next &raquo;"
37
- msgstr "Seguinte &raquo;"
38
-
39
- #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:117
40
- msgid "close image gallery"
41
- msgstr "Fechar a galeria"
42
-
43
- #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:118
44
- msgid "Image "
45
- msgstr "Imagem "
46
-
47
- #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:119
48
- msgid " of "
49
- msgstr " de "
50
-
51
- #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:120
52
- msgid "Download"
53
- msgstr "Descarregar"
54
-
55
- #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:166
56
- msgid "Cheatin&#8217; uh?"
57
- msgstr "A fazer batota?"
58
-
59
- #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:179
60
- msgid "Let the plugin add necessary html to image links"
61
- msgstr "Deixe o plugin adicionar o html necessário às ligações das imagens"
62
-
63
- #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:179
64
- msgid "Auto-lightbox image links"
65
- msgstr "Alterar as ligações das imagens automaticamente"
66
-
67
- #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:186
68
- msgid ""
69
- "Note: this will disable the nofollow-attribute of comment links, that "
70
- "otherwise interfere with the lightbox."
71
- msgstr ""
72
- "Nota: isto desactivará o atributo 'nofollow' das ligações dos comentários, "
73
- "que de outro modo interfeririam com o lightbox."
74
-
75
- #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:186
76
- msgid ""
77
- "Enable lightbox in comments (disables <a href=\"http://codex.wordpress.org/"
78
- "Nofollow\">the nofollow attribute!</a>)"
79
- msgstr ""
80
- "Activar lightbox nos comentários (desactiva <a href=\"http://codex.wordpress."
81
- "org/Nofollow\">o atributo 'nofollow'!</a>)"
82
-
83
- #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:193
84
- msgid "Show download link"
85
- msgstr "Mostrar ligação para descarregar"
86
-
87
- #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:197
88
- msgid ""
89
- "_blank: open the image in a new window or tab\n"
90
- "_self: open the image in the same frame as it was clicked (default)\n"
91
- "_parent: open the image in the parent frameset\n"
92
- "_top: open the image in the full body of the window"
93
- msgstr ""
94
- "_blank: abrir a imagem numa nova janela ou separador\n"
95
- "_self: abrir a imagem na mesma janela em que for seleccionada (por omissão)\n"
96
- "_parent: abrir a imagem na janela superior\n"
97
- "_top: abrir a imagem ocupando toda a janela"
98
-
99
- #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:200
100
- msgid "Target for download link:"
101
- msgstr "Destino para a ligação de descarga:"
102
-
103
- #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:214
104
- msgid "Show image info on top"
105
- msgstr "Mostrar a informação da imagem no topo"
106
-
107
- #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:222
108
- msgid "Shrink large images to fit smaller screens"
109
- msgstr "Reduzir imagens grandes a ecrãs pequenos"
110
-
111
- #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:227
112
- msgid "Keep a distance between the image and the screen edges."
113
- msgstr "Manter uma distância entre a imagem e os bordos do ecrã."
114
-
115
- #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:227
116
- msgid "Minimum margin to screen edge (default: 0)"
117
- msgstr "Margem mínima ao bordo do ecrã (por omissão: 0)"
118
-
119
- #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:234
120
- msgid "Animation duration (in milliseconds) "
121
- msgstr "Duração da animação (em milisegundos) "
122
-
123
- #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:240
124
- msgid "Help text (default: none) "
125
- msgstr "Texto de ajuda (por omissão: nenhum)"
126
-
127
- #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:244
128
- msgid ""
129
- "Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC "
130
- "for close."
131
- msgstr ""
132
- "Navegar pelas imagens com o teclado: Setas ou 'P' (Anterior) e "
133
- "'N' (Seguinte), 'X' ou 'C' ou 'Esc' para fechar."
134
-
135
- #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:246
136
- msgid "Save Changes"
137
- msgstr "Guardar alterações"
138
-
139
- msgid "Show title & caption"
140
- msgstr "Mostrar título e descrição"
141
-
142
- msgid "Slideshow speed (in milliseconds). 0 to disable."
143
- msgstr "Velocidade da apresentação (em milisegundos). 0 para desactivar."
144
-
145
- msgid "(pause slideshow)"
146
- msgstr "(pausar apresentação)"
147
-
148
- msgid "(play slideshow)"
149
- msgstr "(iniciar apresentação)"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/{jqlb-cs_CZ.mo → wp-jquery-lightbox-cs_CZ.mo} RENAMED
File without changes
languages/{jqlb-cs_CZ.po → wp-jquery-lightbox-cs_CZ.po} RENAMED
File without changes
languages/{jqlb-da_DK.mo → wp-jquery-lightbox-da_DK.mo} RENAMED
File without changes
languages/{jqlb-da_DK.po → wp-jquery-lightbox-da_DK.po} RENAMED
File without changes
languages/{jqlb-de_DE.mo → wp-jquery-lightbox-de_DE.mo} RENAMED
File without changes
languages/{jqlb-de_DE.po → wp-jquery-lightbox-de_DE.po} RENAMED
File without changes
languages/{jqlb-es_ES.mo → wp-jquery-lightbox-es_ES.mo} RENAMED
File without changes
languages/{jqlb-es_ES.po → wp-jquery-lightbox-es_ES.po} RENAMED
File without changes
languages/{jqlb-fi.mo → wp-jquery-lightbox-fi.mo} RENAMED
File without changes
languages/{jqlb-fi.po → wp-jquery-lightbox-fi.po} RENAMED
File without changes
languages/{jqlb-fr_FR.mo → wp-jquery-lightbox-fr_FR.mo} RENAMED
File without changes
languages/{jqlb-fr_FR.po → wp-jquery-lightbox-fr_FR.po} RENAMED
File without changes
languages/{jqlb-he_IL.mo → wp-jquery-lightbox-he_IL.mo} RENAMED
File without changes
languages/{jqlb-he_IL.po → wp-jquery-lightbox-he_IL.po} RENAMED
File without changes
languages/{jqlb-it_IT.mo → wp-jquery-lightbox-it_IT.mo} RENAMED
File without changes
languages/{jqlb-it_IT.po → wp-jquery-lightbox-it_IT.po} RENAMED
File without changes
languages/{jqlb-ja.mo → wp-jquery-lightbox-ja.mo} RENAMED
File without changes
languages/{jqlb-ja.po → wp-jquery-lightbox-ja.po} RENAMED
File without changes
languages/{jqlb-lt_LT.mo → wp-jquery-lightbox-lt_LT.mo} RENAMED
File without changes
languages/{jqlb-lt_LT.po → wp-jquery-lightbox-lt_LT.po} RENAMED
File without changes
languages/{jqlb-nb_NO.mo → wp-jquery-lightbox-nb_NO.mo} RENAMED
File without changes
languages/{jqlb-nb_NO.po → wp-jquery-lightbox-nb_NO.po} RENAMED
File without changes
languages/{jqlb-nl_NL.mo → wp-jquery-lightbox-nl_NL.mo} RENAMED
File without changes
languages/{jqlb-nl_NL.po → wp-jquery-lightbox-nl_NL.po} RENAMED
File without changes
languages/{jqlb-pl_PL.mo → wp-jquery-lightbox-pl_PL.mo} RENAMED
File without changes
languages/{jqlb-pl_PL.po → wp-jquery-lightbox-pl_PL.po} RENAMED
File without changes
languages/{jqlb-pt_BR.mo → wp-jquery-lightbox-pt_BR.mo} RENAMED
File without changes
languages/{jqlb-pt_BR.po → wp-jquery-lightbox-pt_BR.po} RENAMED
File without changes
languages/wp-jquery-lightbox-pt_PT.mo ADDED
Binary file
languages/wp-jquery-lightbox-pt_PT.po ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WP JQuery Lightbox\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2015-09-21 14:49+0100\n"
6
+ "PO-Revision-Date: 2015-09-21 16:37+0100\n"
7
+ "Last-Translator: Pedro Mendonça <ped.gaspar@gmail.com>\n"
8
+ "Language-Team: Pedro Mendonça <ped.gaspar@gmail.com>\n"
9
+ "Language: pt_PT\n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
14
+ "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;"
15
+ "esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
16
+ "X-Poedit-Basepath: ..\n"
17
+ "X-Poedit-SourceCharset: UTF-8\n"
18
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
+ "X-Generator: Poedit 1.8.4\n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+
22
+ #: wp-jquery-lightbox.php:41
23
+ msgid "Settings"
24
+ msgstr "Definições"
25
+
26
+ #: wp-jquery-lightbox.php:129
27
+ msgid "previous image"
28
+ msgstr "Imagem anterior"
29
+
30
+ #: wp-jquery-lightbox.php:130
31
+ msgid "next image"
32
+ msgstr "Imagem seguinte"
33
+
34
+ #: wp-jquery-lightbox.php:131
35
+ msgid "close image gallery"
36
+ msgstr "Fechar a galeria"
37
+
38
+ #: wp-jquery-lightbox.php:132 wp-jquery-lightbox.php:242
39
+ msgid "Image "
40
+ msgstr "Imagem "
41
+
42
+ #: wp-jquery-lightbox.php:133 wp-jquery-lightbox.php:242
43
+ msgid " of "
44
+ msgstr " de "
45
+
46
+ #: wp-jquery-lightbox.php:134
47
+ msgid "Download"
48
+ msgstr "Descarregar"
49
+
50
+ #: wp-jquery-lightbox.php:135
51
+ msgid "(pause slideshow)"
52
+ msgstr "(pausar apresentação)"
53
+
54
+ #: wp-jquery-lightbox.php:136
55
+ msgid "(play slideshow)"
56
+ msgstr "(iniciar apresentação)"
57
+
58
+ #: wp-jquery-lightbox.php:199
59
+ msgid "Cheatin&#8217; uh?"
60
+ msgstr "A fazer batota?"
61
+
62
+ #: wp-jquery-lightbox.php:214
63
+ msgid "Let the plugin add necessary html to image links"
64
+ msgstr "Deixe o plugin adicionar o html necessário às ligações das imagens"
65
+
66
+ #: wp-jquery-lightbox.php:214
67
+ msgid "Auto-lightbox image links"
68
+ msgstr "Alterar as ligações das imagens automaticamente"
69
+
70
+ #: wp-jquery-lightbox.php:221
71
+ msgid ""
72
+ "Note: this will disable the nofollow-attribute of comment links, that "
73
+ "otherwise interfere with the lightbox."
74
+ msgstr ""
75
+ "Nota: isto desactivará o atributo 'nofollow' das ligações dos comentários, "
76
+ "que de outro modo interfeririam com o lightbox."
77
+
78
+ #: wp-jquery-lightbox.php:221
79
+ msgid ""
80
+ "Enable lightbox in comments (disables <a href=\"http://codex.wordpress.org/"
81
+ "Nofollow\">the nofollow attribute!</a>)"
82
+ msgstr ""
83
+ "Activar lightbox nos comentários (desactiva <a href=\"http://codex.wordpress."
84
+ "org/Nofollow\">o atributo 'nofollow'!</a>)"
85
+
86
+ #: wp-jquery-lightbox.php:228
87
+ msgid "Show title"
88
+ msgstr "Mostrar título"
89
+
90
+ #: wp-jquery-lightbox.php:235
91
+ msgid "Show caption"
92
+ msgstr "Mostrar legenda"
93
+
94
+ #: wp-jquery-lightbox.php:242
95
+ msgid "Show image numbers:"
96
+ msgstr "Mostrar números das imagens:"
97
+
98
+ #: wp-jquery-lightbox.php:249
99
+ msgid "Show download link"
100
+ msgstr "Mostrar ligação para descarregar"
101
+
102
+ #: wp-jquery-lightbox.php:257
103
+ msgid "Show image info on top"
104
+ msgstr "Mostrar a informação da imagem no topo"
105
+
106
+ #: wp-jquery-lightbox.php:265
107
+ msgid "Shrink large images to fit smaller screens"
108
+ msgstr "Reduzir imagens grandes a ecrãs pequenos"
109
+
110
+ #: wp-jquery-lightbox.php:270
111
+ msgid "Keep a distance between the image and the screen edges."
112
+ msgstr "Manter uma distância entre a imagem e os bordos do ecrã."
113
+
114
+ #: wp-jquery-lightbox.php:270
115
+ msgid "Minimum margin to screen edge (default: 0)"
116
+ msgstr "Margem mínima ao bordo do ecrã (por omissão: 0)"
117
+
118
+ #: wp-jquery-lightbox.php:278
119
+ msgid "Use custom stylesheet"
120
+ msgstr "Usar folha de estilos personalizada"
121
+
122
+ #: wp-jquery-lightbox.php:284
123
+ msgid "Animation duration (in milliseconds) "
124
+ msgstr "Duração da animação (em milisegundos) "
125
+
126
+ #: wp-jquery-lightbox.php:290
127
+ msgid "Slideshow speed (in milliseconds). 0 to disable."
128
+ msgstr "Velocidade da apresentação (em milisegundos). 0 para desactivar."
129
+
130
+ #: wp-jquery-lightbox.php:295
131
+ msgid "Save Changes"
132
+ msgstr "Guardar alterações"
133
+
134
+ #~ msgid "&laquo; Previous"
135
+ #~ msgstr "&laquo; Anterior"
136
+
137
+ #~ msgid "Next &raquo;"
138
+ #~ msgstr "Seguinte &raquo;"
139
+
140
+ #~ msgid ""
141
+ #~ "_blank: open the image in a new window or tab\n"
142
+ #~ "_self: open the image in the same frame as it was clicked (default)\n"
143
+ #~ "_parent: open the image in the parent frameset\n"
144
+ #~ "_top: open the image in the full body of the window"
145
+ #~ msgstr ""
146
+ #~ "_blank: abrir a imagem numa nova janela ou separador\n"
147
+ #~ "_self: abrir a imagem na mesma janela em que for seleccionada (por "
148
+ #~ "omissão)\n"
149
+ #~ "_parent: abrir a imagem na janela superior\n"
150
+ #~ "_top: abrir a imagem ocupando toda a janela"
151
+
152
+ #~ msgid "Target for download link:"
153
+ #~ msgstr "Destino para a ligação de descarga:"
154
+
155
+ #~ msgid "Help text (default: none) "
156
+ #~ msgstr "Texto de ajuda (por omissão: nenhum)"
157
+
158
+ #~ msgid ""
159
+ #~ "Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC "
160
+ #~ "for close."
161
+ #~ msgstr ""
162
+ #~ "Navegar pelas imagens com o teclado: Setas ou 'P' (Anterior) e "
163
+ #~ "'N' (Seguinte), 'X' ou 'C' ou 'Esc' para fechar."
164
+
165
+ #~ msgid "Show title & caption"
166
+ #~ msgstr "Mostrar título e descrição"
languages/{jqlb-ro_RO.mo → wp-jquery-lightbox-ro_RO.mo} RENAMED
File without changes
languages/{jqlb-ro_RO.po → wp-jquery-lightbox-ro_RO.po} RENAMED
File without changes
languages/{jqlb-ru_RU.mo → wp-jquery-lightbox-ru_RU.mo} RENAMED
File without changes
languages/{jqlb-ru_RU.po → wp-jquery-lightbox-ru_RU.po} RENAMED
File without changes
languages/{jqlb-sk_SK.mo → wp-jquery-lightbox-sk_SK.mo} RENAMED
File without changes
languages/{jqlb-sk_SK.po → wp-jquery-lightbox-sk_SK.po} RENAMED
File without changes
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: ulfben
3
  Donate link: http://flattr.com/thing/367557/Support-my-WordPress-plugins
4
  Tags: lightbox, jquery, nodal, image, display, ulfben
5
  Requires at least: 3.9
6
- Tested up to: 4.1.1
7
- Stable tag: 1.4.6
8
  License: GPLv2 or later
9
 
10
  A drop-in replacement for Lightbox 2 and similar plugins, shedding the bulk of Prototype and Scriptaculous. Improved for mobile devices.
@@ -36,6 +36,16 @@ Any help is greatly appreciated. Thanks!
36
 
37
  *[//Ulf Benjaminsson](http://www.ulfben.com)*
38
 
 
 
 
 
 
 
 
 
 
 
39
  = 1.4.6 (2015-03-20) =
40
  * "Download link" now correctly open a download dialogue instead of displaying the file
41
  * Title, caption and all control elements can now be turned on / off individually
@@ -46,6 +56,7 @@ Any help is greatly appreciated. Thanks!
46
  * Dropped quirks support for Internet Explorer 8
47
  * Removed help-text setting
48
 
 
49
  = 1.4.5 (2013-06-09) =
50
  * Fit to screen edge on low rez displays (<500px)
51
  * Added global setting to hide title & caption
@@ -146,6 +157,16 @@ Lastly:
146
  Still have problems? Post a link and describe what issue you're having, and tell us what of these steps you've already tried.
147
 
148
  == Changelog ==
 
 
 
 
 
 
 
 
 
 
149
  = 1.4.6 (2015-03-20) =
150
  * "Download link" now correctly open a download dialogue instead of displaying the file
151
  * Title, caption and all control elements can now be turned on / off individually
@@ -245,6 +266,12 @@ Still have problems? Post a link and describe what issue you're having, and tell
245
  * Release.
246
 
247
  == Upgrade Notice ==
 
 
 
 
 
 
248
  = 1.4.6 =
249
  Lots of bug fixes and performance improvements. New CSS styles!
250
 
@@ -374,7 +401,7 @@ Translations and help with implementing them would be nice. A read through and c
374
  And of course; [a book or two](http://www.amazon.com/gp/registry/wishlist/2QB6SQ5XX2U0N/105-3209188-5640446?reveal=unpurchased&filter=all&sort=priority&layout=standard&x) always brightens my day! (used ones are fine!)
375
 
376
  == Other Notes ==
377
- Copyright (C) 2010-2013 Ulf Benjaminsson (my first name at ulfben dot com).
378
 
379
  This program is free software; you can redistribute it and/or modify
380
  it under the terms of the GNU General Public License as published by
3
  Donate link: http://flattr.com/thing/367557/Support-my-WordPress-plugins
4
  Tags: lightbox, jquery, nodal, image, display, ulfben
5
  Requires at least: 3.9
6
+ Tested up to: 4.4
7
+ Stable tag: 1.4.8
8
  License: GPLv2 or later
9
 
10
  A drop-in replacement for Lightbox 2 and similar plugins, shedding the bulk of Prototype and Scriptaculous. Improved for mobile devices.
36
 
37
  *[//Ulf Benjaminsson](http://www.ulfben.com)*
38
 
39
+ = 1.4.8 (2015-12-31) =
40
+ * Fixed translations not being loaded properly
41
+ * Fixed support for WordPress 4.4
42
+
43
+ = 1.4.7 (2015-09-21) =
44
+ * Support for WordPress' new translation system.
45
+ * Updated translation for Portugese (Thanks: Pedro Mendonça)
46
+ * Added images and CSS for Portugese (Thanks: Pedro Mendonça)
47
+
48
+
49
  = 1.4.6 (2015-03-20) =
50
  * "Download link" now correctly open a download dialogue instead of displaying the file
51
  * Title, caption and all control elements can now be turned on / off individually
56
  * Dropped quirks support for Internet Explorer 8
57
  * Removed help-text setting
58
 
59
+
60
  = 1.4.5 (2013-06-09) =
61
  * Fit to screen edge on low rez displays (<500px)
62
  * Added global setting to hide title & caption
157
  Still have problems? Post a link and describe what issue you're having, and tell us what of these steps you've already tried.
158
 
159
  == Changelog ==
160
+
161
+ = 1.4.8 (2015-12-31) =
162
+ * Fixed translations not being loaded properly
163
+ * Fixed support for WordPress 4.4
164
+
165
+ = 1.4.7 (2015-09-21) =
166
+ * Support for WordPress' new translation system.
167
+ * Updated translation for Portugese (Thanks: Pedro Mendonça)
168
+ * Added images and CSS for Portugese (Thanks: Pedro Mendonça)
169
+
170
  = 1.4.6 (2015-03-20) =
171
  * "Download link" now correctly open a download dialogue instead of displaying the file
172
  * Title, caption and all control elements can now be turned on / off individually
266
  * Release.
267
 
268
  == Upgrade Notice ==
269
+ = 1.4.8 =
270
+ Fixed support for WordPress 4.4, Fixed translations not being loaded properly
271
+
272
+ = 1.4.7 =
273
+ New Portugese translation. Support for WordPress' new translation system.
274
+
275
  = 1.4.6 =
276
  Lots of bug fixes and performance improvements. New CSS styles!
277
 
401
  And of course; [a book or two](http://www.amazon.com/gp/registry/wishlist/2QB6SQ5XX2U0N/105-3209188-5640446?reveal=unpurchased&filter=all&sort=priority&layout=standard&x) always brightens my day! (used ones are fine!)
402
 
403
  == Other Notes ==
404
+ Copyright (C) 2010-2016 Ulf Benjaminsson (my first name at ulfben dot com).
405
 
406
  This program is free software; you can redistribute it and/or modify
407
  it under the terms of the GNU General Public License as published by
styles/images/pt_PT/blank.gif ADDED
Binary file
styles/images/pt_PT/close.gif ADDED
Binary file
styles/images/pt_PT/closelabel.gif ADDED
Binary file
styles/images/pt_PT/loading.gif ADDED
Binary file
styles/images/pt_PT/next.gif ADDED
Binary file
styles/images/pt_PT/nextlabel.gif ADDED
Binary file
styles/images/pt_PT/prev.gif ADDED
Binary file
styles/images/pt_PT/prevlabel.gif ADDED
Binary file
styles/lightbox.css CHANGED
@@ -1,6 +1,6 @@
1
  /**
2
  * WP jQuery Lightbox
3
- * Version 1.4.6 - 2015-03-21
4
  * http://wordpress.org/extend/plugins/wp-jquery-lightbox/
5
  *
6
  * WP jQuery Lightbox uses the minified version of this stylesheet (lightbox.min.css).
@@ -75,6 +75,7 @@
75
  }
76
  #imageContainer{
77
  padding: 10px;
 
78
  }
79
  #jqlb_loading{
80
  position: absolute;
1
  /**
2
  * WP jQuery Lightbox
3
+ * Version 1.4.6.1 - 2015-03-21
4
  * http://wordpress.org/extend/plugins/wp-jquery-lightbox/
5
  *
6
  * WP jQuery Lightbox uses the minified version of this stylesheet (lightbox.min.css).
75
  }
76
  #imageContainer{
77
  padding: 10px;
78
+ text-align: center;
79
  }
80
  #jqlb_loading{
81
  position: absolute;
styles/lightbox.min.css CHANGED
@@ -1 +1 @@
1
- .clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}* html>body .clearfix{display:inline-block;width:100%}* html .clearfix{height:1%}#lightboxIframe{display:none}#overlay{position:absolute;top:0;left:0;z-index:10090;width:100%;height:500px;background-color:#000;filter:alpha(opacity=60);-moz-opacity:.6;opacity:.6;display:none}#lightbox{position:absolute;left:0;width:100%;z-index:10100;line-height:0}#jqlb_spinner{height:32px;background-image:url(./images/loading.gif);background-repeat:no-repeat;background-position:center center}#jqlb_closelabel{height:22px;width:66px;background-image:url(./images/closelabel.gif);background-repeat:no-repeat;background-position:center center}#lightbox a img{border:none}#outerImageContainer{position:relative;background-color:#fff;width:300px;height:300px;margin:0 auto}#imageContainer{padding:10px}#jqlb_loading{position:absolute;top:40%;left:0;height:25%;width:100%;line-height:0}#hoverNav{position:absolute;top:0;left:0;height:100%;width:100%;z-index:10}#imageContainer>#hoverNav{left:0}#hoverNav a{outline:0}#nextLink,#prevLink{width:45%;height:100%;background:transparent url(./images/blank.gif) no-repeat;display:block}#prevLink{left:0;float:left}#nextLink{right:0;float:right}#prevLink:hover,#prevLink:visited:hover{background:url(./images/prev.gif) left 50% no-repeat}#nextLink:hover,#nextLink:visited:hover{background:url(./images/next.gif) right 50% no-repeat}#imageDataContainer{font:10px Verdana,Helvetica,sans-serif;background-color:#fff;color:#000;margin:0 auto;line-height:1.4em}#imageData{padding:0 10px}.ontop #imageData{padding-top:5px}#imageData #imageDetails{float:left;text-align:left;margin-bottom:10px;width:80%;width:-moz-calc(100% - 80px);width:-webkit-calc(100% - 80px);width:-o-calc(100% - 80px);width:calc(100% - 80px)}#imageData #imageDetails #titleAndCaption #titleText{font-weight:700}#imageData #imageDetails #titleAndCaption #captionText{font-weight:400}#imageData #imageDetails #controls{margin:0;white-space:nowrap}#imageData #bottomNav #bottomNavClose{height:22px;width:66px;float:right;margin-bottom:10px}
1
+ .clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}* html>body .clearfix{display:inline-block;width:100%}* html .clearfix{height:1%}#lightboxIframe{display:none}#overlay{position:absolute;top:0;left:0;z-index:10090;width:100%;height:500px;background-color:#000;filter:alpha(opacity=60);-moz-opacity:.6;opacity:.6;display:none}#lightbox{position:absolute;left:0;width:100%;z-index:10100;line-height:0}#jqlb_spinner{height:32px;background-image:url(./images/loading.gif);background-repeat:no-repeat;background-position:center center}#jqlb_closelabel{height:22px;width:66px;background-image:url(./images/closelabel.gif);background-repeat:no-repeat;background-position:center center}#lightbox a img{border:none}#outerImageContainer{position:relative;background-color:#fff;width:300px;height:300px;margin:0 auto}#imageContainer{padding:10px;text-align:center}#jqlb_loading{position:absolute;top:40%;left:0;height:25%;width:100%;line-height:0}#hoverNav{position:absolute;top:0;left:0;height:100%;width:100%;z-index:10}#imageContainer>#hoverNav{left:0}#hoverNav a{outline:0}#nextLink,#prevLink{width:45%;height:100%;background:transparent url(./images/blank.gif) no-repeat;display:block}#prevLink{left:0;float:left}#nextLink{right:0;float:right}#prevLink:hover,#prevLink:visited:hover{background:url(./images/prev.gif) left 50% no-repeat}#nextLink:hover,#nextLink:visited:hover{background:url(./images/next.gif) right 50% no-repeat}#imageDataContainer{font:10px Verdana,Helvetica,sans-serif;background-color:#fff;color:#000;margin:0 auto;line-height:1.4em}#imageData{padding:0 10px}.ontop #imageData{padding-top:5px}#imageData #imageDetails{float:left;text-align:left;margin-bottom:10px;width:80%;width:-moz-calc(100% - 80px);width:-webkit-calc(100% - 80px);width:-o-calc(100% - 80px);width:calc(100% - 80px)}#imageData #imageDetails #titleAndCaption #titleText{font-weight:700}#imageData #imageDetails #titleAndCaption #captionText{font-weight:400}#imageData #imageDetails #controls{margin:0;white-space:nowrap}#imageData #bottomNav #bottomNavClose{height:22px;width:66px;float:right;margin-bottom:10px}
styles/lightbox.min.pt_PT.css ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * WP jQuery Lightbox
3
+ * Version 1.4.6.1 - 2015-03-21
4
+ * http://wordpress.org/extend/plugins/wp-jquery-lightbox/
5
+ *
6
+ * WP jQuery Lightbox uses the minified version of this stylesheet (lightbox.min.css).
7
+ * This file is provided only for you to base your modification on. Edits will not be reflected on the site!
8
+ *
9
+ * To minify your stylesheet after modifying it, use http://refresh-sf.com/ and save the compressed code to
10
+ * lightbox.min.css or lightbox.min.{locale}.css (for translations)
11
+ *
12
+ * If you activate the "Use custom stylesheet"-setting, WP jQuery Lightbox will try and grab its CSS files
13
+ * from your theme's style-folder. Ergo: move your lightbox.min.css to the theme style folder to avoid having
14
+ * your changes reverted whenever the plugin updates.
15
+ */
16
+ .clearfix:after {
17
+ content: ".";
18
+ display: block;
19
+ height: 0;
20
+ clear: both;
21
+ visibility: hidden;
22
+ }
23
+ * html>body .clearfix {
24
+ display: inline-block;
25
+ width: 100%;
26
+ }
27
+ * html .clearfix {
28
+ /* Hides from IE-mac \*/
29
+ height: 1%;
30
+ /* End hide from IE-mac */
31
+ }
32
+ #lightboxIframe {
33
+ display: none;
34
+ }
35
+ #overlay{
36
+ position: absolute;
37
+ top: 0;
38
+ left: 0;
39
+ z-index: 10090;
40
+ width: 100%;
41
+ height: 500px;
42
+ background-color: #000;
43
+ filter:alpha(opacity=60);
44
+ -moz-opacity: 0.6;
45
+ opacity: 0.6;
46
+ display: none;
47
+ }
48
+ #lightbox{
49
+ position: absolute;
50
+ left: 0;
51
+ width: 100%;
52
+ z-index: 10100;/*twentyeleven keeps the header at 999...*/
53
+ line-height: 0;
54
+ }
55
+ #jqlb_spinner{
56
+ height:32px;
57
+ background-image:url('./images/pt_PT/loading.gif');
58
+ background-repeat:no-repeat;
59
+ background-position:center center;
60
+ }
61
+ #jqlb_closelabel{
62
+ height:22px;
63
+ width:66px;
64
+ background-image:url('./images/pt_PT/closelabel.gif');
65
+ background-repeat:no-repeat;
66
+ background-position:center center;
67
+ }
68
+ #lightbox a img{ border: none; }
69
+ #outerImageContainer{
70
+ position: relative;
71
+ background-color: #fff;
72
+ width: 300px;
73
+ height: 300px;
74
+ margin: 0 auto;
75
+ }
76
+ #imageContainer{
77
+ padding: 10px;
78
+ text-align: center;
79
+ }
80
+ #jqlb_loading{
81
+ position: absolute;
82
+ top: 40%;
83
+ left: 0%;
84
+ height: 25%;
85
+ width: 100%;
86
+ line-height: 0;
87
+ }
88
+ #hoverNav{
89
+ position: absolute;
90
+ top: 0;
91
+ left: 0;
92
+ height: 100%;
93
+ width: 100%;
94
+ z-index: 10;
95
+ }
96
+ #imageContainer>#hoverNav{ left: 0; }
97
+ #hoverNav a{ outline: none; }
98
+
99
+ /*** START : next / previous image links ***/
100
+ #prevLink, #nextLink{
101
+ width: 45%;
102
+ height: 100%;
103
+ background: transparent url('./images/pt_PT/blank.gif') no-repeat; /* Trick IE into showing hover */
104
+ display: block;
105
+ }
106
+ #prevLink { left: 0; float: left;}
107
+ #nextLink { right: 0; float: right;}
108
+ #prevLink:hover, #prevLink:visited:hover { background: url('./images/pt_PT/prev.gif') left 50% no-repeat; }
109
+ #nextLink:hover, #nextLink:visited:hover { background: url('./images/pt_PT/next.gif') right 50% no-repeat; }
110
+ /*** END : next / previous image links ***/
111
+
112
+ /** Text styling goes below.
113
+ I've written out the entire selector hierarchy so you can decide how specific you want your selectors to be.**/
114
+ #imageDataContainer{
115
+ font: 10px Verdana, Helvetica, sans-serif;
116
+ background-color: #fff;
117
+ color: #000;
118
+ margin: 0 auto;
119
+ line-height: 1.4em;
120
+ }
121
+ #imageData{
122
+ padding:0 10px;
123
+ }
124
+ .ontop #imageData {
125
+ padding-top: 5px; /* add padding when title and caption are on top */
126
+ }
127
+ #imageData #imageDetails{
128
+ float: left;
129
+ text-align: left;
130
+ margin-bottom: 10px;
131
+ width: 80%; /* make room for the CLOSE-button. */
132
+ width: -moz-calc(100% - 80px); /* Firefox */
133
+ width: -webkit-calc(100% - 80px);/* WebKit */
134
+ width: -o-calc(100% - 80px); /* Opera */
135
+ width: calc(100% - 80px); /* Standard */
136
+ }
137
+ #imageData #imageDetails #titleAndCaption{ } /*previously: #caption*/
138
+ #imageData #imageDetails #titleAndCaption #titleText { font-weight: bold; }
139
+ #imageData #imageDetails #titleAndCaption #captionText { font-weight: normal; }
140
+ #imageData #imageDetails #controls{ margin:0px; white-space: nowrap;}
141
+ #imageData #imageDetails #controls #playPause{}
142
+ #imageData #imageDetails #controls #numberDisplay{}
143
+ #imageData #imageDetails #controls #downloadLink{}
144
+ #imageData #bottomNav #bottomNavClose{ height:22px; width: 66px; float: right; margin-bottom: 10px; }
145
+
wp-jquery-lightbox.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: wp-jquery-lightbox
4
  Plugin URI: http://wordpress.org/extend/plugins/wp-jquery-lightbox/
5
  Description: A drop in replacement for LightBox-2 and similar plugins. Uses jQuery to save you from the JS-library mess in your header. :)
6
- Version: 1.4.6
7
  Text Domain: wp-jquery-lightbox
8
  Author: Ulf Benjaminsson
9
  Author URI: http://www.ulfben.com
@@ -30,6 +30,7 @@ function jqlb_init() {
30
  add_filter('plugin_row_meta', 'jqlb_set_plugin_meta', 2, 10);
31
  add_filter('the_content', 'jqlb_autoexpand_rel_wlightbox', 99);
32
  add_filter('post_gallery', 'jqlb_filter_groups', 10, 2);
 
33
  if(get_option('jqlb_comments') == 1){
34
  remove_filter('pre_comment_content', 'wp_rel_nofollow');
35
  add_filter('comment_text', 'jqlb_lightbox_comment', 99);
@@ -63,13 +64,13 @@ function jqlb_register_settings(){
63
  register_setting( 'jqlb-settings-group', 'jqlb_use_theme_styles', 'jqlb_bool_intval');
64
  add_option('jqlb_showTitle', 1);
65
  add_option('jqlb_showCaption', 1);
66
- add_option('jqlb_showNumbers', 1);
67
- add_option('jqlb_link_target', '_self');
68
  add_option('jqlb_automate', 1); //default is to auto-lightbox.
69
  add_option('jqlb_comments', 1);
70
  add_option('jqlb_resize_on_demand', 0);
71
  add_option('jqlb_showDownload', 0);
72
  add_option('jqlb_navbarOnTop', 0);
 
73
  add_option('jqlb_resize_speed', 400);
74
  add_option('jqlb_slideshow_speed', 4000);
75
  add_option('jqlb_use_theme_styles', 0);
@@ -91,7 +92,6 @@ function jqlb_css(){
91
  if(is_admin() || is_feed()){return;}
92
  $locale = jqlb_get_locale();
93
  $fileName = "lightbox.min.{$locale}.css";
94
- $fileName = "lightbox.min.css";
95
  $haveThemeCss = false;
96
  if(get_option('jqlb_use_theme_styles') == 1){ // courtesy of Vincent Weber
97
  $pathTheme = get_stylesheet_directory() ."/{$fileName}"; //look for CSS in theme's style folder first
@@ -148,7 +148,7 @@ function jqlb_lightbox_comment($comment){
148
 
149
  function jqlb_autoexpand_rel_wlightbox($content) {
150
  if(get_option('jqlb_automate') == 1){
151
- global $post;
152
  $id = isset($post->ID) ? $post->ID : -1;
153
  $content = jqlb_do_regexp($content, $id);
154
  }
@@ -165,12 +165,19 @@ function jqlb_apply_lightbox($content, $id = -1){
165
  if there are already rel="lightbox[something]" attributes, they are not clobbered.
166
  Michael Tyson, you are a regular expressions god! - http://atastypixel.com */
167
  function jqlb_do_regexp($content, $id){
168
- $id = esc_attr($id);
 
169
  $pattern = "/(<a(?![^>]*?rel=['\"]lightbox.*)[^>]*?href=['\"][^'\"]+?\.(?:bmp|gif|jpg|jpeg|png)(\?\S{0,}){0,1}['\"][^\>]*)>/i";
170
  $replacement = '$1 rel="lightbox['.$id.']">';
171
  return preg_replace($pattern, $replacement, $content);
172
  }
173
 
 
 
 
 
 
 
174
  function jqlb_filter_groups($html, $attr) {//runs on the post_gallery filter.
175
  global $jqlb_group;
176
  if(empty($attr['group'])){
3
  Plugin Name: wp-jquery-lightbox
4
  Plugin URI: http://wordpress.org/extend/plugins/wp-jquery-lightbox/
5
  Description: A drop in replacement for LightBox-2 and similar plugins. Uses jQuery to save you from the JS-library mess in your header. :)
6
+ Version: 1.4.8
7
  Text Domain: wp-jquery-lightbox
8
  Author: Ulf Benjaminsson
9
  Author URI: http://www.ulfben.com
30
  add_filter('plugin_row_meta', 'jqlb_set_plugin_meta', 2, 10);
31
  add_filter('the_content', 'jqlb_autoexpand_rel_wlightbox', 99);
32
  add_filter('post_gallery', 'jqlb_filter_groups', 10, 2);
33
+ add_filter('image_send_to_editor', 'jqlb_remove_rel', 10, 2); //Editor in WP4.4 adds rel-attributes to image-links. let's remove them.
34
  if(get_option('jqlb_comments') == 1){
35
  remove_filter('pre_comment_content', 'wp_rel_nofollow');
36
  add_filter('comment_text', 'jqlb_lightbox_comment', 99);
64
  register_setting( 'jqlb-settings-group', 'jqlb_use_theme_styles', 'jqlb_bool_intval');
65
  add_option('jqlb_showTitle', 1);
66
  add_option('jqlb_showCaption', 1);
67
+ add_option('jqlb_showNumbers', 1);
 
68
  add_option('jqlb_automate', 1); //default is to auto-lightbox.
69
  add_option('jqlb_comments', 1);
70
  add_option('jqlb_resize_on_demand', 0);
71
  add_option('jqlb_showDownload', 0);
72
  add_option('jqlb_navbarOnTop', 0);
73
+ add_option('jqlb_margin_size', 0);
74
  add_option('jqlb_resize_speed', 400);
75
  add_option('jqlb_slideshow_speed', 4000);
76
  add_option('jqlb_use_theme_styles', 0);
92
  if(is_admin() || is_feed()){return;}
93
  $locale = jqlb_get_locale();
94
  $fileName = "lightbox.min.{$locale}.css";
 
95
  $haveThemeCss = false;
96
  if(get_option('jqlb_use_theme_styles') == 1){ // courtesy of Vincent Weber
97
  $pathTheme = get_stylesheet_directory() ."/{$fileName}"; //look for CSS in theme's style folder first
148
 
149
  function jqlb_autoexpand_rel_wlightbox($content) {
150
  if(get_option('jqlb_automate') == 1){
151
+ global $post;
152
  $id = isset($post->ID) ? $post->ID : -1;
153
  $content = jqlb_do_regexp($content, $id);
154
  }
165
  if there are already rel="lightbox[something]" attributes, they are not clobbered.
166
  Michael Tyson, you are a regular expressions god! - http://atastypixel.com */
167
  function jqlb_do_regexp($content, $id){
168
+ $id = esc_attr($id);
169
+ $content = preg_replace('/\s+rel="attachment wp-att-[0-9]+"/i', '', $content); //remove WP 4.4 garbage
170
  $pattern = "/(<a(?![^>]*?rel=['\"]lightbox.*)[^>]*?href=['\"][^'\"]+?\.(?:bmp|gif|jpg|jpeg|png)(\?\S{0,}){0,1}['\"][^\>]*)>/i";
171
  $replacement = '$1 rel="lightbox['.$id.']">';
172
  return preg_replace($pattern, $replacement, $content);
173
  }
174
 
175
+ //this filter runs when adding images to a post in the WP 4.4 editor
176
+ //removing the garbage rel before they're saved to the database.
177
+ function jqlb_remove_rel($content, $id){
178
+ return preg_replace('/\s+rel="attachment wp-att-[0-9]+"/i', '', $content);
179
+ }
180
+
181
  function jqlb_filter_groups($html, $attr) {//runs on the post_gallery filter.
182
  global $jqlb_group;
183
  if(empty($attr['group'])){