Custom Field Template - Version 2.0.5

Version Description

  • Template Format for the edit screen. [key] will be converted to the input field. [[key]] is for the default key output. The fieldset type has not been supported yet.
  • wrap attribute for the textarea type.
  • Code cleaning.
Download this release

Release Info

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

Code changes from version 2.0.4 to 2.0.5

custom-field-template-it_IT.mo CHANGED
Binary file
custom-field-template-it_IT.po CHANGED
@@ -2,10 +2,10 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Custom Field Template in italiano\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2011-04-13 19:32+0100\n"
6
- "PO-Revision-Date: 2011-04-13 19:43+0100\n"
7
  "Last-Translator: Gianni Diurno (aka gidibao) <gidibao[at]gmail[dot]com>\n"
8
- "Language-Team: Gianni Diurno | gidibao.net\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -16,506 +16,538 @@ msgstr ""
16
  "X-Poedit-Basepath: ../\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
 
19
- #: custom-field-template/custom-field-template.php:151
20
- #: custom-field-template/custom-field-template.php:152
21
- #: custom-field-template/custom-field-template.php:174
22
- #: custom-field-template/custom-field-template.php:648
23
- #: custom-field-template/custom-field-template.php:925
24
- #: custom-field-template/custom-field-template.php:2239
25
- #: custom-field-template/custom-field-template.php:2387
 
26
  msgid "Custom Field Template"
27
  msgstr "Custom Field Template"
28
 
29
- #: custom-field-template/custom-field-template.php:190
30
  msgid "Media Picker"
31
  msgstr "Media Picker"
32
 
33
- #: custom-field-template/custom-field-template.php:192
34
  msgid "Use this"
35
  msgstr "Utilizza"
36
 
37
- #: custom-field-template/custom-field-template.php:294
38
- #: custom-field-template/custom-field-template.php:2594
39
  msgid "Load"
40
  msgstr "Carica"
41
 
42
- #: custom-field-template/custom-field-template.php:470
43
  msgid "read more"
44
  msgstr "prosegui"
45
 
46
- #: custom-field-template/custom-field-template.php:488
47
- #: custom-field-template/custom-field-template.php:498
48
  msgid "Custom Fields"
49
  msgstr "Campi personalizzati"
50
 
51
- #: custom-field-template/custom-field-template.php:530
52
  msgid "Settings"
53
  msgstr "Impostazioni"
54
 
55
- #: custom-field-template/custom-field-template.php:568
56
  msgid "Default Template"
57
  msgstr "Template predefinito"
58
 
59
- #: custom-field-template/custom-field-template.php:782
60
  msgid "You can not use the following words as the field key: `content`, `post_title`, and `excerpt`, and `action`."
61
  msgstr "Non potrai utilizzare come chiave le seguenti parole: `content`, `post_title` ed `excerpt`, ed `action`."
62
 
63
- #: custom-field-template/custom-field-template.php:797
64
- #: custom-field-template/custom-field-template.php:821
65
- #: custom-field-template/custom-field-template.php:825
66
- #: custom-field-template/custom-field-template.php:837
67
- #: custom-field-template/custom-field-template.php:845
68
- #: custom-field-template/custom-field-template.php:862
69
  msgid "Options updated."
70
  msgstr "Le opzioni sono state aggiornate."
71
 
72
- #: custom-field-template/custom-field-template.php:866
73
  msgid "Value Counts rebuilt."
74
  msgstr "Value Counts rigenerati. "
75
 
76
- #: custom-field-template/custom-field-template.php:869
77
  msgid "Tags rebuilt."
78
  msgstr "Rigenera i tag."
79
 
80
- #: custom-field-template/custom-field-template.php:878
81
  msgid "Options imported."
82
  msgstr "Le opzioni sono state importate."
83
 
84
- #: custom-field-template/custom-field-template.php:885
85
  msgid "Options resetted."
86
  msgstr "Le opzioni sono state ripristinate."
87
 
88
- #: custom-field-template/custom-field-template.php:889
89
  msgid "Options deleted."
90
  msgstr "Le opzioni sini state cancellate:"
91
 
92
- #: custom-field-template/custom-field-template.php:931
93
- #: custom-field-template/custom-field-template.php:977
94
- #: custom-field-template/custom-field-template.php:1083
95
- #: custom-field-template/custom-field-template.php:1102
96
  #: custom-field-template/custom-field-template.php:1133
97
- #: custom-field-template/custom-field-template.php:1166
98
- #: custom-field-template/custom-field-template.php:1209
99
- #: custom-field-template/custom-field-template.php:1230
100
- #: custom-field-template/custom-field-template.php:1247
101
- #: custom-field-template/custom-field-template.php:1418
102
- #: custom-field-template/custom-field-template.php:1434
103
- #: custom-field-template/custom-field-template.php:1450
104
- #: custom-field-template/custom-field-template.php:1466
105
- #: custom-field-template/custom-field-template.php:1482
 
 
 
 
 
106
  msgid "Click to toggle"
107
  msgstr "Clicca per commutare"
108
 
109
- #: custom-field-template/custom-field-template.php:932
110
  msgid "Custom Field Template Options"
111
  msgstr "Opzioni template campi personalizzati"
112
 
113
- #: custom-field-template/custom-field-template.php:942
114
- #: custom-field-template/custom-field-template.php:2441
115
- #: custom-field-template/custom-field-template.php:2442
116
  msgid "Disable"
117
  msgstr "Disabilita"
118
 
119
- #: custom-field-template/custom-field-template.php:944
120
  msgid "Template Title"
121
  msgstr "Nome del template"
122
 
123
- #: custom-field-template/custom-field-template.php:946
124
  msgid "Template Instruction"
125
  msgstr "Allestimento template"
126
 
127
- #: custom-field-template/custom-field-template.php:948
128
- #: custom-field-template/custom-field-template.php:1184
129
  msgid "Post Type"
130
  msgstr "Tipo di pubblicazione"
131
 
132
- #: custom-field-template/custom-field-template.php:950
133
- #: custom-field-template/custom-field-template.php:1185
134
  msgid "Both"
135
- msgstr "Entrambe"
136
 
137
- #: custom-field-template/custom-field-template.php:951
138
- #: custom-field-template/custom-field-template.php:1186
139
  msgid "Post"
140
- msgstr "Articolo"
141
 
142
- #: custom-field-template/custom-field-template.php:952
143
- #: custom-field-template/custom-field-template.php:1187
144
  msgid "Page"
145
  msgstr "Pagina"
146
 
147
- #: custom-field-template/custom-field-template.php:953
148
- #: custom-field-template/custom-field-template.php:1188
149
  msgid "Custom Post Type (comma-deliminated)"
150
  msgstr "Tipo pubblicazione personalizzata (separa con una virgola)"
151
 
152
- #: custom-field-template/custom-field-template.php:955
153
  msgid "Post ID (comma-deliminated)"
154
  msgstr "ID articolo (separa con una virgola)"
155
 
156
- #: custom-field-template/custom-field-template.php:957
157
- #: custom-field-template/custom-field-template.php:1190
158
  msgid "Category ID (comma-deliminated)"
159
  msgstr "ID categoria (separa con una virgola)"
160
 
161
- #: custom-field-template/custom-field-template.php:959
162
  msgid "Page Template file name(s) (comma-deliminated)"
163
  msgstr "Nome/i file template pagina (separa con una virgola)"
164
 
165
- #: custom-field-template/custom-field-template.php:961
166
  msgid "Template Content"
167
  msgstr "Contenuti template"
168
 
169
- #: custom-field-template/custom-field-template.php:968
170
- #: custom-field-template/custom-field-template.php:1074
171
- #: custom-field-template/custom-field-template.php:1093
172
- #: custom-field-template/custom-field-template.php:1124
173
- #: custom-field-template/custom-field-template.php:1157
174
- #: custom-field-template/custom-field-template.php:1200
175
  msgid "Update Options &raquo;"
176
  msgstr "Aggiorna le opzioni &raquo;"
177
 
178
- #: custom-field-template/custom-field-template.php:978
179
  msgid "Global Settings"
180
  msgstr "Impostazioni generali"
181
 
182
- #: custom-field-template/custom-field-template.php:993
183
  msgid "In case that you would like to replace custom keys by labels if `label` is set"
184
  msgstr "Nel caso in cui desiderassi sostituire le chiavi personalizzate con le etichette qualora fosse stato impostato `label`"
185
 
186
- #: custom-field-template/custom-field-template.php:994
187
  msgid "Use labels in place of custom keys"
188
  msgstr "Utilizza le etichette al posto delle chiavi personalizzate"
189
 
190
- #: custom-field-template/custom-field-template.php:997
191
  msgid "In case that you would like to add p and br tags in textareas automatically"
192
  msgstr "Nel caso in cui desiderassi aggiungere automaticamente i tag p e br nell'area di testo"
193
 
194
- #: custom-field-template/custom-field-template.php:998
195
  msgid "Use wpautop function"
196
  msgstr "Usa funzione wpautop"
197
 
198
- #: custom-field-template/custom-field-template.php:1002
199
  msgid "In case that you would like to save values automatically in switching templates"
200
  msgstr "Nel caso in cui desiderassi salvare automaticamente i valori durante il cambio dei template"
201
 
202
- #: custom-field-template/custom-field-template.php:1003
203
  msgid "Use the auto save in switching templates"
204
  msgstr "Salva in automatico al cambio dei template"
205
 
206
- #: custom-field-template/custom-field-template.php:1007
207
  msgid "In case that you would like to disable input fields of the custom field template temporarily"
208
  msgstr "Nel caso in cui desiderassi disabilitare temporaneamente i campi input del template campi personalizzati"
209
 
210
- #: custom-field-template/custom-field-template.php:1008
211
  msgid "Use the `Disable` button. The default custom fields will be superseded."
212
  msgstr "Utilizza il pulsante `Disabilita` per rimpiazzare i campi personalizzati predefiniti."
213
 
214
- #: custom-field-template/custom-field-template.php:1012
215
  msgid "In case that you would like to forbid to use the initialize button."
216
  msgstr "Nel caso in cui desiderassi impedire l'utilizzo del pulsante di inizializzazione"
217
 
218
- #: custom-field-template/custom-field-template.php:1013
219
  msgid "Disable the initialize button"
220
  msgstr "Disattiva il pulsante di inizializzazione"
221
 
222
- #: custom-field-template/custom-field-template.php:1017
223
  msgid "In case that you would like to forbid to use the save button."
224
  msgstr "Nel caso in cui desiderassi impedire l'utilizzo dell'editor veloce"
225
 
226
- #: custom-field-template/custom-field-template.php:1018
227
  msgid "Disable the save button"
228
  msgstr "Disattiva il pulsante di salvataggio"
229
 
230
- #: custom-field-template/custom-field-template.php:1022
231
  msgid "In case that you would like to forbid to use the default custom fields."
232
  msgstr "Nel caso in cui desiderassi impedire l'utilizzo dei campi personalizzati predefiniti"
233
 
234
- #: custom-field-template/custom-field-template.php:1023
235
  msgid "Disable the default custom fields"
236
  msgstr "Disattiva i campi personalizzati predefiniti"
237
 
238
- #: custom-field-template/custom-field-template.php:1027
239
  msgid "In case that you would like to forbid to use the quick edit."
240
  msgstr "Nel caso in cui desiderassi impedire l'utilizzo dell'editor veloce"
241
 
242
- #: custom-field-template/custom-field-template.php:1028
243
  msgid "Disable the quick edit"
244
  msgstr "Disattiva l'editor veloce"
245
 
246
- #: custom-field-template/custom-field-template.php:1032
247
  msgid "In case that you would like to forbid to display the custom field column on the edit post list page."
248
  msgstr "Nel caso in cui desiderassi impedire la visualizzazione della colonna per i campi personalizzati nella pagina per la modifica degli articoli."
249
 
250
- #: custom-field-template/custom-field-template.php:1033
251
  msgid "Disable the custom field column (The quick edit also does not work.)"
252
  msgstr "Disattiva la colonna per i campi personalizzati (la modifica rapida non funziona)"
253
 
254
- #: custom-field-template/custom-field-template.php:1037
255
  msgid "In case that you would like to replace the box title with the template title."
256
  msgstr "Nel caso in cui desiderassi sostituire il titolo della casella con il titolo del template"
257
 
258
- #: custom-field-template/custom-field-template.php:1038
259
  msgid "Replace the box title"
260
  msgstr "Sostituisci il titolo della casella"
261
 
262
- #: custom-field-template/custom-field-template.php:1042
 
 
 
 
 
 
 
 
263
  msgid "In case that you would like to use the shortcode in the widget."
264
  msgstr "Nel caso in cui desiderassi utilizzare lo shortcode nel widget"
265
 
266
- #: custom-field-template/custom-field-template.php:1043
267
  msgid "Use the shortcode in the widget"
268
  msgstr "Utilizza lo shortcode nel widget"
269
 
270
- #: custom-field-template/custom-field-template.php:1047
271
  msgid "In case that you would like to use the shortcode in the excerpt."
272
  msgstr "Nel caso in cui desiderassi utilizzare lo shortcode negli estratti"
273
 
274
- #: custom-field-template/custom-field-template.php:1048
275
  msgid "Use the shortcode in the excerpt"
276
  msgstr "Usa lo shortcode negli estratti"
277
 
278
- #: custom-field-template/custom-field-template.php:1052
279
  msgid "In case that you would like to use the jQuery validation."
280
  msgstr "Nel caso in cui desiderassi utilizzare la convalida jQuery"
281
 
282
- #: custom-field-template/custom-field-template.php:1053
283
  msgid "Use the jQuery validation"
284
  msgstr "Usa convalida jQuery"
285
 
286
- #: custom-field-template/custom-field-template.php:1063
287
  msgid "Text to place before every list which is called by the cft shortcode"
288
  msgstr "Testo che verrà posto davanti ad ogni lista richiamata dallo shortcode di cft"
289
 
290
- #: custom-field-template/custom-field-template.php:1065
291
  msgid "Text to place after every list which is called by the cft shortcode"
292
  msgstr "Testo che verrà posto dopo ogni lista richiamata dallo shortcode di cft"
293
 
294
- #: custom-field-template/custom-field-template.php:1067
295
  msgid "Text to place before every value which is called by the cft shortcode"
296
  msgstr "Testo che verrà posto davanti ad ogni valore richiamato dallo shortcode di cft"
297
 
298
- #: custom-field-template/custom-field-template.php:1069
299
  msgid "Text to place after every value which is called by the cft shortcode"
300
  msgstr "Testo che verrà posto dopo ogni valore richiamato dallo shortcode di cft"
301
 
302
- #: custom-field-template/custom-field-template.php:1084
 
 
 
 
 
 
 
 
303
  msgid "ADMIN CSS"
304
  msgstr "CSS AMMINISTRAZIONE"
305
 
306
- #: custom-field-template/custom-field-template.php:1103
307
  msgid "[cft] and [cftsearch] Shortcode Format"
308
  msgstr "Formato Shortcode [cft] e [cftsearch]"
309
 
310
- #: custom-field-template/custom-field-template.php:1106
311
  msgid "For [cft], [key] will be converted into the value of [key]."
312
  msgstr "[key] verrà convertito nel valore di [key]."
313
 
314
- #: custom-field-template/custom-field-template.php:1107
315
  msgid "For [cftsearch], [key] will be converted into the input field."
316
  msgstr "[cftsearch], [key] verrà convertito nell'input del campo."
317
 
318
- #: custom-field-template/custom-field-template.php:1118
319
- #: custom-field-template/custom-field-template.php:1193
320
  msgid "Use PHP"
321
  msgstr "Usa PHP"
322
 
323
- #: custom-field-template/custom-field-template.php:1134
324
  msgid "PHP CODE (Experimental Option)"
325
  msgstr "CODICE PHP (opzione sperimentale)"
326
 
327
- #: custom-field-template/custom-field-template.php:1136
328
  msgid "Are you sure to save PHP codes? Please do it at your own risk."
329
  msgstr "Sei certo di volere salvare dei codici PHP? Se sì, fallo a tuo rischio."
330
 
331
- #: custom-field-template/custom-field-template.php:1137
332
  msgid "For `text` and `textarea`, you must set $value as an string."
333
  msgstr "`text` e `textarea`, dovrai impostare come stringa $value."
334
 
335
- #: custom-field-template/custom-field-template.php:1139
336
  msgid "For `checkbox`, `radio`, and `select`, you must set $values as an array."
337
  msgstr "`checkbox`, `radio`, e `select`, dovrai impostare come array $values."
338
 
339
- #: custom-field-template/custom-field-template.php:1167
340
  msgid "Auto Hook of `the_content()` (Experimental Option)"
341
  msgstr "Hook automatico di `the_content()` (opzione sperimentale)"
342
 
343
- #: custom-field-template/custom-field-template.php:1179
344
  msgid "Position"
345
  msgstr "Posizione"
346
 
347
- #: custom-field-template/custom-field-template.php:1180
348
  msgid "Before the content"
349
- msgstr "Davanti ai contenuti"
350
 
351
- #: custom-field-template/custom-field-template.php:1181
352
  msgid "After the content"
353
- msgstr "A seguire i contenuti"
354
 
355
- #: custom-field-template/custom-field-template.php:1182
356
  #, php-format
357
  msgid "Inside the content ([cfthook hook=%d])"
358
  msgstr "Dentro il contenuto ([cfthook hook=%d])"
359
 
360
- #: custom-field-template/custom-field-template.php:1192
361
  msgid "Content"
362
  msgstr "Contenuti"
363
 
364
- #: custom-field-template/custom-field-template.php:1194
365
  msgid "Apply to feeds"
366
  msgstr "Applica ai feed"
367
 
368
- #: custom-field-template/custom-field-template.php:1210
369
  msgid "Rebuild Value Counts"
370
  msgstr "Rigenera Value Counts"
371
 
372
- #: custom-field-template/custom-field-template.php:1212
373
  msgid "Are you sure to rebuild all value counts?"
374
  msgstr "Sei certo di volere rigenerare tutti i value counts?"
375
 
376
- #: custom-field-template/custom-field-template.php:1216
377
  msgid "Value Counts are used for temporarily saving how many values in each key. Set `valueCount = true` into fields."
378
  msgstr "I Value Counts sono utilizzati per il salvataggio temporaneo dei valori per ogni chiave. Imposta dentro ai campi `valueCount = true`."
379
 
380
- #: custom-field-template/custom-field-template.php:1220
381
  msgid "Rebuild Value Counts &raquo;"
382
  msgstr "Rigenera Value Counts &raquo;"
383
 
384
- #: custom-field-template/custom-field-template.php:1231
385
  msgid "Rebuild Tags"
386
  msgstr "Rigenera i tag"
387
 
388
- #: custom-field-template/custom-field-template.php:1233
389
  msgid "Are you sure to rebuild tags?"
390
  msgstr "Sei certo di volere rigenerare i tag?"
391
 
392
- #: custom-field-template/custom-field-template.php:1237
393
  msgid "Rebuild Tags &raquo;"
394
  msgstr "Rigenera tag &raquo;"
395
 
396
- #: custom-field-template/custom-field-template.php:1248
397
  msgid "Option List"
398
  msgstr "Lista opzione"
399
 
400
- #: custom-field-template/custom-field-template.php:1419
401
  msgid "Export Options"
402
  msgstr "Esporta le opzioni"
403
 
404
- #: custom-field-template/custom-field-template.php:1425
405
  msgid "Export Options &raquo;"
406
  msgstr "Esporta le opzioni &raquo;"
407
 
408
- #: custom-field-template/custom-field-template.php:1435
409
  msgid "Import Options"
410
  msgstr "Importa le opzioni"
411
 
412
- #: custom-field-template/custom-field-template.php:1437
413
  msgid "Are you sure to import options? Options you set will be overwritten."
414
  msgstr "Sei certo di volere cancellare le opzioni? Le opzioni personalizzate in precedenza verranno cancellate."
415
 
416
- #: custom-field-template/custom-field-template.php:1441
417
  msgid "Import Options &raquo;"
418
  msgstr "Importa le opzioni &raquo;"
419
 
420
- #: custom-field-template/custom-field-template.php:1451
421
  msgid "Reset Options"
422
  msgstr "Ripristina le opzioni"
423
 
424
- #: custom-field-template/custom-field-template.php:1453
425
  msgid "Are you sure to reset options? Options you set will be reset to the default settings."
426
  msgstr "Sei certo di volere ripristinare le opzioni? Le opzioni personalizzate verranno ripristinate alle predefinite."
427
 
428
- #: custom-field-template/custom-field-template.php:1457
429
  msgid "Reset Options &raquo;"
430
  msgstr "Ripristina le opzioni &raquo;"
431
 
432
- #: custom-field-template/custom-field-template.php:1467
433
  msgid "Delete Options"
434
  msgstr "Cancella le opzioni"
435
 
436
- #: custom-field-template/custom-field-template.php:1469
437
  msgid "Are you sure to delete options? Options you set will be deleted."
438
  msgstr "Sei certo di volere cancellare le opzioni? Le opzioni personalizzate verranno cancellate."
439
 
440
- #: custom-field-template/custom-field-template.php:1473
441
  msgid "Delete Options &raquo;"
442
  msgstr "Cancella le opzioni &raquo;"
443
 
444
- #: custom-field-template/custom-field-template.php:1483
445
  msgid "Donation"
446
  msgstr "Fai una donazione"
447
 
448
- #: custom-field-template/custom-field-template.php:1485
449
  msgid "If you liked this plugin, please make a donation via paypal! Any amount is welcome. Your support is much appreciated."
450
  msgstr "Qualora avesi gradito questo plugin, effettua una donazione via paypal! Grazie."
451
 
452
- #: custom-field-template/custom-field-template.php:1588
 
 
 
453
  #: custom-field-template/custom-field-template.php:1719
454
- #: custom-field-template/custom-field-template.php:1803
455
- #: custom-field-template/custom-field-template.php:1944
456
- #: custom-field-template/custom-field-template.php:2000
457
- #: custom-field-template/custom-field-template.php:2172
 
 
 
 
 
 
 
 
 
 
458
  msgid "Add New"
459
  msgstr "Aggiungi nuovo"
460
 
461
- #: custom-field-template/custom-field-template.php:1729
462
  msgid "Clear"
463
  msgstr "Pulisci"
464
 
465
- #: custom-field-template/custom-field-template.php:1819
466
  msgid "Select"
467
  msgstr "Seleziona"
468
 
469
- #: custom-field-template/custom-field-template.php:1895
470
  msgid "Add an Image"
471
  msgstr "Aggiungi immagine"
472
 
473
- #: custom-field-template/custom-field-template.php:1900
474
  msgid "Add Video"
475
  msgstr "Aggiungi video"
476
 
477
- #: custom-field-template/custom-field-template.php:1905
478
  msgid "Add Audio"
479
  msgstr "Aggiungi audio"
480
 
481
- #: custom-field-template/custom-field-template.php:1909
 
482
  msgid "Add Media"
483
  msgstr "Aggiungi media"
484
 
485
- #: custom-field-template/custom-field-template.php:1916
486
  msgid "Toggle"
487
  msgstr "Commuta"
488
 
489
- #: custom-field-template/custom-field-template.php:2010
490
  msgid " OR "
491
  msgstr " O"
492
 
493
- #: custom-field-template/custom-field-template.php:2011
494
  msgid "Select by Media Picker"
495
  msgstr "Seleziona via Media Picker"
496
 
497
- #: custom-field-template/custom-field-template.php:2034
498
- #: custom-field-template/custom-field-template.php:2174
499
  msgid "Delete"
500
  msgstr "Cancella"
501
 
502
- #: custom-field-template/custom-field-template.php:2442
503
  msgid "Enable"
504
  msgstr "Abilita"
505
 
506
- #: custom-field-template/custom-field-template.php:2446
507
  msgid "Initialize"
508
  msgstr "Inizializza"
509
 
510
- #: custom-field-template/custom-field-template.php:2447
511
  msgid "Are you sure to reset current values? Default values will be loaded."
512
  msgstr "Sei certo di volere ripristinare le impostazioni? Verranno ricaricate le predefinite."
513
 
514
- #: custom-field-template/custom-field-template.php:2452
515
  msgid "Save"
516
  msgstr "Salva"
517
 
518
- #: custom-field-template/custom-field-template.php:3141
519
  msgid "Search &raquo;"
520
  msgstr "Cerca &raquo;"
521
 
2
  msgstr ""
3
  "Project-Id-Version: Custom Field Template in italiano\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-07-30 15:44+0100\n"
6
+ "PO-Revision-Date: 2012-07-30 19:13+0100\n"
7
  "Last-Translator: Gianni Diurno (aka gidibao) <gidibao[at]gmail[dot]com>\n"
8
+ "Language-Team: Gianni Diurno | gidibao.net & charmingpress.com\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
16
  "X-Poedit-Basepath: ../\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
 
19
+ #: custom-field-template/custom-field-template.php:167
20
+ #: custom-field-template/custom-field-template.php:190
21
+ #: custom-field-template/custom-field-template.php:191
22
+ #: custom-field-template/custom-field-template.php:209
23
+ #: custom-field-template/custom-field-template.php:843
24
+ #: custom-field-template/custom-field-template.php:1126
25
+ #: custom-field-template/custom-field-template.php:2558
26
+ #: custom-field-template/custom-field-template.php:2650
27
  msgid "Custom Field Template"
28
  msgstr "Custom Field Template"
29
 
30
+ #: custom-field-template/custom-field-template.php:225
31
  msgid "Media Picker"
32
  msgstr "Media Picker"
33
 
34
+ #: custom-field-template/custom-field-template.php:227
35
  msgid "Use this"
36
  msgstr "Utilizza"
37
 
38
+ #: custom-field-template/custom-field-template.php:329
39
+ #: custom-field-template/custom-field-template.php:2859
40
  msgid "Load"
41
  msgstr "Carica"
42
 
43
+ #: custom-field-template/custom-field-template.php:662
44
  msgid "read more"
45
  msgstr "prosegui"
46
 
47
+ #: custom-field-template/custom-field-template.php:680
48
+ #: custom-field-template/custom-field-template.php:690
49
  msgid "Custom Fields"
50
  msgstr "Campi personalizzati"
51
 
52
+ #: custom-field-template/custom-field-template.php:722
53
  msgid "Settings"
54
  msgstr "Impostazioni"
55
 
56
+ #: custom-field-template/custom-field-template.php:762
57
  msgid "Default Template"
58
  msgstr "Template predefinito"
59
 
60
+ #: custom-field-template/custom-field-template.php:977
61
  msgid "You can not use the following words as the field key: `content`, `post_title`, and `excerpt`, and `action`."
62
  msgstr "Non potrai utilizzare come chiave le seguenti parole: `content`, `post_title` ed `excerpt`, ed `action`."
