Version Description
Download this release
Release Info
Developer | Hiroaki Miyashita |
Plugin | Custom Field Template |
Version | 1.3.1 |
Comparing to | |
See all releases |
Code changes from version 1.3.0 to 1.3.1
- custom-field-template-es_ES.mo +0 -0
- custom-field-template-es_ES.po +148 -117
- custom-field-template.php +50 -32
- readme.txt +1 -1
custom-field-template-es_ES.mo
CHANGED
Binary file
|
custom-field-template-es_ES.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: 2009-
|
6 |
-
"PO-Revision-Date: 2009-
|
7 |
"Last-Translator: Darío Ferrer <info@darioferrer.com>\n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -16,376 +16,407 @@ 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 "Cargar"
|
32 |
|
33 |
-
#: custom-field-template/custom-field-template.php:
|
34 |
msgid "read more"
|
35 |
msgstr "leer más"
|
36 |
|
37 |
-
#: custom-field-template/custom-field-template.php:
|
38 |
-
#: custom-field-template/custom-field-template.php:
|
39 |
msgid "Custom Fields"
|
40 |
msgstr "Campos Personalizados"
|
41 |
|
42 |
-
#: custom-field-template/custom-field-template.php:
|
43 |
msgid "Settings"
|
44 |
msgstr "Configuración"
|
45 |
|
46 |
-
#: custom-field-template/custom-field-template.php:
|
47 |
msgid "Default Template"
|
48 |
msgstr "Plantilla predeterminada"
|
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 "Opciones actualizadas exitosamente"
|
57 |
|
58 |
-
#: custom-field-template/custom-field-template.php:
|
59 |
msgid "Value Counts rebuilt."
|
60 |
msgstr "Conteo de valores reconstruido"
|
61 |
|
62 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
|
|
|
|
63 |
msgid "Options imported."
|
64 |
msgstr "Opciones importadas"
|
65 |
|
66 |
-
#: custom-field-template/custom-field-template.php:
|
67 |
msgid "Options resetted."
|
68 |
msgstr "Opciones reiniciadas exitosamente"
|
69 |
|
70 |
-
#: custom-field-template/custom-field-template.php:
|
71 |
msgid "Options deleted."
|
72 |
msgstr "Opciones eliminadas exitosamente"
|
73 |
|
74 |
-
#: custom-field-template/custom-field-template.php:
|
75 |
-
#: custom-field-template/custom-field-template.php:
|
76 |
-
#: custom-field-template/custom-field-template.php:
|
77 |
-
#: custom-field-template/custom-field-template.php:
|
78 |
-
#: custom-field-template/custom-field-template.php:794
|
79 |
#: custom-field-template/custom-field-template.php:833
|
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 |
msgid "Click to toggle"
|
87 |
msgstr "Haz clic para intercambiar"
|
88 |
|
89 |
-
#: custom-field-template/custom-field-template.php:
|
90 |
msgid "Custom Field Template Options"
|
91 |
msgstr "Opciones de campos personalizados"
|
92 |
|
93 |
-
#: custom-field-template/custom-field-template.php:
|
94 |
msgid "Template Title"
|
95 |
msgstr "Título de la plantilla"
|
96 |
|
97 |
-
#: custom-field-template/custom-field-template.php:
|
98 |
msgid "Template Instruction"
|
99 |
msgstr "Instrucciones de la plantilla"
|
100 |
|
101 |
-
#: custom-field-template/custom-field-template.php:
|
102 |
-
#: custom-field-template/custom-field-template.php:
|
103 |
msgid "Post Type"
|
104 |
msgstr "Tipo de publicación"
|
105 |
|
106 |
-
#: custom-field-template/custom-field-template.php:
|
107 |
-
#: custom-field-template/custom-field-template.php:
|
108 |
msgid "Both"
|
109 |
msgstr "Ambos"
|
110 |
|
111 |
-
#: custom-field-template/custom-field-template.php:
|
112 |
-
#: custom-field-template/custom-field-template.php:
|
113 |
msgid "Post"
|
114 |
msgstr "Entrada"
|
115 |
|
116 |
-
#: custom-field-template/custom-field-template.php:
|
117 |
-
#: custom-field-template/custom-field-template.php:
|
118 |
msgid "Page"
|
119 |
msgstr "Página"
|
120 |
|
121 |
-
#: custom-field-template/custom-field-template.php:
|
122 |
-
|
|
|
|
|
|
|
|
|
123 |
msgid "Category ID (comma-deliminated)"
|
124 |
msgstr "ID de Categoría (Delimitado por comas)"
|
125 |
|
126 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
|
|
|
|
127 |
msgid "Template Content"
|
128 |
msgstr "Contenido de la plantilla"
|
129 |
|
130 |
-
#: custom-field-template/custom-field-template.php:
|
131 |
msgid "In case that you would like to insert multiple images at once in use of the custom field media buttons"
|
132 |
msgstr "En caso de que desees insertar múltiples imágenes al mismo tiempo para el uso de los botones Media"
|
133 |
|
134 |
-
#: custom-field-template/custom-field-template.php:
|
135 |
msgid "Use multiple image inset"
|
136 |
msgstr "Usar inclusión de múltiples imágenes"
|
137 |
|
138 |
-
#: custom-field-template/custom-field-template.php:
|
139 |
msgid "Caution:"
|
140 |
msgstr "Advertencia:"
|
141 |
|
142 |
-
#: custom-field-template/custom-field-template.php:
|
143 |
msgid "You need to edit `wp-admin/includes/media.php`. Delete or comment out the code in the function media_send_to_editor."
|
144 |
msgstr "Necesitas editar el archivo `wp-admin/includes/media.php`. Elimina o descomenta el código en la función media_send_to_editor"
|
145 |
|
146 |
-
#: custom-field-template/custom-field-template.php:
|
147 |
msgid "In case that you would like to replace custom keys by labels if `label` is set"
|
148 |
msgstr "En caso de que desees reemplazar claves personalizadas por etiquetas si 'etiqueta' está configurado"
|
149 |
|
150 |
-
#: custom-field-template/custom-field-template.php:
|
151 |
msgid "Use labels in place of custom keys"
|
152 |
msgstr "Usar etiquetas en lugar de claves personalizadas"
|
153 |
|
154 |
-
#: custom-field-template/custom-field-template.php:
|
155 |
msgid "In case that you would like to add p and br tags in textareas automatically"
|
156 |
msgstr "En caso de que desees añadir etiquetas 'p' y 'br' automáticamente en áreas de texto"
|
157 |
|
158 |
-
#: custom-field-template/custom-field-template.php:
|
159 |
msgid "Use wpautop function"
|
160 |
msgstr "Usar función 'wpautop'"
|
161 |
|
162 |
-
#: custom-field-template/custom-field-template.php:
|
163 |
msgid "In case that you would like to save values automatically in switching templates"
|
164 |
msgstr "En caso de que desees guardar valores automáticamente en la conmutación de plantillas"
|
165 |
|
166 |
-
#: custom-field-template/custom-field-template.php:
|
167 |
msgid "Use the auto save in switching templates"
|
168 |
msgstr "Usar auto-guardado al conmutar plantillas"
|
169 |
|
170 |
-
#: custom-field-template/custom-field-template.php:
|
171 |
msgid "In case that you would like to forbid to use the default custom fields."
|
172 |
msgstr "En caso de que desees prohibir el uso de los campos predeterminados"
|
173 |
|
174 |
-
#: custom-field-template/custom-field-template.php:
|
175 |
msgid "Disable the default custom fields"
|
176 |
msgstr "Deshabilitar campos predeterminados"
|
177 |
|
178 |
-
#: custom-field-template/custom-field-template.php:
|
179 |
msgid "In case that you would like to forbid to use the quick edit."
|
180 |
msgstr "En caso de que desees prohibir la edición rápida"
|
181 |
|
182 |
-
#: custom-field-template/custom-field-template.php:
|
183 |
msgid "Disable the quick edit"
|
184 |
msgstr "Deshabilitar edición rápida"
|
185 |
|
186 |
-
#: custom-field-template/custom-field-template.php:
|
187 |
msgid "In case that you would like to replace the box title with the template title."
|
188 |
msgstr "En caso de que desees reemplazar el título de la caja por el título de la plantilla"
|
189 |
|
190 |
-
#: custom-field-template/custom-field-template.php:
|
191 |
msgid "Replace the box title"
|
192 |
msgstr "Reemplazar caja de título"
|
193 |
|
194 |
-
#: custom-field-template/custom-field-template.php:
|
195 |
msgid "In case that you would like to use the shortcode in the widget."
|
196 |
msgstr "En caso de que desees utilizar abreviación de código en el widget"
|
197 |
|
198 |
-
#: custom-field-template/custom-field-template.php:
|
199 |
msgid "Use the shortcode in the widget"
|
200 |
msgstr "Utilizar abreviaciones de código en el widget"
|
201 |
|
202 |
-
#: custom-field-template/custom-field-template.php:
|
203 |
-
#: custom-field-template/custom-field-template.php:
|
204 |
-
#: custom-field-template/custom-field-template.php:
|
205 |
-
#: custom-field-template/custom-field-template.php:785
|
206 |
#: custom-field-template/custom-field-template.php:824
|
|
|
207 |
msgid "Update Options »"
|
208 |
msgstr "Actualizar opciones »"
|
209 |
|
210 |
-
#: custom-field-template/custom-field-template.php:
|
211 |
msgid "ADMIN CSS"
|
212 |
msgstr "ADMIN CSS"
|
213 |
|
214 |
-
#: custom-field-template/custom-field-template.php:
|
215 |
msgid "[cft] and [cftsearch] Shortcode Format"
|
216 |
msgstr "Abreviaciones de código [cft] y [cftsearch]"
|
217 |
|
218 |
-
#: custom-field-template/custom-field-template.php:
|
219 |
msgid "For [cft], [key] will be converted into the value of [key]."
|
220 |
msgstr "Para [cft], [key] se convertirá en un valor de [key]."
|
221 |
|
222 |
-
#: custom-field-template/custom-field-template.php:
|
223 |
msgid "For [cftsearch], [key] will be converted into the input field."
|
224 |
msgstr "Para [cftsearch], [key] se convertirá en campo de entrada."
|
225 |
|
226 |
-
#: custom-field-template/custom-field-template.php:
|
227 |
-
#: custom-field-template/custom-field-template.php:
|
228 |
msgid "Use PHP"
|
229 |
msgstr "Usar PHP"
|
230 |
|
231 |
-
#: custom-field-template/custom-field-template.php:
|
232 |
msgid "PHP CODE (Experimental Option)"
|
233 |
msgstr "CÓDIGO PHP (Opción en Experimentación)"
|
234 |
|
235 |
-
#: custom-field-template/custom-field-template.php:
|
236 |
msgid "Are you sure to save PHP codes? Please do it at your own risk."
|
237 |
msgstr "¿Estás seguro de querer guardar los códigos PHP? Házlo a tu propio riesgo"
|
238 |
|
239 |
-
#: custom-field-template/custom-field-template.php:
|
240 |
msgid "For `text` and `textarea`, you must set $value as an string."
|
241 |
msgstr "Para `text` y `textarea`, debes configurar $value como una cadena."
|
242 |
|
243 |
-
#: custom-field-template/custom-field-template.php:
|
244 |
msgid "For `checkbox`, `radio`, and `select`, you must set $values as an array."
|
245 |
msgstr "Para `checkbox`, `radio`, y `select`, debes configurar tus $valores como un array"
|
246 |
|
247 |
-
#: custom-field-template/custom-field-template.php:
|
248 |
msgid "Auto Hook of `the_content()` (Experimental Option)"
|
249 |
msgstr "Auto Hook para `the_content()` (Opción experimental)"
|
250 |
|
251 |
-
#: custom-field-template/custom-field-template.php:
|
252 |
msgid "Position"
|
253 |
msgstr "Posición"
|
254 |
|
255 |
-
#: custom-field-template/custom-field-template.php:
|
256 |
msgid "Before the conetnt"
|
257 |
msgstr "Antes del contenido"
|
258 |
|
259 |
-
#: custom-field-template/custom-field-template.php:
|
260 |
msgid "After the conetnt"
|
261 |
msgstr "Después del contenido"
|
262 |
|
263 |
-
#: custom-field-template/custom-field-template.php:
|
264 |
#, php-format
|
265 |
msgid "Inside the conetnt ([cfthook hook=%d])"
|
266 |
msgstr "Dentro del contenido ([cfthook hook=%d])"
|
267 |
|
268 |
-
#: custom-field-template/custom-field-template.php:
|
269 |
msgid "Content"
|
270 |
msgstr "Contenido"
|
271 |
|
272 |
-
#: custom-field-template/custom-field-template.php:
|
273 |
msgid "Apply to feeds"
|
274 |
msgstr "Aplicar a los avances"
|
275 |
|
276 |
-
#: custom-field-template/custom-field-template.php:
|
277 |
msgid "Rebuild Value Counts"
|
278 |
msgstr "Reconstruir Conteo de Valores"
|
279 |
|
280 |
-
#: custom-field-template/custom-field-template.php:
|
281 |
msgid "Are you sure to rebuild all value counts?"
|
282 |
msgstr "¿Seguro que deseas reconstruir los Conteos de Valores?"
|
283 |
|
284 |
-
#: custom-field-template/custom-field-template.php:
|
285 |
msgid "Value Counts are used for temporarily saving how many values in each key. Set `valueCount = true` into fields."
|
286 |
msgstr "Los Conteos de Valores son utilizados para guardar temporalmente los valores en cada clave. Ajusta `valueCount = true` en los campos."
|
287 |
|
288 |
-
#: custom-field-template/custom-field-template.php:
|
289 |
msgid "Rebuild Value Counts »"
|
290 |
msgstr "Actualizar Conteo de Valores $raquo;"
|
291 |
|
292 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
293 |
msgid "Option List"
|
294 |
msgstr "Lista de opciones"
|
295 |
|
296 |
-
#: custom-field-template/custom-field-template.php:
|
297 |
msgid "Export Options"
|
298 |
msgstr "Opciones de Exportación"
|
299 |
|
300 |
-
#: custom-field-template/custom-field-template.php:
|
301 |
msgid "Export Options »"
|
302 |
msgstr "Opciones de Exportación »"
|
303 |
|
304 |
-
#: custom-field-template/custom-field-template.php:
|
305 |
msgid "Import Options"
|
306 |
msgstr "Opciones de Importación"
|
307 |
|
308 |
-
#: custom-field-template/custom-field-template.php:
|
309 |
msgid "Are you sure to import options? Options you set will be overwritten."
|
310 |
msgstr "¿Estás seguro de importar opciones? Las que hayas configurado serán sobreescritas"
|
311 |
|
312 |
-
#: custom-field-template/custom-field-template.php:
|
313 |
msgid "Import Options »"
|
314 |
msgstr "Opciones de Importación »"
|
315 |
|
316 |
-
#: custom-field-template/custom-field-template.php:
|
317 |
msgid "Reset Options"
|
318 |
msgstr "Reiniciar opciones"
|
319 |
|
320 |
-
#: custom-field-template/custom-field-template.php:
|
321 |
msgid "Are you sure to reset options? Options you set will be reset to the default settings."
|
322 |
msgstr "¿Estás seguro de querer reiniciar las opciones?. Las opciones que habías configurado serán reiniciadas a la configuración predeterminada."
|
323 |
|
324 |
-
#: custom-field-template/custom-field-template.php:
|
325 |
msgid "Unset Options »"
|
326 |
msgstr "Reiniciar opciones »"
|
327 |
|
328 |
-
#: custom-field-template/custom-field-template.php:
|
329 |
msgid "Delete Options"
|
330 |
msgstr "Eliminar opciones"
|
331 |
|
332 |
-
#: custom-field-template/custom-field-template.php:
|
333 |
msgid "Are you sure to delete options? Options you set will be deleted."
|
334 |
msgstr "¿Estás seguro de querer eliminar las opciones?. Tus configuraciones serán suprimidas."
|
335 |
|
336 |
-
#: custom-field-template/custom-field-template.php:
|
337 |
msgid "Delete Options »"
|
338 |
msgstr "Eliminar opciones »"
|
339 |
|
340 |
-
#: custom-field-template/custom-field-template.php:
|
341 |
msgid "Donation"
|
342 |
msgstr "Donaciones"
|
343 |
|
344 |
-
#: custom-field-template/custom-field-template.php:
|
345 |
msgid "If you liked this plugin, please make a donation via paypal! Any amount is welcome. Your support is much appreciated."
|
346 |
msgstr "Si te agrada este plugin, por favor efectúa una donación vía paypal. Cualquier cantidad será bien recibida y agradecida. Tu apoyo será muy bien apreciado."
|
347 |
|
348 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
349 |
msgid "Clear"
|
350 |
msgstr "Borrar"
|
351 |
|
352 |
-
#: custom-field-template/custom-field-template.php:
|
353 |
msgid "Select"
|
354 |
msgstr "Seleccionar"
|
355 |
|
356 |
-
#: custom-field-template/custom-field-template.php:
|
357 |
msgid "Add Media"
|
358 |
msgstr "Añadir Media"
|
359 |
|
360 |
-
#: custom-field-template/custom-field-template.php:
|
361 |
msgid "Add an Image"
|
362 |
msgstr "Añadir una Imagen"
|
363 |
|
364 |
-
#: custom-field-template/custom-field-template.php:
|
365 |
msgid "Add Video"
|
366 |
msgstr "Añadir Video"
|
367 |
|
368 |
-
#: custom-field-template/custom-field-template.php:
|
369 |
msgid "Add Audio"
|
370 |
msgstr "Añadir Audio"
|
371 |
|
372 |
-
#: custom-field-template/custom-field-template.php:
|
373 |
msgid "Toggle"
|
374 |
msgstr "Intercambiar"
|
375 |
|
376 |
-
#: custom-field-template/custom-field-template.php:
|
377 |
msgid "Initialize"
|
378 |
msgstr "Inicializar"
|
379 |
|
380 |
-
#: custom-field-template/custom-field-template.php:
|
381 |
msgid "Are you sure to reset current values? Default values will be loaded."
|
382 |
msgstr "¿Estás seguro de reiniciar los valores actuales? Los valores predeterminados será cargados"
|
383 |
|
384 |
-
#: custom-field-template/custom-field-template.php:
|
385 |
msgid "Save"
|
386 |
msgstr "Guardar"
|
387 |
|
388 |
-
#: custom-field-template/custom-field-template.php:
|
389 |
msgid "Search »"
|
390 |
msgstr "Buscar »"
|
391 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Custom Field Template\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2009-06-10 03:30+0900\n"
|
6 |
+
"PO-Revision-Date: 2009-06-11 09:54-0400\n"
|
7 |
"Last-Translator: Darío Ferrer <info@darioferrer.com>\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:123
|
20 |
+
#: custom-field-template/custom-field-template.php:124
|
21 |
+
#: custom-field-template/custom-field-template.php:469
|
22 |
+
#: custom-field-template/custom-field-template.php:667
|
23 |
+
#: custom-field-template/custom-field-template.php:1646
|
24 |
+
#: custom-field-template/custom-field-template.php:1771
|
25 |
msgid "Custom Field Template"
|
26 |
msgstr "Custom Field Template"
|
27 |
|
28 |
+
#: custom-field-template/custom-field-template.php:163
|
29 |
+
#: custom-field-template/custom-field-template.php:1945
|
30 |
msgid "Load"
|
31 |
msgstr "Cargar"
|
32 |
|
33 |
+
#: custom-field-template/custom-field-template.php:319
|
34 |
msgid "read more"
|
35 |
msgstr "leer más"
|
36 |
|
37 |
+
#: custom-field-template/custom-field-template.php:337
|
38 |
+
#: custom-field-template/custom-field-template.php:347
|
39 |
msgid "Custom Fields"
|
40 |
msgstr "Campos Personalizados"
|
41 |
|
42 |
+
#: custom-field-template/custom-field-template.php:377
|
43 |
msgid "Settings"
|
44 |
msgstr "Configuración"
|
45 |
|
46 |
+
#: custom-field-template/custom-field-template.php:397
|
47 |
msgid "Default Template"
|
48 |
msgstr "Plantilla predeterminada"
|
49 |
|
50 |
+
#: custom-field-template/custom-field-template.php:592
|
51 |
+
#: custom-field-template/custom-field-template.php:596
|
52 |
+
#: custom-field-template/custom-field-template.php:608
|
53 |
+
#: custom-field-template/custom-field-template.php:616
|
54 |
+
#: custom-field-template/custom-field-template.php:632
|
55 |
msgid "Options updated."
|
56 |
msgstr "Opciones actualizadas exitosamente"
|
57 |
|
58 |
+
#: custom-field-template/custom-field-template.php:636
|
59 |
msgid "Value Counts rebuilt."
|
60 |
msgstr "Conteo de valores reconstruido"
|
61 |
|
62 |
+
#: custom-field-template/custom-field-template.php:639
|
63 |
+
msgid "Tags rebuilt."
|
64 |
+
msgstr "Etiquetas reconstruidas"
|
65 |
+
|
66 |
+
#: custom-field-template/custom-field-template.php:648
|
67 |
msgid "Options imported."
|
68 |
msgstr "Opciones importadas"
|
69 |
|
70 |
+
#: custom-field-template/custom-field-template.php:655
|
71 |
msgid "Options resetted."
|
72 |
msgstr "Opciones reiniciadas exitosamente"
|
73 |
|
74 |
+
#: custom-field-template/custom-field-template.php:659
|
75 |
msgid "Options deleted."
|
76 |
msgstr "Opciones eliminadas exitosamente"
|
77 |
|
78 |
+
#: custom-field-template/custom-field-template.php:673
|
79 |
+
#: custom-field-template/custom-field-template.php:754
|
80 |
+
#: custom-field-template/custom-field-template.php:773
|
81 |
+
#: custom-field-template/custom-field-template.php:802
|
|
|
82 |
#: custom-field-template/custom-field-template.php:833
|
83 |
+
#: custom-field-template/custom-field-template.php:872
|
84 |
+
#: custom-field-template/custom-field-template.php:893
|
85 |
+
#: custom-field-template/custom-field-template.php:910
|
86 |
+
#: custom-field-template/custom-field-template.php:1039
|
87 |
+
#: custom-field-template/custom-field-template.php:1055
|
88 |
+
#: custom-field-template/custom-field-template.php:1071
|
89 |
+
#: custom-field-template/custom-field-template.php:1087
|
90 |
+
#: custom-field-template/custom-field-template.php:1103
|
91 |
msgid "Click to toggle"
|
92 |
msgstr "Haz clic para intercambiar"
|
93 |
|
94 |
+
#: custom-field-template/custom-field-template.php:674
|
95 |
msgid "Custom Field Template Options"
|
96 |
msgstr "Opciones de campos personalizados"
|
97 |
|
98 |
+
#: custom-field-template/custom-field-template.php:684
|
99 |
msgid "Template Title"
|
100 |
msgstr "Título de la plantilla"
|
101 |
|
102 |
+
#: custom-field-template/custom-field-template.php:686
|
103 |
msgid "Template Instruction"
|
104 |
msgstr "Instrucciones de la plantilla"
|
105 |
|
106 |
+
#: custom-field-template/custom-field-template.php:688
|
107 |
+
#: custom-field-template/custom-field-template.php:849
|
108 |
msgid "Post Type"
|
109 |
msgstr "Tipo de publicación"
|
110 |
|
111 |
+
#: custom-field-template/custom-field-template.php:690
|
112 |
+
#: custom-field-template/custom-field-template.php:850
|
113 |
msgid "Both"
|
114 |
msgstr "Ambos"
|
115 |
|
116 |
+
#: custom-field-template/custom-field-template.php:691
|
117 |
+
#: custom-field-template/custom-field-template.php:851
|
118 |
msgid "Post"
|
119 |
msgstr "Entrada"
|
120 |
|
121 |
+
#: custom-field-template/custom-field-template.php:692
|
122 |
+
#: custom-field-template/custom-field-template.php:852
|
123 |
msgid "Page"
|
124 |
msgstr "Página"
|
125 |
|
126 |
+
#: custom-field-template/custom-field-template.php:693
|
127 |
+
msgid "Post ID (comma-deliminated)"
|
128 |
+
msgstr "ID de entrada (Delimitado por comas)"
|
129 |
+
|
130 |
+
#: custom-field-template/custom-field-template.php:695
|
131 |
+
#: custom-field-template/custom-field-template.php:853
|
132 |
msgid "Category ID (comma-deliminated)"
|
133 |
msgstr "ID de Categoría (Delimitado por comas)"
|
134 |
|
135 |
+
#: custom-field-template/custom-field-template.php:697
|
136 |
+
msgid "Page Template file name(s) (comma-deliminated)"
|
137 |
+
msgstr "Nombre(s) de Archivo(s) de Plantilla(s) (Delimitado por comas)"
|
138 |
+
|
139 |
+
#: custom-field-template/custom-field-template.php:699
|
140 |
msgid "Template Content"
|
141 |
msgstr "Contenido de la plantilla"
|
142 |
|
143 |
+
#: custom-field-template/custom-field-template.php:706
|
144 |
msgid "In case that you would like to insert multiple images at once in use of the custom field media buttons"
|
145 |
msgstr "En caso de que desees insertar múltiples imágenes al mismo tiempo para el uso de los botones Media"
|
146 |
|
147 |
+
#: custom-field-template/custom-field-template.php:707
|
148 |
msgid "Use multiple image inset"
|
149 |
msgstr "Usar inclusión de múltiples imágenes"
|
150 |
|
151 |
+
#: custom-field-template/custom-field-template.php:707
|
152 |
msgid "Caution:"
|
153 |
msgstr "Advertencia:"
|
154 |
|
155 |
+
#: custom-field-template/custom-field-template.php:707
|
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 "Necesitas editar el archivo `wp-admin/includes/media.php`. Elimina o descomenta el código en la función media_send_to_editor"
|
158 |
|
159 |
+
#: custom-field-template/custom-field-template.php:711
|
160 |
msgid "In case that you would like to replace custom keys by labels if `label` is set"
|
161 |
msgstr "En caso de que desees reemplazar claves personalizadas por etiquetas si 'etiqueta' está configurado"
|
162 |
|
163 |
+
#: custom-field-template/custom-field-template.php:712
|
164 |
msgid "Use labels in place of custom keys"
|
165 |
msgstr "Usar etiquetas en lugar de claves personalizadas"
|
166 |
|
167 |
+
#: custom-field-template/custom-field-template.php:715
|
168 |
msgid "In case that you would like to add p and br tags in textareas automatically"
|
169 |
msgstr "En caso de que desees añadir etiquetas 'p' y 'br' automáticamente en áreas de texto"
|
170 |
|
171 |
+
#: custom-field-template/custom-field-template.php:716
|
172 |
msgid "Use wpautop function"
|
173 |
msgstr "Usar función 'wpautop'"
|
174 |
|
175 |
+
#: custom-field-template/custom-field-template.php:720
|
176 |
msgid "In case that you would like to save values automatically in switching templates"
|
177 |
msgstr "En caso de que desees guardar valores automáticamente en la conmutación de plantillas"
|
178 |
|
179 |
+
#: custom-field-template/custom-field-template.php:721
|
180 |
msgid "Use the auto save in switching templates"
|
181 |
msgstr "Usar auto-guardado al conmutar plantillas"
|
182 |
|
183 |
+
#: custom-field-template/custom-field-template.php:725
|
184 |
msgid "In case that you would like to forbid to use the default custom fields."
|
185 |
msgstr "En caso de que desees prohibir el uso de los campos predeterminados"
|
186 |
|
187 |
+
#: custom-field-template/custom-field-template.php:726
|
188 |
msgid "Disable the default custom fields"
|
189 |
msgstr "Deshabilitar campos predeterminados"
|
190 |
|
191 |
+
#: custom-field-template/custom-field-template.php:730
|
192 |
msgid "In case that you would like to forbid to use the quick edit."
|
193 |
msgstr "En caso de que desees prohibir la edición rápida"
|
194 |
|
195 |
+
#: custom-field-template/custom-field-template.php:731
|
196 |
msgid "Disable the quick edit"
|
197 |
msgstr "Deshabilitar edición rápida"
|
198 |
|
199 |
+
#: custom-field-template/custom-field-template.php:735
|
200 |
msgid "In case that you would like to replace the box title with the template title."
|
201 |
msgstr "En caso de que desees reemplazar el título de la caja por el título de la plantilla"
|
202 |
|
203 |
+
#: custom-field-template/custom-field-template.php:736
|
204 |
msgid "Replace the box title"
|
205 |
msgstr "Reemplazar caja de título"
|
206 |
|
207 |
+
#: custom-field-template/custom-field-template.php:740
|
208 |
msgid "In case that you would like to use the shortcode in the widget."
|
209 |
msgstr "En caso de que desees utilizar abreviación de código en el widget"
|
210 |
|
211 |
+
#: custom-field-template/custom-field-template.php:741
|
212 |
msgid "Use the shortcode in the widget"
|
213 |
msgstr "Utilizar abreviaciones de código en el widget"
|
214 |
|
215 |
+
#: custom-field-template/custom-field-template.php:745
|
216 |
+
#: custom-field-template/custom-field-template.php:764
|
217 |
+
#: custom-field-template/custom-field-template.php:793
|
|
|
218 |
#: custom-field-template/custom-field-template.php:824
|
219 |
+
#: custom-field-template/custom-field-template.php:863
|
220 |
msgid "Update Options »"
|
221 |
msgstr "Actualizar opciones »"
|
222 |
|
223 |
+
#: custom-field-template/custom-field-template.php:755
|
224 |
msgid "ADMIN CSS"
|
225 |
msgstr "ADMIN CSS"
|
226 |
|
227 |
+
#: custom-field-template/custom-field-template.php:774
|
228 |
msgid "[cft] and [cftsearch] Shortcode Format"
|
229 |
msgstr "Abreviaciones de código [cft] y [cftsearch]"
|
230 |
|
231 |
+
#: custom-field-template/custom-field-template.php:777
|
232 |
msgid "For [cft], [key] will be converted into the value of [key]."
|
233 |
msgstr "Para [cft], [key] se convertirá en un valor de [key]."
|
234 |
|
235 |
+
#: custom-field-template/custom-field-template.php:778
|
236 |
msgid "For [cftsearch], [key] will be converted into the input field."
|
237 |
msgstr "Para [cftsearch], [key] se convertirá en campo de entrada."
|
238 |
|
239 |
+
#: custom-field-template/custom-field-template.php:787
|
240 |
+
#: custom-field-template/custom-field-template.php:856
|
241 |
msgid "Use PHP"
|
242 |
msgstr "Usar PHP"
|
243 |
|
244 |
+
#: custom-field-template/custom-field-template.php:803
|
245 |
msgid "PHP CODE (Experimental Option)"
|
246 |
msgstr "CÓDIGO PHP (Opción en Experimentación)"
|
247 |
|
248 |
+
#: custom-field-template/custom-field-template.php:805
|
249 |
msgid "Are you sure to save PHP codes? Please do it at your own risk."
|
250 |
msgstr "¿Estás seguro de querer guardar los códigos PHP? Házlo a tu propio riesgo"
|
251 |
|
252 |
+
#: custom-field-template/custom-field-template.php:806
|
253 |
msgid "For `text` and `textarea`, you must set $value as an string."
|
254 |
msgstr "Para `text` y `textarea`, debes configurar $value como una cadena."
|
255 |
|
256 |
+
#: custom-field-template/custom-field-template.php:808
|
257 |
msgid "For `checkbox`, `radio`, and `select`, you must set $values as an array."
|
258 |
msgstr "Para `checkbox`, `radio`, y `select`, debes configurar tus $valores como un array"
|
259 |
|
260 |
+
#: custom-field-template/custom-field-template.php:834
|
261 |
msgid "Auto Hook of `the_content()` (Experimental Option)"
|
262 |
msgstr "Auto Hook para `the_content()` (Opción experimental)"
|
263 |
|
264 |
+
#: custom-field-template/custom-field-template.php:844
|
265 |
msgid "Position"
|
266 |
msgstr "Posición"
|
267 |
|
268 |
+
#: custom-field-template/custom-field-template.php:845
|
269 |
msgid "Before the conetnt"
|
270 |
msgstr "Antes del contenido"
|
271 |
|
272 |
+
#: custom-field-template/custom-field-template.php:846
|
273 |
msgid "After the conetnt"
|
274 |
msgstr "Después del contenido"
|
275 |
|
276 |
+
#: custom-field-template/custom-field-template.php:847
|
277 |
#, php-format
|
278 |
msgid "Inside the conetnt ([cfthook hook=%d])"
|
279 |
msgstr "Dentro del contenido ([cfthook hook=%d])"
|
280 |
|
281 |
+
#: custom-field-template/custom-field-template.php:855
|
282 |
msgid "Content"
|
283 |
msgstr "Contenido"
|
284 |
|
285 |
+
#: custom-field-template/custom-field-template.php:857
|
286 |
msgid "Apply to feeds"
|
287 |
msgstr "Aplicar a los avances"
|
288 |
|
289 |
+
#: custom-field-template/custom-field-template.php:873
|
290 |
msgid "Rebuild Value Counts"
|
291 |
msgstr "Reconstruir Conteo de Valores"
|
292 |
|
293 |
+
#: custom-field-template/custom-field-template.php:875
|
294 |
msgid "Are you sure to rebuild all value counts?"
|
295 |
msgstr "¿Seguro que deseas reconstruir los Conteos de Valores?"
|
296 |
|
297 |
+
#: custom-field-template/custom-field-template.php:879
|
298 |
msgid "Value Counts are used for temporarily saving how many values in each key. Set `valueCount = true` into fields."
|
299 |
msgstr "Los Conteos de Valores son utilizados para guardar temporalmente los valores en cada clave. Ajusta `valueCount = true` en los campos."
|
300 |
|
301 |
+
#: custom-field-template/custom-field-template.php:883
|
302 |
msgid "Rebuild Value Counts »"
|
303 |
msgstr "Actualizar Conteo de Valores $raquo;"
|
304 |
|
305 |
+
#: custom-field-template/custom-field-template.php:894
|
306 |
+
msgid "Rebuild Tags"
|
307 |
+
msgstr "Reconstruir etiquetas"
|
308 |
+
|
309 |
+
#: custom-field-template/custom-field-template.php:896
|
310 |
+
msgid "Are you sure to rebuild tags?"
|
311 |
+
msgstr "¿Seguro que deseas reconstruir las etiquetas?"
|
312 |
+
|
313 |
+
#: custom-field-template/custom-field-template.php:900
|
314 |
+
msgid "Rebuild Tags »"
|
315 |
+
msgstr "Actualizar Etiquetas $raquo;"
|
316 |
+
|
317 |
+
#: custom-field-template/custom-field-template.php:911
|
318 |
msgid "Option List"
|
319 |
msgstr "Lista de opciones"
|
320 |
|
321 |
+
#: custom-field-template/custom-field-template.php:1040
|
322 |
msgid "Export Options"
|
323 |
msgstr "Opciones de Exportación"
|
324 |
|
325 |
+
#: custom-field-template/custom-field-template.php:1046
|
326 |
msgid "Export Options »"
|
327 |
msgstr "Opciones de Exportación »"
|
328 |
|
329 |
+
#: custom-field-template/custom-field-template.php:1056
|
330 |
msgid "Import Options"
|
331 |
msgstr "Opciones de Importación"
|
332 |
|
333 |
+
#: custom-field-template/custom-field-template.php:1058
|
334 |
msgid "Are you sure to import options? Options you set will be overwritten."
|
335 |
msgstr "¿Estás seguro de importar opciones? Las que hayas configurado serán sobreescritas"
|
336 |
|
337 |
+
#: custom-field-template/custom-field-template.php:1062
|
338 |
msgid "Import Options »"
|
339 |
msgstr "Opciones de Importación »"
|
340 |
|
341 |
+
#: custom-field-template/custom-field-template.php:1072
|
342 |
msgid "Reset Options"
|
343 |
msgstr "Reiniciar opciones"
|
344 |
|
345 |
+
#: custom-field-template/custom-field-template.php:1074
|
346 |
msgid "Are you sure to reset options? Options you set will be reset to the default settings."
|
347 |
msgstr "¿Estás seguro de querer reiniciar las opciones?. Las opciones que habías configurado serán reiniciadas a la configuración predeterminada."
|
348 |
|
349 |
+
#: custom-field-template/custom-field-template.php:1078
|
350 |
msgid "Unset Options »"
|
351 |
msgstr "Reiniciar opciones »"
|
352 |
|
353 |
+
#: custom-field-template/custom-field-template.php:1088
|
354 |
msgid "Delete Options"
|
355 |
msgstr "Eliminar opciones"
|
356 |
|
357 |
+
#: custom-field-template/custom-field-template.php:1090
|
358 |
msgid "Are you sure to delete options? Options you set will be deleted."
|
359 |
msgstr "¿Estás seguro de querer eliminar las opciones?. Tus configuraciones serán suprimidas."
|
360 |
|
361 |
+
#: custom-field-template/custom-field-template.php:1094
|
362 |
msgid "Delete Options »"
|
363 |
msgstr "Eliminar opciones »"
|
364 |
|
365 |
+
#: custom-field-template/custom-field-template.php:1104
|
366 |
msgid "Donation"
|
367 |
msgstr "Donaciones"
|
368 |
|
369 |
+
#: custom-field-template/custom-field-template.php:1106
|
370 |
msgid "If you liked this plugin, please make a donation via paypal! Any amount is welcome. Your support is much appreciated."
|
371 |
msgstr "Si te agrada este plugin, por favor efectúa una donación vía paypal. Cualquier cantidad será bien recibida y agradecida. Tu apoyo será muy bien apreciado."
|
372 |
|
373 |
+
#: custom-field-template/custom-field-template.php:1199
|
374 |
+
#: custom-field-template/custom-field-template.php:1314
|
375 |
+
#: custom-field-template/custom-field-template.php:1392
|
376 |
+
msgid "Add New"
|
377 |
+
msgstr "Añadir Nuevo"
|
378 |
+
|
379 |
+
#: custom-field-template/custom-field-template.php:1324
|
380 |
msgid "Clear"
|
381 |
msgstr "Borrar"
|
382 |
|
383 |
+
#: custom-field-template/custom-field-template.php:1408
|
384 |
msgid "Select"
|
385 |
msgstr "Seleccionar"
|
386 |
|
387 |
+
#: custom-field-template/custom-field-template.php:1469
|
388 |
msgid "Add Media"
|
389 |
msgstr "Añadir Media"
|
390 |
|
391 |
+
#: custom-field-template/custom-field-template.php:1471
|
392 |
msgid "Add an Image"
|
393 |
msgstr "Añadir una Imagen"
|
394 |
|
395 |
+
#: custom-field-template/custom-field-template.php:1473
|
396 |
msgid "Add Video"
|
397 |
msgstr "Añadir Video"
|
398 |
|
399 |
+
#: custom-field-template/custom-field-template.php:1475
|
400 |
msgid "Add Audio"
|
401 |
msgstr "Añadir Audio"
|
402 |
|
403 |
+
#: custom-field-template/custom-field-template.php:1486
|
404 |
msgid "Toggle"
|
405 |
msgstr "Intercambiar"
|
406 |
|
407 |
+
#: custom-field-template/custom-field-template.php:1819
|
408 |
msgid "Initialize"
|
409 |
msgstr "Inicializar"
|
410 |
|
411 |
+
#: custom-field-template/custom-field-template.php:1820
|
412 |
msgid "Are you sure to reset current values? Default values will be loaded."
|
413 |
msgstr "¿Estás seguro de reiniciar los valores actuales? Los valores predeterminados será cargados"
|
414 |
|
415 |
+
#: custom-field-template/custom-field-template.php:1823
|
416 |
msgid "Save"
|
417 |
msgstr "Guardar"
|
418 |
|
419 |
+
#: custom-field-template/custom-field-template.php:2317
|
420 |
msgid "Search »"
|
421 |
msgstr "Buscar »"
|
422 |
|
custom-field-template.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Custom Field Template
|
|
4 |
Plugin URI: http://wordpressgogo.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 |
Author URI: http://wordpressgogo.com/
|
9 |
*/
|
10 |
|
@@ -476,12 +476,12 @@ mediaButton = true';
|
|
476 |
}
|
477 |
|
478 |
function custom_field_template_the_content($content) {
|
479 |
-
global $wp_query, $post;
|
480 |
$options = $this->get_custom_field_template_data();
|
481 |
|
482 |
if ( $this->is_excerpt ) :
|
483 |
$this->is_excerpt = false;
|
484 |
-
|
485 |
endif;
|
486 |
|
487 |
if ( count($options['hook']) > 0 ) :
|
@@ -559,8 +559,8 @@ mediaButton = true';
|
|
559 |
endif;
|
560 |
endfor;
|
561 |
endif;
|
562 |
-
|
563 |
-
return
|
564 |
}
|
565 |
|
566 |
function custom_field_template_admin() {
|
@@ -1535,6 +1535,17 @@ EOF;
|
|
1535 |
$level = $userdata->user_level;
|
1536 |
|
1537 |
$options = $this->get_custom_field_template_data();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1538 |
|
1539 |
$fields = $this->get_custom_fields( $id );
|
1540 |
|
@@ -1567,20 +1578,20 @@ EOF;
|
|
1567 |
return;
|
1568 |
endif;
|
1569 |
|
1570 |
-
if ( $options['custom_fields'][$id]['template_files'] &&
|
1571 |
$template_files = explode(',', $options['custom_fields'][$id]['template_files']);
|
1572 |
$template_files = array_filter( $template_files );
|
1573 |
-
if ( !in_array($post->page_template, $template_files)
|
1574 |
return;
|
1575 |
endif;
|
1576 |
-
|
1577 |
if ( $options['custom_fields'][$id]['instruction'] ) :
|
1578 |
$instruction = stripcslashes($options['custom_fields'][$id]['instruction']);
|
1579 |
$instruction = preg_replace_callback("/(<\?php|<\?|< \?php)(.*?)\?>/si", array($this, 'EvalBuffer'), $instruction);
|
1580 |
$out .= '<div id="cft_instruction">' . $instruction . '</div>';
|
1581 |
endif;
|
1582 |
|
1583 |
-
$out .= '<div>';
|
1584 |
$out .= '<input type="hidden" name="custom-field-template-id" id="custom-field-template-id" value="' . $id . '" />';
|
1585 |
foreach( $fields as $title => $data ) {
|
1586 |
for($i = 0; $i<count($data); $i++) {
|
@@ -1620,6 +1631,13 @@ EOF;
|
|
1620 |
}
|
1621 |
}
|
1622 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1623 |
$out .= '</div>';
|
1624 |
$out .= '<br style="clear:both; font-size:1px;" />';
|
1625 |
|
@@ -1750,27 +1768,28 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
1750 |
$categories = array_filter($categories);
|
1751 |
foreach($categories as $cat_id) :
|
1752 |
if ( is_numeric($cat_id) ) :
|
1753 |
-
|
1754 |
-
|
1755 |
-
|
1756 |
-
|
1757 |
-
|
1758 |
-
|
1759 |
-
|
1760 |
-
|
1761 |
-
|
1762 |
-
|
1763 |
-
|
1764 |
-
|
1765 |
-
|
1766 |
-
|
1767 |
-
|
1768 |
-
|
1769 |
-
|
1770 |
-
|
1771 |
-
|
1772 |
-
|
1773 |
-
|
|
|
1774 |
endif;
|
1775 |
endforeach;
|
1776 |
endif;
|
@@ -1778,8 +1797,7 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
1778 |
endif;
|
1779 |
|
1780 |
if ( 0 != count( get_page_templates() ) ):
|
1781 |
-
$out .= 'jQuery(\'#page_template\').change(function(){ if(tinyMCEID.length) { for(i=0;i<tinyMCEID.length;i++) {tinyMCE.execCommand(\'mceRemoveControl\', false, tinyMCEID[i]);} tinyMCEID.length=0;}; jQuery.get(\'?page=custom-field-template/custom-field-template.php&cft_mode=selectbox&post=\'+jQuery(\'#post_ID\').val()+\'&page_template=\'+jQuery(\'#page_template\').val(), function(html) { jQuery(\'#cft_selectbox\').html(html);});';
|
1782 |
-
$out .= 'jQuery.ajax({type: \'GET\', url: \'?page=custom-field-template/custom-field-template.php&cft_mode=ajaxload&page_template=\'+jQuery(\'#page_template\').val()+\'&post=\'+jQuery(\'#post_ID\').val(), success: function(html) { jQuery(\'#cft\').html(html);}});';
|
1783 |
$out .= '});' . "\n";
|
1784 |
endif;
|
1785 |
|
4 |
Plugin URI: http://wordpressgogo.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.1
|
8 |
Author URI: http://wordpressgogo.com/
|
9 |
*/
|
10 |
|
476 |
}
|
477 |
|
478 |
function custom_field_template_the_content($content) {
|
479 |
+
global $wp_query, $post, $shortcode_tags;
|
480 |
$options = $this->get_custom_field_template_data();
|
481 |
|
482 |
if ( $this->is_excerpt ) :
|
483 |
$this->is_excerpt = false;
|
484 |
+
return $post->post_excerpt ? $post->post_excerpt : strip_shortcodes($content);
|
485 |
endif;
|
486 |
|
487 |
if ( count($options['hook']) > 0 ) :
|
559 |
endif;
|
560 |
endfor;
|
561 |
endif;
|
562 |
+
|
563 |
+
return stripslashes($content);
|
564 |
}
|
565 |
|
566 |
function custom_field_template_admin() {
|
1535 |
$level = $userdata->user_level;
|
1536 |
|
1537 |
$options = $this->get_custom_field_template_data();
|
1538 |
+
|
1539 |
+
if ( $_REQUEST['page_template'] ) :
|
1540 |
+
if ( count($options['custom_fields']) > 0 ) :
|
1541 |
+
foreach ( $options['custom_fields'] as $key => $val ) :
|
1542 |
+
$template_files = explode(',', $val['template_files']);
|
1543 |
+
$template_files = array_filter( $template_files );
|
1544 |
+
if ( in_array($_REQUEST['page_template'], $template_files) ) $id = $key;
|
1545 |
+
endforeach;
|
1546 |
+
endif;
|
1547 |
+
endif;
|
1548 |
+
|
1549 |
|
1550 |
$fields = $this->get_custom_fields( $id );
|
1551 |
|
1578 |
return;
|
1579 |
endif;
|
1580 |
|
1581 |
+
if ( $options['custom_fields'][$id]['template_files'] && isset($post->page_template) ) :
|
1582 |
$template_files = explode(',', $options['custom_fields'][$id]['template_files']);
|
1583 |
$template_files = array_filter( $template_files );
|
1584 |
+
if ( !in_array($post->page_template, $template_files) )
|
1585 |
return;
|
1586 |
endif;
|
1587 |
+
|
1588 |
if ( $options['custom_fields'][$id]['instruction'] ) :
|
1589 |
$instruction = stripcslashes($options['custom_fields'][$id]['instruction']);
|
1590 |
$instruction = preg_replace_callback("/(<\?php|<\?|< \?php)(.*?)\?>/si", array($this, 'EvalBuffer'), $instruction);
|
1591 |
$out .= '<div id="cft_instruction">' . $instruction . '</div>';
|
1592 |
endif;
|
1593 |
|
1594 |
+
$out .= '<div id="cft_'.$id.'">';
|
1595 |
$out .= '<input type="hidden" name="custom-field-template-id" id="custom-field-template-id" value="' . $id . '" />';
|
1596 |
foreach( $fields as $title => $data ) {
|
1597 |
for($i = 0; $i<count($data); $i++) {
|
1631 |
}
|
1632 |
}
|
1633 |
}
|
1634 |
+
$out .= '<script type="text/javascript">' . "\n" .
|
1635 |
+
'// <![CDATA[' . "\n";
|
1636 |
+
$out .= ' jQuery(document).ready(function() {' . "\n" .
|
1637 |
+
' jQuery("#custom_field_template_select").val("' . $id . '");' . "\n" .
|
1638 |
+
' });' . "\n";
|
1639 |
+
$out .= '// ]]>' . "\n" .
|
1640 |
+
'</script>';
|
1641 |
$out .= '</div>';
|
1642 |
$out .= '<br style="clear:both; font-size:1px;" />';
|
1643 |
|
1768 |
$categories = array_filter($categories);
|
1769 |
foreach($categories as $cat_id) :
|
1770 |
if ( is_numeric($cat_id) ) :
|
1771 |
+
$out .= ' jQuery(\'#in-category-' . $cat_id . '\').click(function(){if(jQuery(\'#in-category-' . $cat_id . '\').attr(\'checked\') == true) { if(tinyMCEID.length) { for(i=0;i<tinyMCEID.length;i++) {tinyMCE.execCommand(\'mceRemoveControl\', false, tinyMCEID[i]);} tinyMCEID.length=0;}; jQuery.get(\'?page=custom-field-template/custom-field-template.php&cft_mode=selectbox&post=\'+jQuery(\'#post_ID\').val()+\'&\'+jQuery(\'#categories-all :input\').fieldSerialize(), function(html) { jQuery(\'#cft_selectbox\').html(html);';
|
1772 |
+
if ( $options['custom_field_template_use_autosave'] ) :
|
1773 |
+
$out .= ' var fields = jQuery(\'#cft :input\').fieldSerialize();';
|
1774 |
+
$out .= 'jQuery.ajax({type: \'POST\', url: \'?page=custom-field-template/custom-field-template.php&cft_mode=ajaxsave&post=\'+jQuery(\'#post_ID\').val()+\'&custom-field-template-verify-key=\'+jQuery(\'#custom-field-template-verify-key\').val()+\'&\'+fields, success: function(){jQuery(\'#custom_field_template_select\').val(\'' . $key . '\');jQuery.ajax({type: \'GET\', url: \'?page=custom-field-template/custom-field-template.php&cft_mode=ajaxload&id=' . $key . '&post=\'+jQuery(\'#post_ID\').val(), success: function(html) {';
|
1775 |
+
if ( $options['custom_field_template_replace_the_title'] ) :
|
1776 |
+
$out .= 'jQuery(\'#cftdiv h3 span\').text(\'' . $options['custom_fields'][$key]['title'] . '\');';
|
1777 |
+
endif;
|
1778 |
+
$out .= 'jQuery(\'#cft\').html(html);}});}});';
|
1779 |
+
else :
|
1780 |
+
$out .= ' jQuery(\'#custom_field_template_select\').val(\'' . $key . '\');jQuery.ajax({type: \'GET\', url: \'?page=custom-field-template/custom-field-template.php&cft_mode=ajaxload&id=' . $key . '&post=\'+jQuery(\'#post_ID\').val(), success: function(html) {';
|
1781 |
+
if ( $options['custom_field_template_replace_the_title'] ) :
|
1782 |
+
$out .= 'jQuery(\'#cftdiv h3 span\').text(\'' . $options['custom_fields'][$key]['title'] . '\');';
|
1783 |
+
endif;
|
1784 |
+
$out .= 'jQuery(\'#cft\').html(html);}});';
|
1785 |
+
endif;
|
1786 |
+
$out .= ' });';
|
1787 |
+
|
1788 |
+
$out .= ' }else{ jQuery(\'#cft\').html(\'\');jQuery.get(\'?page=custom-field-template/custom-field-template.php&cft_mode=selectbox&post=\'+jQuery(\'#post_ID\').val(), function(html) { jQuery(\'#cft_selectbox\').html(html); jQuery.ajax({type: \'GET\', url: \'?page=custom-field-template/custom-field-template.php&cft_mode=ajaxload&post=\'+jQuery(\'#post_ID\').val(), success: function(html) { jQuery(\'#cft\').html(html);}}); });';
|
1789 |
+
if ( $options['custom_field_template_replace_the_title'] ) :
|
1790 |
+
$out .= 'jQuery(\'#cftdiv h3 span\').text(\'' . __('Custom Field Template', 'custom-field-template') . '\');';
|
1791 |
+
endif;
|
1792 |
+
$out .= '}});' . "\n";
|
1793 |
endif;
|
1794 |
endforeach;
|
1795 |
endif;
|
1797 |
endif;
|
1798 |
|
1799 |
if ( 0 != count( get_page_templates() ) ):
|
1800 |
+
$out .= 'jQuery(\'#page_template\').change(function(){ if(tinyMCEID.length) { for(i=0;i<tinyMCEID.length;i++) {tinyMCE.execCommand(\'mceRemoveControl\', false, tinyMCEID[i]);} tinyMCEID.length=0;}; jQuery.get(\'?page=custom-field-template/custom-field-template.php&cft_mode=selectbox&post=\'+jQuery(\'#post_ID\').val()+\'&page_template=\'+jQuery(\'#page_template\').val(), function(html) { jQuery(\'#cft_selectbox\').html(html); jQuery.ajax({type: \'GET\', url: \'?page=custom-field-template/custom-field-template.php&cft_mode=ajaxload&page_template=\'+jQuery(\'#page_template\').val()+\'&post=\'+jQuery(\'#post_ID\').val(), success: function(html) { jQuery(\'#cft\').html(html);}});});';
|
|
|
1801 |
$out .= '});' . "\n";
|
1802 |
endif;
|
1803 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wordpressgogo.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
|
7 |
-
Stable tag: 1.3.
|
8 |
|
9 |
This plugin adds the default custom fields on the Write Post/Page.
|
10 |
|
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.1
|
8 |
|
9 |
This plugin adds the default custom fields on the Write Post/Page.
|
10 |
|