Version Description
- Option to deploy the box in each template. Category ID and page template file name refinement have not been supported yet.
- Swedish (sv_SE) - Pontus Carlsson
- Bugfix: save button with the tinyMCE editor.
- Bugfix: output of custom field values.
Download this release
Release Info
Developer | Hiroaki Miyashita |
Plugin | Custom Field Template |
Version | 2.0 |
Comparing to | |
See all releases |
Code changes from version 1.9.9 to 2.0
- custom-field-template-ja.mo +0 -0
- custom-field-template-ja.po +115 -107
- custom-field-template-sv_SE.mo +0 -0
- custom-field-template-sv_SE.po +213 -0
- custom-field-template.php +302 -226
- custom-field-template.pot +179 -170
- readme.txt +9 -2
custom-field-template-ja.mo
CHANGED
Binary file
|
custom-field-template-ja.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Custom Field Template\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date:
|
6 |
-
"PO-Revision-Date:
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -21,8 +21,8 @@ msgstr ""
|
|
21 |
#: custom-field-template/custom-field-template.php:178
|
22 |
#: custom-field-template/custom-field-template.php:653
|
23 |
#: custom-field-template/custom-field-template.php:931
|
24 |
-
#: custom-field-template/custom-field-template.php:
|
25 |
-
#: custom-field-template/custom-field-template.php:
|
26 |
msgid "Custom Field Template"
|
27 |
msgstr "カスタムフィールドテンプレート"
|
28 |
|
@@ -35,7 +35,7 @@ msgid "Use this"
|
|
35 |
msgstr "これを使用する"
|
36 |
|
37 |
#: custom-field-template/custom-field-template.php:298
|
38 |
-
#: custom-field-template/custom-field-template.php:
|
39 |
msgid "Load"
|
40 |
msgstr "読込"
|
41 |
|
@@ -91,19 +91,19 @@ msgstr "オプションは削除されました。"
|
|
91 |
|
92 |
#: custom-field-template/custom-field-template.php:938
|
93 |
#: custom-field-template/custom-field-template.php:984
|
94 |
-
#: custom-field-template/custom-field-template.php:
|
95 |
-
#: custom-field-template/custom-field-template.php:
|
96 |
-
#: custom-field-template/custom-field-template.php:
|
97 |
-
#: custom-field-template/custom-field-template.php:
|
98 |
-
#: custom-field-template/custom-field-template.php:
|
99 |
-
#: custom-field-template/custom-field-template.php:
|
100 |
-
#: custom-field-template/custom-field-template.php:
|
101 |
-
#: custom-field-template/custom-field-template.php:
|
102 |
-
#: custom-field-template/custom-field-template.php:
|
103 |
-
#: custom-field-template/custom-field-template.php:
|
104 |
-
#: custom-field-template/custom-field-template.php:
|
105 |
-
#: custom-field-template/custom-field-template.php:
|
106 |
-
#: custom-field-template/custom-field-template.php:
|
107 |
msgid "Click to toggle"
|
108 |
msgstr "クリックで切替"
|
109 |
|
@@ -112,8 +112,8 @@ msgid "Custom Field Template Options"
|
|
112 |
msgstr "カスタムフィールドテンプレートオプション"
|
113 |
|
114 |
#: custom-field-template/custom-field-template.php:949
|
115 |
-
#: custom-field-template/custom-field-template.php:
|
116 |
-
#: custom-field-template/custom-field-template.php:
|
117 |
msgid "Disable"
|
118 |
msgstr "無効"
|
119 |
|
@@ -126,27 +126,27 @@ msgid "Template Instruction"
|
|
126 |
msgstr "テンプレートインストラクション"
|
127 |
|
128 |
#: custom-field-template/custom-field-template.php:955
|
129 |
-
#: custom-field-template/custom-field-template.php:
|
130 |
msgid "Post Type"
|
131 |
msgstr "投稿タイプ"
|
132 |
|
133 |
#: custom-field-template/custom-field-template.php:957
|
134 |
-
#: custom-field-template/custom-field-template.php:
|
135 |
msgid "Both"
|
136 |
msgstr "両方"
|
137 |
|
138 |
#: custom-field-template/custom-field-template.php:958
|
139 |
-
#: custom-field-template/custom-field-template.php:
|
140 |
msgid "Post"
|
141 |
msgstr "投稿"
|
142 |
|
143 |
#: custom-field-template/custom-field-template.php:959
|
144 |
-
#: custom-field-template/custom-field-template.php:
|
145 |
msgid "Page"
|
146 |
msgstr "ページ"
|
147 |
|
148 |
#: custom-field-template/custom-field-template.php:960
|
149 |
-
#: custom-field-template/custom-field-template.php:
|
150 |
msgid "Custom Post Type (comma-deliminated)"
|
151 |
msgstr "カスタムポストタイプ (カンマ区切り)"
|
152 |
|
@@ -155,7 +155,7 @@ msgid "Post ID (comma-deliminated)"
|
|
155 |
msgstr "Post ID (カンマ区切り)"
|
156 |
|
157 |
#: custom-field-template/custom-field-template.php:964
|
158 |
-
#: custom-field-template/custom-field-template.php:
|
159 |
msgid "Category ID (comma-deliminated)"
|
160 |
msgstr "カテゴリーID (カンマ区切り)"
|
161 |
|
@@ -168,11 +168,11 @@ msgid "Template Content"
|
|
168 |
msgstr "テンプレートコンテンツ"
|
169 |
|
170 |
#: custom-field-template/custom-field-template.php:975
|
171 |
-
#: custom-field-template/custom-field-template.php:
|
172 |
-
#: custom-field-template/custom-field-template.php:
|
173 |
-
#: custom-field-template/custom-field-template.php:
|
174 |
-
#: custom-field-template/custom-field-template.php:
|
175 |
-
#: custom-field-template/custom-field-template.php:
|
176 |
msgid "Update Options »"
|
177 |
msgstr "オプションを更新する »"
|
178 |
|
@@ -261,284 +261,292 @@ msgid "Replace the box title"
|
|
261 |
msgstr "ボックスタイトルを置き換える"
|
262 |
|
263 |
#: custom-field-template/custom-field-template.php:1049
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
264 |
msgid "In case that you would like to use the shortcode in the widget."
|
265 |
msgstr "ショートコードをウィジェットで使用したい場合"
|
266 |
|
267 |
-
#: custom-field-template/custom-field-template.php:
|
268 |
msgid "Use the shortcode in the widget"
|
269 |
msgstr "ショートコードをウィジェットで使用する"
|
270 |
|
271 |
-
#: custom-field-template/custom-field-template.php:
|
272 |
msgid "In case that you would like to use the shortcode in the excerpt."
|
273 |
msgstr "ショートコードを抜粋で使用したい場合"
|
274 |
|
275 |
-
#: custom-field-template/custom-field-template.php:
|
276 |
msgid "Use the shortcode in the excerpt"
|
277 |
msgstr "ショートコードを抜粋で使用する"
|
278 |
|
279 |
-
#: custom-field-template/custom-field-template.php:
|
280 |
msgid "In case that you would like to use the jQuery validation."
|
281 |
msgstr "jQuery バリデーションを使用したい場合"
|
282 |
|
283 |
-
#: custom-field-template/custom-field-template.php:
|
284 |
msgid "Use the jQuery validation"
|
285 |
msgstr "jQuery バリデーションを使用する"
|
286 |
|
287 |
-
#: custom-field-template/custom-field-template.php:
|
288 |
msgid "Text to place before every list which is called by the cft shortcode"
|
289 |
msgstr "cft ショートコードで呼ばれるリストの前のテキスト"
|
290 |
|
291 |
-
#: custom-field-template/custom-field-template.php:
|
292 |
msgid "Text to place after every list which is called by the cft shortcode"
|
293 |
msgstr "cft ショートコードで呼ばれるリストの後のテキスト"
|
294 |
|
295 |
-
#: custom-field-template/custom-field-template.php:
|
296 |
msgid "Text to place before every value which is called by the cft shortcode"
|
297 |
msgstr "cft ショートコードで呼ばれる値の前のテキスト"
|
298 |
|
299 |
-
#: custom-field-template/custom-field-template.php:
|
300 |
msgid "Text to place after every value which is called by the cft shortcode"
|
301 |
msgstr "cft ショートコードで呼ばれる値の後のテキスト"
|
302 |
|
303 |
-
#: custom-field-template/custom-field-template.php:
|
304 |
msgid "In case that you would like to hide the advertisement right column."
|
305 |
msgstr "右カラムの広告を隠す場合"
|
306 |
|
307 |
-
#: custom-field-template/custom-field-template.php:
|
308 |
msgid "I want to use a wider screen."
|
309 |
msgstr "もっと広い画面を使いたい・・・。"
|
310 |
|
311 |
-
#: custom-field-template/custom-field-template.php:
|
312 |
msgid "ADMIN CSS"
|
313 |
msgstr "ADMIN CSS"
|
314 |
|
315 |
-
#: custom-field-template/custom-field-template.php:
|
316 |
msgid "[cft] and [cftsearch] Shortcode Format"
|
317 |
msgstr "[cft] and [cftsearch] Shortcode Format"
|
318 |
|
319 |
-
#: custom-field-template/custom-field-template.php:
|
320 |
msgid "For [cft], [key] will be converted into the value of [key]."
|
321 |
msgstr "[cft]では、[key]は、[key]の値に置換されます。"
|
322 |
|
323 |
-
#: custom-field-template/custom-field-template.php:
|
324 |
msgid "For [cftsearch], [key] will be converted into the input field."
|
325 |
msgstr "[cftsearch]では、[key]は、インプットフィールドに置換されます。"
|
326 |
|
327 |
-
#: custom-field-template/custom-field-template.php:
|
328 |
-
#: custom-field-template/custom-field-template.php:
|
329 |
msgid "Use PHP"
|
330 |
msgstr "PHPを使用する"
|
331 |
|
332 |
-
#: custom-field-template/custom-field-template.php:
|
333 |
msgid "PHP CODE (Experimental Option)"
|
334 |
msgstr "PHP CODE (Experimental Option)"
|
335 |
|
336 |
-
#: custom-field-template/custom-field-template.php:
|
337 |
msgid "Are you sure to save PHP codes? Please do it at your own risk."
|
338 |
msgstr "PHPコードを保存してよろしいですか?自己責任で実行してください。"
|
339 |
|
340 |
-
#: custom-field-template/custom-field-template.php:
|
341 |
msgid "For `text` and `textarea`, you must set $value as an string."
|
342 |
msgstr "`text`と`textarea`は$valueを文字列としてセットしてください。"
|
343 |
|
344 |
-
#: custom-field-template/custom-field-template.php:
|
345 |
msgid "For `checkbox`, `radio`, and `select`, you must set $values as an array."
|
346 |
msgstr "`checkbox`、`radio`、`select`では、配列として$valuesをセットしてください。"
|
347 |
|
348 |
-
#: custom-field-template/custom-field-template.php:
|
349 |
msgid "Auto Hook of `the_content()` (Experimental Option)"
|
350 |
msgstr "Auto Hook of `the_content()` (Experimental Option)"
|
351 |
|
352 |
-
#: custom-field-template/custom-field-template.php:
|
353 |
msgid "Position"
|
354 |
msgstr "位置"
|
355 |
|
356 |
-
#: custom-field-template/custom-field-template.php:
|
357 |
msgid "Before the content"
|
358 |
msgstr "コンテンツの前"
|
359 |
|
360 |
-
#: custom-field-template/custom-field-template.php:
|
361 |
msgid "After the content"
|
362 |
msgstr "コンテンツの後"
|
363 |
|
364 |
-
#: custom-field-template/custom-field-template.php:
|
365 |
#, php-format
|
366 |
msgid "Inside the content ([cfthook hook=%d])"
|
367 |
msgstr "コンテンツの中 ([cfthook hook=%d])"
|
368 |
|
369 |
-
#: custom-field-template/custom-field-template.php:
|
370 |
msgid "Content"
|
371 |
msgstr "コンテンツ"
|
372 |
|
373 |
-
#: custom-field-template/custom-field-template.php:
|
374 |
msgid "Apply to feeds"
|
375 |
msgstr "フィードに適用する"
|
376 |
|
377 |
-
#: custom-field-template/custom-field-template.php:
|
378 |
msgid "Rebuild Value Counts"
|
379 |
msgstr "バリューカウントの再構築"
|
380 |
|
381 |
-
#: custom-field-template/custom-field-template.php:
|
382 |
msgid "Are you sure to rebuild all value counts?"
|
383 |
msgstr "本当に全てのバリューカウントを再構築しますか?"
|
384 |
|
385 |
-
#: custom-field-template/custom-field-template.php:
|
386 |
msgid "Value Counts are used for temporarily saving how many values in each key. Set `valueCount = true` into fields."
|
387 |
msgstr "バリューカウントはキーごとに値がどのくらいあるか一時的に保存するのに使用されます。`valueCount = true`をフィールドにセットしてください。"
|
388 |
|
389 |
-
#: custom-field-template/custom-field-template.php:
|
390 |
msgid "Rebuild Value Counts »"
|
391 |
msgstr "バリューカウントを再構築する »"
|
392 |
|
393 |
-
#: custom-field-template/custom-field-template.php:
|
394 |
msgid "Rebuild Tags"
|
395 |
msgstr "タグの再構築"
|
396 |
|
397 |
-
#: custom-field-template/custom-field-template.php:
|
398 |
msgid "Are you sure to rebuild tags?"
|
399 |
msgstr "本当に全てのタグを再構築しますか?"
|
400 |
|
401 |
-
#: custom-field-template/custom-field-template.php:
|
402 |
msgid "Rebuild Tags »"
|
403 |
msgstr "タグを再構築する »"
|
404 |
|
405 |
-
#: custom-field-template/custom-field-template.php:
|
406 |
msgid "Option List"
|
407 |
msgstr "オプションリスト"
|
408 |
|
409 |
-
#: custom-field-template/custom-field-template.php:
|
410 |
msgid "Export Options"
|
411 |
msgstr "オプションをエクスポートする"
|
412 |
|
413 |
-
#: custom-field-template/custom-field-template.php:
|
414 |
msgid "Export Options »"
|
415 |
msgstr "オプションをエクスポートする »"
|
416 |
|
417 |
-
#: custom-field-template/custom-field-template.php:
|
418 |
msgid "Import Options"
|
419 |
msgstr "オプションをインポートする"
|
420 |
|
421 |
-
#: custom-field-template/custom-field-template.php:
|
422 |
msgid "Are you sure to import options? Options you set will be overwritten."
|
423 |
msgstr "本当にオプションをインポートしてもよろしいですか?設定したオプションは上書きされます。"
|
424 |
|
425 |
-
#: custom-field-template/custom-field-template.php:
|
426 |
msgid "Import Options »"
|
427 |
msgstr "オプションをインポートする »"
|
428 |
|
429 |
-
#: custom-field-template/custom-field-template.php:
|
430 |
msgid "Reset Options"
|
431 |
msgstr "オプションをリセットする"
|
432 |
|
433 |
-
#: custom-field-template/custom-field-template.php:
|
434 |
msgid "Are you sure to reset options? Options you set will be reset to the default settings."
|
435 |
msgstr "本当にオプションをリセットしてもよろしいですか?設定したオプションはデフォルトの状態に戻ります。"
|
436 |
|
437 |
-
#: custom-field-template/custom-field-template.php:
|
438 |
msgid "Reset Options »"
|
439 |
msgstr "オプションをリセットする »"
|
440 |
|
441 |
-
#: custom-field-template/custom-field-template.php:
|
442 |
msgid "Delete Options"
|
443 |
msgstr "オプションを削除する"
|
444 |
|
445 |
-
#: custom-field-template/custom-field-template.php:
|
446 |
msgid "Are you sure to delete options? Options you set will be deleted."
|
447 |
msgstr "本当にオプションを削除してもよろしいですか?設定したオプションは削除されます。"
|
448 |
|
449 |
-
#: custom-field-template/custom-field-template.php:
|
450 |
msgid "Delete Options »"
|
451 |
msgstr "オプションを削除する »"
|
452 |
|
453 |
-
#: custom-field-template/custom-field-template.php:
|
454 |
msgid "Donation"
|
455 |
msgstr "寄付"
|
456 |
|
457 |
-
#: custom-field-template/custom-field-template.php:
|
458 |
msgid "If you liked this plugin, please make a donation via paypal! Any amount is welcome. Your support is much appreciated."
|
459 |
msgstr "このプラグインをお気に召しましたら、Paypalよりご寄付をよろしくお願いいたします。"
|
460 |
|
461 |
-
#: custom-field-template/custom-field-template.php:
|
462 |
msgid "CMS x WP"
|
463 |
msgstr "CMS×WP"
|
464 |
|
465 |
-
#: custom-field-template/custom-field-template.php:
|
466 |
msgid "There are much more plugins which are useful for developing business websites such as membership sites or ec sites. You could totally treat WordPress as CMS by use of CMS x WP plugins."
|
467 |
msgstr "会員制サイトやECサイトなどのビジネスサイト構築に役立つプラグインが盛りだくさん。CMS×WPのプラグインで WordPress が CMS として大いに活躍します。"
|
468 |
|
469 |
-
#: custom-field-template/custom-field-template.php:
|
470 |
msgid "WordPress plugin sales site: CMS x WP"
|
471 |
msgstr "WordPress のプラグイン販売サイト CMS×WP"
|
472 |
|
473 |
-
#: custom-field-template/custom-field-template.php:
|
474 |
-
#: custom-field-template/custom-field-template.php:
|
475 |
-
#: custom-field-template/custom-field-template.php:
|
476 |
-
#: custom-field-template/custom-field-template.php:
|
477 |
-
#: custom-field-template/custom-field-template.php:
|
478 |
-
#: custom-field-template/custom-field-template.php:
|
479 |
-
#: custom-field-template/custom-field-template.php:
|
480 |
msgid "Add New"
|
481 |
msgstr "追加"
|
482 |
|
483 |
-
#: custom-field-template/custom-field-template.php:
|
484 |
msgid "Clear"
|
485 |
msgstr "解除"
|
486 |
|
487 |
-
#: custom-field-template/custom-field-template.php:
|
488 |
msgid "Select"
|
489 |
msgstr "選択してください"
|
490 |
|
491 |
-
#: custom-field-template/custom-field-template.php:
|
492 |
msgid "Add an Image"
|
493 |
msgstr ""
|
494 |
|
495 |
-
#: custom-field-template/custom-field-template.php:
|
496 |
msgid "Add Video"
|
497 |
msgstr ""
|
498 |
|
499 |
-
#: custom-field-template/custom-field-template.php:
|
500 |
msgid "Add Audio"
|
501 |
msgstr ""
|
502 |
|
503 |
-
#: custom-field-template/custom-field-template.php:
|
504 |
-
#: custom-field-template/custom-field-template.php:
|
505 |
msgid "Add Media"
|
506 |
msgstr ""
|
507 |
|
508 |
-
#: custom-field-template/custom-field-template.php:
|
509 |
msgid "Toggle"
|
510 |
msgstr "切り替え"
|
511 |
|
512 |
-
#: custom-field-template/custom-field-template.php:
|
513 |
msgid " OR "
|
514 |
msgstr " または "
|
515 |
|
516 |
-
#: custom-field-template/custom-field-template.php:
|
517 |
msgid "Select by Media Picker"
|
518 |
msgstr "メディアピッカーで選択"
|
519 |
|
520 |
-
#: custom-field-template/custom-field-template.php:
|
521 |
-
#: custom-field-template/custom-field-template.php:
|
522 |
msgid "Delete"
|
523 |
msgstr "削除"
|
524 |
|
525 |
-
#: custom-field-template/custom-field-template.php:
|
526 |
msgid "Enable"
|
527 |
msgstr "有効"
|
528 |
|
529 |
-
#: custom-field-template/custom-field-template.php:
|
530 |
msgid "Initialize"
|
531 |
msgstr "初期化"
|
532 |
|
533 |
-
#: custom-field-template/custom-field-template.php:
|
534 |
msgid "Are you sure to reset current values? Default values will be loaded."
|
535 |
msgstr "現在値をリセットしてもよろしいですか?初期値が読み込まれます。"
|
536 |
|
537 |
-
#: custom-field-template/custom-field-template.php:
|
538 |
msgid "Save"
|
539 |
msgstr "保存"
|
540 |
|
541 |
-
#: custom-field-template/custom-field-template.php:
|
542 |
msgid "Search »"
|
543 |
msgstr "検索 »"
|
544 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Custom Field Template\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2012-04-08 11:48+0900\n"
|
6 |
+
"PO-Revision-Date: 2012-04-08 11:49+0900\n"
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
21 |
#: custom-field-template/custom-field-template.php:178
|
22 |
#: custom-field-template/custom-field-template.php:653
|
23 |
#: custom-field-template/custom-field-template.php:931
|
24 |
+
#: custom-field-template/custom-field-template.php:2362
|
25 |
+
#: custom-field-template/custom-field-template.php:2569
|
26 |
msgid "Custom Field Template"
|
27 |
msgstr "カスタムフィールドテンプレート"
|
28 |
|
35 |
msgstr "これを使用する"
|
36 |
|
37 |
#: custom-field-template/custom-field-template.php:298
|
38 |
+
#: custom-field-template/custom-field-template.php:2789
|
39 |
msgid "Load"
|
40 |
msgstr "読込"
|
41 |
|
91 |
|
92 |
#: custom-field-template/custom-field-template.php:938
|
93 |
#: custom-field-template/custom-field-template.php:984
|
94 |
+
#: custom-field-template/custom-field-template.php:1100
|
95 |
+
#: custom-field-template/custom-field-template.php:1119
|
96 |
+
#: custom-field-template/custom-field-template.php:1150
|
97 |
+
#: custom-field-template/custom-field-template.php:1183
|
98 |
+
#: custom-field-template/custom-field-template.php:1226
|
99 |
+
#: custom-field-template/custom-field-template.php:1247
|
100 |
+
#: custom-field-template/custom-field-template.php:1264
|
101 |
+
#: custom-field-template/custom-field-template.php:1438
|
102 |
+
#: custom-field-template/custom-field-template.php:1454
|
103 |
+
#: custom-field-template/custom-field-template.php:1470
|
104 |
+
#: custom-field-template/custom-field-template.php:1486
|
105 |
+
#: custom-field-template/custom-field-template.php:1505
|
106 |
+
#: custom-field-template/custom-field-template.php:1521
|
107 |
msgid "Click to toggle"
|
108 |
msgstr "クリックで切替"
|
109 |
|
112 |
msgstr "カスタムフィールドテンプレートオプション"
|
113 |
|
114 |
#: custom-field-template/custom-field-template.php:949
|
115 |
+
#: custom-field-template/custom-field-template.php:2629
|
116 |
+
#: custom-field-template/custom-field-template.php:2630
|
117 |
msgid "Disable"
|
118 |
msgstr "無効"
|
119 |
|
126 |
msgstr "テンプレートインストラクション"
|
127 |
|
128 |
#: custom-field-template/custom-field-template.php:955
|
129 |
+
#: custom-field-template/custom-field-template.php:1201
|
130 |
msgid "Post Type"
|
131 |
msgstr "投稿タイプ"
|
132 |
|
133 |
#: custom-field-template/custom-field-template.php:957
|
134 |
+
#: custom-field-template/custom-field-template.php:1202
|
135 |
msgid "Both"
|
136 |
msgstr "両方"
|
137 |
|
138 |
#: custom-field-template/custom-field-template.php:958
|
139 |
+
#: custom-field-template/custom-field-template.php:1203
|
140 |
msgid "Post"
|
141 |
msgstr "投稿"
|
142 |
|
143 |
#: custom-field-template/custom-field-template.php:959
|
144 |
+
#: custom-field-template/custom-field-template.php:1204
|
145 |
msgid "Page"
|
146 |
msgstr "ページ"
|
147 |
|
148 |
#: custom-field-template/custom-field-template.php:960
|
149 |
+
#: custom-field-template/custom-field-template.php:1205
|
150 |
msgid "Custom Post Type (comma-deliminated)"
|
151 |
msgstr "カスタムポストタイプ (カンマ区切り)"
|
152 |
|
155 |
msgstr "Post ID (カンマ区切り)"
|
156 |
|
157 |
#: custom-field-template/custom-field-template.php:964
|
158 |
+
#: custom-field-template/custom-field-template.php:1207
|
159 |
msgid "Category ID (comma-deliminated)"
|
160 |
msgstr "カテゴリーID (カンマ区切り)"
|
161 |
|
168 |
msgstr "テンプレートコンテンツ"
|
169 |
|
170 |
#: custom-field-template/custom-field-template.php:975
|
171 |
+
#: custom-field-template/custom-field-template.php:1091
|
172 |
+
#: custom-field-template/custom-field-template.php:1110
|
173 |
+
#: custom-field-template/custom-field-template.php:1141
|
174 |
+
#: custom-field-template/custom-field-template.php:1174
|
175 |
+
#: custom-field-template/custom-field-template.php:1217
|
176 |
msgid "Update Options »"
|
177 |
msgstr "オプションを更新する »"
|
178 |
|
261 |
msgstr "ボックスタイトルを置き換える"
|
262 |
|
263 |
#: custom-field-template/custom-field-template.php:1049
|
264 |
+
msgid "In case that you would like to deploy the box in each template."
|
265 |
+
msgstr "テンプレートごとにボックスを配置する場合"
|
266 |
+
|
267 |
+
#: custom-field-template/custom-field-template.php:1050
|
268 |
+
msgid "Deploy the box in each template"
|
269 |
+
msgstr "テンプレートごとにボックスを配置する"
|
270 |
+
|
271 |
+
#: custom-field-template/custom-field-template.php:1054
|
272 |
msgid "In case that you would like to use the shortcode in the widget."
|
273 |
msgstr "ショートコードをウィジェットで使用したい場合"
|
274 |
|
275 |
+
#: custom-field-template/custom-field-template.php:1055
|
276 |
msgid "Use the shortcode in the widget"
|
277 |
msgstr "ショートコードをウィジェットで使用する"
|
278 |
|
279 |
+
#: custom-field-template/custom-field-template.php:1059
|
280 |
msgid "In case that you would like to use the shortcode in the excerpt."
|
281 |
msgstr "ショートコードを抜粋で使用したい場合"
|
282 |
|
283 |
+
#: custom-field-template/custom-field-template.php:1060
|
284 |
msgid "Use the shortcode in the excerpt"
|
285 |
msgstr "ショートコードを抜粋で使用する"
|
286 |
|
287 |
+
#: custom-field-template/custom-field-template.php:1064
|
288 |
msgid "In case that you would like to use the jQuery validation."
|
289 |
msgstr "jQuery バリデーションを使用したい場合"
|
290 |
|
291 |
+
#: custom-field-template/custom-field-template.php:1065
|
292 |
msgid "Use the jQuery validation"
|
293 |
msgstr "jQuery バリデーションを使用する"
|
294 |
|
295 |
+
#: custom-field-template/custom-field-template.php:1075
|
296 |
msgid "Text to place before every list which is called by the cft shortcode"
|
297 |
msgstr "cft ショートコードで呼ばれるリストの前のテキスト"
|
298 |
|
299 |
+
#: custom-field-template/custom-field-template.php:1077
|
300 |
msgid "Text to place after every list which is called by the cft shortcode"
|
301 |
msgstr "cft ショートコードで呼ばれるリストの後のテキスト"
|
302 |
|
303 |
+
#: custom-field-template/custom-field-template.php:1079
|
304 |
msgid "Text to place before every value which is called by the cft shortcode"
|
305 |
msgstr "cft ショートコードで呼ばれる値の前のテキスト"
|
306 |
|
307 |
+
#: custom-field-template/custom-field-template.php:1081
|
308 |
msgid "Text to place after every value which is called by the cft shortcode"
|
309 |
msgstr "cft ショートコードで呼ばれる値の後のテキスト"
|
310 |
|
311 |
+
#: custom-field-template/custom-field-template.php:1086
|
312 |
msgid "In case that you would like to hide the advertisement right column."
|
313 |
msgstr "右カラムの広告を隠す場合"
|
314 |
|
315 |
+
#: custom-field-template/custom-field-template.php:1087
|
316 |
msgid "I want to use a wider screen."
|
317 |
msgstr "もっと広い画面を使いたい・・・。"
|
318 |
|
319 |
+
#: custom-field-template/custom-field-template.php:1101
|
320 |
msgid "ADMIN CSS"
|
321 |
msgstr "ADMIN CSS"
|
322 |
|
323 |
+
#: custom-field-template/custom-field-template.php:1120
|
324 |
msgid "[cft] and [cftsearch] Shortcode Format"
|
325 |
msgstr "[cft] and [cftsearch] Shortcode Format"
|
326 |
|
327 |
+
#: custom-field-template/custom-field-template.php:1123
|
328 |
msgid "For [cft], [key] will be converted into the value of [key]."
|
329 |
msgstr "[cft]では、[key]は、[key]の値に置換されます。"
|
330 |
|
331 |
+
#: custom-field-template/custom-field-template.php:1124
|
332 |
msgid "For [cftsearch], [key] will be converted into the input field."
|
333 |
msgstr "[cftsearch]では、[key]は、インプットフィールドに置換されます。"
|
334 |
|
335 |
+
#: custom-field-template/custom-field-template.php:1135
|
336 |
+
#: custom-field-template/custom-field-template.php:1210
|
337 |
msgid "Use PHP"
|
338 |
msgstr "PHPを使用する"
|
339 |
|
340 |
+
#: custom-field-template/custom-field-template.php:1151
|
341 |
msgid "PHP CODE (Experimental Option)"
|
342 |
msgstr "PHP CODE (Experimental Option)"
|
343 |
|
344 |
+
#: custom-field-template/custom-field-template.php:1153
|
345 |
msgid "Are you sure to save PHP codes? Please do it at your own risk."
|
346 |
msgstr "PHPコードを保存してよろしいですか?自己責任で実行してください。"
|
347 |
|
348 |
+
#: custom-field-template/custom-field-template.php:1154
|
349 |
msgid "For `text` and `textarea`, you must set $value as an string."
|
350 |
msgstr "`text`と`textarea`は$valueを文字列としてセットしてください。"
|
351 |
|
352 |
+
#: custom-field-template/custom-field-template.php:1156
|
353 |
msgid "For `checkbox`, `radio`, and `select`, you must set $values as an array."
|
354 |
msgstr "`checkbox`、`radio`、`select`では、配列として$valuesをセットしてください。"
|
355 |
|
356 |
+
#: custom-field-template/custom-field-template.php:1184
|
357 |
msgid "Auto Hook of `the_content()` (Experimental Option)"
|
358 |
msgstr "Auto Hook of `the_content()` (Experimental Option)"
|
359 |
|
360 |
+
#: custom-field-template/custom-field-template.php:1196
|
361 |
msgid "Position"
|
362 |
msgstr "位置"
|
363 |
|
364 |
+
#: custom-field-template/custom-field-template.php:1197
|
365 |
msgid "Before the content"
|
366 |
msgstr "コンテンツの前"
|
367 |
|
368 |
+
#: custom-field-template/custom-field-template.php:1198
|
369 |
msgid "After the content"
|
370 |
msgstr "コンテンツの後"
|
371 |
|
372 |
+
#: custom-field-template/custom-field-template.php:1199
|
373 |
#, php-format
|
374 |
msgid "Inside the content ([cfthook hook=%d])"
|
375 |
msgstr "コンテンツの中 ([cfthook hook=%d])"
|
376 |
|
377 |
+
#: custom-field-template/custom-field-template.php:1209
|
378 |
msgid "Content"
|
379 |
msgstr "コンテンツ"
|
380 |
|
381 |
+
#: custom-field-template/custom-field-template.php:1211
|
382 |
msgid "Apply to feeds"
|
383 |
msgstr "フィードに適用する"
|
384 |
|
385 |
+
#: custom-field-template/custom-field-template.php:1227
|
386 |
msgid "Rebuild Value Counts"
|
387 |
msgstr "バリューカウントの再構築"
|
388 |
|
389 |
+
#: custom-field-template/custom-field-template.php:1229
|
390 |
msgid "Are you sure to rebuild all value counts?"
|
391 |
msgstr "本当に全てのバリューカウントを再構築しますか?"
|
392 |
|
393 |
+
#: custom-field-template/custom-field-template.php:1233
|
394 |
msgid "Value Counts are used for temporarily saving how many values in each key. Set `valueCount = true` into fields."
|
395 |
msgstr "バリューカウントはキーごとに値がどのくらいあるか一時的に保存するのに使用されます。`valueCount = true`をフィールドにセットしてください。"
|
396 |
|
397 |
+
#: custom-field-template/custom-field-template.php:1237
|
398 |
msgid "Rebuild Value Counts »"
|
399 |
msgstr "バリューカウントを再構築する »"
|
400 |
|
401 |
+
#: custom-field-template/custom-field-template.php:1248
|
402 |
msgid "Rebuild Tags"
|
403 |
msgstr "タグの再構築"
|
404 |
|
405 |
+
#: custom-field-template/custom-field-template.php:1250
|
406 |
msgid "Are you sure to rebuild tags?"
|
407 |
msgstr "本当に全てのタグを再構築しますか?"
|
408 |
|
409 |
+
#: custom-field-template/custom-field-template.php:1254
|
410 |
msgid "Rebuild Tags »"
|
411 |
msgstr "タグを再構築する »"
|
412 |
|
413 |
+
#: custom-field-template/custom-field-template.php:1265
|
414 |
msgid "Option List"
|
415 |
msgstr "オプションリスト"
|
416 |
|
417 |
+
#: custom-field-template/custom-field-template.php:1439
|
418 |
msgid "Export Options"
|
419 |
msgstr "オプションをエクスポートする"
|
420 |
|
421 |
+
#: custom-field-template/custom-field-template.php:1445
|
422 |
msgid "Export Options »"
|
423 |
msgstr "オプションをエクスポートする »"
|
424 |
|
425 |
+
#: custom-field-template/custom-field-template.php:1455
|
426 |
msgid "Import Options"
|
427 |
msgstr "オプションをインポートする"
|
428 |
|
429 |
+
#: custom-field-template/custom-field-template.php:1457
|
430 |
msgid "Are you sure to import options? Options you set will be overwritten."
|
431 |
msgstr "本当にオプションをインポートしてもよろしいですか?設定したオプションは上書きされます。"
|
432 |
|
433 |
+
#: custom-field-template/custom-field-template.php:1461
|
434 |
msgid "Import Options »"
|
435 |
msgstr "オプションをインポートする »"
|
436 |
|
437 |
+
#: custom-field-template/custom-field-template.php:1471
|
438 |
msgid "Reset Options"
|
439 |
msgstr "オプションをリセットする"
|
440 |
|
441 |
+
#: custom-field-template/custom-field-template.php:1473
|
442 |
msgid "Are you sure to reset options? Options you set will be reset to the default settings."
|
443 |
msgstr "本当にオプションをリセットしてもよろしいですか?設定したオプションはデフォルトの状態に戻ります。"
|
444 |
|
445 |
+
#: custom-field-template/custom-field-template.php:1477
|
446 |
msgid "Reset Options »"
|
447 |
msgstr "オプションをリセットする »"
|
448 |
|
449 |
+
#: custom-field-template/custom-field-template.php:1487
|
450 |
msgid "Delete Options"
|
451 |
msgstr "オプションを削除する"
|
452 |
|
453 |
+
#: custom-field-template/custom-field-template.php:1489
|
454 |
msgid "Are you sure to delete options? Options you set will be deleted."
|
455 |
msgstr "本当にオプションを削除してもよろしいですか?設定したオプションは削除されます。"
|
456 |
|
457 |
+
#: custom-field-template/custom-field-template.php:1493
|
458 |
msgid "Delete Options »"
|
459 |
msgstr "オプションを削除する »"
|
460 |
|
461 |
+
#: custom-field-template/custom-field-template.php:1506
|
462 |
msgid "Donation"
|
463 |
msgstr "寄付"
|
464 |
|
465 |
+
#: custom-field-template/custom-field-template.php:1508
|
466 |
msgid "If you liked this plugin, please make a donation via paypal! Any amount is welcome. Your support is much appreciated."
|
467 |
msgstr "このプラグインをお気に召しましたら、Paypalよりご寄付をよろしくお願いいたします。"
|
468 |
|
469 |
+
#: custom-field-template/custom-field-template.php:1522
|
470 |
msgid "CMS x WP"
|
471 |
msgstr "CMS×WP"
|
472 |
|
473 |
+
#: custom-field-template/custom-field-template.php:1524
|
474 |
msgid "There are much more plugins which are useful for developing business websites such as membership sites or ec sites. You could totally treat WordPress as CMS by use of CMS x WP plugins."
|
475 |
msgstr "会員制サイトやECサイトなどのビジネスサイト構築に役立つプラグインが盛りだくさん。CMS×WPのプラグインで WordPress が CMS として大いに活躍します。"
|
476 |
|
477 |
+
#: custom-field-template/custom-field-template.php:1525
|
478 |
msgid "WordPress plugin sales site: CMS x WP"
|
479 |
msgstr "WordPress のプラグイン販売サイト CMS×WP"
|
480 |
|
481 |
+
#: custom-field-template/custom-field-template.php:1620
|
482 |
+
#: custom-field-template/custom-field-template.php:1752
|
483 |
+
#: custom-field-template/custom-field-template.php:1840
|
484 |
+
#: custom-field-template/custom-field-template.php:2016
|
485 |
+
#: custom-field-template/custom-field-template.php:2018
|
486 |
+
#: custom-field-template/custom-field-template.php:2087
|
487 |
+
#: custom-field-template/custom-field-template.php:2291
|
488 |
msgid "Add New"
|
489 |
msgstr "追加"
|
490 |
|
491 |
+
#: custom-field-template/custom-field-template.php:1762
|
492 |
msgid "Clear"
|
493 |
msgstr "解除"
|
494 |
|
495 |
+
#: custom-field-template/custom-field-template.php:1856
|
496 |
msgid "Select"
|
497 |
msgstr "選択してください"
|
498 |
|
499 |
+
#: custom-field-template/custom-field-template.php:1941
|
500 |
msgid "Add an Image"
|
501 |
msgstr ""
|
502 |
|
503 |
+
#: custom-field-template/custom-field-template.php:1946
|
504 |
msgid "Add Video"
|
505 |
msgstr ""
|
506 |
|
507 |
+
#: custom-field-template/custom-field-template.php:1951
|
508 |
msgid "Add Audio"
|
509 |
msgstr ""
|
510 |
|
511 |
+
#: custom-field-template/custom-field-template.php:1955
|
512 |
+
#: custom-field-template/custom-field-template.php:1959
|
513 |
msgid "Add Media"
|
514 |
msgstr ""
|
515 |
|
516 |
+
#: custom-field-template/custom-field-template.php:1966
|
517 |
msgid "Toggle"
|
518 |
msgstr "切り替え"
|
519 |
|
520 |
+
#: custom-field-template/custom-field-template.php:2097
|
521 |
msgid " OR "
|
522 |
msgstr " または "
|
523 |
|
524 |
+
#: custom-field-template/custom-field-template.php:2098
|
525 |
msgid "Select by Media Picker"
|
526 |
msgstr "メディアピッカーで選択"
|
527 |
|
528 |
+
#: custom-field-template/custom-field-template.php:2121
|
529 |
+
#: custom-field-template/custom-field-template.php:2293
|
530 |
msgid "Delete"
|
531 |
msgstr "削除"
|
532 |
|
533 |
+
#: custom-field-template/custom-field-template.php:2630
|
534 |
msgid "Enable"
|
535 |
msgstr "有効"
|
536 |
|
537 |
+
#: custom-field-template/custom-field-template.php:2634
|
538 |
msgid "Initialize"
|
539 |
msgstr "初期化"
|
540 |
|
541 |
+
#: custom-field-template/custom-field-template.php:2635
|
542 |
msgid "Are you sure to reset current values? Default values will be loaded."
|
543 |
msgstr "現在値をリセットしてもよろしいですか?初期値が読み込まれます。"
|
544 |
|
545 |
+
#: custom-field-template/custom-field-template.php:2640
|
546 |
msgid "Save"
|
547 |
msgstr "保存"
|
548 |
|
549 |
+
#: custom-field-template/custom-field-template.php:3357
|
550 |
msgid "Search »"
|
551 |
msgstr "検索 »"
|
552 |
|
custom-field-template-sv_SE.mo
ADDED
Binary file
|
custom-field-template-sv_SE.po
ADDED
@@ -0,0 +1,213 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Custom Field Template\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2009-01-09 21:06+0900\n"
|
6 |
+
"PO-Revision-Date: 2012-02-13 11:52+0100\n"
|
7 |
+
"Last-Translator: Pontus <pontus@fristil.se>\n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Poedit-Language: Japanese\n"
|
13 |
+
"X-Poedit-Country: JAPAN\n"
|
14 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
15 |
+
"X-Poedit-KeywordsList: __;_e;_c\n"
|
16 |
+
"X-Poedit-Basepath: ../\n"
|
17 |
+
"X-Poedit-SearchPath-0: custom-field-template\n"
|
18 |
+
|
19 |
+
#: custom-field-template/custom-field-template.php:83
|
20 |
+
#: custom-field-template/custom-field-template.php:84
|
21 |
+
#: custom-field-template/custom-field-template.php:178
|
22 |
+
#: custom-field-template/custom-field-template.php:235
|
23 |
+
#: custom-field-template/custom-field-template.php:824
|
24 |
+
msgid "Custom Field Template"
|
25 |
+
msgstr "Custom Field Template"
|
26 |
+
|
27 |
+
#: custom-field-template/custom-field-template.php:95
|
28 |
+
msgid "Settings"
|
29 |
+
msgstr "Inställningar"
|
30 |
+
|
31 |
+
#: custom-field-template/custom-field-template.php:106
|
32 |
+
msgid "Default Template"
|
33 |
+
msgstr "Standardmall"
|
34 |
+
|
35 |
+
#: custom-field-template/custom-field-template.php:198
|
36 |
+
#: custom-field-template/custom-field-template.php:202
|
37 |
+
#: custom-field-template/custom-field-template.php:210
|
38 |
+
#: custom-field-template/custom-field-template.php:218
|
39 |
+
msgid "Options updated."
|
40 |
+
msgstr "Inställningarna har sparats."
|
41 |
+
|
42 |
+
#: custom-field-template/custom-field-template.php:223
|
43 |
+
msgid "Options resetted."
|
44 |
+
msgstr "Inställningarna har återställts."
|
45 |
+
|
46 |
+
#: custom-field-template/custom-field-template.php:227
|
47 |
+
msgid "Options deleted."
|
48 |
+
msgstr "Inställningarna har raderats."
|
49 |
+
|
50 |
+
#: custom-field-template/custom-field-template.php:241
|
51 |
+
msgid "Custom Field Template Options"
|
52 |
+
msgstr "Inställningar för Custom Field Template"
|
53 |
+
|
54 |
+
#: custom-field-template/custom-field-template.php:251
|
55 |
+
#, php-format
|
56 |
+
msgid "Template Title %d"
|
57 |
+
msgstr "Mallens namn %d"
|
58 |
+
|
59 |
+
#: custom-field-template/custom-field-template.php:253
|
60 |
+
#, php-format
|
61 |
+
msgid "Template Instruction %d"
|
62 |
+
msgstr "Mallens instruktioner %d"
|
63 |
+
|
64 |
+
#: custom-field-template/custom-field-template.php:255
|
65 |
+
#, php-format
|
66 |
+
msgid "Template Content %d"
|
67 |
+
msgstr "Mallens innehåll %d"
|
68 |
+
|
69 |
+
#: custom-field-template/custom-field-template.php:262
|
70 |
+
msgid "In case that you would like to insert multiple images at once in use of the custom field media buttons"
|
71 |
+
msgstr "Om du vill infoga flera bilder samtidigt när du använder mediaknapparna för specialfält"
|
72 |
+
|
73 |
+
# Deutsche Übersetzung: Franz Josef Kaiser.
|
74 |
+
#: custom-field-template/custom-field-template.php:263
|
75 |
+
msgid "Use multiple image inset"
|
76 |
+
msgstr "Aktivera stöd för att infoga flera bilder"
|
77 |
+
|
78 |
+
#: custom-field-template/custom-field-template.php:263
|
79 |
+
msgid "Caution:"
|
80 |
+
msgstr "Varning:"
|
81 |
+
|
82 |
+
#: custom-field-template/custom-field-template.php:263
|
83 |
+
msgid "You need to edit `wp-admin/includes/media.php`. Delete or comment out the code in the function media_send_to_editor."
|
84 |
+
msgstr "Du behöver ändra `wp-admin/includes/media.php` Radera eller kommentera ut koden i funktionen media_send_to_editor."
|
85 |
+
|
86 |
+
#: custom-field-template/custom-field-template.php:267
|
87 |
+
msgid "In case that you would like to replace custom keys by labels if `label` is set"
|
88 |
+
msgstr "Om du vill ersätta specialfältens nycklar med etiketter, om 'etikett' är inställd"
|
89 |
+
|
90 |
+
#: custom-field-template/custom-field-template.php:268
|
91 |
+
msgid "Use labels in place of custom keys"
|
92 |
+
msgstr "Använd etiketter istället för nycklar"
|
93 |
+
|
94 |
+
#: custom-field-template/custom-field-template.php:271
|
95 |
+
msgid "In case that you would like to add p and br tags in textareas automatically"
|
96 |
+
msgstr "Om du vill lägga till p och br-taggar i textarea-fält automatiskt"
|
97 |
+
|
98 |
+
#: custom-field-template/custom-field-template.php:272
|
99 |
+
msgid "Use wpautop function"
|
100 |
+
msgstr "Använd wpautop-funktionen"
|
101 |
+
|
102 |
+
#: custom-field-template/custom-field-template.php:276
|
103 |
+
#: custom-field-template/custom-field-template.php:295
|
104 |
+
#: custom-field-template/custom-field-template.php:322
|
105 |
+
#: custom-field-template/custom-field-template.php:350
|
106 |
+
msgid "Update Options »"
|
107 |
+
msgstr "Uppdatera inställningar »"
|
108 |
+
|
109 |
+
#: custom-field-template/custom-field-template.php:285
|
110 |
+
#: custom-field-template/custom-field-template.php:304
|
111 |
+
#: custom-field-template/custom-field-template.php:331
|
112 |
+
#: custom-field-template/custom-field-template.php:359
|
113 |
+
#: custom-field-template/custom-field-template.php:431
|
114 |
+
#: custom-field-template/custom-field-template.php:447
|
115 |
+
msgid "Click to toggle"
|
116 |
+
msgstr "Klicka för att växla"
|
117 |
+
|
118 |
+
#: custom-field-template/custom-field-template.php:286
|
119 |
+
msgid "CSS"
|
120 |
+
msgstr "CSS"
|
121 |
+
|
122 |
+
#: custom-field-template/custom-field-template.php:305
|
123 |
+
msgid "[cft] Shortcode Format"
|
124 |
+
msgstr "[cft] Shortcode Format"
|
125 |
+
|
126 |
+
#: custom-field-template/custom-field-template.php:308
|
127 |
+
msgid "[key] will be converted into the value of [key]."
|
128 |
+
msgstr "[key] kommer att omvandlas till värdet för [key]."
|
129 |
+
|
130 |
+
#: custom-field-template/custom-field-template.php:332
|
131 |
+
msgid "PHP CODE (Experimental Option)"
|
132 |
+
msgstr "PHP-kod (Experimentell)"
|
133 |
+
|
134 |
+
#: custom-field-template/custom-field-template.php:334
|
135 |
+
msgid "Are you sure to save PHP codes? Please do it at your own risk."
|
136 |
+
msgstr "Är du säker på att du vill spara PHP-kod? Det här sker på egen risk."
|
137 |
+
|
138 |
+
#: custom-field-template/custom-field-template.php:335
|
139 |
+
msgid "This option is available only for `radio` and `select` types. You must set $values as an array."
|
140 |
+
msgstr "Den här inställningen gäller endast radio- och select-fält. Du måste ställa in $values som en array."
|
141 |
+
|
142 |
+
#: custom-field-template/custom-field-template.php:360
|
143 |
+
msgid "Option List"
|
144 |
+
msgstr "Inställningslista"
|
145 |
+
|
146 |
+
#: custom-field-template/custom-field-template.php:432
|
147 |
+
msgid "Reset Options"
|
148 |
+
msgstr "Nollställ inställningar"
|
149 |
+
|
150 |
+
#: custom-field-template/custom-field-template.php:434
|
151 |
+
msgid "Are you sure to reset options? Options you set will be reset to the default settings."
|
152 |
+
msgstr "Är du säker på att du vill återställa inställningarna? Inställningar återgår till standardinställningar."
|
153 |
+
|
154 |
+
#: custom-field-template/custom-field-template.php:438
|
155 |
+
msgid "Unset Options »"
|
156 |
+
msgstr "Åsterställ inställningar »"
|
157 |
+
|
158 |
+
#: custom-field-template/custom-field-template.php:448
|
159 |
+
msgid "Delete Options"
|
160 |
+
msgstr "Radera inställningar"
|
161 |
+
|
162 |
+
#: custom-field-template/custom-field-template.php:450
|
163 |
+
msgid "Are you sure to delete options? Options you set will be deleted."
|
164 |
+
msgstr "Är du säker på att du vill radera inställningar? Inställningar som du har gjort kommer att raderas."
|
165 |
+
|
166 |
+
#: custom-field-template/custom-field-template.php:454
|
167 |
+
msgid "Delete Options »"
|
168 |
+
msgstr "Radera inställningar »"
|
169 |
+
|
170 |
+
#: custom-field-template/custom-field-template.php:597
|
171 |
+
msgid "Clear"
|
172 |
+
msgstr "Rensa"
|
173 |
+
|
174 |
+
#: custom-field-template/custom-field-template.php:712
|
175 |
+
msgid "Add Media"
|
176 |
+
msgstr "Lägg till media"
|
177 |
+
|
178 |
+
#: custom-field-template/custom-field-template.php:714
|
179 |
+
msgid "Add an Image"
|
180 |
+
msgstr "Lägg till en bild"
|
181 |
+
|
182 |
+
#: custom-field-template/custom-field-template.php:716
|
183 |
+
msgid "Add Video"
|
184 |
+
msgstr "Lägg till video"
|
185 |
+
|
186 |
+
#: custom-field-template/custom-field-template.php:718
|
187 |
+
msgid "Add Audio"
|
188 |
+
msgstr "Lägg till ljud"
|
189 |
+
|
190 |
+
#: custom-field-template/custom-field-template.php:729
|
191 |
+
msgid "Toggle"
|
192 |
+
msgstr "Växla"
|
193 |
+
|
194 |
+
#~ msgid "Recent Posts Ext"
|
195 |
+
#~ msgstr "最近の投稿 Ext"
|
196 |
+
|
197 |
+
#~ msgid "camera"
|
198 |
+
#~ msgstr "機種"
|
199 |
+
|
200 |
+
#~ msgid "aperture"
|
201 |
+
#~ msgstr "絞り値"
|
202 |
+
|
203 |
+
#~ msgid "focal_length"
|
204 |
+
#~ msgstr "焦点距離"
|
205 |
+
|
206 |
+
#~ msgid "ISO"
|
207 |
+
#~ msgstr "ISO"
|
208 |
+
|
209 |
+
#~ msgid "shutter_speed"
|
210 |
+
#~ msgstr "シャッタースピード"
|
211 |
+
|
212 |
+
#~ msgid "created_timestamp"
|
213 |
+
#~ msgstr "撮影日時"
|
custom-field-template.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Custom Field Template
|
|
4 |
Plugin URI: http://wpgogo.com/development/custom-field-template.html
|
5 |
Description: This plugin adds the default custom fields on the Write Post/Page.
|
6 |
Author: Hiroaki Miyashita
|
7 |
-
Version:
|
8 |
Author URI: http://wpgogo.com/
|
9 |
*/
|
10 |
|
@@ -38,6 +38,7 @@ class custom_field_template {
|
|
38 |
add_action( 'admin_menu', array(&$this, 'custom_field_template_admin_menu') );
|
39 |
add_action( 'admin_print_scripts', array(&$this, 'custom_field_template_admin_scripts') );
|
40 |
add_action( 'admin_head', array(&$this, 'custom_field_template_admin_head'), 100 );
|
|
|
41 |
|
42 |
//add_action( 'edit_post', array(&$this, 'edit_meta_value'), 100 );
|
43 |
add_action( 'save_post', array(&$this, 'edit_meta_value'), 100, 2 );
|
@@ -152,15 +153,45 @@ class custom_field_template {
|
|
152 |
require_once(ABSPATH . 'wp-admin/includes/screen.php');
|
153 |
endif;
|
154 |
require_once(ABSPATH . 'wp-admin/includes/template.php');
|
155 |
-
|
156 |
-
add_meta_box('cftdiv', __('Custom Field Template', 'custom-field-template'), array(&$this, 'insert_custom_field'), 'page', 'normal', 'core');
|
157 |
if ( function_exists('remove_meta_box') && !empty($options['custom_field_template_disable_default_custom_fields']) ) :
|
158 |
remove_meta_box('postcustom', 'post', 'normal');
|
159 |
remove_meta_box('postcustom', 'page', 'normal');
|
160 |
remove_meta_box('pagecustomdiv', 'page', 'normal');
|
161 |
endif;
|
162 |
-
|
163 |
-
if (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
164 |
$custom_post_type = array();
|
165 |
foreach($options['custom_fields'] as $key => $val ) :
|
166 |
if ( isset($options['custom_fields'][$key]['custom_post_type']) ) :
|
@@ -299,7 +330,7 @@ class custom_field_template {
|
|
299 |
}
|
300 |
|
301 |
$out .= '<input type="hidden" name="custom-field-template-verify-key" id="custom-field-template-verify-key" value="' . wp_create_nonce('custom-field-template') . '" />';
|
302 |
-
$out .= '<div id="cft">';
|
303 |
$out .= '</div>';
|
304 |
|
305 |
$out .= '</div>' . "\n";
|
@@ -429,6 +460,161 @@ class custom_field_template {
|
|
429 |
}
|
430 |
}
|
431 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
432 |
function add_manage_posts_custom_column($column_name, $post_id) {
|
433 |
$data = get_post_custom($post_id);
|
434 |
|
@@ -630,15 +816,16 @@ type = file';
|
|
630 |
|
631 |
function install_custom_field_template_css() {
|
632 |
$options = get_option('custom_field_template_data');
|
633 |
-
$options['css'] = '
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
|
|
642 |
';
|
643 |
update_option('custom_field_template_data', $options);
|
644 |
}
|
@@ -812,6 +999,11 @@ type = file';
|
|
812 |
$options['custom_field_template_disable_quick_edit'] = isset($_POST['custom_field_template_disable_quick_edit']) ? 1 : '';
|
813 |
$options['custom_field_template_disable_custom_field_column'] = isset($_POST['custom_field_template_disable_custom_field_column']) ? 1 : '';
|
814 |
$options['custom_field_template_replace_the_title'] = isset($_POST['custom_field_template_replace_the_title']) ? 1 : '';
|
|
|
|
|
|
|
|
|
|
|
815 |
$options['custom_field_template_widget_shortcode'] = isset($_POST['custom_field_template_widget_shortcode']) ? 1 : '';
|
816 |
$options['custom_field_template_excerpt_shortcode'] = isset($_POST['custom_field_template_excerpt_shortcode']) ? 1 : '';
|
817 |
$options['custom_field_template_use_validation'] = isset($_POST['custom_field_template_use_validation']) ? 1 : '';
|
@@ -997,67 +1189,72 @@ margin-bottom:0pt;
|
|
997 |
*/
|
998 |
?>
|
999 |
<tr><td>
|
1000 |
-
<p><label for="custom_field_template_replace_keys_by_labels"><?php _e('In case that you would like to replace custom keys by labels if `label` is set', 'custom-field-template');
|
1001 |
-
<input type="checkbox" name="custom_field_template_replace_keys_by_labels" id="custom_field_template_replace_keys_by_labels" value="1" <?php if ( !empty($options['custom_field_template_replace_keys_by_labels']) ) { echo 'checked="checked"'; } ?> /> <?php _e('Use labels in place of custom keys', 'custom-field-template'); ?></p>
|
1002 |
</td></tr>
|
1003 |
<tr><td>
|
1004 |
-
<p><label for="custom_field_template_use_wpautop"><?php _e('In case that you would like to add p and br tags in textareas automatically', 'custom-field-template');
|
1005 |
-
<input type="checkbox" name="custom_field_template_use_wpautop" id="custom_field_template_use_wpautop" value="1" <?php if ( !empty($options['custom_field_template_use_wpautop']) ) { echo 'checked="checked"'; } ?> /> <?php _e('Use wpautop function', 'custom-field-template'); ?></p>
|
1006 |
</td>
|
1007 |
</tr>
|
1008 |
<tr><td>
|
1009 |
-
<p><label for="custom_field_template_use_autosave"><?php _e('In case that you would like to save values automatically in switching templates', 'custom-field-template');
|
1010 |
-
<input type="checkbox" name="custom_field_template_use_autosave" id="custom_field_template_use_autosave" value="1" <?php if ( !empty($options['custom_field_template_use_autosave']) ) { echo 'checked="checked"'; } ?> /> <?php _e('Use the auto save in switching templates', 'custom-field-template'); ?></p>
|
1011 |
</td>
|
1012 |
</tr>
|
1013 |
<tr><td>
|
1014 |
-
<p><label for="custom_field_template_use_disable_button"><?php _e('In case that you would like to disable input fields of the custom field template temporarily', 'custom-field-template');
|
1015 |
-
<input type="checkbox" name="custom_field_template_use_disable_button" id="custom_field_template_use_disable_button" value="1" <?php if ( !empty($options['custom_field_template_use_disable_button']) ) { echo 'checked="checked"'; } ?> /> <?php _e('Use the `Disable` button. The default custom fields will be superseded.', 'custom-field-template'); ?></p>
|
1016 |
</td>
|
1017 |
</tr>
|
1018 |
<tr><td>
|
1019 |
-
<p><label for="custom_field_template_disable_initialize_button"><?php _e('In case that you would like to forbid to use the initialize button.', 'custom-field-template');
|
1020 |
-
<input type="checkbox" name="custom_field_template_disable_initialize_button" id="custom_field_template_disable_initialize_button" value="1" <?php if ( !empty($options['custom_field_template_disable_initialize_button']) ) { echo 'checked="checked"'; } ?> /> <?php _e('Disable the initialize button', 'custom-field-template'); ?></p>
|
1021 |
</td>
|
1022 |
</tr>
|
1023 |
<tr><td>
|
1024 |
-
<p><label for="custom_field_template_disable_save_button"><?php _e('In case that you would like to forbid to use the save button.', 'custom-field-template');
|
1025 |
-
<input type="checkbox" name="custom_field_template_disable_save_button" id="custom_field_template_disable_save_button" value="1" <?php if ( !empty($options['custom_field_template_disable_save_button']) ) { echo 'checked="checked"'; } ?> /> <?php _e('Disable the save button', 'custom-field-template'); ?></p>
|
1026 |
</td>
|
1027 |
</tr>
|
1028 |
<tr><td>
|
1029 |
-
<p><label for="custom_field_template_disable_default_custom_fields"><?php _e('In case that you would like to forbid to use the default custom fields.', 'custom-field-template');
|
1030 |
-
<input type="checkbox" name="custom_field_template_disable_default_custom_fields" id="custom_field_template_disable_default_custom_fields" value="1" <?php if ( !empty($options['custom_field_template_disable_default_custom_fields']) ) { echo 'checked="checked"'; } ?> /> <?php _e('Disable the default custom fields', 'custom-field-template'); ?></p>
|
1031 |
</td>
|
1032 |
</tr>
|
1033 |
<tr><td>
|
1034 |
-
<p><label for="custom_field_template_disable_quick_edit"><?php _e('In case that you would like to forbid to use the quick edit.', 'custom-field-template');
|
1035 |
-
<input type="checkbox" name="custom_field_template_disable_quick_edit" id="custom_field_template_disable_quick_edit" value="1" <?php if ( !empty($options['custom_field_template_disable_quick_edit']) ) { echo 'checked="checked"'; } ?> /> <?php _e('Disable the quick edit', 'custom-field-template'); ?></p>
|
1036 |
</td>
|
1037 |
</tr>
|
1038 |
<tr><td>
|
1039 |
-
<p><label for="custom_field_template_disable_custom_field_column"><?php _e('In case that you would like to forbid to display the custom field column on the edit post list page.', 'custom-field-template');
|
1040 |
-
<input type="checkbox" name="custom_field_template_disable_custom_field_column" id="custom_field_template_disable_custom_field_column" value="1" <?php if ( !empty($options['custom_field_template_disable_custom_field_column']) ) { echo 'checked="checked"'; } ?> /> <?php _e('Disable the custom field column (The quick edit also does not work.)', 'custom-field-template'); ?></p>
|
1041 |
</td>
|
1042 |
</tr>
|
1043 |
<tr><td>
|
1044 |
-
<p><label for="custom_field_template_replace_the_title"><?php _e('In case that you would like to replace the box title with the template title.', 'custom-field-template');
|
1045 |
-
<input type="checkbox" name="custom_field_template_replace_the_title" id="custom_field_template_replace_the_title" value="1" <?php if ( !empty($options['custom_field_template_replace_the_title']) ) { echo 'checked="checked"'; } ?> /> <?php _e('Replace the box title', 'custom-field-template'); ?></p>
|
1046 |
</td>
|
1047 |
</tr>
|
1048 |
<tr><td>
|
1049 |
-
<p><label for="
|
1050 |
-
<input type="checkbox" name="
|
1051 |
</td>
|
1052 |
</tr>
|
1053 |
<tr><td>
|
1054 |
-
<p><label for="
|
1055 |
-
<input type="checkbox" name="
|
1056 |
</td>
|
1057 |
</tr>
|
1058 |
<tr><td>
|
1059 |
-
<p><label for="
|
1060 |
-
<input type="checkbox" name="
|
|
|
|
|
|
|
|
|
|
|
1061 |
</td>
|
1062 |
</tr>
|
1063 |
<tr><td>
|
@@ -1078,8 +1275,8 @@ margin-bottom:0pt;
|
|
1078 |
</td>
|
1079 |
</tr>
|
1080 |
<tr><td>
|
1081 |
-
<p><label for="custom_field_template_disable_ad"><?php _e('In case that you would like to hide the advertisement right column.', 'custom-field-template');
|
1082 |
-
<input type="checkbox" name="custom_field_template_disable_ad" id="custom_field_template_disable_ad" value="1" <?php if ( !empty($options['custom_field_template_disable_ad']) ) { echo 'checked="checked"'; } ?> /> <?php _e('I want to use a wider screen.', 'custom-field-template'); ?></p>
|
1083 |
</td>
|
1084 |
</tr>
|
1085 |
<tr><td>
|
@@ -2090,7 +2287,7 @@ jQuery(this).addClass("closed");
|
|
2090 |
|
2091 |
if ( $mediaPicker == true ) :
|
2092 |
$picker = __(' OR ', 'custom-field-template');
|
2093 |
-
$picker .= '<a href="'.$image_upload_iframe_src.'&post_id='.$_REQUEST[ 'post' ].'&TB_iframe=1&tab='.$tab.'"
|
2094 |
endif;
|
2095 |
|
2096 |
$out .=
|
@@ -2100,7 +2297,7 @@ jQuery(this).addClass("closed");
|
|
2100 |
|
2101 |
if ( !empty($label) && !$options['custom_field_template_replace_keys_by_labels'] )
|
2102 |
$out .= '<p class="label">' . stripcslashes($label) . '</p>';
|
2103 |
-
$out .= trim($before).'<input id="' . $name . $sid . '_' . $cftnum . '" name="' . $name . '['.$sid.'][]" type="file" size="' . $size . '"' . $class . $style . ' onchange="if (jQuery(this).val()) { jQuery(\'#cft_save_button\').attr(\'disabled\', true); jQuery(\'#post-preview\').hide(); } else { jQuery(\'#cft_save_button\').attr(\'disabled\', false); jQuery(\'#post-preview\').show(); }" />'.trim($after).$picker;
|
2104 |
|
2105 |
if ( isset($value) && ( $value = intval($value) ) && $thumb_url = wp_get_attachment_image_src( $value, 'thumbnail', true ) ) :
|
2106 |
$thumb_url = $thumb_url[0];
|
@@ -2244,11 +2441,11 @@ jQuery(this).addClass("closed");
|
|
2244 |
|
2245 |
if ( !empty($options['custom_fields'][$id]['instruction']) ) :
|
2246 |
$instruction = $this->EvalBuffer(stripcslashes($options['custom_fields'][$id]['instruction']));
|
2247 |
-
$out .= '<div id="cft_instruction">' . $instruction . '</div>';
|
2248 |
endif;
|
2249 |
|
2250 |
$out .= '<div id="cft_'.$id.'">';
|
2251 |
-
$out .= '<input type="hidden" name="custom-field-template-id" id="custom-field-template-id" value="' . $id . '" />';
|
2252 |
foreach( $fields as $field_key => $field_val ) :
|
2253 |
foreach( $field_val as $title => $data ) {
|
2254 |
$class = $style = $addfield = '';
|
@@ -2331,12 +2528,11 @@ jQuery(this).addClass("closed");
|
|
2331 |
$out .= '// ]]>' . "\n" .
|
2332 |
'</script>';
|
2333 |
$out .= '</div>';
|
2334 |
-
$out .= '<br style="clear:both; font-size:1px;" />';
|
2335 |
|
2336 |
return array($out, $id);
|
2337 |
}
|
2338 |
|
2339 |
-
function insert_custom_field() {
|
2340 |
global $wp_version, $post, $wpdb;
|
2341 |
$options = $this->get_custom_field_template_data();
|
2342 |
$out = '';
|
@@ -2360,146 +2556,31 @@ jQuery(this).addClass("closed");
|
|
2360 |
<div class="dbx-content">';
|
2361 |
}
|
2362 |
|
2363 |
-
|
2364 |
-
|
2365 |
-
|
2366 |
-
|
2367 |
-
|
2368 |
-
var sel, startPos, endPos, scrollTop;
|
2369 |
-
|
2370 |
-
//IE support
|
2371 |
-
if (document.selection) {
|
2372 |
-
myField.focus();
|
2373 |
-
sel = document.selection.createRange();
|
2374 |
-
sel.text = myValue;
|
2375 |
-
myField.focus();
|
2376 |
-
}
|
2377 |
-
//MOZILLA/NETSCAPE support
|
2378 |
-
else if (myField.selectionStart || myField.selectionStart == "0") {
|
2379 |
-
startPos = myField.selectionStart;
|
2380 |
-
endPos = myField.selectionEnd;
|
2381 |
-
scrollTop = myField.scrollTop;
|
2382 |
-
myField.value = myField.value.substring(0, startPos)
|
2383 |
-
+ myValue
|
2384 |
-
+ myField.value.substring(endPos, myField.value.length);
|
2385 |
-
myField.focus();
|
2386 |
-
myField.selectionStart = startPos + myValue.length;
|
2387 |
-
myField.selectionEnd = startPos + myValue.length;
|
2388 |
-
myField.scrollTop = scrollTop;
|
2389 |
-
} else {
|
2390 |
-
myField.value += myValue;
|
2391 |
-
myField.focus();
|
2392 |
-
}
|
2393 |
-
}';
|
2394 |
-
|
2395 |
-
$out .= 'function send_to_custom_field(h) {' . "\n" .
|
2396 |
-
' if ( tmpFocus ) ed = tmpFocus;' . "\n" .
|
2397 |
-
' else if ( typeof tinyMCE == "undefined" ) ed = document.getElementById("content");' . "\n" .
|
2398 |
-
' else { ed = tinyMCE.get("content"); if(ed) {if(!ed.isHidden()) isTinyMCE = true;}}' . "\n" .
|
2399 |
-
' if ( typeof tinyMCE != "undefined" && isTinyMCE && !ed.isHidden() ) {' . "\n" .
|
2400 |
-
' ed.focus();' . "\n" .
|
2401 |
-
' if ( tinymce.isIE && ed.windowManager.insertimagebookmark )' . "\n" .
|
2402 |
-
' ed.selection.moveToBookmark(ed.windowManager.insertimagebookmark);' . "\n" .
|
2403 |
-
' if ( h.indexOf("[caption") === 0 ) {' . "\n" .
|
2404 |
-
' if ( ed.plugins.wpeditimage )' . "\n" .
|
2405 |
-
' h = ed.plugins.wpeditimage._do_shcode(h);' . "\n" .
|
2406 |
-
' } else if ( h.indexOf("[gallery") === 0 ) {' . "\n" .
|
2407 |
-
' if ( ed.plugins.wpgallery )' . "\n" .
|
2408 |
-
' h = ed.plugins.wpgallery._do_gallery(h);' . "\n" .
|
2409 |
-
' } else if ( h.indexOf("[embed") === 0 ) {' . "\n" .
|
2410 |
-
' if ( ed.plugins.wordpress )' . "\n" .
|
2411 |
-
' h = ed.plugins.wordpress._setEmbed(h);' . "\n" .
|
2412 |
-
' }' . "\n" .
|
2413 |
-
' ed.execCommand("mceInsertContent", false, h);' . "\n" .
|
2414 |
-
' } else {' . "\n" .
|
2415 |
-
' if ( tmpFocus ) _edInsertContent(tmpFocus, h);' . "\n" .
|
2416 |
-
' else edInsertContent(edCanvas, h);' . "\n" .
|
2417 |
-
' }' . "\n";
|
2418 |
-
|
2419 |
-
if ( empty($options['custom_field_template_use_multiple_insert']) ) {
|
2420 |
-
$out .= ' tb_remove();' . "\n" .
|
2421 |
-
' tmpFocus = undefined;' . "\n" .
|
2422 |
-
' isTinyMCE = false;' . "\n";
|
2423 |
-
}
|
2424 |
-
|
2425 |
-
if ( substr($wp_version, 0, 3) < '3.3' ) :
|
2426 |
-
$qt_position = 'prev()';
|
2427 |
-
else :
|
2428 |
-
$qt_position = 'children(\':first\')';
|
2429 |
-
endif;
|
2430 |
-
|
2431 |
-
if ( substr($wp_version, 0, 3) < '3.3' ) :
|
2432 |
-
$load_tinyMCE = 'tinyMCE.execCommand(' . "'mceAddControl'" . ',false, id);';
|
2433 |
else :
|
2434 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2435 |
endif;
|
2436 |
|
2437 |
-
$out .=
|
2438 |
-
|
2439 |
-
' tmpFocus = undefined;' . "\n" .
|
2440 |
-
' isTinyMCE = false;' . "\n" .
|
2441 |
-
'});' . "\n" .
|
2442 |
-
'var isTinyMCE;' . "\n" .
|
2443 |
-
'var tmpFocus;' . "\n" .
|
2444 |
-
'function focusTextArea(id) {' . "\n" .
|
2445 |
-
' jQuery(document).ready(function() {' . "\n" .
|
2446 |
-
' if ( typeof tinyMCE != "undefined" ) {' . "\n" .
|
2447 |
-
' var elm = tinyMCE.get(id);' . "\n" .
|
2448 |
-
' }' . "\n" .
|
2449 |
-
' if ( ! elm || elm.isHidden() ) {' . "\n" .
|
2450 |
-
' elm = document.getElementById(id);' . "\n" .
|
2451 |
-
' isTinyMCE = false;' . "\n" .
|
2452 |
-
' }else isTinyMCE = true;' . "\n" .
|
2453 |
-
' tmpFocus = elm' . "\n" .
|
2454 |
-
' elm.focus();' . "\n" .
|
2455 |
-
' if (elm.createTextRange) {' . "\n" .
|
2456 |
-
' var range = elm.createTextRange();' . "\n" .
|
2457 |
-
' range.move("character", elm.value.length);' . "\n" .
|
2458 |
-
' range.select();' . "\n" .
|
2459 |
-
' } else if (elm.setSelectionRange) {' . "\n" .
|
2460 |
-
' elm.setSelectionRange(elm.value.length, elm.value.length);' . "\n" .
|
2461 |
-
' }' . "\n" .
|
2462 |
-
' });' . "\n" .
|
2463 |
-
'}' . "\n" .
|
2464 |
-
'function switchMode(id) {' . "\n" .
|
2465 |
-
' var ed = tinyMCE.get(id);' . "\n" .
|
2466 |
-
' if ( ! ed || ed.isHidden() ) {' . "\n" .
|
2467 |
-
' document.getElementById(id).value = switchEditors.wpautop(document.getElementById(id).value);' . "\n" .
|
2468 |
-
' if ( ed ) { jQuery(\'#editorcontainer_\'+id).'.$qt_position.'.hide(); ed.show(); }' . "\n" .
|
2469 |
-
' else {'.$load_tinyMCE.'}' . "\n" .
|
2470 |
-
' } else {' . "\n" .
|
2471 |
-
' ed.hide(); jQuery(\'#editorcontainer_\'+id).'.$qt_position.'.show(); document.getElementById(id).style.color="#000000";' . "\n" .
|
2472 |
-
' }' . "\n" .
|
2473 |
-
'}' . "\n";
|
2474 |
-
|
2475 |
-
$out .= 'function thickbox(link) {' . "\n" .
|
2476 |
-
' var t = link.title || link.name || null;' . "\n" .
|
2477 |
-
' var a = link.href || link.alt;' . "\n" .
|
2478 |
-
' var g = link.rel || false;' . "\n" .
|
2479 |
-
' tb_show(t,a,g);' . "\n" .
|
2480 |
-
' link.blur();' . "\n" .
|
2481 |
-
' return false;' . "\n" .
|
2482 |
-
'}' . "\n";
|
2483 |
-
|
2484 |
-
$out .= 'function cft_use_this(file_id) {
|
2485 |
-
var win = window.dialogArguments || opener || parent || top;
|
2486 |
-
win.jQuery("#"+win.jQuery("#cft_clicked_id").val()+"_hide").val(file_id);
|
2487 |
-
var fields = win.jQuery("#cft :input").fieldSerialize();
|
2488 |
-
win.jQuery.ajax({type: "POST", url: "?page=custom-field-template/custom-field-template.php&cft_mode=ajaxsave&post="+win.jQuery(\'#post_ID\').val()+"&custom-field-template-verify-key="+win.jQuery("#custom-field-template-verify-key").val(), data: fields, success: function() {win.jQuery.ajax({type: "GET", url: "?page=custom-field-template/custom-field-template.php&cft_mode=ajaxload&id="+win.jQuery("#custom-field-template-id").val()+"&post="+win.jQuery(\'#post_ID\').val(), success: function(html) {win.jQuery("#cft").html(html);win.tb_remove();}});}});
|
2489 |
-
}';
|
2490 |
-
if ( isset($_REQUEST['post']) ) $request_post = $_REQUEST['post'];
|
2491 |
-
else $request_post = '';
|
2492 |
-
if( isset($options['posts'][$request_post]) && count($options['custom_fields'])>$options['posts'][$request_post] ) :
|
2493 |
-
$init_id = $options['posts'][$request_post];
|
2494 |
-
else :
|
2495 |
-
$filtered_cfts = $this->custom_field_template_filter();
|
2496 |
-
if ( count($filtered_cfts)>0 ) :
|
2497 |
-
$init_id = $filtered_cfts[0]['id'];
|
2498 |
-
else :
|
2499 |
-
$init_id = 0;
|
2500 |
-
endif;
|
2501 |
-
endif;
|
2502 |
-
|
2503 |
$out .= 'jQuery(document).ready(function() {' . "\n";
|
2504 |
|
2505 |
$fields = $this->get_custom_fields( $init_id );
|
@@ -2521,7 +2602,7 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2521 |
endif;
|
2522 |
endif;
|
2523 |
|
2524 |
-
if ( !empty($options['custom_fields']) ) :
|
2525 |
if ( substr($wp_version, 0, 3) < '3.0' ) $taxonomy = 'categories';
|
2526 |
else $taxonomy = 'category';
|
2527 |
|
@@ -2544,16 +2625,16 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2544 |
if ( $taxonomy == 'category' ) $taxonomy = $category_taxonomy[$cat_id];
|
2545 |
$out .= 'jQuery(\'#in-'.$category_taxonomy[$cat_id].'-' . $cat_id . '\').click(function(){if(jQuery(\'#in-'.$category_taxonomy[$cat_id].'-' . $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(\'#'.$taxonomy.'-all :input\').fieldSerialize(), function(html) { jQuery(\'#cft_selectbox\').html(html);';
|
2546 |
if ( !empty($options['custom_field_template_use_autosave']) ) :
|
2547 |
-
$out .= ' var fields = jQuery(\'#cft :input\').fieldSerialize();';
|
2548 |
$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) {';
|
2549 |
if ( !empty($options['custom_field_template_replace_the_title']) ) :
|
2550 |
-
$out .= 'jQuery(\'#cftdiv h3 span\').text(\'' . $options['custom_fields'][$key]['title'] . '\');';
|
2551 |
endif;
|
2552 |
$out .= 'jQuery(\'#cft\').html(html);}});}});';
|
2553 |
else :
|
2554 |
$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()+\'&\'+jQuery(\'#'.$taxonomy.'-all :input\').fieldSerialize(), success: function(html) {';
|
2555 |
if ( !empty($options['custom_field_template_replace_the_title']) ) :
|
2556 |
-
$out .= 'jQuery(\'#cftdiv h3 span\').text(\'' . $options['custom_fields'][$key]['title'] . '\');';
|
2557 |
endif;
|
2558 |
$out .= 'jQuery(\'#cft\').html(html);}});';
|
2559 |
endif;
|
@@ -2561,7 +2642,7 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2561 |
|
2562 |
$out .= ' }else{ jQuery(\'#cft\').html(\'\');jQuery.get(\'?page=custom-field-template/custom-field-template.php&cft_mode=selectbox&post=\'+jQuery(\'#post_ID\').val()+\'&\'+jQuery(\'#'.$taxonomy.'-all :input\').fieldSerialize(), 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()+\'&\'+jQuery(\'#'.$taxonomy.'-all :input\').fieldSerialize(), success: function(html) { jQuery(\'#cft\').html(html);}}); });';
|
2563 |
if ( !empty($options['custom_field_template_replace_the_title']) ) :
|
2564 |
-
$out .= 'jQuery(\'#cftdiv h3 span\').text(\'' . __('Custom Field Template', 'custom-field-template') . '\');';
|
2565 |
endif;
|
2566 |
$out .= '}});' . "\n";
|
2567 |
endif;
|
@@ -2570,44 +2651,34 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2570 |
endforeach;
|
2571 |
endif;
|
2572 |
|
2573 |
-
if ( 0 != count( get_page_templates() ) ):
|
2574 |
if ( empty($_REQUEST['post_type']) ) $_REQUEST['post_type'] = 'post';
|
2575 |
$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(\'?post_type='.$_REQUEST['post_type'].'&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: \'?post_type='.$_REQUEST['post_type'].'&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);';
|
2576 |
if ( !empty($options['custom_field_template_replace_the_title']) ) :
|
2577 |
-
$out .= 'if(html) { jQuery(\'#cftdiv h3 span\').text(jQuery(\'#custom_field_template_select :selected\').text());}';
|
2578 |
endif;
|
2579 |
$out .= '}});});';
|
2580 |
$out .= '});' . "\n";
|
2581 |
endif;
|
2582 |
|
2583 |
-
$out .= ' jQuery(\'#cftloading_img\').ajaxStart(function() { jQuery(this).show();});';
|
2584 |
-
$out .= ' jQuery(\'#cftloading_img\').ajaxStop(function() { jQuery(this).hide();});';
|
2585 |
$out .= '});' . "\n";
|
2586 |
|
2587 |
-
|
2588 |
$out .= 'var tinyMCEID = new Array();' . "\n" .
|
2589 |
'// ]]>' . "\n" .
|
2590 |
'</script>';
|
2591 |
-
$out .= '<style type="text/css">' . "\n" .
|
2592 |
-
'<!--' . "\n";
|
2593 |
-
$out .= $options['css'] . "\n";
|
2594 |
-
$out .= '.editorcontainer { overflow:hidden; background:#FFFFFF; }
|
2595 |
-
.content { width:98%; }
|
2596 |
-
.editorcontainer .content { padding: 6px; line-height: 150%; border: 0 none; outline: none; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; -khtml-box-sizing: border-box; box-sizing: border-box; }
|
2597 |
-
.quicktags { border:1px solid #DFDFDF; border-collapse: separate; -moz-border-radius: 6px 6px 0 0; -webkit-border-top-right-radius: 6px; -webkit-border-top-left-radius: 6px; -khtml-border-top-right-radius: 6px; -khtml-border-top-left-radius: 6px; border-top-right-radius: 6px; border-top-left-radius: 6px; }
|
2598 |
-
.quicktags { padding: 0; margin-bottom: -1px; border-bottom-width:1px; background-image: url("images/ed-bg.gif"); background-position: left top; background-repeat: repeat; }
|
2599 |
-
.quicktags div div { padding: 2px 4px 0; }
|
2600 |
-
.quicktags div div input { margin: 3px 1px 4px; line-height: 18px; display: inline-block; border-width: 1px; border-style: solid; min-width: 26px; padding: 2px 4px; font-size: 12px; -moz-border-radius: 3px; -khtml-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; background:#FFFFFF url(images/fade-butt.png) repeat-x scroll 0 -2px; overflow: visible; }' . "\n";
|
2601 |
-
$out .= '-->' . "\n" .
|
2602 |
-
'</style>';
|
2603 |
list($body, $init_id) = $this->load_custom_field($init_id);
|
2604 |
|
2605 |
-
|
2606 |
-
|
2607 |
-
|
2608 |
-
|
2609 |
-
|
2610 |
-
|
|
|
|
|
|
|
2611 |
$out .= $body;
|
2612 |
$out .= '</div>';
|
2613 |
|
@@ -2618,35 +2689,34 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2618 |
endif;
|
2619 |
|
2620 |
$out .= '<div style="position:absolute; top:'.$top_margin.'px; right:5px;">';
|
2621 |
-
$out .= '<img class="waiting" style="display:none; vertical-align:middle;" src="images/loading.gif" alt="" id="cftloading_img" /> ';
|
2622 |
if ( !empty($options['custom_field_template_use_disable_button']) ) :
|
2623 |
$out .= '<input type="hidden" id="disable_value" value="0" />';
|
2624 |
$out .= '<input type="button" value="' . __('Disable', 'custom-field-template') . '" onclick="';
|
2625 |
-
$out .= 'if(jQuery(\'#disable_value\').val()==0) { jQuery(\'#disable_value\').val(1);jQuery(this).val(\''.__('Enable', 'custom-field-template').'\');jQuery(\'#cft input, #cft select, #cft textarea\').attr(\'disabled\',true);}else{ jQuery(\'#disable_value\').val(0);jQuery(this).val(\''.__('Disable', 'custom-field-template').'\');jQuery(\'#cft input, #
|
2626 |
$out .= '" class="button" style="vertical-align:middle;" />';
|
2627 |
endif;
|
2628 |
if ( empty($options['custom_field_template_disable_initialize_button']) ) :
|
2629 |
$out .= '<input type="button" value="' . __('Initialize', 'custom-field-template') . '" onclick="';
|
2630 |
-
$out .= 'if(confirm(\''.__('Are you sure to reset current values? Default values will be loaded.', 'custom-field-template').'\')){if(tinyMCEID.length) { for(i=0;i<tinyMCEID.length;i++) {tinyMCE.execCommand(\'mceRemoveControl\', false, tinyMCEID[i]);} tinyMCEID.length=0;};jQuery.ajax({type: \'GET\', url: \'?page=custom-field-template/custom-field-template.php&cft_mode=ajaxload&default=true&id
|
2631 |
-
$out .= 'jQuery(\'#cft\').html(html);}});}';
|
2632 |
$out .= '" class="button" style="vertical-align:middle;" />';
|
2633 |
endif;
|
2634 |
if ( empty($options['custom_field_template_disable_save_button']) ) :
|
2635 |
-
$out .= '<input type="button" id="cft_save_button" value="' . __('Save', 'custom-field-template') . '" onclick="';
|
2636 |
if ( !empty($options['custom_field_template_use_validation']) ) :
|
2637 |
$out .= 'if(!jQuery(\'#post\').valid()) return false;';
|
2638 |
endif;
|
2639 |
-
$out .= 'var fields = jQuery(\'#cft :input\').fieldSerialize();';
|
2640 |
$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(), data: fields, success: function() {jQuery(\'.delete_file_checkbox:checked\').each(function() {jQuery(this).parent().parent().remove();});}});';
|
2641 |
$out .= '" class="button" style="vertical-align:middle;" />';
|
2642 |
endif;
|
2643 |
-
$out .= '<input type="hidden" id="cft_clicked_id" value="" />';
|
2644 |
$out .= '</div>';
|
2645 |
|
2646 |
if ( substr($wp_version, 0, 3) < '2.5' ) {
|
2647 |
$out .= '</div></fieldset></div>';
|
2648 |
} else {
|
2649 |
-
if ( $body && !empty($options['custom_field_template_replace_the_title']) ) :
|
2650 |
$out .= '<script type="text/javascript">' . "\n" . '// <![CDATA[' . "\n";
|
2651 |
$out .= 'jQuery(document).ready(function() {jQuery(\'#cftdiv h3 span\').text(\'' . $options['custom_fields'][$init_id]['title'] . '\');});' . "\n";
|
2652 |
$out .= '// ]]>' . "\n" . '</script>';
|
@@ -2820,10 +2890,12 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2820 |
if ($post->post_type == 'revision')
|
2821 |
return;
|
2822 |
|
2823 |
-
$
|
|
|
|
|
2824 |
|
2825 |
if ( $fields == null )
|
2826 |
-
|
2827 |
|
2828 |
if ( substr($wp_version, 0, 3) >= '2.8' ) {
|
2829 |
if ( !class_exists('SimpleTags') && !empty($_POST['tax_input']['post_tag']) ) {
|
@@ -3007,8 +3079,12 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
3007 |
wp_set_post_tags( $id, $tags_value );
|
3008 |
endforeach;
|
3009 |
endif;
|
|
|
|
|
|
|
|
|
|
|
3010 |
|
3011 |
-
$options['posts'][$id] = $_REQUEST['custom-field-template-id'];
|
3012 |
update_option('custom_field_template_data', $options);
|
3013 |
wp_cache_flush();
|
3014 |
}
|
@@ -3282,7 +3358,7 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
3282 |
$replace_val = $value;
|
3283 |
if ( $val['singleList'] == true ) :
|
3284 |
if ( $before_list ) : $replace_val = $before_list . "\n"; endif;
|
3285 |
-
$replace_val .= $before_value . $
|
3286 |
if ( $after_list ) : $replace_val .= $after_list . "\n"; endif;
|
3287 |
endif;
|
3288 |
else :
|
4 |
Plugin URI: http://wpgogo.com/development/custom-field-template.html
|
5 |
Description: This plugin adds the default custom fields on the Write Post/Page.
|
6 |
Author: Hiroaki Miyashita
|
7 |
+
Version: 2.0
|
8 |
Author URI: http://wpgogo.com/
|
9 |
*/
|
10 |
|
38 |
add_action( 'admin_menu', array(&$this, 'custom_field_template_admin_menu') );
|
39 |
add_action( 'admin_print_scripts', array(&$this, 'custom_field_template_admin_scripts') );
|
40 |
add_action( 'admin_head', array(&$this, 'custom_field_template_admin_head'), 100 );
|
41 |
+
add_action( 'dbx_post_sidebar', array(&$this, 'custom_field_template_dbx_post_sidebar') );
|
42 |
|
43 |
//add_action( 'edit_post', array(&$this, 'edit_meta_value'), 100 );
|
44 |
add_action( 'save_post', array(&$this, 'edit_meta_value'), 100, 2 );
|
153 |
require_once(ABSPATH . 'wp-admin/includes/screen.php');
|
154 |
endif;
|
155 |
require_once(ABSPATH . 'wp-admin/includes/template.php');
|
156 |
+
|
|
|
157 |
if ( function_exists('remove_meta_box') && !empty($options['custom_field_template_disable_default_custom_fields']) ) :
|
158 |
remove_meta_box('postcustom', 'post', 'normal');
|
159 |
remove_meta_box('postcustom', 'page', 'normal');
|
160 |
remove_meta_box('pagecustomdiv', 'page', 'normal');
|
161 |
endif;
|
162 |
+
|
163 |
+
if ( !empty($options['custom_field_template_deploy_box']) ) :
|
164 |
+
if ( !empty($options['custom_fields']) ) :
|
165 |
+
$i = 0;
|
166 |
+
foreach ( $options['custom_fields'] as $key => $val ) :
|
167 |
+
if ( empty($options['custom_field_template_replace_the_title']) ) $title = __('Custom Field Template', 'custom-field-template');
|
168 |
+
else $title = $options['custom_fields'][$key]['title'];
|
169 |
+
if ( empty($options['custom_fields'][$key]['custom_post_type']) ) :
|
170 |
+
if ( empty($options['custom_fields'][$key]['post_type']) ) :
|
171 |
+
add_meta_box('cftdiv'.$i, $title, array(&$this, 'insert_custom_field'), 'post', 'normal', 'core', $key);
|
172 |
+
add_meta_box('cftdiv'.$i, $title, array(&$this, 'insert_custom_field'), 'page', 'normal', 'core', $key);
|
173 |
+
elseif ( $options['custom_fields'][$key]['post_type']=='post' ) :
|
174 |
+
add_meta_box('cftdiv'.$i, $title, array(&$this, 'insert_custom_field'), 'post', 'normal', 'core', $key);
|
175 |
+
elseif ( $options['custom_fields'][$key]['post_type']=='page' ) :
|
176 |
+
add_meta_box('cftdiv'.$i, $title, array(&$this, 'insert_custom_field'), 'page', 'normal', 'core', $key);
|
177 |
+
endif;
|
178 |
+
else :
|
179 |
+
$tmp_custom_post_type = explode(',', $options['custom_fields'][$key]['custom_post_type']);
|
180 |
+
$tmp_custom_post_type = array_filter( $tmp_custom_post_type );
|
181 |
+
$tmp_custom_post_type = array_unique(array_filter(array_map('trim', $tmp_custom_post_type)));
|
182 |
+
foreach ( $tmp_custom_post_type as $type ) :
|
183 |
+
add_meta_box('cftdiv'.$i, $title, array(&$this, 'insert_custom_field'), $type, 'normal', 'core', $key);
|
184 |
+
endforeach;
|
185 |
+
endif;
|
186 |
+
$i++;
|
187 |
+
endforeach;
|
188 |
+
endif;
|
189 |
+
else :
|
190 |
+
add_meta_box('cftdiv', __('Custom Field Template', 'custom-field-template'), array(&$this, 'insert_custom_field'), 'post', 'normal', 'core');
|
191 |
+
add_meta_box('cftdiv', __('Custom Field Template', 'custom-field-template'), array(&$this, 'insert_custom_field'), 'page', 'normal', 'core');
|
192 |
+
endif;
|
193 |
+
|
194 |
+
if ( empty($options['custom_field_template_deploy_box']) && is_array($options['custom_fields']) ) :
|
195 |
$custom_post_type = array();
|
196 |
foreach($options['custom_fields'] as $key => $val ) :
|
197 |
if ( isset($options['custom_fields'][$key]['custom_post_type']) ) :
|
330 |
}
|
331 |
|
332 |
$out .= '<input type="hidden" name="custom-field-template-verify-key" id="custom-field-template-verify-key" value="' . wp_create_nonce('custom-field-template') . '" />';
|
333 |
+
$out .= '<div id="cft" class="cft">';
|
334 |
$out .= '</div>';
|
335 |
|
336 |
$out .= '</div>' . "\n";
|
460 |
}
|
461 |
}
|
462 |
|
463 |
+
function custom_field_template_dbx_post_sidebar() {
|
464 |
+
$options = $this->get_custom_field_template_data();
|
465 |
+
|
466 |
+
if ( !empty($options['custom_field_template_deploy_box']) ) :
|
467 |
+
$siffix = '"+win.jQuery("#cft_current_template").val()+"';
|
468 |
+
endif;
|
469 |
+
|
470 |
+
$out = '';
|
471 |
+
$out .= '<script type="text/javascript">' . "\n" .
|
472 |
+
'// <![CDATA[' . "\n";
|
473 |
+
$out .= 'function cft_use_this(file_id) {
|
474 |
+
var win = window.dialogArguments || opener || parent || top;
|
475 |
+
win.jQuery("#"+win.jQuery("#cft_clicked_id").val()+"_hide").val(file_id);
|
476 |
+
var fields = win.jQuery("#cft'.$suffix.' :input").fieldSerialize();
|
477 |
+
win.jQuery.ajax({type: "POST", url: "?page=custom-field-template/custom-field-template.php&cft_mode=ajaxsave&post="+win.jQuery(\'#post_ID\').val()+"&custom-field-template-verify-key="+win.jQuery("#custom-field-template-verify-key").val(), data: fields, success: function() {win.jQuery.ajax({type: "GET", url: "?page=custom-field-template/custom-field-template.php&cft_mode=ajaxload&id="+win.jQuery("#cft_current_template").val()+"&post="+win.jQuery(\'#post_ID\').val(), success: function(html) {win.jQuery("#cft'.$suffix.'").html(html);win.tb_remove();}});}});
|
478 |
+
}';
|
479 |
+
|
480 |
+
$out .= 'function qt_set(new_id) { eval("qt_"+new_id+" = new QTags(\'qt_"+new_id+"\', \'"+new_id+"\', \'editorcontainer_"+new_id+"\', \'more\');");}';
|
481 |
+
|
482 |
+
$out .= 'function _edInsertContent(myField, myValue) {
|
483 |
+
var sel, startPos, endPos, scrollTop;
|
484 |
+
|
485 |
+
//IE support
|
486 |
+
if (document.selection) {
|
487 |
+
myField.focus();
|
488 |
+
sel = document.selection.createRange();
|
489 |
+
sel.text = myValue;
|
490 |
+
myField.focus();
|
491 |
+
}
|
492 |
+
//MOZILLA/NETSCAPE support
|
493 |
+
else if (myField.selectionStart || myField.selectionStart == "0") {
|
494 |
+
startPos = myField.selectionStart;
|
495 |
+
endPos = myField.selectionEnd;
|
496 |
+
scrollTop = myField.scrollTop;
|
497 |
+
myField.value = myField.value.substring(0, startPos)
|
498 |
+
+ myValue
|
499 |
+
+ myField.value.substring(endPos, myField.value.length);
|
500 |
+
myField.focus();
|
501 |
+
myField.selectionStart = startPos + myValue.length;
|
502 |
+
myField.selectionEnd = startPos + myValue.length;
|
503 |
+
myField.scrollTop = scrollTop;
|
504 |
+
} else {
|
505 |
+
myField.value += myValue;
|
506 |
+
myField.focus();
|
507 |
+
}
|
508 |
+
}';
|
509 |
+
|
510 |
+
$out .= 'function send_to_custom_field(h) {' . "\n" .
|
511 |
+
' if ( tmpFocus ) ed = tmpFocus;' . "\n" .
|
512 |
+
' else if ( typeof tinyMCE == "undefined" ) ed = document.getElementById("content");' . "\n" .
|
513 |
+
' else { ed = tinyMCE.get("content"); if(ed) {if(!ed.isHidden()) isTinyMCE = true;}}' . "\n" .
|
514 |
+
' if ( typeof tinyMCE != "undefined" && isTinyMCE && !ed.isHidden() ) {' . "\n" .
|
515 |
+
' ed.focus();' . "\n" .
|
516 |
+
' if ( tinymce.isIE && ed.windowManager.insertimagebookmark )' . "\n" .
|
517 |
+
' ed.selection.moveToBookmark(ed.windowManager.insertimagebookmark);' . "\n" .
|
518 |
+
' if ( h.indexOf("[caption") === 0 ) {' . "\n" .
|
519 |
+
' if ( ed.plugins.wpeditimage )' . "\n" .
|
520 |
+
' h = ed.plugins.wpeditimage._do_shcode(h);' . "\n" .
|
521 |
+
' } else if ( h.indexOf("[gallery") === 0 ) {' . "\n" .
|
522 |
+
' if ( ed.plugins.wpgallery )' . "\n" .
|
523 |
+
' h = ed.plugins.wpgallery._do_gallery(h);' . "\n" .
|
524 |
+
' } else if ( h.indexOf("[embed") === 0 ) {' . "\n" .
|
525 |
+
' if ( ed.plugins.wordpress )' . "\n" .
|
526 |
+
' h = ed.plugins.wordpress._setEmbed(h);' . "\n" .
|
527 |
+
' }' . "\n" .
|
528 |
+
' ed.execCommand("mceInsertContent", false, h);' . "\n" .
|
529 |
+
' } else {' . "\n" .
|
530 |
+
' if ( tmpFocus ) _edInsertContent(tmpFocus, h);' . "\n" .
|
531 |
+
' else edInsertContent(edCanvas, h);' . "\n" .
|
532 |
+
' }' . "\n";
|
533 |
+
|
534 |
+
if ( empty($options['custom_field_template_use_multiple_insert']) ) {
|
535 |
+
$out .= ' tb_remove();' . "\n" .
|
536 |
+
' tmpFocus = undefined;' . "\n" .
|
537 |
+
' isTinyMCE = false;' . "\n";
|
538 |
+
}
|
539 |
+
|
540 |
+
if ( substr($wp_version, 0, 3) < '3.3' ) :
|
541 |
+
$qt_position = 'prev()';
|
542 |
+
else :
|
543 |
+
$qt_position = 'children(\':first\')';
|
544 |
+
endif;
|
545 |
+
|
546 |
+
if ( substr($wp_version, 0, 3) < '3.3' ) :
|
547 |
+
$load_tinyMCE = 'tinyMCE.execCommand(' . "'mceAddControl'" . ',false, id);';
|
548 |
+
else :
|
549 |
+
$load_tinyMCE = 'var ed = new tinyMCE.Editor(id, tinyMCEPreInit.mceInit[\'content\']); ed.render();';
|
550 |
+
endif;
|
551 |
+
|
552 |
+
$out .= '}' . "\n" .
|
553 |
+
'jQuery(".thickbox").bind("click", function (e) {' . "\n" .
|
554 |
+
' tmpFocus = undefined;' . "\n" .
|
555 |
+
' isTinyMCE = false;' . "\n" .
|
556 |
+
'});' . "\n" .
|
557 |
+
'var isTinyMCE;' . "\n" .
|
558 |
+
'var tmpFocus;' . "\n" .
|
559 |
+
'function focusTextArea(id) {' . "\n" .
|
560 |
+
' jQuery(document).ready(function() {' . "\n" .
|
561 |
+
' if ( typeof tinyMCE != "undefined" ) {' . "\n" .
|
562 |
+
' var elm = tinyMCE.get(id);' . "\n" .
|
563 |
+
' }' . "\n" .
|
564 |
+
' if ( ! elm || elm.isHidden() ) {' . "\n" .
|
565 |
+
' elm = document.getElementById(id);' . "\n" .
|
566 |
+
' isTinyMCE = false;' . "\n" .
|
567 |
+
' }else isTinyMCE = true;' . "\n" .
|
568 |
+
' tmpFocus = elm' . "\n" .
|
569 |
+
' elm.focus();' . "\n" .
|
570 |
+
' if (elm.createTextRange) {' . "\n" .
|
571 |
+
' var range = elm.createTextRange();' . "\n" .
|
572 |
+
' range.move("character", elm.value.length);' . "\n" .
|
573 |
+
' range.select();' . "\n" .
|
574 |
+
' } else if (elm.setSelectionRange) {' . "\n" .
|
575 |
+
' elm.setSelectionRange(elm.value.length, elm.value.length);' . "\n" .
|
576 |
+
' }' . "\n" .
|
577 |
+
' });' . "\n" .
|
578 |
+
'}' . "\n" .
|
579 |
+
'function switchMode(id) {' . "\n" .
|
580 |
+
' var ed = tinyMCE.get(id);' . "\n" .
|
581 |
+
' if ( ! ed || ed.isHidden() ) {' . "\n" .
|
582 |
+
' document.getElementById(id).value = switchEditors.wpautop(document.getElementById(id).value);' . "\n" .
|
583 |
+
' if ( ed ) { jQuery(\'#editorcontainer_\'+id).'.$qt_position.'.hide(); ed.show(); }' . "\n" .
|
584 |
+
' else {'.$load_tinyMCE.'}' . "\n" .
|
585 |
+
' } else {' . "\n" .
|
586 |
+
' ed.hide(); jQuery(\'#editorcontainer_\'+id).'.$qt_position.'.show(); document.getElementById(id).style.color="#000000";' . "\n" .
|
587 |
+
' }' . "\n" .
|
588 |
+
'}' . "\n";
|
589 |
+
|
590 |
+
$out .= 'function thickbox(link) {' . "\n" .
|
591 |
+
' var t = link.title || link.name || null;' . "\n" .
|
592 |
+
' var a = link.href || link.alt;' . "\n" .
|
593 |
+
' var g = link.rel || false;' . "\n" .
|
594 |
+
' tb_show(t,a,g);' . "\n" .
|
595 |
+
' link.blur();' . "\n" .
|
596 |
+
' return false;' . "\n" .
|
597 |
+
'}' . "\n";
|
598 |
+
$out .= '//--></script>';
|
599 |
+
$out .= '<input type="hidden" id="cft_current_template" value="" />';
|
600 |
+
$out .= '<input type="hidden" id="cft_clicked_id" value="" />';
|
601 |
+
$out .= '<input type="hidden" name="custom-field-template-verify-key" id="custom-field-template-verify-key" value="' . wp_create_nonce('custom-field-template') . '" />';
|
602 |
+
|
603 |
+
$out .= '<style type="text/css">' . "\n" .
|
604 |
+
'<!--' . "\n";
|
605 |
+
$out .= $options['css'] . "\n";
|
606 |
+
$out .= '.editorcontainer { overflow:hidden; background:#FFFFFF; }
|
607 |
+
.content { width:98%; }
|
608 |
+
.editorcontainer .content { padding: 6px; line-height: 150%; border: 0 none; outline: none; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; -khtml-box-sizing: border-box; box-sizing: border-box; }
|
609 |
+
.quicktags { border:1px solid #DFDFDF; border-collapse: separate; -moz-border-radius: 6px 6px 0 0; -webkit-border-top-right-radius: 6px; -webkit-border-top-left-radius: 6px; -khtml-border-top-right-radius: 6px; -khtml-border-top-left-radius: 6px; border-top-right-radius: 6px; border-top-left-radius: 6px; }
|
610 |
+
.quicktags { padding: 0; margin-bottom: -1px; border-bottom-width:1px; background-image: url("images/ed-bg.gif"); background-position: left top; background-repeat: repeat; }
|
611 |
+
.quicktags div div { padding: 2px 4px 0; }
|
612 |
+
.quicktags div div input { margin: 3px 1px 4px; line-height: 18px; display: inline-block; border-width: 1px; border-style: solid; min-width: 26px; padding: 2px 4px; font-size: 12px; -moz-border-radius: 3px; -khtml-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; background:#FFFFFF url(images/fade-butt.png) repeat-x scroll 0 -2px; overflow: visible; }' . "\n";
|
613 |
+
$out .= '-->' . "\n" .
|
614 |
+
'</style>';
|
615 |
+
echo $out;
|
616 |
+
}
|
617 |
+
|
618 |
function add_manage_posts_custom_column($column_name, $post_id) {
|
619 |
$data = get_post_custom($post_id);
|
620 |
|
816 |
|
817 |
function install_custom_field_template_css() {
|
818 |
$options = get_option('custom_field_template_data');
|
819 |
+
$options['css'] = '.cft:after { content:" "; clear:both; height:0; display:block; visibility:hidden; }
|
820 |
+
.cft dl { margin:10px 0; }
|
821 |
+
.cft dl:after { content:" "; clear:both; height:0; display:block; visibility:hidden; }
|
822 |
+
.cft dt { width:20%; clear:both; float:left; display:inline; font-weight:bold; text-align:center; }
|
823 |
+
.cft dt .hideKey { visibility:hidden; }
|
824 |
+
.cft dd { margin:0 0 0 21%; }
|
825 |
+
.cft dd p.label { font-weight:bold; margin:0; }
|
826 |
+
.cft_instruction { margin:10px; }
|
827 |
+
.cft fieldset { border:1px solid #CCC; margin:5px; padding:5px; }
|
828 |
+
.cft .dl_checkbox { margin:0; }
|
829 |
';
|
830 |
update_option('custom_field_template_data', $options);
|
831 |
}
|
999 |
$options['custom_field_template_disable_quick_edit'] = isset($_POST['custom_field_template_disable_quick_edit']) ? 1 : '';
|
1000 |
$options['custom_field_template_disable_custom_field_column'] = isset($_POST['custom_field_template_disable_custom_field_column']) ? 1 : '';
|
1001 |
$options['custom_field_template_replace_the_title'] = isset($_POST['custom_field_template_replace_the_title']) ? 1 : '';
|
1002 |
+
$options['custom_field_template_deploy_box'] = isset($_POST['custom_field_template_deploy_box']) ? 1 : '';
|
1003 |
+
if ( !empty($options['custom_field_template_deploy_box']) ) :
|
1004 |
+
$options['css'] = preg_replace('/#cft /', '.cft ', $options['css']);
|
1005 |
+
$options['css'] = preg_replace('/#cft_/', '.cft_', $options['css']);
|
1006 |
+
endif;
|
1007 |
$options['custom_field_template_widget_shortcode'] = isset($_POST['custom_field_template_widget_shortcode']) ? 1 : '';
|
1008 |
$options['custom_field_template_excerpt_shortcode'] = isset($_POST['custom_field_template_excerpt_shortcode']) ? 1 : '';
|
1009 |
$options['custom_field_template_use_validation'] = isset($_POST['custom_field_template_use_validation']) ? 1 : '';
|
1189 |
*/
|
1190 |
?>
|
1191 |
<tr><td>
|
1192 |
+
<p><label for="custom_field_template_replace_keys_by_labels"><?php _e('In case that you would like to replace custom keys by labels if `label` is set', 'custom-field-template'); ?>:<br />
|
1193 |
+
<input type="checkbox" name="custom_field_template_replace_keys_by_labels" id="custom_field_template_replace_keys_by_labels" value="1" <?php if ( !empty($options['custom_field_template_replace_keys_by_labels']) ) { echo 'checked="checked"'; } ?> /> <?php _e('Use labels in place of custom keys', 'custom-field-template'); ?></label></p>
|
1194 |
</td></tr>
|
1195 |
<tr><td>
|
1196 |
+
<p><label for="custom_field_template_use_wpautop"><?php _e('In case that you would like to add p and br tags in textareas automatically', 'custom-field-template'); ?>:<br />
|
1197 |
+
<input type="checkbox" name="custom_field_template_use_wpautop" id="custom_field_template_use_wpautop" value="1" <?php if ( !empty($options['custom_field_template_use_wpautop']) ) { echo 'checked="checked"'; } ?> /> <?php _e('Use wpautop function', 'custom-field-template'); ?></label></p>
|
1198 |
</td>
|
1199 |
</tr>
|
1200 |
<tr><td>
|
1201 |
+
<p><label for="custom_field_template_use_autosave"><?php _e('In case that you would like to save values automatically in switching templates', 'custom-field-template'); ?>:<br />
|
1202 |
+
<input type="checkbox" name="custom_field_template_use_autosave" id="custom_field_template_use_autosave" value="1" <?php if ( !empty($options['custom_field_template_use_autosave']) ) { echo 'checked="checked"'; } ?> /> <?php _e('Use the auto save in switching templates', 'custom-field-template'); ?></label></p>
|
1203 |
</td>
|
1204 |
</tr>
|
1205 |
<tr><td>
|
1206 |
+
<p><label for="custom_field_template_use_disable_button"><?php _e('In case that you would like to disable input fields of the custom field template temporarily', 'custom-field-template'); ?>:<br />
|
1207 |
+
<input type="checkbox" name="custom_field_template_use_disable_button" id="custom_field_template_use_disable_button" value="1" <?php if ( !empty($options['custom_field_template_use_disable_button']) ) { echo 'checked="checked"'; } ?> /> <?php _e('Use the `Disable` button. The default custom fields will be superseded.', 'custom-field-template'); ?></label></p>
|
1208 |
</td>
|
1209 |
</tr>
|
1210 |
<tr><td>
|
1211 |
+
<p><label for="custom_field_template_disable_initialize_button"><?php _e('In case that you would like to forbid to use the initialize button.', 'custom-field-template'); ?>:<br />
|
1212 |
+
<input type="checkbox" name="custom_field_template_disable_initialize_button" id="custom_field_template_disable_initialize_button" value="1" <?php if ( !empty($options['custom_field_template_disable_initialize_button']) ) { echo 'checked="checked"'; } ?> /> <?php _e('Disable the initialize button', 'custom-field-template'); ?></label></p>
|
1213 |
</td>
|
1214 |
</tr>
|
1215 |
<tr><td>
|
1216 |
+
<p><label for="custom_field_template_disable_save_button"><?php _e('In case that you would like to forbid to use the save button.', 'custom-field-template'); ?>:<br />
|
1217 |
+
<input type="checkbox" name="custom_field_template_disable_save_button" id="custom_field_template_disable_save_button" value="1" <?php if ( !empty($options['custom_field_template_disable_save_button']) ) { echo 'checked="checked"'; } ?> /> <?php _e('Disable the save button', 'custom-field-template'); ?></label></p>
|
1218 |
</td>
|
1219 |
</tr>
|
1220 |
<tr><td>
|
1221 |
+
<p><label for="custom_field_template_disable_default_custom_fields"><?php _e('In case that you would like to forbid to use the default custom fields.', 'custom-field-template'); ?>:<br />
|
1222 |
+
<input type="checkbox" name="custom_field_template_disable_default_custom_fields" id="custom_field_template_disable_default_custom_fields" value="1" <?php if ( !empty($options['custom_field_template_disable_default_custom_fields']) ) { echo 'checked="checked"'; } ?> /> <?php _e('Disable the default custom fields', 'custom-field-template'); ?></label></p>
|
1223 |
</td>
|
1224 |
</tr>
|
1225 |
<tr><td>
|
1226 |
+
<p><label for="custom_field_template_disable_quick_edit"><?php _e('In case that you would like to forbid to use the quick edit.', 'custom-field-template'); ?>:<br />
|
1227 |
+
<input type="checkbox" name="custom_field_template_disable_quick_edit" id="custom_field_template_disable_quick_edit" value="1" <?php if ( !empty($options['custom_field_template_disable_quick_edit']) ) { echo 'checked="checked"'; } ?> /> <?php _e('Disable the quick edit', 'custom-field-template'); ?></label></p>
|
1228 |
</td>
|
1229 |
</tr>
|
1230 |
<tr><td>
|
1231 |
+
<p><label for="custom_field_template_disable_custom_field_column"><?php _e('In case that you would like to forbid to display the custom field column on the edit post list page.', 'custom-field-template'); ?>:<br />
|
1232 |
+
<input type="checkbox" name="custom_field_template_disable_custom_field_column" id="custom_field_template_disable_custom_field_column" value="1" <?php if ( !empty($options['custom_field_template_disable_custom_field_column']) ) { echo 'checked="checked"'; } ?> /> <?php _e('Disable the custom field column (The quick edit also does not work.)', 'custom-field-template'); ?></label></p>
|
1233 |
</td>
|
1234 |
</tr>
|
1235 |
<tr><td>
|
1236 |
+
<p><label for="custom_field_template_replace_the_title"><?php _e('In case that you would like to replace the box title with the template title.', 'custom-field-template'); ?>:<br />
|
1237 |
+
<input type="checkbox" name="custom_field_template_replace_the_title" id="custom_field_template_replace_the_title" value="1" <?php if ( !empty($options['custom_field_template_replace_the_title']) ) { echo 'checked="checked"'; } ?> /> <?php _e('Replace the box title', 'custom-field-template'); ?></label></p>
|
1238 |
</td>
|
1239 |
</tr>
|
1240 |
<tr><td>
|
1241 |
+
<p><label for="custom_field_template_deploy_box"><?php _e('In case that you would like to deploy the box in each template.', 'custom-field-template'); ?>:<br />
|
1242 |
+
<input type="checkbox" name="custom_field_template_deploy_box" id="custom_field_template_deploy_box" value="1" <?php if ( !empty($options['custom_field_template_deploy_box']) ) { echo 'checked="checked"'; } ?> /> <?php _e('Deploy the box in each template', 'custom-field-template'); ?></label></p>
|
1243 |
</td>
|
1244 |
</tr>
|
1245 |
<tr><td>
|
1246 |
+
<p><label for="custom_field_template_widget_shortcode"><?php _e('In case that you would like to use the shortcode in the widget.', 'custom-field-template'); ?>:<br />
|
1247 |
+
<input type="checkbox" name="custom_field_template_widget_shortcode" id="custom_field_template_widget_shortcode" value="1" <?php if ( !empty($options['custom_field_template_widget_shortcode']) ) { echo 'checked="checked"'; } ?> /> <?php _e('Use the shortcode in the widget', 'custom-field-template'); ?></label></p>
|
1248 |
</td>
|
1249 |
</tr>
|
1250 |
<tr><td>
|
1251 |
+
<p><label for="custom_field_template_excerpt_shortcode"><?php _e('In case that you would like to use the shortcode in the excerpt.', 'custom-field-template'); ?>:<br />
|
1252 |
+
<input type="checkbox" name="custom_field_template_excerpt_shortcode" id="custom_field_template_excerpt_shortcode" value="1" <?php if ( !empty($options['custom_field_template_excerpt_shortcode']) ) { echo 'checked="checked"'; } ?> /> <?php _e('Use the shortcode in the excerpt', 'custom-field-template'); ?></label></p>
|
1253 |
+
</td>
|
1254 |
+
</tr>
|
1255 |
+
<tr><td>
|
1256 |
+
<p><label for="custom_field_template_use_validation"><?php _e('In case that you would like to use the jQuery validation.', 'custom-field-template'); ?>:<br />
|
1257 |
+
<input type="checkbox" name="custom_field_template_use_validation" id="custom_field_template_use_validation" value="1" <?php if ( !empty($options['custom_field_template_use_validation']) ) { echo 'checked="checked"'; } ?> /> <?php _e('Use the jQuery validation', 'custom-field-template'); ?></label></p>
|
1258 |
</td>
|
1259 |
</tr>
|
1260 |
<tr><td>
|
1275 |
</td>
|
1276 |
</tr>
|
1277 |
<tr><td>
|
1278 |
+
<p><label for="custom_field_template_disable_ad"><?php _e('In case that you would like to hide the advertisement right column.', 'custom-field-template'); ?>:<br />
|
1279 |
+
<input type="checkbox" name="custom_field_template_disable_ad" id="custom_field_template_disable_ad" value="1" <?php if ( !empty($options['custom_field_template_disable_ad']) ) { echo 'checked="checked"'; } ?> /> <?php _e('I want to use a wider screen.', 'custom-field-template'); ?></label></p>
|
1280 |
</td>
|
1281 |
</tr>
|
1282 |
<tr><td>
|
2287 |
|
2288 |
if ( $mediaPicker == true ) :
|
2289 |
$picker = __(' OR ', 'custom-field-template');
|
2290 |
+
$picker .= '<a href="'.$image_upload_iframe_src.'&post_id='.$_REQUEST[ 'post' ].'&TB_iframe=1&tab='.$tab.'" class="thickbox" onclick="jQuery('."'#cft_current_template'".').val(jQuery(this).parent().parent().parent().attr(\'id\').replace(\'cft_\',\'\'));jQuery('."'#cft_clicked_id'".').val(jQuery(this).parent().find(\'input\').attr(\'id\'));">'.__('Select by Media Picker', 'custom-field-template').'</a>';
|
2291 |
endif;
|
2292 |
|
2293 |
$out .=
|
2297 |
|
2298 |
if ( !empty($label) && !$options['custom_field_template_replace_keys_by_labels'] )
|
2299 |
$out .= '<p class="label">' . stripcslashes($label) . '</p>';
|
2300 |
+
$out .= trim($before).'<input id="' . $name . $sid . '_' . $cftnum . '" name="' . $name . '['.$sid.'][]" type="file" size="' . $size . '"' . $class . $style . ' onchange="if (jQuery(this).val()) { jQuery(\'#cft_save_button\'+jQuery(this).parent().parent().parent().attr(\'id\').replace(\'cft_\',\'\')).attr(\'disabled\', true); jQuery(\'#post-preview\').hide(); } else { jQuery(\'#cft_save_button\').attr(\'disabled\', false); jQuery(\'#post-preview\').show(); }" />'.trim($after).$picker;
|
2301 |
|
2302 |
if ( isset($value) && ( $value = intval($value) ) && $thumb_url = wp_get_attachment_image_src( $value, 'thumbnail', true ) ) :
|
2303 |
$thumb_url = $thumb_url[0];
|
2441 |
|
2442 |
if ( !empty($options['custom_fields'][$id]['instruction']) ) :
|
2443 |
$instruction = $this->EvalBuffer(stripcslashes($options['custom_fields'][$id]['instruction']));
|
2444 |
+
$out .= '<div id="cft_instruction'.$id.'" class="cft_instruction">' . $instruction . '</div>';
|
2445 |
endif;
|
2446 |
|
2447 |
$out .= '<div id="cft_'.$id.'">';
|
2448 |
+
$out .= '<input type="hidden" name="custom-field-template-id[]" id="custom-field-template-id" value="' . $id . '" />';
|
2449 |
foreach( $fields as $field_key => $field_val ) :
|
2450 |
foreach( $field_val as $title => $data ) {
|
2451 |
$class = $style = $addfield = '';
|
2528 |
$out .= '// ]]>' . "\n" .
|
2529 |
'</script>';
|
2530 |
$out .= '</div>';
|
|
|
2531 |
|
2532 |
return array($out, $id);
|
2533 |
}
|
2534 |
|
2535 |
+
function insert_custom_field($post, $args) {
|
2536 |
global $wp_version, $post, $wpdb;
|
2537 |
$options = $this->get_custom_field_template_data();
|
2538 |
$out = '';
|
2556 |
<div class="dbx-content">';
|
2557 |
}
|
2558 |
|
2559 |
+
if ( isset($args['args']) ) :
|
2560 |
+
$init_id = $args['args'];
|
2561 |
+
$suffix = $args['args'];
|
2562 |
+
$suffix2 = '_'.$args['args'];
|
2563 |
+
$suffix3 = $args['args'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2564 |
else :
|
2565 |
+
if ( isset($_REQUEST['post']) ) $request_post = $_REQUEST['post'];
|
2566 |
+
else $request_post = '';
|
2567 |
+
if( isset($options['posts'][$request_post]) && count($options['custom_fields'])>$options['posts'][$request_post] ) :
|
2568 |
+
$init_id = $options['posts'][$request_post];
|
2569 |
+
else :
|
2570 |
+
$filtered_cfts = $this->custom_field_template_filter();
|
2571 |
+
if ( count($filtered_cfts)>0 ) :
|
2572 |
+
$init_id = $filtered_cfts[0]['id'];
|
2573 |
+
else :
|
2574 |
+
$init_id = 0;
|
2575 |
+
endif;
|
2576 |
+
endif;
|
2577 |
+
$suffix = '';
|
2578 |
+
$suffix2 = '';
|
2579 |
+
$suffix3 = '\'+jQuery(\'#custom-field-template-id\').val()+\'';
|
2580 |
endif;
|
2581 |
|
2582 |
+
$out .= '<script type="text/javascript">' . "\n" .
|
2583 |
+
'// <![CDATA[' . "\n";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2584 |
$out .= 'jQuery(document).ready(function() {' . "\n";
|
2585 |
|
2586 |
$fields = $this->get_custom_fields( $init_id );
|
2602 |
endif;
|
2603 |
endif;
|
2604 |
|
2605 |
+
if ( empty($options['custom_field_template_deploy_box']) && !empty($options['custom_fields']) ) :
|
2606 |
if ( substr($wp_version, 0, 3) < '3.0' ) $taxonomy = 'categories';
|
2607 |
else $taxonomy = 'category';
|
2608 |
|
2625 |
if ( $taxonomy == 'category' ) $taxonomy = $category_taxonomy[$cat_id];
|
2626 |
$out .= 'jQuery(\'#in-'.$category_taxonomy[$cat_id].'-' . $cat_id . '\').click(function(){if(jQuery(\'#in-'.$category_taxonomy[$cat_id].'-' . $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(\'#'.$taxonomy.'-all :input\').fieldSerialize(), function(html) { jQuery(\'#cft_selectbox\').html(html);';
|
2627 |
if ( !empty($options['custom_field_template_use_autosave']) ) :
|
2628 |
+
$out .= ' var fields = jQuery(\'#cft'.$suffix.' :input\').fieldSerialize();';
|
2629 |
$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) {';
|
2630 |
if ( !empty($options['custom_field_template_replace_the_title']) ) :
|
2631 |
+
$out .= 'jQuery(\'#cftdiv'.$suffix.' h3 span\').text(\'' . $options['custom_fields'][$key]['title'] . '\');';
|
2632 |
endif;
|
2633 |
$out .= 'jQuery(\'#cft\').html(html);}});}});';
|
2634 |
else :
|
2635 |
$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()+\'&\'+jQuery(\'#'.$taxonomy.'-all :input\').fieldSerialize(), success: function(html) {';
|
2636 |
if ( !empty($options['custom_field_template_replace_the_title']) ) :
|
2637 |
+
$out .= 'jQuery(\'#cftdiv'.$suffix.' h3 span\').text(\'' . $options['custom_fields'][$key]['title'] . '\');';
|
2638 |
endif;
|
2639 |
$out .= 'jQuery(\'#cft\').html(html);}});';
|
2640 |
endif;
|
2642 |
|
2643 |
$out .= ' }else{ jQuery(\'#cft\').html(\'\');jQuery.get(\'?page=custom-field-template/custom-field-template.php&cft_mode=selectbox&post=\'+jQuery(\'#post_ID\').val()+\'&\'+jQuery(\'#'.$taxonomy.'-all :input\').fieldSerialize(), 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()+\'&\'+jQuery(\'#'.$taxonomy.'-all :input\').fieldSerialize(), success: function(html) { jQuery(\'#cft\').html(html);}}); });';
|
2644 |
if ( !empty($options['custom_field_template_replace_the_title']) ) :
|
2645 |
+
$out .= 'jQuery(\'#cftdiv'.$suffix.' h3 span\').text(\'' . __('Custom Field Template', 'custom-field-template') . '\');';
|
2646 |
endif;
|
2647 |
$out .= '}});' . "\n";
|
2648 |
endif;
|
2651 |
endforeach;
|
2652 |
endif;
|
2653 |
|
2654 |
+
if ( empty($options['custom_field_template_deploy_box']) && 0 != count( get_page_templates() ) ):
|
2655 |
if ( empty($_REQUEST['post_type']) ) $_REQUEST['post_type'] = 'post';
|
2656 |
$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(\'?post_type='.$_REQUEST['post_type'].'&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: \'?post_type='.$_REQUEST['post_type'].'&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);';
|
2657 |
if ( !empty($options['custom_field_template_replace_the_title']) ) :
|
2658 |
+
$out .= 'if(html) { jQuery(\'#cftdiv'.$suffix.' h3 span\').text(jQuery(\'#custom_field_template_select :selected\').text());}';
|
2659 |
endif;
|
2660 |
$out .= '}});});';
|
2661 |
$out .= '});' . "\n";
|
2662 |
endif;
|
2663 |
|
2664 |
+
$out .= ' jQuery(\'#cftloading_img'.$suffix.'\').ajaxStart(function() { jQuery(this).show();});';
|
2665 |
+
$out .= ' jQuery(\'#cftloading_img'.$suffix.'\').ajaxStop(function() { jQuery(this).hide();});';
|
2666 |
$out .= '});' . "\n";
|
2667 |
|
|
|
2668 |
$out .= 'var tinyMCEID = new Array();' . "\n" .
|
2669 |
'// ]]>' . "\n" .
|
2670 |
'</script>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2671 |
list($body, $init_id) = $this->load_custom_field($init_id);
|
2672 |
|
2673 |
+
if ( empty($options['custom_field_template_deploy_box']) ) :
|
2674 |
+
$out .= '<div id="cft_selectbox">';
|
2675 |
+
$out .= $this->custom_field_template_selectbox();
|
2676 |
+
$out .= '</div>';
|
2677 |
+
else :
|
2678 |
+
$out .= '<div> </div>';
|
2679 |
+
endif;
|
2680 |
+
|
2681 |
+
$out .= '<div id="cft'.$suffix.'" class="cft">';
|
2682 |
$out .= $body;
|
2683 |
$out .= '</div>';
|
2684 |
|
2689 |
endif;
|
2690 |
|
2691 |
$out .= '<div style="position:absolute; top:'.$top_margin.'px; right:5px;">';
|
2692 |
+
$out .= '<img class="waiting" style="display:none; vertical-align:middle;" src="images/loading.gif" alt="" id="cftloading_img'.$suffix.'" /> ';
|
2693 |
if ( !empty($options['custom_field_template_use_disable_button']) ) :
|
2694 |
$out .= '<input type="hidden" id="disable_value" value="0" />';
|
2695 |
$out .= '<input type="button" value="' . __('Disable', 'custom-field-template') . '" onclick="';
|
2696 |
+
$out .= 'if(jQuery(\'#disable_value\').val()==0) { jQuery(\'#disable_value\').val(1);jQuery(this).val(\''.__('Enable', 'custom-field-template').'\');jQuery(\'#cft'.$suffix2.' input, #cft'.$suffix2.' select, #cft'.$suffix2.' textarea\').attr(\'disabled\',true);}else{ jQuery(\'#disable_value\').val(0);jQuery(this).val(\''.__('Disable', 'custom-field-template').'\');jQuery(\'#cft'.$suffix2.' input, #cft_'.$init_id.' select, #cft'.$suffix2.' textarea\').attr(\'disabled\',false);}';
|
2697 |
$out .= '" class="button" style="vertical-align:middle;" />';
|
2698 |
endif;
|
2699 |
if ( empty($options['custom_field_template_disable_initialize_button']) ) :
|
2700 |
$out .= '<input type="button" value="' . __('Initialize', 'custom-field-template') . '" onclick="';
|
2701 |
+
$out .= 'if(confirm(\''.__('Are you sure to reset current values? Default values will be loaded.', 'custom-field-template').'\')){if(tinyMCEID.length) { for(i=0;i<tinyMCEID.length;i++) {tinyMCE.execCommand(\'mceRemoveControl\', false, tinyMCEID[i]);} tinyMCEID.length=0;};jQuery.ajax({type: \'GET\', url: \'?page=custom-field-template/custom-field-template.php&cft_mode=ajaxload&default=true&id='.$suffix3.'&post=\'+jQuery(\'#post_ID\').val(), success: function(html) {';
|
2702 |
+
$out .= 'jQuery(\'#cft'.$suffix2.'\').html(html);}});}';
|
2703 |
$out .= '" class="button" style="vertical-align:middle;" />';
|
2704 |
endif;
|
2705 |
if ( empty($options['custom_field_template_disable_save_button']) ) :
|
2706 |
+
$out .= '<input type="button" id="cft_save_button'.$suffix.'" value="' . __('Save', 'custom-field-template') . '" onclick="';
|
2707 |
if ( !empty($options['custom_field_template_use_validation']) ) :
|
2708 |
$out .= 'if(!jQuery(\'#post\').valid()) return false;';
|
2709 |
endif;
|
2710 |
+
$out .= 'tinyMCE.triggerSave(); var fields = jQuery(\'#cft'.$suffix2.' :input\').fieldSerialize();';
|
2711 |
$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(), data: fields, success: function() {jQuery(\'.delete_file_checkbox:checked\').each(function() {jQuery(this).parent().parent().remove();});}});';
|
2712 |
$out .= '" class="button" style="vertical-align:middle;" />';
|
2713 |
endif;
|
|
|
2714 |
$out .= '</div>';
|
2715 |
|
2716 |
if ( substr($wp_version, 0, 3) < '2.5' ) {
|
2717 |
$out .= '</div></fieldset></div>';
|
2718 |
} else {
|
2719 |
+
if ( $body && !empty($options['custom_field_template_replace_the_title']) && empty($options['custom_field_template_deploy_box']) ) :
|
2720 |
$out .= '<script type="text/javascript">' . "\n" . '// <![CDATA[' . "\n";
|
2721 |
$out .= 'jQuery(document).ready(function() {jQuery(\'#cftdiv h3 span\').text(\'' . $options['custom_fields'][$init_id]['title'] . '\');});' . "\n";
|
2722 |
$out .= '// ]]>' . "\n" . '</script>';
|
2890 |
if ($post->post_type == 'revision')
|
2891 |
return;
|
2892 |
|
2893 |
+
if ( !empty($_REQUEST['custom-field-template-id']) && is_array($_REQUEST['custom-field-template-id']) ) :
|
2894 |
+
foreach ( $_REQUEST['custom-field-template-id'] as $cft_id ) :
|
2895 |
+
$fields = $this->get_custom_fields($cft_id);
|
2896 |
|
2897 |
if ( $fields == null )
|
2898 |
+
continue;
|
2899 |
|
2900 |
if ( substr($wp_version, 0, 3) >= '2.8' ) {
|
2901 |
if ( !class_exists('SimpleTags') && !empty($_POST['tax_input']['post_tag']) ) {
|
3079 |
wp_set_post_tags( $id, $tags_value );
|
3080 |
endforeach;
|
3081 |
endif;
|
3082 |
+
|
3083 |
+
if ( empty($options['custom_field_template_deploy_box']) ) $options['posts'][$id] = $cft_id;
|
3084 |
+
|
3085 |
+
endforeach;
|
3086 |
+
endif;
|
3087 |
|
|
|
3088 |
update_option('custom_field_template_data', $options);
|
3089 |
wp_cache_flush();
|
3090 |
}
|
3358 |
$replace_val = $value;
|
3359 |
if ( $val['singleList'] == true ) :
|
3360 |
if ( $before_list ) : $replace_val = $before_list . "\n"; endif;
|
3361 |
+
$replace_val .= $before_value . $value . $after_value . "\n";
|
3362 |
if ( $after_list ) : $replace_val .= $after_list . "\n"; endif;
|
3363 |
endif;
|
3364 |
else :
|
custom-field-template.pot
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Custom Field Template\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date:
|
6 |
-
"PO-Revision-Date:
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -13,529 +13,538 @@ msgstr ""
|
|
13 |
"X-Poedit-Basepath: ../\n"
|
14 |
"X-Poedit-SearchPath-0: custom-field-template\n"
|
15 |
|
16 |
-
#: custom-field-template/custom-field-template.php:
|
17 |
-
#: custom-field-template/custom-field-template.php:
|
18 |
-
#: custom-field-template/custom-field-template.php:
|
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 |
msgid "Custom Field Template"
|
24 |
msgstr ""
|
25 |
|
26 |
-
#: custom-field-template/custom-field-template.php:
|
27 |
msgid "Media Picker"
|
28 |
msgstr ""
|
29 |
|
30 |
-
#: custom-field-template/custom-field-template.php:
|
31 |
msgid "Use this"
|
32 |
msgstr ""
|
33 |
|
34 |
-
#: custom-field-template/custom-field-template.php:
|
35 |
-
#: custom-field-template/custom-field-template.php:
|
36 |
msgid "Load"
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: custom-field-template/custom-field-template.php:
|
40 |
msgid "read more"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: custom-field-template/custom-field-template.php:
|
44 |
-
#: custom-field-template/custom-field-template.php:
|
45 |
msgid "Custom Fields"
|
46 |
msgstr ""
|
47 |
|
48 |
-
#: custom-field-template/custom-field-template.php:
|
49 |
msgid "Settings"
|
50 |
msgstr ""
|
51 |
|
52 |
-
#: custom-field-template/custom-field-template.php:
|
53 |
msgid "Default Template"
|
54 |
msgstr ""
|
55 |
|
56 |
-
#: custom-field-template/custom-field-template.php:
|
57 |
msgid "You can not use the following words as the field key: `content`, `post_title`, and `excerpt`, and `action`."
|
58 |
msgstr ""
|
59 |
|
60 |
-
#: custom-field-template/custom-field-template.php:
|
61 |
-
#: custom-field-template/custom-field-template.php:
|
62 |
-
#: custom-field-template/custom-field-template.php:
|
63 |
-
#: custom-field-template/custom-field-template.php:
|
64 |
-
#: custom-field-template/custom-field-template.php:
|
65 |
-
#: custom-field-template/custom-field-template.php:
|
66 |
msgid "Options updated."
|
67 |
msgstr ""
|
68 |
|
69 |
-
#: custom-field-template/custom-field-template.php:
|
70 |
msgid "Value Counts rebuilt."
|
71 |
msgstr ""
|
72 |
|
73 |
-
#: custom-field-template/custom-field-template.php:
|
74 |
msgid "Tags rebuilt."
|
75 |
msgstr ""
|
76 |
|
77 |
-
#: custom-field-template/custom-field-template.php:
|
78 |
msgid "Options imported."
|
79 |
msgstr ""
|
80 |
|
81 |
-
#: custom-field-template/custom-field-template.php:
|
82 |
msgid "Options resetted."
|
83 |
msgstr ""
|
84 |
|
85 |
-
#: custom-field-template/custom-field-template.php:
|
86 |
msgid "Options deleted."
|
87 |
msgstr ""
|
88 |
|
89 |
-
#: custom-field-template/custom-field-template.php:
|
90 |
-
#: custom-field-template/custom-field-template.php:
|
91 |
-
#: custom-field-template/custom-field-template.php:
|
92 |
-
#: custom-field-template/custom-field-template.php:
|
93 |
-
#: custom-field-template/custom-field-template.php:
|
94 |
-
#: custom-field-template/custom-field-template.php:
|
95 |
-
#: custom-field-template/custom-field-template.php:
|
96 |
-
#: custom-field-template/custom-field-template.php:
|
97 |
-
#: custom-field-template/custom-field-template.php:
|
98 |
-
#: custom-field-template/custom-field-template.php:
|
99 |
-
#: custom-field-template/custom-field-template.php:
|
100 |
-
#: custom-field-template/custom-field-template.php:
|
101 |
-
#: custom-field-template/custom-field-template.php:
|
102 |
-
#: custom-field-template/custom-field-template.php:
|
103 |
-
#: custom-field-template/custom-field-template.php:
|
104 |
msgid "Click to toggle"
|
105 |
msgstr ""
|
106 |
|
107 |
-
#: custom-field-template/custom-field-template.php:
|
108 |
msgid "Custom Field Template Options"
|
109 |
msgstr ""
|
110 |
|
111 |
-
#: custom-field-template/custom-field-template.php:
|
112 |
-
#: custom-field-template/custom-field-template.php:
|
113 |
-
#: custom-field-template/custom-field-template.php:
|
114 |
msgid "Disable"
|
115 |
msgstr ""
|
116 |
|
117 |
-
#: custom-field-template/custom-field-template.php:
|
118 |
msgid "Template Title"
|
119 |
msgstr ""
|
120 |
|
121 |
-
#: custom-field-template/custom-field-template.php:
|
122 |
msgid "Template Instruction"
|
123 |
msgstr ""
|
124 |
|
125 |
-
#: custom-field-template/custom-field-template.php:
|
126 |
-
#: custom-field-template/custom-field-template.php:
|
127 |
msgid "Post Type"
|
128 |
msgstr ""
|
129 |
|
130 |
-
#: custom-field-template/custom-field-template.php:
|
131 |
-
#: custom-field-template/custom-field-template.php:
|
132 |
msgid "Both"
|
133 |
msgstr ""
|
134 |
|
135 |
-
#: custom-field-template/custom-field-template.php:
|
136 |
-
#: custom-field-template/custom-field-template.php:
|
137 |
msgid "Post"
|
138 |
msgstr ""
|
139 |
|
140 |
-
#: custom-field-template/custom-field-template.php:
|
141 |
-
#: custom-field-template/custom-field-template.php:
|
142 |
msgid "Page"
|
143 |
msgstr ""
|
144 |
|
145 |
-
#: custom-field-template/custom-field-template.php:
|
146 |
-
#: custom-field-template/custom-field-template.php:
|
147 |
msgid "Custom Post Type (comma-deliminated)"
|
148 |
msgstr ""
|
149 |
|
150 |
-
#: custom-field-template/custom-field-template.php:
|
151 |
msgid "Post ID (comma-deliminated)"
|
152 |
msgstr ""
|
153 |
|
154 |
-
#: custom-field-template/custom-field-template.php:
|
155 |
-
#: custom-field-template/custom-field-template.php:
|
156 |
msgid "Category ID (comma-deliminated)"
|
157 |
msgstr ""
|
158 |
|
159 |
-
#: custom-field-template/custom-field-template.php:
|
160 |
msgid "Page Template file name(s) (comma-deliminated)"
|
161 |
msgstr ""
|
162 |
|
163 |
-
#: custom-field-template/custom-field-template.php:
|
164 |
msgid "Template Content"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#: custom-field-template/custom-field-template.php:
|
168 |
-
#: custom-field-template/custom-field-template.php:
|
169 |
-
#: custom-field-template/custom-field-template.php:
|
170 |
-
#: custom-field-template/custom-field-template.php:
|
171 |
-
#: custom-field-template/custom-field-template.php:
|
172 |
-
#: custom-field-template/custom-field-template.php:
|
173 |
msgid "Update Options »"
|
174 |
msgstr ""
|
175 |
|
176 |
-
#: custom-field-template/custom-field-template.php:
|
177 |
msgid "Global Settings"
|
178 |
msgstr ""
|
179 |
|
180 |
-
#: custom-field-template/custom-field-template.php:
|
181 |
msgid "In case that you would like to replace custom keys by labels if `label` is set"
|
182 |
msgstr ""
|
183 |
|
184 |
-
#: custom-field-template/custom-field-template.php:
|
185 |
msgid "Use labels in place of custom keys"
|
186 |
msgstr ""
|
187 |
|
188 |
-
#: custom-field-template/custom-field-template.php:
|
189 |
msgid "In case that you would like to add p and br tags in textareas automatically"
|
190 |
msgstr ""
|
191 |
|
192 |
-
#: custom-field-template/custom-field-template.php:
|
193 |
msgid "Use wpautop function"
|
194 |
msgstr ""
|
195 |
|
196 |
-
#: custom-field-template/custom-field-template.php:
|
197 |
msgid "In case that you would like to save values automatically in switching templates"
|
198 |
msgstr ""
|
199 |
|
200 |
-
#: custom-field-template/custom-field-template.php:
|
201 |
msgid "Use the auto save in switching templates"
|
202 |
msgstr ""
|
203 |
|
204 |
-
#: custom-field-template/custom-field-template.php:
|
205 |
msgid "In case that you would like to disable input fields of the custom field template temporarily"
|
206 |
msgstr ""
|
207 |
|
208 |
-
#: custom-field-template/custom-field-template.php:
|
209 |
msgid "Use the `Disable` button. The default custom fields will be superseded."
|
210 |
msgstr ""
|
211 |
|
212 |
-
#: custom-field-template/custom-field-template.php:
|
213 |
msgid "In case that you would like to forbid to use the initialize button."
|
214 |
msgstr ""
|
215 |
|
216 |
-
#: custom-field-template/custom-field-template.php:
|
217 |
msgid "Disable the initialize button"
|
218 |
msgstr ""
|
219 |
|
220 |
-
#: custom-field-template/custom-field-template.php:
|
221 |
msgid "In case that you would like to forbid to use the save button."
|
222 |
msgstr ""
|
223 |
|
224 |
-
#: custom-field-template/custom-field-template.php:
|
225 |
msgid "Disable the save button"
|
226 |
msgstr ""
|
227 |
|
228 |
-
#: custom-field-template/custom-field-template.php:
|
229 |
msgid "In case that you would like to forbid to use the default custom fields."
|
230 |
msgstr ""
|
231 |
|
232 |
-
#: custom-field-template/custom-field-template.php:
|
233 |
msgid "Disable the default custom fields"
|
234 |
msgstr ""
|
235 |
|
236 |
-
#: custom-field-template/custom-field-template.php:
|
237 |
msgid "In case that you would like to forbid to use the quick edit."
|
238 |
msgstr ""
|
239 |
|
240 |
-
#: custom-field-template/custom-field-template.php:
|
241 |
msgid "Disable the quick edit"
|
242 |
msgstr ""
|
243 |
|
244 |
-
#: custom-field-template/custom-field-template.php:
|
245 |
msgid "In case that you would like to forbid to display the custom field column on the edit post list page."
|
246 |
msgstr ""
|
247 |
|
248 |
-
#: custom-field-template/custom-field-template.php:
|
249 |
msgid "Disable the custom field column (The quick edit also does not work.)"
|
250 |
msgstr ""
|
251 |
|
252 |
-
#: custom-field-template/custom-field-template.php:
|
253 |
msgid "In case that you would like to replace the box title with the template title."
|
254 |
msgstr ""
|
255 |
|
256 |
-
#: custom-field-template/custom-field-template.php:
|
257 |
msgid "Replace the box title"
|
258 |
msgstr ""
|
259 |
|
260 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
261 |
msgid "In case that you would like to use the shortcode in the widget."
|
262 |
msgstr ""
|
263 |
|
264 |
-
#: custom-field-template/custom-field-template.php:
|
265 |
msgid "Use the shortcode in the widget"
|
266 |
msgstr ""
|
267 |
|
268 |
-
#: custom-field-template/custom-field-template.php:
|
269 |
msgid "In case that you would like to use the shortcode in the excerpt."
|
270 |
msgstr ""
|
271 |
|
272 |
-
#: custom-field-template/custom-field-template.php:
|
273 |
msgid "Use the shortcode in the excerpt"
|
274 |
msgstr ""
|
275 |
|
276 |
-
#: custom-field-template/custom-field-template.php:
|
277 |
msgid "In case that you would like to use the jQuery validation."
|
278 |
msgstr ""
|
279 |
|
280 |
-
#: custom-field-template/custom-field-template.php:
|
281 |
msgid "Use the jQuery validation"
|
282 |
msgstr ""
|
283 |
|
284 |
-
#: custom-field-template/custom-field-template.php:
|
285 |
msgid "Text to place before every list which is called by the cft shortcode"
|
286 |
msgstr ""
|
287 |
|
288 |
-
#: custom-field-template/custom-field-template.php:
|
289 |
msgid "Text to place after every list which is called by the cft shortcode"
|
290 |
msgstr ""
|
291 |
|
292 |
-
#: custom-field-template/custom-field-template.php:
|
293 |
msgid "Text to place before every value which is called by the cft shortcode"
|
294 |
msgstr ""
|
295 |
|
296 |
-
#: custom-field-template/custom-field-template.php:
|
297 |
msgid "Text to place after every value which is called by the cft shortcode"
|
298 |
msgstr ""
|
299 |
|
300 |
-
#: custom-field-template/custom-field-template.php:
|
301 |
msgid "In case that you would like to hide the advertisement right column."
|
302 |
msgstr ""
|
303 |
|
304 |
-
#: custom-field-template/custom-field-template.php:
|
305 |
msgid "I want to use a wider screen."
|
306 |
msgstr ""
|
307 |
|
308 |
-
#: custom-field-template/custom-field-template.php:
|
309 |
msgid "ADMIN CSS"
|
310 |
msgstr ""
|
311 |
|
312 |
-
#: custom-field-template/custom-field-template.php:
|
313 |
msgid "[cft] and [cftsearch] Shortcode Format"
|
314 |
msgstr ""
|
315 |
|
316 |
-
#: custom-field-template/custom-field-template.php:
|
317 |
msgid "For [cft], [key] will be converted into the value of [key]."
|
318 |
msgstr ""
|
319 |
|
320 |
-
#: custom-field-template/custom-field-template.php:
|
321 |
msgid "For [cftsearch], [key] will be converted into the input field."
|
322 |
msgstr ""
|
323 |
|
324 |
-
#: custom-field-template/custom-field-template.php:
|
325 |
-
#: custom-field-template/custom-field-template.php:
|
326 |
msgid "Use PHP"
|
327 |
msgstr ""
|
328 |
|
329 |
-
#: custom-field-template/custom-field-template.php:
|
330 |
msgid "PHP CODE (Experimental Option)"
|
331 |
msgstr ""
|
332 |
|
333 |
-
#: custom-field-template/custom-field-template.php:
|
334 |
msgid "Are you sure to save PHP codes? Please do it at your own risk."
|
335 |
msgstr ""
|
336 |
|
337 |
-
#: custom-field-template/custom-field-template.php:
|
338 |
msgid "For `text` and `textarea`, you must set $value as an string."
|
339 |
msgstr ""
|
340 |
|
341 |
-
#: custom-field-template/custom-field-template.php:
|
342 |
msgid "For `checkbox`, `radio`, and `select`, you must set $values as an array."
|
343 |
msgstr ""
|
344 |
|
345 |
-
#: custom-field-template/custom-field-template.php:
|
346 |
msgid "Auto Hook of `the_content()` (Experimental Option)"
|
347 |
msgstr ""
|
348 |
|
349 |
-
#: custom-field-template/custom-field-template.php:
|
350 |
msgid "Position"
|
351 |
msgstr ""
|
352 |
|
353 |
-
#: custom-field-template/custom-field-template.php:
|
354 |
msgid "Before the content"
|
355 |
msgstr ""
|
356 |
|
357 |
-
#: custom-field-template/custom-field-template.php:
|
358 |
msgid "After the content"
|
359 |
msgstr ""
|
360 |
|
361 |
-
#: custom-field-template/custom-field-template.php:
|
362 |
#, php-format
|
363 |
msgid "Inside the content ([cfthook hook=%d])"
|
364 |
msgstr ""
|
365 |
|
366 |
-
#: custom-field-template/custom-field-template.php:
|
367 |
msgid "Content"
|
368 |
msgstr ""
|
369 |
|
370 |
-
#: custom-field-template/custom-field-template.php:
|
371 |
msgid "Apply to feeds"
|
372 |
msgstr ""
|
373 |
|
374 |
-
#: custom-field-template/custom-field-template.php:
|
375 |
msgid "Rebuild Value Counts"
|
376 |
msgstr ""
|
377 |
|
378 |
-
#: custom-field-template/custom-field-template.php:
|
379 |
msgid "Are you sure to rebuild all value counts?"
|
380 |
msgstr ""
|
381 |
|
382 |
-
#: custom-field-template/custom-field-template.php:
|
383 |
msgid "Value Counts are used for temporarily saving how many values in each key. Set `valueCount = true` into fields."
|
384 |
msgstr ""
|
385 |
|
386 |
-
#: custom-field-template/custom-field-template.php:
|
387 |
msgid "Rebuild Value Counts »"
|
388 |
msgstr ""
|
389 |
|
390 |
-
#: custom-field-template/custom-field-template.php:
|
391 |
msgid "Rebuild Tags"
|
392 |
msgstr ""
|
393 |
|
394 |
-
#: custom-field-template/custom-field-template.php:
|
395 |
msgid "Are you sure to rebuild tags?"
|
396 |
msgstr ""
|
397 |
|
398 |
-
#: custom-field-template/custom-field-template.php:
|
399 |
msgid "Rebuild Tags »"
|
400 |
msgstr ""
|
401 |
|
402 |
-
#: custom-field-template/custom-field-template.php:
|
403 |
msgid "Option List"
|
404 |
msgstr ""
|
405 |
|
406 |
-
#: custom-field-template/custom-field-template.php:
|
407 |
msgid "Export Options"
|
408 |
msgstr ""
|
409 |
|
410 |
-
#: custom-field-template/custom-field-template.php:
|
411 |
msgid "Export Options »"
|
412 |
msgstr ""
|
413 |
|
414 |
-
#: custom-field-template/custom-field-template.php:
|
415 |
msgid "Import Options"
|
416 |
msgstr ""
|
417 |
|
418 |
-
#: custom-field-template/custom-field-template.php:
|
419 |
msgid "Are you sure to import options? Options you set will be overwritten."
|
420 |
msgstr ""
|
421 |
|
422 |
-
#: custom-field-template/custom-field-template.php:
|
423 |
msgid "Import Options »"
|
424 |
msgstr ""
|
425 |
|
426 |
-
#: custom-field-template/custom-field-template.php:
|
427 |
msgid "Reset Options"
|
428 |
msgstr ""
|
429 |
|
430 |
-
#: custom-field-template/custom-field-template.php:
|
431 |
msgid "Are you sure to reset options? Options you set will be reset to the default settings."
|
432 |
msgstr ""
|
433 |
|
434 |
-
#: custom-field-template/custom-field-template.php:
|
435 |
msgid "Reset Options »"
|
436 |
msgstr ""
|
437 |
|
438 |
-
#: custom-field-template/custom-field-template.php:
|
439 |
msgid "Delete Options"
|
440 |
msgstr ""
|
441 |
|
442 |
-
#: custom-field-template/custom-field-template.php:
|
443 |
msgid "Are you sure to delete options? Options you set will be deleted."
|
444 |
msgstr ""
|
445 |
|
446 |
-
#: custom-field-template/custom-field-template.php:
|
447 |
msgid "Delete Options »"
|
448 |
msgstr ""
|
449 |
|
450 |
-
#: custom-field-template/custom-field-template.php:
|
451 |
msgid "Donation"
|
452 |
msgstr ""
|
453 |
|
454 |
-
#: custom-field-template/custom-field-template.php:
|
455 |
msgid "If you liked this plugin, please make a donation via paypal! Any amount is welcome. Your support is much appreciated."
|
456 |
msgstr ""
|
457 |
|
458 |
-
#: custom-field-template/custom-field-template.php:
|
459 |
msgid "CMS x WP"
|
460 |
msgstr ""
|
461 |
|
462 |
-
#: custom-field-template/custom-field-template.php:
|
463 |
msgid "There are much more plugins which are useful for developing business websites such as membership sites or ec sites. You could totally treat WordPress as CMS by use of CMS x WP plugins."
|
464 |
msgstr ""
|
465 |
|
466 |
-
#: custom-field-template/custom-field-template.php:
|
467 |
msgid "WordPress plugin sales site: CMS x WP"
|
468 |
msgstr ""
|
469 |
|
470 |
-
#: custom-field-template/custom-field-template.php:
|
471 |
-
#: custom-field-template/custom-field-template.php:
|
472 |
-
#: custom-field-template/custom-field-template.php:
|
473 |
-
#: custom-field-template/custom-field-template.php:
|
474 |
-
#: custom-field-template/custom-field-template.php:
|
475 |
-
#: custom-field-template/custom-field-template.php:
|
476 |
-
#: custom-field-template/custom-field-template.php:
|
477 |
msgid "Add New"
|
478 |
msgstr ""
|
479 |
|
480 |
-
#: custom-field-template/custom-field-template.php:
|
481 |
msgid "Clear"
|
482 |
msgstr ""
|
483 |
|
484 |
-
#: custom-field-template/custom-field-template.php:
|
485 |
msgid "Select"
|
486 |
msgstr ""
|
487 |
|
488 |
-
#: custom-field-template/custom-field-template.php:
|
489 |
msgid "Add an Image"
|
490 |
msgstr ""
|
491 |
|
492 |
-
#: custom-field-template/custom-field-template.php:
|
493 |
msgid "Add Video"
|
494 |
msgstr ""
|
495 |
|
496 |
-
#: custom-field-template/custom-field-template.php:
|
497 |
msgid "Add Audio"
|
498 |
msgstr ""
|
499 |
|
500 |
-
#: custom-field-template/custom-field-template.php:
|
501 |
-
#: custom-field-template/custom-field-template.php:
|
502 |
msgid "Add Media"
|
503 |
msgstr ""
|
504 |
|
505 |
-
#: custom-field-template/custom-field-template.php:
|
506 |
msgid "Toggle"
|
507 |
msgstr ""
|
508 |
|
509 |
-
#: custom-field-template/custom-field-template.php:
|
510 |
msgid " OR "
|
511 |
msgstr ""
|
512 |
|
513 |
-
#: custom-field-template/custom-field-template.php:
|
514 |
msgid "Select by Media Picker"
|
515 |
msgstr ""
|
516 |
|
517 |
-
#: custom-field-template/custom-field-template.php:
|
518 |
-
#: custom-field-template/custom-field-template.php:
|
519 |
msgid "Delete"
|
520 |
msgstr ""
|
521 |
|
522 |
-
#: custom-field-template/custom-field-template.php:
|
523 |
msgid "Enable"
|
524 |
msgstr ""
|
525 |
|
526 |
-
#: custom-field-template/custom-field-template.php:
|
527 |
msgid "Initialize"
|
528 |
msgstr ""
|
529 |
|
530 |
-
#: custom-field-template/custom-field-template.php:
|
531 |
msgid "Are you sure to reset current values? Default values will be loaded."
|
532 |
msgstr ""
|
533 |
|
534 |
-
#: custom-field-template/custom-field-template.php:
|
535 |
msgid "Save"
|
536 |
msgstr ""
|
537 |
|
538 |
-
#: custom-field-template/custom-field-template.php:
|
539 |
msgid "Search »"
|
540 |
msgstr ""
|
541 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Custom Field Template\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2012-04-09 15:12+0900\n"
|
6 |
+
"PO-Revision-Date: 2012-04-09 15:12+0900\n"
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
13 |
"X-Poedit-Basepath: ../\n"
|
14 |
"X-Poedit-SearchPath-0: custom-field-template\n"
|
15 |
|
16 |
+
#: custom-field-template/custom-field-template.php:167
|
17 |
+
#: custom-field-template/custom-field-template.php:190
|
18 |
+
#: custom-field-template/custom-field-template.php:191
|
19 |
+
#: custom-field-template/custom-field-template.php:209
|
20 |
+
#: custom-field-template/custom-field-template.php:840
|
21 |
+
#: custom-field-template/custom-field-template.php:1123
|
22 |
+
#: custom-field-template/custom-field-template.php:2553
|
23 |
+
#: custom-field-template/custom-field-template.php:2645
|
24 |
msgid "Custom Field Template"
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: custom-field-template/custom-field-template.php:225
|
28 |
msgid "Media Picker"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: custom-field-template/custom-field-template.php:227
|
32 |
msgid "Use this"
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: custom-field-template/custom-field-template.php:329
|
36 |
+
#: custom-field-template/custom-field-template.php:2854
|
37 |
msgid "Load"
|
38 |
msgstr ""
|
39 |
|
40 |
+
#: custom-field-template/custom-field-template.php:661
|
41 |
msgid "read more"
|
42 |
msgstr ""
|
43 |
|
44 |
+
#: custom-field-template/custom-field-template.php:679
|
45 |
+
#: custom-field-template/custom-field-template.php:689
|
46 |
msgid "Custom Fields"
|
47 |
msgstr ""
|
48 |
|
49 |
+
#: custom-field-template/custom-field-template.php:721
|
50 |
msgid "Settings"
|
51 |
msgstr ""
|
52 |
|
53 |
+
#: custom-field-template/custom-field-template.php:760
|
54 |
msgid "Default Template"
|
55 |
msgstr ""
|
56 |
|
57 |
+
#: custom-field-template/custom-field-template.php:974
|
58 |
msgid "You can not use the following words as the field key: `content`, `post_title`, and `excerpt`, and `action`."
|
59 |
msgstr ""
|
60 |
|
61 |
+
#: custom-field-template/custom-field-template.php:989
|
62 |
+
#: custom-field-template/custom-field-template.php:1019
|
63 |
+
#: custom-field-template/custom-field-template.php:1023
|
64 |
+
#: custom-field-template/custom-field-template.php:1035
|
65 |
+
#: custom-field-template/custom-field-template.php:1043
|
66 |
+
#: custom-field-template/custom-field-template.php:1060
|
67 |
msgid "Options updated."
|
68 |
msgstr ""
|
69 |
|
70 |
+
#: custom-field-template/custom-field-template.php:1064
|
71 |
msgid "Value Counts rebuilt."
|
72 |
msgstr ""
|
73 |
|
74 |
+
#: custom-field-template/custom-field-template.php:1067
|
75 |
msgid "Tags rebuilt."
|
76 |
msgstr ""
|
77 |
|
78 |
+
#: custom-field-template/custom-field-template.php:1076
|
79 |
msgid "Options imported."
|
80 |
msgstr ""
|
81 |
|
82 |
+
#: custom-field-template/custom-field-template.php:1083
|
83 |
msgid "Options resetted."
|
84 |
msgstr ""
|
85 |
|
86 |
+
#: custom-field-template/custom-field-template.php:1087
|
87 |
msgid "Options deleted."
|
88 |
msgstr ""
|
89 |
|
90 |
+
#: custom-field-template/custom-field-template.php:1130
|
91 |
+
#: custom-field-template/custom-field-template.php:1176
|
92 |
+
#: custom-field-template/custom-field-template.php:1292
|
93 |
+
#: custom-field-template/custom-field-template.php:1311
|
94 |
+
#: custom-field-template/custom-field-template.php:1342
|
95 |
+
#: custom-field-template/custom-field-template.php:1375
|
96 |
+
#: custom-field-template/custom-field-template.php:1418
|
97 |
+
#: custom-field-template/custom-field-template.php:1439
|
98 |
+
#: custom-field-template/custom-field-template.php:1456
|
99 |
+
#: custom-field-template/custom-field-template.php:1630
|
100 |
+
#: custom-field-template/custom-field-template.php:1646
|
101 |
+
#: custom-field-template/custom-field-template.php:1662
|
102 |
+
#: custom-field-template/custom-field-template.php:1678
|
103 |
+
#: custom-field-template/custom-field-template.php:1697
|
104 |
+
#: custom-field-template/custom-field-template.php:1713
|
105 |
msgid "Click to toggle"
|
106 |
msgstr ""
|
107 |
|
108 |
+
#: custom-field-template/custom-field-template.php:1131
|
109 |
msgid "Custom Field Template Options"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: custom-field-template/custom-field-template.php:1141
|
113 |
+
#: custom-field-template/custom-field-template.php:2695
|
114 |
+
#: custom-field-template/custom-field-template.php:2696
|
115 |
msgid "Disable"
|
116 |
msgstr ""
|
117 |
|
118 |
+
#: custom-field-template/custom-field-template.php:1143
|
119 |
msgid "Template Title"
|
120 |
msgstr ""
|
121 |
|
122 |
+
#: custom-field-template/custom-field-template.php:1145
|
123 |
msgid "Template Instruction"
|
124 |
msgstr ""
|
125 |
|
126 |
+
#: custom-field-template/custom-field-template.php:1147
|
127 |
+
#: custom-field-template/custom-field-template.php:1393
|
128 |
msgid "Post Type"
|
129 |
msgstr ""
|
130 |
|
131 |
+
#: custom-field-template/custom-field-template.php:1149
|
132 |
+
#: custom-field-template/custom-field-template.php:1394
|
133 |
msgid "Both"
|
134 |
msgstr ""
|
135 |
|
136 |
+
#: custom-field-template/custom-field-template.php:1150
|
137 |
+
#: custom-field-template/custom-field-template.php:1395
|
138 |
msgid "Post"
|
139 |
msgstr ""
|
140 |
|
141 |
+
#: custom-field-template/custom-field-template.php:1151
|
142 |
+
#: custom-field-template/custom-field-template.php:1396
|
143 |
msgid "Page"
|
144 |
msgstr ""
|
145 |
|
146 |
+
#: custom-field-template/custom-field-template.php:1152
|
147 |
+
#: custom-field-template/custom-field-template.php:1397
|
148 |
msgid "Custom Post Type (comma-deliminated)"
|
149 |
msgstr ""
|
150 |
|
151 |
+
#: custom-field-template/custom-field-template.php:1154
|
152 |
msgid "Post ID (comma-deliminated)"
|
153 |
msgstr ""
|
154 |
|
155 |
+
#: custom-field-template/custom-field-template.php:1156
|
156 |
+
#: custom-field-template/custom-field-template.php:1399
|
157 |
msgid "Category ID (comma-deliminated)"
|
158 |
msgstr ""
|
159 |
|
160 |
+
#: custom-field-template/custom-field-template.php:1158
|
161 |
msgid "Page Template file name(s) (comma-deliminated)"
|
162 |
msgstr ""
|
163 |
|
164 |
+
#: custom-field-template/custom-field-template.php:1160
|
165 |
msgid "Template Content"
|
166 |
msgstr ""
|
167 |
|
168 |
+
#: custom-field-template/custom-field-template.php:1167
|
169 |
+
#: custom-field-template/custom-field-template.php:1283
|
170 |
+
#: custom-field-template/custom-field-template.php:1302
|
171 |
+
#: custom-field-template/custom-field-template.php:1333
|
172 |
+
#: custom-field-template/custom-field-template.php:1366
|
173 |
+
#: custom-field-template/custom-field-template.php:1409
|
174 |
msgid "Update Options »"
|
175 |
msgstr ""
|
176 |
|
177 |
+
#: custom-field-template/custom-field-template.php:1177
|
178 |
msgid "Global Settings"
|
179 |
msgstr ""
|
180 |
|
181 |
+
#: custom-field-template/custom-field-template.php:1192
|
182 |
msgid "In case that you would like to replace custom keys by labels if `label` is set"
|
183 |
msgstr ""
|
184 |
|
185 |
+
#: custom-field-template/custom-field-template.php:1193
|
186 |
msgid "Use labels in place of custom keys"
|
187 |
msgstr ""
|
188 |
|
189 |
+
#: custom-field-template/custom-field-template.php:1196
|
190 |
msgid "In case that you would like to add p and br tags in textareas automatically"
|
191 |
msgstr ""
|
192 |
|
193 |
+
#: custom-field-template/custom-field-template.php:1197
|
194 |
msgid "Use wpautop function"
|
195 |
msgstr ""
|
196 |
|
197 |
+
#: custom-field-template/custom-field-template.php:1201
|
198 |
msgid "In case that you would like to save values automatically in switching templates"
|
199 |
msgstr ""
|
200 |
|
201 |
+
#: custom-field-template/custom-field-template.php:1202
|
202 |
msgid "Use the auto save in switching templates"
|
203 |
msgstr ""
|
204 |
|
205 |
+
#: custom-field-template/custom-field-template.php:1206
|
206 |
msgid "In case that you would like to disable input fields of the custom field template temporarily"
|
207 |
msgstr ""
|
208 |
|
209 |
+
#: custom-field-template/custom-field-template.php:1207
|
210 |
msgid "Use the `Disable` button. The default custom fields will be superseded."
|
211 |
msgstr ""
|
212 |
|
213 |
+
#: custom-field-template/custom-field-template.php:1211
|
214 |
msgid "In case that you would like to forbid to use the initialize button."
|
215 |
msgstr ""
|
216 |
|
217 |
+
#: custom-field-template/custom-field-template.php:1212
|
218 |
msgid "Disable the initialize button"
|
219 |
msgstr ""
|
220 |
|
221 |
+
#: custom-field-template/custom-field-template.php:1216
|
222 |
msgid "In case that you would like to forbid to use the save button."
|
223 |
msgstr ""
|
224 |
|
225 |
+
#: custom-field-template/custom-field-template.php:1217
|
226 |
msgid "Disable the save button"
|
227 |
msgstr ""
|
228 |
|
229 |
+
#: custom-field-template/custom-field-template.php:1221
|
230 |
msgid "In case that you would like to forbid to use the default custom fields."
|
231 |
msgstr ""
|
232 |
|
233 |
+
#: custom-field-template/custom-field-template.php:1222
|
234 |
msgid "Disable the default custom fields"
|
235 |
msgstr ""
|
236 |
|
237 |
+
#: custom-field-template/custom-field-template.php:1226
|
238 |
msgid "In case that you would like to forbid to use the quick edit."
|
239 |
msgstr ""
|
240 |
|
241 |
+
#: custom-field-template/custom-field-template.php:1227
|
242 |
msgid "Disable the quick edit"
|
243 |
msgstr ""
|
244 |
|
245 |
+
#: custom-field-template/custom-field-template.php:1231
|
246 |
msgid "In case that you would like to forbid to display the custom field column on the edit post list page."
|
247 |
msgstr ""
|
248 |
|
249 |
+
#: custom-field-template/custom-field-template.php:1232
|
250 |
msgid "Disable the custom field column (The quick edit also does not work.)"
|
251 |
msgstr ""
|
252 |
|
253 |
+
#: custom-field-template/custom-field-template.php:1236
|
254 |
msgid "In case that you would like to replace the box title with the template title."
|
255 |
msgstr ""
|
256 |
|
257 |
+
#: custom-field-template/custom-field-template.php:1237
|
258 |
msgid "Replace the box title"
|
259 |
msgstr ""
|
260 |
|
261 |
+
#: custom-field-template/custom-field-template.php:1241
|
262 |
+
msgid "In case that you would like to deploy the box in each template."
|
263 |
+
msgstr ""
|
264 |
+
|
265 |
+
#: custom-field-template/custom-field-template.php:1242
|
266 |
+
msgid "Deploy the box in each template"
|
267 |
+
msgstr ""
|
268 |
+
|
269 |
+
#: custom-field-template/custom-field-template.php:1246
|
270 |
msgid "In case that you would like to use the shortcode in the widget."
|
271 |
msgstr ""
|
272 |
|
273 |
+
#: custom-field-template/custom-field-template.php:1247
|
274 |
msgid "Use the shortcode in the widget"
|
275 |
msgstr ""
|
276 |
|
277 |
+
#: custom-field-template/custom-field-template.php:1251
|
278 |
msgid "In case that you would like to use the shortcode in the excerpt."
|
279 |
msgstr ""
|
280 |
|
281 |
+
#: custom-field-template/custom-field-template.php:1252
|
282 |
msgid "Use the shortcode in the excerpt"
|
283 |
msgstr ""
|
284 |
|
285 |
+
#: custom-field-template/custom-field-template.php:1256
|
286 |
msgid "In case that you would like to use the jQuery validation."
|
287 |
msgstr ""
|
288 |
|
289 |
+
#: custom-field-template/custom-field-template.php:1257
|
290 |
msgid "Use the jQuery validation"
|
291 |
msgstr ""
|
292 |
|
293 |
+
#: custom-field-template/custom-field-template.php:1267
|
294 |
msgid "Text to place before every list which is called by the cft shortcode"
|
295 |
msgstr ""
|
296 |
|
297 |
+
#: custom-field-template/custom-field-template.php:1269
|
298 |
msgid "Text to place after every list which is called by the cft shortcode"
|
299 |
msgstr ""
|
300 |
|
301 |
+
#: custom-field-template/custom-field-template.php:1271
|
302 |
msgid "Text to place before every value which is called by the cft shortcode"
|
303 |
msgstr ""
|
304 |
|
305 |
+
#: custom-field-template/custom-field-template.php:1273
|
306 |
msgid "Text to place after every value which is called by the cft shortcode"
|
307 |
msgstr ""
|
308 |
|
309 |
+
#: custom-field-template/custom-field-template.php:1278
|
310 |
msgid "In case that you would like to hide the advertisement right column."
|
311 |
msgstr ""
|
312 |
|
313 |
+
#: custom-field-template/custom-field-template.php:1279
|
314 |
msgid "I want to use a wider screen."
|
315 |
msgstr ""
|
316 |
|
317 |
+
#: custom-field-template/custom-field-template.php:1293
|
318 |
msgid "ADMIN CSS"
|
319 |
msgstr ""
|
320 |
|
321 |
+
#: custom-field-template/custom-field-template.php:1312
|
322 |
msgid "[cft] and [cftsearch] Shortcode Format"
|
323 |
msgstr ""
|
324 |
|
325 |
+
#: custom-field-template/custom-field-template.php:1315
|
326 |
msgid "For [cft], [key] will be converted into the value of [key]."
|
327 |
msgstr ""
|
328 |
|
329 |
+
#: custom-field-template/custom-field-template.php:1316
|
330 |
msgid "For [cftsearch], [key] will be converted into the input field."
|
331 |
msgstr ""
|
332 |
|
333 |
+
#: custom-field-template/custom-field-template.php:1327
|
334 |
+
#: custom-field-template/custom-field-template.php:1402
|
335 |
msgid "Use PHP"
|
336 |
msgstr ""
|
337 |
|
338 |
+
#: custom-field-template/custom-field-template.php:1343
|
339 |
msgid "PHP CODE (Experimental Option)"
|
340 |
msgstr ""
|
341 |
|
342 |
+
#: custom-field-template/custom-field-template.php:1345
|
343 |
msgid "Are you sure to save PHP codes? Please do it at your own risk."
|
344 |
msgstr ""
|
345 |
|
346 |
+
#: custom-field-template/custom-field-template.php:1346
|
347 |
msgid "For `text` and `textarea`, you must set $value as an string."
|
348 |
msgstr ""
|
349 |
|
350 |
+
#: custom-field-template/custom-field-template.php:1348
|
351 |
msgid "For `checkbox`, `radio`, and `select`, you must set $values as an array."
|
352 |
msgstr ""
|
353 |
|
354 |
+
#: custom-field-template/custom-field-template.php:1376
|
355 |
msgid "Auto Hook of `the_content()` (Experimental Option)"
|
356 |
msgstr ""
|
357 |
|
358 |
+
#: custom-field-template/custom-field-template.php:1388
|
359 |
msgid "Position"
|
360 |
msgstr ""
|
361 |
|
362 |
+
#: custom-field-template/custom-field-template.php:1389
|
363 |
msgid "Before the content"
|
364 |
msgstr ""
|
365 |
|
366 |
+
#: custom-field-template/custom-field-template.php:1390
|
367 |
msgid "After the content"
|
368 |
msgstr ""
|
369 |
|
370 |
+
#: custom-field-template/custom-field-template.php:1391
|
371 |
#, php-format
|
372 |
msgid "Inside the content ([cfthook hook=%d])"
|
373 |
msgstr ""
|
374 |
|
375 |
+
#: custom-field-template/custom-field-template.php:1401
|
376 |
msgid "Content"
|
377 |
msgstr ""
|
378 |
|
379 |
+
#: custom-field-template/custom-field-template.php:1403
|
380 |
msgid "Apply to feeds"
|
381 |
msgstr ""
|
382 |
|
383 |
+
#: custom-field-template/custom-field-template.php:1419
|
384 |
msgid "Rebuild Value Counts"
|
385 |
msgstr ""
|
386 |
|
387 |
+
#: custom-field-template/custom-field-template.php:1421
|
388 |
msgid "Are you sure to rebuild all value counts?"
|
389 |
msgstr ""
|
390 |
|
391 |
+
#: custom-field-template/custom-field-template.php:1425
|
392 |
msgid "Value Counts are used for temporarily saving how many values in each key. Set `valueCount = true` into fields."
|
393 |
msgstr ""
|
394 |
|
395 |
+
#: custom-field-template/custom-field-template.php:1429
|
396 |
msgid "Rebuild Value Counts »"
|
397 |
msgstr ""
|
398 |
|
399 |
+
#: custom-field-template/custom-field-template.php:1440
|
400 |
msgid "Rebuild Tags"
|
401 |
msgstr ""
|
402 |
|
403 |
+
#: custom-field-template/custom-field-template.php:1442
|
404 |
msgid "Are you sure to rebuild tags?"
|
405 |
msgstr ""
|
406 |
|
407 |
+
#: custom-field-template/custom-field-template.php:1446
|
408 |
msgid "Rebuild Tags »"
|
409 |
msgstr ""
|
410 |
|
411 |
+
#: custom-field-template/custom-field-template.php:1457
|
412 |
msgid "Option List"
|
413 |
msgstr ""
|
414 |
|
415 |
+
#: custom-field-template/custom-field-template.php:1631
|
416 |
msgid "Export Options"
|
417 |
msgstr ""
|
418 |
|
419 |
+
#: custom-field-template/custom-field-template.php:1637
|
420 |
msgid "Export Options »"
|
421 |
msgstr ""
|
422 |
|
423 |
+
#: custom-field-template/custom-field-template.php:1647
|
424 |
msgid "Import Options"
|
425 |
msgstr ""
|
426 |
|
427 |
+
#: custom-field-template/custom-field-template.php:1649
|
428 |
msgid "Are you sure to import options? Options you set will be overwritten."
|
429 |
msgstr ""
|
430 |
|
431 |
+
#: custom-field-template/custom-field-template.php:1653
|
432 |
msgid "Import Options »"
|
433 |
msgstr ""
|
434 |
|
435 |
+
#: custom-field-template/custom-field-template.php:1663
|
436 |
msgid "Reset Options"
|
437 |
msgstr ""
|
438 |
|
439 |
+
#: custom-field-template/custom-field-template.php:1665
|
440 |
msgid "Are you sure to reset options? Options you set will be reset to the default settings."
|
441 |
msgstr ""
|
442 |
|
443 |
+
#: custom-field-template/custom-field-template.php:1669
|
444 |
msgid "Reset Options »"
|
445 |
msgstr ""
|
446 |
|
447 |
+
#: custom-field-template/custom-field-template.php:1679
|
448 |
msgid "Delete Options"
|
449 |
msgstr ""
|
450 |
|
451 |
+
#: custom-field-template/custom-field-template.php:1681
|
452 |
msgid "Are you sure to delete options? Options you set will be deleted."
|
453 |
msgstr ""
|
454 |
|
455 |
+
#: custom-field-template/custom-field-template.php:1685
|
456 |
msgid "Delete Options »"
|
457 |
msgstr ""
|
458 |
|
459 |
+
#: custom-field-template/custom-field-template.php:1698
|
460 |
msgid "Donation"
|
461 |
msgstr ""
|
462 |
|
463 |
+
#: custom-field-template/custom-field-template.php:1700
|
464 |
msgid "If you liked this plugin, please make a donation via paypal! Any amount is welcome. Your support is much appreciated."
|
465 |
msgstr ""
|
466 |
|
467 |
+
#: custom-field-template/custom-field-template.php:1714
|
468 |
msgid "CMS x WP"
|
469 |
msgstr ""
|
470 |
|
471 |
+
#: custom-field-template/custom-field-template.php:1716
|
472 |
msgid "There are much more plugins which are useful for developing business websites such as membership sites or ec sites. You could totally treat WordPress as CMS by use of CMS x WP plugins."
|
473 |
msgstr ""
|
474 |
|
475 |
+
#: custom-field-template/custom-field-template.php:1717
|
476 |
msgid "WordPress plugin sales site: CMS x WP"
|
477 |
msgstr ""
|
478 |
|
479 |
+
#: custom-field-template/custom-field-template.php:1812
|
480 |
+
#: custom-field-template/custom-field-template.php:1944
|
481 |
+
#: custom-field-template/custom-field-template.php:2032
|
482 |
+
#: custom-field-template/custom-field-template.php:2208
|
483 |
+
#: custom-field-template/custom-field-template.php:2210
|
484 |
+
#: custom-field-template/custom-field-template.php:2279
|
485 |
+
#: custom-field-template/custom-field-template.php:2483
|
486 |
msgid "Add New"
|
487 |
msgstr ""
|
488 |
|
489 |
+
#: custom-field-template/custom-field-template.php:1954
|
490 |
msgid "Clear"
|
491 |
msgstr ""
|
492 |
|
493 |
+
#: custom-field-template/custom-field-template.php:2048
|
494 |
msgid "Select"
|
495 |
msgstr ""
|
496 |
|
497 |
+
#: custom-field-template/custom-field-template.php:2133
|
498 |
msgid "Add an Image"
|
499 |
msgstr ""
|
500 |
|
501 |
+
#: custom-field-template/custom-field-template.php:2138
|
502 |
msgid "Add Video"
|
503 |
msgstr ""
|
504 |
|
505 |
+
#: custom-field-template/custom-field-template.php:2143
|
506 |
msgid "Add Audio"
|
507 |
msgstr ""
|
508 |
|
509 |
+
#: custom-field-template/custom-field-template.php:2147
|
510 |
+
#: custom-field-template/custom-field-template.php:2151
|
511 |
msgid "Add Media"
|
512 |
msgstr ""
|
513 |
|
514 |
+
#: custom-field-template/custom-field-template.php:2158
|
515 |
msgid "Toggle"
|
516 |
msgstr ""
|
517 |
|
518 |
+
#: custom-field-template/custom-field-template.php:2289
|
519 |
msgid " OR "
|
520 |
msgstr ""
|
521 |
|
522 |
+
#: custom-field-template/custom-field-template.php:2290
|
523 |
msgid "Select by Media Picker"
|
524 |
msgstr ""
|
525 |
|
526 |
+
#: custom-field-template/custom-field-template.php:2313
|
527 |
+
#: custom-field-template/custom-field-template.php:2485
|
528 |
msgid "Delete"
|
529 |
msgstr ""
|
530 |
|
531 |
+
#: custom-field-template/custom-field-template.php:2696
|
532 |
msgid "Enable"
|
533 |
msgstr ""
|
534 |
|
535 |
+
#: custom-field-template/custom-field-template.php:2700
|
536 |
msgid "Initialize"
|
537 |
msgstr ""
|
538 |
|
539 |
+
#: custom-field-template/custom-field-template.php:2701
|
540 |
msgid "Are you sure to reset current values? Default values will be loaded."
|
541 |
msgstr ""
|
542 |
|
543 |
+
#: custom-field-template/custom-field-template.php:2706
|
544 |
msgid "Save"
|
545 |
msgstr ""
|
546 |
|
547 |
+
#: custom-field-template/custom-field-template.php:3428
|
548 |
msgid "Search »"
|
549 |
msgstr ""
|
550 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: Hiroaki Miyashita
|
|
3 |
Donate link: http://wpgogo.com/development/custom-field-template.html
|
4 |
Tags: custom, fields, field, template, meta, custom field, custom fields, custom field template
|
5 |
Requires at least: 2.1
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag:
|
8 |
|
9 |
This plugin adds the default custom fields on the Write Post/Page.
|
10 |
|
@@ -76,6 +76,7 @@ Localization
|
|
76 |
* Polish (pl_PL) - [Difreo](http://www.difreo.pl/)
|
77 |
* Brazilian Portuguese (pt_BR) - [Caciano Gabriel](http://www.gn10.com.br/)
|
78 |
* Russian (ru_RU) - [Sonika](http://www.sonika.ru/blog/)
|
|
|
79 |
* Turkish (tr_TR) - [Omer Faruk](http://ramerta.com/)
|
80 |
* Ukranian (uk_UA) - [Andrew Kovalev](http://www.portablecomponentsforall.com)
|
81 |
* Uzbek (uz_UZ) - [Alexandra Bolshova](http://www.comfi.com/)
|
@@ -106,6 +107,12 @@ See the default template and modify it.
|
|
106 |
|
107 |
== Changelog ==
|
108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
= 1.9.9 =
|
110 |
* Code cleaning.
|
111 |
* Bugfix: image insertion using the media button.
|
3 |
Donate link: http://wpgogo.com/development/custom-field-template.html
|
4 |
Tags: custom, fields, field, template, meta, custom field, custom fields, custom field template
|
5 |
Requires at least: 2.1
|
6 |
+
Tested up to: 3.4
|
7 |
+
Stable tag: 2.0
|
8 |
|
9 |
This plugin adds the default custom fields on the Write Post/Page.
|
10 |
|
76 |
* Polish (pl_PL) - [Difreo](http://www.difreo.pl/)
|
77 |
* Brazilian Portuguese (pt_BR) - [Caciano Gabriel](http://www.gn10.com.br/)
|
78 |
* Russian (ru_RU) - [Sonika](http://www.sonika.ru/blog/)
|
79 |
+
* Swedish (sv_SE) - [Pontus Carlsson](http://www.fristil.se/)
|
80 |
* Turkish (tr_TR) - [Omer Faruk](http://ramerta.com/)
|
81 |
* Ukranian (uk_UA) - [Andrew Kovalev](http://www.portablecomponentsforall.com)
|
82 |
* Uzbek (uz_UZ) - [Alexandra Bolshova](http://www.comfi.com/)
|
107 |
|
108 |
== Changelog ==
|
109 |
|
110 |
+
= 2.0 =
|
111 |
+
* Option to deploy the box in each template. Category ID and page template file name refinement have not been supported yet.
|
112 |
+
* Swedish (sv_SE) - Pontus Carlsson
|
113 |
+
* Bugfix: save button with the tinyMCE editor.
|
114 |
+
* Bugfix: output of custom field values.
|
115 |
+
|
116 |
= 1.9.9 =
|
117 |
* Code cleaning.
|
118 |
* Bugfix: image insertion using the media button.
|