63
 
64
+ #: custom-field-template/custom-field-template.php:992
65
+ #: custom-field-template/custom-field-template.php:1022
66
+ #: custom-field-template/custom-field-template.php:1026
67
+ #: custom-field-template/custom-field-template.php:1038
68
+ #: custom-field-template/custom-field-template.php:1046
69
+ #: custom-field-template/custom-field-template.php:1063
70
  msgid "Options updated."
71
  msgstr "Le opzioni sono state aggiornate."
72
 
73
+ #: custom-field-template/custom-field-template.php:1067
74
  msgid "Value Counts rebuilt."
75
  msgstr "Value Counts rigenerati. "
76
 
77
+ #: custom-field-template/custom-field-template.php:1070
78
  msgid "Tags rebuilt."
79
  msgstr "Rigenera i tag."
80
 
81
+ #: custom-field-template/custom-field-template.php:1079
82
  msgid "Options imported."
83
  msgstr "Le opzioni sono state importate."
84
 
85
+ #: custom-field-template/custom-field-template.php:1086
86
  msgid "Options resetted."
87
  msgstr "Le opzioni sono state ripristinate."
88
 
89
+ #: custom-field-template/custom-field-template.php:1090
90
  msgid "Options deleted."
91
  msgstr "Le opzioni sini state cancellate:"
92
 
 
 
 
 
93
  #: custom-field-template/custom-field-template.php:1133
94
+ #: custom-field-template/custom-field-template.php:1179
95
+ #: custom-field-template/custom-field-template.php:1295
96
+ #: custom-field-template/custom-field-template.php:1314
97
+ #: custom-field-template/custom-field-template.php:1345
98
+ #: custom-field-template/custom-field-template.php:1378
99
+ #: custom-field-template/custom-field-template.php:1421
100
+ #: custom-field-template/custom-field-template.php:1442
101
+ #: custom-field-template/custom-field-template.php:1459
102
+ #: custom-field-template/custom-field-template.php:1633
103
+ #: custom-field-template/custom-field-template.php:1649
104
+ #: custom-field-template/custom-field-template.php:1665
105
+ #: custom-field-template/custom-field-template.php:1681
106
+ #: custom-field-template/custom-field-template.php:1700
107
+ #: custom-field-template/custom-field-template.php:1716
108
  msgid "Click to toggle"
109
  msgstr "Clicca per commutare"
110
 
111
+ #: custom-field-template/custom-field-template.php:1134
112
  msgid "Custom Field Template Options"
113
  msgstr "Opzioni template campi personalizzati"
114
 
115
+ #: custom-field-template/custom-field-template.php:1144
116
+ #: custom-field-template/custom-field-template.php:2700
117
+ #: custom-field-template/custom-field-template.php:2701
118
  msgid "Disable"
119
  msgstr "Disabilita"
120
 
121
+ #: custom-field-template/custom-field-template.php:1146
122
  msgid "Template Title"
123
  msgstr "Nome del template"
124
 
125
+ #: custom-field-template/custom-field-template.php:1148
126
  msgid "Template Instruction"
127
  msgstr "Allestimento template"
128
 
129
+ #: custom-field-template/custom-field-template.php:1150
130
+ #: custom-field-template/custom-field-template.php:1396
131
  msgid "Post Type"
132
  msgstr "Tipo di pubblicazione"
133
 
134
+ #: custom-field-template/custom-field-template.php:1152
135
+ #: custom-field-template/custom-field-template.php:1397
136
  msgid "Both"
137
+ msgstr "Entrambe "
138
 
139
+ #: custom-field-template/custom-field-template.php:1153
140
+ #: custom-field-template/custom-field-template.php:1398
141
  msgid "Post"
142
+ msgstr "Articolo "
143
 
144
+ #: custom-field-template/custom-field-template.php:1154
145
+ #: custom-field-template/custom-field-template.php:1399
146
  msgid "Page"
147
  msgstr "Pagina"
148
 
149
+ #: custom-field-template/custom-field-template.php:1155
150
+ #: custom-field-template/custom-field-template.php:1400
151
  msgid "Custom Post Type (comma-deliminated)"
152
  msgstr "Tipo pubblicazione personalizzata (separa con una virgola)"
153
 
154
+ #: custom-field-template/custom-field-template.php:1157
155
  msgid "Post ID (comma-deliminated)"
156
  msgstr "ID articolo (separa con una virgola)"
157
 
158
+ #: custom-field-template/custom-field-template.php:1159
159
+ #: custom-field-template/custom-field-template.php:1402
160
  msgid "Category ID (comma-deliminated)"
161
  msgstr "ID categoria (separa con una virgola)"
162
 
163
+ #: custom-field-template/custom-field-template.php:1161
164
  msgid "Page Template file name(s) (comma-deliminated)"
165
  msgstr "Nome/i file template pagina (separa con una virgola)"
166
 
167
+ #: custom-field-template/custom-field-template.php:1163
168
  msgid "Template Content"
169
  msgstr "Contenuti template"
170
 
171
+ #: custom-field-template/custom-field-template.php:1170
172
+ #: custom-field-template/custom-field-template.php:1286
173
+ #: custom-field-template/custom-field-template.php:1305
174
+ #: custom-field-template/custom-field-template.php:1336
175
+ #: custom-field-template/custom-field-template.php:1369
176
+ #: custom-field-template/custom-field-template.php:1412
177
  msgid "Update Options &raquo;"
178
  msgstr "Aggiorna le opzioni &raquo;"
179
 
180
+ #: custom-field-template/custom-field-template.php:1180
181
  msgid "Global Settings"
182
  msgstr "Impostazioni generali"
183
 
184
+ #: custom-field-template/custom-field-template.php:1195
185
  msgid "In case that you would like to replace custom keys by labels if `label` is set"
186
  msgstr "Nel caso in cui desiderassi sostituire le chiavi personalizzate con le etichette qualora fosse stato impostato `label`"
187
 
188
+ #: custom-field-template/custom-field-template.php:1196
189
  msgid "Use labels in place of custom keys"
190
  msgstr "Utilizza le etichette al posto delle chiavi personalizzate"
191
 
192
+ #: custom-field-template/custom-field-template.php:1199
193
  msgid "In case that you would like to add p and br tags in textareas automatically"
194
  msgstr "Nel caso in cui desiderassi aggiungere automaticamente i tag p e br nell'area di testo"
195
 
196
+ #: custom-field-template/custom-field-template.php:1200
197
  msgid "Use wpautop function"
198
  msgstr "Usa funzione wpautop"
199
 
200
+ #: custom-field-template/custom-field-template.php:1204
201
  msgid "In case that you would like to save values automatically in switching templates"
202
  msgstr "Nel caso in cui desiderassi salvare automaticamente i valori durante il cambio dei template"
203
 
204
+ #: custom-field-template/custom-field-template.php:1205
205
  msgid "Use the auto save in switching templates"
206
  msgstr "Salva in automatico al cambio dei template"
207
 
208
+ #: custom-field-template/custom-field-template.php:1209
209
  msgid "In case that you would like to disable input fields of the custom field template temporarily"
210
  msgstr "Nel caso in cui desiderassi disabilitare temporaneamente i campi input del template campi personalizzati"
211
 
212
+ #: custom-field-template/custom-field-template.php:1210
213
  msgid "Use the `Disable` button. The default custom fields will be superseded."
214
  msgstr "Utilizza il pulsante `Disabilita` per rimpiazzare i campi personalizzati predefiniti."
215
 
216
+ #: custom-field-template/custom-field-template.php:1214
217
  msgid "In case that you would like to forbid to use the initialize button."
218
  msgstr "Nel caso in cui desiderassi impedire l'utilizzo del pulsante di inizializzazione"
219
 
220
+ #: custom-field-template/custom-field-template.php:1215
221
  msgid "Disable the initialize button"
222
  msgstr "Disattiva il pulsante di inizializzazione"
223
 
224
+ #: custom-field-template/custom-field-template.php:1219
225
  msgid "In case that you would like to forbid to use the save button."
226
  msgstr "Nel caso in cui desiderassi impedire l'utilizzo dell'editor veloce"
227
 
228
+ #: custom-field-template/custom-field-template.php:1220
229
  msgid "Disable the save button"
230
  msgstr "Disattiva il pulsante di salvataggio"
231
 
232
+ #: custom-field-template/custom-field-template.php:1224
233
  msgid "In case that you would like to forbid to use the default custom fields."
234
  msgstr "Nel caso in cui desiderassi impedire l'utilizzo dei campi personalizzati predefiniti"
235
 
236
+ #: custom-field-template/custom-field-template.php:1225
237
  msgid "Disable the default custom fields"
238
  msgstr "Disattiva i campi personalizzati predefiniti"
239
 
240
+ #: custom-field-template/custom-field-template.php:1229
241
  msgid "In case that you would like to forbid to use the quick edit."
242
  msgstr "Nel caso in cui desiderassi impedire l'utilizzo dell'editor veloce"
243
 
244
+ #: custom-field-template/custom-field-template.php:1230
245
  msgid "Disable the quick edit"
246
  msgstr "Disattiva l'editor veloce"
247
 
248
+ #: custom-field-template/custom-field-template.php:1234
249
  msgid "In case that you would like to forbid to display the custom field column on the edit post list page."
250
  msgstr "Nel caso in cui desiderassi impedire la visualizzazione della colonna per i campi personalizzati nella pagina per la modifica degli articoli."
251
 
252
+ #: custom-field-template/custom-field-template.php:1235
253
  msgid "Disable the custom field column (The quick edit also does not work.)"
254
  msgstr "Disattiva la colonna per i campi personalizzati (la modifica rapida non funziona)"
255
 
256
+ #: custom-field-template/custom-field-template.php:1239
257
  msgid "In case that you would like to replace the box title with the template title."
258
  msgstr "Nel caso in cui desiderassi sostituire il titolo della casella con il titolo del template"
259
 
260
+ #: custom-field-template/custom-field-template.php:1240
261
  msgid "Replace the box title"
262
  msgstr "Sostituisci il titolo della casella"
263
 
264
+ #: custom-field-template/custom-field-template.php:1244
265
+ msgid "In case that you would like to deploy the box in each template."
266
+ msgstr "Nel caso in cui desiderassi distribuire il box in ogni template."
267
+
268
+ #: custom-field-template/custom-field-template.php:1245
269
+ msgid "Deploy the box in each template"
270
+ msgstr "Distribuisci il box in ogni template"
271
+
272
+ #: custom-field-template/custom-field-template.php:1249
273
  msgid "In case that you would like to use the shortcode in the widget."
274
  msgstr "Nel caso in cui desiderassi utilizzare lo shortcode nel widget"
275
 
276
+ #: custom-field-template/custom-field-template.php:1250
277
  msgid "Use the shortcode in the widget"
278
  msgstr "Utilizza lo shortcode nel widget"
279
 
280
+ #: custom-field-template/custom-field-template.php:1254
281
  msgid "In case that you would like to use the shortcode in the excerpt."
282
  msgstr "Nel caso in cui desiderassi utilizzare lo shortcode negli estratti"
283
 
284
+ #: custom-field-template/custom-field-template.php:1255
285
  msgid "Use the shortcode in the excerpt"
286
  msgstr "Usa lo shortcode negli estratti"
287
 
288
+ #: custom-field-template/custom-field-template.php:1259
289
  msgid "In case that you would like to use the jQuery validation."
290
  msgstr "Nel caso in cui desiderassi utilizzare la convalida jQuery"
291
 
292
+ #: custom-field-template/custom-field-template.php:1260
293
  msgid "Use the jQuery validation"
294
  msgstr "Usa convalida jQuery"
295
 
296
+ #: custom-field-template/custom-field-template.php:1270
297
  msgid "Text to place before every list which is called by the cft shortcode"
298
  msgstr "Testo che verrà posto davanti ad ogni lista richiamata dallo shortcode di cft"
299
 
300
+ #: custom-field-template/custom-field-template.php:1272
301
  msgid "Text to place after every list which is called by the cft shortcode"
302
  msgstr "Testo che verrà posto dopo ogni lista richiamata dallo shortcode di cft"
303
 
304
+ #: custom-field-template/custom-field-template.php:1274
305
  msgid "Text to place before every value which is called by the cft shortcode"
306
  msgstr "Testo che verrà posto davanti ad ogni valore richiamato dallo shortcode di cft"
307
 
308
+ #: custom-field-template/custom-field-template.php:1276
309
  msgid "Text to place after every value which is called by the cft shortcode"
310
  msgstr "Testo che verrà posto dopo ogni valore richiamato dallo shortcode di cft"
311
 
312
+ #: custom-field-template/custom-field-template.php:1281
313
+ msgid "In case that you would like to hide the advertisement right column."
314
+ msgstr "Nel caso in cui desiderassi nascondere la colonna pubblicitaria di destra."
315
+
316
+ #: custom-field-template/custom-field-template.php:1282
317
+ msgid "I want to use a wider screen."
318
+ msgstr "Voglio usare una schermata più grande."
319
+
320
+ #: custom-field-template/custom-field-template.php:1296
321
  msgid "ADMIN CSS"
322
  msgstr "CSS AMMINISTRAZIONE"
323
 
324
+ #: custom-field-template/custom-field-template.php:1315
325
  msgid "[cft] and [cftsearch] Shortcode Format"
326
  msgstr "Formato Shortcode [cft] e [cftsearch]"
327
 
328
+ #: custom-field-template/custom-field-template.php:1318
329
  msgid "For [cft], [key] will be converted into the value of [key]."
330
  msgstr "[key] verrà convertito nel valore di [key]."
331
 
332
+ #: custom-field-template/custom-field-template.php:1319
333
  msgid "For [cftsearch], [key] will be converted into the input field."
334
  msgstr "[cftsearch], [key] verrà convertito nell'input del campo."
335
 
336
+ #: custom-field-template/custom-field-template.php:1330
337
+ #: custom-field-template/custom-field-template.php:1405
338
  msgid "Use PHP"
339
  msgstr "Usa PHP"
340
 
341
+ #: custom-field-template/custom-field-template.php:1346
342
  msgid "PHP CODE (Experimental Option)"
343
  msgstr "CODICE PHP (opzione sperimentale)"
344
 
345
+ #: custom-field-template/custom-field-template.php:1348
346
  msgid "Are you sure to save PHP codes? Please do it at your own risk."
347
  msgstr "Sei certo di volere salvare dei codici PHP? Se sì, fallo a tuo rischio."
348
 
349
+ #: custom-field-template/custom-field-template.php:1349
350
  msgid "For `text` and `textarea`, you must set $value as an string."
351
  msgstr "`text` e `textarea`, dovrai impostare come stringa $value."
352
 
353
+ #: custom-field-template/custom-field-template.php:1351
354
  msgid "For `checkbox`, `radio`, and `select`, you must set $values as an array."
355
  msgstr "`checkbox`, `radio`, e `select`, dovrai impostare come array $values."
356
 
357
+ #: custom-field-template/custom-field-template.php:1379
358
  msgid "Auto Hook of `the_content()` (Experimental Option)"
359
  msgstr "Hook automatico di `the_content()` (opzione sperimentale)"
360
 
361
+ #: custom-field-template/custom-field-template.php:1391
362
  msgid "Position"
363
  msgstr "Posizione"
364
 
365
+ #: custom-field-template/custom-field-template.php:1392
366
  msgid "Before the content"
367
+ msgstr "Davanti ai contenuti "
368
 
369
+ #: custom-field-template/custom-field-template.php:1393
370
  msgid "After the content"
371
+ msgstr "A seguire i contenuti "
372
 
373
+ #: custom-field-template/custom-field-template.php:1394
374
  #, php-format
375
  msgid "Inside the content ([cfthook hook=%d])"
376
  msgstr "Dentro il contenuto ([cfthook hook=%d])"
377
 
378
+ #: custom-field-template/custom-field-template.php:1404
379
  msgid "Content"
380
  msgstr "Contenuti"
381
 
382
+ #: custom-field-template/custom-field-template.php:1406
383
  msgid "Apply to feeds"
384
  msgstr "Applica ai feed"
385
 
386
+ #: custom-field-template/custom-field-template.php:1422
387
  msgid "Rebuild Value Counts"
388
  msgstr "Rigenera Value Counts"
389
 
390
+ #: custom-field-template/custom-field-template.php:1424
391
  msgid "Are you sure to rebuild all value counts?"
392
  msgstr "Sei certo di volere rigenerare tutti i value counts?"
393
 
394
+ #: custom-field-template/custom-field-template.php:1428
395
  msgid "Value Counts are used for temporarily saving how many values in each key. Set `valueCount = true` into fields."
396
  msgstr "I Value Counts sono utilizzati per il salvataggio temporaneo dei valori per ogni chiave. Imposta dentro ai campi `valueCount = true`."
397
 
398
+ #: custom-field-template/custom-field-template.php:1432
399
  msgid "Rebuild Value Counts &raquo;"
400
  msgstr "Rigenera Value Counts &raquo;"
401
 
402
+ #: custom-field-template/custom-field-template.php:1443
403
  msgid "Rebuild Tags"
404
  msgstr "Rigenera i tag"
405
 
406
+ #: custom-field-template/custom-field-template.php:1445
407
  msgid "Are you sure to rebuild tags?"
408
  msgstr "Sei certo di volere rigenerare i tag?"
409
 
410
+ #: custom-field-template/custom-field-template.php:1449
411
  msgid "Rebuild Tags &raquo;"
412
  msgstr "Rigenera tag &raquo;"
413
 
414
+ #: custom-field-template/custom-field-template.php:1460
415
  msgid "Option List"
416
  msgstr "Lista opzione"
417
 
418
+ #: custom-field-template/custom-field-template.php:1634
419
  msgid "Export Options"
420
  msgstr "Esporta le opzioni"
421
 
422
+ #: custom-field-template/custom-field-template.php:1640
423
  msgid "Export Options &raquo;"
424
  msgstr "Esporta le opzioni &raquo;"
425
 
426
+ #: custom-field-template/custom-field-template.php:1650
427
  msgid "Import Options"
428
  msgstr "Importa le opzioni"
429
 
430
+ #: custom-field-template/custom-field-template.php:1652
431
  msgid "Are you sure to import options? Options you set will be overwritten."
432
  msgstr "Sei certo di volere cancellare le opzioni? Le opzioni personalizzate in precedenza verranno cancellate."
433
 
434
+ #: custom-field-template/custom-field-template.php:1656
435
  msgid "Import Options &raquo;"
436
  msgstr "Importa le opzioni &raquo;"
437
 
438
+ #: custom-field-template/custom-field-template.php:1666
439
  msgid "Reset Options"
440
  msgstr "Ripristina le opzioni"
441
 
442
+ #: custom-field-template/custom-field-template.php:1668
443
  msgid "Are you sure to reset options? Options you set will be reset to the default settings."
444
  msgstr "Sei certo di volere ripristinare le opzioni? Le opzioni personalizzate verranno ripristinate alle predefinite."
445
 
446
+ #: custom-field-template/custom-field-template.php:1672
447
  msgid "Reset Options &raquo;"
448
  msgstr "Ripristina le opzioni &raquo;"
449
 
450
+ #: custom-field-template/custom-field-template.php:1682
451
  msgid "Delete Options"
452
  msgstr "Cancella le opzioni"
453
 
454
+ #: custom-field-template/custom-field-template.php:1684
455
  msgid "Are you sure to delete options? Options you set will be deleted."
456
  msgstr "Sei certo di volere cancellare le opzioni? Le opzioni personalizzate verranno cancellate."
457
 
458
+ #: custom-field-template/custom-field-template.php:1688
459
  msgid "Delete Options &raquo;"
460
  msgstr "Cancella le opzioni &raquo;"
461
 
462
+ #: custom-field-template/custom-field-template.php:1701
463
  msgid "Donation"
464
  msgstr "Fai una donazione"
465
 
466
+ #: custom-field-template/custom-field-template.php:1703
467
  msgid "If you liked this plugin, please make a donation via paypal! Any amount is welcome. Your support is much appreciated."
468
  msgstr "Qualora avesi gradito questo plugin, effettua una donazione via paypal! Grazie."
469
 
470
+ #: custom-field-template/custom-field-template.php:1717
471
+ msgid "CMS x WP"
472
+ msgstr "CMS x WP"
473
+
474
  #: custom-field-template/custom-field-template.php:1719
475
+ msgid "There are much more plugins which are useful for developing business websites such as membership sites or ec sites. You could totally treat WordPress as CMS by use of CMS x WP plugins."
476
+ msgstr "Esistono molti altri plugin utili per siti business a taglio economico, membership, etc. Potrai utilizzare al massimo WordPress come CMS grazie ai plugin CMS x WP."
477
+
478
+ #: custom-field-template/custom-field-template.php:1720
479
+ msgid "WordPress plugin sales site: CMS x WP"
480
+ msgstr "Sito vendita plugin per WordPress: CMS x WP"
481
+
482
+ #: custom-field-template/custom-field-template.php:1815
483
+ #: custom-field-template/custom-field-template.php:1947
484
+ #: custom-field-template/custom-field-template.php:2035
485
+ #: custom-field-template/custom-field-template.php:2211
486
+ #: custom-field-template/custom-field-template.php:2213
487
+ #: custom-field-template/custom-field-template.php:2282
488
+ #: custom-field-template/custom-field-template.php:2487
489
  msgid "Add New"
490
  msgstr "Aggiungi nuovo"
491
 
492
+ #: custom-field-template/custom-field-template.php:1957
493
  msgid "Clear"
494
  msgstr "Pulisci"
495
 
496
+ #: custom-field-template/custom-field-template.php:2051
497
  msgid "Select"
498
  msgstr "Seleziona"
499
 
500
+ #: custom-field-template/custom-field-template.php:2136
501
  msgid "Add an Image"
502
  msgstr "Aggiungi immagine"
503
 
504
+ #: custom-field-template/custom-field-template.php:2141
505
  msgid "Add Video"
506
  msgstr "Aggiungi video"
507
 
508
+ #: custom-field-template/custom-field-template.php:2146
509
  msgid "Add Audio"
510
  msgstr "Aggiungi audio"
511
 
512
+ #: custom-field-template/custom-field-template.php:2150
513
+ #: custom-field-template/custom-field-template.php:2154
514
  msgid "Add Media"
515
  msgstr "Aggiungi media"
516
 
517
+ #: custom-field-template/custom-field-template.php:2161
518
  msgid "Toggle"
519
  msgstr "Commuta"
520
 
521
+ #: custom-field-template/custom-field-template.php:2292
522
  msgid " OR "
523
  msgstr " O"
524
 
525
+ #: custom-field-template/custom-field-template.php:2293
526
  msgid "Select by Media Picker"
527
  msgstr "Seleziona via Media Picker"
528
 
529
+ #: custom-field-template/custom-field-template.php:2316
530
+ #: custom-field-template/custom-field-template.php:2489
531
  msgid "Delete"
532
  msgstr "Cancella"
533
 
534
+ #: custom-field-template/custom-field-template.php:2701
535
  msgid "Enable"
536
  msgstr "Abilita"
537
 
538
+ #: custom-field-template/custom-field-template.php:2705
539
  msgid "Initialize"
540
  msgstr "Inizializza"
541
 
542
+ #: custom-field-template/custom-field-template.php:2706
543
  msgid "Are you sure to reset current values? Default values will be loaded."
544
  msgstr "Sei certo di volere ripristinare le impostazioni? Verranno ricaricate le predefinite."
545
 
546
+ #: custom-field-template/custom-field-template.php:2711
547
  msgid "Save"
548
  msgstr "Salva"
549
 
550
+ #: custom-field-template/custom-field-template.php:3434
551
  msgid "Search &raquo;"
552
  msgstr "Cerca &raquo;"
553
 
custom-field-template-ja.mo CHANGED
Binary file
custom-field-template-ja.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Custom Field Template\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2012-04-08 11:48+0900\n"
6
- "PO-Revision-Date: 2012-04-08 11:49+0900\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -16,537 +16,552 @@ msgstr ""
16
  "X-Poedit-Basepath: ../\n"
17
  "X-Poedit-SearchPath-0: custom-field-template\n"
18
 
19
- #: custom-field-template/custom-field-template.php:155
20
- #: custom-field-template/custom-field-template.php:156
21
- #: custom-field-template/custom-field-template.php:178
22
- #: custom-field-template/custom-field-template.php:653
23
- #: custom-field-template/custom-field-template.php:931
24
- #: custom-field-template/custom-field-template.php:2362
25
- #: custom-field-template/custom-field-template.php:2569
 
26
  msgid "Custom Field Template"
27
  msgstr "カスタムフィールドテンプレート"
28
 
29
- #: custom-field-template/custom-field-template.php:194
30
  msgid "Media Picker"
31
  msgstr "メディアピッカー"
32
 
33
- #: custom-field-template/custom-field-template.php:196
34
  msgid "Use this"
35
  msgstr "これを使用する"
36
 
37
- #: custom-field-template/custom-field-template.php:298
38
- #: custom-field-template/custom-field-template.php:2789
39
  msgid "Load"
40
  msgstr "読込"
41
 
42
- #: custom-field-template/custom-field-template.php:475
43
  msgid "read more"
44
  msgstr "続きを表示"
45
 
46
- #: custom-field-template/custom-field-template.php:493
47
- #: custom-field-template/custom-field-template.php:503
48
  msgid "Custom Fields"
49
  msgstr "カスタムフィールド"
50
 
51
- #: custom-field-template/custom-field-template.php:535
52
  msgid "Settings"
53
  msgstr "設定"
54
 
55
- #: custom-field-template/custom-field-template.php:574
56
  msgid "Default Template"
57
  msgstr "デフォルトテンプレート"
58
 
59
- #: custom-field-template/custom-field-template.php:787
60
  msgid "You can not use the following words as the field key: `content`, `post_title`, and `excerpt`, and `action`."
61
  msgstr "次のキーワードはフィールドキーとして使用できません。 `content`、`post_title`、`excerpt`、`action`"
62
 
63
- #: custom-field-template/custom-field-template.php:802
64
- #: custom-field-template/custom-field-template.php:827
65
- #: custom-field-template/custom-field-template.php:831
66
- #: custom-field-template/custom-field-template.php:843
67
- #: custom-field-template/custom-field-template.php:851
68
- #: custom-field-template/custom-field-template.php:868
69
  msgid "Options updated."
70
  msgstr "オプションは更新されました。"
71
 
72
- #: custom-field-template/custom-field-template.php:872
73
  msgid "Value Counts rebuilt."
74
  msgstr "バリューカウントは再構築されました。"
75
 
76
- #: custom-field-template/custom-field-template.php:875
77
  msgid "Tags rebuilt."
