Post Snippets - Version 2.3.3

Version Description

Download this release

Release Info

Developer artstorm
Plugin Icon 128x128 Post Snippets
Version 2.3.3
Comparing to
See all releases

Code changes from version 2.3.2 to 2.3.3

lang/post-snippets-pl_PL.mo CHANGED
Binary file
lang/post-snippets-pl_PL.po CHANGED
@@ -4,60 +4,211 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Post Snippets 1.9.7\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/post-snippets\n"
7
- "POT-Creation-Date: 2013-01-18 19:05+0100\n"
8
- "PO-Revision-Date: 2013-01-18 20:51+0100\n"
9
- "Last-Translator: Tomasz Wesołowski <twesolowski@grafeina.pl>\n"
10
  "Language-Team: LANGUAGE <LL@li.org>\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
- "X-Generator: Poedit 1.5.3\n"
15
  "X-Poedit-KeywordsList: _e;__;_x\n"
16
  "X-Poedit-Basepath: .\n"
17
  "X-Poedit-SearchPath-0: ..\n"
18
 
19
- #: ../post-snippets.php:99
20
  msgid "Settings"
21
  msgstr "Ustawienia"
22
 
23
- #: ../post-snippets.php:472
24
- msgid "This snippet is insert only, no variables defined."
25
- msgstr "Ten snippet nie posiada parametrów. Możesz go tylko wstawić."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
 
27
- #: ../classes/help.php:41 ../classes/help.php:256
 
 
 
 
 
28
  msgid "Basic"
29
  msgstr "Podstawowe"
30
 
31
- #: ../classes/help.php:46 ../classes/help.php:258 ../classes/settings.php:256
32
  msgid "Shortcode"
33
  msgstr "Shortcode"
34
 
35
- #: ../classes/help.php:51 ../classes/help.php:260
36
  msgid "PHP"
37
  msgstr "PHP"
38
 
39
- #: ../classes/help.php:56 ../classes/help.php:262
40
  msgid "Advanced"
41
  msgstr "Zaawansowane"
42
 
43
- #: ../classes/help.php:70
44
- msgid "For more information:"
45
- msgstr "Więcej informacji:"
46
 
47
- #: ../classes/help.php:74
48
- msgid "Post Snippets Documentation"
49
- msgstr "Dokumentacja"
50
 
51
- #: ../classes/help.php:78
52
- msgid "Support Forums"
53
- msgstr "Forum"
 
 
 
 
 
 
 
 
54
 
55
- #: ../classes/help.php:91 ../classes/settings.php:225
56
- #: ../classes/settings.php:234
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  msgid "Title"
58
  msgstr "Nazwa"
59
 
60
- #: ../classes/help.php:94
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  msgid ""
62
  "Give the snippet a title that helps you identify it in the post editor. This "
63
  "also becomes the name of the shortcode if you enable that option"
@@ -65,12 +216,7 @@ msgstr ""
65
  "Nazwa snippeta pomoże odnaleźć go w edytorze treści. Jest to także nazwa "
66
  "funkcji shortcode (jeżeli wybierzesz taką opcję)"
67
 
68
- #: ../classes/help.php:98 ../classes/settings.php:226
69
- #: ../classes/settings.php:235 ../classes/settings.php:354
70
- msgid "Variables"
71
- msgstr "Zmienne"
72
-
73
- #: ../classes/help.php:101
74
  msgid ""
75
  "A comma separated list of custom variables you can reference in your "
76
  "snippet. A variable can also be assigned a default value that will be used "
@@ -79,16 +225,7 @@ msgstr ""
79
  "Rozdzielona przecinkami lista zmiennych snippeta. Domyślną wartość zmiennej "
80
  "możesz nadać używająć znaku równości, zmienna=wartość_domyślna"
81
 
82
- #: ../classes/help.php:104 ../classes/help.php:115 ../classes/help.php:230
83
- msgid "Example"
84
- msgstr "Przykład"
85
-
86
- #: ../classes/help.php:109 ../classes/settings.php:227
87
- #: ../classes/settings.php:236 ../classes/settings.php:368
88
- msgid "Snippet"
89
- msgstr "Snippet"
90
-
91
- #: ../classes/help.php:112
92
  msgid ""
93
  "This is the block of text, HTML or PHP to insert in the post or as a "
94
  "shortcode. If you have entered predefined variables you can reference them "
@@ -97,7 +234,7 @@ msgstr ""
97
  "Blok teksu, kodu HTML lub PHP, który będzie wstawiony jako shortcode. "
98
  "Zdefiniowane zmienne możesz wstawić używając nawiasów klamrowych {}."
99
 
100
- #: ../classes/help.php:117
101
  msgid ""
102
  "To reference the variables in the example above, you would enter {url} and "
103
  "{name}. So if you enter this snippet:"
@@ -105,7 +242,7 @@ msgstr ""
105
  "Aby użyć zmiennych z powyższego przykładu, wykorzystaj {url} i {name}. "
106
  "Jeżeli wstawisz:"
107
 
108
- #: ../classes/help.php:121
109
  msgid ""
110
  "You will get the option to replace url and name on insert if they are "
111
  "defined as variables."
@@ -113,11 +250,7 @@ msgstr ""
113
  "będziesz mógł podać URL {url} i nazwę {name} w momencie wstawiania do "
114
  "treści (jeżeli te pola zostały zdefiniowane jako zmienne)."
115
 
116
- #: ../classes/help.php:125 ../classes/settings.php:270
117
- msgid "Description"
118
- msgstr "Opis"
119
-
120
- #: ../classes/help.php:128
121
  msgid ""
122
  "An optional description for the Snippet. If filled out, the description will "
123
  "be displayed in the snippets insert window in the post editor."
@@ -125,57 +258,7 @@ msgstr ""
125
  "Opcjonalny opis Snippeta. Zostanie wyświetlony w oknie wstawiania snippeta w "
126
  "edytorze treści."
127
 
128
- #: ../classes/help.php:141
129
- msgid ""
130
- "When enabling the shortcode checkbox, the snippet is no longer inserted "
131
- "directly but instead inserted as a shortcode. The obvious advantage of this "
132
- "is of course that you can insert a block of text or code in many places on "
133
- "the site, and update the content from one single place."
134
- msgstr ""
135
- "Zaznaczenie opcji Shortcode spowoduje, że snippet nie zostanie wstawiony "
136
- "bezpośrednio lecz użyty jak shortcode. Podstawową zaletą tej opcji jest "
137
- "fakt, że możesz wielokrotnie wstawić kod do wielu postów i kontrolować ich "
138
- "działanie w jednym miejscu."
139
-
140
- #: ../classes/help.php:145
141
- msgid ""
142
- "The name to use the shortcode is the same as the title of the snippet "
143
- "(spaces are not allowed). When inserting a shortcode snippet, the shortcode "
144
- "and not the content will be inserted in the post."
145
- msgstr ""
146
- "Nazwa kodu shortcode będzie taka sama jak nazwa snippeta (nie używaj "
147
- "spacji). Wstawienie snippeta z opcją shortcode spowoduje wstawienie "
148
- "znacznika shortcode, nie kodu snippeta."
149
-
150
- #: ../classes/help.php:148
151
- msgid ""
152
- "If you enclose the shortcode in your posts, you can access the enclosed "
153
- "content by using the variable {content} in your snippet. The {content} "
154
- "variable is reserved, so don't use it in the variables field."
155
- msgstr ""
156
- "Jeżeli otoczysz dowolną treść kodem shortcode, możesz użyć zawartości za "
157
- "pomocą zmiennej {content}. Zmienna {content} jest zastrzeżona, nie używaj "
158
- "jej w snippetach."
159
-
160
- #: ../classes/help.php:152 ../classes/settings.php:366
161
- msgid "Options"
162
- msgstr "Opcje"
163
-
164
- #: ../classes/help.php:155
165
- msgid "See the dedicated help section for information about PHP shortcodes."
166
- msgstr "Zajrzyj do działu pomocy o PHP."
167
-
168
- #: ../classes/help.php:158
169
- #, php-format
170
- msgid ""
171
- "Before the shortcode is outputted, it can optionally be formatted with %s, "
172
- "to transform quotes to smart quotes, apostrophes, dashes, ellipses, the "
173
- "trademark symbol, and the multiplication symbol."
174
- msgstr ""
175
- "Kod zwracany przez shortcode zostanie dodatkowo przefiltrowany przez funkcję "
176
- "%s. "
177
-
178
- #: ../classes/help.php:171
179
  msgid ""
180
  "Snippets defined as shortcodes can optionally also be evaluated as PHP Code "
181
  "by enabling the PHP checkbox. PHP snippets is only available when treating "
@@ -185,11 +268,11 @@ msgstr ""
185
  "Snippety będą interpretowane jako kod PHP wyłącznie po włączeniu opcji "
186
  "Shortcode."
187
 
188
- #: ../classes/help.php:174
189
  msgid "Example PHP Snippet"
190
  msgstr "Przykładowy Snippet PHP"
191
 
192
- #: ../classes/help.php:183
193
  msgid ""
194
  "With a snippet defined like the one above, you can call it with its "
195
  "shortcode definition in a post. Let's pretend that the example snippet is "
