Custom Field Template - Version 1.8.8

Version Description

  • Polish (pl_PL) - Difreo
  • Bugfix: saving multiple fields.
  • Bugfix: inconsistency of valueLabel and valueLabels.
Download this release

Release Info

Developer Hiroaki Miyashita
Plugin Icon 128x128 Custom Field Template
Version 1.8.8
Comparing to
See all releases

Code changes from version 1.8.7 to 1.8.8

custom-field-template-pl_PL.mo ADDED
Binary file
custom-field-template-pl_PL.po ADDED
@@ -0,0 +1,518 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Field Template\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2011-05-10 15:45+0100\n"
6
+ "PO-Revision-Date: 2011-05-10 15:46+0100\n"
7
+ "Last-Translator: Przemysław Trawicki <przemek@difreo.pl>\n"
8
+ "Language-Team: \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\n"
13
+ "X-Poedit-Basepath: ../\n"
14
+ "X-Poedit-SearchPath-0: custom-field-template\n"
15
+
16
+ #: custom-field-template/custom-field-template.php:151
17
+ #: custom-field-template/custom-field-template.php:152
18
+ #: custom-field-template/custom-field-template.php:174
19
+ #: custom-field-template/custom-field-template.php:648
20
+ #: custom-field-template/custom-field-template.php:925
21
+ #: custom-field-template/custom-field-template.php:2242
22
+ #: custom-field-template/custom-field-template.php:2390
23
+ msgid "Custom Field Template"
24
+ msgstr "Własne pola CFT"
25
+
26
+ #: custom-field-template/custom-field-template.php:190
27
+ msgid "Media Picker"
28
+ msgstr "Wskaż media"
29
+
30
+ #: custom-field-template/custom-field-template.php:192
31
+ msgid "Use this"
32
+ msgstr "Użyj tego"
33
+
34
+ #: custom-field-template/custom-field-template.php:294
35
+ #: custom-field-template/custom-field-template.php:2597
36
+ msgid "Load"
37
+ msgstr "Wczytaj"
38
+
39
+ #: custom-field-template/custom-field-template.php:470
40
+ msgid "read more"
41
+ msgstr "czytaj więcej"
42
+
43
+ #: custom-field-template/custom-field-template.php:488
44
+ #: custom-field-template/custom-field-template.php:498
45
+ msgid "Custom Fields"
46
+ msgstr "Własne pola"
47
+
48
+ #: custom-field-template/custom-field-template.php:530
49
+ msgid "Settings"
50
+ msgstr "Ustawienia"
51
+
52
+ #: custom-field-template/custom-field-template.php:568
53
+ msgid "Default Template"
54
+ msgstr "Domyślny szablon"
55
+
56
+ #: custom-field-template/custom-field-template.php:782
57
+ msgid "You can not use the following words as the field key: `content`, `post_title`, and `excerpt`, and `action`."
58
+ msgstr "Nie można użyć następujących słów jako nazwy pola: \"content\", \"post_title\", \"excerpt\" i \"action\"."
59
+
60
+ #: custom-field-template/custom-field-template.php:797
61
+ #: custom-field-template/custom-field-template.php:821
62
+ #: custom-field-template/custom-field-template.php:825
63
+ #: custom-field-template/custom-field-template.php:837
64
+ #: custom-field-template/custom-field-template.php:845
65
+ #: custom-field-template/custom-field-template.php:862
66
+ msgid "Options updated."
67
+ msgstr "Aktualizacja została ukończona pomyślnie."
68
+
69
+ #: custom-field-template/custom-field-template.php:866
70
+ msgid "Value Counts rebuilt."
71
+ msgstr "Lliczba wartości przebudowana"
72
+
73
+ #: custom-field-template/custom-field-template.php:869
74
+ msgid "Tags rebuilt."
75
+ msgstr "Tagi przebudowane."
76
+
77
+ #: custom-field-template/custom-field-template.php:878
78
+ msgid "Options imported."
79
+ msgstr "Opcje zaimportowane"
80
+
81
+ #: custom-field-template/custom-field-template.php:885
82
+ msgid "Options resetted."
83
+ msgstr "Opcje zresetowane"
84
+
85
+ #: custom-field-template/custom-field-template.php:889
86
+ msgid "Options deleted."
87
+ msgstr "Opcje usunięte"
88
+
89
+ #: custom-field-template/custom-field-template.php:931
90
+ #: custom-field-template/custom-field-template.php:977
91
+ #: custom-field-template/custom-field-template.php:1083
92
+ #: custom-field-template/custom-field-template.php:1102
93
+ #: custom-field-template/custom-field-template.php:1133
94
+ #: custom-field-template/custom-field-template.php:1166
95
+ #: custom-field-template/custom-field-template.php:1209
96
+ #: custom-field-template/custom-field-template.php:1230
97
+ #: custom-field-template/custom-field-template.php:1247
98
+ #: custom-field-template/custom-field-template.php:1421
99
+ #: custom-field-template/custom-field-template.php:1437
100
+ #: custom-field-template/custom-field-template.php:1453
101
+ #: custom-field-template/custom-field-template.php:1469
102
+ #: custom-field-template/custom-field-template.php:1485
103
+ msgid "Click to toggle"
104
+ msgstr "Kliknij, aby przełączyć"
105
+
106
+ #: custom-field-template/custom-field-template.php:932
107
+ msgid "Custom Field Template Options"
108
+ msgstr "Opcje własnych pól"
109
+
110
+ #: custom-field-template/custom-field-template.php:942
111
+ #: custom-field-template/custom-field-template.php:2444
112
+ #: custom-field-template/custom-field-template.php:2445
113
+ msgid "Disable"
114
+ msgstr "Wyłącz"
115
+
116
+ #: custom-field-template/custom-field-template.php:944
117
+ msgid "Template Title"
118
+ msgstr "Tytuł"
119
+
120
+ #: custom-field-template/custom-field-template.php:946
121
+ msgid "Template Instruction"
122
+ msgstr "Instrukcje"
123
+
124
+ #: custom-field-template/custom-field-template.php:948
125
+ #: custom-field-template/custom-field-template.php:1184
126
+ msgid "Post Type"
127
+ msgstr "Typ wpisu"
128
+
129
+ #: custom-field-template/custom-field-template.php:950
130
+ #: custom-field-template/custom-field-template.php:1185
131
+ msgid "Both"
132
+ msgstr "Oba"
133
+
134
+ #: custom-field-template/custom-field-template.php:951
135
+ #: custom-field-template/custom-field-template.php:1186
136
+ msgid "Post"
137
+ msgstr "Wpis"
138
+
139
+ #: custom-field-template/custom-field-template.php:952
140
+ #: custom-field-template/custom-field-template.php:1187
141
+ msgid "Page"
142
+ msgstr "Strona"
143
+
144
+ #: custom-field-template/custom-field-template.php:953
145
+ #: custom-field-template/custom-field-template.php:1188
146
+ msgid "Custom Post Type (comma-deliminated)"
147
+ msgstr "Własny typ postu (oddzielone przecinkami)"
148
+
149
+ #: custom-field-template/custom-field-template.php:955
150
+ msgid "Post ID (comma-deliminated)"
151
+ msgstr "ID Postu (oddzielony przecinkami)"
152
+
153
+ #: custom-field-template/custom-field-template.php:957
154
+ #: custom-field-template/custom-field-template.php:1190
155
+ msgid "Category ID (comma-deliminated)"
156
+ msgstr "ID Kategorii (oddzielone przecinkami)"
157
+
158
+ #: custom-field-template/custom-field-template.php:959
159
+ msgid "Page Template file name(s) (comma-deliminated)"
160
+ msgstr "Nazwy plików szablonów strony (oddzielone przecinkami)"
161
+
162
+ #: custom-field-template/custom-field-template.php:961
163
+ msgid "Template Content"
164
+ msgstr "Zawartość szablonu"
165
+
166
+ #: custom-field-template/custom-field-template.php:968
167
+ #: custom-field-template/custom-field-template.php:1074
168
+ #: custom-field-template/custom-field-template.php:1093
169
+ #: custom-field-template/custom-field-template.php:1124
170
+ #: custom-field-template/custom-field-template.php:1157
171
+ #: custom-field-template/custom-field-template.php:1200
172
+ msgid "Update Options &raquo;"
173
+ msgstr "Zaktualizuj opcje &raquo;"
174
+
175
+ #: custom-field-template/custom-field-template.php:978
176
+ msgid "Global Settings"
177
+ msgstr "Globalne ustawienia"
178
+
179
+ #: custom-field-template/custom-field-template.php:993
180
+ msgid "In case that you would like to replace custom keys by labels if `label` is set"
181
+ msgstr "W przypadku, gdy chcesz zastąpić etykietami niestandardowe klucze jeśli \"label\" jest ustawione"
182
+
183
+ #: custom-field-template/custom-field-template.php:994
184
+ msgid "Use labels in place of custom keys"
185
+ msgstr "Stosuj etykiety w miejsce własnych kluczy"
186
+
187
+ #: custom-field-template/custom-field-template.php:997
188
+ msgid "In case that you would like to add p and br tags in textareas automatically"
189
+ msgstr "W przypadku, gdy chcesz wstawiać tagi \" p\" i \"br\" automatycznie w pola tekstowe"
190
+
191
+ #: custom-field-template/custom-field-template.php:998
192
+ msgid "Use wpautop function"
193
+ msgstr "Użyj funkcji wpautop"
194
+
195
+ #: custom-field-template/custom-field-template.php:1002
196
+ msgid "In case that you would like to save values automatically in switching templates"
197
+ msgstr "W przypadku, gdy chcesz zapisać wartości automatycznie przy zmianie szablonów"
198
+
199
+ #: custom-field-template/custom-field-template.php:1003
200
+ msgid "Use the auto save in switching templates"
201
+ msgstr "Użyj automatycznego zapisywania przy zmianie szablonów"
202
+
203
+ #: custom-field-template/custom-field-template.php:1007
204
+ msgid "In case that you would like to disable input fields of the custom field template temporarily"
205
+ msgstr "W przypadku, gdy chcesz tymczasowo wyłączyć pola z szablonu niestandardowego pola"
206
+
207
+ #: custom-field-template/custom-field-template.php:1008
208
+ msgid "Use the `Disable` button. The default custom fields will be superseded."
209
+ msgstr "Użyj przycisku \"Wyłącz\". Domyślnie pola niestandardowe zostaną zastąpione."
210
+
211
+ #: custom-field-template/custom-field-template.php:1012
212
+ msgid "In case that you would like to forbid to use the initialize button."
213
+ msgstr "W przypadku, gdy chciałbyś zabronić korzystania z przycisku Inicjalizuj."
214
+
215
+ #: custom-field-template/custom-field-template.php:1013
216
+ msgid "Disable the initialize button"
217
+ msgstr "Wyłącz przycisk inicjalizacji"
218
+
219
+ #: custom-field-template/custom-field-template.php:1017
220
+ msgid "In case that you would like to forbid to use the save button."
221
+ msgstr "W przypadku, gdy chciałbyś zabronić korzystania z przycisku Zapisz."
222
+
223
+ #: custom-field-template/custom-field-template.php:1018
224
+ msgid "Disable the save button"
225
+ msgstr "Wyłącz przycisk zapisywania"
226
+
227
+ #: custom-field-template/custom-field-template.php:1022
228
+ msgid "In case that you would like to forbid to use the default custom fields."
229
+ msgstr "W przypadku, gdy chciałbyś zabronić korzystania z domyślnych pól niestandardowych."
230
+
231
+ #: custom-field-template/custom-field-template.php:1023
232
+ msgid "Disable the default custom fields"
233
+ msgstr "Wyłącz domyślne niestandardowe pola"
234
+
235
+ #: custom-field-template/custom-field-template.php:1027
236
+ msgid "In case that you would like to forbid to use the quick edit."
237
+ msgstr "W przypadku, gdy chesz zabronić używania szybkiej edycji."
238
+
239
+ #: custom-field-template/custom-field-template.php:1028
240
+ msgid "Disable the quick edit"
241
+ msgstr "Wyłącz szybką edycję"
242
+
243
+ #: custom-field-template/custom-field-template.php:1032
244
+ msgid "In case that you would like to forbid to display the custom field column on the edit post list page."
245
+ msgstr "W przypadku, gdy chcesz zabronić wyswietlania niestandardowych kolumn pola na liscie edycji postów"
246
+
247
+ #: custom-field-template/custom-field-template.php:1033
248
+ msgid "Disable the custom field column (The quick edit also does not work.)"
249
+ msgstr "Wyłącz niestandardowe kolumny pola (szybka edycja również nie działa.)"
250
+
251
+ #: custom-field-template/custom-field-template.php:1037
252
+ msgid "In case that you would like to replace the box title with the template title."
253
+ msgstr "W przypadku, gdy chcesz zastąpić tytuł pola tytułem szablonu."
254
+
255
+ #: custom-field-template/custom-field-template.php:1038
256
+ msgid "Replace the box title"
257
+ msgstr "Zamień tytuł pola"
258
+
259
+ #: custom-field-template/custom-field-template.php:1042
260
+ msgid "In case that you would like to use the shortcode in the widget."
261
+ msgstr "W przypadku, gdy chcesz korzystać z krótkiego kodu w widżecie"
262
+
263
+ #: custom-field-template/custom-field-template.php:1043
264
+ msgid "Use the shortcode in the widget"
265
+ msgstr "Użyj krótkiego kodu w widżecie."
266
+
267
+ #: custom-field-template/custom-field-template.php:1047
268
+ msgid "In case that you would like to use the shortcode in the excerpt."
269
+ msgstr "W przypadku, gdy chcesz korzystać z krótkiego kodu w wypisie"
270
+
271
+ #: custom-field-template/custom-field-template.php:1048
272
+ msgid "Use the shortcode in the excerpt"
273
+ msgstr "Użyj krótkiego kodu w wypisie"
274
+
275
+ #: custom-field-template/custom-field-template.php:1052
276
+ msgid "In case that you would like to use the jQuery validation."
277
+ msgstr "W przypadku, gdy chciałbyś skorzystać z walidacji jQuery."
278
+
279
+ #: custom-field-template/custom-field-template.php:1053
280
+ msgid "Use the jQuery validation"
281
+ msgstr "Użyj walidacji jQuery"
282
+
283
+ #: custom-field-template/custom-field-template.php:1063
284
+ msgid "Text to place before every list which is called by the cft shortcode"
285
+ msgstr "Tekst jaki ma być umieszczonyprzed każdą listą wywołaną przez krótki kod cft"
286
+
287
+ #: custom-field-template/custom-field-template.php:1065
288
+ msgid "Text to place after every list which is called by the cft shortcode"
289
+ msgstr "Tekst jaki ma być umieszczony po każdej liscie wywołanej przez krótki kod cft"
290
+
291
+ #: custom-field-template/custom-field-template.php:1067
292
+ msgid "Text to place before every value which is called by the cft shortcode"
293
+ msgstr "Tekst jaki ma być umieszczony przed każdą wartością wywołaną przez krótki kod cft"
294
+
295
+ #: custom-field-template/custom-field-template.php:1069
296
+ msgid "Text to place after every value which is called by the cft shortcode"
297
+ msgstr "Tekst jaki ma być umieszczony po każdej wartości wywołanej przez krótki kod cft"
298
+
299
+ #: custom-field-template/custom-field-template.php:1084
300
+ msgid "ADMIN CSS"
301
+ msgstr "Admin CSS"
302
+
303
+ #: custom-field-template/custom-field-template.php:1103
304
+ msgid "[cft] and [cftsearch] Shortcode Format"
305
+ msgstr "[cft] i [cftsearch] Format krótkiego kodu"
306
+
307
+ #: custom-field-template/custom-field-template.php:1106
308
+ msgid "For [cft], [key] will be converted into the value of [key]."
309
+ msgstr "Dla [cft], [key] zostaną przeliczone na wartości [key]."
310
+
311
+ #: custom-field-template/custom-field-template.php:1107
312
+ msgid "For [cftsearch], [key] will be converted into the input field."
313
+ msgstr "Dla [cftsearch], [key] zostanie zamienione na pole wejściowe."
314
+
315
+ #: custom-field-template/custom-field-template.php:1118
316
+ #: custom-field-template/custom-field-template.php:1193
317
+ msgid "Use PHP"
318
+ msgstr "Używaj PHP"
319
+
320
+ #: custom-field-template/custom-field-template.php:1134
321
+ msgid "PHP CODE (Experimental Option)"
322
+ msgstr "Kod PHP (Opcja experymentalna)"
323
+
324
+ #: custom-field-template/custom-field-template.php:1136
325
+ msgid "Are you sure to save PHP codes? Please do it at your own risk."
326
+ msgstr "Czy na pewno chcesz zapisać kody PHP? Proszę zrobić to na własne ryzyko."
327
+
328
+ #: custom-field-template/custom-field-template.php:1137
329
+ msgid "For `text` and `textarea`, you must set $value as an string."
330
+ msgstr "Dla `text` and `textarea`, należy ustawić $value jako ciąg znaków."
331
+
332
+ #: custom-field-template/custom-field-template.php:1139
333
+ msgid "For `checkbox`, `radio`, and `select`, you must set $values as an array."
334
+ msgstr "Dla `checkbox`, `radio`, i `select`, należy ustawić $values jako tablicę."
335
+
336
+ #: custom-field-template/custom-field-template.php:1167
337
+ msgid "Auto Hook of `the_content()` (Experimental Option)"
338
+ msgstr " Auto Hook \"the_content ()\" (opcja eksperymentalna)"
339
+
340
+ #: custom-field-template/custom-field-template.php:1179
341
+ msgid "Position"
342
+ msgstr "Położenie"
343
+
344
+ #: custom-field-template/custom-field-template.php:1180
345
+ msgid "Before the content"
346
+ msgstr "Przed treścią"
347
+
348
+ #: custom-field-template/custom-field-template.php:1181
349
+ msgid "After the content"
350
+ msgstr "Za treścią"
351
+
352
+ #: custom-field-template/custom-field-template.php:1182
353
+ #, php-format
354
+ msgid "Inside the content ([cfthook hook=%d])"
355
+ msgstr "Wewnątrz treści ([cfthook hook=%d])"
356
+
357
+ #: custom-field-template/custom-field-template.php:1192
358
+ msgid "Content"
359
+ msgstr "Treść"
360
+
361
+ #: custom-field-template/custom-field-template.php:1194
362
+ msgid "Apply to feeds"
363
+ msgstr "Zastosuj zmiany do łączy"
364
+
365
+ #: custom-field-template/custom-field-template.php:1210
366
+ msgid "Rebuild Value Counts"
367
+ msgstr "Przebuduj liczbę wartości"
368
+
369
+ #: custom-field-template/custom-field-template.php:1212
370
+ msgid "Are you sure to rebuild all value counts?"
371
+ msgstr "Czy na pewno odbudować liczby wartości?"
372
+
373
+ #: custom-field-template/custom-field-template.php:1216
374
+ msgid "Value Counts are used for temporarily saving how many values in each key. Set `valueCount = true` into fields."
375
+ msgstr "Liczby wartości są używane do zapisywania, ile tymczasowo istnieje wartości każdego klucza. Ustaw `valueCount = true\"."
376
+
377
+ #: custom-field-template/custom-field-template.php:1220
378
+ msgid "Rebuild Value Counts &raquo;"
379
+ msgstr "Przebuduj liczbę wartości &raquo;"
380
+
381
+ #: custom-field-template/custom-field-template.php:1231
382
+ msgid "Rebuild Tags"
383
+ msgstr "Przebuduj tagi"
384
+
385
+ #: custom-field-template/custom-field-template.php:1233
386
+ msgid "Are you sure to rebuild tags?"
387
+ msgstr "Czy na pewno chcesz prebudować tagi?"
388
+
389
+ #: custom-field-template/custom-field-template.php:1237
390
+ msgid "Rebuild Tags &raquo;"
391
+ msgstr "Przebuduj tagi &raquo;"
392
+
393
+ #: custom-field-template/custom-field-template.php:1248
394
+ msgid "Option List"
395
+ msgstr "Lista opcji"
396
+
397
+ #: custom-field-template/custom-field-template.php:1422
398
+ msgid "Export Options"
399
+ msgstr "Eksportuj opcje"
400
+
401
+ #: custom-field-template/custom-field-template.php:1428
402
+ msgid "Export Options &raquo;"
403
+ msgstr "Eksportuj opcje &raquo;"
404
+
405
+ #: custom-field-template/custom-field-template.php:1438
406
+ msgid "Import Options"
407
+ msgstr "Importuj opcje"
408
+
409
+ #: custom-field-template/custom-field-template.php:1440
410
+ msgid "Are you sure to import options? Options you set will be overwritten."
411
+ msgstr "Czy na pewno chcesz importować opcje? Opcje, które ustawiłeś zostaną nadpisane."
412
+
413
+ #: custom-field-template/custom-field-template.php:1444
414
+ msgid "Import Options &raquo;"
415
+ msgstr "Importuj opcje &raquo;"
416
+
417
+ #: custom-field-template/custom-field-template.php:1454
418
+ msgid "Reset Options"
419
+ msgstr "Resetuj opcje"
420
+
421
+ #: custom-field-template/custom-field-template.php:1456
422
+ msgid "Are you sure to reset options? Options you set will be reset to the default settings."
423
+ msgstr "Czy na pewno chcesz zresetować opcje? Opcje, które ustawiłeś zostaną przywrócone do ustawień domyślnych."
424
+
425
+ #: custom-field-template/custom-field-template.php:1460
426
+ msgid "Reset Options &raquo;"
427
+ msgstr "Zresetuj opcje &raquo;"
428
+
429
+ #: custom-field-template/custom-field-template.php:1470
430
+ msgid "Delete Options"
431
+ msgstr "Usuń opcje"
432
+
433
+ #: custom-field-template/custom-field-template.php:1472
434
+ msgid "Are you sure to delete options? Options you set will be deleted."
435
+ msgstr "Czy na pewno chcesz usunąć opcje? Opcje, które ustawiłeś zostaną usunięte."
436
+
437
+ #: custom-field-template/custom-field-template.php:1476
438
+ msgid "Delete Options &raquo;"
439
+ msgstr "Usuń opcje &raquo;"
440
+
441
+ #: custom-field-template/custom-field-template.php:1486
442
+ msgid "Donation"
443
+ msgstr "Wsparcie"
444
+
445
+ #: custom-field-template/custom-field-template.php:1488
446
+ msgid "If you liked this plugin, please make a donation via paypal! Any amount is welcome. Your support is much appreciated."
447
+ msgstr "Jeśli podoba Ci się ten plugin dokonaj wpłaty za pośrednictwem PayPal! Każda kwota jest mile widziana. Twoje wsparcie jest mile widziane."
448
+
449
+ #: custom-field-template/custom-field-template.php:1591
450
+ #: custom-field-template/custom-field-template.php:1722
451
+ #: custom-field-template/custom-field-template.php:1806
452
+ #: custom-field-template/custom-field-template.php:1947
453
+ #: custom-field-template/custom-field-template.php:2003
454
+ #: custom-field-template/custom-field-template.php:2175
455
+ msgid "Add New"
456
+ msgstr "Dodaj następne"
457
+
458
+ #: custom-field-template/custom-field-template.php:1732
459
+ msgid "Clear"
460
+ msgstr "Wyczyść"
461
+
462
+ #: custom-field-template/custom-field-template.php:1822
463
+ msgid "Select"
464
+ msgstr "Wybierz"
465
+
466
+ #: custom-field-template/custom-field-template.php:1898
467
+ msgid "Add an Image"
468
+ msgstr "Dodaj obrazek"
469
+
470
+ #: custom-field-template/custom-field-template.php:1903
471
+ msgid "Add Video"
472
+ msgstr "Dodaj film"
473
+
474
+ #: custom-field-template/custom-field-template.php:1908
475
+ msgid "Add Audio"
476
+ msgstr "Dodaj plik dźwiękowy"
477
+
478
+ #: custom-field-template/custom-field-template.php:1912
479
+ msgid "Add Media"
480
+ msgstr "Dodaj medium"
481
+
482
+ #: custom-field-template/custom-field-template.php:1919
483
+ msgid "Toggle"
484
+ msgstr "Przełącz"
485
+
486
+ #: custom-field-template/custom-field-template.php:2013
487
+ msgid " OR "
488
+ msgstr "lub"
489
+
490
+ #: custom-field-template/custom-field-template.php:2014
491
+ msgid "Select by Media Picker"
492
+ msgstr "Wybierz przez Media Picker"
493
+
494
+ #: custom-field-template/custom-field-template.php:2037
495
+ #: custom-field-template/custom-field-template.php:2177
496
+ msgid "Delete"
497
+ msgstr "Usuń"
498
+
499
+ #: custom-field-template/custom-field-template.php:2445
500
+ msgid "Enable"
501
+ msgstr "Włącz"
502
+
503
+ #: custom-field-template/custom-field-template.php:2449
504
+ msgid "Initialize"
505
+ msgstr "Inicjuj"
506
+
507
+ #: custom-field-template/custom-field-template.php:2450
508
+ msgid "Are you sure to reset current values? Default values will be loaded."
509
+ msgstr "Czy na pewno chcesz zresetować bieżące wartości? Domyślne wartości zostaną załadowane."
510
+
511
+ #: custom-field-template/custom-field-template.php:2455
512
+ msgid "Save"
513
+ msgstr "Zapisz"
514
+
515
+ #: custom-field-template/custom-field-template.php:3145
516
+ msgid "Search &raquo;"
517
+ msgstr "Szukaj &raquo;"
518
+
custom-field-template.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Custom Field Template
4
  Plugin URI: http://wpgogo.com/development/custom-field-template.html