78
  msgstr "タグは再構築されました。"
79
 
80
- #: custom-field-template/custom-field-template.php:884
81
  msgid "Options imported."
82
  msgstr "オプションはインポートされました。"
83
 
84
- #: custom-field-template/custom-field-template.php:891
85
  msgid "Options resetted."
86
  msgstr "オプションはリセットされました。"
87
 
88
- #: custom-field-template/custom-field-template.php:895
89
  msgid "Options deleted."
90
  msgstr "オプションは削除されました。"
91
 
92
- #: custom-field-template/custom-field-template.php:938
93
- #: custom-field-template/custom-field-template.php:984
94
- #: custom-field-template/custom-field-template.php:1100
95
- #: custom-field-template/custom-field-template.php:1119
96
- #: custom-field-template/custom-field-template.php:1150
97
- #: custom-field-template/custom-field-template.php:1183
98
- #: custom-field-template/custom-field-template.php:1226
99
- #: custom-field-template/custom-field-template.php:1247
100
- #: custom-field-template/custom-field-template.php:1264
101
- #: custom-field-template/custom-field-template.php:1438
102
- #: custom-field-template/custom-field-template.php:1454
103
- #: custom-field-template/custom-field-template.php:1470
104
- #: custom-field-template/custom-field-template.php:1486
105
- #: custom-field-template/custom-field-template.php:1505
106
- #: custom-field-template/custom-field-template.php:1521
 
107
  msgid "Click to toggle"
108
  msgstr "クリックで切替"
109
 
110
- #: custom-field-template/custom-field-template.php:939
111
  msgid "Custom Field Template Options"
112
  msgstr "カスタムフィールドテンプレートオプション"
113
 
114
- #: custom-field-template/custom-field-template.php:949
115
- #: custom-field-template/custom-field-template.php:2629
116
- #: custom-field-template/custom-field-template.php:2630
117
  msgid "Disable"
118
  msgstr "無効"
119
 
120
- #: custom-field-template/custom-field-template.php:951
121
  msgid "Template Title"
122
  msgstr "テンプレートタイトル"
123
 
124
- #: custom-field-template/custom-field-template.php:953
125
  msgid "Template Instruction"
126
  msgstr "テンプレートインストラクション"
127
 
128
- #: custom-field-template/custom-field-template.php:955
129
- #: custom-field-template/custom-field-template.php:1201
130
  msgid "Post Type"
131
  msgstr "投稿タイプ"
132
 
133
- #: custom-field-template/custom-field-template.php:957
134
- #: custom-field-template/custom-field-template.php:1202
135
  msgid "Both"
136
  msgstr "両方"
137
 
138
- #: custom-field-template/custom-field-template.php:958
139
- #: custom-field-template/custom-field-template.php:1203
140
  msgid "Post"
141
  msgstr "投稿"
142
 
143
- #: custom-field-template/custom-field-template.php:959
144
- #: custom-field-template/custom-field-template.php:1204
145
  msgid "Page"
146
  msgstr "ページ"
147
 
148
- #: custom-field-template/custom-field-template.php:960
149
- #: custom-field-template/custom-field-template.php:1205
150
  msgid "Custom Post Type (comma-deliminated)"
151
  msgstr "カスタムポストタイプ (カンマ区切り)"
152
 
153
- #: custom-field-template/custom-field-template.php:962
154
  msgid "Post ID (comma-deliminated)"
155
  msgstr "Post ID (カンマ区切り)"
156
 
157
- #: custom-field-template/custom-field-template.php:964
158
- #: custom-field-template/custom-field-template.php:1207
159
  msgid "Category ID (comma-deliminated)"
160
  msgstr "カテゴリーID (カンマ区切り)"
161
 
162
- #: custom-field-template/custom-field-template.php:966
163
  msgid "Page Template file name(s) (comma-deliminated)"
164
  msgstr "ページテンプレートファイル名 (カンマ区切り)"
165
 
166
- #: custom-field-template/custom-field-template.php:968
 
 
 
 
167
  msgid "Template Content"
168
  msgstr "テンプレートコンテンツ"
169
 
170
- #: custom-field-template/custom-field-template.php:975
171
- #: custom-field-template/custom-field-template.php:1091
172
- #: custom-field-template/custom-field-template.php:1110
173
- #: custom-field-template/custom-field-template.php:1141
174
- #: custom-field-template/custom-field-template.php:1174
175
- #: custom-field-template/custom-field-template.php:1217
176
  msgid "Update Options &raquo;"
177
  msgstr "オプションを更新する &raquo;"
178
 
179
- #: custom-field-template/custom-field-template.php:985
180
  msgid "Global Settings"
181
  msgstr "グローバル設定"
182
 
183
- #: custom-field-template/custom-field-template.php:1000
184
  msgid "In case that you would like to replace custom keys by labels if `label` is set"
185
  msgstr "`label`がセットされていて、カスタムフィールドのキーの代わりにラベルを表示したい場合"
186
 
187
- #: custom-field-template/custom-field-template.php:1001
188
  msgid "Use labels in place of custom keys"
189
  msgstr "カスタムフィールドのキーの代わりにラベルを使用する"
190
 
191
- #: custom-field-template/custom-field-template.php:1004
192
  msgid "In case that you would like to add p and br tags in textareas automatically"
193
  msgstr "テキストエリアでpタグ、brタグを自動的に追加したい場合"
194
 
195
- #: custom-field-template/custom-field-template.php:1005
196
  msgid "Use wpautop function"
197
  msgstr "wpautop関数を使用する"
198
 
199
- #: custom-field-template/custom-field-template.php:1009
200
  msgid "In case that you would like to save values automatically in switching templates"
201
  msgstr "テンプレート切替時自動で保存したい場合"
202
 
203
- #: custom-field-template/custom-field-template.php:1010
204
  msgid "Use the auto save in switching templates"
205
  msgstr "テンプレート切替時の自動保存を使用する"
206
 
207
- #: custom-field-template/custom-field-template.php:1014
208
  msgid "In case that you would like to disable input fields of the custom field template temporarily"
209
  msgstr "一時的にカスタムフィールドテンプレートのインプットフィールドを一時的に無効にしたい場合"
210
 
211
- #: custom-field-template/custom-field-template.php:1015
212
  msgid "Use the `Disable` button. The default custom fields will be superseded."
213
  msgstr "無効ボタンを使用する。デフォルトのカスタムフィールドが優先されます。"
214
 
215
- #: custom-field-template/custom-field-template.php:1019
216
  msgid "In case that you would like to forbid to use the initialize button."
217
  msgstr "初期化ボタンの使用を禁止する場合"
218
 
219
- #: custom-field-template/custom-field-template.php:1020
220
  msgid "Disable the initialize button"
221
  msgstr "初期化ボタンを無効にする"
222
 
223
- #: custom-field-template/custom-field-template.php:1024
224
  msgid "In case that you would like to forbid to use the save button."
225
  msgstr "保存ボタンの使用を禁止する場合"
226
 
227
- #: custom-field-template/custom-field-template.php:1025
228
  msgid "Disable the save button"
229
  msgstr "保存ボタンを無効にする"
230
 
231
- #: custom-field-template/custom-field-template.php:1029
232
  msgid "In case that you would like to forbid to use the default custom fields."
233
  msgstr "デフォルトのカスタムフィールドの使用を禁止する場合"
234
 
235
- #: custom-field-template/custom-field-template.php:1030
236
  msgid "Disable the default custom fields"
237
  msgstr "デフォルトのカスタムフィールドを無効にする"
238
 
239
- #: custom-field-template/custom-field-template.php:1034
240
  msgid "In case that you would like to forbid to use the quick edit."
241
  msgstr "クイック編集の使用を禁止する場合"
242
 
243
- #: custom-field-template/custom-field-template.php:1035
244
  msgid "Disable the quick edit"
245
  msgstr "クイック編集を無効にする"
246
 
247
- #: custom-field-template/custom-field-template.php:1039
248
  msgid "In case that you would like to forbid to display the custom field column on the edit post list page."
249
  msgstr "編集リストページのカスタムフィールドカラムの表示を禁止する場合"
250
 
251
- #: custom-field-template/custom-field-template.php:1040
252
  msgid "Disable the custom field column (The quick edit also does not work.)"
253
  msgstr "カスタムフィールドカラムを無効にする(クイック編集も動きません)"
254
 
255
- #: custom-field-template/custom-field-template.php:1044
256
  msgid "In case that you would like to replace the box title with the template title."
257
  msgstr "ボックスタイトルをテンプレートタイトルで置き換える場合"
258
 
259
- #: custom-field-template/custom-field-template.php:1045
260
  msgid "Replace the box title"
261
  msgstr "ボックスタイトルを置き換える"
262
 
263
- #: custom-field-template/custom-field-template.php:1049
264
  msgid "In case that you would like to deploy the box in each template."
265
  msgstr "テンプレートごとにボックスを配置する場合"
266
 
267
- #: custom-field-template/custom-field-template.php:1050
268
  msgid "Deploy the box in each template"
269
  msgstr "テンプレートごとにボックスを配置する"
270
 
271
- #: custom-field-template/custom-field-template.php:1054
272
  msgid "In case that you would like to use the shortcode in the widget."
273
  msgstr "ショートコードをウィジェットで使用したい場合"
274
 
275
- #: custom-field-template/custom-field-template.php:1055
276
  msgid "Use the shortcode in the widget"
277
  msgstr "ショートコードをウィジェットで使用する"
278
 
279
- #: custom-field-template/custom-field-template.php:1059
280
  msgid "In case that you would like to use the shortcode in the excerpt."
281
  msgstr "ショートコードを抜粋で使用したい場合"
282
 
283
- #: custom-field-template/custom-field-template.php:1060
284
  msgid "Use the shortcode in the excerpt"
285
  msgstr "ショートコードを抜粋で使用する"
286
 
287
- #: custom-field-template/custom-field-template.php:1064
288
  msgid "In case that you would like to use the jQuery validation."
289
  msgstr "jQuery バリデーションを使用したい場合"
290
 
291
- #: custom-field-template/custom-field-template.php:1065
292
  msgid "Use the jQuery validation"
293
  msgstr "jQuery バリデーションを使用する"
294
 
295
- #: custom-field-template/custom-field-template.php:1075
296
  msgid "Text to place before every list which is called by the cft shortcode"
297
  msgstr "cft ショートコードで呼ばれるリストの前のテキスト"
298
 
299
- #: custom-field-template/custom-field-template.php:1077
300
  msgid "Text to place after every list which is called by the cft shortcode"
301
  msgstr "cft ショートコードで呼ばれるリストの後のテキスト"
302
 
303
- #: custom-field-template/custom-field-template.php:1079
304
  msgid "Text to place before every value which is called by the cft shortcode"
305
  msgstr "cft ショートコードで呼ばれる値の前のテキスト"
306
 
307
- #: custom-field-template/custom-field-template.php:1081
308
  msgid "Text to place after every value which is called by the cft shortcode"
309
  msgstr "cft ショートコードで呼ばれる値の後のテキスト"
310
 
311
- #: custom-field-template/custom-field-template.php:1086
312
  msgid "In case that you would like to hide the advertisement right column."
313
  msgstr "右カラムの広告を隠す場合"
314
 
315
- #: custom-field-template/custom-field-template.php:1087
316
  msgid "I want to use a wider screen."
317
  msgstr "もっと広い画面を使いたい・・・。"
318
 
319
- #: custom-field-template/custom-field-template.php:1101
320
  msgid "ADMIN CSS"
321
  msgstr "ADMIN CSS"
322
 
323
- #: custom-field-template/custom-field-template.php:1120
324
  msgid "[cft] and [cftsearch] Shortcode Format"
325
  msgstr "[cft] and [cftsearch] Shortcode Format"
326
 
327
- #: custom-field-template/custom-field-template.php:1123
328
  msgid "For [cft], [key] will be converted into the value of [key]."
329
  msgstr "[cft]では、[key]は、[key]の値に置換されます。"
330
 
331
- #: custom-field-template/custom-field-template.php:1124
332
  msgid "For [cftsearch], [key] will be converted into the input field."
333
  msgstr "[cftsearch]では、[key]は、インプットフィールドに置換されます。"
334
 
335
- #: custom-field-template/custom-field-template.php:1135
336
- #: custom-field-template/custom-field-template.php:1210
337
  msgid "Use PHP"
338
  msgstr "PHPを使用する"
339
 
340
- #: custom-field-template/custom-field-template.php:1151
341
  msgid "PHP CODE (Experimental Option)"
342
  msgstr "PHP CODE (Experimental Option)"
343
 
344
- #: custom-field-template/custom-field-template.php:1153
345
  msgid "Are you sure to save PHP codes? Please do it at your own risk."
346
  msgstr "PHPコードを保存してよろしいですか?自己責任で実行してください。"
347
 
348
- #: custom-field-template/custom-field-template.php:1154
349
  msgid "For `text` and `textarea`, you must set $value as an string."
350
  msgstr "`text`と`textarea`は$valueを文字列としてセットしてください。"
351
 
352
- #: custom-field-template/custom-field-template.php:1156
353
  msgid "For `checkbox`, `radio`, and `select`, you must set $values as an array."
354
  msgstr "`checkbox`、`radio`、`select`では、配列として$valuesをセットしてください。"
355
 
356
- #: custom-field-template/custom-field-template.php:1184
357
  msgid "Auto Hook of `the_content()` (Experimental Option)"
358
  msgstr "Auto Hook of `the_content()` (Experimental Option)"
359
 
360
- #: custom-field-template/custom-field-template.php:1196
361
  msgid "Position"
362
  msgstr "位置"
363
 
364
- #: custom-field-template/custom-field-template.php:1197
365
  msgid "Before the content"
366
  msgstr "コンテンツの前"
367
 
368
- #: custom-field-template/custom-field-template.php:1198
369
  msgid "After the content"
370
  msgstr "コンテンツの後"
371
 
372
- #: custom-field-template/custom-field-template.php:1199
373
  #, php-format
374
  msgid "Inside the content ([cfthook hook=%d])"
375
  msgstr "コンテンツの中 ([cfthook hook=%d])"
376
 
377
- #: custom-field-template/custom-field-template.php:1209
378
  msgid "Content"
379
  msgstr "コンテンツ"
380
 
381
- #: custom-field-template/custom-field-template.php:1211
382
  msgid "Apply to feeds"
383
  msgstr "フィードに適用する"
384
 
385
- #: custom-field-template/custom-field-template.php:1227
386
  msgid "Rebuild Value Counts"
387
  msgstr "バリューカウントの再構築"
388
 
389
- #: custom-field-template/custom-field-template.php:1229
390
  msgid "Are you sure to rebuild all value counts?"
391
  msgstr "本当に全てのバリューカウントを再構築しますか?"
392
 
393
- #: custom-field-template/custom-field-template.php:1233
394
  msgid "Value Counts are used for temporarily saving how many values in each key. Set `valueCount = true` into fields."
395
  msgstr "バリューカウントはキーごとに値がどのくらいあるか一時的に保存するのに使用されます。`valueCount = true`をフィールドにセットしてください。"
396
 
397
- #: custom-field-template/custom-field-template.php:1237
398
  msgid "Rebuild Value Counts &raquo;"
399
  msgstr "バリューカウントを再構築する &raquo;"
400
 
401
- #: custom-field-template/custom-field-template.php:1248
402
  msgid "Rebuild Tags"
403
  msgstr "タグの再構築"
404
 
405
- #: custom-field-template/custom-field-template.php:1250
406
  msgid "Are you sure to rebuild tags?"
407
  msgstr "本当に全てのタグを再構築しますか?"
408
 
409
- #: custom-field-template/custom-field-template.php:1254
410
  msgid "Rebuild Tags &raquo;"
411
  msgstr "タグを再構築する &raquo;"
412
 
413
- #: custom-field-template/custom-field-template.php:1265
414
  msgid "Option List"
415
  msgstr "オプションリスト"
416
 
417
- #: custom-field-template/custom-field-template.php:1439
418
  msgid "Export Options"
419
  msgstr "オプションをエクスポートする"
420
 
421
- #: custom-field-template/custom-field-template.php:1445
422
  msgid "Export Options &raquo;"
423
  msgstr "オプションをエクスポートする &raquo;"
424
 
425
- #: custom-field-template/custom-field-template.php:1455
426
  msgid "Import Options"
427
  msgstr "オプションをインポートする"
428
 
429
- #: custom-field-template/custom-field-template.php:1457
430
  msgid "Are you sure to import options? Options you set will be overwritten."
431
  msgstr "本当にオプションをインポートしてもよろしいですか?設定したオプションは上書きされます。"
432
 
433
- #: custom-field-template/custom-field-template.php:1461
434
  msgid "Import Options &raquo;"
435
  msgstr "オプションをインポートする &raquo;"
436
 
437
- #: custom-field-template/custom-field-template.php:1471
438
  msgid "Reset Options"
439
  msgstr "オプションをリセットする"
440
 
441
- #: custom-field-template/custom-field-template.php:1473
442
  msgid "Are you sure to reset options? Options you set will be reset to the default settings."
443
  msgstr "本当にオプションをリセットしてもよろしいですか?設定したオプションはデフォルトの状態に戻ります。"
444
 
445
- #: custom-field-template/custom-field-template.php:1477
446
  msgid "Reset Options &raquo;"
447
  msgstr "オプションをリセットする &raquo;"
448
 
449
- #: custom-field-template/custom-field-template.php:1487
450
  msgid "Delete Options"
451
  msgstr "オプションを削除する"
452
 
453
- #: custom-field-template/custom-field-template.php:1489
454
  msgid "Are you sure to delete options? Options you set will be deleted."
455
  msgstr "本当にオプションを削除してもよろしいですか?設定したオプションは削除されます。"
456
 
457
- #: custom-field-template/custom-field-template.php:1493
458
  msgid "Delete Options &raquo;"
459
  msgstr "オプションを削除する &raquo;"
460
 
461
- #: custom-field-template/custom-field-template.php:1506
462
  msgid "Donation"
463
  msgstr "寄付"
464
 
465
- #: custom-field-template/custom-field-template.php:1508
466
  msgid "If you liked this plugin, please make a donation via paypal! Any amount is welcome. Your support is much appreciated."
467
  msgstr "このプラグインをお気に召しましたら、Paypalよりご寄付をよろしくお願いいたします。"
468
 
469
- #: custom-field-template/custom-field-template.php:1522
 
 
 
 
 
 
 
 
 
470
  msgid "CMS x WP"
471
  msgstr "CMS×WP"
472
 
473
- #: custom-field-template/custom-field-template.php:1524
474
  msgid "There are much more plugins which are useful for developing business websites such as membership sites or ec sites. You could totally treat WordPress as CMS by use of CMS x WP plugins."
475
  msgstr "会員制サイトやECサイトなどのビジネスサイト構築に役立つプラグインが盛りだくさん。CMS×WPのプラグインで WordPress が CMS として大いに活躍します。"
476
 
477
- #: custom-field-template/custom-field-template.php:1525
478
  msgid "WordPress plugin sales site: CMS x WP"
479
  msgstr "WordPress のプラグイン販売サイト CMS×WP"
480
 
481
- #: custom-field-template/custom-field-template.php:1620
482
- #: custom-field-template/custom-field-template.php:1752
483
- #: custom-field-template/custom-field-template.php:1840
484
- #: custom-field-template/custom-field-template.php:2016
485
- #: custom-field-template/custom-field-template.php:2018
486
- #: custom-field-template/custom-field-template.php:2087
487
- #: custom-field-template/custom-field-template.php:2291
488
  msgid "Add New"
489
  msgstr "追加"
490
 
491
- #: custom-field-template/custom-field-template.php:1762
492
  msgid "Clear"
493
  msgstr "解除"
494
 
495
- #: custom-field-template/custom-field-template.php:1856
496
  msgid "Select"
497
  msgstr "選択してください"
498
 
499
- #: custom-field-template/custom-field-template.php:1941
500
  msgid "Add an Image"
501
  msgstr ""
502
 
503
- #: custom-field-template/custom-field-template.php:1946
504
  msgid "Add Video"
505
  msgstr ""
506
 
507
- #: custom-field-template/custom-field-template.php:1951
508
  msgid "Add Audio"
509
  msgstr ""
510
 
511
- #: custom-field-template/custom-field-template.php:1955
512
- #: custom-field-template/custom-field-template.php:1959
513
  msgid "Add Media"
514
  msgstr ""
515
 
516
- #: custom-field-template/custom-field-template.php:1966
517
  msgid "Toggle"
518
  msgstr "切り替え"
519
 
520
- #: custom-field-template/custom-field-template.php:2097
521
  msgid " OR "
522
  msgstr " または "
523
 
524
- #: custom-field-template/custom-field-template.php:2098
525
  msgid "Select by Media Picker"
526
  msgstr "メディアピッカーで選択"
527
 
528
- #: custom-field-template/custom-field-template.php:2121
529
- #: custom-field-template/custom-field-template.php:2293
530
  msgid "Delete"
531
  msgstr "削除"
532
 
533
- #: custom-field-template/custom-field-template.php:2630
534
  msgid "Enable"
535
  msgstr "有効"
536
 
537
- #: custom-field-template/custom-field-template.php:2634
538
  msgid "Initialize"
539
  msgstr "初期化"
540
 
541
- #: custom-field-template/custom-field-template.php:2635
542
  msgid "Are you sure to reset current values? Default values will be loaded."
543
  msgstr "現在値をリセットしてもよろしいですか?初期値が読み込まれます。"
544
 
545
- #: custom-field-template/custom-field-template.php:2640
546
  msgid "Save"
547
  msgstr "保存"
548
 
549
- #: custom-field-template/custom-field-template.php:3357
550
  msgid "Search &raquo;"
551
  msgstr "検索 &raquo;"
552
 
2
  msgstr ""
3
  "Project-Id-Version: Custom Field Template\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-09-04 15:21+0900\n"
6
+ "PO-Revision-Date: 2012-09-04 15:22+0900\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
16
  "X-Poedit-Basepath: ../\n"
17
  "X-Poedit-SearchPath-0: custom-field-template\n"
18
 
19
+ #: custom-field-template/custom-field-template.php:167
20
+ #: custom-field-template/custom-field-template.php:190
21
+ #: custom-field-template/custom-field-template.php:191
22
+ #: custom-field-template/custom-field-template.php:209
23
+ #: custom-field-template/custom-field-template.php:843
24
+ #: custom-field-template/custom-field-template.php:1127
25
+ #: custom-field-template/custom-field-template.php:2614
26
+ #: custom-field-template/custom-field-template.php:2706
27
  msgid "Custom Field Template"
28
  msgstr "カスタムフィールドテンプレート"
29
 
30
+ #: custom-field-template/custom-field-template.php:225
31
  msgid "Media Picker"
32
  msgstr "メディアピッカー"
33
 
34
+ #: custom-field-template/custom-field-template.php:227
35
  msgid "Use this"
36
  msgstr "これを使用する"
37
 
38
+ #: custom-field-template/custom-field-template.php:329
39
+ #: custom-field-template/custom-field-template.php:2915
40
  msgid "Load"
41
  msgstr "読込"
42
 
43
+ #: custom-field-template/custom-field-template.php:662
44
  msgid "read more"
45
  msgstr "続きを表示"
46
 
47
+ #: custom-field-template/custom-field-template.php:680
48
+ #: custom-field-template/custom-field-template.php:690
49
  msgid "Custom Fields"
50
  msgstr "カスタムフィールド"
51
 
52
+ #: custom-field-template/custom-field-template.php:722
53
  msgid "Settings"
54
  msgstr "設定"
55
 
56
+ #: custom-field-template/custom-field-template.php:762
57
  msgid "Default Template"
58
  msgstr "デフォルトテンプレート"
59
 
60
+ #: custom-field-template/custom-field-template.php:977
61
  msgid "You can not use the following words as the field key: `content`, `post_title`, and `excerpt`, and `action`."
62
  msgstr "次のキーワードはフィールドキーとして使用できません。 `content`、`post_title`、`excerpt`、`action`"
63
 
64
+ #: custom-field-template/custom-field-template.php:993
65
+ #: custom-field-template/custom-field-template.php:1023
66
+ #: custom-field-template/custom-field-template.php:1027
67
+ #: custom-field-template/custom-field-template.php:1039
68
+ #: custom-field-template/custom-field-template.php:1047
69
+ #: custom-field-template/custom-field-template.php:1064
70
  msgid "Options updated."
71
  msgstr "オプションは更新されました。"
72
 
73
+ #: custom-field-template/custom-field-template.php:1068
74
  msgid "Value Counts rebuilt."
75
  msgstr "バリューカウントは再構築されました。"
76
 
77
+ #: custom-field-template/custom-field-template.php:1071
78
  msgid "Tags rebuilt."
79
  msgstr "タグは再構築されました。"
80
 
81
+ #: custom-field-template/custom-field-template.php:1080
82
  msgid "Options imported."
83
  msgstr "オプションはインポートされました。"
84
 
85
+ #: custom-field-template/custom-field-template.php:1087
86
  msgid "Options resetted."
87
  msgstr "オプションはリセットされました。"
88
 
89
+ #: custom-field-template/custom-field-template.php:1091
90
  msgid "Options deleted."
91
  msgstr "オプションは削除されました。"
92
 
93
+ #: custom-field-template/custom-field-template.php:1134
94
+ #: custom-field-template/custom-field-template.php:1193
95
+ #: custom-field-template/custom-field-template.php:1309
96
+ #: custom-field-template/custom-field-template.php:1328
97
+ #: custom-field-template/custom-field-template.php:1359
98
+ #: custom-field-template/custom-field-template.php:1392
99
+ #: custom-field-template/custom-field-template.php:1435
100
+ #: custom-field-template/custom-field-template.php:1456
101
+ #: custom-field-template/custom-field-template.php:1473
102
+ #: custom-field-template/custom-field-template.php:1647
103
+ #: custom-field-template/custom-field-template.php:1663
104
+ #: custom-field-template/custom-field-template.php:1679
105
+ #: custom-field-template/custom-field-template.php:1695
106
+ #: custom-field-template/custom-field-template.php:1714
107
+ #: custom-field-template/custom-field-template.php:1730
108
+ #: custom-field-template/custom-field-template.php:1739
109
  msgid "Click to toggle"
110
  msgstr "クリックで切替"
111
 
112
+ #: custom-field-template/custom-field-template.php:1135
113
  msgid "Custom Field Template Options"
114
  msgstr "カスタムフィールドテンプレートオプション"
115
 
116
+ #: custom-field-template/custom-field-template.php:1145
117
+ #: custom-field-template/custom-field-template.php:2756
118
+ #: custom-field-template/custom-field-template.php:2757
119
  msgid "Disable"
120
  msgstr "無効"
121
 