@@ -200,7 +283,7 @@ msgstr ""
200
  "Zakładając, że przykładowy snippet został nazwany phpcode i posiada zmienną "
201
  "loop_me, możesz go użyć w treści posta w następujący sposób:"
202
 
203
- #: ../classes/help.php:189
204
  msgid ""
205
  "When the shortcode is executed the loop_me variable will be replaced with "
206
  "the string supplied in the shortcode and then the PHP code will be "
@@ -210,7 +293,7 @@ msgstr ""
210
  "wprowadzoną wartość i kod PHP zostanie przetworzony (wyświetli 5 razy "
211
  "wprowadzoną wartość. Wa wa wee wa!)."
212
 
213
- #: ../classes/help.php:192
214
  msgid ""
215
  "Note the evaluation order, any snippet variables will be replaced before the "
216
  "snippet is evaluated as PHP code. Also note that a PHP snippet don't need to "
@@ -220,141 +303,68 @@ msgstr ""
220
  "zastąpione podanymi wartościami przed wykonaniem kodu jako PHP. Pamiętaj "
221
  "także, że kod nie musi być zawarty w znacznikach &lt;?php #code; ?&gt;."
222
 
223
- #: ../classes/help.php:205
224
  msgid ""
225
- "You can retrieve a Post Snippet directly from PHP, in a theme for instance, "
226
- "by using the get_post_snippet() function."
 
 
227
  msgstr ""
228
- "Możesz pobrać Snippeta za pomocą PHP (np. w pliku motywu). Użyj funkcji "
229
- "get_post_snippet()."
230
-
231
- #: ../classes/help.php:209
232
- msgid "Usage"
233
- msgstr "Użycie"
234
-
235
- #: ../classes/help.php:217
236
- msgid "Parameters"
237
- msgstr "Parametry"
238
-
239
- #: ../classes/help.php:221
240
- msgid "(string) (required) The name of the snippet to retrieve."
241
- msgstr "(strong)(wymagany) Nazwa snippeta, który chcesz pobrać."
242
 
243
- #: ../classes/help.php:226
244
  msgid ""
245
- "(string) The variables to pass to the snippet, formatted as a query string."
246
- msgstr "(string) Zmienne snippeta przekazane jako 'query string'"
247
-
248
- #: ../classes/import-export.php:91
249
- msgid "Import"
250
- msgstr "Import"
 
251
 
252
- #: ../classes/import-export.php:93
253
  msgid ""
254
- "Import snippets from a post-snippets-export.zip file. Importing overwrites "
255
- "any existing snippets."
 
256
  msgstr ""
257
- "Zaimportuj Snippety z pliku post-snippets-export.zip. Import nadpisze "
258
- "instniejące Snippety."
259
-
260
- #: ../classes/import-export.php:97
261
- msgid "Import Snippets"
262
- msgstr "Importuj"
263
-
264
- #: ../classes/import-export.php:123
265
- msgid "Snippets successfully imported."
266
- msgstr "Snippety zostały zaimportowane."
267
-
268
- #: ../classes/import-export.php:125 ../classes/import-export.php:129
269
- #: ../classes/import-export.php:131
270
- msgid "Snippets could not be imported:"
271
- msgstr "Snippety nie mogły zostać zaimportowane."
272
-
273
- #: ../classes/import-export.php:125
274
- msgid "Unzipping failed."
275
- msgstr "Rozpakowanie zakończone niepowodzeniem."
276
-
277
- #: ../classes/import-export.php:131
278
- msgid "Upload failed."
279
- msgstr "Upload nieudany."
280
-
281
- #: ../classes/settings.php:41
282
- msgid "A snippet named Untitled has been added."
283
- msgstr "Dodano snippet 'Untitled'"
284
-
285
- #: ../classes/settings.php:57
286
- msgid "Nothing selected to delete."
287
- msgstr "Niczego nie zaznaczono do usunięcia."
288
-
289
- #: ../classes/settings.php:70
290
- msgid "Selected snippets have been deleted."
291
- msgstr "Zaznaczone snippety zostały usunięte."
292
-
293
- #: ../classes/settings.php:96
294
- msgid "Snippets have been updated."
295
- msgstr "Zmiany zostały zapisane."
296
-
297
- #: ../classes/settings.php:189
298
- msgid "Manage Snippets"
299
- msgstr "Zarządzaj"
300
 
301
- #: ../classes/settings.php:189 ../classes/settings.php:298
302
- msgid "Import/Export"
303
- msgstr "Import/Eksport"
304
 
305
- #: ../classes/settings.php:197
306
- msgid "Use the help dropdown button for additional information."
 
 
 
 
307
  msgstr ""
308
- "Więcej informacji znajdziesz w zakładce Pomoc (rozwijane menu w prawym "
309
- "górnym rogu)."
310
-
311
- #: ../classes/settings.php:261
312
- msgid "PHP Code"
313
- msgstr "Kod PHP"
314
-
315
- #: ../classes/settings.php:282
316
- msgid "Update Snippets"
317
- msgstr "Zaktualizuj"
318
-
319
- #: ../classes/settings.php:283
320
- msgid "Add New Snippet"
321
- msgstr "Dodaj nowy"
322
-
323
- #: ../classes/settings.php:284
324
- msgid "Delete Selected"
325
- msgstr "Usuń zaznaczone"
326
 
327
- #: ../classes/settings.php:299
328
- msgid "Export"
329
- msgstr "Exportuj"
330
 
331
- #: ../classes/settings.php:302
332
- msgid "Export your snippets for backup or to import them on another site."
333
- msgstr ""
334
- "Wyeksportuj swoje Snippety dla bezpieczeństwa lub użycia ich na innej "
335
- "stronie."
336
 
337
- #: ../classes/settings.php:304
338
- msgid "Export Snippets"
339
- msgstr "Exportuj Snippety"
340
 
341
- #: ../classes/settings.php:327
342
- msgid ""
343
- "This is an overview of all snippets defined for this site. These snippets "
344
- "are inserted into posts from the post editor using the Post Snippets button. "
345
- "You can choose to see the snippets here as-is or as they are actually "
346
- "rendered on the website. Enabling rendered snippets for this overview might "
347
- "look strange if the snippet have dependencies on variables, CSS or other "
348
- "parameters only available on the frontend. If that is the case it is "
349
- "recommended to keep this option disabled."
350
  msgstr ""
351
- "To jest lista wszystkich snippetów zdefiniowanych dla tej strony. Możesz je "
352
- "wstawiać używając przycisku Post Snippets w edytorze treści."
353
-
354
- #: ../classes/settings.php:337
355
- msgid "Display rendered snippets"
356
- msgstr "Pokaż utworzone snippety."
357
 
358
- #: ../classes/settings.php:338
359
- msgid "Update"
360
- msgstr "Zaktualizuj"
4
  msgstr ""
5
  "Project-Id-Version: Post Snippets 1.9.7\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/post-snippets\n"
7
+ "POT-Creation-Date: 2013-10-08 16:07+0100\n"
8
+ "PO-Revision-Date: 2013-10-08 16:08+0100\n"
9
+ "Last-Translator: Tomasz Wesołowski <tomek@ittw.pl>\n"
10
  "Language-Team: LANGUAGE <LL@li.org>\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
+ "X-Generator: Poedit 1.5.7\n"
15
  "X-Poedit-KeywordsList: _e;__;_x\n"
16
  "X-Poedit-Basepath: .\n"
17
  "X-Poedit-SearchPath-0: ..\n"
18
 
19
+ #: ../lib/PostSnippets/Admin.php:39
20
  msgid "Settings"
21
  msgstr "Ustawienia"
22
 