5
  Description: This plugin adds the default custom fields on the Write Post/Page.
6
  Author: Hiroaki Miyashita
7
- Version: 1.8.7
8
  Author URI: http://wpgogo.com/
9
  */
10
 
@@ -430,6 +430,7 @@ class custom_field_template {
430
 
431
  if( is_array($data) && $column_name == 'custom-fields' ) :
432
  $flag = 0;
 
433
  foreach($data as $key => $val) :
434
  if ( substr($key, 0, 1) == '_' || !$val[0] ) continue;
435
  $content .= '<p class="key">' . $key . '</p>' . "\n";
@@ -438,7 +439,7 @@ class custom_field_template {
438
  if ( $flag ) :
439
  $content .= '<p class="value">' . $val2 . '</p>' . "\n";
440
  else :
441
- if ( function_exists( mb_strlen ) ) :
442
  if ( mb_strlen($val2) > 50 ) :
443
  $before_content = mb_substr($val2, 0, 50);
444
  $after_content = mb_substr($val2, 50);
@@ -462,7 +463,7 @@ class custom_field_template {
462
  endforeach;
463
  if ( $content ) :
464
  $content = preg_replace('/([^\n]+)\n([^\n]+)\n([^\n]+)\n([^\n]+)\n([^$]+)/', '\1\2\3\4[[[break]]]\5', $content);
465
- list($before, $after) = explode('[[[break]]]', $content, 2);
466
  $after = preg_replace('/\[\[\[break\]\]\]/', '', $after);
467
  $output .= '<div class="cft_list">';
468
  $output .= balanceTags($before, true);
@@ -1621,7 +1622,7 @@ jQuery(this).addClass("closed");
1621
  }
1622
 
1623
  function make_checkbox( $name, $sid, $data ) {
1624
- $cftnum = $value = $valueLabel = $checked = $hideKey = $label = $code = $class = $style = $onclick = $ondblclick = $onkeydown = $onkeypress = $onkeyup = $onmousedown = $onmouseup = $onmouseover = $onmouseout = $onmousemove = $onfocus = $onblur = $onchange = $onselect = '';
1625
  $hide = $addfield = $out = '';
1626
  extract($data);
1627
  $options = $this->get_custom_field_template_data();
@@ -1641,7 +1642,7 @@ jQuery(this).addClass("closed");
1641
  } else {
1642
  if( $checked == true ) $checked = ' checked="checked"';
1643
  }
1644
-
1645
  if ( $hideKey == true ) $hide = ' class="hideKey"';
1646
  if ( !empty($class) ) $class = ' class="' . $class . '"';
1647
  if ( !empty($style) ) $style = ' style="' . $style . '"';
@@ -1678,7 +1679,7 @@ jQuery(this).addClass("closed");
1678
  }
1679
 
1680
  function make_radio( $name, $sid, $data ) {
1681
- $cftnum = $values = $valueLabels = $clearButton = $default = $hideKey = $label = $code = $class = $style = $multipleButton = $onclick = $ondblclick = $onkeydown = $onkeypress = $onkeyup = $onmousedown = $onmouseup = $onmouseover = $onmouseout = $onmousemove = $onfocus = $onblur = $onchange = $onselect = '';
1682
  $hide = $addfield = $out = '';
1683
  extract($data);
1684
  $options = $this->get_custom_field_template_data();
@@ -1702,6 +1703,8 @@ jQuery(this).addClass("closed");
1702
  if ( empty($ct_value) ) :
1703
  $ct_value = !empty($startNum) ? $startNum-1 : 1;
1704
  endif;
 
 
1705
 
1706
  if ( $hideKey == true ) $hide = ' class="hideKey"';
1707
  if ( !empty($class) ) $class = ' class="' . $class . '"';
@@ -1765,7 +1768,7 @@ jQuery(this).addClass("closed");
1765
  }
1766
 
1767
  function make_select( $name, $sid, $data ) {
1768
- $cftnum = $values = $valueLabels = $default = $hideKey = $label = $code = $class = $style = $before = $after = $selectLabel = $multipleButton = $onclick = $ondblclick = $onkeydown = $onkeypress = $onkeyup = $onmousedown = $onmouseup = $onmouseover = $onmouseout = $onmousemove = $onfocus = $onblur = $onchange = $onselect = '';
1769
  $hide = $addfield = $out = '';
1770
  extract($data);
1771
  $options = $this->get_custom_field_template_data();
@@ -1790,6 +1793,8 @@ jQuery(this).addClass("closed");
1790
  $ct_value = !empty($startNum) ? $startNum-1 : 1;
1791
  endif;
1792
 
 
 
1793
  if ( $hideKey == true ) $hide = ' class="hideKey"';
1794
  if ( !empty($class) ) $class = ' class="' . $class . '"';
1795
  if ( !empty($style) ) $style = ' style="' . $style . '"';
@@ -1844,7 +1849,7 @@ jQuery(this).addClass("closed");
1844
  }
1845
 
1846
  function make_textarea( $name, $sid, $data ) {
1847
- $cftnum = $rows = $cols = $tinyMCE = $htmlEditor = $mediaButton = $default = $hideKey = $label = $code = $class = $style = $mediaOffMedia = $mediaOffImage = $mediaOffVideo = $mediaOffAudio = $onclick = $ondblclick = $onkeydown = $onkeypress = $onkeyup = $onmousedown = $onmouseup = $onmouseover = $onmouseout = $onmousemove = $onfocus = $onblur = $onchange = $onselect = '';
1848
  $hide = $addfield = $out = $media = $editorcontainer_class = '';
1849
  extract($data);
1850
  $options = $this->get_custom_field_template_data();
@@ -1945,9 +1950,11 @@ jQuery(this).addClass("closed");
1945
 
1946
  if ( $multipleButton == true && $ct_value == $cftnum ) :
1947
  $addfield .= '<div style="margin-top:-1em;">';
1948
- $addfield .= '<a href="#clear" onclick="var original_id, new_id; jQuery(this).parent().parent().parent().find('."'textarea'".').each(function(){original_id = jQuery(this).attr('."'id'".');tinyMCE.execCommand(' . "'mceRemoveControl'" . ',false,jQuery(this).attr('."'id'".'));});var clone = jQuery(this).parent().parent().parent().clone().insertAfter(jQuery(this).parent().parent().parent());
1949
- clone.find('."'textarea'".').val('."''".');if(original_id.match(/([0-9]+)$/)) {var matchval = RegExp.$1;re = new RegExp(matchval, '."'ig'".');clone.html(clone.html().replace(re, parseInt(matchval)+1));
1950
- new_id = original_id.replace(/([0-9]+)$/, parseInt(matchval)+1);}if ( tinyMCE.get(jQuery(this).attr('."original_id".')) ) {tinyMCE.execCommand(' . "'mceAddControl'" . ',false, original_id);tinyMCE.execCommand(' . "'mceAddControl'" . ',false, new_id);}jQuery(this).parent().css('."'visibility','hidden'".');jQuery(this).parent().prev().css('."'visibility','hidden'".'); return false;">' . __('Add New', 'custom-field-template') . '</a>';
 
 
1951
  $addfield .= '</div>';
1952
  endif;
1953
 
@@ -2039,10 +2046,10 @@ new_id = original_id.replace(/([0-9]+)$/, parseInt(matchval)+1);}if ( tinyMCE.ge
2039
  $title = '<a href="'.$image_upload_iframe_src.'&post_id='.$_REQUEST[ 'post' ].'&TB_iframe=1&tab='.$tab.'" class="thickbox">'.$title.'</a>';
2040
  endif;
2041
 
2042
- $out .= '<p><label for="'.$name . $sid . '_' . $cftnum . '_delete"><input type="checkbox" name="'.$name . '_delete[' . $sid . '][' . $cftnum . ']" id="'.$name . $sid . '_' . $cftnum . '_delete" value="1" class="delete_file_checkbox" />' . __('Delete', 'custom-field-template') . '</label> <img src="'.$thumb_url.'" width="32" height="32" style="vertical-align:middle;" /> ' . $title . ' </p>';
2043
- $out .= '<input type="hidden" id="' . $name . $sid . '_' . $cftnum . '_hide" name="'.$name . '[' . $sid . '][' . $cftnum . ']" value="' . $value . '" />';
2044
  else :
2045
- $out .= '<input type="hidden" id="' . $name . $sid . '_' . $cftnum . '_hide" name="'.$name . '[' . $sid . '][' . $cftnum . ']" value="" />';
2046
  endif;
2047
 
2048
  $out .= '</dd></dl>'."\n";
@@ -2433,7 +2440,7 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
2433
  '</style>';
2434
  list($body, $init_id) = $this->load_custom_field($init_id);
2435
 
2436
- $out .= '<div id="cft_selectbox" style="height:25px;">';
2437
  $out .= $this->custom_field_template_selectbox();
2438
  $out .= '</div>';
2439
 
@@ -2679,16 +2686,22 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
2679
 
2680
  foreach( $fields as $field_key => $field_val) :
2681
  foreach( $field_val as $title => $data) :
2682
- if ( is_numeric($data['parentSN']) ) $field_key = $data['parentSN'];
2683
  $name = $this->sanitize_name( $title );
2684
  $title = $wpdb->escape(stripcslashes(trim($title)));
2685
 
 
 
 
 
 
2686
  switch ( $data['type'] ) :
2687
  case 'fieldset_open' :
2688
  $save_value[$title][0] = count($_REQUEST[$name]);
2689
  break;
2690
  default :
2691
- $value = trim($_REQUEST[$name][$field_key][$data['cftnum']]);
 
2692
 
2693
  if ( !empty($options['custom_field_template_use_wpautop']) && $data['type'] == 'textarea' && !empty($value) )
2694
  $value = wpautop($value);
@@ -2708,7 +2721,7 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
2708
  $options['value_count'][$title][$value] = $this->set_value_count($title, $value, $id)+1;
2709
  endif;
2710
 
2711
- if ( isset($_REQUEST['TinyMCE_' . $name . trim($_REQUEST[ $name."_rand" ][$i]) . '_size']) ) {
2712
  preg_match('/cw=[0-9]+&ch=([0-9]+)/', $_REQUEST['TinyMCE_' . $name . trim($_REQUEST[ $name."_rand" ][$i]) . '_size'], $matched);
2713
  $options['tinyMCE'][$id][$name][$i] = (int)($matched[1]/20);
2714
  }
@@ -2720,7 +2733,7 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
2720
  if ( $data['type'] == 'checkbox' ) :
2721
  delete_post_meta($id, $title, $data['value']);
2722
  else :
2723
- delete_post_meta($id, $title, $tmp_value[$data['cftnum']]);
2724
  endif;
2725
  endif;
2726
  endif;
@@ -2746,13 +2759,13 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
2746
  unset($_FILES);
2747
  else :
2748
  if ( !get_post($value) && $value ) :
2749
- if ( $data['blank'] == true ) :
2750
  $save_value[$title][] = '';
2751
  endif;
2752
  elseif ( $value ) :
2753
  $save_value[$title][] = $value;
2754
  else :
2755
- if ( $data['blank'] == true ) :
2756
  $save_value[$title][] = '';
2757
  endif;
2758
  endif;
@@ -2762,10 +2775,15 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
2762
  endforeach;
2763
  endforeach;
2764
 
2765
- /*print_r($tmpfiles);
 
 
2766
  print_r($fields);
 
2767
  print_r($_REQUEST);
 
2768
  print_r($save_value);
 
2769
  print_r(get_post_custom($id));
2770
  exit();*/
2771
 
@@ -2873,24 +2891,26 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
2873
  if ( isset($data["valueLabel"]) ) $valueLabel = explode( '#', $data["valueLabel"] );
2874
  if ( isset($data["default"]) ) $defaults = explode( '#', $data["default"] );
2875
  endif;
 
 
2876
 
2877
- if ( is_array($defaults) )
2878
  foreach($defaults as $dkey => $dval)
2879
  $defaults[$dkey] = trim($dval);
2880
 
2881
  $tmp = $key;
2882
  $i = 0;
2883
- if ( is_array($values) ) :
2884
  foreach($values as $value) {
2885
  $count_key = count($returndata);
2886
  $Data[$Data_key][$title]["value"] = trim($value);
2887
  $Data[$Data_key][$title]["originalValue"] = $data["value"];
2888
  $Data[$Data_key][$title]['cftnum'] = $i;
2889
- if ( isset($valueLabel[$i]) )
2890
- $Data[$Data_key][$title]["valueLabel"] = trim($valueLabel[$i]);
2891
  if ( $tmp!=$key )
2892
  $Data[$Data_key][$title]["hideKey"] = true;
2893
- if ( is_array($defaults) ) :
2894
  if ( in_array(trim($value), $defaults) )
2895
  $Data[$Data_key][$title]["checked"] = true;
2896
  else
@@ -2909,7 +2929,7 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
2909
  if ( isset($_REQUEST[$this->sanitize_name($title)]) ) $fieldsetcounter = count($_REQUEST[$this->sanitize_name($title)])-1;
2910
  else if ( isset($_REQUEST['post']) ) $fieldsetcounter = $this->get_post_meta( $_REQUEST['post'], $title, true )-1;
2911
  else $fieldsetcounter = 0;
2912
- if ( !empty($data['multiple']) ) $fieldset_multiple = 1;
2913
  endif;
2914
  if ( isset($fieldset) && is_array($fieldset) ) :
2915
  if ( empty($tmp_parentSN2[$title]) ) $tmp_parentSN2[$title] = $tmp_parentSN;
@@ -2928,7 +2948,7 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
2928
  endif;
2929
  if ( !$org_counter ) $org_counter = 2;
2930
  if ( isset($data['startNum']) && is_numeric($data['startNum']) && $data['startNum']>$counter ) $counter = $data['startNum'];
2931
- if ( isset($data['endNum']) && is_numeric($data['endNum']) && $data['endNum']<$counter ) $counter = $data['endNum'];
2932
  if ( $counter ) :
2933
  for($i=0;$i<$counter; $i++) :
2934
  $count_key = count($returndata);
4
  Plugin URI: http://wpgogo.com/development/custom-field-template.html
5
  Description: This plugin adds the default custom fields on the Write Post/Page.
6
  Author: Hiroaki Miyashita
7
+ Version: 1.8.8
8
  Author URI: http://wpgogo.com/
9
  */
10
 
430
 
431
  if( is_array($data) && $column_name == 'custom-fields' ) :
432
  $flag = 0;
433
+ $content = $output = '';
434
  foreach($data as $key => $val) :
435
  if ( substr($key, 0, 1) == '_' || !$val[0] ) continue;
436
  $content .= '<p class="key">' . $key . '</p>' . "\n";
439
  if ( $flag ) :
440
  $content .= '<p class="value">' . $val2 . '</p>' . "\n";
441
  else :
442
+ if ( function_exists('mb_strlen') ) :
443
  if ( mb_strlen($val2) > 50 ) :
444
  $before_content = mb_substr($val2, 0, 50);
445
  $after_content = mb_substr($val2, 50);
463
  endforeach;
464
  if ( $content ) :
465
  $content = preg_replace('/([^\n]+)\n([^\n]+)\n([^\n]+)\n([^\n]+)\n([^$]+)/', '\1\2\3\4[[[break]]]\5', $content);
466
+ @list($before, $after) = explode('[[[break]]]', $content, 2);
467
  $after = preg_replace('/\[\[\[break\]\]\]/', '', $after);
468
  $output .= '<div class="cft_list">';
469
  $output .= balanceTags($before, true);
1622
  }
1623
 
1624
  function make_checkbox( $name, $sid, $data ) {
1625
+ $cftnum = $value = $valueLabel = $checked = $hideKey = $label = $code = $class = $style = $before = $after = $onclick = $ondblclick = $onkeydown = $onkeypress = $onkeyup = $onmousedown = $onmouseup = $onmouseover = $onmouseout = $onmousemove = $onfocus = $onblur = $onchange = $onselect = '';
1626
  $hide = $addfield = $out = '';
1627
  extract($data);
1628
  $options = $this->get_custom_field_template_data();
1642
  } else {
1643
  if( $checked == true ) $checked = ' checked="checked"';
1644
  }
1645
+
1646
  if ( $hideKey == true ) $hide = ' class="hideKey"';
1647
  if ( !empty($class) ) $class = ' class="' . $class . '"';
1648
  if ( !empty($style) ) $style = ' style="' . $style . '"';
1679
  }
1680
 
1681
  function make_radio( $name, $sid, $data ) {
1682
+ $cftnum = $values = $valueLabel = $valueLabels = $clearButton = $default = $hideKey = $label = $code = $class = $style = $before = $after = $multipleButton = $onclick = $ondblclick = $onkeydown = $onkeypress = $onkeyup = $onmousedown = $onmouseup = $onmouseover = $onmouseout = $onmousemove = $onfocus = $onblur = $onchange = $onselect = '';
1683
  $hide = $addfield = $out = '';
1684
  extract($data);
1685
  $options = $this->get_custom_field_template_data();
1703
  if ( empty($ct_value) ) :
1704
  $ct_value = !empty($startNum) ? $startNum-1 : 1;
1705
  endif;
1706
+
1707
+ if ( !empty($valueLabel) ) $valueLabels = $valueLabel;
1708
 
1709
  if ( $hideKey == true ) $hide = ' class="hideKey"';
1710
  if ( !empty($class) ) $class = ' class="' . $class . '"';
1768
  }
1769
 
1770
  function make_select( $name, $sid, $data ) {
1771
+ $cftnum = $values = $valueLabel = $valueLabels = $default = $hideKey = $label = $code = $class = $style = $before = $after = $selectLabel = $multipleButton = $onclick = $ondblclick = $onkeydown = $onkeypress = $onkeyup = $onmousedown = $onmouseup = $onmouseover = $onmouseout = $onmousemove = $onfocus = $onblur = $onchange = $onselect = '';
1772
  $hide = $addfield = $out = '';
1773
  extract($data);
1774
  $options = $this->get_custom_field_template_data();
1793
  $ct_value = !empty($startNum) ? $startNum-1 : 1;
1794
  endif;
1795
 
1796
+ if ( !empty($valueLabel) ) $valueLabels = $valueLabel;
1797
+
1798
  if ( $hideKey == true ) $hide = ' class="hideKey"';
1799
  if ( !empty($class) ) $class = ' class="' . $class . '"';
1800
  if ( !empty($style) ) $style = ' style="' . $style . '"';
1849
  }
1850
 
1851
  function make_textarea( $name, $sid, $data ) {
1852
+ $cftnum = $rows = $cols = $tinyMCE = $htmlEditor = $mediaButton = $default = $hideKey = $label = $code = $class = $style = $before = $after = $multipleButton = $mediaOffMedia = $mediaOffImage = $mediaOffVideo = $mediaOffAudio = $onclick = $ondblclick = $onkeydown = $onkeypress = $onkeyup = $onmousedown = $onmouseup = $onmouseover = $onmouseout = $onmousemove = $onfocus = $onblur = $onchange = $onselect = '';
1853
  $hide = $addfield = $out = $media = $editorcontainer_class = '';
1854
  extract($data);
1855
  $options = $this->get_custom_field_template_data();
1950
 
1951
  if ( $multipleButton == true && $ct_value == $cftnum ) :
1952
  $addfield .= '<div style="margin-top:-1em;">';
1953
+ if ( !empty($tinyMCE) ) :
1954
+ $addfield .= '<a href="#clear" onclick="var original_id, new_id; jQuery(this).parent().parent().parent().find('."'textarea'".').each(function(){original_id = jQuery(this).attr('."'id'".');tinyMCE.execCommand(' . "'mceRemoveControl'" . ',false,jQuery(this).attr('."'id'".'));});var clone = jQuery(this).parent().parent().parent().clone().insertAfter(jQuery(this).parent().parent().parent()); clone.find('."'textarea'".').val('."''".');if(original_id.match(/([0-9]+)$/)) {var matchval = RegExp.$1;re = new RegExp(matchval, '."'ig'".');clone.html(clone.html().replace(re, parseInt(matchval)+1)); new_id = original_id.replace(/([0-9]+)$/, parseInt(matchval)+1);}if ( tinyMCE.get(jQuery(this).attr('."original_id".')) ) {tinyMCE.execCommand(' . "'mceAddControl'" . ',false, original_id);tinyMCE.execCommand(' . "'mceAddControl'" . ',false, new_id);}jQuery(this).parent().css('."'visibility','hidden'".');jQuery(this).parent().prev().css('."'visibility','hidden'".'); return false;">' . __('Add New', 'custom-field-template') . '</a>';
1955
+ else :
1956
+ $addfield .= '<a href="#clear" onclick="var original_id, new_id; jQuery(this).parent().parent().parent().find('."'textarea'".').each(function(){original_id = jQuery(this).attr('."'id'".');});var clone = jQuery(this).parent().parent().parent().clone().insertAfter(jQuery(this).parent().parent().parent()); clone.find('."'textarea'".').val('."''".');if(original_id.match(/([0-9]+)$/)) {var matchval = RegExp.$1;re = new RegExp(matchval, '."'ig'".');clone.html(clone.html().replace(re, parseInt(matchval)+1)); new_id = original_id.replace(/([0-9]+)$/, parseInt(matchval)+1);}jQuery(this).parent().css('."'visibility','hidden'".');jQuery(this).parent().prev().css('."'visibility','hidden'".'); return false;">' . __('Add New', 'custom-field-template') . '</a>';
1957
+ endif;
1958
  $addfield .= '</div>';
1959
  endif;
1960
 
2046
  $title = '<a href="'.$image_upload_iframe_src.'&post_id='.$_REQUEST[ 'post' ].'&TB_iframe=1&tab='.$tab.'" class="thickbox">'.$title.'</a>';
2047
  endif;
2048
 
2049
+ $out .= '<p><label for="'.$name . $sid . '_' . $cftnum . '_delete"><input type="checkbox" name="'.$name . '_delete[' . $sid . '][' . $cftnum . ']" id="'.$name . $sid . '_' . $cftnum . '_delete" value="1" class="delete_file_checkbox" /> ' . __('Delete', 'custom-field-template') . '</label> <img src="'.$thumb_url.'" width="32" height="32" style="vertical-align:middle;" /> ' . $title . ' </p>';
2050
+ $out .= '<input type="hidden" id="' . $name . $sid . '_' . $cftnum . '_hide" name="'.$name . '[' . $sid . '][]" value="' . $value . '" />';
2051
  else :
2052
+ $out .= '<input type="hidden" id="' . $name . $sid . '_' . $cftnum . '_hide" name="'.$name . '[' . $sid . '][]" value="" />';
2053
  endif;
2054
 
2055
  $out .= '</dd></dl>'."\n";
2440
  '</style>';
2441
  list($body, $init_id) = $this->load_custom_field($init_id);
2442
 
2443
+ $out .= '<div id="cft_selectbox">';
2444
  $out .= $this->custom_field_template_selectbox();
2445
  $out .= '</div>';
2446
 
2686
 
2687
  foreach( $fields as $field_key => $field_val) :
2688
  foreach( $field_val as $title => $data) :
2689
+ //if ( is_numeric($data['parentSN']) ) $field_key = $data['parentSN'];
2690
  $name = $this->sanitize_name( $title );
2691
  $title = $wpdb->escape(stripcslashes(trim($title)));
2692
 
2693
+ foreach( $_REQUEST[$name] as $tmp_key => $tmp_val ) :
2694
+ $field_key = $tmp_key;
2695
+ break;
2696
+ endforeach;
2697
+
2698
  switch ( $data['type'] ) :
2699
  case 'fieldset_open' :
2700
  $save_value[$title][0] = count($_REQUEST[$name]);
2701
  break;
2702
  default :
2703
+
2704
+ $value = isset($_REQUEST[$name][$field_key][$data['cftnum']]) ? trim($_REQUEST[$name][$field_key][$data['cftnum']]) : '';
2705
 
2706
  if ( !empty($options['custom_field_template_use_wpautop']) && $data['type'] == 'textarea' && !empty($value) )
2707
  $value = wpautop($value);
2721
  $options['value_count'][$title][$value] = $this->set_value_count($title, $value, $id)+1;
2722
  endif;
2723
 
2724
+ if ( $data['type'] == 'textarea' && isset($_REQUEST['TinyMCE_' . $name . trim($_REQUEST[ $name."_rand" ][$i]) . '_size']) ) {
2725
  preg_match('/cw=[0-9]+&ch=([0-9]+)/', $_REQUEST['TinyMCE_' . $name . trim($_REQUEST[ $name."_rand" ][$i]) . '_size'], $matched);
2726
  $options['tinyMCE'][$id][$name][$i] = (int)($matched[1]/20);
2727
  }
2733
  if ( $data['type'] == 'checkbox' ) :
2734
  delete_post_meta($id, $title, $data['value']);
2735
  else :
2736
+ if ( isset($tmp_value[$data['cftnum']]) ) delete_post_meta($id, $title, $tmp_value[$data['cftnum']]);
2737
  endif;
2738
  endif;
2739
  endif;
2759
  unset($_FILES);
2760
  else :
2761
  if ( !get_post($value) && $value ) :
2762
+ if ( isset($data['blank']) && $data['blank'] == true ) :
2763
  $save_value[$title][] = '';
2764
  endif;
2765
  elseif ( $value ) :
2766
  $save_value[$title][] = $value;
2767
  else :
2768
+ if ( isset($data['blank']) && $data['blank'] == true ) :
2769
  $save_value[$title][] = '';
2770
  endif;
2771
  endif;
2775
  endforeach;
2776
  endforeach;
2777
 
2778
+ /*echo 'tmpfiles';
2779
+ print_r($tmpfiles);
2780
+ echo 'fields';
2781
  print_r($fields);
2782
+ echo '_REQUEST';
2783
  print_r($_REQUEST);
2784
+ echo 'save_value';
2785
  print_r($save_value);
2786
+ echo 'get_post_custom';
2787
  print_r(get_post_custom($id));
2788
  exit();*/
2789
 
2891
  if ( isset($data["valueLabel"]) ) $valueLabel = explode( '#', $data["valueLabel"] );
2892
  if ( isset($data["default"]) ) $defaults = explode( '#', $data["default"] );
2893
  endif;
2894
+
2895
+ if ( !empty($valueLabel) ) $valueLabels = $valueLabel;
2896
 
2897
+ if ( isset($defaults) && is_array($defaults) )
2898
  foreach($defaults as $dkey => $dval)
2899
  $defaults[$dkey] = trim($dval);
2900
 
2901
  $tmp = $key;
2902
  $i = 0;
2903
+ if ( isset($values) && is_array($values) ) :
2904
  foreach($values as $value) {
2905
  $count_key = count($returndata);
2906
  $Data[$Data_key][$title]["value"] = trim($value);
2907
  $Data[$Data_key][$title]["originalValue"] = $data["value"];
2908
  $Data[$Data_key][$title]['cftnum'] = $i;
2909
+ if ( isset($valueLabels[$i]) )
2910
+ $Data[$Data_key][$title]["valueLabel"] = trim($valueLabels[$i]);
2911
  if ( $tmp!=$key )
2912
  $Data[$Data_key][$title]["hideKey"] = true;
2913
+ if ( isset($defaults) && is_array($defaults) ) :
2914
  if ( in_array(trim($value), $defaults) )
2915
  $Data[$Data_key][$title]["checked"] = true;
2916
  else
2929
  if ( isset($_REQUEST[$this->sanitize_name($title)]) ) $fieldsetcounter = count($_REQUEST[$this->sanitize_name($title)])-1;
2930
  else if ( isset($_REQUEST['post']) ) $fieldsetcounter = $this->get_post_meta( $_REQUEST['post'], $title, true )-1;
2931
  else $fieldsetcounter = 0;
2932
+ if ( !empty($data['multiple']) ) : $fieldset_multiple = 1; endif;
2933
  endif;
2934
  if ( isset($fieldset) && is_array($fieldset) ) :
2935
  if ( empty($tmp_parentSN2[$title]) ) $tmp_parentSN2[$title] = $tmp_parentSN;
2948
  endif;
2949
  if ( !$org_counter ) $org_counter = 2;
2950
  if ( isset($data['startNum']) && is_numeric($data['startNum']) && $data['startNum']>$counter ) $counter = $data['startNum'];
2951
+ if ( isset($data['endNum']) && is_numeric($data['endNum']) && $data['endNum']<$counter ) $counter = $data['endNum'];
2952
  if ( $counter ) :
2953
  for($i=0;$i<$counter; $i++) :
2954
  $count_key = count($returndata);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wpgogo.com/development/custom-field-template.html
4
  Tags: custom, fields, field, template, meta, custom field, custom fields, custom field template
5
  Requires at least: 2.1
6
  Tested up to: 3.1.2
7
- Stable tag: 1.8.7
8
 
9
  This plugin adds the default custom fields on the Write Post/Page.
10
 
@@ -73,6 +73,7 @@ Localization
73
  * Italian (it_IT) - [Gianni Diurno](http://gidibao.net/)
74
  * Japanese (ja) - [Hiroaki Miyashita](http://wpgogo.com/)
75
  * Dutch (nl_NL) - [Rene](http://wordpresswebshop.com/)
 
76
  * Brazilian Portuguese (pt_BR) - [Caciano Gabriel](http://www.gn10.com.br/)
77
  * Russian (ru_RU) - [Sonika](http://www.sonika.ru/blog/)
78
  * Turkish (tr_TR) - [Omer Faruk](http://ramerta.com/)
@@ -104,6 +105,11 @@ See the default template and modify it.
104
 
105
  == Changelog ==
106
 
 
 
 
 
 
107
  = 1.8.7 =
108
  * before and after attributes for the radio and textarea types.
109
  * Bugfix: file type.
4
  Tags: custom, fields, field, template, meta, custom field, custom fields, custom field template
5
  Requires at least: 2.1
6
  Tested up to: 3.1.2
7
+ Stable tag: 1.8.8
8
 
9
  This plugin adds the default custom fields on the Write Post/Page.
10
 
73
  * Italian (it_IT) - [Gianni Diurno](http://gidibao.net/)
74
  * Japanese (ja) - [Hiroaki Miyashita](http://wpgogo.com/)
75
  * Dutch (nl_NL) - [Rene](http://wordpresswebshop.com/)
76
+ * Polish (pl_PL) - [Difreo](http://www.difreo.pl/)
77
  * Brazilian Portuguese (pt_BR) - [Caciano Gabriel](http://www.gn10.com.br/)
78
  * Russian (ru_RU) - [Sonika](http://www.sonika.ru/blog/)
79
  * Turkish (tr_TR) - [Omer Faruk](http://ramerta.com/)
105
 
106
  == Changelog ==
107
 
108
+ = 1.8.8 =
109
+ * Polish (pl_PL) - Difreo
110
+ * Bugfix: saving multiple fields.
111
+ * Bugfix: inconsistency of `valueLabel` and `valueLabels`.
112
+
113
  = 1.8.7 =
114
  * before and after attributes for the radio and textarea types.
115
  * Bugfix: file type.