122
+ #: custom-field-template/custom-field-template.php:1147
123
  msgid "Template Title"
124
  msgstr "テンプレートタイトル"
125
 
126
+ #: custom-field-template/custom-field-template.php:1149
127
  msgid "Template Instruction"
128
  msgstr "テンプレートインストラクション"
129
 
130
+ #: custom-field-template/custom-field-template.php:1151
131
+ #: custom-field-template/custom-field-template.php:1410
132
  msgid "Post Type"
133
  msgstr "投稿タイプ"
134
 
135
+ #: custom-field-template/custom-field-template.php:1153
136
+ #: custom-field-template/custom-field-template.php:1411
137
  msgid "Both"
138
  msgstr "両方"
139
 
140
+ #: custom-field-template/custom-field-template.php:1154
141
+ #: custom-field-template/custom-field-template.php:1412
142
  msgid "Post"
143
  msgstr "投稿"
144
 
145
+ #: custom-field-template/custom-field-template.php:1155
146
+ #: custom-field-template/custom-field-template.php:1413
147
  msgid "Page"
148
  msgstr "ページ"
149
 
150
+ #: custom-field-template/custom-field-template.php:1156
151
+ #: custom-field-template/custom-field-template.php:1414
152
  msgid "Custom Post Type (comma-deliminated)"
153
  msgstr "カスタムポストタイプ (カンマ区切り)"
154
 
155
+ #: custom-field-template/custom-field-template.php:1158
156
  msgid "Post ID (comma-deliminated)"
157
  msgstr "Post ID (カンマ区切り)"
158
 
159
+ #: custom-field-template/custom-field-template.php:1160
160
+ #: custom-field-template/custom-field-template.php:1416
161
  msgid "Category ID (comma-deliminated)"
162
  msgstr "カテゴリーID (カンマ区切り)"
163
 
164
+ #: custom-field-template/custom-field-template.php:1162
165
  msgid "Page Template file name(s) (comma-deliminated)"
166
  msgstr "ページテンプレートファイル名 (カンマ区切り)"
167
 
168
+ #: custom-field-template/custom-field-template.php:1164
169
+ msgid "Template Format"
170
+ msgstr "テンプレートフォーマット"
171
+
172
+ #: custom-field-template/custom-field-template.php:1177
173
  msgid "Template Content"
174
  msgstr "テンプレートコンテンツ"
175
 
176
+ #: custom-field-template/custom-field-template.php:1184
177
+ #: custom-field-template/custom-field-template.php:1300
178
+ #: custom-field-template/custom-field-template.php:1319
179
+ #: custom-field-template/custom-field-template.php:1350
180
+ #: custom-field-template/custom-field-template.php:1383
181
+ #: custom-field-template/custom-field-template.php:1426
182
  msgid "Update Options &raquo;"
183
  msgstr "オプションを更新する &raquo;"
184
 
185
+ #: custom-field-template/custom-field-template.php:1194
186
  msgid "Global Settings"
187
  msgstr "グローバル設定"
188
 
189
+ #: custom-field-template/custom-field-template.php:1209
190
  msgid "In case that you would like to replace custom keys by labels if `label` is set"
191
  msgstr "`label`がセットされていて、カスタムフィールドのキーの代わりにラベルを表示したい場合"
192
 
193
+ #: custom-field-template/custom-field-template.php:1210
194
  msgid "Use labels in place of custom keys"
195
  msgstr "カスタムフィールドのキーの代わりにラベルを使用する"
196
 
197
+ #: custom-field-template/custom-field-template.php:1213
198
  msgid "In case that you would like to add p and br tags in textareas automatically"
199
  msgstr "テキストエリアでpタグ、brタグを自動的に追加したい場合"
200
 
201
+ #: custom-field-template/custom-field-template.php:1214
202
  msgid "Use wpautop function"
203
  msgstr "wpautop関数を使用する"
204
 
205
+ #: custom-field-template/custom-field-template.php:1218
206
  msgid "In case that you would like to save values automatically in switching templates"
207
  msgstr "テンプレート切替時自動で保存したい場合"
208
 
209
+ #: custom-field-template/custom-field-template.php:1219
210
  msgid "Use the auto save in switching templates"
211
  msgstr "テンプレート切替時の自動保存を使用する"
212
 
213
+ #: custom-field-template/custom-field-template.php:1223
214
  msgid "In case that you would like to disable input fields of the custom field template temporarily"
215
  msgstr "一時的にカスタムフィールドテンプレートのインプットフィールドを一時的に無効にしたい場合"
216
 
217
+ #: custom-field-template/custom-field-template.php:1224
218
  msgid "Use the `Disable` button. The default custom fields will be superseded."
219
  msgstr "無効ボタンを使用する。デフォルトのカスタムフィールドが優先されます。"
220
 
221
+ #: custom-field-template/custom-field-template.php:1228
222
  msgid "In case that you would like to forbid to use the initialize button."
223
  msgstr "初期化ボタンの使用を禁止する場合"
224
 
225
+ #: custom-field-template/custom-field-template.php:1229
226
  msgid "Disable the initialize button"
227
  msgstr "初期化ボタンを無効にする"
228
 
229
+ #: custom-field-template/custom-field-template.php:1233
230
  msgid "In case that you would like to forbid to use the save button."
231
  msgstr "保存ボタンの使用を禁止する場合"
232
 
233
+ #: custom-field-template/custom-field-template.php:1234
234
  msgid "Disable the save button"
235
  msgstr "保存ボタンを無効にする"
236
 
237
+ #: custom-field-template/custom-field-template.php:1238
238
  msgid "In case that you would like to forbid to use the default custom fields."
239
  msgstr "デフォルトのカスタムフィールドの使用を禁止する場合"
240
 
241
+ #: custom-field-template/custom-field-template.php:1239
242
  msgid "Disable the default custom fields"
243
  msgstr "デフォルトのカスタムフィールドを無効にする"
244
 
245
+ #: custom-field-template/custom-field-template.php:1243
246
  msgid "In case that you would like to forbid to use the quick edit."
247
  msgstr "クイック編集の使用を禁止する場合"
248
 
249
+ #: custom-field-template/custom-field-template.php:1244
250
  msgid "Disable the quick edit"
251
  msgstr "クイック編集を無効にする"
252
 
253
+ #: custom-field-template/custom-field-template.php:1248
254
  msgid "In case that you would like to forbid to display the custom field column on the edit post list page."
255
  msgstr "編集リストページのカスタムフィールドカラムの表示を禁止する場合"
256
 
257
+ #: custom-field-template/custom-field-template.php:1249
258
  msgid "Disable the custom field column (The quick edit also does not work.)"
259
  msgstr "カスタムフィールドカラムを無効にする(クイック編集も動きません)"
260
 
261
+ #: custom-field-template/custom-field-template.php:1253
262
  msgid "In case that you would like to replace the box title with the template title."
263
  msgstr "ボックスタイトルをテンプレートタイトルで置き換える場合"
264
 
265
+ #: custom-field-template/custom-field-template.php:1254
266
  msgid "Replace the box title"
267
  msgstr "ボックスタイトルを置き換える"
268
 
269
+ #: custom-field-template/custom-field-template.php:1258
270
  msgid "In case that you would like to deploy the box in each template."
271
  msgstr "テンプレートごとにボックスを配置する場合"
272
 
273
+ #: custom-field-template/custom-field-template.php:1259
274
  msgid "Deploy the box in each template"
275
  msgstr "テンプレートごとにボックスを配置する"
276
 
277
+ #: custom-field-template/custom-field-template.php:1263
278
  msgid "In case that you would like to use the shortcode in the widget."
279
  msgstr "ショートコードをウィジェットで使用したい場合"
280
 
281
+ #: custom-field-template/custom-field-template.php:1264
282
  msgid "Use the shortcode in the widget"
283
  msgstr "ショートコードをウィジェットで使用する"
284
 
285
+ #: custom-field-template/custom-field-template.php:1268
286
  msgid "In case that you would like to use the shortcode in the excerpt."
287
  msgstr "ショートコードを抜粋で使用したい場合"
288
 
289
+ #: custom-field-template/custom-field-template.php:1269
290
  msgid "Use the shortcode in the excerpt"
291
  msgstr "ショートコードを抜粋で使用する"
292
 
293
+ #: custom-field-template/custom-field-template.php:1273
294
  msgid "In case that you would like to use the jQuery validation."
295
  msgstr "jQuery バリデーションを使用したい場合"
296
 
297
+ #: custom-field-template/custom-field-template.php:1274
298
  msgid "Use the jQuery validation"
299
  msgstr "jQuery バリデーションを使用する"
300
 
301
+ #: custom-field-template/custom-field-template.php:1284
302
  msgid "Text to place before every list which is called by the cft shortcode"
303
  msgstr "cft ショートコードで呼ばれるリストの前のテキスト"
304
 
305
+ #: custom-field-template/custom-field-template.php:1286
306
  msgid "Text to place after every list which is called by the cft shortcode"
307
  msgstr "cft ショートコードで呼ばれるリストの後のテキスト"
308
 
309
+ #: custom-field-template/custom-field-template.php:1288
310
  msgid "Text to place before every value which is called by the cft shortcode"
311
  msgstr "cft ショートコードで呼ばれる値の前のテキスト"
312
 
313
+ #: custom-field-template/custom-field-template.php:1290
314
  msgid "Text to place after every value which is called by the cft shortcode"
315
  msgstr "cft ショートコードで呼ばれる値の後のテキスト"
316
 
317
+ #: custom-field-template/custom-field-template.php:1295
318
  msgid "In case that you would like to hide the advertisement right column."
319
  msgstr "右カラムの広告を隠す場合"
320
 
321
+ #: custom-field-template/custom-field-template.php:1296
322
  msgid "I want to use a wider screen."
323
  msgstr "もっと広い画面を使いたい・・・。"
324
 
325
+ #: custom-field-template/custom-field-template.php:1310
326
  msgid "ADMIN CSS"
327
  msgstr "ADMIN CSS"
328
 
329
+ #: custom-field-template/custom-field-template.php:1329
330
  msgid "[cft] and [cftsearch] Shortcode Format"
331
  msgstr "[cft] and [cftsearch] Shortcode Format"
332
 
333
+ #: custom-field-template/custom-field-template.php:1332
334
  msgid "For [cft], [key] will be converted into the value of [key]."
335
  msgstr "[cft]では、[key]は、[key]の値に置換されます。"
336
 
337
+ #: custom-field-template/custom-field-template.php:1333
338
  msgid "For [cftsearch], [key] will be converted into the input field."
339
  msgstr "[cftsearch]では、[key]は、インプットフィールドに置換されます。"
340
 
341
+ #: custom-field-template/custom-field-template.php:1344
342
+ #: custom-field-template/custom-field-template.php:1419
343
  msgid "Use PHP"
344
  msgstr "PHPを使用する"
345
 
346
+ #: custom-field-template/custom-field-template.php:1360
347
  msgid "PHP CODE (Experimental Option)"
348
  msgstr "PHP CODE (Experimental Option)"
349
 
350
+ #: custom-field-template/custom-field-template.php:1362
351
  msgid "Are you sure to save PHP codes? Please do it at your own risk."
352
  msgstr "PHPコードを保存してよろしいですか?自己責任で実行してください。"
353
 
354
+ #: custom-field-template/custom-field-template.php:1363
355
  msgid "For `text` and `textarea`, you must set $value as an string."
356
  msgstr "`text`と`textarea`は$valueを文字列としてセットしてください。"
357
 
358
+ #: custom-field-template/custom-field-template.php:1365
359
  msgid "For `checkbox`, `radio`, and `select`, you must set $values as an array."
360
  msgstr "`checkbox`、`radio`、`select`では、配列として$valuesをセットしてください。"
361
 
362
+ #: custom-field-template/custom-field-template.php:1393
363
  msgid "Auto Hook of `the_content()` (Experimental Option)"
364
  msgstr "Auto Hook of `the_content()` (Experimental Option)"
365
 
366
+ #: custom-field-template/custom-field-template.php:1405
367
  msgid "Position"
368
  msgstr "位置"
369
 
370
+ #: custom-field-template/custom-field-template.php:1406
371
  msgid "Before the content"
372
  msgstr "コンテンツの前"
373
 
374
+ #: custom-field-template/custom-field-template.php:1407
375
  msgid "After the content"
376
  msgstr "コンテンツの後"
377
 
378
+ #: custom-field-template/custom-field-template.php:1408
379
  #, php-format
380
  msgid "Inside the content ([cfthook hook=%d])"
381
  msgstr "コンテンツの中 ([cfthook hook=%d])"
382
 
383
+ #: custom-field-template/custom-field-template.php:1418
384
  msgid "Content"
385
  msgstr "コンテンツ"
386
 
387
+ #: custom-field-template/custom-field-template.php:1420
388
  msgid "Apply to feeds"
389
  msgstr "フィードに適用する"
390
 
391
+ #: custom-field-template/custom-field-template.php:1436
392
  msgid "Rebuild Value Counts"
393
  msgstr "バリューカウントの再構築"
394
 
395
+ #: custom-field-template/custom-field-template.php:1438
396
  msgid "Are you sure to rebuild all value counts?"
397
  msgstr "本当に全てのバリューカウントを再構築しますか?"
398
 
399
+ #: custom-field-template/custom-field-template.php:1442
400
  msgid "Value Counts are used for temporarily saving how many values in each key. Set `valueCount = true` into fields."
401
  msgstr "バリューカウントはキーごとに値がどのくらいあるか一時的に保存するのに使用されます。`valueCount = true`をフィールドにセットしてください。"
402
 
403
+ #: custom-field-template/custom-field-template.php:1446
404
  msgid "Rebuild Value Counts &raquo;"
405
  msgstr "バリューカウントを再構築する &raquo;"
406
 
407
+ #: custom-field-template/custom-field-template.php:1457
408
  msgid "Rebuild Tags"
409
  msgstr "タグの再構築"
410
 
411
+ #: custom-field-template/custom-field-template.php:1459
412
  msgid "Are you sure to rebuild tags?"
413
  msgstr "本当に全てのタグを再構築しますか?"
414
 
415
+ #: custom-field-template/custom-field-template.php:1463
416
  msgid "Rebuild Tags &raquo;"
417
  msgstr "タグを再構築する &raquo;"
418
 
419
+ #: custom-field-template/custom-field-template.php:1474
420
  msgid "Option List"
421
  msgstr "オプションリスト"
422
 
423
+ #: custom-field-template/custom-field-template.php:1648
424
  msgid "Export Options"
425
  msgstr "オプションをエクスポートする"
426
 
427
+ #: custom-field-template/custom-field-template.php:1654
428
  msgid "Export Options &raquo;"
429
  msgstr "オプションをエクスポートする &raquo;"
430
 
431
+ #: custom-field-template/custom-field-template.php:1664
432
  msgid "Import Options"
433
  msgstr "オプションをインポートする"
434
 
435
+ #: custom-field-template/custom-field-template.php:1666
436
  msgid "Are you sure to import options? Options you set will be overwritten."
437
  msgstr "本当にオプションをインポートしてもよろしいですか?設定したオプションは上書きされます。"
438
 
439
+ #: custom-field-template/custom-field-template.php:1670
440
  msgid "Import Options &raquo;"
441
  msgstr "オプションをインポートする &raquo;"
442
 
443
+ #: custom-field-template/custom-field-template.php:1680
444
  msgid "Reset Options"
445
  msgstr "オプションをリセットする"
446
 
447
+ #: custom-field-template/custom-field-template.php:1682
448
  msgid "Are you sure to reset options? Options you set will be reset to the default settings."
449
  msgstr "本当にオプションをリセットしてもよろしいですか?設定したオプションはデフォルトの状態に戻ります。"
450
 
451
+ #: custom-field-template/custom-field-template.php:1686
452
  msgid "Reset Options &raquo;"
453
  msgstr "オプションをリセットする &raquo;"
454
 
455
+ #: custom-field-template/custom-field-template.php:1696
456
  msgid "Delete Options"
457
  msgstr "オプションを削除する"
458
 
459
+ #: custom-field-template/custom-field-template.php:1698
460
  msgid "Are you sure to delete options? Options you set will be deleted."
461
  msgstr "本当にオプションを削除してもよろしいですか?設定したオプションは削除されます。"
462
 
463
+ #: custom-field-template/custom-field-template.php:1702
464
  msgid "Delete Options &raquo;"
465
  msgstr "オプションを削除する &raquo;"
466
 
467
+ #: custom-field-template/custom-field-template.php:1715
468
  msgid "Donation"
469
  msgstr "寄付"
470
 
471
+ #: custom-field-template/custom-field-template.php:1717
472
  msgid "If you liked this plugin, please make a donation via paypal! Any amount is welcome. Your support is much appreciated."
473
  msgstr "このプラグインをお気に召しましたら、Paypalよりご寄付をよろしくお願いいたします。"
474
 
475
+ #: custom-field-template/custom-field-template.php:1731
476
+ #: custom-field-template/custom-field-template.php:1734
477
+ msgid "Custom Field Template Manual"
478
+ msgstr "カスタムフィールドテンプレートマニュアル"
479
+
480
+ #: custom-field-template/custom-field-template.php:1733
481
+ msgid "Do you have any trouble with the plugin setup? Please visit the following manual site."
482
+ msgstr "プラグインの設定にお困りですか?マニュアルサイトをご活用ください。"
483
+
484
+ #: custom-field-template/custom-field-template.php:1740
485
  msgid "CMS x WP"
486
  msgstr "CMS×WP"
487
 
488
+ #: custom-field-template/custom-field-template.php:1742
489
  msgid "There are much more plugins which are useful for developing business websites such as membership sites or ec sites. You could totally treat WordPress as CMS by use of CMS x WP plugins."
490
  msgstr "会員制サイトやECサイトなどのビジネスサイト構築に役立つプラグインが盛りだくさん。CMS×WPのプラグインで WordPress が CMS として大いに活躍します。"
491
 
492
+ #: custom-field-template/custom-field-template.php:1743
493
  msgid "WordPress plugin sales site: CMS x WP"
494
  msgstr "WordPress のプラグイン販売サイト CMS×WP"
495
 
496
+ #: custom-field-template/custom-field-template.php:1838
497
+ #: custom-field-template/custom-field-template.php:1974
498
+ #: custom-field-template/custom-field-template.php:2062
499
+ #: custom-field-template/custom-field-template.php:2241
500
+ #: custom-field-template/custom-field-template.php:2243
501
+ #: custom-field-template/custom-field-template.php:2315
502
+ #: custom-field-template/custom-field-template.php:2527
503
  msgid "Add New"
504
  msgstr "追加"
505
 
506
+ #: custom-field-template/custom-field-template.php:1982
507
  msgid "Clear"
508
  msgstr "解除"
509
 
510
+ #: custom-field-template/custom-field-template.php:2080
511
  msgid "Select"
512
  msgstr "選択してください"
513
 
514
+ #: custom-field-template/custom-field-template.php:2166
515
  msgid "Add an Image"
516
  msgstr ""
517
 
518
+ #: custom-field-template/custom-field-template.php:2171
519
  msgid "Add Video"
520
  msgstr ""
521
 
522
+ #: custom-field-template/custom-field-template.php:2176
523
  msgid "Add Audio"
524
  msgstr ""
525
 
526
+ #: custom-field-template/custom-field-template.php:2180
527
+ #: custom-field-template/custom-field-template.php:2184
528
  msgid "Add Media"
529
  msgstr ""
530
 
531
+ #: custom-field-template/custom-field-template.php:2191
532
  msgid "Toggle"
533
  msgstr "切り替え"
534
 
535
+ #: custom-field-template/custom-field-template.php:2325
536
  msgid " OR "
537
  msgstr " または "
538
 
539
+ #: custom-field-template/custom-field-template.php:2326
540
  msgid "Select by Media Picker"
541
  msgstr "メディアピッカーで選択"
542
 
543
+ #: custom-field-template/custom-field-template.php:2351
544
+ #: custom-field-template/custom-field-template.php:2529
545
  msgid "Delete"
546
  msgstr "削除"
547
 
548
+ #: custom-field-template/custom-field-template.php:2757
549
  msgid "Enable"
550
  msgstr "有効"
551
 
552
+ #: custom-field-template/custom-field-template.php:2761
553
  msgid "Initialize"
554
  msgstr "初期化"
555
 
556
+ #: custom-field-template/custom-field-template.php:2762
557
  msgid "Are you sure to reset current values? Default values will be loaded."
558
  msgstr "現在値をリセットしてもよろしいですか?初期値が読み込まれます。"
559
 
560
+ #: custom-field-template/custom-field-template.php:2767
561
  msgid "Save"
562
  msgstr "保存"
563
 
564
+ #: custom-field-template/custom-field-template.php:3490
565
  msgid "Search &raquo;"
566
  msgstr "検索 &raquo;"
567
 
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: 2.0.4
8
  Author URI: http://wpgogo.com/
9
  */
10
 