23
+ #: ../lib/PostSnippets/Admin.php:113
24
+ msgid "A snippet named Untitled has been added."
25
+ msgstr "Dodano snippet 'Untitled'"
26
+
27
+ #: ../lib/PostSnippets/Admin.php:133
28
+ msgid "Nothing selected to delete."
29
+ msgstr "Niczego nie zaznaczono do usunięcia."
30
+
31
+ #: ../lib/PostSnippets/Admin.php:149
32
+ msgid "Selected snippets have been deleted."
33
+ msgstr "Zaznaczone snippety zostały usunięte."
34
+
35
+ #: ../lib/PostSnippets/Admin.php:184
36
+ msgid "Snippets have been updated."
37
+ msgstr "Zmiany zostały zapisane."
38
+
39
+ #: ../lib/PostSnippets/Admin.php:264
40
+ msgid "Manage Snippets"
41
+ msgstr "Zarządzaj"
42
+
43
+ #: ../lib/PostSnippets/Admin.php:264 ../lib/PostSnippets/Admin.php:307
44
+ msgid "Import/Export"
45
+ msgstr "Import/Eksport"
46
+
47
+ #: ../lib/PostSnippets/Admin.php:272
48
+ msgid "Use the help dropdown button for additional information."
49
+ msgstr ""
50
+ "Więcej informacji znajdziesz w zakładce Pomoc (rozwijane menu w prawym "
51
+ "górnym rogu)."
52
+
53
+ #: ../lib/PostSnippets/Admin.php:308
54
+ msgid "Export"
55
+ msgstr "Exportuj"
56
+
57
+ #: ../lib/PostSnippets/Admin.php:311
58
+ msgid "Export your snippets for backup or to import them on another site."
59
+ msgstr ""
60
+ "Wyeksportuj swoje Snippety dla bezpieczeństwa lub użycia ich na innej "
61
+ "stronie."
62
+
63
+ #: ../lib/PostSnippets/Admin.php:313
64
+ msgid "Export Snippets"
65
+ msgstr "Exportuj Snippety"
66
+
67
+ #: ../lib/PostSnippets/Admin.php:336
68
+ msgid ""
69
+ "This is an overview of all snippets defined for this site. These snippets "
70
+ "are inserted into posts from the post editor using the Post Snippets button. "
71
+ "You can choose to see the snippets here as-is or as they are actually "
72
+ "rendered on the website. Enabling rendered snippets for this overview might "
73
+ "look strange if the snippet have dependencies on variables, CSS or other "
74
+ "parameters only available on the frontend. If that is the case it is "
75
+ "recommended to keep this option disabled."
76
+ msgstr ""
77
+ "To jest lista wszystkich snippetów zdefiniowanych dla tej strony. Możesz je "
78
+ "wstawiać używając przycisku Post Snippets w edytorze treści."
79
+
80
+ #: ../lib/PostSnippets/Admin.php:346
81
+ msgid "Display rendered snippets"
82
+ msgstr "Pokaż utworzone snippety."
83
+
84
+ #: ../lib/PostSnippets/Admin.php:347
85
+ msgid "Update"
86
+ msgstr "Zaktualizuj"
87
+
88
+ #: ../lib/PostSnippets/Admin.php:364 ../views/admin_snippets.php:9
89
+ #: ../views/admin_snippets.php:18 ../views/help_basic.php:6
90
+ msgid "Variables"
91
+ msgstr "Zmienne"
92
+
93
+ #: ../lib/PostSnippets/Admin.php:380 ../views/help_shortcode.php:13
94
+ msgid "Options"
95
+ msgstr "Opcje"
96
 
97
+ #: ../lib/PostSnippets/Admin.php:383 ../views/admin_snippets.php:10
98
+ #: ../views/admin_snippets.php:19 ../views/help_basic.php:16
99
+ msgid "Snippet"
100
+ msgstr "Snippet"
101
+
102
+ #: ../lib/PostSnippets/Help.php:33
103
  msgid "Basic"
104
  msgstr "Podstawowe"
105
 
106
+ #: ../lib/PostSnippets/Help.php:40 ../views/admin_snippets.php:39
107
  msgid "Shortcode"
108
  msgstr "Shortcode"
109
 
110
+ #: ../lib/PostSnippets/Help.php:48
111
  msgid "PHP"
112
  msgstr "PHP"
113
 
114
+ #: ../lib/PostSnippets/Help.php:56
115
  msgid "Advanced"
116
  msgstr "Zaawansowane"
117
 
118
+ #: ../lib/PostSnippets/ImportExport.php:38
119
+ msgid "Error: "
120
+ msgstr "Błąd: "
121
 
122
+ #: ../lib/PostSnippets/ImportExport.php:61
123
+ msgid "Import"
124
+ msgstr "Import"
125
 
126
+ #: ../lib/PostSnippets/ImportExport.php:67
127
+ msgid ""
128
+ "Import snippets from a post-snippets-export.zip file. Importing overwrites "
129
+ "any existing snippets."
130
+ msgstr ""
131
+ "Zaimportuj Snippety z pliku post-snippets-export.zip. Import nadpisze "
132
+ "instniejące Snippety."
133
+
134
+ #: ../lib/PostSnippets/ImportExport.php:74
135
+ msgid "Import Snippets"
136
+ msgstr "Importuj"
137
 
138
+ #: ../lib/PostSnippets/ImportExport.php:113
139
+ msgid "Snippets successfully imported."
140
+ msgstr "Snippety zostały zaimportowane."
141
+
142
+ #: ../lib/PostSnippets/ImportExport.php:118
143
+ #: ../lib/PostSnippets/ImportExport.php:127
144
+ #: ../lib/PostSnippets/ImportExport.php:133
145
+ msgid "Snippets could not be imported:"
146
+ msgstr "Snippety nie mogły zostać zaimportowane."
147
+
148
+ #: ../lib/PostSnippets/ImportExport.php:120
149
+ msgid "Unzipping failed."
150
+ msgstr "Rozpakowanie zakończone niepowodzeniem."
151
+
152
+ #: ../lib/PostSnippets/ImportExport.php:135
153
+ msgid "Upload failed."
154
+ msgstr "Upload nieudany."
155
+
156
+ #: ../views/admin_snippets.php:8 ../views/admin_snippets.php:17
157
+ #: ../views/help_basic.php:1
158
  msgid "Title"
159
  msgstr "Nazwa"
160
 
161
+ #: ../views/admin_snippets.php:46
162
+ msgid "PHP Code"
163
+ msgstr "Kod PHP"
164
+
165
+ #: ../views/admin_snippets.php:58 ../views/help_basic.php:29
166
+ msgid "Description"
167
+ msgstr "Opis"
168
+
169
+ #: ../views/admin_snippets.php:70
170
+ msgid "Update Snippets"
171
+ msgstr "Zaktualizuj"
172
+
173
+ #: ../views/admin_snippets.php:71
174
+ msgid "Add New Snippet"
175
+ msgstr "Dodaj nowy"
176
+
177
+ #: ../views/admin_snippets.php:72
178
+ msgid "Delete Selected"
179
+ msgstr "Usuń zaznaczone"
180
+
181
+ #: ../views/help_advanced.php:2
182
+ msgid ""
183
+ "You can retrieve a Post Snippet directly from PHP, in a theme for instance, "
184
+ "by using the PostSnippets::getSnippet() method."
185
+ msgstr ""
186
+ "Możesz pobrać Snippeta za pomocą PHP (np. w pliku motywu). Użyj funkcji "
187
+ "get_post_snippet()."
188
+
189
+ #: ../views/help_advanced.php:5
190
+ msgid "Usage"
191
+ msgstr "Użycie"
192
+
193
+ #: ../views/help_advanced.php:11
194
+ msgid "Parameters"
195
+ msgstr "Parametry"
196
+
197
+ #: ../views/help_advanced.php:14
198
+ msgid "(string) (required) The name of the snippet to retrieve."
199
+ msgstr "(strong)(wymagany) Nazwa snippeta, który chcesz pobrać."
200
+
201
+ #: ../views/help_advanced.php:17
202
+ msgid ""
203
+ "(string) The variables to pass to the snippet, formatted as a query string."
204
+ msgstr "(string) Zmienne snippeta przekazane jako 'query string'"
205
+
206
+ #: ../views/help_advanced.php:20 ../views/help_basic.php:12
207
+ #: ../views/help_basic.php:21
208
+ msgid "Example"
209
+ msgstr "Przykład"
210
+
211
+ #: ../views/help_basic.php:3
212
  msgid ""
213
  "Give the snippet a title that helps you identify it in the post editor. This "
214
  "also becomes the name of the shortcode if you enable that option"
216
  "Nazwa snippeta pomoże odnaleźć go w edytorze treści. Jest to także nazwa "
217
  "funkcji shortcode (jeżeli wybierzesz taką opcję)"
218
 
219
+ #: ../views/help_basic.php:8
 
 
 
 
 
220
  msgid ""
221
  "A comma separated list of custom variables you can reference in your "
222
  "snippet. A variable can also be assigned a default value that will be used "
225
  "Rozdzielona przecinkami lista zmiennych snippeta. Domyślną wartość zmiennej "
226
  "możesz nadać używająć znaku równości, zmienna=wartość_domyślna"
227
 
228
+ #: ../views/help_basic.php:18
 
 
 
 
 
 
 
 
 
229
  msgid ""
230
  "This is the block of text, HTML or PHP to insert in the post or as a "
231
  "shortcode. If you have entered predefined variables you can reference them "
234
  "Blok teksu, kodu HTML lub PHP, który będzie wstawiony jako shortcode. "
235
  "Zdefiniowane zmienne możesz wstawić używając nawiasów klamrowych {}."
236
 
237
+ #: ../views/help_basic.php:22
238
  msgid ""
239
  "To reference the variables in the example above, you would enter {url} and "
240
  "{name}. So if you enter this snippet:"
242
  "Aby użyć zmiennych z powyższego przykładu, wykorzystaj {url} i {name}. "
243
  "Jeżeli wstawisz:"
244
 
245
+ #: ../views/help_basic.php:26
246
  msgid ""
247
  "You will get the option to replace url and name on insert if they are "
248
  "defined as variables."
250
  "będziesz mógł podać URL {url} i nazwę {name} w momencie wstawiania do "
251
  "treści (jeżeli te pola zostały zdefiniowane jako zmienne)."
252
 
253
+ #: ../views/help_basic.php:31
 
 
 
 
254
  msgid ""
255
  "An optional description for the Snippet. If filled out, the description will "
256
  "be displayed in the snippets insert window in the post editor."
258
  "Opcjonalny opis Snippeta. Zostanie wyświetlony w oknie wstawiania snippeta w "
259
  "edytorze treści."
260
 
261
+ #: ../views/help_php.php:2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
262
  msgid ""
