Version Description
-
readOnly
attribute. ex) `readOnly
Download this release
Release Info
Developer | Hiroaki Miyashita |
Plugin | Custom Field Template |
Version | 1.3.8 |
Comparing to | |
See all releases |
Code changes from version 1.3.7 to 1.3.8
- custom-field-template-it_IT.mo +0 -0
- custom-field-template-it_IT.po +139 -131
- custom-field-template.php +102 -60
- readme.txt +10 -5
custom-field-template-it_IT.mo
CHANGED
Binary file
|
custom-field-template-it_IT.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Custom Field Template in italiano\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2009-07-
|
6 |
-
"PO-Revision-Date: 2009-07-
|
7 |
"Last-Translator: Gianni Diurno (aka gidibao) <gidibao@gmail.com>\n"
|
8 |
"Language-Team: Gianni Diurno | http://gidibao.net/ <gidibao@gmail.com>\n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -16,415 +16,423 @@ msgstr ""
|
|
16 |
"X-Poedit-Basepath: ../\n"
|
17 |
"X-Poedit-SearchPath-0: custom-field-template\n"
|
18 |
|
19 |
-
#: custom-field-template/custom-field-template.php:
|
20 |
-
#: custom-field-template/custom-field-template.php:
|
21 |
-
#: custom-field-template/custom-field-template.php:
|
22 |
-
#: custom-field-template/custom-field-template.php:
|
23 |
-
#: custom-field-template/custom-field-template.php:
|
24 |
-
#: custom-field-template/custom-field-template.php:
|
25 |
msgid "Custom Field Template"
|
26 |
msgstr "Custom Field Template"
|
27 |
|
28 |
-
#: custom-field-template/custom-field-template.php:
|
29 |
-
#: custom-field-template/custom-field-template.php:
|
30 |
msgid "Load"
|
31 |
msgstr "Carica"
|
32 |
|
33 |
-
#: custom-field-template/custom-field-template.php:
|
34 |
msgid "read more"
|
35 |
msgstr "prosegui"
|
36 |
|
37 |
-
#: custom-field-template/custom-field-template.php:
|
38 |
-
#: custom-field-template/custom-field-template.php:
|
39 |
msgid "Custom Fields"
|
40 |
msgstr "Campi personalizzati"
|
41 |
|
42 |
-
#: custom-field-template/custom-field-template.php:
|
43 |
msgid "Settings"
|
44 |
msgstr "Impostazioni"
|
45 |
|
46 |
-
#: custom-field-template/custom-field-template.php:
|
47 |
msgid "Default Template"
|
48 |
msgstr "Template predefinito"
|
49 |
|
50 |
-
#: custom-field-template/custom-field-template.php:
|
51 |
-
#: custom-field-template/custom-field-template.php:
|
52 |
-
#: custom-field-template/custom-field-template.php:
|
53 |
-
#: custom-field-template/custom-field-template.php:
|
54 |
-
#: custom-field-template/custom-field-template.php:
|
55 |
msgid "Options updated."
|
56 |
msgstr "Le opzioni sono state aggiornate."
|
57 |
|
58 |
-
#: custom-field-template/custom-field-template.php:
|
59 |
msgid "Value Counts rebuilt."
|
60 |
msgstr "Value Counts rigenerati. "
|
61 |
|
62 |
-
#: custom-field-template/custom-field-template.php:
|
63 |
msgid "Tags rebuilt."
|
64 |
msgstr "Rigenera i tag."
|
65 |
|
66 |
-
#: custom-field-template/custom-field-template.php:
|
67 |
msgid "Options imported."
|
68 |
msgstr "Le opzioni sono state importate."
|
69 |
|
70 |
-
#: custom-field-template/custom-field-template.php:
|
71 |
msgid "Options resetted."
|
72 |
msgstr "Le opzioni sono state ripristinate."
|
73 |
|
74 |
-
#: custom-field-template/custom-field-template.php:
|
75 |
msgid "Options deleted."
|
76 |
msgstr "Le opzioni sini state cancellate:"
|
77 |
|
78 |
-
#: custom-field-template/custom-field-template.php:
|
79 |
-
#: custom-field-template/custom-field-template.php:
|
80 |
-
#: custom-field-template/custom-field-template.php:
|
81 |
-
#: custom-field-template/custom-field-template.php:
|
82 |
-
#: custom-field-template/custom-field-template.php:
|
83 |
-
#: custom-field-template/custom-field-template.php:
|
84 |
-
#: custom-field-template/custom-field-template.php:
|
85 |
-
#: custom-field-template/custom-field-template.php:
|
86 |
-
#: custom-field-template/custom-field-template.php:
|
87 |
-
#: custom-field-template/custom-field-template.php:
|
88 |
-
#: custom-field-template/custom-field-template.php:
|
89 |
-
#: custom-field-template/custom-field-template.php:
|
90 |
-
#: custom-field-template/custom-field-template.php:
|
91 |
msgid "Click to toggle"
|
92 |
msgstr "Clicca per commutare"
|
93 |
|
94 |
-
#: custom-field-template/custom-field-template.php:
|
95 |
msgid "Custom Field Template Options"
|
96 |
msgstr "Opzioni template campi personalizzati"
|
97 |
|
98 |
-
#: custom-field-template/custom-field-template.php:
|
99 |
msgid "Template Title"
|
100 |
msgstr "Nome del template:"
|
101 |
|
102 |
-
#: custom-field-template/custom-field-template.php:
|
103 |
msgid "Template Instruction"
|
104 |
msgstr "Allestimento template"
|
105 |
|
106 |
-
#: custom-field-template/custom-field-template.php:
|
107 |
-
#: custom-field-template/custom-field-template.php:
|
108 |
msgid "Post Type"
|
109 |
msgstr "Tipo di articolo"
|
110 |
|
111 |
-
#: custom-field-template/custom-field-template.php:
|
112 |
-
#: custom-field-template/custom-field-template.php:
|
113 |
msgid "Both"
|
114 |
msgstr "Entrambi"
|
115 |
|
116 |
-
#: custom-field-template/custom-field-template.php:
|
117 |
-
#: custom-field-template/custom-field-template.php:
|
118 |
msgid "Post"
|
119 |
msgstr "Articolo"
|
120 |
|
121 |
-
#: custom-field-template/custom-field-template.php:
|
122 |
-
#: custom-field-template/custom-field-template.php:
|
123 |
msgid "Page"
|
124 |
msgstr "Pagina"
|
125 |
|
126 |
-
#: custom-field-template/custom-field-template.php:
|
127 |
msgid "Post ID (comma-deliminated)"
|
128 |
msgstr "ID articolo (separa con una virgola)"
|
129 |
|
130 |
-
#: custom-field-template/custom-field-template.php:
|
131 |
-
#: custom-field-template/custom-field-template.php:
|
132 |
msgid "Category ID (comma-deliminated)"
|
133 |
msgstr "ID categoria (separa con una virgola)"
|
134 |
|
135 |
-
#: custom-field-template/custom-field-template.php:
|
136 |
msgid "Page Template file name(s) (comma-deliminated)"
|
137 |
msgstr "Nome/i file template pagina (separa con una virgola)"
|
138 |
|
139 |
-
#: custom-field-template/custom-field-template.php:
|
140 |
msgid "Template Content"
|
141 |
msgstr "Contenuti template"
|
142 |
|
143 |
-
#: custom-field-template/custom-field-template.php:
|
144 |
msgid "In case that you would like to insert multiple images at once in use of the custom field media buttons"
|
145 |
msgstr "Nel caso in cui desiderassi inserire più immagini contemporaneamente utilizza i pulsanti media del campo personalizzato"
|
146 |
|
147 |
-
#: custom-field-template/custom-field-template.php:
|
148 |
msgid "Use multiple image inset"
|
149 |
msgstr "Inserisci più immagini contemporaneamente"
|
150 |
|
151 |
-
#: custom-field-template/custom-field-template.php:
|
152 |
msgid "Caution:"
|
153 |
msgstr "Attenzione:"
|
154 |
|
155 |
-
#: custom-field-template/custom-field-template.php:
|
156 |
msgid "You need to edit `wp-admin/includes/media.php`. Delete or comment out the code in the function media_send_to_editor."
|
157 |
msgstr "E' necessario modificare `wp-admin/includes/media.php`. Cancella o disabilita il codice nella funzione media_send_to_editor."
|
158 |
|
159 |
-
#: custom-field-template/custom-field-template.php:
|
160 |
msgid "In case that you would like to replace custom keys by labels if `label` is set"
|
161 |
msgstr "Nel caso in cui desiderassi sostituire le chiavi personalizzate con le etichette qualora fosse stato impostato `label`"
|
162 |
|
163 |
-
#: custom-field-template/custom-field-template.php:
|
164 |
msgid "Use labels in place of custom keys"
|
165 |
msgstr "Utilizza le etichette al posto delle chiavi personalizzate"
|
166 |
|
167 |
-
#: custom-field-template/custom-field-template.php:
|
168 |
msgid "In case that you would like to add p and br tags in textareas automatically"
|
169 |
msgstr "Nel caso in cui desiderassi aggiungere automaticamente i tag p e br nell'area di testo"
|
170 |
|
171 |
-
#: custom-field-template/custom-field-template.php:
|
172 |
msgid "Use wpautop function"
|
173 |
msgstr "Usa funzione wpautop"
|
174 |
|
175 |
-
#: custom-field-template/custom-field-template.php:
|
176 |
msgid "In case that you would like to save values automatically in switching templates"
|
177 |
msgstr "Nel caso in cui desiderassi salvare automaticamente i valori durante il cambio dei template"
|
178 |
|
179 |
-
#: custom-field-template/custom-field-template.php:
|
180 |
msgid "Use the auto save in switching templates"
|
181 |
msgstr "Salva in automatico al cambio dei template"
|
182 |
|
183 |
-
#: custom-field-template/custom-field-template.php:
|
184 |
msgid "In case that you would like to forbid to use the default custom fields."
|
185 |
msgstr "Nel caso in cui desiderassi impedire l'utilizzo dei campi personalizzati predefiniti."
|
186 |
|
187 |
-
#: custom-field-template/custom-field-template.php:
|
188 |
msgid "Disable the default custom fields"
|
189 |
msgstr "Disattiva i campi personalizzati predefiniti"
|
190 |
|
191 |
-
#: custom-field-template/custom-field-template.php:
|
192 |
msgid "In case that you would like to forbid to use the quick edit."
|
193 |
msgstr "Nel caso in cui desiderassi impedire l'utilizzo dell'editor veloce."
|
194 |
|
195 |
-
#: custom-field-template/custom-field-template.php:
|
196 |
msgid "Disable the quick edit"
|
197 |
msgstr "Disattiva l'editor veloce"
|
198 |
|
199 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
msgid "In case that you would like to replace the box title with the template title."
|
201 |
msgstr "Nel caso in cui desiderassi sostituire il titolo della casella con il titolo del template."
|
202 |
|
203 |
-
#: custom-field-template/custom-field-template.php:
|
204 |
msgid "Replace the box title"
|
205 |
msgstr "Sostituisci il titolo della casella"
|
206 |
|
207 |
-
#: custom-field-template/custom-field-template.php:
|
208 |
msgid "In case that you would like to use the shortcode in the widget."
|
209 |
msgstr "Nel caso in cui desiderassi utilizzare lo shortcode nel widget"
|
210 |
|
211 |
-
#: custom-field-template/custom-field-template.php:
|
212 |
msgid "Use the shortcode in the widget"
|
213 |
msgstr "Utilizza lo shortcode nel widget"
|
214 |
|
215 |
-
#: custom-field-template/custom-field-template.php:
|
216 |
msgid "In case that you would like to use the shortcode in the excerpt."
|
217 |
msgstr "Nel caso in cui desiderassi utilizzare lo shortcode negli estratti."
|
218 |
|
219 |
-
#: custom-field-template/custom-field-template.php:
|
220 |
msgid "Use the shortcode in the excerpt"
|
221 |
msgstr "Usa lo shortcode negli estratti"
|
222 |
|
223 |
-
#: custom-field-template/custom-field-template.php:
|
224 |
-
#: custom-field-template/custom-field-template.php:
|
225 |
-
#: custom-field-template/custom-field-template.php:
|
226 |
-
#: custom-field-template/custom-field-template.php:
|
227 |
-
#: custom-field-template/custom-field-template.php:
|
228 |
msgid "Update Options »"
|
229 |
msgstr "Aggiorna le opzioni »"
|
230 |
|
231 |
-
#: custom-field-template/custom-field-template.php:
|
232 |
msgid "ADMIN CSS"
|
233 |
msgstr "CSS AMMINISTRAZIONE"
|
234 |
|
235 |
-
#: custom-field-template/custom-field-template.php:
|
236 |
msgid "[cft] and [cftsearch] Shortcode Format"
|
237 |
msgstr "Formato Shortcode [cft] e [cftsearch]"
|
238 |
|
239 |
-
#: custom-field-template/custom-field-template.php:
|
240 |
msgid "For [cft], [key] will be converted into the value of [key]."
|
241 |
msgstr "[key] verrà convertito nel valore di [key]."
|
242 |
|
243 |
-
#: custom-field-template/custom-field-template.php:
|
244 |
msgid "For [cftsearch], [key] will be converted into the input field."
|
245 |
msgstr "[cftsearch], [key] verrà convertito nell'input del campo."
|
246 |
|
247 |
-
#: custom-field-template/custom-field-template.php:
|
248 |
-
#: custom-field-template/custom-field-template.php:
|
249 |
msgid "Use PHP"
|
250 |
msgstr "Usa PHP"
|
251 |
|
252 |
-
#: custom-field-template/custom-field-template.php:
|
253 |
msgid "PHP CODE (Experimental Option)"
|
254 |
msgstr "CODICE PHP CODE (opzione sperimentale)"
|
255 |
|
256 |
-
#: custom-field-template/custom-field-template.php:
|
257 |
msgid "Are you sure to save PHP codes? Please do it at your own risk."
|
258 |
msgstr "Sei certo di volere salvare dei codici PHP? Se sì, fallo a tuo rischio."
|
259 |
|
260 |
-
#: custom-field-template/custom-field-template.php:
|
261 |
msgid "For `text` and `textarea`, you must set $value as an string."
|
262 |
msgstr "`text` e `textarea`, dovrai impostare come stringa $value."
|
263 |
|
264 |
-
#: custom-field-template/custom-field-template.php:
|
265 |
msgid "For `checkbox`, `radio`, and `select`, you must set $values as an array."
|
266 |
msgstr "`checkbox`, `radio`, e `select`, dovrai impostare come array $values."
|
267 |
|
268 |
-
#: custom-field-template/custom-field-template.php:
|
269 |
msgid "Auto Hook of `the_content()` (Experimental Option)"
|
270 |
msgstr "Hook automatico di `the_content()` (opzione sperimentale)"
|
271 |
|
272 |
-
#: custom-field-template/custom-field-template.php:
|
273 |
msgid "Position"
|
274 |
msgstr "Posizione"
|
275 |
|
276 |
-
#: custom-field-template/custom-field-template.php:
|
277 |
msgid "Before the conetnt"
|
278 |
msgstr "Davanti ai contenuti"
|
279 |
|
280 |
-
#: custom-field-template/custom-field-template.php:
|
281 |
msgid "After the conetnt"
|
282 |
msgstr "A seguire i contenuti"
|
283 |
|
284 |
-
#: custom-field-template/custom-field-template.php:
|
285 |
#, php-format
|
286 |
msgid "Inside the conetnt ([cfthook hook=%d])"
|
287 |
msgstr "Dentro il contenuto ([cfthook hook=%d])"
|
288 |
|
289 |
-
#: custom-field-template/custom-field-template.php:
|
290 |
msgid "Content"
|
291 |
msgstr "Contenuti"
|
292 |
|
293 |
-
#: custom-field-template/custom-field-template.php:
|
294 |
msgid "Apply to feeds"
|
295 |
msgstr "Applica ai feed"
|
296 |
|
297 |
-
#: custom-field-template/custom-field-template.php:
|
298 |
msgid "Rebuild Value Counts"
|
299 |
msgstr "Rigenera Value Counts"
|
300 |
|
301 |
-
#: custom-field-template/custom-field-template.php:
|
302 |
msgid "Are you sure to rebuild all value counts?"
|
303 |
msgstr "Sei certo di volere rigenerare tutti i value counts?"
|
304 |
|
305 |
-
#: custom-field-template/custom-field-template.php:
|
306 |
msgid "Value Counts are used for temporarily saving how many values in each key. Set `valueCount = true` into fields."
|
307 |
msgstr "I Value Counts sono utilizzati per il salvataggio temporaneo dei valori per ogni chiave. Imposta dentro ai campi `valueCount = true`."
|
308 |
|
309 |
-
#: custom-field-template/custom-field-template.php:
|
310 |
msgid "Rebuild Value Counts »"
|
311 |
msgstr "Rigenera Value Counts »"
|
312 |
|
313 |
-
#: custom-field-template/custom-field-template.php:
|
314 |
msgid "Rebuild Tags"
|
315 |
msgstr "Rigenera i tag"
|
316 |
|
317 |
-
#: custom-field-template/custom-field-template.php:
|
318 |
msgid "Are you sure to rebuild tags?"
|
319 |
msgstr "Sei certo di volere rigenerare i tag?"
|
320 |
|
321 |
-
#: custom-field-template/custom-field-template.php:
|
322 |
msgid "Rebuild Tags »"
|
323 |
msgstr "Rigenera tag »"
|
324 |
|
325 |
-
#: custom-field-template/custom-field-template.php:
|
326 |
msgid "Option List"
|
327 |
msgstr "Lista opzione"
|
328 |
|
329 |
-
#: custom-field-template/custom-field-template.php:
|
330 |
msgid "Export Options"
|
331 |
msgstr "Esporta le opzioni"
|
332 |
|
333 |
-
#: custom-field-template/custom-field-template.php:
|
334 |
msgid "Export Options »"
|
335 |
msgstr "Esporta le opzioni »"
|
336 |
|
337 |
-
#: custom-field-template/custom-field-template.php:
|
338 |
msgid "Import Options"
|
339 |
msgstr "Importa le opzioni"
|
340 |
|
341 |
-
#: custom-field-template/custom-field-template.php:
|
342 |
msgid "Are you sure to import options? Options you set will be overwritten."
|
343 |
msgstr "Sei certo di volere cancellare le opzioni? Le opzioni personalizzate in precedenza verranno cancellate."
|
344 |
|
345 |
-
#: custom-field-template/custom-field-template.php:
|
346 |
msgid "Import Options »"
|
347 |
msgstr "Importa le opzioni »"
|
348 |
|
349 |
-
#: custom-field-template/custom-field-template.php:
|
350 |
msgid "Reset Options"
|
351 |
msgstr "Ripristina le opzioni"
|
352 |
|
353 |
-
#: custom-field-template/custom-field-template.php:
|
354 |
msgid "Are you sure to reset options? Options you set will be reset to the default settings."
|
355 |
msgstr "Sei certo di volere ripristinare le opzioni? Le opzioni personalizzate verranno ripristinate alle predefinite."
|
356 |
|
357 |
-
#: custom-field-template/custom-field-template.php:
|
358 |
msgid "Reset Options »"
|
359 |
msgstr "Ripristina le opzioni »"
|
360 |
|
361 |
-
#: custom-field-template/custom-field-template.php:
|
362 |
msgid "Delete Options"
|
363 |
msgstr "Cancella le opzioni"
|
364 |
|
365 |
-
#: custom-field-template/custom-field-template.php:
|
366 |
msgid "Are you sure to delete options? Options you set will be deleted."
|
367 |
msgstr "Sei certo di volere cancellare le opzioni? Le opzioni personalizzate verranno cancellate."
|
368 |
|
369 |
-
#: custom-field-template/custom-field-template.php:
|
370 |
msgid "Delete Options »"
|
371 |
msgstr "Cancella le opzioni »"
|
372 |
|
373 |
-
#: custom-field-template/custom-field-template.php:
|
374 |
msgid "Donation"
|
375 |
msgstr "Fai una donazione"
|
376 |
|
377 |
-
#: custom-field-template/custom-field-template.php:
|
378 |
msgid "If you liked this plugin, please make a donation via paypal! Any amount is welcome. Your support is much appreciated."
|
379 |
msgstr "Qualora avesi gradito questo plugin, effettua una donazione via paypal! Grazie."
|
380 |
|
381 |
-
#: custom-field-template/custom-field-template.php:
|
382 |
-
#: custom-field-template/custom-field-template.php:
|
383 |
-
#: custom-field-template/custom-field-template.php:
|
384 |
msgid "Add New"
|
385 |
msgstr "Aggiungi nuovo"
|
386 |
|
387 |
-
#: custom-field-template/custom-field-template.php:
|
388 |
msgid "Clear"
|
389 |
msgstr "Pulisci"
|
390 |
|
391 |
-
#: custom-field-template/custom-field-template.php:
|
392 |
msgid "Select"
|
393 |
msgstr "Seleziona"
|
394 |
|
395 |
-
#: custom-field-template/custom-field-template.php:
|
396 |
msgid "Add Media"
|
397 |
msgstr "Aggiungi media"
|
398 |
|
399 |
-
#: custom-field-template/custom-field-template.php:
|
400 |
msgid "Add an Image"
|
401 |
msgstr "Aggiungi immagine"
|
402 |
|
403 |
-
#: custom-field-template/custom-field-template.php:
|
404 |
msgid "Add Video"
|
405 |
msgstr "Aggiungi video"
|
406 |
|
407 |
-
#: custom-field-template/custom-field-template.php:
|
408 |
msgid "Add Audio"
|
409 |
msgstr "Aggiungi audio"
|
410 |
|
411 |
-
#: custom-field-template/custom-field-template.php:
|
412 |
msgid "Toggle"
|
413 |
msgstr "Commuta"
|
414 |
|
415 |
-
#: custom-field-template/custom-field-template.php:
|
416 |
msgid "Initialize"
|
417 |
msgstr "Inizializza"
|
418 |
|
419 |
-
#: custom-field-template/custom-field-template.php:
|
420 |
msgid "Are you sure to reset current values? Default values will be loaded."
|
421 |
msgstr "Sei certo di volere ripristinare le impostazioni? Verranno ricaricate le predefinite."
|
422 |
|
423 |
-
#: custom-field-template/custom-field-template.php:
|
424 |
msgid "Save"
|
425 |
msgstr "Salva"
|
426 |
|
427 |
-
#: custom-field-template/custom-field-template.php:
|
428 |
msgid "Search »"
|
429 |
msgstr "Cerca »"
|
430 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Custom Field Template in italiano\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2009-07-28 21:58+0900\n"
|
6 |
+
"PO-Revision-Date: 2009-07-28 22:52+0100\n"
|
7 |
"Last-Translator: Gianni Diurno (aka gidibao) <gidibao@gmail.com>\n"
|
8 |
"Language-Team: Gianni Diurno | http://gidibao.net/ <gidibao@gmail.com>\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:125
|
20 |
+
#: custom-field-template/custom-field-template.php:126
|
21 |
+
#: custom-field-template/custom-field-template.php:471
|
22 |
+
#: custom-field-template/custom-field-template.php:675
|
23 |
+
#: custom-field-template/custom-field-template.php:1693
|
24 |
+
#: custom-field-template/custom-field-template.php:1819
|
25 |
msgid "Custom Field Template"
|
26 |
msgstr "Custom Field Template"
|
27 |
|
28 |
+
#: custom-field-template/custom-field-template.php:165
|
29 |
+
#: custom-field-template/custom-field-template.php:1992
|
30 |
msgid "Load"
|
31 |
msgstr "Carica"
|
32 |
|
33 |
+
#: custom-field-template/custom-field-template.php:321
|
34 |
msgid "read more"
|
35 |
msgstr "prosegui"
|
36 |
|
37 |
+
#: custom-field-template/custom-field-template.php:339
|
38 |
+
#: custom-field-template/custom-field-template.php:349
|
39 |
msgid "Custom Fields"
|
40 |
msgstr "Campi personalizzati"
|
41 |
|
42 |
+
#: custom-field-template/custom-field-template.php:379
|
43 |
msgid "Settings"
|
44 |
msgstr "Impostazioni"
|
45 |
|
46 |
+
#: custom-field-template/custom-field-template.php:399
|
47 |
msgid "Default Template"
|
48 |
msgstr "Template predefinito"
|
49 |
|
50 |
+
#: custom-field-template/custom-field-template.php:600
|
51 |
+
#: custom-field-template/custom-field-template.php:604
|
52 |
+
#: custom-field-template/custom-field-template.php:616
|
53 |
+
#: custom-field-template/custom-field-template.php:624
|
54 |
+
#: custom-field-template/custom-field-template.php:640
|
55 |
msgid "Options updated."
|
56 |
msgstr "Le opzioni sono state aggiornate."
|
57 |
|
58 |
+
#: custom-field-template/custom-field-template.php:644
|
59 |
msgid "Value Counts rebuilt."
|
60 |
msgstr "Value Counts rigenerati. "
|
61 |
|
62 |
+
#: custom-field-template/custom-field-template.php:647
|
63 |
msgid "Tags rebuilt."
|
64 |
msgstr "Rigenera i tag."
|
65 |
|
66 |
+
#: custom-field-template/custom-field-template.php:656
|
67 |
msgid "Options imported."
|
68 |
msgstr "Le opzioni sono state importate."
|
69 |
|
70 |
+
#: custom-field-template/custom-field-template.php:663
|
71 |
msgid "Options resetted."
|
72 |
msgstr "Le opzioni sono state ripristinate."
|
73 |
|
74 |
+
#: custom-field-template/custom-field-template.php:667
|
75 |
msgid "Options deleted."
|
76 |
msgstr "Le opzioni sini state cancellate:"
|
77 |
|
78 |
+
#: custom-field-template/custom-field-template.php:681
|
79 |
+
#: custom-field-template/custom-field-template.php:772
|
80 |
+
#: custom-field-template/custom-field-template.php:791
|
81 |
+
#: custom-field-template/custom-field-template.php:820
|
82 |
+
#: custom-field-template/custom-field-template.php:851
|
83 |
+
#: custom-field-template/custom-field-template.php:890
|
84 |
+
#: custom-field-template/custom-field-template.php:911
|
85 |
+
#: custom-field-template/custom-field-template.php:928
|
86 |
+
#: custom-field-template/custom-field-template.php:1066
|
87 |
+
#: custom-field-template/custom-field-template.php:1082
|
88 |
+
#: custom-field-template/custom-field-template.php:1098
|
89 |
+
#: custom-field-template/custom-field-template.php:1114
|
90 |
+
#: custom-field-template/custom-field-template.php:1130
|
91 |
msgid "Click to toggle"
|
92 |
msgstr "Clicca per commutare"
|
93 |
|
94 |
+
#: custom-field-template/custom-field-template.php:682
|
95 |
msgid "Custom Field Template Options"
|
96 |
msgstr "Opzioni template campi personalizzati"
|
97 |
|
98 |
+
#: custom-field-template/custom-field-template.php:692
|
99 |
msgid "Template Title"
|
100 |
msgstr "Nome del template:"
|
101 |
|
102 |
+
#: custom-field-template/custom-field-template.php:694
|
103 |
msgid "Template Instruction"
|
104 |
msgstr "Allestimento template"
|
105 |
|
106 |
+
#: custom-field-template/custom-field-template.php:696
|
107 |
+
#: custom-field-template/custom-field-template.php:867
|
108 |
msgid "Post Type"
|
109 |
msgstr "Tipo di articolo"
|
110 |
|
111 |
+
#: custom-field-template/custom-field-template.php:698
|
112 |
+
#: custom-field-template/custom-field-template.php:868
|
113 |
msgid "Both"
|
114 |
msgstr "Entrambi"
|
115 |
|
116 |
+
#: custom-field-template/custom-field-template.php:699
|
117 |
+
#: custom-field-template/custom-field-template.php:869
|
118 |
msgid "Post"
|
119 |
msgstr "Articolo"
|
120 |
|
121 |
+
#: custom-field-template/custom-field-template.php:700
|
122 |
+
#: custom-field-template/custom-field-template.php:870
|
123 |
msgid "Page"
|
124 |
msgstr "Pagina"
|
125 |
|
126 |
+
#: custom-field-template/custom-field-template.php:701
|
127 |
msgid "Post ID (comma-deliminated)"
|
128 |
msgstr "ID articolo (separa con una virgola)"
|
129 |
|
130 |
+
#: custom-field-template/custom-field-template.php:703
|
131 |
+
#: custom-field-template/custom-field-template.php:871
|
132 |
msgid "Category ID (comma-deliminated)"
|
133 |
msgstr "ID categoria (separa con una virgola)"
|
134 |
|
135 |
+
#: custom-field-template/custom-field-template.php:705
|
136 |
msgid "Page Template file name(s) (comma-deliminated)"
|
137 |
msgstr "Nome/i file template pagina (separa con una virgola)"
|
138 |
|
139 |
+
#: custom-field-template/custom-field-template.php:707
|
140 |
msgid "Template Content"
|
141 |
msgstr "Contenuti template"
|
142 |
|
143 |
+
#: custom-field-template/custom-field-template.php:714
|
144 |
msgid "In case that you would like to insert multiple images at once in use of the custom field media buttons"
|
145 |
msgstr "Nel caso in cui desiderassi inserire più immagini contemporaneamente utilizza i pulsanti media del campo personalizzato"
|
146 |
|
147 |
+
#: custom-field-template/custom-field-template.php:715
|
148 |
msgid "Use multiple image inset"
|
149 |
msgstr "Inserisci più immagini contemporaneamente"
|
150 |
|
151 |
+
#: custom-field-template/custom-field-template.php:715
|
152 |
msgid "Caution:"
|
153 |
msgstr "Attenzione:"
|
154 |
|
155 |
+
#: custom-field-template/custom-field-template.php:715
|
156 |
msgid "You need to edit `wp-admin/includes/media.php`. Delete or comment out the code in the function media_send_to_editor."
|
157 |
msgstr "E' necessario modificare `wp-admin/includes/media.php`. Cancella o disabilita il codice nella funzione media_send_to_editor."
|
158 |
|
159 |
+
#: custom-field-template/custom-field-template.php:719
|
160 |
msgid "In case that you would like to replace custom keys by labels if `label` is set"
|
161 |
msgstr "Nel caso in cui desiderassi sostituire le chiavi personalizzate con le etichette qualora fosse stato impostato `label`"
|
162 |
|
163 |
+
#: custom-field-template/custom-field-template.php:720
|
164 |
msgid "Use labels in place of custom keys"
|
165 |
msgstr "Utilizza le etichette al posto delle chiavi personalizzate"
|
166 |
|
167 |
+
#: custom-field-template/custom-field-template.php:723
|
168 |
msgid "In case that you would like to add p and br tags in textareas automatically"
|
169 |
msgstr "Nel caso in cui desiderassi aggiungere automaticamente i tag p e br nell'area di testo"
|
170 |
|
171 |
+
#: custom-field-template/custom-field-template.php:724
|
172 |
msgid "Use wpautop function"
|
173 |
msgstr "Usa funzione wpautop"
|
174 |
|
175 |
+
#: custom-field-template/custom-field-template.php:728
|
176 |
msgid "In case that you would like to save values automatically in switching templates"
|
177 |
msgstr "Nel caso in cui desiderassi salvare automaticamente i valori durante il cambio dei template"
|
178 |
|
179 |
+
#: custom-field-template/custom-field-template.php:729
|
180 |
msgid "Use the auto save in switching templates"
|
181 |
msgstr "Salva in automatico al cambio dei template"
|
182 |
|
183 |
+
#: custom-field-template/custom-field-template.php:733
|
184 |
msgid "In case that you would like to forbid to use the default custom fields."
|
185 |
msgstr "Nel caso in cui desiderassi impedire l'utilizzo dei campi personalizzati predefiniti."
|
186 |
|
187 |
+
#: custom-field-template/custom-field-template.php:734
|
188 |
msgid "Disable the default custom fields"
|
189 |
msgstr "Disattiva i campi personalizzati predefiniti"
|
190 |
|
191 |
+
#: custom-field-template/custom-field-template.php:738
|
192 |
msgid "In case that you would like to forbid to use the quick edit."
|
193 |
msgstr "Nel caso in cui desiderassi impedire l'utilizzo dell'editor veloce."
|
194 |
|
195 |
+
#: custom-field-template/custom-field-template.php:739
|
196 |
msgid "Disable the quick edit"
|
197 |
msgstr "Disattiva l'editor veloce"
|
198 |
|
199 |
+
#: custom-field-template/custom-field-template.php:743
|
200 |
+
msgid "In case that you would like to forbid to display the custom field column on the edit post list page."
|
201 |
+
msgstr "Nel caso in cui desiderassi impedire la visualizzazione della colonna per i campi personalizzati nella pagina per la modifica degli articoli."
|
202 |
+
|
203 |
+
#: custom-field-template/custom-field-template.php:744
|
204 |
+
msgid "Disable the custom field column (The quick edit also does not work.)"
|
205 |
+
msgstr "Disattiva la colonna per i campi personalizzati (La modifica rapida non funziona.)"
|
206 |
+
|
207 |
+
#: custom-field-template/custom-field-template.php:748
|
208 |
msgid "In case that you would like to replace the box title with the template title."
|
209 |
msgstr "Nel caso in cui desiderassi sostituire il titolo della casella con il titolo del template."
|
210 |
|
211 |
+
#: custom-field-template/custom-field-template.php:749
|
212 |
msgid "Replace the box title"
|
213 |
msgstr "Sostituisci il titolo della casella"
|
214 |
|
215 |
+
#: custom-field-template/custom-field-template.php:753
|
216 |
msgid "In case that you would like to use the shortcode in the widget."
|
217 |
msgstr "Nel caso in cui desiderassi utilizzare lo shortcode nel widget"
|
218 |
|
219 |
+
#: custom-field-template/custom-field-template.php:754
|
220 |
msgid "Use the shortcode in the widget"
|
221 |
msgstr "Utilizza lo shortcode nel widget"
|
222 |
|
223 |
+
#: custom-field-template/custom-field-template.php:758
|
224 |
msgid "In case that you would like to use the shortcode in the excerpt."
|
225 |
msgstr "Nel caso in cui desiderassi utilizzare lo shortcode negli estratti."
|
226 |
|
227 |
+
#: custom-field-template/custom-field-template.php:759
|
228 |
msgid "Use the shortcode in the excerpt"
|
229 |
msgstr "Usa lo shortcode negli estratti"
|
230 |
|
231 |
+
#: custom-field-template/custom-field-template.php:763
|
232 |
+
#: custom-field-template/custom-field-template.php:782
|
233 |
+
#: custom-field-template/custom-field-template.php:811
|
234 |
+
#: custom-field-template/custom-field-template.php:842
|
235 |
+
#: custom-field-template/custom-field-template.php:881
|
236 |
msgid "Update Options »"
|
237 |
msgstr "Aggiorna le opzioni »"
|
238 |
|
239 |
+
#: custom-field-template/custom-field-template.php:773
|
240 |
msgid "ADMIN CSS"
|
241 |
msgstr "CSS AMMINISTRAZIONE"
|
242 |
|
243 |
+
#: custom-field-template/custom-field-template.php:792
|
244 |
msgid "[cft] and [cftsearch] Shortcode Format"
|
245 |
msgstr "Formato Shortcode [cft] e [cftsearch]"
|
246 |
|
247 |
+
#: custom-field-template/custom-field-template.php:795
|
248 |
msgid "For [cft], [key] will be converted into the value of [key]."
|
249 |
msgstr "[key] verrà convertito nel valore di [key]."
|
250 |
|
251 |
+
#: custom-field-template/custom-field-template.php:796
|
252 |
msgid "For [cftsearch], [key] will be converted into the input field."
|
253 |
msgstr "[cftsearch], [key] verrà convertito nell'input del campo."
|
254 |
|
255 |
+
#: custom-field-template/custom-field-template.php:805
|
256 |
+
#: custom-field-template/custom-field-template.php:874
|
257 |
msgid "Use PHP"
|
258 |
msgstr "Usa PHP"
|
259 |
|
260 |
+
#: custom-field-template/custom-field-template.php:821
|
261 |
msgid "PHP CODE (Experimental Option)"
|
262 |
msgstr "CODICE PHP CODE (opzione sperimentale)"
|
263 |
|
264 |
+
#: custom-field-template/custom-field-template.php:823
|
265 |
msgid "Are you sure to save PHP codes? Please do it at your own risk."
|
266 |
msgstr "Sei certo di volere salvare dei codici PHP? Se sì, fallo a tuo rischio."
|
267 |
|
268 |
+
#: custom-field-template/custom-field-template.php:824
|
269 |
msgid "For `text` and `textarea`, you must set $value as an string."
|
270 |
msgstr "`text` e `textarea`, dovrai impostare come stringa $value."
|
271 |
|
272 |
+
#: custom-field-template/custom-field-template.php:826
|
273 |
msgid "For `checkbox`, `radio`, and `select`, you must set $values as an array."
|
274 |
msgstr "`checkbox`, `radio`, e `select`, dovrai impostare come array $values."
|
275 |
|
276 |
+
#: custom-field-template/custom-field-template.php:852
|
277 |
msgid "Auto Hook of `the_content()` (Experimental Option)"
|
278 |
msgstr "Hook automatico di `the_content()` (opzione sperimentale)"
|
279 |
|
280 |
+
#: custom-field-template/custom-field-template.php:862
|
281 |
msgid "Position"
|
282 |
msgstr "Posizione"
|
283 |
|
284 |
+
#: custom-field-template/custom-field-template.php:863
|
285 |
msgid "Before the conetnt"
|
286 |
msgstr "Davanti ai contenuti"
|
287 |
|
288 |
+
#: custom-field-template/custom-field-template.php:864
|
289 |
msgid "After the conetnt"
|
290 |
msgstr "A seguire i contenuti"
|
291 |
|
292 |
+
#: custom-field-template/custom-field-template.php:865
|
293 |
#, php-format
|
294 |
msgid "Inside the conetnt ([cfthook hook=%d])"
|
295 |
msgstr "Dentro il contenuto ([cfthook hook=%d])"
|
296 |
|
297 |
+
#: custom-field-template/custom-field-template.php:873
|
298 |
msgid "Content"
|
299 |
msgstr "Contenuti"
|
300 |
|
301 |
+
#: custom-field-template/custom-field-template.php:875
|
302 |
msgid "Apply to feeds"
|
303 |
msgstr "Applica ai feed"
|
304 |
|
305 |
+
#: custom-field-template/custom-field-template.php:891
|
306 |
msgid "Rebuild Value Counts"
|
307 |
msgstr "Rigenera Value Counts"
|
308 |
|
309 |
+
#: custom-field-template/custom-field-template.php:893
|
310 |
msgid "Are you sure to rebuild all value counts?"
|
311 |
msgstr "Sei certo di volere rigenerare tutti i value counts?"
|
312 |
|
313 |
+
#: custom-field-template/custom-field-template.php:897
|
314 |
msgid "Value Counts are used for temporarily saving how many values in each key. Set `valueCount = true` into fields."
|
315 |
msgstr "I Value Counts sono utilizzati per il salvataggio temporaneo dei valori per ogni chiave. Imposta dentro ai campi `valueCount = true`."
|
316 |
|
317 |
+
#: custom-field-template/custom-field-template.php:901
|
318 |
msgid "Rebuild Value Counts »"
|
319 |
msgstr "Rigenera Value Counts »"
|
320 |
|
321 |
+
#: custom-field-template/custom-field-template.php:912
|
322 |
msgid "Rebuild Tags"
|
323 |
msgstr "Rigenera i tag"
|
324 |
|
325 |
+
#: custom-field-template/custom-field-template.php:914
|
326 |
msgid "Are you sure to rebuild tags?"
|
327 |
msgstr "Sei certo di volere rigenerare i tag?"
|
328 |
|
329 |
+
#: custom-field-template/custom-field-template.php:918
|
330 |
msgid "Rebuild Tags »"
|
331 |
msgstr "Rigenera tag »"
|
332 |
|
333 |
+
#: custom-field-template/custom-field-template.php:929
|
334 |
msgid "Option List"
|
335 |
msgstr "Lista opzione"
|
336 |
|
337 |
+
#: custom-field-template/custom-field-template.php:1067
|
338 |
msgid "Export Options"
|
339 |
msgstr "Esporta le opzioni"
|
340 |
|
341 |
+
#: custom-field-template/custom-field-template.php:1073
|
342 |
msgid "Export Options »"
|
343 |
msgstr "Esporta le opzioni »"
|
344 |
|
345 |
+
#: custom-field-template/custom-field-template.php:1083
|
346 |
msgid "Import Options"
|
347 |
msgstr "Importa le opzioni"
|
348 |
|
349 |
+
#: custom-field-template/custom-field-template.php:1085
|
350 |
msgid "Are you sure to import options? Options you set will be overwritten."
|
351 |
msgstr "Sei certo di volere cancellare le opzioni? Le opzioni personalizzate in precedenza verranno cancellate."
|
352 |
|
353 |
+
#: custom-field-template/custom-field-template.php:1089
|
354 |
msgid "Import Options »"
|
355 |
msgstr "Importa le opzioni »"
|
356 |
|
357 |
+
#: custom-field-template/custom-field-template.php:1099
|
358 |
msgid "Reset Options"
|
359 |
msgstr "Ripristina le opzioni"
|
360 |
|
361 |
+
#: custom-field-template/custom-field-template.php:1101
|
362 |
msgid "Are you sure to reset options? Options you set will be reset to the default settings."
|
363 |
msgstr "Sei certo di volere ripristinare le opzioni? Le opzioni personalizzate verranno ripristinate alle predefinite."
|
364 |
|
365 |
+
#: custom-field-template/custom-field-template.php:1105
|
366 |
msgid "Reset Options »"
|
367 |
msgstr "Ripristina le opzioni »"
|
368 |
|
369 |
+
#: custom-field-template/custom-field-template.php:1115
|
370 |
msgid "Delete Options"
|
371 |
msgstr "Cancella le opzioni"
|
372 |
|
373 |
+
#: custom-field-template/custom-field-template.php:1117
|
374 |
msgid "Are you sure to delete options? Options you set will be deleted."
|
375 |
msgstr "Sei certo di volere cancellare le opzioni? Le opzioni personalizzate verranno cancellate."
|
376 |
|
377 |
+
#: custom-field-template/custom-field-template.php:1121
|
378 |
msgid "Delete Options »"
|
379 |
msgstr "Cancella le opzioni »"
|
380 |
|
381 |
+
#: custom-field-template/custom-field-template.php:1131
|
382 |
msgid "Donation"
|
383 |
msgstr "Fai una donazione"
|
384 |
|
385 |
+
#: custom-field-template/custom-field-template.php:1133
|
386 |
msgid "If you liked this plugin, please make a donation via paypal! Any amount is welcome. Your support is much appreciated."
|
387 |
msgstr "Qualora avesi gradito questo plugin, effettua una donazione via paypal! Grazie."
|
388 |
|
389 |
+
#: custom-field-template/custom-field-template.php:1227
|
390 |
+
#: custom-field-template/custom-field-template.php:1342
|
391 |
+
#: custom-field-template/custom-field-template.php:1420
|
392 |
msgid "Add New"
|
393 |
msgstr "Aggiungi nuovo"
|
394 |
|
395 |
+
#: custom-field-template/custom-field-template.php:1352
|
396 |
msgid "Clear"
|
397 |
msgstr "Pulisci"
|
398 |
|
399 |
+
#: custom-field-template/custom-field-template.php:1436
|
400 |
msgid "Select"
|
401 |
msgstr "Seleziona"
|
402 |
|
403 |
+
#: custom-field-template/custom-field-template.php:1498
|
404 |
msgid "Add Media"
|
405 |
msgstr "Aggiungi media"
|
406 |
|
407 |
+
#: custom-field-template/custom-field-template.php:1500
|
408 |
msgid "Add an Image"
|
409 |
msgstr "Aggiungi immagine"
|
410 |
|
411 |
+
#: custom-field-template/custom-field-template.php:1502
|
412 |
msgid "Add Video"
|
413 |
msgstr "Aggiungi video"
|
414 |
|
415 |
+
#: custom-field-template/custom-field-template.php:1504
|
416 |
msgid "Add Audio"
|
417 |
msgstr "Aggiungi audio"
|
418 |
|
419 |
+
#: custom-field-template/custom-field-template.php:1515
|
420 |
msgid "Toggle"
|
421 |
msgstr "Commuta"
|
422 |
|
423 |
+
#: custom-field-template/custom-field-template.php:1866
|
424 |
msgid "Initialize"
|
425 |
msgstr "Inizializza"
|
426 |
|
427 |
+
#: custom-field-template/custom-field-template.php:1867
|
428 |
msgid "Are you sure to reset current values? Default values will be loaded."
|
429 |
msgstr "Sei certo di volere ripristinare le impostazioni? Verranno ricaricate le predefinite."
|
430 |
|
431 |
+
#: custom-field-template/custom-field-template.php:1870
|
432 |
msgid "Save"
|
433 |
msgstr "Salva"
|
434 |
|
435 |
+
#: custom-field-template/custom-field-template.php:2374
|
436 |
msgid "Search »"
|
437 |
msgstr "Cerca »"
|
438 |
|
custom-field-template.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Custom Field Template
|
4 |
-
Plugin URI: http://
|
5 |
Description: This plugin adds the default custom fields on the Write Post/Page.
|
6 |
Author: Hiroaki Miyashita
|
7 |
-
Version: 1.3.
|
8 |
-
Author URI: http://
|
9 |
*/
|
10 |
|
11 |
/*
|
@@ -989,9 +989,30 @@ hideKey = true<br />
|
|
989 |
<th>dateFormat</th><td>dateFormat = yyyy/mm/dd</td><td></td><td></td><td></td><td></td>
|
990 |
</tr>
|
991 |
<tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
992 |
<th>mediaButton</th><td></td><td></td><td></td><td></td><td>mediaButton = true</td>
|
993 |
</tr>
|
994 |
<tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
995 |
<th>code</th><td>code = 0</td><td>code = 0</td><td>code = 0</td><td>code = 0</td><td>code = 0</td>
|
996 |
</tr>
|
997 |
<tr>
|
@@ -1181,7 +1202,7 @@ jQuery(this).addClass("closed");
|
|
1181 |
return $custom_fields;
|
1182 |
}
|
1183 |
|
1184 |
-
function make_textfield( $name, $sid, $size = 25, $default, $hideKey, $label, $code, $class, $style, $before, $after, $maxlength, $multipleButton, $date, $dateFirstDayOfWeek, $dateFormat,
|
1185 |
$onclick, $ondblclick, $onkeydown, $onkeypress, $onkeyup, $onmousedown, $onmouseup, $onmouseover, $onmouseout, $onmousemove, $onfocus, $onblur, $onchange, $onselect ) {
|
1186 |
$options = $this->get_custom_field_template_data();
|
1187 |
|
@@ -1211,6 +1232,7 @@ jQuery(this).addClass("closed");
|
|
1211 |
elseif ( !empty($class) ) $class = ' class="' . $class . '"';
|
1212 |
if ( !empty($style) ) $style = ' style="' . $style . '"';
|
1213 |
if ( !empty($maxlength) ) $maxlength = ' maxlength="' . $maxlength . '"';
|
|
|
1214 |
|
1215 |
if ( !empty($label) && $options['custom_field_template_replace_keys_by_labels'] )
|
1216 |
$title = stripcslashes($label);
|
@@ -1235,14 +1257,18 @@ jQuery(this).addClass("closed");
|
|
1235 |
|
1236 |
if ( !empty($label) && !$options['custom_field_template_replace_keys_by_labels'] )
|
1237 |
$out .= '<p class="label">' . stripcslashes($label) . '</p>';
|
1238 |
-
$out .= trim($before).'<input id="' . $name . $sid . '" name="' . $name . '[]" value="' . attribute_escape(trim($value)) . '" type="text" size="' . $size . '"' . $class . $style . $maxlength . $event_output . ' />'.trim($after);
|
1239 |
|
1240 |
if ( $date == true ) :
|
1241 |
$out .= '<script type="text/javascript">' . "\n" .
|
1242 |
'// <![CDATA[' . "\n";
|
1243 |
-
if ( is_numeric($dateFirstDayOfWeek) ) $out .= 'Date.firstDayOfWeek = ' . trim($dateFirstDayOfWeek) . ";\n";
|
1244 |
-
if ( $dateFormat ) $out .= 'Date.format = "' . trim($dateFormat) . '"' . ";\n";
|
1245 |
-
$out .= 'jQuery(document).ready(function() { jQuery(".datePicker").css("float", "left"); jQuery(".datePicker").datePicker(
|
|
|
|
|
|
|
|
|
1246 |
'// ]]>' . "\n" .
|
1247 |
'</script>';
|
1248 |
endif;
|
@@ -1305,7 +1331,7 @@ jQuery(this).addClass("closed");
|
|
1305 |
return $out;
|
1306 |
}
|
1307 |
|
1308 |
-
function make_radio( $name, $sid, $values, $valueLabel, $clearButton, $default, $hideKey, $label, $code, $class, $style, $multipleButton,
|
1309 |
$onclick, $ondblclick, $onkeydown, $onkeypress, $onkeyup, $onmousedown, $onmouseup, $onmouseover, $onmouseout, $onmousemove, $onfocus, $onblur, $onchange, $onselect ) {
|
1310 |
$options = $this->get_custom_field_template_data();
|
1311 |
|
@@ -1454,7 +1480,7 @@ jQuery(this).addClass("closed");
|
|
1454 |
return $out;
|
1455 |
}
|
1456 |
|
1457 |
-
function make_textarea( $name, $sid, $rows, $cols, $tinyMCE, $htmlEditor, $mediaButton, $default, $hideKey, $label, $code, $class, $style,
|
1458 |
$onclick, $ondblclick, $onkeydown, $onkeypress, $onkeyup, $onmousedown, $onmouseup, $onmouseover, $onmouseout, $onmousemove, $onfocus, $onblur, $onchange, $onselect ) {
|
1459 |
$options = $this->get_custom_field_template_data();
|
1460 |
|
@@ -1493,22 +1519,29 @@ jQuery(this).addClass("closed");
|
|
1493 |
|
1494 |
if ( !strstr($_SERVER['REQUEST_URI'], 'wp-admin/edit.php') && !strstr($_SERVER['REQUEST_URI'], 'wp-admin/edit-pages.php') ) {
|
1495 |
|
1496 |
-
if ( $mediaButton == true )
|
1497 |
$media_upload_iframe_src = "media-upload.php";
|
1498 |
-
|
1499 |
-
|
1500 |
-
|
1501 |
-
|
1502 |
-
|
1503 |
-
|
1504 |
-
|
1505 |
-
|
1506 |
-
|
1507 |
-
<a href
|
1508 |
-
|
1509 |
-
|
1510 |
-
|
1511 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1512 |
|
1513 |
$switch = '<div>';
|
1514 |
if( $tinyMCE == true && user_can_richedit() ) {
|
@@ -1632,7 +1665,7 @@ EOF;
|
|
1632 |
$out .= '</div><div' . $class . '>';
|
1633 |
}
|
1634 |
else if( $data[$i]['type'] == 'textfield' || $data[$i]['type'] == 'text' ) {
|
1635 |
-
$out .= $this->make_textfield( $title, $i, $data[$i]['size'], $data[$i]['default'], $data[$i]['hideKey'], $data[$i]['label'], $data[$i]['code'], $data[$i]['class'], $data[$i]['style'], $data[$i]['before'], $data[$i]['after'], $data[$i]['maxlength'], $data[$i]['multipleButton'], $data[$i]['date'], $data[$i]['dateFirstDayOfWeek'], $data[$i]['dateFormat'],
|
1636 |
$data[$i]['onclick'], $data[$i]['ondblclick'], $data[$i]['onkeydown'], $data[$i]['onkeypress'], $data[$i]['onkeyup'], $data[$i]['onmousedown'], $data[$i]['onmouseup'], $data[$i]['onmouseover'], $data[$i]['onmouseout'], $data[$i]['onmousemove'], $data[$i]['onfocus'], $data[$i]['onblur'], $data[$i]['onchange'], $data[$i]['onselect'] );
|
1637 |
}
|
1638 |
else if( $data[$i]['type'] == 'checkbox' ) {
|
@@ -1643,7 +1676,7 @@ EOF;
|
|
1643 |
else if( $data[$i]['type'] == 'radio' ) {
|
1644 |
$out .=
|
1645 |
$this->make_radio(
|
1646 |
-
$title, $i, explode( '#', $data[$i]['value'] ), explode( '#', $data[$i]['valueLabel'] ), $data[$i]['clearButton'], $data[$i]['default'], $data[$i]['hideKey'], $data[$i]['label'], $data[$i]['code'], $data[$i]['class'], $data[$i]['style'], $data[$i]['multipleButton'],
|
1647 |
$data[$i]['onclick'], $data[$i]['ondblclick'], $data[$i]['onkeydown'], $data[$i]['onkeypress'], $data[$i]['onkeyup'], $data[$i]['onmousedown'], $data[$i]['onmouseup'], $data[$i]['onmouseover'], $data[$i]['onmouseout'], $data[$i]['onmousemove'], $data[$i]['onfocus'], $data[$i]['onblur'], $data[$i]['onchange'], $data[$i]['onselect'] );
|
1648 |
}
|
1649 |
else if( $data[$i]['type'] == 'select' ) {
|
@@ -1655,7 +1688,7 @@ EOF;
|
|
1655 |
else if( $data[$i]['type'] == 'textarea' ) {
|
1656 |
if ( $options['tinyMCE'][$_REQUEST['post']][$this->sanitize_name($title)][$i] ) $data[$i]['rows'] = $options['tinyMCE'][$_REQUEST['post']][$this->sanitize_name($title)][$i];
|
1657 |
$out .=
|
1658 |
-
$this->make_textarea( $title, $i, $data[$i]['rows'], $data[$i]['cols'], $data[$i]['tinyMCE'], $data[$i]['htmlEditor'], $data[$i]['mediaButton'], $data[$i]['default'], $data[$i]['hideKey'], $data[$i]['label'], $data[$i]['code'], $data[$i]['class'], $data[$i]['style'],
|
1659 |
$data[$i]['onclick'], $data[$i]['ondblclick'], $data[$i]['onkeydown'], $data[$i]['onkeypress'], $data[$i]['onkeyup'], $data[$i]['onmousedown'], $data[$i]['onmouseup'], $data[$i]['onmouseover'], $data[$i]['onmouseout'], $data[$i]['onmousemove'], $data[$i]['onfocus'], $data[$i]['onblur'], $data[$i]['onchange'], $data[$i]['onselect'] );
|
1660 |
}
|
1661 |
}
|
@@ -2381,10 +2414,9 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2381 |
|
2382 |
$count = count($options['custom_fields']);
|
2383 |
if ( $count ) :
|
2384 |
-
for ($
|
2385 |
-
$fields = $this->get_custom_fields( $
|
2386 |
foreach ( $fields as $key => $val ) :
|
2387 |
-
unset($replace);
|
2388 |
$replace[0] = $val;
|
2389 |
|
2390 |
$search = array();
|
@@ -2394,6 +2426,8 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2394 |
if($val[0]['searchValueLabel']) eval('$search["valueLabel"] =' . stripslashes($val[0]['searchValueLabel']));
|
2395 |
if($val[0]['searchDefault']) eval('$search["default"] =' . stripslashes($val[0]['searchDefault']));
|
2396 |
if($val[0]['searchClass']) eval('$search["class"] =' . stripslashes($val[0]['searchClass']));
|
|
|
|
|
2397 |
|
2398 |
foreach ( $search as $skey => $sval ) :
|
2399 |
$j = 1;
|
@@ -2426,8 +2460,8 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2426 |
$valueLabel = explode( '#', $rval[0]['valueLabel'] );
|
2427 |
$default = explode( '#', $rval[0]['default'] );
|
2428 |
endif;
|
2429 |
-
if ( is_numeric($rval[0]['
|
2430 |
-
eval(stripcslashes($options['php'][$rval[0]['
|
2431 |
endif;
|
2432 |
if ( count($values) > 1 ) :
|
2433 |
$replace_val[$rkey] .= '<ul>';
|
@@ -2452,7 +2486,9 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2452 |
endforeach;
|
2453 |
$replace_val[$rkey] .= '</ul>';
|
2454 |
else :
|
2455 |
-
$
|
|
|
|
|
2456 |
if ( $valueLabel[0] ) $replace_val[$rkey] .= stripcslashes(trim($valueLabel[0]));
|
2457 |
else $replace_val[$rkey] .= stripcslashes(trim($values[0]));
|
2458 |
$replace_val[$rkey] .= '</label>';
|
@@ -2463,8 +2499,8 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2463 |
$values = explode( '#', $rval[0]['value'] );
|
2464 |
$valueLabel = explode( '#', $rval[0]['valueLabel'] );
|
2465 |
$default = explode( '#', $rval[0]['default'] );
|
2466 |
-
if ( is_numeric($rval[0]['
|
2467 |
-
eval(stripcslashes($options['php'][$rval[0]['
|
2468 |
endif;
|
2469 |
if ( count($values) > 1 ) :
|
2470 |
$replace_val[$rkey] .= '<ul>';
|
@@ -2488,7 +2524,9 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2488 |
endforeach;
|
2489 |
$replace_val[$rkey] .= '</ul>';
|
2490 |
else :
|
2491 |
-
$
|
|
|
|
|
2492 |
if ( $valueLabel[0] ) $replace_val[$rkey] .= stripcslashes(trim($valueLabel[0]));
|
2493 |
else $replace_val[$rkey] .= stripcslashes(trim($values[0]));
|
2494 |
$replace_val[$rkey] .= '</label>';
|
@@ -2499,12 +2537,13 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2499 |
$values = explode( '#', $rval[0]['value'] );
|
2500 |
$valueLabel = explode( '#', $rval[0]['valueLabel'] );
|
2501 |
$default = explode( '#', $rval[0]['default'] );
|
|
|
2502 |
|
2503 |
-
if ( is_numeric($rval[0]['
|
2504 |
-
eval(stripcslashes($options['php'][$rval[0]['
|
2505 |
endif;
|
2506 |
$replace_val[$rkey] .= '<select name="cftsearch[' . urlencode($key) . '][' . $rkey . '][]"' . $class . '>';
|
2507 |
-
$replace_val[$rkey] .= '<option value=""
|
2508 |
$j=0;
|
2509 |
foreach ( $values as $metaval ) :
|
2510 |
$metaval = trim($metaval);
|
@@ -2525,13 +2564,12 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2525 |
break;
|
2526 |
endswitch;
|
2527 |
endforeach;
|
2528 |
-
|
2529 |
if ( $options['shortcode_format_use_php'][$format] )
|
2530 |
$output = preg_replace_callback("/(<\?php|<\?|< \?php)(.*?)\?>/si", array($this, 'EvalBuffer'), $output);
|
2531 |
$key = preg_quote($key, '/');
|
2532 |
$output = preg_replace('/\['.$key.'\](?!\[[0-9]+\])/', $replace_val[0], $output);
|
2533 |
$output = preg_replace('/\['.$key.'\]\[([0-9]+)\](?!\[\])/e', '$replace_val[${1}]', $output);
|
2534 |
-
|
2535 |
endforeach;
|
2536 |
endfor;
|
2537 |
endif;
|
@@ -2663,26 +2701,30 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2663 |
if ( is_array($_REQUEST['cftsearch']) ) :
|
2664 |
foreach ( $_REQUEST['cftsearch'] as $key => $val ) :
|
2665 |
$key = rawurldecode($key);
|
2666 |
-
|
2667 |
-
foreach( $
|
2668 |
-
if ( $
|
2669 |
-
|
2670 |
-
|
2671 |
-
|
2672 |
-
|
2673 |
-
|
2674 |
-
|
2675 |
-
|
2676 |
-
|
2677 |
-
|
2678 |
-
|
2679 |
-
|
2680 |
-
|
2681 |
-
|
2682 |
-
|
|
|
|
|
|
|
|
|
2683 |
endif;
|
2684 |
endforeach;
|
2685 |
-
|
2686 |
endforeach;
|
2687 |
endif;
|
2688 |
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Custom Field Template
|
4 |
+
Plugin URI: http://wpgogo.com/development/custom-field-template.html
|
5 |
Description: This plugin adds the default custom fields on the Write Post/Page.
|
6 |
Author: Hiroaki Miyashita
|
7 |
+
Version: 1.3.8
|
8 |
+
Author URI: http://wpgogo.com/
|
9 |
*/
|
10 |
|
11 |
/*
|
989 |
<th>dateFormat</th><td>dateFormat = yyyy/mm/dd</td><td></td><td></td><td></td><td></td>
|
990 |
</tr>
|
991 |
<tr>
|
992 |
+
<th>startDate</th><td>startDate = '1970/01/01'</td><td></td><td></td><td></td><td></td>
|
993 |
+
</tr>
|
994 |
+
<tr>
|
995 |
+
<th>endDate</th><td>endDate = (new Date()).asString()</td><td></td><td></td><td></td><td></td>
|
996 |
+
</tr>
|
997 |
+
<tr>
|
998 |
+
<th>readOnly</th><td>readOnly = true</td><td></td><td></td><td></td><td></td>
|
999 |
+
</tr>
|
1000 |
+
<tr>
|
1001 |
<th>mediaButton</th><td></td><td></td><td></td><td></td><td>mediaButton = true</td>
|
1002 |
</tr>
|
1003 |
<tr>
|
1004 |
+
<th>mediaOffImage</th><td></td><td></td><td></td><td></td><td>mediaOffImage = true</td>
|
1005 |
+
</tr>
|
1006 |
+
<tr>
|
1007 |
+
<th>mediaOffVideo</th><td></td><td></td><td></td><td></td><td>mediaOffVideo = true</td>
|
1008 |
+
</tr>
|
1009 |
+
<tr>
|
1010 |
+
<th>mediaOffAudio</th><td></td><td></td><td></td><td></td><td>mediaOffAudio = true</td>
|
1011 |
+
</tr>
|
1012 |
+
<tr>
|
1013 |
+
<th>mediaOffMedia</th><td></td><td></td><td></td><td></td><td>mediaOffMedia = true</td>
|
1014 |
+
</tr>
|
1015 |
+
<tr>
|
1016 |
<th>code</th><td>code = 0</td><td>code = 0</td><td>code = 0</td><td>code = 0</td><td>code = 0</td>
|
1017 |
</tr>
|
1018 |
<tr>
|
1202 |
return $custom_fields;
|
1203 |
}
|
1204 |
|
1205 |
+
function make_textfield( $name, $sid, $size = 25, $default, $hideKey, $label, $code, $class, $style, $before, $after, $maxlength, $multipleButton, $date, $dateFirstDayOfWeek, $dateFormat, $startDate, $endDate, $readOnly,
|
1206 |
$onclick, $ondblclick, $onkeydown, $onkeypress, $onkeyup, $onmousedown, $onmouseup, $onmouseover, $onmouseout, $onmousemove, $onfocus, $onblur, $onchange, $onselect ) {
|
1207 |
$options = $this->get_custom_field_template_data();
|
1208 |
|
1232 |
elseif ( !empty($class) ) $class = ' class="' . $class . '"';
|
1233 |
if ( !empty($style) ) $style = ' style="' . $style . '"';
|
1234 |
if ( !empty($maxlength) ) $maxlength = ' maxlength="' . $maxlength . '"';
|
1235 |
+
if ( !empty($readOnly) ) $readOnly = ' readonly="readonly"';
|
1236 |
|
1237 |
if ( !empty($label) && $options['custom_field_template_replace_keys_by_labels'] )
|
1238 |
$title = stripcslashes($label);
|
1257 |
|
1258 |
if ( !empty($label) && !$options['custom_field_template_replace_keys_by_labels'] )
|
1259 |
$out .= '<p class="label">' . stripcslashes($label) . '</p>';
|
1260 |
+
$out .= trim($before).'<input id="' . $name . $sid . '" name="' . $name . '[]" value="' . attribute_escape(trim($value)) . '" type="text" size="' . $size . '"' . $class . $style . $maxlength . $event_output . $readOnly . ' />'.trim($after);
|
1261 |
|
1262 |
if ( $date == true ) :
|
1263 |
$out .= '<script type="text/javascript">' . "\n" .
|
1264 |
'// <![CDATA[' . "\n";
|
1265 |
+
if ( is_numeric($dateFirstDayOfWeek) ) $out .= 'Date.firstDayOfWeek = ' . stripcslashes(trim($dateFirstDayOfWeek)) . ";\n";
|
1266 |
+
if ( $dateFormat ) $out .= 'Date.format = "' . stripcslashes(trim($dateFormat)) . '"' . ";\n";
|
1267 |
+
$out .= 'jQuery(document).ready(function() { jQuery(".datePicker").css("float", "left"); jQuery(".datePicker").datePicker({';
|
1268 |
+
if ( $startDate ) $out .= "startDate: " . stripcslashes(trim($startDate));
|
1269 |
+
if ( $startDate && $endDate ) $out .= ",";
|
1270 |
+
if ( $endDate ) $out .= "endDate: " . stripcslashes(trim($endDate)) . "";
|
1271 |
+
$out .= '}); });' . "\n" .
|
1272 |
'// ]]>' . "\n" .
|
1273 |
'</script>';
|
1274 |
endif;
|
1331 |
return $out;
|
1332 |
}
|
1333 |
|
1334 |
+
function make_radio( $name, $sid, $values, $valueLabel, $clearButton, $default, $hideKey, $label, $code, $class, $style, $multipleButton,
|
1335 |
$onclick, $ondblclick, $onkeydown, $onkeypress, $onkeyup, $onmousedown, $onmouseup, $onmouseover, $onmouseout, $onmousemove, $onfocus, $onblur, $onchange, $onselect ) {
|
1336 |
$options = $this->get_custom_field_template_data();
|
1337 |
|
1480 |
return $out;
|
1481 |
}
|
1482 |
|
1483 |
+
function make_textarea( $name, $sid, $rows, $cols, $tinyMCE, $htmlEditor, $mediaButton, $default, $hideKey, $label, $code, $class, $style, $mediaOffMedia, $mediaOffImage, $mediaOffVideo, $mediaOffAudio,
|
1484 |
$onclick, $ondblclick, $onkeydown, $onkeypress, $onkeyup, $onmousedown, $onmouseup, $onmouseover, $onmouseout, $onmousemove, $onfocus, $onblur, $onchange, $onselect ) {
|
1485 |
$options = $this->get_custom_field_template_data();
|
1486 |
|
1519 |
|
1520 |
if ( !strstr($_SERVER['REQUEST_URI'], 'wp-admin/edit.php') && !strstr($_SERVER['REQUEST_URI'], 'wp-admin/edit-pages.php') ) {
|
1521 |
|
1522 |
+
if ( $mediaButton == true ) :
|
1523 |
$media_upload_iframe_src = "media-upload.php";
|
1524 |
+
|
1525 |
+
if ( !$mediaOffImage ) :
|
1526 |
+
$image_upload_iframe_src = apply_filters('image_upload_iframe_src', "$media_upload_iframe_src?type=image");
|
1527 |
+
$image_title = __('Add an Image');
|
1528 |
+
$media .= "<a href=\"{$image_upload_iframe_src}&TB_iframe=true\" id=\"add_image{$rand}\" title='$image_title' onclick=\"focusTextArea('{$name}{$rand}'); jQuery(this).attr('href',jQuery(this).attr('href').replace('\?','?post_id='+jQuery('#post_ID').val())); return thickbox(this);\"><img src='images/media-button-image.gif' alt='$image_title' /></a> ";
|
1529 |
+
endif;
|
1530 |
+
if ( !$mediaOffVideo ) :
|
1531 |
+
$video_upload_iframe_src = apply_filters('video_upload_iframe_src', "$media_upload_iframe_src?type=video");
|
1532 |
+
$video_title = __('Add Video');
|
1533 |
+
$media .= "<a href=\"{$video_upload_iframe_src}&TB_iframe=true\" id=\"add_video{$rand}\" title='$video_title' onclick=\"focusTextArea('{$name}{$rand}'); jQuery(this).attr('href',jQuery(this).attr('href').replace('\?','?post_id='+jQuery('#post_ID').val())); return thickbox(this);\"><img src='images/media-button-video.gif' alt='$video_title' /></a> ";
|
1534 |
+
endif;
|
1535 |
+
if ( !$mediaOffAudio ) :
|
1536 |
+
$audio_upload_iframe_src = apply_filters('audio_upload_iframe_src', "$media_upload_iframe_src?type=audio");
|
1537 |
+
$audio_title = __('Add Audio');
|
1538 |
+
$media .= "<a href=\"{$audio_upload_iframe_src}&TB_iframe=true\" id=\"add_audio{$rand}\" title='$audio_title' onclick=\"focusTextArea('{$name}{$rand}'); jQuery(this).attr('href',jQuery(this).attr('href').replace('\?','?post_id='+jQuery('#post_ID').val())); return thickbox(this);\"><img src='images/media-button-music.gif' alt='$audio_title' /></a> ";
|
1539 |
+
endif;
|
1540 |
+
if ( !$mediaOffMedia ) :
|
1541 |
+
$media_title = __('Add Media');
|
1542 |
+
$media .= "<a href=\"{$media_upload_iframe_src}?TB_iframe=true\" id=\"add_media{$rand}\" title='$media_title' onclick=\"focusTextArea('{$name}{$rand}'); jQuery(this).attr('href',jQuery(this).attr('href').replace('\?','?post_id='+jQuery('#post_ID').val())); return thickbox(this);\"><img src='images/media-button-other.gif' alt='$media_title' /></a>";
|
1543 |
+
endif;
|
1544 |
+
endif;
|
1545 |
|
1546 |
$switch = '<div>';
|
1547 |
if( $tinyMCE == true && user_can_richedit() ) {
|
1665 |
$out .= '</div><div' . $class . '>';
|
1666 |
}
|
1667 |
else if( $data[$i]['type'] == 'textfield' || $data[$i]['type'] == 'text' ) {
|
1668 |
+
$out .= $this->make_textfield( $title, $i, $data[$i]['size'], $data[$i]['default'], $data[$i]['hideKey'], $data[$i]['label'], $data[$i]['code'], $data[$i]['class'], $data[$i]['style'], $data[$i]['before'], $data[$i]['after'], $data[$i]['maxlength'], $data[$i]['multipleButton'], $data[$i]['date'], $data[$i]['dateFirstDayOfWeek'], $data[$i]['dateFormat'], $data[$i]['startDate'], $data[$i]['endDate'], $data[$i]['readOnly'],
|
1669 |
$data[$i]['onclick'], $data[$i]['ondblclick'], $data[$i]['onkeydown'], $data[$i]['onkeypress'], $data[$i]['onkeyup'], $data[$i]['onmousedown'], $data[$i]['onmouseup'], $data[$i]['onmouseover'], $data[$i]['onmouseout'], $data[$i]['onmousemove'], $data[$i]['onfocus'], $data[$i]['onblur'], $data[$i]['onchange'], $data[$i]['onselect'] );
|
1670 |
}
|
1671 |
else if( $data[$i]['type'] == 'checkbox' ) {
|
1676 |
else if( $data[$i]['type'] == 'radio' ) {
|
1677 |
$out .=
|
1678 |
$this->make_radio(
|
1679 |
+
$title, $i, explode( '#', $data[$i]['value'] ), explode( '#', $data[$i]['valueLabel'] ), $data[$i]['clearButton'], $data[$i]['default'], $data[$i]['hideKey'], $data[$i]['label'], $data[$i]['code'], $data[$i]['class'], $data[$i]['style'], $data[$i]['multipleButton'],
|
1680 |
$data[$i]['onclick'], $data[$i]['ondblclick'], $data[$i]['onkeydown'], $data[$i]['onkeypress'], $data[$i]['onkeyup'], $data[$i]['onmousedown'], $data[$i]['onmouseup'], $data[$i]['onmouseover'], $data[$i]['onmouseout'], $data[$i]['onmousemove'], $data[$i]['onfocus'], $data[$i]['onblur'], $data[$i]['onchange'], $data[$i]['onselect'] );
|
1681 |
}
|
1682 |
else if( $data[$i]['type'] == 'select' ) {
|
1688 |
else if( $data[$i]['type'] == 'textarea' ) {
|
1689 |
if ( $options['tinyMCE'][$_REQUEST['post']][$this->sanitize_name($title)][$i] ) $data[$i]['rows'] = $options['tinyMCE'][$_REQUEST['post']][$this->sanitize_name($title)][$i];
|
1690 |
$out .=
|
1691 |
+
$this->make_textarea( $title, $i, $data[$i]['rows'], $data[$i]['cols'], $data[$i]['tinyMCE'], $data[$i]['htmlEditor'], $data[$i]['mediaButton'], $data[$i]['default'], $data[$i]['hideKey'], $data[$i]['label'], $data[$i]['code'], $data[$i]['class'], $data[$i]['style'], $data[$i]['mediaOffMedia'], $data[$i]['mediaOffImage'], $data[$i]['mediaOffVideo'], $data[$i]['mediaOffAudio'],
|
1692 |
$data[$i]['onclick'], $data[$i]['ondblclick'], $data[$i]['onkeydown'], $data[$i]['onkeypress'], $data[$i]['onkeyup'], $data[$i]['onmousedown'], $data[$i]['onmouseup'], $data[$i]['onmouseover'], $data[$i]['onmouseout'], $data[$i]['onmousemove'], $data[$i]['onfocus'], $data[$i]['onblur'], $data[$i]['onchange'], $data[$i]['onselect'] );
|
1693 |
}
|
1694 |
}
|
2414 |
|
2415 |
$count = count($options['custom_fields']);
|
2416 |
if ( $count ) :
|
2417 |
+
for ($t=0;$t<$count;$t++) :
|
2418 |
+
$fields = $this->get_custom_fields( $t );
|
2419 |
foreach ( $fields as $key => $val ) :
|
|
|
2420 |
$replace[0] = $val;
|
2421 |
|
2422 |
$search = array();
|
2426 |
if($val[0]['searchValueLabel']) eval('$search["valueLabel"] =' . stripslashes($val[0]['searchValueLabel']));
|
2427 |
if($val[0]['searchDefault']) eval('$search["default"] =' . stripslashes($val[0]['searchDefault']));
|
2428 |
if($val[0]['searchClass']) eval('$search["class"] =' . stripslashes($val[0]['searchClass']));
|
2429 |
+
if($val[0]['searchSelectLabel']) eval('$search["selectLabel"] =' . stripslashes($val[0]['searchSelectLabel']));
|
2430 |
+
|
2431 |
|
2432 |
foreach ( $search as $skey => $sval ) :
|
2433 |
$j = 1;
|
2460 |
$valueLabel = explode( '#', $rval[0]['valueLabel'] );
|
2461 |
$default = explode( '#', $rval[0]['default'] );
|
2462 |
endif;
|
2463 |
+
if ( is_numeric($rval[0]['searchCode']) ) :
|
2464 |
+
eval(stripcslashes($options['php'][$rval[0]['searchCode']]));
|
2465 |
endif;
|
2466 |
if ( count($values) > 1 ) :
|
2467 |
$replace_val[$rkey] .= '<ul>';
|
2486 |
endforeach;
|
2487 |
$replace_val[$rkey] .= '</ul>';
|
2488 |
else :
|
2489 |
+
if ( $_REQUEST['cftsearch'][urlencode($key)][$rkey][0] == attribute_escape(trim($values[0])) )
|
2490 |
+
$checked = ' checked="checked"';
|
2491 |
+
$replace_val[$rkey] .= '<label><input type="checkbox" name="cftsearch[' . urlencode($key) . '][' . $rkey . '][]" value="' . attribute_escape(trim($values[0])) . '"' . $class . $checked . ' /> ';
|
2492 |
if ( $valueLabel[0] ) $replace_val[$rkey] .= stripcslashes(trim($valueLabel[0]));
|
2493 |
else $replace_val[$rkey] .= stripcslashes(trim($values[0]));
|
2494 |
$replace_val[$rkey] .= '</label>';
|
2499 |
$values = explode( '#', $rval[0]['value'] );
|
2500 |
$valueLabel = explode( '#', $rval[0]['valueLabel'] );
|
2501 |
$default = explode( '#', $rval[0]['default'] );
|
2502 |
+
if ( is_numeric($rval[0]['searchCode']) ) :
|
2503 |
+
eval(stripcslashes($options['php'][$rval[0]['searchCode']]));
|
2504 |
endif;
|
2505 |
if ( count($values) > 1 ) :
|
2506 |
$replace_val[$rkey] .= '<ul>';
|
2524 |
endforeach;
|
2525 |
$replace_val[$rkey] .= '</ul>';
|
2526 |
else :
|
2527 |
+
if ( $_REQUEST['cftsearch'][urlencode($key)][$rkey][0] == attribute_escape(trim($values[0])) )
|
2528 |
+
$checked = ' checked="checked"';
|
2529 |
+
$replace_val[$rkey] .= '<label><input type="radio" name="cftsearch[' . urlencode($key) . '][]" value="' . attribute_escape(trim($values[0])) . '"' . $class . $checked . ' /> ';
|
2530 |
if ( $valueLabel[0] ) $replace_val[$rkey] .= stripcslashes(trim($valueLabel[0]));
|
2531 |
else $replace_val[$rkey] .= stripcslashes(trim($values[0]));
|
2532 |
$replace_val[$rkey] .= '</label>';
|
2537 |
$values = explode( '#', $rval[0]['value'] );
|
2538 |
$valueLabel = explode( '#', $rval[0]['valueLabel'] );
|
2539 |
$default = explode( '#', $rval[0]['default'] );
|
2540 |
+
$selectLabel= $rval[0]['selectLabel'];
|
2541 |
|
2542 |
+
if ( is_numeric($rval[0]['searchCode']) ) :
|
2543 |
+
eval(stripcslashes($options['php'][$rval[0]['searchCode']]));
|
2544 |
endif;
|
2545 |
$replace_val[$rkey] .= '<select name="cftsearch[' . urlencode($key) . '][' . $rkey . '][]"' . $class . '>';
|
2546 |
+
$replace_val[$rkey] .= '<option value="">'.$selectLabel.'</option>';
|
2547 |
$j=0;
|
2548 |
foreach ( $values as $metaval ) :
|
2549 |
$metaval = trim($metaval);
|
2564 |
break;
|
2565 |
endswitch;
|
2566 |
endforeach;
|
2567 |
+
|
2568 |
if ( $options['shortcode_format_use_php'][$format] )
|
2569 |
$output = preg_replace_callback("/(<\?php|<\?|< \?php)(.*?)\?>/si", array($this, 'EvalBuffer'), $output);
|
2570 |
$key = preg_quote($key, '/');
|
2571 |
$output = preg_replace('/\['.$key.'\](?!\[[0-9]+\])/', $replace_val[0], $output);
|
2572 |
$output = preg_replace('/\['.$key.'\]\[([0-9]+)\](?!\[\])/e', '$replace_val[${1}]', $output);
|
|
|
2573 |
endforeach;
|
2574 |
endfor;
|
2575 |
endif;
|
2701 |
if ( is_array($_REQUEST['cftsearch']) ) :
|
2702 |
foreach ( $_REQUEST['cftsearch'] as $key => $val ) :
|
2703 |
$key = rawurldecode($key);
|
2704 |
+
if ( is_array($val) ) :
|
2705 |
+
foreach( $val as $key2 => $val2 ) :
|
2706 |
+
if ( is_array($val2) ) :
|
2707 |
+
foreach( $val2 as $val3 ) :
|
2708 |
+
if ( $val3 ) :
|
2709 |
+
switch( $replace[$key][$key2][0]['operator'] ) :
|
2710 |
+
case '<=' :
|
2711 |
+
case '>=' :
|
2712 |
+
case '<' :
|
2713 |
+
case '>' :
|
2714 |
+
case '=' :
|
2715 |
+
case '<>' :
|
2716 |
+
case '<=>':
|
2717 |
+
$where .= " AND ROW(ID,1) IN (SELECT post_id,count(post_id) FROM " . $wpdb->postmeta . " WHERE (" . $wpdb->postmeta . ".meta_key = '" . $key . "' AND `" . $wpdb->postmeta . "`.meta_value " . $replace[$key][$key2][0]['operator'] . " " . trim($val3) . ") GROUP BY post_id) ";
|
2718 |
+
break;
|
2719 |
+
default :
|
2720 |
+
$where .= " AND ROW(ID,1) IN (SELECT post_id,count(post_id) FROM " . $wpdb->postmeta . " WHERE (" . $wpdb->postmeta . ".meta_key = '" . $key . "' AND `" . $wpdb->postmeta . "`.meta_value LIKE '%" . trim($val3) . "%') GROUP BY post_id) ";
|
2721 |
+
break;
|
2722 |
+
endswitch;
|
2723 |
+
endif;
|
2724 |
+
endforeach;
|
2725 |
endif;
|
2726 |
endforeach;
|
2727 |
+
endif;
|
2728 |
endforeach;
|
2729 |
endif;
|
2730 |
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Custom Field Template ===
|
2 |
Contributors: Hiroaki Miyashita
|
3 |
-
Donate link: http://
|
4 |
Tags: custom, fields, field, template, meta, custom field, custom fields, custom field template
|
5 |
Requires at least: 2.1
|
6 |
-
Tested up to: 2.8.
|
7 |
-
Stable tag: 1.3.
|
8 |
|
9 |
This plugin adds the default custom fields on the Write Post/Page.
|
10 |
|
@@ -65,7 +65,7 @@ Localization
|
|
65 |
* Spanish (es_ES) - [Dario Ferrer](http://www.darioferrer.com/)
|
66 |
* French (fr_FR) - Nicolas Lemoine
|
67 |
* Italian (it_IT) - [Gianni Diurno](http://gidibao.net/)
|
68 |
-
* Japanese (ja) - [Hiroaki Miyashita](http://
|
69 |
* Russian (ru_RU) - [Sonika](http://www.sonika.ru/blog/)
|
70 |
* Turkish (tr_TR) - [Omer Faruk](http://ramerta.com/)
|
71 |
|
@@ -94,6 +94,11 @@ See the default template and modify it.
|
|
94 |
|
95 |
== Changelog ==
|
96 |
|
|
|
|
|
|
|
|
|
|
|
97 |
= 1.3.7 =
|
98 |
* Bugfix: class attribute of `text` type.
|
99 |
* `shortCode` attribute in order to output the shortcode filtered values. ex) `shortCode = true`
|
@@ -155,7 +160,7 @@ See the default template and modify it.
|
|
155 |
= 1.0.3 =
|
156 |
* Option to disable the default custom fields.
|
157 |
|
158 |
-
= 1.0=
|
159 |
* Custom field search. (only shows the attributes which have `search = true`.)
|
160 |
* [cftsearch] Shortcode Format.
|
161 |
* PHP codes for the output value. ex) `outputCode = 0`
|
1 |
=== Custom Field Template ===
|
2 |
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: 2.8.4
|
7 |
+
Stable tag: 1.3.8
|
8 |
|
9 |
This plugin adds the default custom fields on the Write Post/Page.
|
10 |
|
65 |
* Spanish (es_ES) - [Dario Ferrer](http://www.darioferrer.com/)
|
66 |
* French (fr_FR) - Nicolas Lemoine
|
67 |
* Italian (it_IT) - [Gianni Diurno](http://gidibao.net/)
|
68 |
+
* Japanese (ja) - [Hiroaki Miyashita](http://wpgogo.com/)
|
69 |
* Russian (ru_RU) - [Sonika](http://www.sonika.ru/blog/)
|
70 |
* Turkish (tr_TR) - [Omer Faruk](http://ramerta.com/)
|
71 |
|
94 |
|
95 |
== Changelog ==
|
96 |
|
97 |
+
= 1.3.8 =
|
98 |
+
* `readOnly` attribute. ex) `readOnly = true`
|
99 |
+
* `startDate` and `endDate` attributes for the date picker. ex) `startDate = '1970/01/01'` and `endDate = (new Date()).asString()`
|
100 |
+
* `mediaOffImage`, `mediaOffVideo`, `mediaOffAudio`, and `mediaOffMedia` attributes. ex) `mediaOffImage = true`
|
101 |
+
|
102 |
= 1.3.7 =
|
103 |
* Bugfix: class attribute of `text` type.
|
104 |
* `shortCode` attribute in order to output the shortcode filtered values. ex) `shortCode = true`
|
160 |
= 1.0.3 =
|
161 |
* Option to disable the default custom fields.
|
162 |
|
163 |
+
= 1.0 =
|
164 |
* Custom field search. (only shows the attributes which have `search = true`.)
|
165 |
* [cftsearch] Shortcode Format.
|
166 |
* PHP codes for the output value. ex) `outputCode = 0`
|