@@ -57,10 +57,10 @@ class custom_field_template {
57
 
58
  if ( isset($_REQUEST['cftsearch_submit']) ) :
59
  if ( !empty($_REQUEST['limit']) )
60
- add_action( 'post_limits', array(&$this, 'custom_field_template_post_limits'));
61
- add_filter( 'posts_join', array(&$this, 'custom_field_template_posts_join') );
62
  add_filter( 'posts_where', array(&$this, 'custom_field_template_posts_where'), 100 );
63
- add_filter( 'posts_orderby', array(&$this, 'custom_field_template_posts_orderby' ) );
64
  endif;
65
 
66
  if ( function_exists('add_shortcode') ) :
@@ -341,7 +341,7 @@ class custom_field_template {
341
  }
342
 
343
  function custom_field_template_admin_head() {
344
- global $wp_version;
345
  $options = $this->get_custom_field_template_data();
346
 
347
  if ( !defined('WP_PLUGIN_DIR') )
@@ -737,7 +737,8 @@ class custom_field_template {
737
  wp_enqueue_script( 'jquery' );
738
  wp_enqueue_script( 'jquery-form' );
739
  wp_enqueue_script( 'bgiframe', '/' . PLUGINDIR . '/' . $plugin_dir . '/js/jquery.bgiframe.js', array('jquery') ) ;
740
- wp_enqueue_script( 'textarearesizer', '/' . PLUGINDIR . '/' . $plugin_dir . '/js/jquery.textarearesizer.js', array('jquery') );
 
741
  if( strstr($_SERVER['REQUEST_URI'], 'wp-admin/post-new.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/post.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/page-new.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/page.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/edit.php') || (is_object($post) && $post->post_type=='page') ) :
742
  wp_enqueue_script('date', '/' . PLUGINDIR . '/' . $plugin_dir . '/js/date.js', array('jquery') );
743
  wp_enqueue_script('datePicker', '/' . PLUGINDIR . '/' . $plugin_dir . '/js/jquery.datePicker.js', array('jquery') );
@@ -985,6 +986,7 @@ type = file';
985
  if ( isset($_POST["custom_field_template_custom_post_type"][$i]) ) $options['custom_fields'][$j]['custom_post_type'] = $_POST["custom_field_template_custom_post_type"][$i];
986
  if ( isset($_POST["custom_field_template_template_files"][$i]) ) $options['custom_fields'][$j]['template_files'] = $_POST["custom_field_template_template_files"][$i];
987
  if ( isset($_POST["custom_field_template_disable"][$i]) ) $options['custom_fields'][$j]['disable'] = $_POST["custom_field_template_disable"][$i];
 
988
  $j++;
989
  }
990
  }
@@ -1028,9 +1030,9 @@ type = file';
1028
  unset($options['shortcode_format'], $options['shortcode_format_use_php']);
1029
  $j = 0;
1030
  for($i=0;$i<count($_POST["custom_field_template_shortcode_format"]);$i++) {
1031
- if( $_POST["custom_field_template_shortcode_format"][$i] ) :
1032
  $options['shortcode_format'][$j] = $_POST["custom_field_template_shortcode_format"][$i];
1033
- $options['shortcode_format_use_php'][$j] = $_POST["custom_field_template_shortcode_format_use_php"][$i];
1034
  $j++;
1035
  endif;
1036
  }
@@ -1039,7 +1041,7 @@ type = file';
1039
  elseif ( !empty($_POST['custom_field_template_php_submit']) ) :
1040
  unset($options['php']);
1041
  for($i=0;$i<count($_POST["custom_field_template_php"]);$i++) {
1042
- if( $_POST["custom_field_template_php"][$i] )
1043
  $options['php'][] = $_POST["custom_field_template_php"][$i];
1044
  }
1045
  update_option('custom_field_template_data', $options);
@@ -1160,6 +1162,19 @@ margin-bottom:0pt;
1160
  <input type="text" name="custom_field_template_category[<?php echo $i; ?>]" id="custom_field_template_category[<?php echo $i; ?>]" value="<?php if ( isset($options['custom_fields'][$i]['category']) ) echo esc_attr(stripcslashes($options['custom_fields'][$i]['category'])); ?>" size="80"<?php if ( empty($options['custom_fields'][$i]['category']) ) : echo ' style="display:none;"'; endif; ?> /></p>
1161
  <p><label for="custom_field_template_template_files[<?php echo $i; ?>]"><a href="javascript:void(0);" onclick="jQuery(this).parent().next().next().toggle();"><?php echo sprintf(__('Page Template file name(s) (comma-deliminated)', 'custom-field-template'), $i); ?></a></label>:<br />
1162
  <input type="text" name="custom_field_template_template_files[<?php echo $i; ?>]" id="custom_field_template_template_files[<?php echo $i; ?>]" value="<?php if ( isset($options['custom_fields'][$i]['template_files']) ) echo esc_attr(stripcslashes($options['custom_fields'][$i]['template_files'])); ?>" size="80"<?php if ( empty($options['custom_fields'][$i]['template_files']) ) : echo ' style="display:none;"'; endif; ?> /></p>
 
 
 
 
 
 
 
 
 
 
 
 
 
1163
  <p><label for="custom_field_template_content[<?php echo $i; ?>]"><?php echo sprintf(__('Template Content', 'custom-field-template'), $i); ?></label>:<br />
1164
  <textarea name="custom_field_template_content[<?php echo $i; ?>]" class="resizable large-text" id="custom_field_template_content[<?php echo $i; ?>]" rows="10" cols="80"><?php if ( isset($options['custom_fields'][$i]['content']) ) echo stripcslashes($options['custom_fields'][$i]['content']); ?></textarea></p>
1165
  </td></tr>
@@ -1505,6 +1520,9 @@ hideKey = true<br />
1505
  <th>cols</th><td></td><td></td><td></td><td></td><td>cols = 40</td><td></td>
1506
  </tr>
1507
  <tr>
 
 
 
1508
  <th>tinyMCE</th><td></td><td></td><td></td><td></td><td>tinyMCE = true</td><td></td>
1509
  </tr>
1510
  <tr>
@@ -1712,6 +1730,15 @@ hideKey = true<br />
1712
  <?php
1713
  if ( WPLANG == 'ja' ) :
1714
  ?>
 
 
 
 
 
 
 
 
 
1715
  <div class="postbox" style="min-width:200px;">
1716
  <div class="handlediv" title="<?php _e('Click to toggle', 'custom-field-template'); ?>"><br /></div>
1717
  <h3><?php _e('CMS x WP', 'custom-field-template'); ?></h3>
@@ -1762,7 +1789,7 @@ jQuery(this).addClass("closed");
1762
 
1763
  function make_textfield( $name, $sid, $data ) {
1764
  $cftnum = $size = $default = $hideKey = $label = $code = $class = $style = $before = $after = $maxlength = $multipleButton = $date = $dateFirstDayOfWeek = $dateFormat = $startDate = $endDate = $readOnly = $onclick = $ondblclick = $onkeydown = $onkeypress = $onkeyup = $onmousedown = $onmouseup = $onmouseover = $onmouseout = $onmousemove = $onfocus = $onblur = $onchange = $onselect = '';
1765
- $hide = $addfield = $out = '';
1766
  extract($data);
1767
  $options = $this->get_custom_field_template_data();
1768
 
@@ -1816,37 +1843,39 @@ jQuery(this).addClass("closed");
1816
  $addfield .= '</div>';
1817
  endif;
1818
 
1819
- $out .=
 
 
1820
  '<dl id="dl_' . $name . $sid . '_' . $cftnum . '" class="dl_text">' .
1821
- '<dt><span' . $hide . '><label for="' . $name . $sid . '_' . $cftnum . '">' . $title . '</label></span>'.$addfield.'</dt>' .
1822
  '<dd>';
1823
 
1824
  if ( !empty($label) && empty($options['custom_field_template_replace_keys_by_labels']) )
1825
- $out .= '<p class="label">' . stripcslashes($label) . '</p>';
1826
- $out .= trim($before).'<input id="' . $name . $sid . '_' . $cftnum . '" name="' . $name . '['. $sid . '][]" value="' . esc_attr(trim($value)) . '" type="text" size="' . $size . '"' . $class . $style . $maxlength . $event_output . $readOnly . ' />'.trim($after);
1827
 
1828
  if ( $date == true ) :
1829
- $out .= '<script type="text/javascript">' . "\n" .
1830
  '// <![CDATA[' . "\n";
1831
- if ( is_numeric($dateFirstDayOfWeek) ) $out .= 'Date.firstDayOfWeek = ' . stripcslashes(trim($dateFirstDayOfWeek)) . ";\n";
1832
- if ( $dateFormat ) $out .= 'Date.format = "' . stripcslashes(trim($dateFormat)) . '"' . ";\n";
1833
- $out .= 'jQuery(document).ready(function() { jQuery(".datePicker").css("float", "left"); jQuery(".datePicker").datePicker({';
1834
- if ( $startDate ) $out .= "startDate: " . stripcslashes(trim($startDate));
1835
- if ( $startDate && $endDate ) $out .= ",";
1836
- if ( $endDate ) $out .= "endDate: " . stripcslashes(trim($endDate)) . "";
1837
- $out .= '}); });' . "\n" .
1838
  '// ]]>' . "\n" .
1839
  '</script>';
1840
  endif;
1841
 
1842
- $out .= '</dd></dl>'."\n";
1843
 
1844
- return $out;
1845
  }
1846
 
1847
  function make_checkbox( $name, $sid, $data ) {
1848
  $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 = '';
1849
- $hide = $addfield = $out = '';
1850
  extract($data);
1851
  $options = $this->get_custom_field_template_data();
1852
 
@@ -1882,28 +1911,30 @@ jQuery(this).addClass("closed");
1882
 
1883
  $id = $name . '_' . $this->sanitize_name( $value ) . '_' . $sid . '_' . $cftnum;
1884
 
 
 
1885
  $out .=
1886
  '<dl id="dl_' . $id . '" class="dl_checkbox">' .
1887
- '<dt><span' . $hide . '>' . $title . '</span></dt>' .
1888
  '<dd>';
1889
 
1890
  if ( !empty($label) && !$options['custom_field_template_replace_keys_by_labels'] && $cftnum == 0 )
1891
- $out .= '<p class="label">' . stripcslashes($label) . '</p>';
1892
- $out .= '<label for="' . $id . '" class="selectit"><input id="' . $id . '" name="' . $name . '[' . $sid . '][' . $cftnum . ']" value="' . esc_attr(stripcslashes(trim($value))) . '"' . $checked . ' type="checkbox"' . $class . $style . $event_output . ' /> ';
1893
  if ( $valueLabel )
1894
- $out .= stripcslashes(trim($valueLabel));
1895
  else
1896
- $out .= stripcslashes(trim($value));
1897
- $out .= '</label>';
1898
 
1899
- $out .= '</dd></dl>'."\n";
1900
 
1901
- return $out;
1902
  }
1903
 
1904
  function make_radio( $name, $sid, $data ) {
1905
  $cftnum = $values = $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 = '';
1906
- $hide = $addfield = $out = '';
1907
  extract($data);
1908
  $options = $this->get_custom_field_template_data();
1909
 
@@ -1929,7 +1960,8 @@ jQuery(this).addClass("closed");
1929
  endif;
1930
 
1931
  if ( $hideKey == true ) $hide = ' class="hideKey"';
1932
- if ( !empty($class) ) $class = ' class="' . $class . '"';
 
1933
  if ( !empty($style) ) $style = ' style="' . $style . '"';
1934
 
1935
  if ( !empty($label) && !empty($options['custom_field_template_replace_keys_by_labels']) )
@@ -1946,27 +1978,26 @@ jQuery(this).addClass("closed");
1946
  $addfield .= '<div style="margin-top:-1em;">';
1947
  $addfield .= '<a href="#clear" onclick="var tmp = jQuery(this).parent().parent().parent().clone().insertAfter(jQuery(this).parent().parent().parent());tmp.find('."'input'".').attr('."'checked',false".');if(tmp.find('."'input'".').attr('."'name'".').match(/\[([0-9]+)\]$/)) { matchval = RegExp.$1; matchval++;tmp.find('."'input'".').attr('."'name',".'tmp.find('."'input'".').attr('."'name'".').replace(/\[([0-9]+)\]$/, \'[\'+matchval+\']\'));}jQuery(this).parent().css('."'visibility','hidden'".');jQuery(this).parent().prev().css('."'visibility','hidden'".'); return false;">' . __('Add New', 'custom-field-template') . '</a>';
1948
  $addfield .= '</div>';
1949
- endif;
 
 
 
 
 
 
 
 
1950
 
1951
  $out .=
1952
  '<dl id="dl_' . $name . $sid . '_' . $cftnum . '" class="dl_radio">' .
1953
- '<dt><span' . $hide . '>' . $title . '</span>'.$addfield;
1954
-
1955
- if( $clearButton == true ) {
1956
- $out .= '<div>';
1957
- $out .= '<a href="#clear" onclick="jQuery(this).parent().parent().parent().find(\'input\').attr(\'checked\', \'\'); return false;">' . __('Clear', 'custom-field-template') . '</a>';
1958
- $out .= '</div>';
1959
- }
1960
-
1961
- $out .=
1962
- '</dt>' .
1963
  '<dd>';
1964
 
1965
  if ( !empty($label) && empty($options['custom_field_template_replace_keys_by_labels']) )
1966
- $out .= '<p class="label">' . stripcslashes($label) . '</p>';
1967
  $i = 0;
1968
 
1969
- $out .= trim($before).'<input name="' . $name . '[' . $sid . '][' . $cftnum . ']" value="" type="hidden" />';
1970
 
1971
  if ( is_array($values) ) :
1972
  foreach( $values as $val ) {
@@ -1974,24 +2005,25 @@ jQuery(this).addClass("closed");
1974
 
1975
  $checked = ( stripcslashes(trim( $val )) == trim( $selected ) ) ? 'checked="checked"' : '';
1976
 
1977
- $out .=
1978
  '<label for="' . $id . '" class="selectit"><input id="' . $id . '" name="' . $name . '[' . $sid . '][' . $cftnum . ']" value="' . esc_attr(trim(stripcslashes($val))) . '" ' . $checked . ' type="radio"' . $class . $style . $event_output . ' /> ';
1979
  if ( isset($valueLabels[$i]) )
1980
- $out .= stripcslashes(trim($valueLabels[$i]));
1981
  else
1982
- $out .= stripcslashes(trim($val));
1983
- $out .= '</label><br />';
1984
  $i++;
1985
  }
1986
- endif;
1987
- $out .= trim($after).'</dd></dl>'."\n";
 
1988
 
1989
- return $out;
1990
  }
1991
 
1992
  function make_select( $name, $sid, $data ) {
1993
  $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 = '';
1994
- $hide = $addfield = $out = '';
1995
  extract($data);
1996
  $options = $this->get_custom_field_template_data();
1997
 
@@ -2034,44 +2066,47 @@ jQuery(this).addClass("closed");
2034
  $addfield .= '<div style="margin-top:-1em;">';
2035
  $addfield .= '<a href="#clear" onclick="jQuery(this).parent().parent().parent().clone().insertAfter(jQuery(this).parent().parent().parent()).find('."'select'".').val('."''".');jQuery(this).parent().css('."'visibility','hidden'".');jQuery(this).parent().prev().css('."'visibility','hidden'".'); return false;">' . __('Add New', 'custom-field-template') . '</a>';
2036
  $addfield .= '</div>';
2037
- endif;
 
 
2038
 
2039
  $out .=
2040
  '<dl id="dl_' . $name . $sid . '_' . $cftnum . '" class="dl_select">' .
2041
- '<dt><span' . $hide . '><label for="' . $name . $sid . '_' . $cftnum . '">' . $title . '</label></span>'.$addfield.'</dt>' .
2042
  '<dd>';
2043
 
2044
  if ( !empty($label) && !$options['custom_field_template_replace_keys_by_labels'] )
2045
- $out .= '<p class="label">' . stripcslashes($label) . '</p>';
2046
- $out .= trim($before).'<select id="' . $name . $sid . '_' . $cftnum . '" name="' . $name . '[' . $sid . '][]"' . $class . $style . $event_output . '>';
2047
 
2048
  if ( $selectLabel )
2049
- $out .= '<option value="">' . stripcslashes(trim($selectLabel)) . '</option>';
2050
  else
2051
- $out .= '<option value="">' . __('Select', 'custom-field-template') . '</option>';
2052
 
2053
  $i = 0;
2054
  if ( is_array($values) ) :
2055
  foreach( $values as $val ) {
2056
  $checked = ( stripcslashes(trim( $val )) == trim( $selected ) ) ? 'selected="selected"' : '';
2057
 
2058
- $out .= '<option value="' . esc_attr(stripcslashes(trim($val))) . '" ' . $checked . '>';
2059
  if ( isset($valueLabels[$i]) )
2060
- $out .= stripcslashes(trim($valueLabels[$i]));
2061
  else
2062
- $out .= stripcslashes(trim($val));
2063
- $out .= '</option>';
2064
  $i++;
2065
  }
2066
  endif;
2067
- $out .= '</select>'.trim($after).'</dd></dl>'."\n";
 
2068
 
2069
- return $out;
2070
  }
2071
 
2072
  function make_textarea( $name, $sid, $data ) {
2073
- $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 = '';
2074
- $hide = $addfield = $out = $media = $editorcontainer_class = '';
2075
  extract($data);
2076
  $options = $this->get_custom_field_template_data();
2077
 
@@ -2103,7 +2138,7 @@ jQuery(this).addClass("closed");
2103
  $rand = rand();
2104
 
2105
  if( $tinyMCE == true ) {
2106
- $out = '<script type="text/javascript">' . "\n" .
2107
  '// <![CDATA[' . "\n" .
2108
  'jQuery(document).ready(function() {if ( typeof tinyMCE != "undefined" ) {' . "\n";
2109
 
@@ -2115,12 +2150,12 @@ jQuery(this).addClass("closed");
2115
  $editorcontainer_class = ' class="wp-editor-container"';
2116
  endif;
2117
  if ( !empty($options['custom_field_template_use_wpautop']) ) :
2118
- $out .= 'document.getElementById("'. sha1($name . $rand) . '").value = document.getElementById("'. sha1($name . $rand) . '").value; '.$load_tinyMCE.' tinyMCEID.push("'. sha1($name . $rand) . '");' . "\n";
2119
  else:
2120
- $out .= 'document.getElementById("'. sha1($name . $rand) . '").value = switchEditors.wpautop(document.getElementById("'. sha1($name . $rand) . '").value); '.$load_tinyMCE.' tinyMCEID.push("'. sha1($name . $rand) . '");' . "\n";
2121
  endif;
2122
- $out .= '}});' . "\n";
2123
- $out .= '// ]]>' . "\n" . '</script>';
2124
  }
2125
 
2126
  if ( substr($wp_version, 0, 3) >= '2.5' ) {
@@ -2177,6 +2212,7 @@ jQuery(this).addClass("closed");
2177
  if ( !empty($class) ) $content_class .= ' ' . $class;
2178
  $content_class .= '"';
2179
  if ( !empty($style) ) $style = ' style="' . $style . '"';
 
2180
 
2181
  if ( !empty($label) && !empty($options['custom_field_template_replace_keys_by_labels']) )
2182
  $title = stripcslashes($label);
@@ -2215,43 +2251,46 @@ jQuery(this).addClass("closed");
2215
  $addfield .= '</div>';
2216
  endif;
2217
 
 
 
2218
  $out .=
2219
  '<dl id="dl_' . $name . $sid . '_' . $cftnum . '" class="dl_textarea">' .
2220
- '<dt><span' . $hide . '><label for="' . $name . $sid . '_' . $cftnum . '">' . $title . '</label></span><br />' . $addfield . $media . $switch . '</dt>' .
2221
  '<dd>';
2222
 
2223
  if ( !empty($label) && empty($options['custom_field_template_replace_keys_by_labels']) )
2224
- $out .= '<p class="label">' . stripcslashes($label) . '</p>';
2225
 
2226
- $out .= trim($before);
2227
 
2228
- if ( ($htmlEditor == true || $tinyMCE == true) && substr($wp_version, 0, 3) < '3.3' ) $out .= '<div class="quicktags">';
2229
 
2230
  if ( $htmlEditor == true ) :
2231
  if ( substr($wp_version, 0, 3) < '3.3' ) :
2232
  if( $tinyMCE == true ) $quicktags_hide = ' jQuery(\'#qt_' . sha1($name . $rand) . '_qtags\').hide();';
2233
- $out .= '<script type="text/javascript">' . "\n" . '// <![CDATA[' . '
2234
  jQuery(document).ready(function() { qt_' . sha1($name . $rand) . ' = new QTags(\'qt_' . sha1($name . $rand) . '\', \'' . sha1($name . $rand) . '\', \'editorcontainer_' . sha1($name . $rand) . '\', \'more\'); ' . $quicktags_hide . ' });' . "\n" . '// ]]>' . "\n" . '</script>';
2235
  $editorcontainer_class = ' class="editorcontainer"';
2236
  else :
2237
  if( $tinyMCE == true ) $quicktags_hide = ' jQuery(\'#qt_' . sha1($name . $rand) . '_toolbar\').hide();';
2238
- $out .= '<script type="text/javascript">' . "\n" . '// <![CDATA[' . '
2239
  jQuery(document).ready(function() { new QTags(\'' . sha1($name . $rand) . '\'); QTags._buttonsInit(); ' . $quicktags_hide . ' }); ' . "\n";
2240
- $out .= '// ]]>' . "\n" . '</script>';
2241
  $editorcontainer_class = ' class="wp-editor-container"';
2242
  endif;
2243
  endif;
2244
 
2245
- $out .= '<div' . $editorcontainer_class . ' id="editorcontainer_' . sha1($name . $rand) . '"><textarea id="' . sha1($name . $rand) . '" name="' . $name . '[' . $sid . '][]" rows="' .$rows. '" cols="' . $cols . '"' . $content_class . $style . $event_output . '>' . esc_attr(trim($value)) . '</textarea><input type="hidden" name="'.$name.'_rand['.$sid.']" value="'.$rand.'" /></div>';
2246
- if ( ($htmlEditor == true || $tinyMCE == true) && substr($wp_version, 0, 3) < '3.3' ) $out .= '</div>';
2247
- $out .= trim($after).'</dd></dl>'."\n";
 
2248
 
2249
- return $out;
2250
  }
2251
 
2252
  function make_file( $name, $sid, $data ) {
2253
  $cftnum = $size = $hideKey = $label = $class = $style = $before = $after = $multipleButton = $relation = $mediaLibrary = $mediaPicker = '';
2254
- $hide = $addfield = $out = $picker = '';
2255
  extract($data);
2256
  $options = $this->get_custom_field_template_data();
2257
 
@@ -2292,15 +2331,17 @@ jQuery(this).addClass("closed");
2292
  $picker = __(' OR ', 'custom-field-template');
2293
  $picker .= '<a href="'.$image_upload_iframe_src.'&post_id='.$_REQUEST[ 'post' ].'&TB_iframe=1&tab='.$tab.'" class="thickbox" onclick="jQuery('."'#cft_current_template'".').val(jQuery(this).parent().parent().parent().parent().attr(\'id\').replace(\'cft_\',\'\'));jQuery('."'#cft_clicked_id'".').val(jQuery(this).parent().find(\'input\').attr(\'id\'));">'.__('Select by Media Picker', 'custom-field-template').'</a>';
2294
  endif;
2295
-
 
 
2296
  $out .=
2297
  '<dl id="dl_' . $name . $sid . '_' . $cftnum . '" class="dl_file">' .
2298
- '<dt><span' . $hide . '><label for="' . $name . $sid . '_' . $cftnum . '">' . $title . '</label></span>'.$addfield.'</dt>' .
2299
  '<dd>';
2300
 
2301
  if ( !empty($label) && !$options['custom_field_template_replace_keys_by_labels'] )
2302
- $out .= '<p class="label">' . stripcslashes($label) . '</p>';
2303
- $out .= trim($before).'<input id="' . $name . $sid . '_' . $cftnum . '" name="' . $name . '['.$sid.'][]" type="file" size="' . $size . '"' . $class . $style . ' onchange="if (jQuery(this).val()) { jQuery(\'#cft_save_button\'+jQuery(this).parent().parent().parent().parent().attr(\'id\').replace(\'cft_\',\'\')).attr(\'disabled\', true); jQuery(\'#post-preview\').hide(); } else { jQuery(\'#cft_save_button\').attr(\'disabled\', false); jQuery(\'#post-preview\').show(); }" />'.trim($after).$picker;
2304
 
2305
  if ( isset($value) && ( $value = intval($value) ) && $thumb_url = wp_get_attachment_image_src( $value, 'thumbnail', true ) ) :
2306
  $thumb_url = $thumb_url[0];
@@ -2313,15 +2354,15 @@ jQuery(this).addClass("closed");
2313
  $title = '<a href="'.$image_upload_iframe_src.'&post_id='.$_REQUEST[ 'post' ].'&TB_iframe=1&tab='.$tab.'" class="thickbox">'.$title.'</a>';
2314
  endif;
2315
 
2316
- $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>';
2317
- $out .= '<input type="hidden" id="' . $name . $sid . '_' . $cftnum . '_hide" name="'.$name . '[' . $sid . '][' . $cftnum . ']" value="' . $value . '" />';
2318
  else :
2319
- $out .= '<input type="hidden" id="' . $name . $sid . '_' . $cftnum . '_hide" name="'.$name . '[' . $sid . '][' . $cftnum . ']" value="" />';
2320
  endif;
2321
 
2322
- $out .= '</dd></dl>'."\n";
2323
 
2324
- return $out;
2325
  }
2326
 
2327
 
@@ -2355,7 +2396,7 @@ jQuery(this).addClass("closed");
2355
  return;
2356
  endif;
2357
  else :
2358
- if ( $_REQUEST['post_type']!=$options['custom_fields'][$id]['post_type'] && $post->post_type!=$options['custom_fields'][$id]['post_type'] ) :
2359
  return;
2360
  endif;
2361
  endif;
@@ -2450,9 +2491,14 @@ jQuery(this).addClass("closed");
2450
  $out .= '<div id="cft_'.$id.'">';
2451
  $out .= '<div>';
2452
  $out .= '<input type="hidden" name="custom-field-template-id[]" id="custom-field-template-id" value="' . $id . '" />';
 
 
 
 
 
2453
  foreach( $fields as $field_key => $field_val ) :
2454
  foreach( $field_val as $title => $data ) {
2455
- $class = $style = $addfield = '';
2456
  if ( isset($data['parentSN']) && is_numeric($data['parentSN']) ) $parentSN = $data['parentSN'];
2457
  else $parentSN = $field_key;
2458
  if ( isset($data['level']) && is_numeric($data['level']) ) :
@@ -2461,13 +2507,13 @@ jQuery(this).addClass("closed");
2461
  if( $data['type'] == 'break' ) {
2462
  if ( !empty($data['class']) ) $class = ' class="' . $data['class'] . '"';
2463
  if ( !empty($data['style']) ) $style = ' style="' . $data['style'] . '"';
2464
- $out .= '</div><div' . $class . $style . '>';
2465
  }
2466
  else if( $data['type'] == 'fieldset_open' ) {
2467
  if ( !empty($data['class']) ) $class = ' class="' . $data['class'] . '"';
2468
  if ( !empty($data['style']) ) $style = ' style="' . $data['style'] . '"';
2469
- $out .= '<fieldset' . $class . $style . '>'."\n";
2470
- $out .= '<input type="hidden" name="' . $this->sanitize_name( $title ) . '[]" value="1" />'."\n";
2471
 
2472
  if ( isset($data['multipleButton']) && $data['multipleButton'] == true ) :
2473
  $addfield .= ' <span>';
@@ -2494,36 +2540,53 @@ jQuery(this).addClass("closed");
2494
  if ( isset($data['legend']) || isset($addfield) ) :
2495
  if ( !isset($data['legend']) ) $data['legend'] = '';
2496
  if ( !isset($addfield) ) $addfield = '';
2497
- $out .= '<legend>' . stripcslashes(trim($data['legend'])) . $addfield . '</legend>';
2498
  endif;
2499
  }
2500
  else if( $data['type'] == 'fieldset_close' ) {
2501
- $out .= '</fieldset>';
2502
  }
2503
  else if( $data['type'] == 'textfield' || $data['type'] == 'text' ) {
2504
- $out .= $this->make_textfield( $title, $parentSN, $data );
2505
  }
2506
  else if( $data['type'] == 'checkbox' ) {
2507
- $out .= $this->make_checkbox( $title, $parentSN, $data );
2508
  }
2509
  else if( $data['type'] == 'radio' ) {
2510
  $data['values'] = explode( '#', $data['value'] );
2511
  if ( isset($data['valueLabel']) ) $data['valueLabels'] = explode( '#', $data['valueLabel'] );
2512
- $out .= $this->make_radio( $title, $parentSN, $data );
2513
  }
2514
  else if( $data['type'] == 'select' ) {
2515
  $data['values'] = explode( '#', $data['value'] );
2516
  if ( isset($data['valueLabel']) ) $data['valueLabels'] = explode( '#', $data['valueLabel'] );
2517
- $out .= $this->make_select( $title, $parentSN, $data );
2518
  }
2519
  else if( $data['type'] == 'textarea' ) {
2520
- $out .= $this->make_textarea( $title, $parentSN, $data );
2521
  }
2522
  else if( $data['type'] == 'file' ) {
2523
- $out .= $this->make_file( $title, $parentSN, $data );
2524
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2525
  }
2526
  endforeach;
 
 
 
2527
  $out .= '<script type="text/javascript">' . "\n" .
2528
  '// <![CDATA[' . "\n";
2529
  $out .= ' jQuery(document).ready(function() {' . "\n" .
@@ -2777,9 +2840,9 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
2777
  continue;
2778
  endif;
2779
 
2780
- $cat_ids = explode(',', $options['custom_fields'][$i]['category']);
2781
- $template_files = explode(',', $options['custom_fields'][$i]['template_files']);
2782
- $post_ids = explode(',', $options['custom_fields'][$i]['post']);
2783
  $cat_ids = array_filter( $cat_ids );
2784
  $template_files = array_filter( $template_files );
2785
  $post_ids = array_filter( $post_ids );
@@ -2887,7 +2950,7 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
2887
  return $id;
2888
 
2889
  if ( !isset($_REQUEST['custom-field-template-id']) ) :
2890
- unset($options['posts'][$id]);
2891
  update_option('custom_field_template_data', $options);
2892
  return $id;
2893
  endif;
@@ -2947,7 +3010,7 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
2947
  continue;
2948
  endif;
2949
 
2950
- unset($field_key);
2951
  if ( isset($_REQUEST[$name]) && is_array($_REQUEST[$name]) ) :
2952
  foreach( $_REQUEST[$name] as $tmp_key => $tmp_val ) :
2953
  $field_key = $tmp_key;
@@ -3199,7 +3262,7 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
3199
  endif;
3200
  if ( isset($data['multiple']) && $data['multiple'] == true && $data['type'] != 'checkbox' && $data['type'] != 'fieldset_open' && !isset($fieldset) ) :
3201
  $counter = isset($_REQUEST[$this->sanitize_name($title)][$tmp_parentSN+$gap]) ? count($_REQUEST[$this->sanitize_name($title)][$tmp_parentSN+$gap]) : 0;
3202
- if ( $data['type'] == 'file' && $_FILES[$this->sanitize_name($title)] ) $counter = (int)count($_FILES[$this->sanitize_name($title)]['name'][$tmp_parentSN+$gap])+1;
3203
  if ( isset($_REQUEST['post_ID']) ) $org_counter = count($this->get_post_meta( $_REQUEST['post_ID'], $title ));
3204
  else if ( isset($_REQUEST['post']) ) $org_counter = count($this->get_post_meta( $_REQUEST['post'], $title ));
3205
  else $org_counter = 1;
@@ -3828,7 +3891,7 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
3828
 
3829
  function custom_field_template_posts_join($sql) {
3830
  if ( !in_array($_REQUEST['orderby'], array('post_author', 'post_date', 'post_title', 'post_modified', 'menu_order', 'post_parent', 'ID')) ):
3831
- if ( ($_REQUEST['order'] == 'ASC' || $_REQUEST['order'] == 'DESC') && $_REQUEST['orderby'] ) :
3832
  global $wpdb;
3833
 
3834
  $sql = $wpdb->prepare(" LEFT JOIN `" . $wpdb->postmeta . "` AS meta ON (`" . $wpdb->posts . "`.ID = meta.post_id AND meta.meta_key = %s)", $_REQUEST['orderby']);
@@ -3855,6 +3918,7 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
3855
  $sql = " meta.meta_value " . $_REQUEST['order'];
3856
  endif;
3857
  endif;
 
3858
  return $sql;
3859
  endif;
3860
 
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: 2.0.5
8
  Author URI: http://wpgogo.com/
9
  */
10
 
57
 
58
  if ( isset($_REQUEST['cftsearch_submit']) ) :
59
  if ( !empty($_REQUEST['limit']) )
60
+ add_action( 'post_limits', array(&$this, 'custom_field_template_post_limits'), 100);
61
+ add_filter( 'posts_join', array(&$this, 'custom_field_template_posts_join'), 100 );
62
  add_filter( 'posts_where', array(&$this, 'custom_field_template_posts_where'), 100 );
63
+ add_filter( 'posts_orderby', array(&$this, 'custom_field_template_posts_orderby'), 100 );
64
  endif;
65
 
66
  if ( function_exists('add_shortcode') ) :
341
  }
342
 
343
  function custom_field_template_admin_head() {
344
+ global $wp_version, $post;
345
  $options = $this->get_custom_field_template_data();
346
 
347
  if ( !defined('WP_PLUGIN_DIR') )
737
  wp_enqueue_script( 'jquery' );
738
  wp_enqueue_script( 'jquery-form' );
739
  wp_enqueue_script( 'bgiframe', '/' . PLUGINDIR . '/' . $plugin_dir . '/js/jquery.bgiframe.js', array('jquery') ) ;
740
+ if (strpos($_SERVER['REQUEST_URI'], 'custom-field-template') !== false )
741
+ wp_enqueue_script( 'textarearesizer', '/' . PLUGINDIR . '/' . $plugin_dir . '/js/jquery.textarearesizer.js', array('jquery') );
742
  if( strstr($_SERVER['REQUEST_URI'], 'wp-admin/post-new.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/post.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/page-new.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/page.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/edit.php') || (is_object($post) && $post->post_type=='page') ) :
743
  wp_enqueue_script('date', '/' . PLUGINDIR . '/' . $plugin_dir . '/js/date.js', array('jquery') );
744
  wp_enqueue_script('datePicker', '/' . PLUGINDIR . '/' . $plugin_dir . '/js/jquery.datePicker.js', array('jquery') );
986
  if ( isset($_POST["custom_field_template_custom_post_type"][$i]) ) $options['custom_fields'][$j]['custom_post_type'] = $_POST["custom_field_template_custom_post_type"][$i];
987
  if ( isset($_POST["custom_field_template_template_files"][$i]) ) $options['custom_fields'][$j]['template_files'] = $_POST["custom_field_template_template_files"][$i];
988
  if ( isset($_POST["custom_field_template_disable"][$i]) ) $options['custom_fields'][$j]['disable'] = $_POST["custom_field_template_disable"][$i];
989
+ $options['custom_fields'][$j]['format'] = isset($_POST["custom_field_template_format"][$i]) ? $_POST["custom_field_template_format"][$i] : '';
990
  $j++;
991
  }
992
  }
1030
  unset($options['shortcode_format'], $options['shortcode_format_use_php']);
1031
  $j = 0;
1032
  for($i=0;$i<count($_POST["custom_field_template_shortcode_format"]);$i++) {
1033
+ if( !empty($_POST["custom_field_template_shortcode_format"][$i]) ) :
1034
  $options['shortcode_format'][$j] = $_POST["custom_field_template_shortcode_format"][$i];
1035
+ $options['shortcode_format_use_php'][$j] = isset($_POST["custom_field_template_shortcode_format_use_php"][$i]) ? $_POST["custom_field_template_shortcode_format_use_php"][$i] : '';
1036
  $j++;
1037
  endif;
1038
  }
1041
  elseif ( !empty($_POST['custom_field_template_php_submit']) ) :
1042
  unset($options['php']);
1043
  for($i=0;$i<count($_POST["custom_field_template_php"]);$i++) {
1044
+ if( isset($_POST["custom_field_template_php"][$i]) )
1045
  $options['php'][] = $_POST["custom_field_template_php"][$i];
1046
  }
1047
  update_option('custom_field_template_data', $options);
1162
  <input type="text" name="custom_field_template_category[<?php echo $i; ?>]" id="custom_field_template_category[<?php echo $i; ?>]" value="<?php if ( isset($options['custom_fields'][$i]['category']) ) echo esc_attr(stripcslashes($options['custom_fields'][$i]['category'])); ?>" size="80"<?php if ( empty($options['custom_fields'][$i]['category']) ) : echo ' style="display:none;"'; endif; ?> /></p>
1163
  <p><label for="custom_field_template_template_files[<?php echo $i; ?>]"><a href="javascript:void(0);" onclick="jQuery(this).parent().next().next().toggle();"><?php echo sprintf(__('Page Template file name(s) (comma-deliminated)', 'custom-field-template'), $i); ?></a></label>:<br />
1164
  <input type="text" name="custom_field_template_template_files[<?php echo $i; ?>]" id="custom_field_template_template_files[<?php echo $i; ?>]" value="<?php if ( isset($options['custom_fields'][$i]['template_files']) ) echo esc_attr(stripcslashes($options['custom_fields'][$i]['template_files'])); ?>" size="80"<?php if ( empty($options['custom_fields'][$i]['template_files']) ) : echo ' style="display:none;"'; endif; ?> /></p>
1165
+ <p><label for="custom_field_template_format[<?php echo $i; ?>]"><a href="javascript:void(0);" onclick="jQuery(this).parent().next().next().toggle();"><?php echo sprintf(__('Template Format', 'custom-field-template'), $i); ?></a></label>:<br />
1166
+ <select name="custom_field_template_format[<?php echo $i; ?>]" <?php if ( !isset($options['custom_fields'][$i]['format']) || !is_numeric($options['custom_fields'][$i]['format']) ) : echo ' style="display:none;"'; endif; ?>>
1167
+ <option value=""></option>
1168
+ <?php
1169
+ if ( isset($options['shortcode_format']) ) $count = count($options['shortcode_format']);
1170
+ else $count = 0;
1171
+ for ($j=0;$j<$count;$j++) :
1172
+ ?>
1173
+ <option value="<?php echo $j; ?>"<?php if ( isset($options['custom_fields'][$i]['format']) && is_numeric($options['custom_fields'][$i]['format']) ) selected($j, $options['custom_fields'][$i]['format']); ?>>FORMAT #<?php echo $j; ?></option>
1174
+ <?php
1175
+ endfor;
1176
+ ?>
1177
+ </select></p>
1178
  <p><label for="custom_field_template_content[<?php echo $i; ?>]"><?php echo sprintf(__('Template Content', 'custom-field-template'), $i); ?></label>:<br />
1179
  <textarea name="custom_field_template_content[<?php echo $i; ?>]" class="resizable large-text" id="custom_field_template_content[<?php echo $i; ?>]" rows="10" cols="80"><?php if ( isset($options['custom_fields'][$i]['content']) ) echo stripcslashes($options['custom_fields'][$i]['content']); ?></textarea></p>
1180
  </td></tr>
1520
  <th>cols</th><td></td><td></td><td></td><td></td><td>cols = 40</td><td></td>
1521
  </tr>
1522
  <tr>
1523
+ <th>wrap</th><td></td><td></td><td></td><td></td><td>wrap = off</td><td></td>
1524
+ </tr>
1525
+ <tr>
1526
  <th>tinyMCE</th><td></td><td></td><td></td><td></td><td>tinyMCE = true</td><td></td>
1527
  </tr>
1528
  <tr>
1730
  <?php
1731
  if ( WPLANG == 'ja' ) :
1732
  ?>
1733
+ <div class="postbox" style="min-width:200px;">
1734
+ <div class="handlediv" title="<?php _e('Click to toggle', 'custom-field-template'); ?>"><br /></div>
1735
+ <h3><?php _e('Custom Field Template Manual', 'custom-field-template'); ?></h3>
1736
+ <div class="inside">
1737
+ <p><?php _e('Do you have any trouble with the plugin setup? Please visit the following manual site.', 'custom-field-template'); ?></p>
1738
+ <p style="text-align:center"><a href="http://ja.wpcft.com/" target="_blank"><?php _e('Custom Field Template Manual', 'custom-field-template'); ?></a></p>
1739
+ </div>
1740
+ </div>
1741
+
1742
  <div class="postbox" style="min-width:200px;">
1743
  <div class="handlediv" title="<?php _e('Click to toggle', 'custom-field-template'); ?>"><br /></div>
1744
  <h3><?php _e('CMS x WP', 'custom-field-template'); ?></h3>
1789
 
1790
  function make_textfield( $name, $sid, $data ) {
1791
  $cftnum = $size = $default = $hideKey = $label = $code = $class = $style = $before = $after = $maxlength = $multipleButton = $date = $dateFirstDayOfWeek = $dateFormat = $startDate = $endDate = $readOnly = $onclick = $ondblclick = $onkeydown = $onkeypress = $onkeyup = $onmousedown = $onmouseup = $onmouseover = $onmouseout = $onmousemove = $onfocus = $onblur = $onchange = $onselect = '';
1792
+ $hide = $addfield = $out = $out_key = $out_value = '';
1793
  extract($data);
1794
  $options = $this->get_custom_field_template_data();
1795
 
1843
  $addfield .= '</div>';
1844
  endif;
1845
 
1846
+ $out_key = '<span' . $hide . '><label for="' . $name . $sid . '_' . $cftnum . '">' . $title . '</label></span>'.$addfield;
1847
+
1848
+ $out =
1849
  '<dl id="dl_' . $name . $sid . '_' . $cftnum . '" class="dl_text">' .
1850
+ '<dt>'.$out_key.'</dt>' .
1851
  '<dd>';
1852
 
1853
  if ( !empty($label) && empty($options['custom_field_template_replace_keys_by_labels']) )
1854
+ $out_value .= '<p class="label">' . stripcslashes($label) . '</p>';
1855
+ $out_value .= trim($before).'<input id="' . $name . $sid . '_' . $cftnum . '" name="' . $name . '['. $sid . '][]" value="' . esc_attr(trim($value)) . '" type="text" size="' . $size . '"' . $class . $style . $maxlength . $event_output . $readOnly . ' />'.trim($after);
1856
 
1857
  if ( $date == true ) :
1858
+ $out_value .= '<script type="text/javascript">' . "\n" .
1859
  '// <![CDATA[' . "\n";
1860
+ if ( is_numeric($dateFirstDayOfWeek) ) $out_value .= 'Date.firstDayOfWeek = ' . stripcslashes(trim($dateFirstDayOfWeek)) . ";\n";
1861
+ if ( $dateFormat ) $out_value .= 'Date.format = "' . stripcslashes(trim($dateFormat)) . '"' . ";\n";
1862
+ $out_value .= 'jQuery(document).ready(function() { jQuery(".datePicker").css("float", "left"); jQuery(".datePicker").datePicker({';
1863
+ if ( $startDate ) $out_value .= "startDate: " . stripcslashes(trim($startDate));
1864
+ if ( $startDate && $endDate ) $out_value .= ",";
1865
+ if ( $endDate ) $out_value .= "endDate: " . stripcslashes(trim($endDate)) . "";
1866
+ $out_value .= '}); });' . "\n" .
1867
  '// ]]>' . "\n" .
1868
  '</script>';
1869
  endif;
1870
 
1871
+ $out .= $out_value.'</dd></dl>'."\n";
1872
 
1873
+ return array($out, $out_key, $out_value);
1874
  }
1875
 
1876
  function make_checkbox( $name, $sid, $data ) {
1877
  $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 = '';
1878
+ $hide = $addfield = $out = $out_key = $out_value = '';
1879
  extract($data);
1880
  $options = $this->get_custom_field_template_data();
1881
 
1911
 
1912
  $id = $name . '_' . $this->sanitize_name( $value ) . '_' . $sid . '_' . $cftnum;
1913
 
1914
+ $out_key = '<span' . $hide . '>' . $title . '</span>';
1915
+
1916
  $out .=
1917
  '<dl id="dl_' . $id . '" class="dl_checkbox">' .
1918
+ '<dt>'.$out_key.'</dt>' .
1919
  '<dd>';
1920
 
1921
  if ( !empty($label) && !$options['custom_field_template_replace_keys_by_labels'] && $cftnum == 0 )
1922
+ $out_value .= '<p class="label">' . stripcslashes($label) . '</p>';
1923
+ $out_value .= '<label for="' . $id . '" class="selectit"><input id="' . $id . '" name="' . $name . '[' . $sid . '][' . $cftnum . ']" value="' . esc_attr(stripcslashes(trim($value))) . '"' . $checked . ' type="checkbox"' . $class . $style . $event_output . ' /> ';
1924
  if ( $valueLabel )
1925
+ $out_value .= stripcslashes(trim($valueLabel));
1926
  else
1927
+ $out_value .= stripcslashes(trim($value));
1928
+ $out_value .= '</label> ';
1929
 
1930
+ $out .= $out_value.'</dd></dl>'."\n";
1931
 
1932
+ return array($out, $out_key, $out_value);
1933
  }
1934
 
1935
  function make_radio( $name, $sid, $data ) {
1936
  $cftnum = $values = $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 = '';
1937
+ $hide = $addfield = $out = $out_key = $out_value = '';
1938
  extract($data);
1939
  $options = $this->get_custom_field_template_data();
1940
 
1960
  endif;
1961
 
1962
  if ( $hideKey == true ) $hide = ' class="hideKey"';
1963
+ $class .= ' '.$name . $sid;
1964
+ if ( !empty($class) ) $class = ' class="' . trim($class) . '"';
1965
  if ( !empty($style) ) $style = ' style="' . $style . '"';
1966
 
1967
  if ( !empty($label) && !empty($options['custom_field_template_replace_keys_by_labels']) )
1978
  $addfield .= '<div style="margin-top:-1em;">';
1979
  $addfield .= '<a href="#clear" onclick="var tmp = jQuery(this).parent().parent().parent().clone().insertAfter(jQuery(this).parent().parent().parent());tmp.find('."'input'".').attr('."'checked',false".');if(tmp.find('."'input'".').attr('."'name'".').match(/\[([0-9]+)\]$/)) { matchval = RegExp.$1; matchval++;tmp.find('."'input'".').attr('."'name',".'tmp.find('."'input'".').attr('."'name'".').replace(/\[([0-9]+)\]$/, \'[\'+matchval+\']\'));}jQuery(this).parent().css('."'visibility','hidden'".');jQuery(this).parent().prev().css('."'visibility','hidden'".'); return false;">' . __('Add New', 'custom-field-template') . '</a>';
1980
  $addfield .= '</div>';
1981
+ endif;
1982
+
1983
+ $out_key = '<span' . $hide . '>' . $title . '</span>'.$addfield;
1984
+
1985
+ if( $clearButton == true ) {
1986
+ $out_key .= '<div>';
1987
+ $out_key .= '<a href="#clear" onclick="jQuery(\'.'.$name . $sid.'\').attr(\'checked\', false); return false;">' . __('Clear', 'custom-field-template') . '</a>';
1988
+ $out_key .= '</div>';
1989
+ }
1990
 
1991
  $out .=
1992
  '<dl id="dl_' . $name . $sid . '_' . $cftnum . '" class="dl_radio">' .
1993
+ '<dt>'.$out_key.'</dt>' .
 
 
 
 
 
 
 
 
 
1994
  '<dd>';
1995
 
1996
  if ( !empty($label) && empty($options['custom_field_template_replace_keys_by_labels']) )
1997
+ $out_value .= '<p class="label">' . stripcslashes($label) . '</p>';
1998
  $i = 0;
1999
 
2000
+ $out_value .= trim($before).'<input name="' . $name . '[' . $sid . '][' . $cftnum . ']" value="" type="hidden" />';
2001
 
2002
  if ( is_array($values) ) :
2003
  foreach( $values as $val ) {
2005
 
2006
  $checked = ( stripcslashes(trim( $val )) == trim( $selected ) ) ? 'checked="checked"' : '';
2007
 
2008
+ $out_value .=
2009
  '<label for="' . $id . '" class="selectit"><input id="' . $id . '" name="' . $name . '[' . $sid . '][' . $cftnum . ']" value="' . esc_attr(trim(stripcslashes($val))) . '" ' . $checked . ' type="radio"' . $class . $style . $event_output . ' /> ';
2010
  if ( isset($valueLabels[$i]) )
2011
+ $out_value .= stripcslashes(trim($valueLabels[$i]));
2012
  else
2013
+ $out_value .= stripcslashes(trim($val));
2014
+ $out_value .= '</label> ';
2015
  $i++;
2016
  }
2017
+ endif;
2018
+ $out_value .= trim($after);
2019
+ $out .= $out_value.'</dd></dl>'."\n";
2020
 
2021
+ return array($out, $out_key, $out_value);
2022
  }
2023
 
2024
  function make_select( $name, $sid, $data ) {
2025
  $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 = '';
2026
+ $hide = $addfield = $out = $out_key = $out_value = '';
2027
  extract($data);
2028
  $options = $this->get_custom_field_template_data();
2029
 
2066
  $addfield .= '<div style="margin-top:-1em;">';
2067
  $addfield .= '<a href="#clear" onclick="jQuery(this).parent().parent().parent().clone().insertAfter(jQuery(this).parent().parent().parent()).find('."'select'".').val('."''".');jQuery(this).parent().css('."'visibility','hidden'".');jQuery(this).parent().prev().css('."'visibility','hidden'".'); return false;">' . __('Add New', 'custom-field-template') . '</a>';
2068
  $addfield .= '</div>';
2069
+ endif;
2070
+
2071
+ $out_key = '<span' . $hide . '><label for="' . $name . $sid . '_' . $cftnum . '">' . $title . '</label></span>'.$addfield;
2072
 
2073
  $out .=
2074
  '<dl id="dl_' . $name . $sid . '_' . $cftnum . '" class="dl_select">' .
2075
+ '<dt>'.$out_key.'</dt>' .
2076
  '<dd>';
2077
 
2078
  if ( !empty($label) && !$options['custom_field_template_replace_keys_by_labels'] )
2079
+ $out_value .= '<p class="label">' . stripcslashes($label) . '</p>';
2080
+ $out_value .= trim($before).'<select id="' . $name . $sid . '_' . $cftnum . '" name="' . $name . '[' . $sid . '][]"' . $class . $style . $event_output . '>';
2081
 
2082
  if ( $selectLabel )
2083
+ $out_value .= '<option value="">' . stripcslashes(trim($selectLabel)) . '</option>';
2084
  else
2085
+ $out_value .= '<option value="">' . __('Select', 'custom-field-template') . '</option>';
2086
 
2087
  $i = 0;
2088
  if ( is_array($values) ) :
2089
  foreach( $values as $val ) {
2090
  $checked = ( stripcslashes(trim( $val )) == trim( $selected ) ) ? 'selected="selected"' : '';
2091
 
2092
+ $out_value .= '<option value="' . esc_attr(stripcslashes(trim($val))) . '" ' . $checked . '>';
2093
  if ( isset($valueLabels[$i]) )
2094
+ $out_value .= stripcslashes(trim($valueLabels[$i]));
2095
  else
2096
+ $out_value .= stripcslashes(trim($val));
2097
+ $out_value .= '</option>';
2098
  $i++;
2099
  }
2100
  endif;
2101
+ $out_value .= '</select>'.trim($after);
2102
+ $out .= $out_value.'</dd></dl>'."\n";
2103
 
2104
+ return array($out, $out_key, $out_value);
2105
  }
2106
 
2107
  function make_textarea( $name, $sid, $data ) {
2108
+ $cftnum = $rows = $cols = $tinyMCE = $htmlEditor = $mediaButton = $default = $hideKey = $label = $code = $class = $style = $wrap = $before = $after = $multipleButton = $mediaOffMedia = $mediaOffImage = $mediaOffVideo = $mediaOffAudio = $onclick = $ondblclick = $onkeydown = $onkeypress = $onkeyup = $onmousedown = $onmouseup = $onmouseover = $onmouseout = $onmousemove = $onfocus = $onblur = $onchange = $onselect = '';
2109
+ $hide = $addfield = $out = $out_key = $out_value = $media = $editorcontainer_class = '';
2110
  extract($data);
2111
  $options = $this->get_custom_field_template_data();
2112
 
2138
  $rand = rand();
2139
 
2140
  if( $tinyMCE == true ) {
2141
+ $out_value = '<script type="text/javascript">' . "\n" .
2142
  '// <![CDATA[' . "\n" .
2143
  'jQuery(document).ready(function() {if ( typeof tinyMCE != "undefined" ) {' . "\n";
2144
 
2150
  $editorcontainer_class = ' class="wp-editor-container"';
2151
  endif;
2152
  if ( !empty($options['custom_field_template_use_wpautop']) ) :
2153
+ $out_value .= 'document.getElementById("'. sha1($name . $rand) . '").value = document.getElementById("'. sha1($name . $rand) . '").value; '.$load_tinyMCE.' tinyMCEID.push("'. sha1($name . $rand) . '");' . "\n";
2154
  else:
2155
+ $out_value .= 'document.getElementById("'. sha1($name . $rand) . '").value = switchEditors.wpautop(document.getElementById("'. sha1($name . $rand) . '").value); '.$load_tinyMCE.' tinyMCEID.push("'. sha1($name . $rand) . '");' . "\n";
2156
  endif;
2157
+ $out_value .= '}});' . "\n";
2158
+ $out_value .= '// ]]>' . "\n" . '</script>';
2159
  }
2160
 
2161
  if ( substr($wp_version, 0, 3) >= '2.5' ) {
2212
  if ( !empty($class) ) $content_class .= ' ' . $class;
2213
  $content_class .= '"';
2214
  if ( !empty($style) ) $style = ' style="' . $style . '"';
2215
+ if ( !empty($wrap) && ($wrap == 'soft' || $wrap == 'hard' || $wrap == 'off') ) $wrap = ' wrap="' . $wrap . '"';
2216
 
2217
  if ( !empty($label) && !empty($options['custom_field_template_replace_keys_by_labels']) )
2218
  $title = stripcslashes($label);
2251
  $addfield .= '</div>';
2252
  endif;
2253
 
2254
+ $out_key = '<span' . $hide . '><label for="' . $name . $sid . '_' . $cftnum . '">' . $title . '</label></span><br />' . $addfield . $media . $switch;
2255
+
2256
  $out .=
2257
  '<dl id="dl_' . $name . $sid . '_' . $cftnum . '" class="dl_textarea">' .
2258
+ '<dt>'.$out_key.'</dt>' .
2259
  '<dd>';
2260
 
2261
  if ( !empty($label) && empty($options['custom_field_template_replace_keys_by_labels']) )
2262
+ $out_value .= '<p class="label">' . stripcslashes($label) . '</p>';
2263
 
2264
+ $out_value .= trim($before);
2265
 
2266
+ if ( ($htmlEditor == true || $tinyMCE == true) && substr($wp_version, 0, 3) < '3.3' ) $out_value .= '<div class="quicktags">';
2267
 
2268
  if ( $htmlEditor == true ) :
2269
  if ( substr($wp_version, 0, 3) < '3.3' ) :
2270
  if( $tinyMCE == true ) $quicktags_hide = ' jQuery(\'#qt_' . sha1($name . $rand) . '_qtags\').hide();';
2271
+ $out_value .= '<script type="text/javascript">' . "\n" . '// <![CDATA[' . '
2272
  jQuery(document).ready(function() { qt_' . sha1($name . $rand) . ' = new QTags(\'qt_' . sha1($name . $rand) . '\', \'' . sha1($name . $rand) . '\', \'editorcontainer_' . sha1($name . $rand) . '\', \'more\'); ' . $quicktags_hide . ' });' . "\n" . '// ]]>' . "\n" . '</script>';
2273
  $editorcontainer_class = ' class="editorcontainer"';
2274
  else :
2275
  if( $tinyMCE == true ) $quicktags_hide = ' jQuery(\'#qt_' . sha1($name . $rand) . '_toolbar\').hide();';
2276
+ $out_value .= '<script type="text/javascript">' . "\n" . '// <![CDATA[' . '
2277
  jQuery(document).ready(function() { new QTags(\'' . sha1($name . $rand) . '\'); QTags._buttonsInit(); ' . $quicktags_hide . ' }); ' . "\n";
2278
+ $out_value .= '// ]]>' . "\n" . '</script>';
2279
  $editorcontainer_class = ' class="wp-editor-container"';
2280
  endif;
2281
  endif;
2282
 
2283
+ $out_value .= '<div' . $editorcontainer_class . ' id="editorcontainer_' . sha1($name . $rand) . '"><textarea id="' . sha1($name . $rand) . '" name="' . $name . '[' . $sid . '][]" rows="' .$rows. '" cols="' . $cols . '"' . $content_class . $style . $event_output . $wrap . '>' . esc_attr(trim($value)) . '</textarea><input type="hidden" name="'.$name.'_rand['.$sid.']" value="'.$rand.'" /></div>';
2284
+ if ( ($htmlEditor == true || $tinyMCE == true) && substr($wp_version, 0, 3) < '3.3' ) $out_value .= '</div>';
2285
+ $out_value .= trim($after);
2286
+ $out .= $out_value.'</dd></dl>'."\n";
2287
 
2288
+ return array($out, $out_key, $out_value);
2289
  }
2290
 
2291
  function make_file( $name, $sid, $data ) {
2292
  $cftnum = $size = $hideKey = $label = $class = $style = $before = $after = $multipleButton = $relation = $mediaLibrary = $mediaPicker = '';
2293
+ $hide = $addfield = $out = $out_key = $out_value = $picker = '';
2294
  extract($data);
2295
  $options = $this->get_custom_field_template_data();
2296
 
2331
  $picker = __(' OR ', 'custom-field-template');
2332
  $picker .= '<a href="'.$image_upload_iframe_src.'&post_id='.$_REQUEST[ 'post' ].'&TB_iframe=1&tab='.$tab.'" class="thickbox" onclick="jQuery('."'#cft_current_template'".').val(jQuery(this).parent().parent().parent().parent().attr(\'id\').replace(\'cft_\',\'\'));jQuery('."'#cft_clicked_id'".').val(jQuery(this).parent().find(\'input\').attr(\'id\'));">'.__('Select by Media Picker', 'custom-field-template').'</a>';
2333
  endif;
2334
+
2335
+ $out_key = '<span' . $hide . '><label for="' . $name . $sid . '_' . $cftnum . '">' . $title . '</label></span>'.$addfield;
2336
+
2337
  $out .=
2338
  '<dl id="dl_' . $name . $sid . '_' . $cftnum . '" class="dl_file">' .
2339
+ '<dt>'.$out_key.'</dt>' .
2340
  '<dd>';
2341
 
2342
  if ( !empty($label) && !$options['custom_field_template_replace_keys_by_labels'] )
2343
+ $out_value .= '<p class="label">' . stripcslashes($label) . '</p>';
2344
+ $out_value .= trim($before).'<input id="' . $name . $sid . '_' . $cftnum . '" name="' . $name . '['.$sid.'][]" type="file" size="' . $size . '"' . $class . $style . ' onchange="if (jQuery(this).val()) { jQuery(\'#cft_save_button\'+jQuery(this).parent().parent().parent().parent().attr(\'id\').replace(\'cft_\',\'\')).attr(\'disabled\', true); jQuery(\'#post-preview\').hide(); } else { jQuery(\'#cft_save_button\').attr(\'disabled\', false); jQuery(\'#post-preview\').show(); }" />'.trim($after).$picker;
2345
 
2346
  if ( isset($value) && ( $value = intval($value) ) && $thumb_url = wp_get_attachment_image_src( $value, 'thumbnail', true ) ) :
2347
  $thumb_url = $thumb_url[0];
2354
  $title = '<a href="'.$image_upload_iframe_src.'&post_id='.$_REQUEST[ 'post' ].'&TB_iframe=1&tab='.$tab.'" class="thickbox">'.$title.'</a>';
2355
  endif;
2356
 
2357
+ $out_value .= '<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>';
2358
+ $out_value .= '<input type="hidden" id="' . $name . $sid . '_' . $cftnum . '_hide" name="'.$name . '[' . $sid . '][' . $cftnum . ']" value="' . $value . '" />';
2359
  else :
2360
+ $out_value .= '<input type="hidden" id="' . $name . $sid . '_' . $cftnum . '_hide" name="'.$name . '[' . $sid . '][' . $cftnum . ']" value="" />';
2361
  endif;
2362
 
2363
+ $out .= $out_value.'</dd></dl>'."\n";
2364
 
2365
+ return array($out, $out_key, $out_value);
2366
  }
2367
 
2368
 
2396
  return;
2397
  endif;
2398
  else :
2399
+ if ( (isset($_REQUEST['post_type']) && $_REQUEST['post_type']!=$options['custom_fields'][$id]['post_type']) && $post->post_type!=$options['custom_fields'][$id]['post_type'] ) :
2400
  return;
2401
  endif;
2402
  endif;
2491
  $out .= '<div id="cft_'.$id.'">';
2492
  $out .= '<div>';
2493
  $out .= '<input type="hidden" name="custom-field-template-id[]" id="custom-field-template-id" value="' . $id . '" />';
2494
+
2495
+ if ( isset($options['custom_fields'][$id]['format']) && is_numeric($options['custom_fields'][$id]['format']) )
2496
+ $format = stripslashes($options['shortcode_format'][$options['custom_fields'][$id]['format']]);
2497
+
2498
+ $last_title = '';
2499
  foreach( $fields as $field_key => $field_val ) :
2500
  foreach( $field_val as $title => $data ) {
2501
+ $class = $style = $addfield = $tmpout = $out_all = $out_key = $out_value = $duplicator = '';
2502
  if ( isset($data['parentSN']) && is_numeric($data['parentSN']) ) $parentSN = $data['parentSN'];
2503
  else $parentSN = $field_key;
2504
  if ( isset($data['level']) && is_numeric($data['level']) ) :
2507
  if( $data['type'] == 'break' ) {
2508
  if ( !empty($data['class']) ) $class = ' class="' . $data['class'] . '"';
2509
  if ( !empty($data['style']) ) $style = ' style="' . $data['style'] . '"';
2510
+ $tmpout .= '</div><div' . $class . $style . '>';
2511
  }
2512
  else if( $data['type'] == 'fieldset_open' ) {
2513
  if ( !empty($data['class']) ) $class = ' class="' . $data['class'] . '"';
2514
  if ( !empty($data['style']) ) $style = ' style="' . $data['style'] . '"';
2515
+ $tmpout .= '<fieldset' . $class . $style . '>'."\n";
2516
+ $tmpout .= '<input type="hidden" name="' . $this->sanitize_name( $title ) . '[]" value="1" />'."\n";
2517
 
2518
  if ( isset($data['multipleButton']) && $data['multipleButton'] == true ) :
2519
  $addfield .= ' <span>';
2540
  if ( isset($data['legend']) || isset($addfield) ) :
2541
  if ( !isset($data['legend']) ) $data['legend'] = '';
2542
  if ( !isset($addfield) ) $addfield = '';
2543
+ $tmpout .= '<legend>' . stripcslashes(trim($data['legend'])) . $addfield . '</legend>';
2544
  endif;
2545
  }
2546
  else if( $data['type'] == 'fieldset_close' ) {
2547
+ $tmpout .= '</fieldset>';
2548
  }
2549
  else if( $data['type'] == 'textfield' || $data['type'] == 'text' ) {
2550
+ list($out_all,$out_key,$out_value) = $this->make_textfield( $title, $parentSN, $data );
2551
  }
2552
  else if( $data['type'] == 'checkbox' ) {
2553
+ list($out_all,$out_key,$out_value) = $this->make_checkbox( $title, $parentSN, $data );
2554
  }
2555
  else if( $data['type'] == 'radio' ) {
2556
  $data['values'] = explode( '#', $data['value'] );
2557
  if ( isset($data['valueLabel']) ) $data['valueLabels'] = explode( '#', $data['valueLabel'] );
2558
+ list($out_all,$out_key,$out_value) = $this->make_radio( $title, $parentSN, $data );
2559
  }
2560
  else if( $data['type'] == 'select' ) {
2561
  $data['values'] = explode( '#', $data['value'] );
2562
  if ( isset($data['valueLabel']) ) $data['valueLabels'] = explode( '#', $data['valueLabel'] );
2563
+ list($out_all,$out_key,$out_value) = $this->make_select( $title, $parentSN, $data );
2564
  }
2565
  else if( $data['type'] == 'textarea' ) {
2566
+ list($out_all,$out_key,$out_value) = $this->make_textarea( $title, $parentSN, $data );
2567
  }
2568
  else if( $data['type'] == 'file' ) {
2569
+ list($out_all,$out_key,$out_value) = $this->make_file( $title, $parentSN, $data );
2570
+ }
2571
+ if ( isset($options['custom_fields'][$id]['format']) && is_numeric($options['custom_fields'][$id]['format']) ) :
2572
+ $duplicator = '['.$title.']';
2573
+ $preg_key = preg_quote($title, '/');
2574
+ $out_key = str_replace('\\', '\\\\', $out_key);
2575
+ $out_key = str_replace('$', '\$', $out_key);
2576
+ $out_value = str_replace('\\', '\\\\', $out_value);
2577
+ $out_value = str_replace('$', '\$', $out_value);
2578
+ $format = preg_replace('/\[\['.$preg_key.'\]\]/', $out_key, $format);
2579
+ $format = preg_replace('/\['.$preg_key.'\]/', $out_value.$duplicator, $format);
2580
+ if ( !empty($last_title) && $last_title != $title ) $format = preg_replace('/\['.preg_quote($last_title,'/').'\]/', '', $format);
2581
+ $last_title = $title;
2582
+ else :
2583
+ $out .= $tmpout.$out_all;
2584
+ endif;
2585
  }
2586
  endforeach;
2587
+ if ( !empty($last_title) ) $format = preg_replace('/\['.preg_quote($last_title,'/').'\]/', '', $format);
2588
+ if ( isset($options['custom_fields'][$id]['format']) && is_numeric($options['custom_fields'][$id]['format']) ) $out .= $format;
2589
+
2590
  $out .= '<script type="text/javascript">' . "\n" .
2591
  '// <![CDATA[' . "\n";
2592
  $out .= ' jQuery(document).ready(function() {' . "\n" .
2840
  continue;
2841
  endif;
2842
 
2843
+ $cat_ids = isset($options['custom_fields'][$i]['category']) ? explode(',', $options['custom_fields'][$i]['category']) : array();
2844
+ $template_files = isset($options['custom_fields'][$i]['template_files']) ? explode(',', $options['custom_fields'][$i]['template_files']) : array();
2845
+ $post_ids = isset($options['custom_fields'][$i]['post']) ? explode(',', $options['custom_fields'][$i]['post']) : array();
2846
  $cat_ids = array_filter( $cat_ids );
2847
  $template_files = array_filter( $template_files );
2848
  $post_ids = array_filter( $post_ids );
2950
  return $id;
2951
 
2952
  if ( !isset($_REQUEST['custom-field-template-id']) ) :
2953
+ if ( isset($options['posts'][$id]) ) unset($options['posts'][$id]);
2954
  update_option('custom_field_template_data', $options);
2955
  return $id;
2956
  endif;
3010
  continue;
3011
  endif;
3012
 
3013
+ $field_key = 0;
3014
  if ( isset($_REQUEST[$name]) && is_array($_REQUEST[$name]) ) :
3015
  foreach( $_REQUEST[$name] as $tmp_key => $tmp_val ) :
3016
  $field_key = $tmp_key;
3262
  endif;
3263
  if ( isset($data['multiple']) && $data['multiple'] == true && $data['type'] != 'checkbox' && $data['type'] != 'fieldset_open' && !isset($fieldset) ) :
3264
  $counter = isset($_REQUEST[$this->sanitize_name($title)][$tmp_parentSN+$gap]) ? count($_REQUEST[$this->sanitize_name($title)][$tmp_parentSN+$gap]) : 0;
3265
+ if ( $data['type'] == 'file' && !empty($_FILES[$this->sanitize_name($title)]) ) $counter = (int)count($_FILES[$this->sanitize_name($title)]['name'][$tmp_parentSN+$gap])+1;
3266
  if ( isset($_REQUEST['post_ID']) ) $org_counter = count($this->get_post_meta( $_REQUEST['post_ID'], $title ));
3267
  else if ( isset($_REQUEST['post']) ) $org_counter = count($this->get_post_meta( $_REQUEST['post'], $title ));
3268
  else $org_counter = 1;
3891
 
3892
  function custom_field_template_posts_join($sql) {
3893
  if ( !in_array($_REQUEST['orderby'], array('post_author', 'post_date', 'post_title', 'post_modified', 'menu_order', 'post_parent', 'ID')) ):
3894
+ if ( (strtoupper($_REQUEST['order']) == 'ASC' || strtoupper($_REQUEST['order']) == 'DESC') && !empty($_REQUEST['orderby']) ) :
3895
  global $wpdb;
3896
 
3897
  $sql = $wpdb->prepare(" LEFT JOIN `" . $wpdb->postmeta . "` AS meta ON (`" . $wpdb->posts . "`.ID = meta.post_id AND meta.meta_key = %s)", $_REQUEST['orderby']);
3918
  $sql = " meta.meta_value " . $_REQUEST['order'];
3919
  endif;
3920
  endif;
3921
+ echo $sql;
3922
  return $sql;
3923
  endif;
3924
 
custom-field-template.pot CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Custom Field Template\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2012-04-09 15:12+0900\n"
6
- "PO-Revision-Date: 2012-04-09 15:12+0900\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -17,10 +17,10 @@ msgstr ""
17
  #: custom-field-template/custom-field-template.php:190
18
  #: custom-field-template/custom-field-template.php:191
19
  #: custom-field-template/custom-field-template.php:209
20
- #: custom-field-template/custom-field-template.php:840
21
- #: custom-field-template/custom-field-template.php:1123
22
- #: custom-field-template/custom-field-template.php:2553
23
- #: custom-field-template/custom-field-template.php:2645
24
  msgid "Custom Field Template"
25
  msgstr ""
26
 
@@ -33,518 +33,532 @@ msgid "Use this"
33
  msgstr ""
34
 
35
  #: custom-field-template/custom-field-template.php:329
36
- #: custom-field-template/custom-field-template.php:2854
37
  msgid "Load"
38
  msgstr ""
39
 
40
- #: custom-field-template/custom-field-template.php:661
41
  msgid "read more"
42
  msgstr ""
43
 
44
- #: custom-field-template/custom-field-template.php:679
45
- #: custom-field-template/custom-field-template.php:689
46
  msgid "Custom Fields"
47
  msgstr ""
48
 
49
- #: custom-field-template/custom-field-template.php:721
50
  msgid "Settings"
51
  msgstr ""
52
 
53
- #: custom-field-template/custom-field-template.php:760
54
  msgid "Default Template"
55
  msgstr ""
56
 
57
- #: custom-field-template/custom-field-template.php:974
58
  msgid "You can not use the following words as the field key: `content`, `post_title`, and `excerpt`, and `action`."
59
  msgstr ""
60
 
61
- #: custom-field-template/custom-field-template.php:989
62
- #: custom-field-template/custom-field-template.php:1019
63
- #: custom-field-template/custom-field-template.php:1023
64
- #: custom-field-template/custom-field-template.php:1035
65
- #: custom-field-template/custom-field-template.php:1043
66
- #: custom-field-template/custom-field-template.php:1060
67
  msgid "Options updated."
68
  msgstr ""
69
 
70
- #: custom-field-template/custom-field-template.php:1064
71
  msgid "Value Counts rebuilt."
72
  msgstr ""
73
 
74
- #: custom-field-template/custom-field-template.php:1067
75
  msgid "Tags rebuilt."
76
  msgstr ""
77
 
78
- #: custom-field-template/custom-field-template.php:1076
79
  msgid "Options imported."
80
  msgstr ""
81
 
82
- #: custom-field-template/custom-field-template.php:1083
83
  msgid "Options resetted."
84
  msgstr ""
85
 
86
- #: custom-field-template/custom-field-template.php:1087
87
  msgid "Options deleted."
88
  msgstr ""
89
 
90
- #: custom-field-template/custom-field-template.php:1130
91
- #: custom-field-template/custom-field-template.php:1176
92
- #: custom-field-template/custom-field-template.php:1292
93
- #: custom-field-template/custom-field-template.php:1311
94
- #: custom-field-template/custom-field-template.php:1342
95
- #: custom-field-template/custom-field-template.php:1375
96
- #: custom-field-template/custom-field-template.php:1418
97
- #: custom-field-template/custom-field-template.php:1439
98
- #: custom-field-template/custom-field-template.php:1456
99
- #: custom-field-template/custom-field-template.php:1630
100
- #: custom-field-template/custom-field-template.php:1646
101
- #: custom-field-template/custom-field-template.php:1662
102
- #: custom-field-template/custom-field-template.php:1678
103
- #: custom-field-template/custom-field-template.php:1697
104
- #: custom-field-template/custom-field-template.php:1713
 
105
  msgid "Click to toggle"
106
  msgstr ""
107
 
108
- #: custom-field-template/custom-field-template.php:1131
109
  msgid "Custom Field Template Options"
110
  msgstr ""
111
 
112
- #: custom-field-template/custom-field-template.php:1141
113
- #: custom-field-template/custom-field-template.php:2695
114
- #: custom-field-template/custom-field-template.php:2696
115
  msgid "Disable"
116
  msgstr ""
117
 
118
- #: custom-field-template/custom-field-template.php:1143
119
  msgid "Template Title"
120
  msgstr ""
121
 
122
- #: custom-field-template/custom-field-template.php:1145
123
  msgid "Template Instruction"
124
  msgstr ""
125
 
126
- #: custom-field-template/custom-field-template.php:1147
127
- #: custom-field-template/custom-field-template.php:1393
128
  msgid "Post Type"
129
  msgstr ""
130
 
131
- #: custom-field-template/custom-field-template.php:1149
132
- #: custom-field-template/custom-field-template.php:1394
133
  msgid "Both"
134
  msgstr ""
135
 
136
- #: custom-field-template/custom-field-template.php:1150
137
- #: custom-field-template/custom-field-template.php:1395
138
  msgid "Post"
139
  msgstr ""
140
 
141
- #: custom-field-template/custom-field-template.php:1151
142
- #: custom-field-template/custom-field-template.php:1396
143
  msgid "Page"
144
  msgstr ""
145
 
146
- #: custom-field-template/custom-field-template.php:1152
147
- #: custom-field-template/custom-field-template.php:1397
148
  msgid "Custom Post Type (comma-deliminated)"
149
  msgstr ""
150
 
151
- #: custom-field-template/custom-field-template.php:1154
152
  msgid "Post ID (comma-deliminated)"
153
  msgstr ""
154
 
155
- #: custom-field-template/custom-field-template.php:1156
156
- #: custom-field-template/custom-field-template.php:1399
157
  msgid "Category ID (comma-deliminated)"
158
  msgstr ""
159
 
160
- #: custom-field-template/custom-field-template.php:1158
161
  msgid "Page Template file name(s) (comma-deliminated)"
162
  msgstr ""
163
 
164
- #: custom-field-template/custom-field-template.php:1160
 
 
 
 
165
  msgid "Template Content"
166
  msgstr ""
167
 
168
- #: custom-field-template/custom-field-template.php:1167
169
- #: custom-field-template/custom-field-template.php:1283
170
- #: custom-field-template/custom-field-template.php:1302
171
- #: custom-field-template/custom-field-template.php:1333
172
- #: custom-field-template/custom-field-template.php:1366
173
- #: custom-field-template/custom-field-template.php:1409
174
  msgid "Update Options &raquo;"
175
  msgstr ""
176
 
177
- #: custom-field-template/custom-field-template.php:1177
178
  msgid "Global Settings"
179
  msgstr ""
180
 
181
- #: custom-field-template/custom-field-template.php:1192
182
  msgid "In case that you would like to replace custom keys by labels if `label` is set"
183
  msgstr ""
184
 
185
- #: custom-field-template/custom-field-template.php:1193
186
  msgid "Use labels in place of custom keys"
187
  msgstr ""
188
 
189
- #: custom-field-template/custom-field-template.php:1196
190
  msgid "In case that you would like to add p and br tags in textareas automatically"
191
  msgstr ""
192
 
193
- #: custom-field-template/custom-field-template.php:1197
194
  msgid "Use wpautop function"
195
  msgstr ""
196
 
197
- #: custom-field-template/custom-field-template.php:1201
198
  msgid "In case that you would like to save values automatically in switching templates"
199
  msgstr ""
200
 
201
- #: custom-field-template/custom-field-template.php:1202
202
  msgid "Use the auto save in switching templates"
203
  msgstr ""
204
 
205
- #: custom-field-template/custom-field-template.php:1206
206
  msgid "In case that you would like to disable input fields of the custom field template temporarily"
207
  msgstr ""
208
 
209
- #: custom-field-template/custom-field-template.php:1207
210
  msgid "Use the `Disable` button. The default custom fields will be superseded."
211
  msgstr ""
212
 
213
- #: custom-field-template/custom-field-template.php:1211
214
  msgid "In case that you would like to forbid to use the initialize button."
215
  msgstr ""
216
 
217
- #: custom-field-template/custom-field-template.php:1212
218
  msgid "Disable the initialize button"
219
  msgstr ""
220
 
221
- #: custom-field-template/custom-field-template.php:1216
222
  msgid "In case that you would like to forbid to use the save button."
223
  msgstr ""
224
 
225
- #: custom-field-template/custom-field-template.php:1217
226
  msgid "Disable the save button"
227
  msgstr ""
228
 
229
- #: custom-field-template/custom-field-template.php:1221
230
  msgid "In case that you would like to forbid to use the default custom fields."
231
  msgstr ""
232
 
233
- #: custom-field-template/custom-field-template.php:1222
234
  msgid "Disable the default custom fields"
235
  msgstr ""
236
 
237
- #: custom-field-template/custom-field-template.php:1226
238
  msgid "In case that you would like to forbid to use the quick edit."
239
  msgstr ""
240
 
241
- #: custom-field-template/custom-field-template.php:1227
242
  msgid "Disable the quick edit"
243
  msgstr ""
244
 
245
- #: custom-field-template/custom-field-template.php:1231
246
  msgid "In case that you would like to forbid to display the custom field column on the edit post list page."
247
  msgstr ""
248
 
249
- #: custom-field-template/custom-field-template.php:1232
250
  msgid "Disable the custom field column (The quick edit also does not work.)"
251
  msgstr ""
252
 
253
- #: custom-field-template/custom-field-template.php:1236
254
  msgid "In case that you would like to replace the box title with the template title."
255
  msgstr ""
256
 
257
- #: custom-field-template/custom-field-template.php:1237
258
  msgid "Replace the box title"
259
  msgstr ""
260
 
261
- #: custom-field-template/custom-field-template.php:1241
262
  msgid "In case that you would like to deploy the box in each template."
263
  msgstr ""
264
 
265
- #: custom-field-template/custom-field-template.php:1242
266
  msgid "Deploy the box in each template"
267
  msgstr ""
268
 
269
- #: custom-field-template/custom-field-template.php:1246
270
  msgid "In case that you would like to use the shortcode in the widget."
271
  msgstr ""
272
 
273
- #: custom-field-template/custom-field-template.php:1247
274
  msgid "Use the shortcode in the widget"
275
  msgstr ""
276
 
277
- #: custom-field-template/custom-field-template.php:1251
278
  msgid "In case that you would like to use the shortcode in the excerpt."
279
  msgstr ""
280
 
281
- #: custom-field-template/custom-field-template.php:1252
282
  msgid "Use the shortcode in the excerpt"
283
  msgstr ""
284
 
285
- #: custom-field-template/custom-field-template.php:1256
286
  msgid "In case that you would like to use the jQuery validation."
287
  msgstr ""
288
 
289
- #: custom-field-template/custom-field-template.php:1257
290
  msgid "Use the jQuery validation"
291
  msgstr ""
292
 
293
- #: custom-field-template/custom-field-template.php:1267
294
  msgid "Text to place before every list which is called by the cft shortcode"
295
  msgstr ""
296
 
297
- #: custom-field-template/custom-field-template.php:1269
298
  msgid "Text to place after every list which is called by the cft shortcode"
299
  msgstr ""
300
 
301
- #: custom-field-template/custom-field-template.php:1271
302
  msgid "Text to place before every value which is called by the cft shortcode"
303
  msgstr ""
304
 
305
- #: custom-field-template/custom-field-template.php:1273
306
  msgid "Text to place after every value which is called by the cft shortcode"
307
  msgstr ""
308
 
309
- #: custom-field-template/custom-field-template.php:1278
310
  msgid "In case that you would like to hide the advertisement right column."
311
  msgstr ""
312
 
313
- #: custom-field-template/custom-field-template.php:1279
314
  msgid "I want to use a wider screen."
315
  msgstr ""
316
 
317
- #: custom-field-template/custom-field-template.php:1293
318
  msgid "ADMIN CSS"
319
  msgstr ""
320
 
321
- #: custom-field-template/custom-field-template.php:1312
322
  msgid "[cft] and [cftsearch] Shortcode Format"
323
  msgstr ""
324
 
325
- #: custom-field-template/custom-field-template.php:1315
326
  msgid "For [cft], [key] will be converted into the value of [key]."
327
  msgstr ""
328
 
329
- #: custom-field-template/custom-field-template.php:1316
330
  msgid "For [cftsearch], [key] will be converted into the input field."
331
  msgstr ""
332
 
333
- #: custom-field-template/custom-field-template.php:1327
334
- #: custom-field-template/custom-field-template.php:1402
335
  msgid "Use PHP"
336
  msgstr ""
337
 
338
- #: custom-field-template/custom-field-template.php:1343
339
  msgid "PHP CODE (Experimental Option)"
340
  msgstr ""
341
 
342
- #: custom-field-template/custom-field-template.php:1345
343
  msgid "Are you sure to save PHP codes? Please do it at your own risk."
344
  msgstr ""
345
 
346
- #: custom-field-template/custom-field-template.php:1346
347
  msgid "For `text` and `textarea`, you must set $value as an string."
348
  msgstr ""
349
 
350
- #: custom-field-template/custom-field-template.php:1348
351
  msgid "For `checkbox`, `radio`, and `select`, you must set $values as an array."
352
  msgstr ""
353
 
354
- #: custom-field-template/custom-field-template.php:1376
355
  msgid "Auto Hook of `the_content()` (Experimental Option)"
356
  msgstr ""
357
 
358
- #: custom-field-template/custom-field-template.php:1388
359
  msgid "Position"
360
  msgstr ""
361
 
362
- #: custom-field-template/custom-field-template.php:1389
363
  msgid "Before the content"
364
  msgstr ""
365
 
366
- #: custom-field-template/custom-field-template.php:1390
367
  msgid "After the content"
368
  msgstr ""
369
 
370
- #: custom-field-template/custom-field-template.php:1391
371
  #, php-format
372
  msgid "Inside the content ([cfthook hook=%d])"
373
  msgstr ""
374
 
375
- #: custom-field-template/custom-field-template.php:1401
376
  msgid "Content"
377
  msgstr ""
378
 
379
- #: custom-field-template/custom-field-template.php:1403
380
  msgid "Apply to feeds"
381
  msgstr ""
382
 
383
- #: custom-field-template/custom-field-template.php:1419
384
  msgid "Rebuild Value Counts"
385
  msgstr ""
386
 
387
- #: custom-field-template/custom-field-template.php:1421
388
  msgid "Are you sure to rebuild all value counts?"
389
  msgstr ""
390
 
391
- #: custom-field-template/custom-field-template.php:1425
392
  msgid "Value Counts are used for temporarily saving how many values in each key. Set `valueCount = true` into fields."
393
  msgstr ""
394
 
395
- #: custom-field-template/custom-field-template.php:1429
396
  msgid "Rebuild Value Counts &raquo;"
397
  msgstr ""
398
 
399
- #: custom-field-template/custom-field-template.php:1440
400
  msgid "Rebuild Tags"
401
  msgstr ""
402
 
403
- #: custom-field-template/custom-field-template.php:1442
404
  msgid "Are you sure to rebuild tags?"
405
  msgstr ""
406
 
407
- #: custom-field-template/custom-field-template.php:1446
408
  msgid "Rebuild Tags &raquo;"
409
  msgstr ""
410
 
411
- #: custom-field-template/custom-field-template.php:1457
412
  msgid "Option List"
413
  msgstr ""
414
 
415
- #: custom-field-template/custom-field-template.php:1631
416
  msgid "Export Options"
417
  msgstr ""
418
 
419
- #: custom-field-template/custom-field-template.php:1637
420
  msgid "Export Options &raquo;"
421
  msgstr ""
422
 
423
- #: custom-field-template/custom-field-template.php:1647
424
  msgid "Import Options"
425
  msgstr ""
426
 
427
- #: custom-field-template/custom-field-template.php:1649
428
  msgid "Are you sure to import options? Options you set will be overwritten."
429
  msgstr ""
430
 
431
- #: custom-field-template/custom-field-template.php:1653
432
  msgid "Import Options &raquo;"
433
  msgstr ""
434
 
435
- #: custom-field-template/custom-field-template.php:1663
436
  msgid "Reset Options"
437
  msgstr ""
438
 
439
- #: custom-field-template/custom-field-template.php:1665
440
  msgid "Are you sure to reset options? Options you set will be reset to the default settings."
441
  msgstr ""
442
 
443
- #: custom-field-template/custom-field-template.php:1669
444
  msgid "Reset Options &raquo;"
445
  msgstr ""
446
 
447
- #: custom-field-template/custom-field-template.php:1679
448
  msgid "Delete Options"
449
  msgstr ""
450
 
451
- #: custom-field-template/custom-field-template.php:1681
452
  msgid "Are you sure to delete options? Options you set will be deleted."
453
  msgstr ""
454
 
455
- #: custom-field-template/custom-field-template.php:1685
456
  msgid "Delete Options &raquo;"
457
  msgstr ""
458
 
459
- #: custom-field-template/custom-field-template.php:1698
460
  msgid "Donation"
461
  msgstr ""
462
 
463
- #: custom-field-template/custom-field-template.php:1700
464
  msgid "If you liked this plugin, please make a donation via paypal! Any amount is welcome. Your support is much appreciated."
465
  msgstr ""
466
 
467
- #: custom-field-template/custom-field-template.php:1714
 
 
 
 
 
 
 
 
 
468
  msgid "CMS x WP"
469
  msgstr ""
470
 
471
- #: custom-field-template/custom-field-template.php:1716
472
  msgid "There are much more plugins which are useful for developing business websites such as membership sites or ec sites. You could totally treat WordPress as CMS by use of CMS x WP plugins."
473
  msgstr ""
474
 
475
- #: custom-field-template/custom-field-template.php:1717
476
  msgid "WordPress plugin sales site: CMS x WP"
477
  msgstr ""
478
 
479
- #: custom-field-template/custom-field-template.php:1812
480
- #: custom-field-template/custom-field-template.php:1944
481
- #: custom-field-template/custom-field-template.php:2032
482
- #: custom-field-template/custom-field-template.php:2208
483
- #: custom-field-template/custom-field-template.php:2210
484
- #: custom-field-template/custom-field-template.php:2279
485
- #: custom-field-template/custom-field-template.php:2483
486
  msgid "Add New"
487
  msgstr ""
488
 
489
- #: custom-field-template/custom-field-template.php:1954
490
  msgid "Clear"
491
  msgstr ""
492
 
493
- #: custom-field-template/custom-field-template.php:2048
494
  msgid "Select"
495
  msgstr ""
496
 
497
- #: custom-field-template/custom-field-template.php:2133
498
  msgid "Add an Image"
499
  msgstr ""
500
 
501
- #: custom-field-template/custom-field-template.php:2138
502
  msgid "Add Video"
503
  msgstr ""
504
 
505
- #: custom-field-template/custom-field-template.php:2143
506
  msgid "Add Audio"
507
  msgstr ""
508
 
509
- #: custom-field-template/custom-field-template.php:2147
510
- #: custom-field-template/custom-field-template.php:2151
511
  msgid "Add Media"
512
  msgstr ""
513
 
514
- #: custom-field-template/custom-field-template.php:2158
515
  msgid "Toggle"
516
  msgstr ""
517
 
518
- #: custom-field-template/custom-field-template.php:2289
519
  msgid " OR "
520
  msgstr ""
521
 
522
- #: custom-field-template/custom-field-template.php:2290
523
  msgid "Select by Media Picker"
524
  msgstr ""
525
 
526
- #: custom-field-template/custom-field-template.php:2313
527
- #: custom-field-template/custom-field-template.php:2485
528
  msgid "Delete"
529
  msgstr ""
530
 
531
- #: custom-field-template/custom-field-template.php:2696
532
  msgid "Enable"
533
  msgstr ""
534
 
535
- #: custom-field-template/custom-field-template.php:2700
536
  msgid "Initialize"
537
  msgstr ""
538
 
539
- #: custom-field-template/custom-field-template.php:2701
540
  msgid "Are you sure to reset current values? Default values will be loaded."
541
  msgstr ""
542
 
543
- #: custom-field-template/custom-field-template.php:2706
544
  msgid "Save"
545
  msgstr ""
546
 
547
- #: custom-field-template/custom-field-template.php:3428
548
  msgid "Search &raquo;"
549
  msgstr ""
550
 
2
  msgstr ""
3
  "Project-Id-Version: Custom Field Template\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-09-05 23:45+0900\n"
6
+ "PO-Revision-Date: 2012-09-05 23:45+0900\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
17
  #: custom-field-template/custom-field-template.php:190
18
  #: custom-field-template/custom-field-template.php:191
19
  #: custom-field-template/custom-field-template.php:209
20
+ #: custom-field-template/custom-field-template.php:844
21
+ #: custom-field-template/custom-field-template.php:1128
22
+ #: custom-field-template/custom-field-template.php:2621
23
+ #: custom-field-template/custom-field-template.php:2713
24
  msgid "Custom Field Template"
25
  msgstr ""
26
 
33
  msgstr ""
34
 
35
  #: custom-field-template/custom-field-template.php:329
36
+ #: custom-field-template/custom-field-template.php:2922
37
  msgid "Load"
38
  msgstr ""
39
 
40
+ #: custom-field-template/custom-field-template.php:662
41
  msgid "read more"
42
  msgstr ""
43
 
44
+ #: custom-field-template/custom-field-template.php:680
45
+ #: custom-field-template/custom-field-template.php:690
46
  msgid "Custom Fields"
47
  msgstr ""
48
 
49
+ #: custom-field-template/custom-field-template.php:722
50
  msgid "Settings"
51
  msgstr ""
52
 
53
+ #: custom-field-template/custom-field-template.php:763
54
  msgid "Default Template"
55
  msgstr ""
56
 
57
+ #: custom-field-template/custom-field-template.php:978
58
  msgid "You can not use the following words as the field key: `content`, `post_title`, and `excerpt`, and `action`."
59
  msgstr ""
60
 
61
+ #: custom-field-template/custom-field-template.php:994
62
+ #: custom-field-template/custom-field-template.php:1024
63
+ #: custom-field-template/custom-field-template.php:1028
64
+ #: custom-field-template/custom-field-template.php:1040
65
+ #: custom-field-template/custom-field-template.php:1048
66
+ #: custom-field-template/custom-field-template.php:1065
67
  msgid "Options updated."
68
  msgstr ""
69
 
70
+ #: custom-field-template/custom-field-template.php:1069
71
  msgid "Value Counts rebuilt."
72
  msgstr ""
73
 
74
+ #: custom-field-template/custom-field-template.php:1072
75
  msgid "Tags rebuilt."
76
  msgstr ""
77
 
78
+ #: custom-field-template/custom-field-template.php:1081
79
  msgid "Options imported."
80
  msgstr ""
81
 
82
+ #: custom-field-template/custom-field-template.php:1088
83
  msgid "Options resetted."
84
  msgstr ""
85
 
86
+ #: custom-field-template/custom-field-template.php:1092
87
  msgid "Options deleted."
88
  msgstr ""
89
 
90
+ #: custom-field-template/custom-field-template.php:1135
91
+ #: custom-field-template/custom-field-template.php:1194
92
+ #: custom-field-template/custom-field-template.php:1310
93
+ #: custom-field-template/custom-field-template.php:1329
94
+ #: custom-field-template/custom-field-template.php:1360
95
+ #: custom-field-template/custom-field-template.php:1393
96
+ #: custom-field-template/custom-field-template.php:1436
97
+ #: custom-field-template/custom-field-template.php:1457
98
+ #: custom-field-template/custom-field-template.php:1474
99
+ #: custom-field-template/custom-field-template.php:1651
100
+ #: custom-field-template/custom-field-template.php:1667
101
+ #: custom-field-template/custom-field-template.php:1683
102
+ #: custom-field-template/custom-field-template.php:1699
103
+ #: custom-field-template/custom-field-template.php:1718
104
+ #: custom-field-template/custom-field-template.php:1734
105
+ #: custom-field-template/custom-field-template.php:1743
106
  msgid "Click to toggle"
107
  msgstr ""
108
 
109
+ #: custom-field-template/custom-field-template.php:1136
110
  msgid "Custom Field Template Options"
111
  msgstr ""
112
 
113
+ #: custom-field-template/custom-field-template.php:1146
114
+ #: custom-field-template/custom-field-template.php:2763
115
+ #: custom-field-template/custom-field-template.php:2764
116
  msgid "Disable"
117
  msgstr ""
118
 
119
+ #: custom-field-template/custom-field-template.php:1148
120
  msgid "Template Title"
121
  msgstr ""
122
 
123
+ #: custom-field-template/custom-field-template.php:1150
124
  msgid "Template Instruction"
125
  msgstr ""
126
 
127
+ #: custom-field-template/custom-field-template.php:1152
128
+ #: custom-field-template/custom-field-template.php:1411
129
  msgid "Post Type"
130
  msgstr ""
131
 
132
+ #: custom-field-template/custom-field-template.php:1154
133
+ #: custom-field-template/custom-field-template.php:1412
134
  msgid "Both"
135
  msgstr ""
136
 
137
+ #: custom-field-template/custom-field-template.php:1155
138
+ #: custom-field-template/custom-field-template.php:1413
139
  msgid "Post"
140
  msgstr ""
141
 
142
+ #: custom-field-template/custom-field-template.php:1156
143
+ #: custom-field-template/custom-field-template.php:1414
144
  msgid "Page"
145
  msgstr ""
146
 
147
+ #: custom-field-template/custom-field-template.php:1157
148
+ #: custom-field-template/custom-field-template.php:1415
149
  msgid "Custom Post Type (comma-deliminated)"
150
  msgstr ""
151
 
152
+ #: custom-field-template/custom-field-template.php:1159
153
  msgid "Post ID (comma-deliminated)"
154
  msgstr ""
155
 
156
+ #: custom-field-template/custom-field-template.php:1161
157
+ #: custom-field-template/custom-field-template.php:1417
158
  msgid "Category ID (comma-deliminated)"
159
  msgstr ""
160
 
161
+ #: custom-field-template/custom-field-template.php:1163
162
  msgid "Page Template file name(s) (comma-deliminated)"
163
  msgstr ""
164
 
165
+ #: custom-field-template/custom-field-template.php:1165
166
+ msgid "Template Format"
167
+ msgstr ""
168
+
169
+ #: custom-field-template/custom-field-template.php:1178
170
  msgid "Template Content"
171
  msgstr ""
172
 
173
+ #: custom-field-template/custom-field-template.php:1185
174
+ #: custom-field-template/custom-field-template.php:1301
175
+ #: custom-field-template/custom-field-template.php:1320
176
+ #: custom-field-template/custom-field-template.php:1351
177
+ #: custom-field-template/custom-field-template.php:1384
178
+ #: custom-field-template/custom-field-template.php:1427
179
  msgid "Update Options &raquo;"
180
  msgstr ""
181
 
182
+ #: custom-field-template/custom-field-template.php:1195
183
  msgid "Global Settings"
184
  msgstr ""
185
 
186
+ #: custom-field-template/custom-field-template.php:1210
187
  msgid "In case that you would like to replace custom keys by labels if `label` is set"
188
  msgstr ""
189
 
190
+ #: custom-field-template/custom-field-template.php:1211
191
  msgid "Use labels in place of custom keys"
192
  msgstr ""
193
 
194
+ #: custom-field-template/custom-field-template.php:1214
195
  msgid "In case that you would like to add p and br tags in textareas automatically"
196
  msgstr ""
197
 
198
+ #: custom-field-template/custom-field-template.php:1215
199
  msgid "Use wpautop function"
200
  msgstr ""
201
 
202
+ #: custom-field-template/custom-field-template.php:1219
203
  msgid "In case that you would like to save values automatically in switching templates"
204
  msgstr ""
205
 
206
+ #: custom-field-template/custom-field-template.php:1220
207
  msgid "Use the auto save in switching templates"
208
  msgstr ""
209
 
210
+ #: custom-field-template/custom-field-template.php:1224
211
  msgid "In case that you would like to disable input fields of the custom field template temporarily"
212
  msgstr ""
213
 
214
+ #: custom-field-template/custom-field-template.php:1225
215
  msgid "Use the `Disable` button. The default custom fields will be superseded."
216
  msgstr ""
217
 
218
+ #: custom-field-template/custom-field-template.php:1229
219
  msgid "In case that you would like to forbid to use the initialize button."
220
  msgstr ""
221
 
222
+ #: custom-field-template/custom-field-template.php:1230
223
  msgid "Disable the initialize button"
224
  msgstr ""
225
 
226
+ #: custom-field-template/custom-field-template.php:1234
227
  msgid "In case that you would like to forbid to use the save button."
228
  msgstr ""
229
 
230
+ #: custom-field-template/custom-field-template.php:1235
231
  msgid "Disable the save button"
232
  msgstr ""
233
 
234
+ #: custom-field-template/custom-field-template.php:1239
235
  msgid "In case that you would like to forbid to use the default custom fields."
236
  msgstr ""
237
 
238
+ #: custom-field-template/custom-field-template.php:1240
239
  msgid "Disable the default custom fields"
240
  msgstr ""
241
 
242
+ #: custom-field-template/custom-field-template.php:1244
243
  msgid "In case that you would like to forbid to use the quick edit."
244
  msgstr ""
245
 
246
+ #: custom-field-template/custom-field-template.php:1245
247
  msgid "Disable the quick edit"
248
  msgstr ""
249
 
250
+ #: custom-field-template/custom-field-template.php:1249
251
  msgid "In case that you would like to forbid to display the custom field column on the edit post list page."
252
  msgstr ""
253
 
254
+ #: custom-field-template/custom-field-template.php:1250
255
  msgid "Disable the custom field column (The quick edit also does not work.)"
256
  msgstr ""
257
 
258
+ #: custom-field-template/custom-field-template.php:1254
259
  msgid "In case that you would like to replace the box title with the template title."
260
  msgstr ""
261
 
262
+ #: custom-field-template/custom-field-template.php:1255
263
  msgid "Replace the box title"
264
  msgstr ""
265
 
266
+ #: custom-field-template/custom-field-template.php:1259
267
  msgid "In case that you would like to deploy the box in each template."
268
  msgstr ""
269
 
270
+ #: custom-field-template/custom-field-template.php:1260
271
  msgid "Deploy the box in each template"
272
  msgstr ""
273
 
274
+ #: custom-field-template/custom-field-template.php:1264
275
  msgid "In case that you would like to use the shortcode in the widget."
276
  msgstr ""
277
 
278
+ #: custom-field-template/custom-field-template.php:1265
279
  msgid "Use the shortcode in the widget"
280
  msgstr ""
281
 
282
+ #: custom-field-template/custom-field-template.php:1269
283
  msgid "In case that you would like to use the shortcode in the excerpt."
284
  msgstr ""
285
 
286
+ #: custom-field-template/custom-field-template.php:1270
287
  msgid "Use the shortcode in the excerpt"
288
  msgstr ""
289
 
290
+ #: custom-field-template/custom-field-template.php:1274
291
  msgid "In case that you would like to use the jQuery validation."
292
  msgstr ""
293
 
294
+ #: custom-field-template/custom-field-template.php:1275
295
  msgid "Use the jQuery validation"
296
  msgstr ""
297
 
298
+ #: custom-field-template/custom-field-template.php:1285
299
  msgid "Text to place before every list which is called by the cft shortcode"
300
  msgstr ""
301
 
302
+ #: custom-field-template/custom-field-template.php:1287
303
  msgid "Text to place after every list which is called by the cft shortcode"
304
  msgstr ""
305
 
306
+ #: custom-field-template/custom-field-template.php:1289
307
  msgid "Text to place before every value which is called by the cft shortcode"
308
  msgstr ""
309
 
310
+ #: custom-field-template/custom-field-template.php:1291
311
  msgid "Text to place after every value which is called by the cft shortcode"
312
  msgstr ""
313
 
314
+ #: custom-field-template/custom-field-template.php:1296
315
  msgid "In case that you would like to hide the advertisement right column."
316
  msgstr ""
317
 
318
+ #: custom-field-template/custom-field-template.php:1297
319
  msgid "I want to use a wider screen."
320
  msgstr ""
321
 
322
+ #: custom-field-template/custom-field-template.php:1311
323
  msgid "ADMIN CSS"
324
  msgstr ""
325
 
326
+ #: custom-field-template/custom-field-template.php:1330
327
  msgid "[cft] and [cftsearch] Shortcode Format"
328
  msgstr ""
329
 
330
+ #: custom-field-template/custom-field-template.php:1333
331
  msgid "For [cft], [key] will be converted into the value of [key]."
332
  msgstr ""
333
 
334
+ #: custom-field-template/custom-field-template.php:1334
335
  msgid "For [cftsearch], [key] will be converted into the input field."
336
  msgstr ""
337
 
338
+ #: custom-field-template/custom-field-template.php:1345
339
+ #: custom-field-template/custom-field-template.php:1420
340
  msgid "Use PHP"
341
  msgstr ""
342
 
343
+ #: custom-field-template/custom-field-template.php:1361
344
  msgid "PHP CODE (Experimental Option)"
345
  msgstr ""
346
 
347
+ #: custom-field-template/custom-field-template.php:1363
348
  msgid "Are you sure to save PHP codes? Please do it at your own risk."
349
  msgstr ""
350
 
351
+ #: custom-field-template/custom-field-template.php:1364
352
  msgid "For `text` and `textarea`, you must set $value as an string."
353
  msgstr ""
354
 
355
+ #: custom-field-template/custom-field-template.php:1366
356
  msgid "For `checkbox`, `radio`, and `select`, you must set $values as an array."
357
  msgstr ""
358
 
359
+ #: custom-field-template/custom-field-template.php:1394
360
  msgid "Auto Hook of `the_content()` (Experimental Option)"
361
  msgstr ""
362
 
363
+ #: custom-field-template/custom-field-template.php:1406
364
  msgid "Position"
365
  msgstr ""
366
 
367
+ #: custom-field-template/custom-field-template.php:1407
368
  msgid "Before the content"
369
  msgstr ""
370
 
371
+ #: custom-field-template/custom-field-template.php:1408
372
  msgid "After the content"
373
  msgstr ""
374
 
375
+ #: custom-field-template/custom-field-template.php:1409
376
  #, php-format
377
  msgid "Inside the content ([cfthook hook=%d])"
378
  msgstr ""
379
 
380
+ #: custom-field-template/custom-field-template.php:1419
381
  msgid "Content"
382
  msgstr ""
383
 
384
+ #: custom-field-template/custom-field-template.php:1421
385
  msgid "Apply to feeds"
386
  msgstr ""
387
 
388
+ #: custom-field-template/custom-field-template.php:1437
389
  msgid "Rebuild Value Counts"
390
  msgstr ""
391
 
392
+ #: custom-field-template/custom-field-template.php:1439
393
  msgid "Are you sure to rebuild all value counts?"
394
  msgstr ""
395
 
396
+ #: custom-field-template/custom-field-template.php:1443
397
  msgid "Value Counts are used for temporarily saving how many values in each key. Set `valueCount = true` into fields."
398
  msgstr ""
399
 
400
+ #: custom-field-template/custom-field-template.php:1447
401
  msgid "Rebuild Value Counts &raquo;"
402
  msgstr ""
403
 
404
+ #: custom-field-template/custom-field-template.php:1458
405
  msgid "Rebuild Tags"
406
  msgstr ""
407
 
408
+ #: custom-field-template/custom-field-template.php:1460
409
  msgid "Are you sure to rebuild tags?"
410
  msgstr ""
411
 
412
+ #: custom-field-template/custom-field-template.php:1464
413
  msgid "Rebuild Tags &raquo;"
414
  msgstr ""
415
 
416
+ #: custom-field-template/custom-field-template.php:1475
417
  msgid "Option List"
418
  msgstr ""
419
 
420
+ #: custom-field-template/custom-field-template.php:1652
421
  msgid "Export Options"
422
  msgstr ""
423
 
424
+ #: custom-field-template/custom-field-template.php:1658
425
  msgid "Export Options &raquo;"
426
  msgstr ""
427
 
428
+ #: custom-field-template/custom-field-template.php:1668
429
  msgid "Import Options"
430
  msgstr ""
431
 
432
+ #: custom-field-template/custom-field-template.php:1670
433
  msgid "Are you sure to import options? Options you set will be overwritten."
434
  msgstr ""
435
 
436
+ #: custom-field-template/custom-field-template.php:1674
437
  msgid "Import Options &raquo;"
438
  msgstr ""
439
 
440
+ #: custom-field-template/custom-field-template.php:1684
441
  msgid "Reset Options"
442
  msgstr ""
443
 
444
+ #: custom-field-template/custom-field-template.php:1686
445
  msgid "Are you sure to reset options? Options you set will be reset to the default settings."
446
  msgstr ""
447
 
448
+ #: custom-field-template/custom-field-template.php:1690
449
  msgid "Reset Options &raquo;"
450
  msgstr ""
451
 
452
+ #: custom-field-template/custom-field-template.php:1700
453
  msgid "Delete Options"
454
  msgstr ""
455
 
456
+ #: custom-field-template/custom-field-template.php:1702
457
  msgid "Are you sure to delete options? Options you set will be deleted."
458
  msgstr ""
459
 
460
+ #: custom-field-template/custom-field-template.php:1706
461
  msgid "Delete Options &raquo;"
462
  msgstr ""
463
 
464
+ #: custom-field-template/custom-field-template.php:1719
465
  msgid "Donation"
466
  msgstr ""
467
 
468
+ #: custom-field-template/custom-field-template.php:1721
469
  msgid "If you liked this plugin, please make a donation via paypal! Any amount is welcome. Your support is much appreciated."
470
  msgstr ""
471
 
472
+ #: custom-field-template/custom-field-template.php:1735
473
+ #: custom-field-template/custom-field-template.php:1738
474
+ msgid "Custom Field Template Manual"
475
+ msgstr ""
476
+
477
+ #: custom-field-template/custom-field-template.php:1737
478
+ msgid "Do you have any trouble with the plugin setup? Please visit the following manual site."
479
+ msgstr ""
480
+
481
+ #: custom-field-template/custom-field-template.php:1744
482
  msgid "CMS x WP"
483
  msgstr ""
484
 
485
+ #: custom-field-template/custom-field-template.php:1746
486
  msgid "There are much more plugins which are useful for developing business websites such as membership sites or ec sites. You could totally treat WordPress as CMS by use of CMS x WP plugins."
487
  msgstr ""
488
 
489
+ #: custom-field-template/custom-field-template.php:1747
490
  msgid "WordPress plugin sales site: CMS x WP"
491
  msgstr ""
492
 
493
+ #: custom-field-template/custom-field-template.php:1842
494
+ #: custom-field-template/custom-field-template.php:1979
495
+ #: custom-field-template/custom-field-template.php:2067
496
+ #: custom-field-template/custom-field-template.php:2247
497
+ #: custom-field-template/custom-field-template.php:2249
498
+ #: custom-field-template/custom-field-template.php:2321
499
+ #: custom-field-template/custom-field-template.php:2533
500
  msgid "Add New"
501
  msgstr ""
502
 
503
+ #: custom-field-template/custom-field-template.php:1987
504
  msgid "Clear"
505
  msgstr ""
506
 
507
+ #: custom-field-template/custom-field-template.php:2085
508
  msgid "Select"
509
  msgstr ""
510
 
511
+ #: custom-field-template/custom-field-template.php:2171
512
  msgid "Add an Image"
513
  msgstr ""
514
 
515
+ #: custom-field-template/custom-field-template.php:2176
516
  msgid "Add Video"
517
  msgstr ""
518
 
519
+ #: custom-field-template/custom-field-template.php:2181
520
  msgid "Add Audio"
521
  msgstr ""
522
 
523
+ #: custom-field-template/custom-field-template.php:2185
524
+ #: custom-field-template/custom-field-template.php:2189
525
  msgid "Add Media"
526
  msgstr ""
527
 
528
+ #: custom-field-template/custom-field-template.php:2196
529
  msgid "Toggle"
530
  msgstr ""
531
 
532
+ #: custom-field-template/custom-field-template.php:2331
533
  msgid " OR "
534
  msgstr ""
535
 
536
+ #: custom-field-template/custom-field-template.php:2332
537
  msgid "Select by Media Picker"
538
  msgstr ""
539
 
540
+ #: custom-field-template/custom-field-template.php:2357
541
+ #: custom-field-template/custom-field-template.php:2535
542
  msgid "Delete"
543
  msgstr ""
544
 
545
+ #: custom-field-template/custom-field-template.php:2764
546
  msgid "Enable"
547
  msgstr ""
548
 
549
+ #: custom-field-template/custom-field-template.php:2768
550
  msgid "Initialize"
551
  msgstr ""
552
 
553
+ #: custom-field-template/custom-field-template.php:2769
554
  msgid "Are you sure to reset current values? Default values will be loaded."
555
  msgstr ""
556
 
557
+ #: custom-field-template/custom-field-template.php:2774
558
  msgid "Save"
559
  msgstr ""
560
 
561
+ #: custom-field-template/custom-field-template.php:3497
562
  msgid "Search &raquo;"
563
  msgstr ""
564
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Hiroaki Miyashita
3
  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.4
7
- Stable tag: 2.0.4
8
 
9
  This plugin extends the functionality of custom fields.
10
 
@@ -85,6 +85,8 @@ Localization
85
 
86
  If you have translated into your language, please let me know.
87
 
 
 
88
  == Installation ==
89
 
90
  1. Copy the `custom-field-template` directory into your `wp-content/plugins` directory
@@ -108,6 +110,11 @@ See the default template and modify it.
108
 
109
  == Changelog ==
110
 
 
 
 
 
 
111
  = 2.0.4 =
112
  * Bugfix: JavaScript error with jQuery validation.
113
 
3
  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.4.1
7
+ Stable tag: 2.0.5
8
 
9
  This plugin extends the functionality of custom fields.
10
 
85
 
86
  If you have translated into your language, please let me know.
87
 
88
+ * [Japanese Manual](http://ja.wpcft.com/)
89
+
90
  == Installation ==
91
 
92
  1. Copy the `custom-field-template` directory into your `wp-content/plugins` directory
110
 
111
  == Changelog ==
112
 
113
+ = 2.0.5 =
114
+ * Template Format for the edit screen. `[key]` will be converted to the input field. `[[key]]` is for the default key output. The `fieldset` type has not been supported yet.
115
+ * `wrap` attribute for the textarea type.
116
+ * Code cleaning.
117
+
118
  = 2.0.4 =
119
  * Bugfix: JavaScript error with jQuery validation.
120