263
  "Snippets defined as shortcodes can optionally also be evaluated as PHP Code "
264
  "by enabling the PHP checkbox. PHP snippets is only available when treating "
268
  "Snippety będą interpretowane jako kod PHP wyłącznie po włączeniu opcji "
269
  "Shortcode."
270
 
271
+ #: ../views/help_php.php:5
272
  msgid "Example PHP Snippet"
273
  msgstr "Przykładowy Snippet PHP"
274
 
275
+ #: ../views/help_php.php:13
276
  msgid ""
277
  "With a snippet defined like the one above, you can call it with its "
278
  "shortcode definition in a post. Let's pretend that the example snippet is "
283
  "Zakładając, że przykładowy snippet został nazwany phpcode i posiada zmienną "
284
  "loop_me, możesz go użyć w treści posta w następujący sposób:"
285
 
286
+ #: ../views/help_php.php:19
287
  msgid ""
288
  "When the shortcode is executed the loop_me variable will be replaced with "
289
  "the string supplied in the shortcode and then the PHP code will be "
293
  "wprowadzoną wartość i kod PHP zostanie przetworzony (wyświetli 5 razy "
294
  "wprowadzoną wartość. Wa wa wee wa!)."
295
 
296
+ #: ../views/help_php.php:23
297
  msgid ""
298
  "Note the evaluation order, any snippet variables will be replaced before the "
299
  "snippet is evaluated as PHP code. Also note that a PHP snippet don't need to "
303
  "zastąpione podanymi wartościami przed wykonaniem kodu jako PHP. Pamiętaj "
304
  "także, że kod nie musi być zawarty w znacznikach &lt;?php #code; ?&gt;."
305
 
306
+ #: ../views/help_shortcode.php:2
307
  msgid ""
308
+ "When enabling the shortcode checkbox, the snippet is no longer inserted "
309
+ "directly but instead inserted as a shortcode. The obvious advantage of this "
310
+ "is of course that you can insert a block of text or code in many places on "
311
+ "the site, and update the content from one single place."
312
  msgstr ""
313
+ "Zaznaczenie opcji Shortcode spowoduje, że snippet nie zostanie wstawiony "
314
+ "bezpośrednio lecz użyty jak shortcode. Podstawową zaletą tej opcji jest "
315
+ "fakt, że możesz wielokrotnie wstawić kod do wielu postów i kontrolować ich "
316
+ "działanie w jednym miejscu."
 
 
 
 
 
 
 
 
 
 
317
 
318
+ #: ../views/help_shortcode.php:6
319
  msgid ""
320
+ "The name to use the shortcode is the same as the title of the snippet "
321
+ "(spaces are not allowed). When inserting a shortcode snippet, the shortcode "
322
+ "and not the content will be inserted in the post."
323
+ msgstr ""
324
+ "Nazwa kodu shortcode będzie taka sama jak nazwa snippeta (nie używaj "
325
+ "spacji). Wstawienie snippeta z opcją shortcode spowoduje wstawienie "
326
+ "znacznika shortcode, nie kodu snippeta."
327
 
328
+ #: ../views/help_shortcode.php:10
329
  msgid ""
330
+ "If you enclose the shortcode in your posts, you can access the enclosed "
331
+ "content by using the variable {content} in your snippet. The {content} "
332
+ "variable is reserved, so don't use it in the variables field."
333
  msgstr ""
334
+ "Jeżeli otoczysz dowolną treść kodem shortcode, możesz użyć zawartości za "
335
+ "pomocą zmiennej {content}. Zmienna {content} jest zastrzeżona, nie używaj "
336
+ "jej w snippetach."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
337
 
338
+ #: ../views/help_shortcode.php:15
339
+ msgid "See the dedicated help section for information about PHP shortcodes."
340
+ msgstr "Zajrzyj do działu pomocy o PHP."
341
 
342
+ #: ../views/help_shortcode.php:18
343
+ #, php-format
344
+ msgid ""
345
+ "Before the shortcode is outputted, it can optionally be formatted with %s, "
346
+ "to transform quotes to smart quotes, apostrophes, dashes, ellipses, the "
347
+ "trademark symbol, and the multiplication symbol."
348
  msgstr ""
349
+ "Kod zwracany przez shortcode zostanie dodatkowo przefiltrowany przez funkcję "
350
+ "%s. "
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
351
 
352
+ #: ../views/help_sidebar.php:2
353
+ msgid "For more information:"
354
+ msgstr "Więcej informacji:"
355
 
356
+ #: ../views/help_sidebar.php:6
357
+ msgid "Documentation"
358
+ msgstr "Dokumentacja"
 
 
359
 
360
+ #: ../views/help_sidebar.php:10
361
+ msgid "Support Forums"
362
+ msgstr "Forum"
363
 
364
+ #: ../views/help_sidebar.php:14
365
+ msgid "GitHub Contribution"
 
 
 
 
 
 
 
366
  msgstr ""
 
 
 
 
 
 
367
 
368
+ #: ../views/jquery-ui-dialog.php:47
369
+ msgid "This snippet is insert only, no variables defined."
370
+ msgstr "Ten snippet nie posiada parametrów. Możesz go tylko wstawić."
lang/post-snippets-sr_RS.mo ADDED
Binary file
lang/post-snippets-sr_RS.po ADDED
@@ -0,0 +1,351 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file is distributed under the same license as the Post Snippets package.
2
+ msgid ""
3
+ msgstr ""
4
+ "Project-Id-Version: Post Snippets 1.9.3\n"
5
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/post-snippets\n"
6
+ "POT-Creation-Date: 2012-02-08 16:54:26+00:00\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "PO-Revision-Date: 2013-10-14 10:37+0100\n"
11
+ "Language-Team: Web Geeks\n"
12
+ "Last-Translator: \n"
13
+ "Language: ro_RO\n"
14
+ "X-Generator: Poedit 1.5.7\n"
15
+
16
+ #: classes/settings.php:33
17
+ msgid "Add New Snippet"
18
+ msgstr "Dodaj novi Snippet"
19
+
20
+ #: classes/settings.php:34
21
+ msgid "Delete Selected"
22
+ msgstr "Izbriši selektovano"
23
+
24
+ #: classes/settings.php:35
25
+ msgid "(Use the help dropdown button above for additional information.)"
26
+ msgstr "(Use the help dropdown button above for additional information.)"
27
+
28
+ #: classes/settings.php:44 classes/settings.php:53 classes/help.php:91
29
+ msgid "Title"
30
+ msgstr "Naslov"
31
+
32
+ #: classes/settings.php:45 classes/settings.php:54 classes/help.php:98
33
+ msgid "Variables"
34
+ msgstr "Varijable"
35
+
36
+ #: classes/settings.php:46 classes/settings.php:55 classes/help.php:109
37
+ msgid "Snippet"
38
+ msgstr "Snippet"
39
+
40
+ #: classes/settings.php:76 classes/help.php:46 classes/help.php:258
41
+ msgid "Shortcode"
42
+ msgstr "Skraćenica"
43
+
44
+ #: classes/settings.php:81
45
+ msgid "PHP Code"
46
+ msgstr "PHP kod"
47
+
48
+ #: classes/settings.php:90 classes/help.php:125
49
+ msgid "Description"
50
+ msgstr "Opis"
51
+
52
+ #: classes/settings.php:101
53
+ msgid "Update Snippets"
54
+ msgstr "Update Snippets"
55
+
56
+ #: classes/help.php:41 classes/help.php:256
57
+ msgid "Basic"
58
+ msgstr "Osnovno"
59
+
60
+ #: classes/help.php:51 classes/help.php:260
61
+ msgid "PHP"
62
+ msgstr "PHP"
63
+
64
+ #: classes/help.php:56 classes/help.php:262
65
+ msgid "Advanced"
66
+ msgstr "Napredno"
67
+
68
+ #: classes/help.php:70
69
+ msgid "For more information:"
70
+ msgstr "Za još informacija:"
71
+
72
+ #: classes/help.php:74
73
+ msgid "Post Snippets Documentation"
74
+ msgstr "Post Snippets dokumentacija"
75
+
76
+ #: classes/help.php:78
77
+ msgid "Support Forums"
78
+ msgstr "Podrška foruma"
79
+
80
+ #: classes/help.php:94
81
+ msgid ""
82
+ "Give the snippet a title that helps you identify it in the post editor. This "
83
+ "also becomes the name of the shortcode if you enable that option"
84
+ msgstr ""
85
+ "Dajte fragmentu naslov kojivam pomaze da se identifikuje u post editoru.Ovo "
86
+ "zato sto ime shortcoda aktivira tu opciju."
87
+
88
+ #: classes/help.php:101
89
+ msgid ""
90
+ "A comma separated list of custom variables you can reference in your "
91
+ "snippet. A variable can also be assigned a default value that will be used "
92
+ "in the insert window by using the equal sign, variable=default."
93
+ msgstr ""
94
+ "Razdvojene zarezom listu prilagodjenih promenjljivih koje se pozivaju u "
95
+ "fragmentu.Promenjljiva se moze dodeliti podrazumevanu vrednost koja ce se "
96
+ "koristiti u prozoru koristeci znak jednakosti,variable=default."
97
+
98
+ #: classes/help.php:104 classes/help.php:115 classes/help.php:230
99
+ msgid "Example"
100
+ msgstr "Primer"
101
+
102
+ #: classes/help.php:112
103
+ msgid ""
104
+ "This is the block of text, HTML or PHP to insert in the post or as a "
105
+ "shortcode. If you have entered predefined variables you can reference them "
106
+ "from the snippet by enclosing them in {} brackets."
107
+ msgstr ""
108
+ "Ovo je deo teksta, HTML ili PHP za unos u post ili skraćenicu. Ako ste uneli "
109
+ "predefinisane varijable možete da ih stavite da se odnose na snippet "
110
+ "stavljajući ih u {} zagrade."
111
+
112
+ #: classes/help.php:117
113
+ msgid ""
114
+ "To reference the variables in the example above, you would enter {url} and "
115
+ "{name}. So if you enter this snippet:"
116
+ msgstr ""
117
+ "Da bi se odnosilo na varijable iznad u primeru unesite {url} i {ime}. Tako "
118
+ "da ako unesete ova snippet:"
119
+
120
+ #: classes/help.php:121
121
+ msgid ""
122
+ "You will get the option to replace url and name on insert if they are "
123
+ "defined as variables."
124
+ msgstr ""
125
+ "Dobićete mogućnost da zamenite URL i ime na unosu ako su definisane kao "
126
+ "varijable"
127
+
128
+ #: classes/help.php:128
129
+ msgid ""
130
+ "An optional description for the Snippet. If filled out, the description will "
131
+ "be displayed in the snippets insert window in the post editor."
132
+ msgstr ""
133
+ "Opcioni opis za snippet.. Ako je popunjen ,opis će biti prikazan u snippetu "
134
+ "iznad prozora u post editoru ."
135
+
136
+ #: classes/help.php:141
137
+ msgid ""
138
+ "When enabling the shortcode checkbox, the snippet is no longer inserted "
139
+ "directly but instead inserted as a shortcode. The obvious advantage of this "
140
+ "is of course that you can insert a block of text or code in many places on "
141
+ "the site, and update the content from one single place."
142
+ msgstr ""
143
+ "Kada omogućite shortcode potvrdu ,snippet se ne ubacuje direktno već umetnut "
144
+ "kao kratak broj . Očigledna prednost je , naravno, da možete da umetnete "
145
+ "blok teksta ili koda na mnogim mestima na sajtu , i ažuriranje sadržaja sa "
146
+ "jednom mestu ."
147
+
148
+ #: classes/help.php:145
149
+ msgid ""
150
+ "The name to use the shortcode is the same as the title of the snippet "
151
+ "(spaces are not allowed). When inserting a shortcode snippet, the shortcode "
152
+ "and not the content will be inserted in the post."
153
+ msgstr ""
154
+ "Ime koje koristi skraćenica je isto kao naslov snippeta( prostori nisu "
155
+ "dozvoljeni) Kada ubacite snippet skraćenicu, skraćenica a ne sadržaj će biti "
156
+ "ubačena u post."
157
+
158
+ #: classes/help.php:148
159
+ msgid ""
160
+ "If you enclose the shortcode in your posts, you can access the enclosed "
161
+ "content by using the variable {content} in your snippet. The {content} "
162
+ "variable is reserved, so don't use it in the variables field."
163
+ msgstr ""
164
+ "Ako ste zaključalii skraćenicu u vašim postovima, možete da pristupite "
165
+ "sadržaju pomoću promenljive { sadržaj } u fragmentu . {Sadržaj } "
166
+ "promenljiva je rezervisana , pa nemojte ga koristiti na terenu promenljivih ."
167
+
168
+ #: classes/help.php:152
169
+ msgid "Options"
170
+ msgstr "Opcije"
171
+
172
+ #: classes/help.php:155
173
+ msgid "See the dedicated help section for information about PHP shortcodes."
174
+ msgstr "Pogledajte deo posvećen pomoći sa informacijama o PHP skraćenicama."
175
+
176
+ #: classes/help.php:158
177
+ msgid ""
178
+ "Before the shortcode is outputted, it can optionally be formatted with %s, "
179
+ "to transform quotes to smart quotes, apostrophes, dashes, ellipses, the "
180
+ "trademark symbol, and the multiplication symbol."
181
+ msgstr ""
182
+ "Pre nego što se skraćenica isporuči , opcionalno može da se formatira sa% "
183
+ "s , da se transformiše u pametne citate , apostroea , crtica , elipse , "
184
+ "zaštitni znak i simbol, simbol množenja ."
185
+
186
+ #: classes/help.php:171
187
+ msgid ""
188
+ "Snippets defined as shortcodes can optionally also be evaluated as PHP Code "
189
+ "by enabling the PHP checkbox. PHP snippets is only available when treating "
190
+ "the snippet as a shortcode."
191
+ msgstr ""
192
+ "Snippeti definisani kao prečice mogu neobavezno biti ocenjeni kao PHP kod "
193
+ "omogućujući PHP potvrdu . PHP snippet je dostupan samo kada se tretira "
194
+ "snippet kao skraćenica."
195
+
196
+ #: classes/help.php:174
197
+ msgid "Example PHP Snippet"
198
+ msgstr "Primer PHP Snippeta"
199
+
200
+ #: classes/help.php:183
201
+ msgid ""
202
+ "With a snippet defined like the one above, you can call it with its "
203
+ "shortcode definition in a post. Let's pretend that the example snippet is "
204
+ "named phpcode and have one variable defined loop_me, then it would be called "
205
+ "like this from a post:"
206
+ msgstr ""
207
+ "Sa snippetom definisanim kao onaj gore , možete ga nazvati svojom "
208
+ "definicijom skraćenice u postu . Hajde da se pretvaramo da je snippet primer "
209
+ "nazvan phpcode i ima jednu promenljivu definisanu loop_me , onda će se zvati "
210
+ "ovako iz posta :"
211
+
212
+ #: classes/help.php:189
213
+ msgid ""
214
+ "When the shortcode is executed the loop_me variable will be replaced with "
215
+ "the string supplied in the shortcode and then the PHP code will be "
216
+ "evaluated. (Outputting the string five times in this case. Wow!)"
217
+ msgstr ""
218
+ "Kada se izvršava skraćenica loop_me promenljiva će biti zamenjen sa stringom "
219
+ "isporučujen na skrćenicu , a zatim će se PHP kod ocenjivati . (Outputting "
220
+ "stringa pet puta u ovom slučaju)"
221
+
222
+ #: classes/help.php:192
223
+ msgid ""
224
+ "Note the evaluation order, any snippet variables will be replaced before the "
225
+ "snippet is evaluated as PHP code. Also note that a PHP snippet don't need to "
226
+ "be wrapped in <?php #code; ?>."
227
+ msgstr ""
228
+ "Obratite pažnju na redosled procene , bilo koji snippet promenljive će biti "
229
+ "zamenjen pre nego što se snippet ocenjuje kao PHP kod . Takođe, imajte na "
230
+ "umu da PHP kod ne treba da bude umotan u <?php #code; ?>."
231
+
232
+ #: classes/help.php:205
233
+ msgid ""
234
+ "You can retrieve a Post Snippet directly from PHP, in a theme for instance, "
235
+ "by using the get_post_snippet() function."
236
+ msgstr ""
237
+ "Možete da preuzmete Post Snippet direktno od PHP , u temi npr, pomoću "
238
+ "get_post_snippet () funkcije.."
239
+
240
+ #: classes/help.php:209
241
+ msgid "Usage"
242
+ msgstr "Upotreba "
243
+
244
+ #: classes/help.php:217
245
+ msgid "Parameters"
246
+ msgstr "Parametri"
247
+
248
+ #: classes/help.php:221
249
+ msgid "(string) (required) The name of the snippet to retrieve."
250
+ msgstr "(string) (obavezno) Ime snippeta za povratak."
251
+
252
+ #: classes/help.php:226
253
+ msgid ""
254
+ "(string) The variables to pass to the snippet, formatted as a query string."
255
+ msgstr ""
256
+ "(string) Varijabla za prenos snippeta formatirano kao string pretrage. "
257
+
258
+ #: post-snippets.php:85
259
+ msgid "Settings"
260
+ msgstr "Postavke"
261
+
262
+ #: post-snippets.php:430
263
+ msgid "This snippet is insert only, no variables defined."
264
+ msgstr "Ovaj snippet je samo za unos, bez definisanih varijabli."
265
+
266
+ #: post-snippets.php:577
267
+ msgid "A snippet named Untitled has been added."
268
+ msgstr "Snippet pod imenom Untitled je dodat."
269
+
270
+ #: post-snippets.php:595 post-snippets.php:745
271
+ msgid "Snippets have been updated."
272
+ msgstr "Snippeti su uploadovani"
273
+
274
+ #: post-snippets.php:611
275
+ msgid "Selected snippets have been deleted."
276
+ msgstr "Selektovani snippeti su obrisani"
277
+
278
+ #: post-snippets.php:625
279
+ msgid "Import/Export"
280
+ msgstr "Import/Export"
281
+
282
+ #: post-snippets.php:626
283
+ msgid "Export"
284
+ msgstr "Export"
285
+
286
+ #: post-snippets.php:628
287
+ msgid "Export your snippets for backup or to import them on another site."
288
+ msgstr "Exsportujte vaš snipet za backup ili importujte ih na drugi sajt."
289
+
290
+ #: post-snippets.php:629
291
+ msgid "Export Snippets"
292
+ msgstr "Export Snippets"
293
+
294
+ #: post-snippets.php:715
295
+ msgid "Import"
296
+ msgstr "Import"
297
+
298
+ #: post-snippets.php:717
299
+ msgid ""
300
+ "Import snippets from a post-snippets-export.zip file. Importing overwrites "
301
+ "any existing snippets."
302
+ msgstr ""
303
+ "Importujte snipete iz post-snippets-export.zip fajla. Importovanje piše "
304
+ "preko bilo kog snippet-a."
305
+
306
+ #: post-snippets.php:721
307
+ msgid "Import Snippets"
308
+ msgstr "Importovanje Snippets"
309
+
310
+ #: post-snippets.php:747
311
+ msgid "Snippets successfully imported."
312
+ msgstr "Snippets uspešno importovani"
313
+
314
+ #: post-snippets.php:749 post-snippets.php:753 post-snippets.php:755
315
+ msgid "Snippets could not be imported:"
316
+ msgstr "Snippets ne mogu biti importovani"
317
+
318
+ #: post-snippets.php:749
319
+ msgid "Unzipping failed."
320
+ msgstr "Unzipping nije uspelo."
321
+
322
+ #: post-snippets.php:755
323
+ msgid "Upload failed."
324
+ msgstr "Upload nije uspelo."
325
+
326
+ #. Plugin Name of the plugin/theme
327
+ msgid "Post Snippets"
328
+ msgstr "Post Snippets"
329
+
330
+ #. Plugin URI of the plugin/theme
331
+ msgid "http://wpstorm.net/wordpress-plugins/post-snippets/"
332
+ msgstr "http://wpstorm.net/wordpress-plugins/post-snippets/"
333
+
334
+ #. Description of the plugin/theme
335
+ msgid ""
336
+ "Build a library with snippets of HTML, PHP code or reoccurring text that you "
337
+ "often use in your posts. Variables to replace parts of the snippet on insert "
338
+ "can be used. The snippets can be inserted as-is or as shortcodes."
339
+ msgstr ""
340
+ "Izgradite biblioteku sa snippeta HTML , PHP kod ili tekst koji ponavlja "
341
+ "često koristite u vašim porukama Varijable menjaju delove snippeta na unos "
342
+ "da može da se koristi . Snippet može biti unet kao - je ili kao kratke "
343
+ "brojeve ."
344
+
345
+ #. Author of the plugin/theme
346
+ msgid "Johan Steen"
347
+ msgstr "Johan Steen"
348
+
349
+ #. Author URI of the plugin/theme
350
+ msgid "http://johansteen.se/"
351
+ msgstr "http://johansteen.se/"
post-snippets.php CHANGED
@@ -5,9 +5,9 @@ Plugin URI: http://johansteen.se/code/post-snippets/
5
  Description: Build a library with snippets of HTML, PHP code or reoccurring text that you often use in your posts. Variables to replace parts of the snippet on insert can be used. The snippets can be inserted as-is or as shortcodes.
6
  Author: Johan Steen
7
  Author URI: http://johansteen.se/
8
- Version: 2.3.2
9
  License: GPLv2 or later
10
- Text Domain: post-snippets
11
 
12
  Copyright 2009-2013 Johan Steen (email : artstorm [at] gmail [dot] com)
13
 
@@ -98,7 +98,7 @@ class PostSnippets
98
  $fileName = str_replace('\\', DIRECTORY_SEPARATOR, $namespace);
99
  $fileName .= DIRECTORY_SEPARATOR;
100
  }
101
- $fileName .= str_replace('_', DIRECTORY_SEPARATOR, 'lib_'.$className);
102
  $fileName .='.php';
103
 
104
  require $fileName;
@@ -134,7 +134,7 @@ class PostSnippets
134
  global $wpdb;
135
  $wpdb->query(
136
  "
137
- DELETE FROM $wpdb->usermeta
138
  WHERE meta_key = 'post_snippets'
139
  "
140
  );
@@ -151,7 +151,7 @@ class PostSnippets
151
  * @since Post Snippets 1.8.9.1
152
  *
153
  * @param string $name The name of the snippet to retrieve
154
- * @param string|array $variables The variables to pass to the snippet,
155
  * formatted as a query string or an associative array.
156
  * @return string The Snippet
157
  */
5
  Description: Build a library with snippets of HTML, PHP code or reoccurring text that you often use in your posts. Variables to replace parts of the snippet on insert can be used. The snippets can be inserted as-is or as shortcodes.
6
  Author: Johan Steen
7
  Author URI: http://johansteen.se/
8
+ Version: 2.3.3
9
  License: GPLv2 or later
10
+ Text Domain: post-snippets
11
 
12
  Copyright 2009-2013 Johan Steen (email : artstorm [at] gmail [dot] com)
13
 
98
  $fileName = str_replace('\\', DIRECTORY_SEPARATOR, $namespace);
99
  $fileName .= DIRECTORY_SEPARATOR;
100
  }
101
+ $fileName .= str_replace('_', DIRECTORY_SEPARATOR, 'src_'.$className);
102
  $fileName .='.php';
103
 
104
  require $fileName;
134
  global $wpdb;
135
  $wpdb->query(
136
  "
137
+ DELETE FROM $wpdb->usermeta
138
  WHERE meta_key = 'post_snippets'
139
  "
140
  );
151
  * @since Post Snippets 1.8.9.1
152
  *
153
  * @param string $name The name of the snippet to retrieve
154
+ * @param string|array $variables The variables to pass to the snippet,
155
  * formatted as a query string or an associative array.
156
  * @return string The Snippet
157
  */
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: artstorm
3
  Donate link: http://johansteen.se/donate/
4
  Tags: post, admin, snippet, shortcode, html, custom, page, dynamic, editor, php, code
5
  Requires at least: 3.3
6
- Tested up to: 3.6
7
- Stable tag: 2.3.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -13,10 +13,10 @@ can be set for more flexibility. Inserts directly or as shortcodes.
13
 
14
  == Description ==
15
 
16
- This plugin lets you build a library with snippets of HTML, PHP code or
17
  reoccurring text that you often use in your posts and pages. You can use
18
  predefined variables to replace parts of the snippet on insert. All snippets are
19
- available in the post editor via a button in the Visual and HTML modes. The
20
  snippet can be inserted as defined, or as a shortcode to keep flexibility for
21
  updating the snippet. PHP code is supported for snippets inserted as shortcodes.
22
 
@@ -34,7 +34,7 @@ updating the snippet. PHP code is supported for snippets inserted as shortcodes.
34
  which can be used on insert.
35
  * **Import/Export** Snippets can be imported and exported between sites.
36
  * **Uninstall** If you delete the plugin from your plugins panel it cleans up
37
- all data it has created in the Wordpress database.
38
 
39
  = Related Links =
40
 
@@ -62,7 +62,7 @@ updating the snippet. PHP code is supported for snippets inserted as shortcodes.
62
  = Uninstall =
63
 
64
  1. Deactivate Post Snippets in the 'Plugins' menu in Wordpress.
65
- 2. Select Post Snippets in the 'Recently Active Plugins' section and select
66
  'Delete' from the 'Bulk Actions' drop down menu.
67
  3. This will delete all the plugin files from the server as well as erasing all
68
  options the plugin has stored in the database.
@@ -76,7 +76,7 @@ Settings -> Upload Settings -> Upload file types.
76
 
77
  = How can I use the content in an enclosed shortcode? =
78
 
79
- If the shortcode is enclosed and contains content between the tags in a post.
80
  Example: `[shortcode]Some text[/shortcode]` the text within will be availble in
81
  a variable called content. So in your snippet use {content} to display it. Don't
82
  enter 'content' in the variable field, it's automatically assigned.
@@ -91,13 +91,13 @@ Please create an issue that conforms with
91
 
92
  = Where can I get support? =
93
 
94
- Please visit the [Support Forum](http://wordpress.org/tags/post-snippets?forum_id=10 "Use this for support and feature requests")
95
  for questions, answers, support and feature requests.
96
 
97
  = How can I disable the PHP Code Execution feature? =
98
 
99
  To disable the "PHP Code" execution feature in this plugin, add the following
100
- code your theme's functions.php or to wp-config.php:
101
  `define('POST_SNIPPETS_DISABLE_PHP', true);`
102
 
103
  This is useful if you are using this plugin for client sites, and don't want
@@ -121,6 +121,12 @@ Contributions are appreciated and encouraged.
121
 
122
  == Changelog ==
123
 
 
 
 
 
 
 
124
  = Version 2.3.2 - 5 Aug 2013 =
125
  * Updates insert snippets into the editor to be compatible with jQuery 1.9+
126
  (which makes it compatible with WordPress 3.6).
@@ -137,8 +143,8 @@ Contributions are appreciated and encouraged.
137
  [issue #22](https://github.com/artstorm/post-snippets/issues/22).
138
  * Removes `get_post_snippet()` which was deprecated in version 2.1.
139
  * Adds POST_SNIPPETS_DISABLE_PHP constant to easy disable the PHP code
140
- execution in snippets. Add
141
- `define('POST_SNIPPETS_DISABLE_PHP', true);`
142
  to wp-config.php or the theme's functions.php to disable PHP execution in the
143
  plugin.
144
 
@@ -151,8 +157,8 @@ Contributions are appreciated and encouraged.
151
 
152
  = Version 2.2.1 - 1 May 2013 =
153
  * Added an option to give users with `edit_posts` capability access to the
154
- Post Snippets Admin. Add
155
- `define('POST_SNIPPETS_ALLOW_EDIT_POSTS', true);`
156
  to wp-config.php to enable access for those users. Fixes
157
  [issue #12](https://github.com/artstorm/post-snippets/issues/12).
158
  * Optimizes code for the admin section.
@@ -180,7 +186,7 @@ Contributions are appreciated and encouraged.
180
  function. `get_post_snippet()` will be removed in a future version. Most
181
  users are not affected by this change.
182
  * Refactored code to comply with the PSR-0 standard.
183
- * Migrated to GitHub to maintain the code in development.
184
  [Post Snippets at GitHub](https://github.com/artstorm/post-snippets).
185
  * Included Polish translation (pl_PL) by Tomasz Wesołowski.
186
  * Included Slovak translation (sk_SK) by Branco Radenovich.
@@ -195,7 +201,7 @@ Contributions are appreciated and encouraged.
195
  = Version 1.9.7 - 22 Mar 2012 =
196
  * Updated the styling for the snippet insert window in the post editor. This
197
  fixes the visual glitch with tabs spanning multiple rows.
198
- * Users without `manage_options` but with `edit_posts` capability (authors,
199
  contributors, editors) can now see a read-only list of available snippets and
200
  related info.
201
  * Users with read-only access can toggle if they want to see their snippets
@@ -208,7 +214,7 @@ Contributions are appreciated and encouraged.
208
  [Read more](http://wpstorm.net/wordpress-plugins/post-snippets/#filters).
209
 
210
  = Version 1.9.5 - 17 Mar 2012 =
211
- * The HTML and scripts for the popup window in the post editor is now only
212
  generated on the screens where it's needed.
213
 
214
  = Version 1.9.4 - 8 Feb 2012 =
@@ -222,7 +228,7 @@ Contributions are appreciated and encouraged.
222
  * A variable can now be assigned a default value that will be used in the
223
  insert window. Use the = sign to give a variable a default value. Ie.
224
  var1,var2=default,var3.
225
- * Added versioning to the admin jQuery dialog CSS and the TinyMCE plugin
226
  JavaScript to prevent browser caching of older versions on update.
227
 
228
  = Version 1.9.1 - 22 Jan 2012 =
@@ -240,7 +246,7 @@ Contributions are appreciated and encouraged.
240
 
241
  = Version 1.8.9.1 - 11 Jan 2012 =
242
  * A bug fixed with get_post_snippets() that were introduced in the last update.
243
- * Unit test for get_post_snippets() added to automate testing that it won't
244
  break in future updates.
245
 
246
  = Version 1.8.9 - 10 Jan 2012 =
@@ -263,7 +269,7 @@ Contributions are appreciated and encouraged.
263
  3.3.
264
 
265
  = Version 1.8.6 - 15 Dec 2011 =
266
- * The Post Snippets HTML editor button is updated to be compatible with
267
  WordPress 3.3 refactored QuickTags.
268
 
269
  = Version 1.8.5 - 22 Nov 2011 =
@@ -332,13 +338,13 @@ Contributions are appreciated and encouraged.
332
 
333
  = Version 1.5.4 - 26 Jan 2011 =
334
  * Included Turkish translation by Ersan Özdil.
335
-
336
  = Version 1.5.3 - 19 Sep 2010 =
337
  * Included Spanish translation by Melvis E. Leon Lopez.
338
 
339
  = Version 1.5.2 - 17 Sep 2010 =
340
  * The plugin now keeps linefeed formatting when inserting a snippet directly
341
- with a quicktag in the HTML editor.
342
  * Updated the code to not generate warnings when running WordPress in debug
343
  mode.
344
 
@@ -354,12 +360,12 @@ Contributions are appreciated and encouraged.
354
 
355
  = Version 1.4.9 - 10 Aug 2009 =
356
  * Included Russian translation by FatCow.
357
-
358
  = Version 1.4.8 - 9 May 2009 =
359
  * Changed the handling of the TinyMCE button as some server configurations had
360
  problems finding the correct path.
361
  * Fixed a problem that didn't let a snippet contain a </script> tag.
362
-
363
  = Version 1.4.7 - 27 Apr 2009 =
364
  * Added a workaround for a bug in WordPress 2.7.x wp-includes/compat.php that
365
  prevented the plugin to work correctly on webservers running with PHP below
@@ -383,7 +389,7 @@ Contributions are appreciated and encouraged.
383
  = Version 1.4.4 - 19 Apr 2009 =
384
  * Minor fix with quicktags and certain snippets that was left out in the last
385
  update.
386
-
387
  = Version 1.4.3 - 16 Apr 2009 =
388
  * Fixed an escaping problem with the recently implemented shortcode function,
389
  that could cause problems on certain strings.
@@ -407,13 +413,13 @@ Contributions are appreciated and encouraged.
407
  * Added a checkbox for Quicktags (QT) in the admin panel, so Quicktags are
408
  optional. Speeds up loading of the post editor if you don't need the quicktag
409
  support, and only use the visual editor. Defaults to off.
410
-
411
  = Version 1.3.5 - 9 Apr 2009 =
412
  * Fixed so the TinyMCE window adds a scrollbar if there is more variables for a
413
  snippet than fits in the window.
414
  * Fixed a bug that snippets didn't get inserted when using the visual editor in
415
  fullscreen mode.
416
-
417
  = Version 1.3 - 2 Apr 2009 =
418
  * Fixed a problem with the regular expressions that prohibited variables
419
  consisting of just a single number to work.
@@ -423,7 +429,7 @@ Contributions are appreciated and encouraged.
423
  = Version 1.2 - 1 Apr 2009 =
424
  * Added support for Quicktags so the snippets can be made available in the HTML
425
  editor as well.
426
-
427
  = Version 1.1 - 24 Mar 2009 =
428
  * Included Swedish translation.
429
  * Added TextDomain functionality for I18n.
@@ -440,8 +446,8 @@ required to run Post Snippets.
440
  = 2.1 =
441
  The function `get_post_snippet()` used to retrieve snippets from other places in
442
  WordPress has been deprecated. Please update any code you might have modified
443
- that uses this function to use `PostSnippets::getSnippet()` instead, which
444
- replaces the old function. `get_post_snippet()` will be removed in a future
445
  version.
446
 
447
  Most users are not affected by this change.
3
  Donate link: http://johansteen.se/donate/
4
  Tags: post, admin, snippet, shortcode, html, custom, page, dynamic, editor, php, code
5
  Requires at least: 3.3
6
+ Tested up to: 3.9
7
+ Stable tag: 2.3.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
13
 
14
  == Description ==
15
 
16
+ This plugin lets you build a library with snippets of HTML, PHP code or
17
  reoccurring text that you often use in your posts and pages. You can use
18
  predefined variables to replace parts of the snippet on insert. All snippets are
19
+ available in the post editor via a button in the Visual and HTML modes. The
20
  snippet can be inserted as defined, or as a shortcode to keep flexibility for
21
  updating the snippet. PHP code is supported for snippets inserted as shortcodes.
22
 
34
  which can be used on insert.
35
  * **Import/Export** Snippets can be imported and exported between sites.
36
  * **Uninstall** If you delete the plugin from your plugins panel it cleans up
37
+ all data it has created in the Wordpress database.
38
 
39
  = Related Links =
40
 
62
  = Uninstall =
63
 
64
  1. Deactivate Post Snippets in the 'Plugins' menu in Wordpress.
65
+ 2. Select Post Snippets in the 'Recently Active Plugins' section and select
66
  'Delete' from the 'Bulk Actions' drop down menu.
67
  3. This will delete all the plugin files from the server as well as erasing all
68
  options the plugin has stored in the database.
76
 
77
  = How can I use the content in an enclosed shortcode? =
78
 
79
+ If the shortcode is enclosed and contains content between the tags in a post.
80
  Example: `[shortcode]Some text[/shortcode]` the text within will be availble in
81
  a variable called content. So in your snippet use {content} to display it. Don't
82
  enter 'content' in the variable field, it's automatically assigned.
91
 
92
  = Where can I get support? =
93
 
94
+ Please visit the [Support Forum](http://wordpress.org/tags/post-snippets?forum_id=10 "Use this for support and feature requests")
95
  for questions, answers, support and feature requests.
96
 
97
  = How can I disable the PHP Code Execution feature? =
98
 
99
  To disable the "PHP Code" execution feature in this plugin, add the following
100
+ code your theme's functions.php or to wp-config.php:
101
  `define('POST_SNIPPETS_DISABLE_PHP', true);`
102
 
103
  This is useful if you are using this plugin for client sites, and don't want
121
 
122
  == Changelog ==
123
 
124
+ = Version 2.3.3 - 12 Apr 2014 =
125
+ * Updates Post Snippets admin screen to not let Chrome XSS Auditor preventing
126
+ snippets containg form elements to be saved.
127
+ * Adds Serbo-Croatian translation.
128
+ * Updated Polish translation.
129
+
130
  = Version 2.3.2 - 5 Aug 2013 =
131
  * Updates insert snippets into the editor to be compatible with jQuery 1.9+
132
  (which makes it compatible with WordPress 3.6).
143
  [issue #22](https://github.com/artstorm/post-snippets/issues/22).
144
  * Removes `get_post_snippet()` which was deprecated in version 2.1.
145
  * Adds POST_SNIPPETS_DISABLE_PHP constant to easy disable the PHP code
146
+ execution in snippets. Add
147
+ `define('POST_SNIPPETS_DISABLE_PHP', true);`
148
  to wp-config.php or the theme's functions.php to disable PHP execution in the
149
  plugin.
150
 
157
 
158
  = Version 2.2.1 - 1 May 2013 =
159
  * Added an option to give users with `edit_posts` capability access to the
160
+ Post Snippets Admin. Add
161
+ `define('POST_SNIPPETS_ALLOW_EDIT_POSTS', true);`
162
  to wp-config.php to enable access for those users. Fixes
163
  [issue #12](https://github.com/artstorm/post-snippets/issues/12).
164
  * Optimizes code for the admin section.
186
  function. `get_post_snippet()` will be removed in a future version. Most
187
  users are not affected by this change.
188
  * Refactored code to comply with the PSR-0 standard.
189
+ * Migrated to GitHub to maintain the code in development.
190
  [Post Snippets at GitHub](https://github.com/artstorm/post-snippets).
191
  * Included Polish translation (pl_PL) by Tomasz Wesołowski.
192
  * Included Slovak translation (sk_SK) by Branco Radenovich.
201
  = Version 1.9.7 - 22 Mar 2012 =
202
  * Updated the styling for the snippet insert window in the post editor. This
203
  fixes the visual glitch with tabs spanning multiple rows.
204
+ * Users without `manage_options` but with `edit_posts` capability (authors,
205
  contributors, editors) can now see a read-only list of available snippets and
206
  related info.
207
  * Users with read-only access can toggle if they want to see their snippets
214
  [Read more](http://wpstorm.net/wordpress-plugins/post-snippets/#filters).
215
 
216
  = Version 1.9.5 - 17 Mar 2012 =
217
+ * The HTML and scripts for the popup window in the post editor is now only
218
  generated on the screens where it's needed.
219
 
220
  = Version 1.9.4 - 8 Feb 2012 =
228
  * A variable can now be assigned a default value that will be used in the
229
  insert window. Use the = sign to give a variable a default value. Ie.
230
  var1,var2=default,var3.
231
+ * Added versioning to the admin jQuery dialog CSS and the TinyMCE plugin
232
  JavaScript to prevent browser caching of older versions on update.
233
 
234
  = Version 1.9.1 - 22 Jan 2012 =
246
 
247
  = Version 1.8.9.1 - 11 Jan 2012 =
248
  * A bug fixed with get_post_snippets() that were introduced in the last update.
249
+ * Unit test for get_post_snippets() added to automate testing that it won't
250
  break in future updates.
251
 
252
  = Version 1.8.9 - 10 Jan 2012 =
269
  3.3.
270
 
271
  = Version 1.8.6 - 15 Dec 2011 =
272
+ * The Post Snippets HTML editor button is updated to be compatible with
273
  WordPress 3.3 refactored QuickTags.
274
 
275
  = Version 1.8.5 - 22 Nov 2011 =
338
 
339
  = Version 1.5.4 - 26 Jan 2011 =
340
  * Included Turkish translation by Ersan Özdil.
341
+
342
  = Version 1.5.3 - 19 Sep 2010 =
343
  * Included Spanish translation by Melvis E. Leon Lopez.
344
 
345
  = Version 1.5.2 - 17 Sep 2010 =
346
  * The plugin now keeps linefeed formatting when inserting a snippet directly
347
+ with a quicktag in the HTML editor.
348
  * Updated the code to not generate warnings when running WordPress in debug
349
  mode.
350
 
360
 
361
  = Version 1.4.9 - 10 Aug 2009 =
362
  * Included Russian translation by FatCow.
363
+
364
  = Version 1.4.8 - 9 May 2009 =
365
  * Changed the handling of the TinyMCE button as some server configurations had
366
  problems finding the correct path.
367
  * Fixed a problem that didn't let a snippet contain a </script> tag.
368
+
369
  = Version 1.4.7 - 27 Apr 2009 =
370
  * Added a workaround for a bug in WordPress 2.7.x wp-includes/compat.php that
371
  prevented the plugin to work correctly on webservers running with PHP below
389
  = Version 1.4.4 - 19 Apr 2009 =
390
  * Minor fix with quicktags and certain snippets that was left out in the last
391
  update.
392
+
393
  = Version 1.4.3 - 16 Apr 2009 =
394
  * Fixed an escaping problem with the recently implemented shortcode function,
395
  that could cause problems on certain strings.
413
  * Added a checkbox for Quicktags (QT) in the admin panel, so Quicktags are
414
  optional. Speeds up loading of the post editor if you don't need the quicktag
415
  support, and only use the visual editor. Defaults to off.
416
+
417
  = Version 1.3.5 - 9 Apr 2009 =
418
  * Fixed so the TinyMCE window adds a scrollbar if there is more variables for a
419
  snippet than fits in the window.
420
  * Fixed a bug that snippets didn't get inserted when using the visual editor in
421
  fullscreen mode.
422
+
423
  = Version 1.3 - 2 Apr 2009 =
424
  * Fixed a problem with the regular expressions that prohibited variables
425
  consisting of just a single number to work.
429
  = Version 1.2 - 1 Apr 2009 =
430
  * Added support for Quicktags so the snippets can be made available in the HTML
431
  editor as well.
432
+
433
  = Version 1.1 - 24 Mar 2009 =
434
  * Included Swedish translation.
435
  * Added TextDomain functionality for I18n.
446
  = 2.1 =
447
  The function `get_post_snippet()` used to retrieve snippets from other places in
448
  WordPress has been deprecated. Please update any code you might have modified
449
+ that uses this function to use `PostSnippets::getSnippet()` instead, which
450
+ replaces the old function. `get_post_snippet()` will be removed in a future
451
  version.
452
 
453
  Most users are not affected by this change.
{lib → src}/PostSnippets/Admin.php RENAMED
@@ -14,6 +14,7 @@ class PostSnippets_Admin
14
  {
15
  add_filter('plugin_action_links', array(&$this, 'actionLinks'), 10, 2);
16
  add_action('admin_menu', array(&$this, 'menu'));
 
17
  }
18
 
19
 
@@ -75,6 +76,20 @@ class PostSnippets_Admin
75
  }
76
  }
77
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
 
79
  // -------------------------------------------------------------------------
80
  // Handle form submissions
@@ -322,7 +337,7 @@ class PostSnippets_Admin
322
  /**
323
  * Creates a read-only overview page.
324
  *
325
- * For users with edit_posts capability but without manage_options
326
  * capability.
327
  *
328
  * @since Post Snippets 1.9.7
@@ -398,7 +413,7 @@ class PostSnippets_Admin
398
  // -------------------------------------------------------------------------
399
  // HTML and Form element methods
400
  // -------------------------------------------------------------------------
401
-
402
  /**
403
  * Checkbox.
404
  *
14
  {
15
  add_filter('plugin_action_links', array(&$this, 'actionLinks'), 10, 2);
16
  add_action('admin_menu', array(&$this, 'menu'));
17
+ add_action('current_screen', array(&$this, 'addHeaderXss'));
18
  }
19
 
20
 
76
  }
77
  }
78
 
79
+ /**
80
+ * Add X-XSS-Protection header.
81
+ *
82
+ * Newer versions of Chrome does not allow form tags to be submitted in the
83
+ * forms. This header disables that functionlity on the Post Snippets admin
84
+ * screen only.
85
+ */
86
+ public function addHeaderXss($current_screen)
87
+ {
88
+ if ($current_screen->base == 'settings_page_post-snippets/post-snippets') {
89
+ header('X-XSS-Protection: 0');
90
+ }
91
+ }
92
+
93
 
94
  // -------------------------------------------------------------------------
95
  // Handle form submissions
337
  /**
338
  * Creates a read-only overview page.
339
  *
340
+ * For users with edit_posts capability but without manage_options
341
  * capability.
342
  *
343
  * @since Post Snippets 1.9.7
413
  // -------------------------------------------------------------------------
414
  // HTML and Form element methods
415
  // -------------------------------------------------------------------------
416
+
417
  /**
418
  * Checkbox.
419
  *
{lib → src}/PostSnippets/Help.php RENAMED
File without changes
{lib → src}/PostSnippets/ImportExport.php RENAMED
File without changes
{lib → src}/PostSnippets/Shortcode.php RENAMED
File without changes
{lib → src}/PostSnippets/View.php RENAMED
File without changes
{lib → src}/PostSnippets/WPEditor.php RENAMED
File without changes