Version Description
-
file
type in order to upload images. If you set `relation
Download this release
Release Info
Developer | Hiroaki Miyashita |
Plugin | Custom Field Template |
Version | 1.4 |
Comparing to | |
See all releases |
Code changes from version 1.3.8 to 1.4
- custom-field-template-hu_HU.mo +0 -0
- custom-field-template-hu_HU.po +208 -0
- custom-field-template-ja.mo +0 -0
- custom-field-template-ja.po +139 -133
- custom-field-template-ru_RU.mo +0 -0
- custom-field-template-ru_RU.po +331 -70
- custom-field-template-uz_UZ.mo +0 -0
- custom-field-template-uz_UZ.po +184 -0
- custom-field-template.php +807 -528
- custom-field-template.pot +141 -134
- readme.txt +12 -1
custom-field-template-hu_HU.mo
ADDED
Binary file
|
custom-field-template-hu_HU.po
ADDED
@@ -0,0 +1,208 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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: 2009-09-08 11:07-1200\n"
|
7 |
+
"Last-Translator: Balázs Kovács <kobalazs@gmail.com>\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 "Egyedi mezők"
|
26 |
+
|
27 |
+
#: custom-field-template/custom-field-template.php:95
|
28 |
+
msgid "Settings"
|
29 |
+
msgstr "Beállítások"
|
30 |
+
|
31 |
+
#: custom-field-template/custom-field-template.php:106
|
32 |
+
msgid "Default Template"
|
33 |
+
msgstr "Alapértelmezett sablon"
|
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 "Beállítások frissítve."
|
41 |
+
|
42 |
+
#: custom-field-template/custom-field-template.php:223
|
43 |
+
msgid "Options resetted."
|
44 |
+
msgstr "Beállítások visszaállítva."
|
45 |
+
|
46 |
+
#: custom-field-template/custom-field-template.php:227
|
47 |
+
msgid "Options deleted."
|
48 |
+
msgstr "Beállítások törölve."
|
49 |
+
|
50 |
+
#: custom-field-template/custom-field-template.php:241
|
51 |
+
msgid "Custom Field Template Options"
|
52 |
+
msgstr "Egyedi mezők beállításai"
|
53 |
+
|
54 |
+
#: custom-field-template/custom-field-template.php:251
|
55 |
+
#, php-format
|
56 |
+
msgid "Template Title %d"
|
57 |
+
msgstr "Sablon cím %d"
|
58 |
+
|
59 |
+
#: custom-field-template/custom-field-template.php:253
|
60 |
+
#, php-format
|
61 |
+
msgid "Template Instruction %d"
|
62 |
+
msgstr "Sablon útmutató %d"
|
63 |
+
|
64 |
+
#: custom-field-template/custom-field-template.php:255
|
65 |
+
#, php-format
|
66 |
+
msgid "Template Content %d"
|
67 |
+
msgstr "Sablon tartalom %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 "Ha több képet szeretnél egyszerre beilleszteni az egyedi mezőkbe a média gombok használatával."
|
72 |
+
|
73 |
+
# Deutsche Übersetzung: Franz Josef Kaiser.
|
74 |
+
#: custom-field-template/custom-field-template.php:263
|
75 |
+
msgid "Use multiple image inset"
|
76 |
+
msgstr "Több kép beillesztése egyszerre"
|
77 |
+
|
78 |
+
#: custom-field-template/custom-field-template.php:263
|
79 |
+
msgid "Caution:"
|
80 |
+
msgstr "Figyelmeztetés: "
|
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 "Szerkesztened kell a `wp-admin/includes/media.php` fájlt. Töröld vagy kommenteld ki a kódból a media_send_to_editor függvényt!"
|
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 "Ha le szeretnéd cserélni az egyedi kulcsokat a beállított címkére."
|
89 |
+
|
90 |
+
#: custom-field-template/custom-field-template.php:268
|
91 |
+
msgid "Use labels in place of custom keys"
|
92 |
+
msgstr "Címkék használata a mezőnevek helyett."
|
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 "Ha automatikusan hozzá akarsz adni P és BR tageket a szöveges mezőkhöz."
|
97 |
+
|
98 |
+
#: custom-field-template/custom-field-template.php:272
|
99 |
+
msgid "Use wpautop function"
|
100 |
+
msgstr "A wpautop funkció használata"
|
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 "Beállítások mentése »"
|
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 "Kattints a váltáshoz"
|
117 |
+
|
118 |
+
#: custom-field-template/custom-field-template.php:286
|
119 |
+
msgid "CSS"
|
120 |
+
msgstr "CSS (stíluslap)"
|
121 |
+
|
122 |
+
#: custom-field-template/custom-field-template.php:305
|
123 |
+
msgid "[cft] Shortcode Format"
|
124 |
+
msgstr "[cft] shortcode formátum"
|
125 |
+
|
126 |
+
#: custom-field-template/custom-field-template.php:308
|
127 |
+
msgid "[key] will be converted into the value of [key]."
|
128 |
+
msgstr "[key] át lesz alakítva a [key] értékévé."
|
129 |
+
|
130 |
+
#: custom-field-template/custom-field-template.php:332
|
131 |
+
msgid "PHP CODE (Experimental Option)"
|
132 |
+
msgstr "PHP KÓD (kísérleti funkció)"
|
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 "Biztos megváltoztatod a PHP kódot? Csak saját felelősségre!"
|
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 "Ez a lehetőség csak a rádiógombokhoz és a választómezőkhöz elérhető. A $values értéke tömb kell, hogy legyen."
|
141 |
+
|
142 |
+
#: custom-field-template/custom-field-template.php:360
|
143 |
+
msgid "Option List"
|
144 |
+
msgstr "Opciók listája"
|
145 |
+
|
146 |
+
#: custom-field-template/custom-field-template.php:432
|
147 |
+
msgid "Reset Options"
|
148 |
+
msgstr "Beállítások törlése"
|
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 "Biztos törlöd az összes beállítást? Minden vissza lesz állítva gyári értékre."
|
153 |
+
|
154 |
+
#: custom-field-template/custom-field-template.php:438
|
155 |
+
msgid "Unset Options »"
|
156 |
+
msgstr "Beállítások visszaállítása »"
|
157 |
+
|
158 |
+
#: custom-field-template/custom-field-template.php:448
|
159 |
+
msgid "Delete Options"
|
160 |
+
msgstr "Beállítások törlése"
|
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 "Biztosan törlöd a beállításokat? Minden általad készített beállítás elveszik."
|
165 |
+
|
166 |
+
#: custom-field-template/custom-field-template.php:454
|
167 |
+
msgid "Delete Options »"
|
168 |
+
msgstr "Beállítások törlése »"
|
169 |
+
|
170 |
+
#: custom-field-template/custom-field-template.php:597
|
171 |
+
msgid "Clear"
|
172 |
+
msgstr "Törlés"
|
173 |
+
|
174 |
+
#: custom-field-template/custom-field-template.php:712
|
175 |
+
msgid "Add Media"
|
176 |
+
msgstr "Média hozzáadása"
|
177 |
+
|
178 |
+
#: custom-field-template/custom-field-template.php:714
|
179 |
+
msgid "Add an Image"
|
180 |
+
msgstr "Kép hozzáadása"
|
181 |
+
|
182 |
+
#: custom-field-template/custom-field-template.php:716
|
183 |
+
msgid "Add Video"
|
184 |
+
msgstr "Videó hozzáadása"
|
185 |
+
|
186 |
+
#: custom-field-template/custom-field-template.php:718
|
187 |
+
msgid "Add Audio"
|
188 |
+
msgstr "Hang hozzáadása"
|
189 |
+
|
190 |
+
#: custom-field-template/custom-field-template.php:729
|
191 |
+
msgid "Toggle"
|
192 |
+
msgstr "Nézet"
|
193 |
+
|
194 |
+
#~ msgid "Recent Posts Ext"
|
195 |
+
#~ msgstr "最近の投稿 Ext"
|
196 |
+
#~ msgid "camera"
|
197 |
+
#~ msgstr "機種"
|
198 |
+
#~ msgid "aperture"
|
199 |
+
#~ msgstr "絞り値"
|
200 |
+
#~ msgid "focal_length"
|
201 |
+
#~ msgstr "焦点距離"
|
202 |
+
#~ msgid "ISO"
|
203 |
+
#~ msgstr "ISO"
|
204 |
+
#~ msgid "shutter_speed"
|
205 |
+
#~ msgstr "シャッタースピード"
|
206 |
+
#~ msgid "created_timestamp"
|
207 |
+
#~ msgstr "撮影日時"
|
208 |
+
|
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: 2009-
|
6 |
-
"PO-Revision-Date: 2009-
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -18,421 +18,427 @@ msgstr ""
|
|
18 |
|
19 |
#: custom-field-template/custom-field-template.php:125
|
20 |
#: custom-field-template/custom-field-template.php:126
|
21 |
-
#: custom-field-template/custom-field-template.php:
|
22 |
-
#: custom-field-template/custom-field-template.php:
|
23 |
-
#: custom-field-template/custom-field-template.php:
|
24 |
-
#: custom-field-template/custom-field-template.php:
|
25 |
msgid "Custom Field Template"
|
26 |
msgstr "カスタムフィールドテンプレート"
|
27 |
|
28 |
-
#: custom-field-template/custom-field-template.php:
|
29 |
-
#: custom-field-template/custom-field-template.php:
|
30 |
msgid "Load"
|
31 |
msgstr "読込"
|
32 |
|
33 |
-
#: custom-field-template/custom-field-template.php:
|
34 |
msgid "read more"
|
35 |
msgstr "続きを表示"
|
36 |
|
37 |
-
#: custom-field-template/custom-field-template.php:
|
38 |
-
#: custom-field-template/custom-field-template.php:
|
39 |
msgid "Custom Fields"
|
40 |
msgstr "カスタムフィールド"
|
41 |
|
42 |
-
#: custom-field-template/custom-field-template.php:
|
43 |
msgid "Settings"
|
44 |
msgstr "設定"
|
45 |
|
46 |
-
#: custom-field-template/custom-field-template.php:
|
47 |
msgid "Default Template"
|
48 |
msgstr "デフォルトテンプレート"
|
49 |
|
50 |
-
#: custom-field-template/custom-field-template.php:
|
51 |
-
#: custom-field-template/custom-field-template.php:
|
52 |
-
#: custom-field-template/custom-field-template.php:
|
53 |
-
#: custom-field-template/custom-field-template.php:
|
54 |
-
#: custom-field-template/custom-field-template.php:
|
55 |
msgid "Options updated."
|
56 |
msgstr "オプションは更新されました。"
|
57 |
|
58 |
-
#: custom-field-template/custom-field-template.php:
|
59 |
msgid "Value Counts rebuilt."
|
60 |
msgstr "バリューカウントは再構築されました。"
|
61 |
|
62 |
-
#: custom-field-template/custom-field-template.php:
|
63 |
msgid "Tags rebuilt."
|
64 |
msgstr "タグは再構築されました。"
|
65 |
|
66 |
-
#: custom-field-template/custom-field-template.php:
|
67 |
msgid "Options imported."
|
68 |
msgstr "オプションはインポートされました。"
|
69 |
|
70 |
-
#: custom-field-template/custom-field-template.php:
|
71 |
msgid "Options resetted."
|
72 |
msgstr "オプションはリセットされました。"
|
73 |
|
74 |
-
#: custom-field-template/custom-field-template.php:
|
75 |
msgid "Options deleted."
|
76 |
msgstr "オプションは削除されました。"
|
77 |
|
78 |
-
#: custom-field-template/custom-field-template.php:
|
79 |
-
#: custom-field-template/custom-field-template.php:
|
80 |
-
#: custom-field-template/custom-field-template.php:
|
81 |
-
#: custom-field-template/custom-field-template.php:
|
82 |
-
#: custom-field-template/custom-field-template.php:
|
83 |
-
#: custom-field-template/custom-field-template.php:
|
84 |
-
#: custom-field-template/custom-field-template.php:911
|
85 |
#: custom-field-template/custom-field-template.php:928
|
86 |
-
#: custom-field-template/custom-field-template.php:
|
87 |
-
#: custom-field-template/custom-field-template.php:
|
88 |
-
#: custom-field-template/custom-field-template.php:
|
89 |
-
#: custom-field-template/custom-field-template.php:
|
90 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
91 |
msgid "Click to toggle"
|
92 |
msgstr "クリックで切替"
|
93 |
|
94 |
-
#: custom-field-template/custom-field-template.php:
|
95 |
msgid "Custom Field Template Options"
|
96 |
msgstr "カスタムフィールドテンプレートオプション"
|
97 |
|
98 |
-
#: custom-field-template/custom-field-template.php:
|
99 |
msgid "Template Title"
|
100 |
msgstr "テンプレートタイトル"
|
101 |
|
102 |
-
#: custom-field-template/custom-field-template.php:
|
103 |
msgid "Template Instruction"
|
104 |
msgstr "テンプレートインストラクション"
|
105 |
|
106 |
-
#: custom-field-template/custom-field-template.php:
|
107 |
-
#: custom-field-template/custom-field-template.php:
|
108 |
msgid "Post Type"
|
109 |
msgstr "投稿タイプ"
|
110 |
|
111 |
-
#: custom-field-template/custom-field-template.php:
|
112 |
-
#: custom-field-template/custom-field-template.php:
|
113 |
msgid "Both"
|
114 |
msgstr "両方"
|
115 |
|
116 |
-
#: custom-field-template/custom-field-template.php:
|
117 |
-
#: custom-field-template/custom-field-template.php:
|
118 |
msgid "Post"
|
119 |
msgstr "投稿"
|
120 |
|
121 |
-
#: custom-field-template/custom-field-template.php:
|
122 |
-
#: custom-field-template/custom-field-template.php:
|
123 |
msgid "Page"
|
124 |
msgstr "ページ"
|
125 |
|
126 |
-
#: custom-field-template/custom-field-template.php:
|
127 |
msgid "Post ID (comma-deliminated)"
|
128 |
msgstr "Post ID (カンマ区切り)"
|
129 |
|
130 |
-
#: custom-field-template/custom-field-template.php:
|
131 |
-
#: custom-field-template/custom-field-template.php:
|
132 |
msgid "Category ID (comma-deliminated)"
|
133 |
msgstr "カテゴリーID (カンマ区切り)"
|
134 |
|
135 |
-
#: custom-field-template/custom-field-template.php:
|
136 |
msgid "Page Template file name(s) (comma-deliminated)"
|
137 |
msgstr "ページテンプレートファイル名 (カンマ区切り)"
|
138 |
|
139 |
-
#: custom-field-template/custom-field-template.php:
|
140 |
msgid "Template Content"
|
141 |
msgstr "テンプレートコンテンツ"
|
142 |
|
143 |
-
#: custom-field-template/custom-field-template.php:
|
144 |
msgid "In case that you would like to insert multiple images at once in use of the custom field media buttons"
|
145 |
msgstr "カスタムフィールへの画像挿入を一度に複数枚実行する場合"
|
146 |
|
147 |
-
#: custom-field-template/custom-field-template.php:
|
148 |
msgid "Use multiple image inset"
|
149 |
msgstr "複数画像挿入を利用する"
|
150 |
|
151 |
-
#: custom-field-template/custom-field-template.php:
|
152 |
msgid "Caution:"
|
153 |
msgstr "ご注意:"
|
154 |
|
155 |
-
#: custom-field-template/custom-field-template.php:
|
156 |
msgid "You need to edit `wp-admin/includes/media.php`. Delete or comment out the code in the function media_send_to_editor."
|
157 |
msgstr "`wp-admin/includes/media.php`を編集する必要があります。media_send_to_editor関数の中身を削除するかコメントアウトしてください。"
|
158 |
|
159 |
-
#: custom-field-template/custom-field-template.php:
|
160 |
msgid "In case that you would like to replace custom keys by labels if `label` is set"
|
161 |
msgstr "`label`がセットされていて、カスタムフィールドのキーの代わりにラベルを表示したい場合"
|
162 |
|
163 |
-
#: custom-field-template/custom-field-template.php:
|
164 |
msgid "Use labels in place of custom keys"
|
165 |
msgstr "カスタムフィールドのキーの代わりにラベルを使用する"
|
166 |
|
167 |
-
#: custom-field-template/custom-field-template.php:
|
168 |
msgid "In case that you would like to add p and br tags in textareas automatically"
|
169 |
msgstr "テキストエリアでpタグ、brタグを自動的に追加したい場合"
|
170 |
|
171 |
-
#: custom-field-template/custom-field-template.php:
|
172 |
msgid "Use wpautop function"
|
173 |
msgstr "wpautop関数を使用する"
|
174 |
|
175 |
-
#: custom-field-template/custom-field-template.php:
|
176 |
msgid "In case that you would like to save values automatically in switching templates"
|
177 |
msgstr "テンプレート切替時自動で保存したい場合"
|
178 |
|
179 |
-
#: custom-field-template/custom-field-template.php:
|
180 |
msgid "Use the auto save in switching templates"
|
181 |
msgstr "テンプレート切替時の自動保存を使用する"
|
182 |
|
183 |
-
#: custom-field-template/custom-field-template.php:
|
184 |
msgid "In case that you would like to forbid to use the default custom fields."
|
185 |
msgstr "デフォルトのカスタムフィールドの使用を禁止する場合"
|
186 |
|
187 |
-
#: custom-field-template/custom-field-template.php:
|
188 |
msgid "Disable the default custom fields"
|
189 |
msgstr "デフォルトのカスタムフィールドを無効にする"
|
190 |
|
191 |
-
#: custom-field-template/custom-field-template.php:
|
192 |
msgid "In case that you would like to forbid to use the quick edit."
|
193 |
msgstr "クイック編集の使用を禁止する場合"
|
194 |
|
195 |
-
#: custom-field-template/custom-field-template.php:
|
196 |
msgid "Disable the quick edit"
|
197 |
msgstr "クイック編集を無効にする"
|
198 |
|
199 |
-
#: custom-field-template/custom-field-template.php:
|
200 |
msgid "In case that you would like to forbid to display the custom field column on the edit post list page."
|
201 |
msgstr "編集リストページのカスタムフィールドコラムの表示を禁止する場合"
|
202 |
|
203 |
-
#: custom-field-template/custom-field-template.php:
|
204 |
msgid "Disable the custom field column (The quick edit also does not work.)"
|
205 |
msgstr "カスタムフィールドコラムを無効にする(クイック編集も動きません)"
|
206 |
|
207 |
-
#: custom-field-template/custom-field-template.php:
|
208 |
msgid "In case that you would like to replace the box title with the template title."
|
209 |
msgstr "ボックスタイトルをテンプレートタイトルで置き換える場合"
|
210 |
|
211 |
-
#: custom-field-template/custom-field-template.php:
|
212 |
msgid "Replace the box title"
|
213 |
msgstr "ボックスタイトルを置き換える"
|
214 |
|
215 |
-
#: custom-field-template/custom-field-template.php:
|
216 |
msgid "In case that you would like to use the shortcode in the widget."
|
217 |
msgstr "ショートコードをウィジェットで使用したい場合"
|
218 |
|
219 |
-
#: custom-field-template/custom-field-template.php:
|
220 |
msgid "Use the shortcode in the widget"
|
221 |
msgstr "ショートコードをウィジェットで使用する"
|
222 |
|
223 |
-
#: custom-field-template/custom-field-template.php:
|
224 |
msgid "In case that you would like to use the shortcode in the excerpt."
|
225 |
msgstr "ショートコードを抜粋で使用したい場合"
|
226 |
|
227 |
-
#: custom-field-template/custom-field-template.php:
|
228 |
msgid "Use the shortcode in the excerpt"
|
229 |
msgstr "ショートコードを抜粋で使用する"
|
230 |
|
231 |
-
#: custom-field-template/custom-field-template.php:
|
232 |
-
#: custom-field-template/custom-field-template.php:
|
233 |
-
#: custom-field-template/custom-field-template.php:
|
234 |
-
#: custom-field-template/custom-field-template.php:
|
235 |
-
#: custom-field-template/custom-field-template.php:
|
236 |
msgid "Update Options »"
|
237 |
msgstr "オプションを更新する »"
|
238 |
|
239 |
-
#: custom-field-template/custom-field-template.php:
|
240 |
msgid "ADMIN CSS"
|
241 |
msgstr "ADMIN CSS"
|
242 |
|
243 |
-
#: custom-field-template/custom-field-template.php:
|
244 |
msgid "[cft] and [cftsearch] Shortcode Format"
|
245 |
msgstr "[cft] and [cftsearch] Shortcode Format"
|
246 |
|
247 |
-
#: custom-field-template/custom-field-template.php:
|
248 |
msgid "For [cft], [key] will be converted into the value of [key]."
|
249 |
msgstr "[cft]では、[key]は、[key]の値に置換されます。"
|
250 |
|
251 |
-
#: custom-field-template/custom-field-template.php:
|
252 |
msgid "For [cftsearch], [key] will be converted into the input field."
|
253 |
msgstr "[cftsearch]では、[key]は、インプットフィールドに置換されます。"
|
254 |
|
255 |
-
#: custom-field-template/custom-field-template.php:
|
256 |
-
#: custom-field-template/custom-field-template.php:
|
257 |
msgid "Use PHP"
|
258 |
msgstr "PHPを使用する"
|
259 |
|
260 |
-
#: custom-field-template/custom-field-template.php:
|
261 |
msgid "PHP CODE (Experimental Option)"
|
262 |
msgstr "PHP CODE (Experimental Option)"
|
263 |
|
264 |
-
#: custom-field-template/custom-field-template.php:
|
265 |
msgid "Are you sure to save PHP codes? Please do it at your own risk."
|
266 |
msgstr "PHPコードを保存してよろしいですか?自己責任で実行してください。"
|
267 |
|
268 |
-
#: custom-field-template/custom-field-template.php:
|
269 |
msgid "For `text` and `textarea`, you must set $value as an string."
|
270 |
msgstr "`text`と`textarea`は$valueを文字列としてセットしてください。"
|
271 |
|
272 |
-
#: custom-field-template/custom-field-template.php:
|
273 |
msgid "For `checkbox`, `radio`, and `select`, you must set $values as an array."
|
274 |
msgstr "`checkbox`、`radio`、`select`では、配列として$valuesをセットしてください。"
|
275 |
|
276 |
-
#: custom-field-template/custom-field-template.php:
|
277 |
msgid "Auto Hook of `the_content()` (Experimental Option)"
|
278 |
msgstr "Auto Hook of `the_content()` (Experimental Option)"
|
279 |
|
280 |
-
#: custom-field-template/custom-field-template.php:
|
281 |
msgid "Position"
|
282 |
msgstr "位置"
|
283 |
|
284 |
-
#: custom-field-template/custom-field-template.php:
|
285 |
msgid "Before the conetnt"
|
286 |
msgstr "コンテンツの前"
|
287 |
|
288 |
-
#: custom-field-template/custom-field-template.php:
|
289 |
msgid "After the conetnt"
|
290 |
msgstr "コンテンツの後"
|
291 |
|
292 |
-
#: custom-field-template/custom-field-template.php:
|
293 |
#, php-format
|
294 |
msgid "Inside the conetnt ([cfthook hook=%d])"
|
295 |
msgstr "コンテンツの中 ([cfthook hook=%d])"
|
296 |
|
297 |
-
#: custom-field-template/custom-field-template.php:
|
298 |
msgid "Content"
|
299 |
msgstr "コンテンツ"
|
300 |
|
301 |
-
#: custom-field-template/custom-field-template.php:
|
302 |
msgid "Apply to feeds"
|
303 |
msgstr "フィードに適用する"
|
304 |
|
305 |
-
#: custom-field-template/custom-field-template.php:
|
306 |
msgid "Rebuild Value Counts"
|
307 |
msgstr "バリューカウントの再構築"
|
308 |
|
309 |
-
#: custom-field-template/custom-field-template.php:
|
310 |
msgid "Are you sure to rebuild all value counts?"
|
311 |
msgstr "本当に全てのバリューカウントを再構築しますか?"
|
312 |
|
313 |
-
#: custom-field-template/custom-field-template.php:
|
314 |
msgid "Value Counts are used for temporarily saving how many values in each key. Set `valueCount = true` into fields."
|
315 |
msgstr "バリューカウントはキーごとに値がどのくらいあるか一時的に保存するのに使用されます。`valueCount = true`をフィールドにセットしてください。"
|
316 |
|
317 |
-
#: custom-field-template/custom-field-template.php:
|
318 |
msgid "Rebuild Value Counts »"
|
319 |
msgstr "バリューカウントを再構築する »"
|
320 |
|
321 |
-
#: custom-field-template/custom-field-template.php:
|
322 |
msgid "Rebuild Tags"
|
323 |
msgstr "タグの再構築"
|
324 |
|
325 |
-
#: custom-field-template/custom-field-template.php:
|
326 |
msgid "Are you sure to rebuild tags?"
|
327 |
msgstr "本当に全てのタグを再構築しますか?"
|
328 |
|
329 |
-
#: custom-field-template/custom-field-template.php:
|
330 |
msgid "Rebuild Tags »"
|
331 |
msgstr "タグを再構築する »"
|
332 |
|
333 |
-
#: custom-field-template/custom-field-template.php:
|
334 |
msgid "Option List"
|
335 |
msgstr "オプションリスト"
|
336 |
|
337 |
-
#: custom-field-template/custom-field-template.php:
|
338 |
msgid "Export Options"
|
339 |
msgstr "オプションをエクスポートする"
|
340 |
|
341 |
-
#: custom-field-template/custom-field-template.php:
|
342 |
msgid "Export Options »"
|
343 |
msgstr "オプションをエクスポートする »"
|
344 |
|
345 |
-
#: custom-field-template/custom-field-template.php:
|
346 |
msgid "Import Options"
|
347 |
msgstr "オプションをインポートする"
|
348 |
|
349 |
-
#: custom-field-template/custom-field-template.php:
|
350 |
msgid "Are you sure to import options? Options you set will be overwritten."
|
351 |
msgstr "本当にオプションをインポートしてもよろしいですか?設定したオプションは上書きされます。"
|
352 |
|
353 |
-
#: custom-field-template/custom-field-template.php:
|
354 |
msgid "Import Options »"
|
355 |
msgstr "オプションをインポートする »"
|
356 |
|
357 |
-
#: custom-field-template/custom-field-template.php:
|
358 |
msgid "Reset Options"
|
359 |
msgstr "オプションをリセットする"
|
360 |
|
361 |
-
#: custom-field-template/custom-field-template.php:
|
362 |
msgid "Are you sure to reset options? Options you set will be reset to the default settings."
|
363 |
msgstr "本当にオプションをリセットしてもよろしいですか?設定したオプションはデフォルトの状態に戻ります。"
|
364 |
|
365 |
-
#: custom-field-template/custom-field-template.php:
|
366 |
msgid "Reset Options »"
|
367 |
msgstr "オプションをリセットする »"
|
368 |
|
369 |
-
#: custom-field-template/custom-field-template.php:
|
370 |
msgid "Delete Options"
|
371 |
msgstr "オプションを削除する"
|
372 |
|
373 |
-
#: custom-field-template/custom-field-template.php:
|
374 |
msgid "Are you sure to delete options? Options you set will be deleted."
|
375 |
msgstr "本当にオプションを削除してもよろしいですか?設定したオプションは削除されます。"
|
376 |
|
377 |
-
#: custom-field-template/custom-field-template.php:
|
378 |
msgid "Delete Options »"
|
379 |
msgstr "オプションを削除する »"
|
380 |
|
381 |
-
#: custom-field-template/custom-field-template.php:
|
382 |
msgid "Donation"
|
383 |
msgstr "寄付"
|
384 |
|
385 |
-
#: custom-field-template/custom-field-template.php:
|
386 |
msgid "If you liked this plugin, please make a donation via paypal! Any amount is welcome. Your support is much appreciated."
|
387 |
msgstr "このプラグインをお気に召しましたら、Paypalよりご寄付をよろしくお願いいたします。"
|
388 |
|
389 |
-
#: custom-field-template/custom-field-template.php:
|
390 |
-
#: custom-field-template/custom-field-template.php:
|
391 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
392 |
msgid "Add New"
|
393 |
msgstr "追加"
|
394 |
|
395 |
-
#: custom-field-template/custom-field-template.php:
|
396 |
msgid "Clear"
|
397 |
msgstr "解除"
|
398 |
|
399 |
-
#: custom-field-template/custom-field-template.php:
|
400 |
msgid "Select"
|
401 |
msgstr "選択してください"
|
402 |
|
403 |
-
#: custom-field-template/custom-field-template.php:
|
404 |
-
msgid "Add Media"
|
405 |
-
msgstr ""
|
406 |
-
|
407 |
-
#: custom-field-template/custom-field-template.php:1500
|
408 |
msgid "Add an Image"
|
409 |
msgstr ""
|
410 |
|
411 |
-
#: custom-field-template/custom-field-template.php:
|
412 |
msgid "Add Video"
|
413 |
msgstr ""
|
414 |
|
415 |
-
#: custom-field-template/custom-field-template.php:
|
416 |
msgid "Add Audio"
|
417 |
msgstr ""
|
418 |
|
419 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
|
|
|
|
420 |
msgid "Toggle"
|
421 |
msgstr "切り替え"
|
422 |
|
423 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
|
|
|
|
424 |
msgid "Initialize"
|
425 |
msgstr "初期化"
|
426 |
|
427 |
-
#: custom-field-template/custom-field-template.php:
|
428 |
msgid "Are you sure to reset current values? Default values will be loaded."
|
429 |
msgstr "現在値をリセットしてもよろしいですか?初期値が読み込まれます。"
|
430 |
|
431 |
-
#: custom-field-template/custom-field-template.php:
|
432 |
msgid "Save"
|
433 |
msgstr "保存"
|
434 |
|
435 |
-
#: custom-field-template/custom-field-template.php:
|
436 |
msgid "Search »"
|
437 |
msgstr "検索 »"
|
438 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Custom Field Template\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2009-10-11 14:16+0900\n"
|
6 |
+
"PO-Revision-Date: 2009-10-11 14:17+0900\n"
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
18 |
|
19 |
#: custom-field-template/custom-field-template.php:125
|
20 |
#: custom-field-template/custom-field-template.php:126
|
21 |
+
#: custom-field-template/custom-field-template.php:488
|
22 |
+
#: custom-field-template/custom-field-template.php:692
|
23 |
+
#: custom-field-template/custom-field-template.php:1828
|
24 |
+
#: custom-field-template/custom-field-template.php:1958
|
25 |
msgid "Custom Field Template"
|
26 |
msgstr "カスタムフィールドテンプレート"
|
27 |
|
28 |
+
#: custom-field-template/custom-field-template.php:182
|
29 |
+
#: custom-field-template/custom-field-template.php:2131
|
30 |
msgid "Load"
|
31 |
msgstr "読込"
|
32 |
|
33 |
+
#: custom-field-template/custom-field-template.php:338
|
34 |
msgid "read more"
|
35 |
msgstr "続きを表示"
|
36 |
|
37 |
+
#: custom-field-template/custom-field-template.php:356
|
38 |
+
#: custom-field-template/custom-field-template.php:366
|
39 |
msgid "Custom Fields"
|
40 |
msgstr "カスタムフィールド"
|
41 |
|
42 |
+
#: custom-field-template/custom-field-template.php:396
|
43 |
msgid "Settings"
|
44 |
msgstr "設定"
|
45 |
|
46 |
+
#: custom-field-template/custom-field-template.php:416
|
47 |
msgid "Default Template"
|
48 |
msgstr "デフォルトテンプレート"
|
49 |
|
50 |
+
#: custom-field-template/custom-field-template.php:617
|
51 |
+
#: custom-field-template/custom-field-template.php:621
|
52 |
+
#: custom-field-template/custom-field-template.php:633
|
53 |
+
#: custom-field-template/custom-field-template.php:641
|
54 |
+
#: custom-field-template/custom-field-template.php:657
|
55 |
msgid "Options updated."
|
56 |
msgstr "オプションは更新されました。"
|
57 |
|
58 |
+
#: custom-field-template/custom-field-template.php:661
|
59 |
msgid "Value Counts rebuilt."
|
60 |
msgstr "バリューカウントは再構築されました。"
|
61 |
|
62 |
+
#: custom-field-template/custom-field-template.php:664
|
63 |
msgid "Tags rebuilt."
|
64 |
msgstr "タグは再構築されました。"
|
65 |
|
66 |
+
#: custom-field-template/custom-field-template.php:673
|
67 |
msgid "Options imported."
|
68 |
msgstr "オプションはインポートされました。"
|
69 |
|
70 |
+
#: custom-field-template/custom-field-template.php:680
|
71 |
msgid "Options resetted."
|
72 |
msgstr "オプションはリセットされました。"
|
73 |
|
74 |
+
#: custom-field-template/custom-field-template.php:684
|
75 |
msgid "Options deleted."
|
76 |
msgstr "オプションは削除されました。"
|
77 |
|
78 |
+
#: custom-field-template/custom-field-template.php:698
|
79 |
+
#: custom-field-template/custom-field-template.php:789
|
80 |
+
#: custom-field-template/custom-field-template.php:808
|
81 |
+
#: custom-field-template/custom-field-template.php:837
|
82 |
+
#: custom-field-template/custom-field-template.php:868
|
83 |
+
#: custom-field-template/custom-field-template.php:907
|
|
|
84 |
#: custom-field-template/custom-field-template.php:928
|
85 |
+
#: custom-field-template/custom-field-template.php:945
|
86 |
+
#: custom-field-template/custom-field-template.php:1107
|
87 |
+
#: custom-field-template/custom-field-template.php:1123
|
88 |
+
#: custom-field-template/custom-field-template.php:1139
|
89 |
+
#: custom-field-template/custom-field-template.php:1155
|
90 |
+
#: custom-field-template/custom-field-template.php:1171
|
91 |
msgid "Click to toggle"
|
92 |
msgstr "クリックで切替"
|
93 |
|
94 |
+
#: custom-field-template/custom-field-template.php:699
|
95 |
msgid "Custom Field Template Options"
|
96 |
msgstr "カスタムフィールドテンプレートオプション"
|
97 |
|
98 |
+
#: custom-field-template/custom-field-template.php:709
|
99 |
msgid "Template Title"
|
100 |
msgstr "テンプレートタイトル"
|
101 |
|
102 |
+
#: custom-field-template/custom-field-template.php:711
|
103 |
msgid "Template Instruction"
|
104 |
msgstr "テンプレートインストラクション"
|
105 |
|
106 |
+
#: custom-field-template/custom-field-template.php:713
|
107 |
+
#: custom-field-template/custom-field-template.php:884
|
108 |
msgid "Post Type"
|
109 |
msgstr "投稿タイプ"
|
110 |
|
111 |
+
#: custom-field-template/custom-field-template.php:715
|
112 |
+
#: custom-field-template/custom-field-template.php:885
|
113 |
msgid "Both"
|
114 |
msgstr "両方"
|
115 |
|
116 |
+
#: custom-field-template/custom-field-template.php:716
|
117 |
+
#: custom-field-template/custom-field-template.php:886
|
118 |
msgid "Post"
|
119 |
msgstr "投稿"
|
120 |
|
121 |
+
#: custom-field-template/custom-field-template.php:717
|
122 |
+
#: custom-field-template/custom-field-template.php:887
|
123 |
msgid "Page"
|
124 |
msgstr "ページ"
|
125 |
|
126 |
+
#: custom-field-template/custom-field-template.php:718
|
127 |
msgid "Post ID (comma-deliminated)"
|
128 |
msgstr "Post ID (カンマ区切り)"
|
129 |
|
130 |
+
#: custom-field-template/custom-field-template.php:720
|
131 |
+
#: custom-field-template/custom-field-template.php:888
|
132 |
msgid "Category ID (comma-deliminated)"
|
133 |
msgstr "カテゴリーID (カンマ区切り)"
|
134 |
|
135 |
+
#: custom-field-template/custom-field-template.php:722
|
136 |
msgid "Page Template file name(s) (comma-deliminated)"
|
137 |
msgstr "ページテンプレートファイル名 (カンマ区切り)"
|
138 |
|
139 |
+
#: custom-field-template/custom-field-template.php:724
|
140 |
msgid "Template Content"
|
141 |
msgstr "テンプレートコンテンツ"
|
142 |
|
143 |
+
#: custom-field-template/custom-field-template.php:731
|
144 |
msgid "In case that you would like to insert multiple images at once in use of the custom field media buttons"
|
145 |
msgstr "カスタムフィールへの画像挿入を一度に複数枚実行する場合"
|
146 |
|
147 |
+
#: custom-field-template/custom-field-template.php:732
|
148 |
msgid "Use multiple image inset"
|
149 |
msgstr "複数画像挿入を利用する"
|
150 |
|
151 |
+
#: custom-field-template/custom-field-template.php:732
|
152 |
msgid "Caution:"
|
153 |
msgstr "ご注意:"
|
154 |
|
155 |
+
#: custom-field-template/custom-field-template.php:732
|
156 |
msgid "You need to edit `wp-admin/includes/media.php`. Delete or comment out the code in the function media_send_to_editor."
|
157 |
msgstr "`wp-admin/includes/media.php`を編集する必要があります。media_send_to_editor関数の中身を削除するかコメントアウトしてください。"
|
158 |
|
159 |
+
#: custom-field-template/custom-field-template.php:736
|
160 |
msgid "In case that you would like to replace custom keys by labels if `label` is set"
|
161 |
msgstr "`label`がセットされていて、カスタムフィールドのキーの代わりにラベルを表示したい場合"
|
162 |
|
163 |
+
#: custom-field-template/custom-field-template.php:737
|
164 |
msgid "Use labels in place of custom keys"
|
165 |
msgstr "カスタムフィールドのキーの代わりにラベルを使用する"
|
166 |
|
167 |
+
#: custom-field-template/custom-field-template.php:740
|
168 |
msgid "In case that you would like to add p and br tags in textareas automatically"
|
169 |
msgstr "テキストエリアでpタグ、brタグを自動的に追加したい場合"
|
170 |
|
171 |
+
#: custom-field-template/custom-field-template.php:741
|
172 |
msgid "Use wpautop function"
|
173 |
msgstr "wpautop関数を使用する"
|
174 |
|
175 |
+
#: custom-field-template/custom-field-template.php:745
|
176 |
msgid "In case that you would like to save values automatically in switching templates"
|
177 |
msgstr "テンプレート切替時自動で保存したい場合"
|
178 |
|
179 |
+
#: custom-field-template/custom-field-template.php:746
|
180 |
msgid "Use the auto save in switching templates"
|
181 |
msgstr "テンプレート切替時の自動保存を使用する"
|
182 |
|
183 |
+
#: custom-field-template/custom-field-template.php:750
|
184 |
msgid "In case that you would like to forbid to use the default custom fields."
|
185 |
msgstr "デフォルトのカスタムフィールドの使用を禁止する場合"
|
186 |
|
187 |
+
#: custom-field-template/custom-field-template.php:751
|
188 |
msgid "Disable the default custom fields"
|
189 |
msgstr "デフォルトのカスタムフィールドを無効にする"
|
190 |
|
191 |
+
#: custom-field-template/custom-field-template.php:755
|
192 |
msgid "In case that you would like to forbid to use the quick edit."
|
193 |
msgstr "クイック編集の使用を禁止する場合"
|
194 |
|
195 |
+
#: custom-field-template/custom-field-template.php:756
|
196 |
msgid "Disable the quick edit"
|
197 |
msgstr "クイック編集を無効にする"
|
198 |
|
199 |
+
#: custom-field-template/custom-field-template.php:760
|
200 |
msgid "In case that you would like to forbid to display the custom field column on the edit post list page."
|
201 |
msgstr "編集リストページのカスタムフィールドコラムの表示を禁止する場合"
|
202 |
|
203 |
+
#: custom-field-template/custom-field-template.php:761
|
204 |
msgid "Disable the custom field column (The quick edit also does not work.)"
|
205 |
msgstr "カスタムフィールドコラムを無効にする(クイック編集も動きません)"
|
206 |
|
207 |
+
#: custom-field-template/custom-field-template.php:765
|
208 |
msgid "In case that you would like to replace the box title with the template title."
|
209 |
msgstr "ボックスタイトルをテンプレートタイトルで置き換える場合"
|
210 |
|
211 |
+
#: custom-field-template/custom-field-template.php:766
|
212 |
msgid "Replace the box title"
|
213 |
msgstr "ボックスタイトルを置き換える"
|
214 |
|
215 |
+
#: custom-field-template/custom-field-template.php:770
|
216 |
msgid "In case that you would like to use the shortcode in the widget."
|
217 |
msgstr "ショートコードをウィジェットで使用したい場合"
|
218 |
|
219 |
+
#: custom-field-template/custom-field-template.php:771
|
220 |
msgid "Use the shortcode in the widget"
|
221 |
msgstr "ショートコードをウィジェットで使用する"
|
222 |
|
223 |
+
#: custom-field-template/custom-field-template.php:775
|
224 |
msgid "In case that you would like to use the shortcode in the excerpt."
|
225 |
msgstr "ショートコードを抜粋で使用したい場合"
|
226 |
|
227 |
+
#: custom-field-template/custom-field-template.php:776
|
228 |
msgid "Use the shortcode in the excerpt"
|
229 |
msgstr "ショートコードを抜粋で使用する"
|
230 |
|
231 |
+
#: custom-field-template/custom-field-template.php:780
|
232 |
+
#: custom-field-template/custom-field-template.php:799
|
233 |
+
#: custom-field-template/custom-field-template.php:828
|
234 |
+
#: custom-field-template/custom-field-template.php:859
|
235 |
+
#: custom-field-template/custom-field-template.php:898
|
236 |
msgid "Update Options »"
|
237 |
msgstr "オプションを更新する »"
|
238 |
|
239 |
+
#: custom-field-template/custom-field-template.php:790
|
240 |
msgid "ADMIN CSS"
|
241 |
msgstr "ADMIN CSS"
|
242 |
|
243 |
+
#: custom-field-template/custom-field-template.php:809
|
244 |
msgid "[cft] and [cftsearch] Shortcode Format"
|
245 |
msgstr "[cft] and [cftsearch] Shortcode Format"
|
246 |
|
247 |
+
#: custom-field-template/custom-field-template.php:812
|
248 |
msgid "For [cft], [key] will be converted into the value of [key]."
|
249 |
msgstr "[cft]では、[key]は、[key]の値に置換されます。"
|
250 |
|
251 |
+
#: custom-field-template/custom-field-template.php:813
|
252 |
msgid "For [cftsearch], [key] will be converted into the input field."
|
253 |
msgstr "[cftsearch]では、[key]は、インプットフィールドに置換されます。"
|
254 |
|
255 |
+
#: custom-field-template/custom-field-template.php:822
|
256 |
+
#: custom-field-template/custom-field-template.php:891
|
257 |
msgid "Use PHP"
|
258 |
msgstr "PHPを使用する"
|
259 |
|
260 |
+
#: custom-field-template/custom-field-template.php:838
|
261 |
msgid "PHP CODE (Experimental Option)"
|
262 |
msgstr "PHP CODE (Experimental Option)"
|
263 |
|
264 |
+
#: custom-field-template/custom-field-template.php:840
|
265 |
msgid "Are you sure to save PHP codes? Please do it at your own risk."
|
266 |
msgstr "PHPコードを保存してよろしいですか?自己責任で実行してください。"
|
267 |
|
268 |
+
#: custom-field-template/custom-field-template.php:841
|
269 |
msgid "For `text` and `textarea`, you must set $value as an string."
|
270 |
msgstr "`text`と`textarea`は$valueを文字列としてセットしてください。"
|
271 |
|
272 |
+
#: custom-field-template/custom-field-template.php:843
|
273 |
msgid "For `checkbox`, `radio`, and `select`, you must set $values as an array."
|
274 |
msgstr "`checkbox`、`radio`、`select`では、配列として$valuesをセットしてください。"
|
275 |
|
276 |
+
#: custom-field-template/custom-field-template.php:869
|
277 |
msgid "Auto Hook of `the_content()` (Experimental Option)"
|
278 |
msgstr "Auto Hook of `the_content()` (Experimental Option)"
|
279 |
|
280 |
+
#: custom-field-template/custom-field-template.php:879
|
281 |
msgid "Position"
|
282 |
msgstr "位置"
|
283 |
|
284 |
+
#: custom-field-template/custom-field-template.php:880
|
285 |
msgid "Before the conetnt"
|
286 |
msgstr "コンテンツの前"
|
287 |
|
288 |
+
#: custom-field-template/custom-field-template.php:881
|
289 |
msgid "After the conetnt"
|
290 |
msgstr "コンテンツの後"
|
291 |
|
292 |
+
#: custom-field-template/custom-field-template.php:882
|
293 |
#, php-format
|
294 |
msgid "Inside the conetnt ([cfthook hook=%d])"
|
295 |
msgstr "コンテンツの中 ([cfthook hook=%d])"
|
296 |
|
297 |
+
#: custom-field-template/custom-field-template.php:890
|
298 |
msgid "Content"
|
299 |
msgstr "コンテンツ"
|
300 |
|
301 |
+
#: custom-field-template/custom-field-template.php:892
|
302 |
msgid "Apply to feeds"
|
303 |
msgstr "フィードに適用する"
|
304 |
|
305 |
+
#: custom-field-template/custom-field-template.php:908
|
306 |
msgid "Rebuild Value Counts"
|
307 |
msgstr "バリューカウントの再構築"
|
308 |
|
309 |
+
#: custom-field-template/custom-field-template.php:910
|
310 |
msgid "Are you sure to rebuild all value counts?"
|
311 |
msgstr "本当に全てのバリューカウントを再構築しますか?"
|
312 |
|
313 |
+
#: custom-field-template/custom-field-template.php:914
|
314 |
msgid "Value Counts are used for temporarily saving how many values in each key. Set `valueCount = true` into fields."
|
315 |
msgstr "バリューカウントはキーごとに値がどのくらいあるか一時的に保存するのに使用されます。`valueCount = true`をフィールドにセットしてください。"
|
316 |
|
317 |
+
#: custom-field-template/custom-field-template.php:918
|
318 |
msgid "Rebuild Value Counts »"
|
319 |
msgstr "バリューカウントを再構築する »"
|
320 |
|
321 |
+
#: custom-field-template/custom-field-template.php:929
|
322 |
msgid "Rebuild Tags"
|
323 |
msgstr "タグの再構築"
|
324 |
|
325 |
+
#: custom-field-template/custom-field-template.php:931
|
326 |
msgid "Are you sure to rebuild tags?"
|
327 |
msgstr "本当に全てのタグを再構築しますか?"
|
328 |
|
329 |
+
#: custom-field-template/custom-field-template.php:935
|
330 |
msgid "Rebuild Tags »"
|
331 |
msgstr "タグを再構築する »"
|
332 |
|
333 |
+
#: custom-field-template/custom-field-template.php:946
|
334 |
msgid "Option List"
|
335 |
msgstr "オプションリスト"
|
336 |
|
337 |
+
#: custom-field-template/custom-field-template.php:1108
|
338 |
msgid "Export Options"
|
339 |
msgstr "オプションをエクスポートする"
|
340 |
|
341 |
+
#: custom-field-template/custom-field-template.php:1114
|
342 |
msgid "Export Options »"
|
343 |
msgstr "オプションをエクスポートする »"
|
344 |
|
345 |
+
#: custom-field-template/custom-field-template.php:1124
|
346 |
msgid "Import Options"
|
347 |
msgstr "オプションをインポートする"
|
348 |
|
349 |
+
#: custom-field-template/custom-field-template.php:1126
|
350 |
msgid "Are you sure to import options? Options you set will be overwritten."
|
351 |
msgstr "本当にオプションをインポートしてもよろしいですか?設定したオプションは上書きされます。"
|
352 |
|
353 |
+
#: custom-field-template/custom-field-template.php:1130
|
354 |
msgid "Import Options »"
|
355 |
msgstr "オプションをインポートする »"
|
356 |
|
357 |
+
#: custom-field-template/custom-field-template.php:1140
|
358 |
msgid "Reset Options"
|
359 |
msgstr "オプションをリセットする"
|
360 |
|
361 |
+
#: custom-field-template/custom-field-template.php:1142
|
362 |
msgid "Are you sure to reset options? Options you set will be reset to the default settings."
|
363 |
msgstr "本当にオプションをリセットしてもよろしいですか?設定したオプションはデフォルトの状態に戻ります。"
|
364 |
|
365 |
+
#: custom-field-template/custom-field-template.php:1146
|
366 |
msgid "Reset Options »"
|
367 |
msgstr "オプションをリセットする »"
|
368 |
|
369 |
+
#: custom-field-template/custom-field-template.php:1156
|
370 |
msgid "Delete Options"
|
371 |
msgstr "オプションを削除する"
|
372 |
|
373 |
+
#: custom-field-template/custom-field-template.php:1158
|
374 |
msgid "Are you sure to delete options? Options you set will be deleted."
|
375 |
msgstr "本当にオプションを削除してもよろしいですか?設定したオプションは削除されます。"
|
376 |
|
377 |
+
#: custom-field-template/custom-field-template.php:1162
|
378 |
msgid "Delete Options »"
|
379 |
msgstr "オプションを削除する »"
|
380 |
|
381 |
+
#: custom-field-template/custom-field-template.php:1172
|
382 |
msgid "Donation"
|
383 |
msgstr "寄付"
|
384 |
|
385 |
+
#: custom-field-template/custom-field-template.php:1174
|
386 |
msgid "If you liked this plugin, please make a donation via paypal! Any amount is welcome. Your support is much appreciated."
|
387 |
msgstr "このプラグインをお気に召しましたら、Paypalよりご寄付をよろしくお願いいたします。"
|
388 |
|
389 |
+
#: custom-field-template/custom-field-template.php:1269
|
390 |
+
#: custom-field-template/custom-field-template.php:1388
|
391 |
+
#: custom-field-template/custom-field-template.php:1466
|
392 |
+
#: custom-field-template/custom-field-template.php:1643
|
393 |
+
#: custom-field-template/custom-field-template.php:1755
|
394 |
msgid "Add New"
|
395 |
msgstr "追加"
|
396 |
|
397 |
+
#: custom-field-template/custom-field-template.php:1398
|
398 |
msgid "Clear"
|
399 |
msgstr "解除"
|
400 |
|
401 |
+
#: custom-field-template/custom-field-template.php:1482
|
402 |
msgid "Select"
|
403 |
msgstr "選択してください"
|
404 |
|
405 |
+
#: custom-field-template/custom-field-template.php:1547
|
|
|
|
|
|
|
|
|
406 |
msgid "Add an Image"
|
407 |
msgstr ""
|
408 |
|
409 |
+
#: custom-field-template/custom-field-template.php:1552
|
410 |
msgid "Add Video"
|
411 |
msgstr ""
|
412 |
|
413 |
+
#: custom-field-template/custom-field-template.php:1557
|
414 |
msgid "Add Audio"
|
415 |
msgstr ""
|
416 |
|
417 |
+
#: custom-field-template/custom-field-template.php:1561
|
418 |
+
msgid "Add Media"
|
419 |
+
msgstr ""
|
420 |
+
|
421 |
+
#: custom-field-template/custom-field-template.php:1568
|
422 |
msgid "Toggle"
|
423 |
msgstr "切り替え"
|
424 |
|
425 |
+
#: custom-field-template/custom-field-template.php:1663
|
426 |
+
msgid "Delete"
|
427 |
+
msgstr "削除"
|
428 |
+
|
429 |
+
#: custom-field-template/custom-field-template.php:2005
|
430 |
msgid "Initialize"
|
431 |
msgstr "初期化"
|
432 |
|
433 |
+
#: custom-field-template/custom-field-template.php:2006
|
434 |
msgid "Are you sure to reset current values? Default values will be loaded."
|
435 |
msgstr "現在値をリセットしてもよろしいですか?初期値が読み込まれます。"
|
436 |
|
437 |
+
#: custom-field-template/custom-field-template.php:2009
|
438 |
msgid "Save"
|
439 |
msgstr "保存"
|
440 |
|
441 |
+
#: custom-field-template/custom-field-template.php:2625
|
442 |
msgid "Search »"
|
443 |
msgstr "検索 »"
|
444 |
|
custom-field-template-ru_RU.mo
CHANGED
Binary file
|
custom-field-template-ru_RU.po
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
-
"Project-Id-Version: Custom Field Template
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date:
|
6 |
"PO-Revision-Date: \n"
|
7 |
"Last-Translator: Sonika <sonika@sonika.ru>\n"
|
8 |
"Language-Team: sonika.ru <sonika@sonika.ru>\n"
|
@@ -16,169 +16,430 @@ msgstr ""
|
|
16 |
"X-Poedit-SourceCharset: utf-8\n"
|
17 |
"X-Poedit-SearchPath-0: custom-field-template\n"
|
18 |
|
19 |
-
#: custom-field-template/custom-field-template.php:
|
20 |
-
#: custom-field-template/custom-field-template.php:
|
21 |
-
#: custom-field-template/custom-field-template.php:
|
22 |
-
#: custom-field-template/custom-field-template.php:
|
23 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
24 |
msgid "Custom Field Template"
|
25 |
-
msgstr "
|
26 |
|
27 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
msgid "Settings"
|
29 |
msgstr "Настройки"
|
30 |
|
31 |
-
#: custom-field-template/custom-field-template.php:
|
32 |
msgid "Default Template"
|
33 |
msgstr "Пример шаблона"
|
34 |
|
35 |
-
#: custom-field-template/custom-field-template.php:
|
36 |
-
#: custom-field-template/custom-field-template.php:
|
37 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
38 |
msgid "Options updated."
|
39 |
msgstr "Настройки обновлены."
|
40 |
|
41 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
msgid "Options resetted."
|
43 |
msgstr "Настройки сброшены."
|
44 |
|
45 |
-
#: custom-field-template/custom-field-template.php:
|
46 |
msgid "Options deleted."
|
47 |
msgstr "Настройки удалены."
|
48 |
|
49 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
msgid "Custom Field Template Options"
|
51 |
msgstr "Настройки Custom Field Template"
|
52 |
|
53 |
-
#: custom-field-template/custom-field-template.php:
|
54 |
-
|
55 |
-
|
56 |
-
msgstr "Название шаблона %d"
|
57 |
|
58 |
-
#: custom-field-template/custom-field-template.php:
|
59 |
-
|
60 |
-
|
61 |
-
msgstr "Инструкция к шаблону %d"
|
62 |
|
63 |
-
#: custom-field-template/custom-field-template.php:
|
64 |
-
|
65 |
-
msgid "
|
66 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
|
68 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
|
|
|
|
69 |
msgid "In case that you would like to insert multiple images at once in use of the custom field media buttons"
|
70 |
msgstr "Если вы хотите вставлять несколько изображений за один раз"
|
71 |
|
72 |
-
#: custom-field-template/custom-field-template.php:
|
73 |
msgid "Use multiple image inset"
|
74 |
msgstr "да"
|
75 |
|
76 |
-
#: custom-field-template/custom-field-template.php:
|
77 |
msgid "Caution:"
|
78 |
msgstr "Предупреждение:"
|
79 |
|
80 |
-
#: custom-field-template/custom-field-template.php:
|
81 |
msgid "You need to edit `wp-admin/includes/media.php`. Delete or comment out the code in the function media_send_to_editor."
|
82 |
msgstr "вам нужно отредактировать файл <code>wp-admin/includes/media.php</code>, удалите или закомментируйте код в функции media_send_to_editor."
|
83 |
|
84 |
-
#: custom-field-template/custom-field-template.php:
|
85 |
msgid "In case that you would like to replace custom keys by labels if `label` is set"
|
86 |
msgstr "Показывать ярлык (label) вместо ключа произвольного поля (если label указан)"
|
87 |
|
88 |
-
#: custom-field-template/custom-field-template.php:
|
89 |
msgid "Use labels in place of custom keys"
|
90 |
msgstr "использовать ярлыки"
|
91 |
|
92 |
-
#: custom-field-template/custom-field-template.php:
|
93 |
msgid "In case that you would like to add p and br tags in textareas automatically"
|
94 |
msgstr "Добавлять теги p и br в текстовое поле автоматически"
|
95 |
|
96 |
-
#: custom-field-template/custom-field-template.php:
|
97 |
msgid "Use wpautop function"
|
98 |
msgstr "Использовать функцию wpautop"
|
99 |
|
100 |
-
#: custom-field-template/custom-field-template.php:
|
101 |
-
|
102 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
msgid "Update Options »"
|
104 |
msgstr "Обновить настройки »"
|
105 |
|
106 |
-
#: custom-field-template/custom-field-template.php:
|
107 |
-
|
108 |
-
|
109 |
-
#: custom-field-template/custom-field-template.php:372
|
110 |
-
#: custom-field-template/custom-field-template.php:388
|
111 |
-
msgid "Click to toggle"
|
112 |
-
msgstr "Свернуть"
|
113 |
|
114 |
-
#: custom-field-template/custom-field-template.php:
|
115 |
-
msgid "
|
116 |
-
msgstr ""
|
117 |
|
118 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
msgid "PHP CODE (Experimental Option)"
|
120 |
msgstr "PHP код (экспериментальная опция)"
|
121 |
|
122 |
-
#: custom-field-template/custom-field-template.php:
|
123 |
msgid "Are you sure to save PHP codes? Please do it at your own risk."
|
124 |
msgstr "Сохраняем PHP код? Т.к. это экспериментальная функция, то вы делаете это на свой страх и риск."
|
125 |
|
126 |
-
#: custom-field-template/custom-field-template.php:
|
127 |
-
msgid "
|
128 |
-
msgstr "Это опция только для типов полей `
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
|
130 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
msgid "Option List"
|
132 |
msgstr "Список настроек"
|
133 |
|
134 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
msgid "Reset Options"
|
136 |
msgstr "Сбросить настройки"
|
137 |
|
138 |
-
#: custom-field-template/custom-field-template.php:
|
139 |
msgid "Are you sure to reset options? Options you set will be reset to the default settings."
|
140 |
msgstr "Сбрасываем настройки? Все настройки будут сброшены к дефолтным, созданные шаблоны не сохранятся."
|
141 |
|
142 |
-
#: custom-field-template/custom-field-template.php:
|
143 |
-
msgid "
|
144 |
msgstr "Сбросить настройки »"
|
145 |
|
146 |
-
#: custom-field-template/custom-field-template.php:
|
147 |
msgid "Delete Options"
|
148 |
msgstr "Удалить настройки"
|
149 |
|
150 |
-
#: custom-field-template/custom-field-template.php:
|
151 |
msgid "Are you sure to delete options? Options you set will be deleted."
|
152 |
msgstr "Удаляем настройки? Удалятся ВСЕ настройки и шаблоны."
|
153 |
|
154 |
-
#: custom-field-template/custom-field-template.php:
|
155 |
msgid "Delete Options »"
|
156 |
msgstr "Удалить настройки »"
|
157 |
|
158 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
msgid "Clear"
|
160 |
msgstr "очистить"
|
161 |
|
162 |
-
#: custom-field-template/custom-field-template.php:
|
163 |
-
msgid "
|
164 |
-
msgstr "
|
165 |
|
166 |
-
#: custom-field-template/custom-field-template.php:
|
167 |
msgid "Add an Image"
|
168 |
msgstr "добавить изображение"
|
169 |
|
170 |
-
#: custom-field-template/custom-field-template.php:
|
171 |
msgid "Add Video"
|
172 |
msgstr "добавить видео-файл"
|
173 |
|
174 |
-
#: custom-field-template/custom-field-template.php:
|
175 |
msgid "Add Audio"
|
176 |
msgstr "добавить аудио-файл"
|
177 |
|
178 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
|
|
|
|
179 |
msgid "Toggle"
|
180 |
msgstr "Переключатель"
|
181 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
#~ msgid "Admin CSS"
|
183 |
#~ msgstr "CSS шаблона в админ. панели"
|
184 |
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
+
"Project-Id-Version: Custom Field Template 1.3.8\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2009-09-24 18:48+0300\n"
|
6 |
"PO-Revision-Date: \n"
|
7 |
"Last-Translator: Sonika <sonika@sonika.ru>\n"
|
8 |
"Language-Team: sonika.ru <sonika@sonika.ru>\n"
|
16 |
"X-Poedit-SourceCharset: utf-8\n"
|
17 |
"X-Poedit-SearchPath-0: custom-field-template\n"
|
18 |
|
19 |
+
#: custom-field-template/custom-field-template.php:125
|
20 |
+
#: custom-field-template/custom-field-template.php:126
|
21 |
+
#: custom-field-template/custom-field-template.php:471
|
22 |
+
#: custom-field-template/custom-field-template.php:675
|
23 |
+
#: custom-field-template/custom-field-template.php:1726
|
24 |
+
#: custom-field-template/custom-field-template.php:1852
|
25 |
msgid "Custom Field Template"
|
26 |
+
msgstr "Custom Field Template"
|
27 |
|
28 |
+
#: custom-field-template/custom-field-template.php:165
|
29 |
+
#: custom-field-template/custom-field-template.php:2025
|
30 |
+
msgid "Load"
|
31 |
+
msgstr "Загрузка"
|
32 |
+
|
33 |
+
#: custom-field-template/custom-field-template.php:321
|
34 |
+
msgid "read more"
|
35 |
+
msgstr "далее"
|
36 |
+
|
37 |
+
#: custom-field-template/custom-field-template.php:339
|
38 |
+
#: custom-field-template/custom-field-template.php:349
|
39 |
+
msgid "Custom Fields"
|
40 |
+
msgstr "Custom Fields"
|
41 |
+
|
42 |
+
#: custom-field-template/custom-field-template.php:379
|
43 |
msgid "Settings"
|
44 |
msgstr "Настройки"
|
45 |
|
46 |
+
#: custom-field-template/custom-field-template.php:399
|
47 |
msgid "Default Template"
|
48 |
msgstr "Пример шаблона"
|
49 |
|
50 |
+
#: custom-field-template/custom-field-template.php:600
|
51 |
+
#: custom-field-template/custom-field-template.php:604
|
52 |
+
#: custom-field-template/custom-field-template.php:616
|
53 |
+
#: custom-field-template/custom-field-template.php:624
|
54 |
+
#: custom-field-template/custom-field-template.php:640
|
55 |
msgid "Options updated."
|
56 |
msgstr "Настройки обновлены."
|
57 |
|
58 |
+
#: custom-field-template/custom-field-template.php:644
|
59 |
+
msgid "Value Counts rebuilt."
|
60 |
+
msgstr "Подсчет значений произвольных полей перестоен."
|
61 |
+
|
62 |
+
#: custom-field-template/custom-field-template.php:647
|
63 |
+
#, fuzzy
|
64 |
+
msgid "Tags rebuilt."
|
65 |
+
msgstr "Подсчет значений произвольных полей перестоен."
|
66 |
+
|
67 |
+
#: custom-field-template/custom-field-template.php:656
|
68 |
+
msgid "Options imported."
|
69 |
+
msgstr "Настройки импортированы."
|
70 |
+
|
71 |
+
#: custom-field-template/custom-field-template.php:663
|
72 |
msgid "Options resetted."
|
73 |
msgstr "Настройки сброшены."
|
74 |
|
75 |
+
#: custom-field-template/custom-field-template.php:667
|
76 |
msgid "Options deleted."
|
77 |
msgstr "Настройки удалены."
|
78 |
|
79 |
+
#: custom-field-template/custom-field-template.php:681
|
80 |
+
#: custom-field-template/custom-field-template.php:772
|
81 |
+
#: custom-field-template/custom-field-template.php:791
|
82 |
+
#: custom-field-template/custom-field-template.php:820
|
83 |
+
#: custom-field-template/custom-field-template.php:851
|
84 |
+
#: custom-field-template/custom-field-template.php:890
|
85 |
+
#: custom-field-template/custom-field-template.php:911
|
86 |
+
#: custom-field-template/custom-field-template.php:928
|
87 |
+
#: custom-field-template/custom-field-template.php:1087
|
88 |
+
#: custom-field-template/custom-field-template.php:1103
|
89 |
+
#: custom-field-template/custom-field-template.php:1119
|
90 |
+
#: custom-field-template/custom-field-template.php:1135
|
91 |
+
#: custom-field-template/custom-field-template.php:1151
|
92 |
+
msgid "Click to toggle"
|
93 |
+
msgstr "Свернуть"
|
94 |
+
|
95 |
+
#: custom-field-template/custom-field-template.php:682
|
96 |
msgid "Custom Field Template Options"
|
97 |
msgstr "Настройки Custom Field Template"
|
98 |
|
99 |
+
#: custom-field-template/custom-field-template.php:692
|
100 |
+
msgid "Template Title"
|
101 |
+
msgstr "Заголовок шаблона"
|
|
|
102 |
|
103 |
+
#: custom-field-template/custom-field-template.php:694
|
104 |
+
msgid "Template Instruction"
|
105 |
+
msgstr "Инструкция к шаблону"
|
|
|
106 |
|
107 |
+
#: custom-field-template/custom-field-template.php:696
|
108 |
+
#: custom-field-template/custom-field-template.php:867
|
109 |
+
msgid "Post Type"
|
110 |
+
msgstr "Тип страниц"
|
111 |
+
|
112 |
+
#: custom-field-template/custom-field-template.php:698
|
113 |
+
#: custom-field-template/custom-field-template.php:868
|
114 |
+
msgid "Both"
|
115 |
+
msgstr "Оба"
|
116 |
+
|
117 |
+
#: custom-field-template/custom-field-template.php:699
|
118 |
+
#: custom-field-template/custom-field-template.php:869
|
119 |
+
msgid "Post"
|
120 |
+
msgstr "Запись"
|
121 |
+
|
122 |
+
#: custom-field-template/custom-field-template.php:700
|
123 |
+
#: custom-field-template/custom-field-template.php:870
|
124 |
+
msgid "Page"
|
125 |
+
msgstr "Страница"
|
126 |
+
|
127 |
+
#: custom-field-template/custom-field-template.php:701
|
128 |
+
msgid "Post ID (comma-deliminated)"
|
129 |
+
msgstr "ID записей (разделяйте запятыми)"
|
130 |
+
|
131 |
+
#: custom-field-template/custom-field-template.php:703
|
132 |
+
#: custom-field-template/custom-field-template.php:871
|
133 |
+
msgid "Category ID (comma-deliminated)"
|
134 |
+
msgstr "ID рубрик (разделяйте запятыми)"
|
135 |
+
|
136 |
+
#: custom-field-template/custom-field-template.php:705
|
137 |
+
msgid "Page Template file name(s) (comma-deliminated)"
|
138 |
+
msgstr "Имена php-файлов Темы (разделяйте запятыми)"
|
139 |
|
140 |
+
#: custom-field-template/custom-field-template.php:707
|
141 |
+
msgid "Template Content"
|
142 |
+
msgstr "Содержимое шаблона"
|
143 |
+
|
144 |
+
#: custom-field-template/custom-field-template.php:714
|
145 |
msgid "In case that you would like to insert multiple images at once in use of the custom field media buttons"
|
146 |
msgstr "Если вы хотите вставлять несколько изображений за один раз"
|
147 |
|
148 |
+
#: custom-field-template/custom-field-template.php:715
|
149 |
msgid "Use multiple image inset"
|
150 |
msgstr "да"
|
151 |
|
152 |
+
#: custom-field-template/custom-field-template.php:715
|
153 |
msgid "Caution:"
|
154 |
msgstr "Предупреждение:"
|
155 |
|
156 |
+
#: custom-field-template/custom-field-template.php:715
|
157 |
msgid "You need to edit `wp-admin/includes/media.php`. Delete or comment out the code in the function media_send_to_editor."
|
158 |
msgstr "вам нужно отредактировать файл <code>wp-admin/includes/media.php</code>, удалите или закомментируйте код в функции media_send_to_editor."
|
159 |
|
160 |
+
#: custom-field-template/custom-field-template.php:719
|
161 |
msgid "In case that you would like to replace custom keys by labels if `label` is set"
|
162 |
msgstr "Показывать ярлык (label) вместо ключа произвольного поля (если label указан)"
|
163 |
|
164 |
+
#: custom-field-template/custom-field-template.php:720
|
165 |
msgid "Use labels in place of custom keys"
|
166 |
msgstr "использовать ярлыки"
|
167 |
|
168 |
+
#: custom-field-template/custom-field-template.php:723
|
169 |
msgid "In case that you would like to add p and br tags in textareas automatically"
|
170 |
msgstr "Добавлять теги p и br в текстовое поле автоматически"
|
171 |
|
172 |
+
#: custom-field-template/custom-field-template.php:724
|
173 |
msgid "Use wpautop function"
|
174 |
msgstr "Использовать функцию wpautop"
|
175 |
|
176 |
+
#: custom-field-template/custom-field-template.php:728
|
177 |
+
msgid "In case that you would like to save values automatically in switching templates"
|
178 |
+
msgstr "Автоматически сохранять значения произвольных полей при смене шаблона custom fields"
|
179 |
+
|
180 |
+
#: custom-field-template/custom-field-template.php:729
|
181 |
+
msgid "Use the auto save in switching templates"
|
182 |
+
msgstr "да"
|
183 |
+
|
184 |
+
#: custom-field-template/custom-field-template.php:733
|
185 |
+
msgid "In case that you would like to forbid to use the default custom fields."
|
186 |
+
msgstr "Запретить использовать дефолтную вкладку «Произвольные поля»"
|
187 |
+
|
188 |
+
#: custom-field-template/custom-field-template.php:734
|
189 |
+
msgid "Disable the default custom fields"
|
190 |
+
msgstr "Не показывать дефолтную вкладку «Произвольные поля»"
|
191 |
+
|
192 |
+
#: custom-field-template/custom-field-template.php:738
|
193 |
+
msgid "In case that you would like to forbid to use the quick edit."
|
194 |
+
msgstr "Запретить использовать быстрое редактирование"
|
195 |
+
|
196 |
+
#: custom-field-template/custom-field-template.php:739
|
197 |
+
msgid "Disable the quick edit"
|
198 |
+
msgstr "Отключить быстрое редактирование"
|
199 |
+
|
200 |
+
#: custom-field-template/custom-field-template.php:743
|
201 |
+
msgid "In case that you would like to forbid to display the custom field column on the edit post list page."
|
202 |
+
msgstr "Спрятать колонку «Custom Fields» на странице списка записей в админ. панели"
|
203 |
+
|
204 |
+
#: custom-field-template/custom-field-template.php:744
|
205 |
+
msgid "Disable the custom field column (The quick edit also does not work.)"
|
206 |
+
msgstr "спрятать колонку «Custom fields» (в быстром редактировании также не будут показаны произвольные поля)"
|
207 |
+
|
208 |
+
#: custom-field-template/custom-field-template.php:748
|
209 |
+
msgid "In case that you would like to replace the box title with the template title."
|
210 |
+
msgstr "Заменить название вкладки на название шаблона"
|
211 |
+
|
212 |
+
#: custom-field-template/custom-field-template.php:749
|
213 |
+
msgid "Replace the box title"
|
214 |
+
msgstr "Заменить название вкладки"
|
215 |
+
|
216 |
+
#: custom-field-template/custom-field-template.php:753
|
217 |
+
msgid "In case that you would like to use the shortcode in the widget."
|
218 |
+
msgstr "Если вы хотите использовать условные коды в виджете"
|
219 |
+
|
220 |
+
#: custom-field-template/custom-field-template.php:754
|
221 |
+
msgid "Use the shortcode in the widget"
|
222 |
+
msgstr "Использовать условные коды в виджете"
|
223 |
+
|
224 |
+
#: custom-field-template/custom-field-template.php:758
|
225 |
+
msgid "In case that you would like to use the shortcode in the excerpt."
|
226 |
+
msgstr "Если вы хотите использовать условные коды в цитате (excerpt)"
|
227 |
+
|
228 |
+
#: custom-field-template/custom-field-template.php:759
|
229 |
+
msgid "Use the shortcode in the excerpt"
|
230 |
+
msgstr "Использовать условные коды (шоткоды) в цитате (excerpt)"
|
231 |
+
|
232 |
+
#: custom-field-template/custom-field-template.php:763
|
233 |
+
#: custom-field-template/custom-field-template.php:782
|
234 |
+
#: custom-field-template/custom-field-template.php:811
|
235 |
+
#: custom-field-template/custom-field-template.php:842
|
236 |
+
#: custom-field-template/custom-field-template.php:881
|
237 |
msgid "Update Options »"
|
238 |
msgstr "Обновить настройки »"
|
239 |
|
240 |
+
#: custom-field-template/custom-field-template.php:773
|
241 |
+
msgid "ADMIN CSS"
|
242 |
+
msgstr "Внешний вид в админ. панели (CSS)"
|
|
|
|
|
|
|
|
|
243 |
|
244 |
+
#: custom-field-template/custom-field-template.php:792
|
245 |
+
msgid "[cft] and [cftsearch] Shortcode Format"
|
246 |
+
msgstr "Формат условных кодов типа [cft] и[cftsearch] "
|
247 |
|
248 |
+
#: custom-field-template/custom-field-template.php:795
|
249 |
+
msgid "For [cft], [key] will be converted into the value of [key]."
|
250 |
+
msgstr "Для [cft]: [key] будет преобразован в значение [key]"
|
251 |
+
|
252 |
+
#: custom-field-template/custom-field-template.php:796
|
253 |
+
msgid "For [cftsearch], [key] will be converted into the input field."
|
254 |
+
msgstr "Для [cftsearch]: [key] будет преобразован в поле."
|
255 |
+
|
256 |
+
#: custom-field-template/custom-field-template.php:805
|
257 |
+
#: custom-field-template/custom-field-template.php:874
|
258 |
+
msgid "Use PHP"
|
259 |
+
msgstr "Использовать PHP"
|
260 |
+
|
261 |
+
#: custom-field-template/custom-field-template.php:821
|
262 |
msgid "PHP CODE (Experimental Option)"
|
263 |
msgstr "PHP код (экспериментальная опция)"
|
264 |
|
265 |
+
#: custom-field-template/custom-field-template.php:823
|
266 |
msgid "Are you sure to save PHP codes? Please do it at your own risk."
|
267 |
msgstr "Сохраняем PHP код? Т.к. это экспериментальная функция, то вы делаете это на свой страх и риск."
|
268 |
|
269 |
+
#: custom-field-template/custom-field-template.php:824
|
270 |
+
msgid "For `text` and `textarea`, you must set $value as an string."
|
271 |
+
msgstr "Это опция только для типов полей `text` и `textarea`. Вы должны задать $values как массив."
|
272 |
+
|
273 |
+
#: custom-field-template/custom-field-template.php:826
|
274 |
+
msgid "For `checkbox`, `radio`, and `select`, you must set $values as an array."
|
275 |
+
msgstr "Это опция только для типов полей `checkbox`, `radio` и `select`. Вы должны задать $values как массив."
|
276 |
+
|
277 |
+
#: custom-field-template/custom-field-template.php:852
|
278 |
+
msgid "Auto Hook of `the_content()` (Experimental Option)"
|
279 |
+
msgstr "Автоматический хук (hook) для `the_content()` (экспериментальная опция)"
|
280 |
+
|
281 |
+
#: custom-field-template/custom-field-template.php:862
|
282 |
+
msgid "Position"
|
283 |
+
msgstr "Позиция"
|
284 |
+
|
285 |
+
#: custom-field-template/custom-field-template.php:863
|
286 |
+
msgid "Before the conetnt"
|
287 |
+
msgstr "Перед телом поста"
|
288 |
+
|
289 |
+
#: custom-field-template/custom-field-template.php:864
|
290 |
+
msgid "After the conetnt"
|
291 |
+
msgstr "После тела поста"
|
292 |
+
|
293 |
+
#: custom-field-template/custom-field-template.php:865
|
294 |
+
#, php-format
|
295 |
+
msgid "Inside the conetnt ([cfthook hook=%d])"
|
296 |
+
msgstr "Внутри контента ([cfthook hook=%d])"
|
297 |
+
|
298 |
+
#: custom-field-template/custom-field-template.php:873
|
299 |
+
msgid "Content"
|
300 |
+
msgstr "Тело поста"
|
301 |
+
|
302 |
+
#: custom-field-template/custom-field-template.php:875
|
303 |
+
msgid "Apply to feeds"
|
304 |
+
msgstr "Применить к RSS-ленте"
|
305 |
+
|
306 |
+
#: custom-field-template/custom-field-template.php:891
|
307 |
+
msgid "Rebuild Value Counts"
|
308 |
+
msgstr "Перестроить подсчет значений"
|
309 |
+
|
310 |
+
#: custom-field-template/custom-field-template.php:893
|
311 |
+
msgid "Are you sure to rebuild all value counts?"
|
312 |
+
msgstr "Уверены?"
|
313 |
+
|
314 |
+
#: custom-field-template/custom-field-template.php:897
|
315 |
+
msgid "Value Counts are used for temporarily saving how many values in each key. Set `valueCount = true` into fields."
|
316 |
+
msgstr "Подсчет значений используется для временного хранения информации о том, сколько значений в каждом ключе произвольного поля. Установите `valueCount = true` в поля."
|
317 |
|
318 |
+
#: custom-field-template/custom-field-template.php:901
|
319 |
+
msgid "Rebuild Value Counts »"
|
320 |
+
msgstr "Обновить »"
|
321 |
+
|
322 |
+
#: custom-field-template/custom-field-template.php:912
|
323 |
+
#, fuzzy
|
324 |
+
msgid "Rebuild Tags"
|
325 |
+
msgstr "Перестроить теги"
|
326 |
+
|
327 |
+
#: custom-field-template/custom-field-template.php:914
|
328 |
+
#, fuzzy
|
329 |
+
msgid "Are you sure to rebuild tags?"
|
330 |
+
msgstr "Уверены?"
|
331 |
+
|
332 |
+
#: custom-field-template/custom-field-template.php:918
|
333 |
+
#, fuzzy
|
334 |
+
msgid "Rebuild Tags »"
|
335 |
+
msgstr "Обновить »"
|
336 |
+
|
337 |
+
#: custom-field-template/custom-field-template.php:929
|
338 |
msgid "Option List"
|
339 |
msgstr "Список настроек"
|
340 |
|
341 |
+
#: custom-field-template/custom-field-template.php:1088
|
342 |
+
msgid "Export Options"
|
343 |
+
msgstr "Экспорт настроек"
|
344 |
+
|
345 |
+
#: custom-field-template/custom-field-template.php:1094
|
346 |
+
msgid "Export Options »"
|
347 |
+
msgstr "Экспорт настроек »"
|
348 |
+
|
349 |
+
#: custom-field-template/custom-field-template.php:1104
|
350 |
+
msgid "Import Options"
|
351 |
+
msgstr "Импорт настроек"
|
352 |
+
|
353 |
+
#: custom-field-template/custom-field-template.php:1106
|
354 |
+
msgid "Are you sure to import options? Options you set will be overwritten."
|
355 |
+
msgstr "Импортировать настройки? Ваши настройки будут заменены новыми."
|
356 |
+
|
357 |
+
#: custom-field-template/custom-field-template.php:1110
|
358 |
+
msgid "Import Options »"
|
359 |
+
msgstr "Импорт настроек »"
|
360 |
+
|
361 |
+
#: custom-field-template/custom-field-template.php:1120
|
362 |
msgid "Reset Options"
|
363 |
msgstr "Сбросить настройки"
|
364 |
|
365 |
+
#: custom-field-template/custom-field-template.php:1122
|
366 |
msgid "Are you sure to reset options? Options you set will be reset to the default settings."
|
367 |
msgstr "Сбрасываем настройки? Все настройки будут сброшены к дефолтным, созданные шаблоны не сохранятся."
|
368 |
|
369 |
+
#: custom-field-template/custom-field-template.php:1126
|
370 |
+
msgid "Reset Options »"
|
371 |
msgstr "Сбросить настройки »"
|
372 |
|
373 |
+
#: custom-field-template/custom-field-template.php:1136
|
374 |
msgid "Delete Options"
|
375 |
msgstr "Удалить настройки"
|
376 |
|
377 |
+
#: custom-field-template/custom-field-template.php:1138
|
378 |
msgid "Are you sure to delete options? Options you set will be deleted."
|
379 |
msgstr "Удаляем настройки? Удалятся ВСЕ настройки и шаблоны."
|
380 |
|
381 |
+
#: custom-field-template/custom-field-template.php:1142
|
382 |
msgid "Delete Options »"
|
383 |
msgstr "Удалить настройки »"
|
384 |
|
385 |
+
#: custom-field-template/custom-field-template.php:1152
|
386 |
+
msgid "Donation"
|
387 |
+
msgstr "Отблагодарить"
|
388 |
+
|
389 |
+
#: custom-field-template/custom-field-template.php:1154
|
390 |
+
msgid "If you liked this plugin, please make a donation via paypal! Any amount is welcome. Your support is much appreciated."
|
391 |
+
msgstr "Если Вам понравился плагин можете отблагодарить автора через paypal! Он будет рад любой сумме вознаграждения. Ваша поддержка значима!"
|
392 |
+
|
393 |
+
#: custom-field-template/custom-field-template.php:1249
|
394 |
+
#: custom-field-template/custom-field-template.php:1368
|
395 |
+
#: custom-field-template/custom-field-template.php:1446
|
396 |
+
msgid "Add New"
|
397 |
+
msgstr "Добавить новый"
|
398 |
+
|
399 |
+
#: custom-field-template/custom-field-template.php:1378
|
400 |
msgid "Clear"
|
401 |
msgstr "очистить"
|
402 |
|
403 |
+
#: custom-field-template/custom-field-template.php:1462
|
404 |
+
msgid "Select"
|
405 |
+
msgstr "Выбрать"
|
406 |
|
407 |
+
#: custom-field-template/custom-field-template.php:1527
|
408 |
msgid "Add an Image"
|
409 |
msgstr "добавить изображение"
|
410 |
|
411 |
+
#: custom-field-template/custom-field-template.php:1532
|
412 |
msgid "Add Video"
|
413 |
msgstr "добавить видео-файл"
|
414 |
|
415 |
+
#: custom-field-template/custom-field-template.php:1537
|
416 |
msgid "Add Audio"
|
417 |
msgstr "добавить аудио-файл"
|
418 |
|
419 |
+
#: custom-field-template/custom-field-template.php:1541
|
420 |
+
msgid "Add Media"
|
421 |
+
msgstr "добавить медиа-файл"
|
422 |
+
|
423 |
+
#: custom-field-template/custom-field-template.php:1548
|
424 |
msgid "Toggle"
|
425 |
msgstr "Переключатель"
|
426 |
|
427 |
+
#: custom-field-template/custom-field-template.php:1899
|
428 |
+
msgid "Initialize"
|
429 |
+
msgstr ""
|
430 |
+
|
431 |
+
#: custom-field-template/custom-field-template.php:1900
|
432 |
+
msgid "Are you sure to reset current values? Default values will be loaded."
|
433 |
+
msgstr "Сброс настроек. Будут восстановлены начальные настройки."
|
434 |
+
|
435 |
+
#: custom-field-template/custom-field-template.php:1903
|
436 |
+
msgid "Save"
|
437 |
+
msgstr "Сохранить"
|
438 |
+
|
439 |
+
#: custom-field-template/custom-field-template.php:2407
|
440 |
+
msgid "Search »"
|
441 |
+
msgstr "Поиск »"
|
442 |
+
|
443 |
#~ msgid "Admin CSS"
|
444 |
#~ msgstr "CSS шаблона в админ. панели"
|
445 |
|
custom-field-template-uz_UZ.mo
ADDED
Binary file
|
custom-field-template-uz_UZ.po
ADDED
@@ -0,0 +1,184 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Custom Field Template 0.7.4\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2008-12-26 17:40+0300\n"
|
6 |
+
"PO-Revision-Date: \n"
|
7 |
+
"Last-Translator: Alisher <bigtaur@mail.ru>\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: Uzbek\n"
|
13 |
+
"X-Poedit-Country: UZBEKISTAN\n"
|
14 |
+
"X-Poedit-KeywordsList: __;_e\n"
|
15 |
+
"X-Poedit-Basepath: ../\n"
|
16 |
+
"X-Poedit-SourceCharset: utf-8\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:161
|
22 |
+
#: custom-field-template/custom-field-template.php:210
|
23 |
+
#: custom-field-template/custom-field-template.php:741
|
24 |
+
msgid "Custom Field Template"
|
25 |
+
msgstr "Custom field andazalari"
|
26 |
+
|
27 |
+
#: custom-field-template/custom-field-template.php:95
|
28 |
+
msgid "Settings"
|
29 |
+
msgstr "Sozlanmalar"
|
30 |
+
|
31 |
+
#: custom-field-template/custom-field-template.php:106
|
32 |
+
msgid "Default Template"
|
33 |
+
msgstr "Andaza namunasi"
|
34 |
+
|
35 |
+
#: custom-field-template/custom-field-template.php:181
|
36 |
+
#: custom-field-template/custom-field-template.php:185
|
37 |
+
#: custom-field-template/custom-field-template.php:193
|
38 |
+
msgid "Options updated."
|
39 |
+
msgstr "Sozlanmalar yangilandi."
|
40 |
+
|
41 |
+
#: custom-field-template/custom-field-template.php:198
|
42 |
+
msgid "Options resetted."
|
43 |
+
msgstr "Sozlanmalar birlamchi holarga qaytarildi."
|
44 |
+
|
45 |
+
#: custom-field-template/custom-field-template.php:202
|
46 |
+
msgid "Options deleted."
|
47 |
+
msgstr "Sozlanmalar o'chirildi."
|
48 |
+
|
49 |
+
#: custom-field-template/custom-field-template.php:216
|
50 |
+
msgid "Custom Field Template Options"
|
51 |
+
msgstr "Custom Field Template sozlanmalari"
|
52 |
+
|
53 |
+
#: custom-field-template/custom-field-template.php:226
|
54 |
+
#, php-format
|
55 |
+
msgid "Template Title %d"
|
56 |
+
msgstr "Andaza sarlavhasi %d"
|
57 |
+
|
58 |
+
#: custom-field-template/custom-field-template.php:228
|
59 |
+
#, php-format
|
60 |
+
msgid "Template Instruction %d"
|
61 |
+
msgstr "Andaza yo'riqnomasi %d"
|
62 |
+
|
63 |
+
#: custom-field-template/custom-field-template.php:230
|
64 |
+
#, php-format
|
65 |
+
msgid "Template Content %d"
|
66 |
+
msgstr "Andaza mazmuni %d"
|
67 |
+
|
68 |
+
#: custom-field-template/custom-field-template.php:237
|
69 |
+
msgid "In case that you would like to insert multiple images at once in use of the custom field media buttons"
|
70 |
+
msgstr "Agar bir martada bir necha tasvirlarni qo'shishni hohlasangiz"
|
71 |
+
|
72 |
+
#: custom-field-template/custom-field-template.php:238
|
73 |
+
msgid "Use multiple image inset"
|
74 |
+
msgstr "Bir nechta tasvirni ishlatish"
|
75 |
+
|
76 |
+
#: custom-field-template/custom-field-template.php:238
|
77 |
+
msgid "Caution:"
|
78 |
+
msgstr "Ogohlantirish:"
|
79 |
+
|
80 |
+
#: custom-field-template/custom-field-template.php:238
|
81 |
+
msgid "You need to edit `wp-admin/includes/media.php`. Delete or comment out the code in the function media_send_to_editor."
|
82 |
+
msgstr "Siz `code>wp-admin/includes/media.php` faylini tahrir qilishingiz lozim. Kodni media_send_to_editor amalida o'chiring yoki sharhlang."
|
83 |
+
|
84 |
+
#: custom-field-template/custom-field-template.php:242
|
85 |
+
msgid "In case that you would like to replace custom keys by labels if `label` is set"
|
86 |
+
msgstr "`Label` ko'rsatilgan holatda erkin kalitlarni yorliqlar bilan o'zgartirmoqchi bo'lsangiz"
|
87 |
+
|
88 |
+
#: custom-field-template/custom-field-template.php:243
|
89 |
+
msgid "Use labels in place of custom keys"
|
90 |
+
msgstr "Erkin kalitlar o'rniga yorliqlarni ishlatish"
|
91 |
+
|
92 |
+
#: custom-field-template/custom-field-template.php:246
|
93 |
+
msgid "In case that you would like to add p and br tags in textareas automatically"
|
94 |
+
msgstr "matn maydonchalariga \"p\" va \"br\" teglarini avtomatik tarzda kiritishni hohlasangiz"
|
95 |
+
|
96 |
+
#: custom-field-template/custom-field-template.php:247
|
97 |
+
msgid "Use wpautop function"
|
98 |
+
msgstr "wpautop amalini ishlatish"
|
99 |
+
|
100 |
+
#: custom-field-template/custom-field-template.php:251
|
101 |
+
#: custom-field-template/custom-field-template.php:270
|
102 |
+
#: custom-field-template/custom-field-template.php:298
|
103 |
+
msgid "Update Options »"
|
104 |
+
msgstr "Sozlanmalarni yangilash »"
|
105 |
+
|
106 |
+
#: custom-field-template/custom-field-template.php:260
|
107 |
+
#: custom-field-template/custom-field-template.php:279
|
108 |
+
#: custom-field-template/custom-field-template.php:307
|
109 |
+
#: custom-field-template/custom-field-template.php:372
|
110 |
+
#: custom-field-template/custom-field-template.php:388
|
111 |
+
msgid "Click to toggle"
|
112 |
+
msgstr "Kichraytirish"
|
113 |
+
|
114 |
+
#: custom-field-template/custom-field-template.php:261
|
115 |
+
msgid "CSS"
|
116 |
+
msgstr "CSS"
|
117 |
+
|
118 |
+
#: custom-field-template/custom-field-template.php:280
|
119 |
+
msgid "PHP CODE (Experimental Option)"
|
120 |
+
msgstr "PHP kod (tajribaviy optsiya)"
|
121 |
+
|
122 |
+
#: custom-field-template/custom-field-template.php:282
|
123 |
+
msgid "Are you sure to save PHP codes? Please do it at your own risk."
|
124 |
+
msgstr "PHP kodlarni saqlamoqchimisiz? Bu amal tajribaviyligi uchun ini o'z xavfingizga ishlating."
|
125 |
+
|
126 |
+
#: custom-field-template/custom-field-template.php:283
|
127 |
+
msgid "This option is available only for `radio` and `select` types. You must set $values as an array."
|
128 |
+
msgstr "Bu opsiya faqat `radio` va `select` tugmalari uchun. Siz $ko'rsatkichlarni bir qatorda joylashtirishingiz lozim."
|
129 |
+
|
130 |
+
#: custom-field-template/custom-field-template.php:308
|
131 |
+
msgid "Option List"
|
132 |
+
msgstr "Sozlanmalar ro'yxati"
|
133 |
+
|
134 |
+
#: custom-field-template/custom-field-template.php:373
|
135 |
+
msgid "Reset Options"
|
136 |
+
msgstr "Sozlanmalarni birlamchi holiga keltirish"
|
137 |
+
|
138 |
+
#: custom-field-template/custom-field-template.php:375
|
139 |
+
msgid "Are you sure to reset options? Options you set will be reset to the default settings."
|
140 |
+
msgstr "Sozlanmalarni birlamchi holiga qaytarmoqchimisiz? Siz o'rnatgan sozlanmalar birlamchi holiga qaytariladi."
|
141 |
+
|
142 |
+
#: custom-field-template/custom-field-template.php:379
|
143 |
+
msgid "Unset Options »"
|
144 |
+
msgstr "Sozlanmalarni birlamchi holiga qaytarish »"
|
145 |
+
|
146 |
+
#: custom-field-template/custom-field-template.php:389
|
147 |
+
msgid "Delete Options"
|
148 |
+
msgstr "Sozlanmalarni o'chirish"
|
149 |
+
|
150 |
+
#: custom-field-template/custom-field-template.php:391
|
151 |
+
msgid "Are you sure to delete options? Options you set will be deleted."
|
152 |
+
msgstr "SOzlanmalar o'chirilsinmi? Siz o'rnatgan sozlanmalar va andazalar o'chiriladi."
|
153 |
+
|
154 |
+
#: custom-field-template/custom-field-template.php:395
|
155 |
+
msgid "Delete Options »"
|
156 |
+
msgstr "Sozlanmalarni o'chirish »"
|
157 |
+
|
158 |
+
#: custom-field-template/custom-field-template.php:533
|
159 |
+
msgid "Clear"
|
160 |
+
msgstr "O'chirish"
|
161 |
+
|
162 |
+
#: custom-field-template/custom-field-template.php:634
|
163 |
+
msgid "Add Media"
|
164 |
+
msgstr "Media-fayl qo'shish"
|
165 |
+
|
166 |
+
#: custom-field-template/custom-field-template.php:636
|
167 |
+
msgid "Add an Image"
|
168 |
+
msgstr "Tasvir qo'shish"
|
169 |
+
|
170 |
+
#: custom-field-template/custom-field-template.php:638
|
171 |
+
msgid "Add Video"
|
172 |
+
msgstr "Video qo'shish"
|
173 |
+
|
174 |
+
#: custom-field-template/custom-field-template.php:640
|
175 |
+
msgid "Add Audio"
|
176 |
+
msgstr "Audio-fayl qo'shish"
|
177 |
+
|
178 |
+
#: custom-field-template/custom-field-template.php:651
|
179 |
+
msgid "Toggle"
|
180 |
+
msgstr "Qayta ulagich"
|
181 |
+
|
182 |
+
#~ msgid "Admin CSS"
|
183 |
+
#~ msgstr "CSS шаблона в админ. панели"
|
184 |
+
|
custom-field-template.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Custom Field Template
|
|
4 |
Plugin URI: http://wpgogo.com/development/custom-field-template.html
|
5 |
Description: This plugin adds the default custom fields on the Write Post/Page.
|
6 |
Author: Hiroaki Miyashita
|
7 |
-
Version: 1.
|
8 |
Author URI: http://wpgogo.com/
|
9 |
*/
|
10 |
|
@@ -48,7 +48,7 @@ class custom_field_template {
|
|
48 |
add_shortcode( 'cftsearch', array(&$this, 'search_custom_field_values') );
|
49 |
endif;
|
50 |
}
|
51 |
-
|
52 |
function custom_field_template_init() {
|
53 |
global $wp_version;
|
54 |
$options = $this->get_custom_field_template_data();
|
@@ -130,8 +130,79 @@ class custom_field_template {
|
|
130 |
endif;
|
131 |
}
|
132 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
}
|
134 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
function add_quick_edit_custom_box($column_name, $type) {
|
136 |
if( $column_name == 'custom-fields' ) :
|
137 |
global $wp_version;
|
@@ -457,7 +528,8 @@ mediaButton = true';
|
|
457 |
#cft dd { float:left; margin:0; text-align:left; width:80%; }
|
458 |
#cft dd p.label { font-weight:bold; margin:0; }
|
459 |
#cft_instruction { margin:10px; }
|
460 |
-
|
|
|
461 |
update_option('custom_field_template_data', $options);
|
462 |
}
|
463 |
|
@@ -937,146 +1009,149 @@ hideKey = true<br />
|
|
937 |
<table class="widefat" style="margin:10px 0 5px 0;">
|
938 |
<thead>
|
939 |
<tr>
|
940 |
-
<th>type</th><th>text or textfield</th><th>checkbox</th><th>radio</th><th>select</th><th>textarea</th>
|
941 |
</tr>
|
942 |
</thead>
|
943 |
<tbody>
|
944 |
<tr>
|
945 |
-
<th>hideKey</th><td>hideKey = true</td><td>hideKey = true</td><td>hideKey = true</td><td>hideKey = true</td><td>hideKey = true</td>
|
946 |
</tr>
|
947 |
<tr>
|
948 |
-
<th>label</th><td>label = ABC</td><td>label = DEF</td><td>label = GHI</td><td>label = JKL</td><td>label = MNO</td>
|
949 |
</tr>
|
950 |
<tr>
|
951 |
-
<th>size</th><td>size = 30</td><td></td><td></td><td></td><td></td>
|
952 |
</tr>
|
953 |
<tr>
|
954 |
-
<th>value</th><td></td><td>value = apple # orange # banana</td><td>value = apple # orange # banana</td><td>value = apple # orange # banana</td>
|
955 |
<td></td>
|
956 |
</tr>
|
957 |
<tr>
|
958 |
-
<th>valueLabel</th><td></td><td>valueLabel = apples # oranges # bananas</td><td>valueLabel = apples # oranges # bananas</td><td>valueLabel = apples # oranges # bananas</td>
|
959 |
<td></td>
|
960 |
</tr>
|
961 |
<tr>
|
962 |
-
<th>default</th><td>default = orange</td><td>default = orange # banana</td><td>default = orange</td><td>default = orange</td><td>default = orange</td>
|
963 |
</tr>
|
964 |
<tr>
|
965 |
-
<th>clearButton</th><td></td><td></td><td>clearButton = true</td><td></td><td></td>
|
966 |
</tr>
|
967 |
<tr>
|
968 |
-
<th>selectLabel</th><td></td><td></td><td></td><td>selectLabel = Select a fruit</td><td></td>
|
969 |
</tr>
|
970 |
<tr>
|
971 |
-
<th>rows</th><td></td><td></td><td></td><td></td><td>rows = 4</td>
|
972 |
</tr>
|
973 |
<tr>
|
974 |
-
<th>cols</th><td></td><td></td><td></td><td></td><td>cols = 40</td>
|
975 |
</tr>
|
976 |
<tr>
|
977 |
-
<th>tinyMCE</th><td></td><td></td><td></td><td></td><td>tinyMCE = true</td>
|
978 |
</tr>
|
979 |
<tr>
|
980 |
-
<th>htmlEditor</th><td></td><td></td><td></td><td></td><td>htmlEditor = true</td>
|
981 |
</tr>
|
982 |
<tr>
|
983 |
-
<th>date</th><td>date = true</td><td></td><td></td><td></td><td></td>
|
984 |
</tr>
|
985 |
<tr>
|
986 |
-
<th>dateFirstDayOfWeek</th><td>dateFirstDayOfWeek = 0</td><td></td><td></td><td></td><td></td>
|
987 |
</tr>
|
988 |
<tr>
|
989 |
-
<th>dateFormat</th><td>dateFormat = yyyy/mm/dd</td><td></td><td></td><td></td><td></td>
|
990 |
</tr>
|
991 |
<tr>
|
992 |
-
<th>startDate</th><td>startDate = '1970/01/01'</td><td></td><td></td><td></td><td></td>
|
993 |
</tr>
|
994 |
<tr>
|
995 |
-
<th>endDate</th><td>endDate = (new Date()).asString()</td><td></td><td></td><td></td><td></td>
|
996 |
</tr>
|
997 |
<tr>
|
998 |
-
<th>readOnly</th><td>readOnly = true</td><td></td><td></td><td></td><td></td>
|
999 |
</tr>
|
1000 |
<tr>
|
1001 |
-
<th>mediaButton</th><td></td><td></td><td></td><td></td><td>mediaButton = true</td>
|
1002 |
</tr>
|
1003 |
<tr>
|
1004 |
-
<th>mediaOffImage</th><td></td><td></td><td></td><td></td><td>mediaOffImage = true</td>
|
1005 |
</tr>
|
1006 |
<tr>
|
1007 |
-
<th>mediaOffVideo</th><td></td><td></td><td></td><td></td><td>mediaOffVideo = true</td>
|
1008 |
</tr>
|
1009 |
<tr>
|
1010 |
-
<th>mediaOffAudio</th><td></td><td></td><td></td><td></td><td>mediaOffAudio = true</td>
|
1011 |
</tr>
|
1012 |
<tr>
|
1013 |
-
<th>mediaOffMedia</th><td></td><td></td><td></td><td></td><td>mediaOffMedia = true</td>
|
1014 |
</tr>
|
1015 |
<tr>
|
1016 |
-
<th>
|
1017 |
</tr>
|
1018 |
<tr>
|
1019 |
-
<th>
|
1020 |
</tr>
|
1021 |
<tr>
|
1022 |
-
<th>
|
1023 |
</tr>
|
1024 |
<tr>
|
1025 |
-
<th>
|
1026 |
</tr>
|
1027 |
<tr>
|
1028 |
-
<th>
|
1029 |
</tr>
|
1030 |
<tr>
|
1031 |
-
<th>
|
1032 |
</tr>
|
1033 |
<tr>
|
1034 |
-
<th>
|
1035 |
</tr>
|
1036 |
<tr>
|
1037 |
-
<th>
|
1038 |
</tr>
|
1039 |
<tr>
|
1040 |
-
<th>
|
1041 |
</tr>
|
1042 |
<tr>
|
1043 |
-
<th>
|
1044 |
</tr>
|
1045 |
<tr>
|
1046 |
-
<th>
|
1047 |
</tr>
|
1048 |
<tr>
|
1049 |
-
<th>
|
1050 |
</tr>
|
1051 |
<tr>
|
1052 |
-
<th>
|
1053 |
</tr>
|
1054 |
<tr>
|
1055 |
-
<th>
|
1056 |
</tr>
|
1057 |
<tr>
|
1058 |
-
<th>
|
1059 |
</tr>
|
1060 |
<tr>
|
1061 |
-
<th>
|
1062 |
</tr>
|
1063 |
<tr>
|
1064 |
-
<th>
|
|
|
|
|
|
|
1065 |
</tr>
|
1066 |
<tr>
|
1067 |
-
<th>style</th><td>style = color:#FF0000;</td><td>style = color:#FF0000;</td><td>style = color:#FF0000;</td><td>style = color:#FF0000;</td><td>style = color:#FF0000;</td>
|
1068 |
</tr>
|
1069 |
<tr>
|
1070 |
-
<th>before</th><td>before = abcde</td><td></td><td></td><td>before = abcde</td><td></td>
|
1071 |
</tr>
|
1072 |
<tr>
|
1073 |
-
<th>after</th><td>after = abcde</td><td></td><td></td><td>after = abcde</td><td></td>
|
1074 |
</tr>
|
1075 |
<tr>
|
1076 |
-
<th>valueCount</th><td>valueCount = true</td><td>valueCount = true</td><td>valueCount = true</td><td>valueCount = true</td><td>valueCount = true</td>
|
1077 |
</tr>
|
1078 |
<tr>
|
1079 |
-
<th>JavaScript Event Handlers</th><td>onclick = alert('ok');</td><td>onchange = alert('ok');</td><td>onchange = alert('ok');</td><td>onchange = alert('ok');</td><td>onfocus = alert('ok');</td>
|
1080 |
</tr>
|
1081 |
</tbody>
|
1082 |
</table>
|
@@ -1202,7 +1277,7 @@ jQuery(this).addClass("closed");
|
|
1202 |
return $custom_fields;
|
1203 |
}
|
1204 |
|
1205 |
-
function make_textfield( $name, $sid, $size = 25, $default, $hideKey, $label, $code, $class, $style, $before, $after, $maxlength, $multipleButton, $date, $dateFirstDayOfWeek, $dateFormat, $startDate, $endDate, $readOnly,
|
1206 |
$onclick, $ondblclick, $onkeydown, $onkeypress, $onkeyup, $onmousedown, $onmouseup, $onmouseover, $onmouseout, $onmousemove, $onfocus, $onblur, $onchange, $onselect ) {
|
1207 |
$options = $this->get_custom_field_template_data();
|
1208 |
|
@@ -1214,18 +1289,20 @@ jQuery(this).addClass("closed");
|
|
1214 |
endif;
|
1215 |
|
1216 |
if( isset( $_REQUEST[ 'post' ] ) && $_REQUEST[ 'post' ] > 0 && $_REQUEST['default'] != true ) {
|
1217 |
-
$value = get_post_meta( $_REQUEST[ 'post' ], $title );
|
1218 |
if ( $value ) {
|
1219 |
-
$
|
|
|
1220 |
}
|
1221 |
} else {
|
1222 |
$value = $default;
|
1223 |
}
|
|
|
1224 |
|
1225 |
if ( $enforced_value ) :
|
1226 |
$value = $enforced_value;
|
1227 |
endif;
|
1228 |
-
|
1229 |
if ( $hideKey == true ) $hide = ' class="hideKey"';
|
1230 |
if ( !empty($class) && $date == true ) $class = ' class="' . $class . ' datePicker"';
|
1231 |
elseif ( empty($class) && $date == true ) $class = ' class="datePicker"';
|
@@ -1244,20 +1321,20 @@ jQuery(this).addClass("closed");
|
|
1244 |
$event_output .= " " . $key . '="' . stripcslashes(trim($val)) . '"';
|
1245 |
endforeach;
|
1246 |
|
1247 |
-
if ( $multipleButton == true && $
|
1248 |
-
$addfield .= '<div>';
|
1249 |
-
$addfield .= '<a href="#clear" onclick="jQuery(this).parent().parent().parent().clone().
|
1250 |
$addfield .= '</div>';
|
1251 |
endif;
|
1252 |
|
1253 |
$out .=
|
1254 |
'<dl id="dl_' . $name . $sid . '">' .
|
1255 |
-
'<dt><span' . $hide . '><label for="' . $name . $sid . '">' . $title . '</label></span>'.$addfield.'</dt>' .
|
1256 |
'<dd>';
|
1257 |
|
1258 |
if ( !empty($label) && !$options['custom_field_template_replace_keys_by_labels'] )
|
1259 |
$out .= '<p class="label">' . stripcslashes($label) . '</p>';
|
1260 |
-
$out .= trim($before).'<input id="' . $name . $sid . '" name="' . $name . '[]" value="' . attribute_escape(trim($value)) . '" type="text" size="' . $size . '"' . $class . $style . $maxlength . $event_output . $readOnly . ' />'.trim($after);
|
1261 |
|
1262 |
if ( $date == true ) :
|
1263 |
$out .= '<script type="text/javascript">' . "\n" .
|
@@ -1278,7 +1355,7 @@ jQuery(this).addClass("closed");
|
|
1278 |
return $out;
|
1279 |
}
|
1280 |
|
1281 |
-
function make_checkbox( $name, $sid, $value, $valueLabel, $checked, $hideKey, $label, $code, $class, $style,
|
1282 |
$onclick, $ondblclick, $onkeydown, $onkeypress, $onkeyup, $onmousedown, $onmouseup, $onmouseover, $onmouseout, $onmousemove, $onfocus, $onblur, $onchange, $onselect ) {
|
1283 |
$options = $this->get_custom_field_template_data();
|
1284 |
|
@@ -1288,7 +1365,7 @@ jQuery(this).addClass("closed");
|
|
1288 |
if ( !$value ) $value = "true";
|
1289 |
|
1290 |
if( isset( $_REQUEST[ 'post' ] ) && $_REQUEST[ 'post' ] > 0 && $_REQUEST['default'] != true ) {
|
1291 |
-
$selected = get_post_meta( $_REQUEST[ 'post' ], $title );
|
1292 |
if ( $selected ) {
|
1293 |
if ( in_array(stripcslashes($value), $selected) ) $checked = 'checked="checked"';
|
1294 |
}
|
@@ -1319,7 +1396,7 @@ jQuery(this).addClass("closed");
|
|
1319 |
|
1320 |
if ( !empty($label) && !$options['custom_field_template_replace_keys_by_labels'] )
|
1321 |
$out .= '<p class="label">' . stripcslashes($label) . '</p>';
|
1322 |
-
$out .= '<label for="' . $id . '" class="selectit"><input id="' . $id . '" name="' . $name . '[' . $sid . ']" value="' . attribute_escape(trim($value)) . '"' . $checked . ' type="checkbox"' . $class . $style . $event_output . ' /> ';
|
1323 |
if ( $valueLabel )
|
1324 |
$out .= stripcslashes(trim($valueLabel));
|
1325 |
else
|
@@ -1331,7 +1408,7 @@ jQuery(this).addClass("closed");
|
|
1331 |
return $out;
|
1332 |
}
|
1333 |
|
1334 |
-
function make_radio( $name, $sid, $values, $valueLabel, $clearButton, $default, $hideKey, $label, $code, $class, $style, $multipleButton,
|
1335 |
$onclick, $ondblclick, $onkeydown, $onkeypress, $onkeyup, $onmousedown, $onmouseup, $onmouseover, $onmouseout, $onmousemove, $onfocus, $onblur, $onchange, $onselect ) {
|
1336 |
$options = $this->get_custom_field_template_data();
|
1337 |
|
@@ -1343,11 +1420,13 @@ jQuery(this).addClass("closed");
|
|
1343 |
endif;
|
1344 |
|
1345 |
if( isset( $_REQUEST[ 'post' ] ) && $_REQUEST[ 'post' ] > 0 && $_REQUEST['default'] != true ) {
|
1346 |
-
$selected = get_post_meta( $_REQUEST[ 'post' ], $title );
|
1347 |
-
$
|
|
|
1348 |
} else {
|
1349 |
$selected = $default;
|
1350 |
}
|
|
|
1351 |
|
1352 |
if ( $hideKey == true ) $hide = ' class="hideKey"';
|
1353 |
if ( !empty($class) ) $class = ' class="' . $class . '"';
|
@@ -1363,14 +1442,14 @@ jQuery(this).addClass("closed");
|
|
1363 |
$event_output .= " " . $key . '="' . stripcslashes(trim($val)) . '"';
|
1364 |
endforeach;
|
1365 |
|
1366 |
-
if ( $multipleButton == true && $
|
1367 |
-
$addfield .= '<div>';
|
1368 |
-
$addfield .= '<a href="#clear" onclick="jQuery(this).parent().parent().parent().clone().
|
1369 |
$addfield .= '</div>';
|
1370 |
endif;
|
1371 |
|
1372 |
$out .=
|
1373 |
-
'<dl id="dl_' . $name . $sid . '">' .
|
1374 |
'<dt><span' . $hide . '>' . $title . '</span>'.$addfield;
|
1375 |
|
1376 |
if( $clearButton == true ) {
|
@@ -1393,7 +1472,7 @@ jQuery(this).addClass("closed");
|
|
1393 |
$checked = ( trim( $val ) == trim( $selected ) ) ? 'checked="checked"' : '';
|
1394 |
|
1395 |
$out .=
|
1396 |
-
'<label for="' . $id . '" class="selectit"><input
|
1397 |
if ( $valueLabel[$i] )
|
1398 |
$out .= stripcslashes(trim($valueLabel[$i]));
|
1399 |
else
|
@@ -1407,7 +1486,7 @@ jQuery(this).addClass("closed");
|
|
1407 |
return $out;
|
1408 |
}
|
1409 |
|
1410 |
-
function make_select( $name, $sid, $values, $valueLabel, $default, $hideKey, $label, $code, $class, $style, $before, $after, $selectLabel, $multipleButton,
|
1411 |
$onclick, $ondblclick, $onkeydown, $onkeypress, $onkeyup, $onmousedown, $onmouseup, $onmouseover, $onmouseout, $onmousemove, $onfocus, $onblur, $onchange, $onselect ) {
|
1412 |
$options = $this->get_custom_field_template_data();
|
1413 |
|
@@ -1419,13 +1498,15 @@ jQuery(this).addClass("closed");
|
|
1419 |
endif;
|
1420 |
|
1421 |
if( isset( $_REQUEST[ 'post' ] ) && $_REQUEST[ 'post' ] > 0 && $_REQUEST['default'] != true ) {
|
1422 |
-
$selected = get_post_meta( $_REQUEST[ 'post' ], $title );
|
|
|
1423 |
if ( $selected ) {
|
1424 |
-
$selected = $selected[ $
|
1425 |
}
|
1426 |
} else {
|
1427 |
$selected = $default;
|
1428 |
}
|
|
|
1429 |
|
1430 |
if ( $hideKey == true ) $hide = ' class="hideKey"';
|
1431 |
if ( !empty($class) ) $class = ' class="' . $class . '"';
|
@@ -1441,20 +1522,20 @@ jQuery(this).addClass("closed");
|
|
1441 |
$event_output .= " " . $key . '="' . stripcslashes(trim($val)) . '"';
|
1442 |
endforeach;
|
1443 |
|
1444 |
-
if ( $multipleButton == true && $
|
1445 |
-
$addfield .= '<div>';
|
1446 |
-
$addfield .= '<a href="#clear" onclick="jQuery(this).parent().parent().parent().clone().
|
1447 |
$addfield .= '</div>';
|
1448 |
endif;
|
1449 |
|
1450 |
$out .=
|
1451 |
-
'<dl id="dl_' . $name . $sid . '">' .
|
1452 |
-
'<dt><span' . $hide . '><label for="' . $name . $sid . '">' . $title . '</label></span>'.$addfield.'</dt>' .
|
1453 |
'<dd>';
|
1454 |
|
1455 |
if ( !empty($label) && !$options['custom_field_template_replace_keys_by_labels'] )
|
1456 |
$out .= '<p class="label">' . stripcslashes($label) . '</p>';
|
1457 |
-
$out .= trim($before).'<select id="' . $name . $sid . '" name="' . $name . '[]"' . $class . $style . $event_output . '>';
|
1458 |
|
1459 |
if ( $selectLabel )
|
1460 |
$out .= '<option value="">' . stripcslashes(trim($selectLabel)) . '</option>';
|
@@ -1480,7 +1561,7 @@ jQuery(this).addClass("closed");
|
|
1480 |
return $out;
|
1481 |
}
|
1482 |
|
1483 |
-
function make_textarea( $name, $sid, $rows, $cols, $tinyMCE, $htmlEditor, $mediaButton, $default, $hideKey, $label, $code, $class, $style, $mediaOffMedia, $mediaOffImage, $mediaOffVideo, $mediaOffAudio,
|
1484 |
$onclick, $ondblclick, $onkeydown, $onkeypress, $onkeyup, $onmousedown, $onmouseup, $onmouseover, $onmouseout, $onmousemove, $onfocus, $onblur, $onchange, $onselect ) {
|
1485 |
$options = $this->get_custom_field_template_data();
|
1486 |
|
@@ -1494,8 +1575,8 @@ jQuery(this).addClass("closed");
|
|
1494 |
endif;
|
1495 |
|
1496 |
if( isset( $_REQUEST[ 'post' ] ) && $_REQUEST[ 'post' ] > 0 && $_REQUEST['default'] != true ) {
|
1497 |
-
$value = get_post_meta( $_REQUEST[ 'post' ], $title );
|
1498 |
-
$value = $value[ $
|
1499 |
} else {
|
1500 |
$value = $default;
|
1501 |
}
|
@@ -1570,8 +1651,8 @@ jQuery(this).addClass("closed");
|
|
1570 |
endforeach;
|
1571 |
|
1572 |
$out .=
|
1573 |
-
'<dl id="dl_' . $name . $sid . '">' .
|
1574 |
-
'<dt><span' . $hide . '><label for="' . $name . $sid . '">' . $title . '</label></span><br />' . $media . $switch . '</dt>' .
|
1575 |
'<dd>';
|
1576 |
|
1577 |
if ( !empty($label) && !$options['custom_field_template_replace_keys_by_labels'] )
|
@@ -1584,12 +1665,73 @@ jQuery(this).addClass("closed");
|
|
1584 |
$editorcontainer_class .= ' class="editorcontainer"';
|
1585 |
endif;
|
1586 |
|
1587 |
-
$out .= '<div' . $editorcontainer_class . ' id="editorcontainer_' . $name . $rand . '"><textarea id="' . $name . $rand . '" name="' . $name . '[' . $sid . ']" rows="' .$rows. '" cols="' . $cols . '"' . $content_class . $style . $event_output . '>' . attribute_escape(trim($value)) . '</textarea><input type="hidden" name="'.$name.'_rand['.$sid.']" value="'.$rand.'" /></div>';
|
1588 |
if ( $htmlEditor == true ) $out .= '</div>';
|
1589 |
$out .= '</dd></dl>'."\n";
|
1590 |
|
1591 |
return $out;
|
1592 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1593 |
|
1594 |
function load_custom_field( $id = 0 ) {
|
1595 |
global $userdata, $post;
|
@@ -1608,12 +1750,11 @@ jQuery(this).addClass("closed");
|
|
1608 |
endif;
|
1609 |
endif;
|
1610 |
|
1611 |
-
|
1612 |
$fields = $this->get_custom_fields( $id );
|
1613 |
-
|
1614 |
if ( $fields == null )
|
1615 |
return;
|
1616 |
-
|
1617 |
if ( $options['custom_fields'][$id]['post_type'] ) :
|
1618 |
if ( $options['custom_fields'][$id]['post_type'] == 'post' && (strstr($_SERVER['REQUEST_URI'], 'wp-admin/page-new.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/page.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/edit-pages.php')) )
|
1619 |
return;
|
@@ -1632,6 +1773,9 @@ jQuery(this).addClass("closed");
|
|
1632 |
|
1633 |
if ( $_REQUEST['post'] && $options['custom_fields'][$id]['category'] && !isset($options['posts'][$_REQUEST['post']]) && $options['posts'][$_REQUEST['post']] !== $id && $_REQUEST['cft_mode'] != 'ajaxload' )
|
1634 |
return;
|
|
|
|
|
|
|
1635 |
|
1636 |
if ( $options['custom_fields'][$id]['post'] ) :
|
1637 |
$post_ids = explode(',', $options['custom_fields'][$id]['post']);
|
@@ -1655,44 +1799,75 @@ jQuery(this).addClass("closed");
|
|
1655 |
|
1656 |
$out .= '<div id="cft_'.$id.'">';
|
1657 |
$out .= '<input type="hidden" name="custom-field-template-id" id="custom-field-template-id" value="' . $id . '" />';
|
1658 |
-
foreach( $fields as $
|
1659 |
-
|
1660 |
-
if ( is_numeric($data[
|
1661 |
-
|
1662 |
-
|
1663 |
-
|
1664 |
-
|
1665 |
-
$
|
1666 |
-
|
1667 |
-
|
1668 |
-
|
1669 |
-
|
1670 |
-
|
1671 |
-
|
1672 |
-
|
1673 |
-
$
|
1674 |
-
$
|
1675 |
-
|
1676 |
-
|
1677 |
-
|
1678 |
-
|
1679 |
-
$
|
1680 |
-
|
1681 |
-
|
1682 |
-
|
1683 |
-
|
1684 |
-
|
1685 |
-
|
1686 |
-
|
1687 |
-
|
1688 |
-
|
1689 |
-
|
1690 |
-
|
1691 |
-
|
1692 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1693 |
}
|
1694 |
}
|
1695 |
-
|
1696 |
$out .= '<script type="text/javascript">' . "\n" .
|
1697 |
'// <![CDATA[' . "\n";
|
1698 |
$out .= ' jQuery(document).ready(function() {' . "\n" .
|
@@ -1807,19 +1982,21 @@ jQuery(this).addClass("closed");
|
|
1807 |
|
1808 |
$fields = $this->get_custom_fields( $init_id );
|
1809 |
if ( user_can_richedit() ) :
|
1810 |
-
|
1811 |
-
|
1812 |
-
|
1813 |
-
|
|
|
1814 |
/*$out .= ' if ( getUserSetting( "editor" ) == "html" ) {
|
1815 |
jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
1816 |
-
|
1817 |
$out .= ' if(wpTinyMCEConfig) if(wpTinyMCEConfig.defaultEditor == "html") { jQuery("#edButtonPreview").trigger("click"); }' . "\n";
|
1818 |
-
|
1819 |
-
|
1820 |
-
|
1821 |
-
|
1822 |
-
|
|
|
1823 |
endif;
|
1824 |
|
1825 |
if ( $options['custom_fields'] ) :
|
@@ -1830,7 +2007,7 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
1830 |
$categories = array_filter($categories);
|
1831 |
foreach($categories as $cat_id) :
|
1832 |
if ( is_numeric($cat_id) ) :
|
1833 |
-
$out .= '
|
1834 |
if ( $options['custom_field_template_use_autosave'] ) :
|
1835 |
$out .= ' var fields = jQuery(\'#cft :input\').fieldSerialize();';
|
1836 |
$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) {';
|
@@ -1839,7 +2016,7 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
1839 |
endif;
|
1840 |
$out .= 'jQuery(\'#cft\').html(html);}});}});';
|
1841 |
else :
|
1842 |
-
$out .= ' jQuery(\'#custom_field_template_select\').val(\'' . $key . '\');jQuery.ajax({type: \'GET\', url: \'?page=custom-field-template/custom-field-template.php&cft_mode=ajaxload&id=' . $key . '&post=\'+jQuery(\'#post_ID\').val(), success: function(html) {';
|
1843 |
if ( $options['custom_field_template_replace_the_title'] ) :
|
1844 |
$out .= 'jQuery(\'#cftdiv h3 span\').text(\'' . $options['custom_fields'][$key]['title'] . '\');';
|
1845 |
endif;
|
@@ -1847,7 +2024,7 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
1847 |
endif;
|
1848 |
$out .= ' });';
|
1849 |
|
1850 |
-
$out .= ' }else{ jQuery(\'#cft\').html(\'\');jQuery.get(\'?page=custom-field-template/custom-field-template.php&cft_mode=selectbox&post=\'+jQuery(\'#post_ID\').val(), function(html) { jQuery(\'#cft_selectbox\').html(html); jQuery.ajax({type: \'GET\', url: \'?page=custom-field-template/custom-field-template.php&cft_mode=ajaxload&post=\'+jQuery(\'#post_ID\').val(), success: function(html) { jQuery(\'#cft\').html(html);}}); });';
|
1851 |
if ( $options['custom_field_template_replace_the_title'] ) :
|
1852 |
$out .= 'jQuery(\'#cftdiv h3 span\').text(\'' . __('Custom Field Template', 'custom-field-template') . '\');';
|
1853 |
endif;
|
@@ -2007,7 +2184,7 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2007 |
endif;
|
2008 |
|
2009 |
$filtered_cfts = $this->custom_field_template_filter();
|
2010 |
-
|
2011 |
if( count($filtered_cfts) < 1 ) :
|
2012 |
return ' ';
|
2013 |
endif;
|
@@ -2072,58 +2249,116 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2072 |
$tags_input = explode(",", $_POST['tags_input']);
|
2073 |
}
|
2074 |
}
|
2075 |
-
|
2076 |
-
|
2077 |
-
|
2078 |
-
|
2079 |
-
|
2080 |
-
|
2081 |
-
|
2082 |
-
|
2083 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2084 |
|
2085 |
-
|
2086 |
-
|
2087 |
-
|
2088 |
-
|
2089 |
-
|
2090 |
-
|
2091 |
-
|
2092 |
-
$
|
2093 |
-
|
2094 |
-
|
2095 |
-
|
2096 |
-
|
2097 |
-
|
|
|
|
|
|
|
|
|
2098 |
|
2099 |
-
|
2100 |
-
|
2101 |
-
|
2102 |
-
|
2103 |
-
|
2104 |
-
|
2105 |
-
|
2106 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2107 |
if ( count($values) == 1 ) :
|
2108 |
-
if ( !add_post_meta( $id, $title, apply_filters('cft_'.
|
2109 |
-
|
2110 |
-
endif;
|
2111 |
-
elseif ( count($values) > 1 ) :
|
2112 |
-
$tmp = get_post_meta( $id, $title, false );
|
2113 |
-
if ( count($tmp)>0 ) :
|
2114 |
-
if ( $values != $tmp ) :
|
2115 |
delete_post_meta($id, $title);
|
2116 |
-
|
2117 |
-
|
|
|
2118 |
endif;
|
2119 |
-
|
|
|
|
|
|
|
|
|
2120 |
foreach($values as $val)
|
2121 |
-
add_post_meta( $id, $title, apply_filters('cft_'.
|
2122 |
endif;
|
2123 |
-
else :
|
2124 |
-
delete_post_meta($id, $title);
|
2125 |
endif;
|
2126 |
-
|
2127 |
|
2128 |
if ( is_array($tags_input) ) :
|
2129 |
if ( class_exists('SimpleTags') ) :
|
@@ -2147,8 +2382,8 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2147 |
$Section = NULL;
|
2148 |
$Data = array();
|
2149 |
$Sections = array();
|
2150 |
-
$id = 0;
|
2151 |
if ($Temp = strtok($Str,"\r\n")) {
|
|
|
2152 |
do {
|
2153 |
switch ($Temp{0}) {
|
2154 |
case ';':
|
@@ -2160,14 +2395,12 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2160 |
}
|
2161 |
$Pos = strpos($Temp,'[');
|
2162 |
$Section = substr($Temp,$Pos+1,strpos($Temp,']',$Pos)-1);
|
2163 |
-
|
2164 |
-
|
2165 |
-
|
2166 |
-
|
2167 |
-
|
2168 |
-
|
2169 |
-
$Sections[] = $Section;
|
2170 |
-
if($Data[$Section])
|
2171 |
break;
|
2172 |
default:
|
2173 |
$Pos = strpos($Temp,'=');
|
@@ -2177,9 +2410,9 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2177 |
$Value = array();
|
2178 |
$Value["NAME"] = trim(substr($Temp,0,$Pos));
|
2179 |
$Value["VALUE"] = trim(substr($Temp,$Pos+1));
|
2180 |
-
|
2181 |
if ($ProcessSections) {
|
2182 |
-
$Data[$
|
2183 |
}
|
2184 |
else {
|
2185 |
$Data[$Value["NAME"]] = $Value["VALUE"];
|
@@ -2187,37 +2420,19 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2187 |
break;
|
2188 |
}
|
2189 |
} while ($Temp = strtok("\r\n"));
|
2190 |
-
|
2191 |
-
|
2192 |
-
|
2193 |
-
|
2194 |
-
|
2195 |
-
|
2196 |
-
|
2197 |
-
|
2198 |
-
|
2199 |
-
if ( is_numeric($val['startNum']) && $val['startNum']>$counter ) $counter = $val['startNum'];
|
2200 |
-
if ( is_numeric($val['endNum']) && $val['endNum']<$counter ) $counter = $val['endNum'];
|
2201 |
-
endif;
|
2202 |
-
if ( $counter ) :
|
2203 |
-
for($i=1;$i<$counter; $i++) :
|
2204 |
-
$Data[$title][$i] = $Data[$title][0];
|
2205 |
-
$Data[$title][$i]["hideKey"] = true;
|
2206 |
-
endfor;
|
2207 |
-
endif;
|
2208 |
-
unset($counter);
|
2209 |
-
endforeach;
|
2210 |
-
endforeach;
|
2211 |
-
|
2212 |
-
foreach($Data as $title => $data) {
|
2213 |
-
foreach($data as $key => $val) {
|
2214 |
-
if($val["type"] == "checkbox") {
|
2215 |
-
if ( is_numeric($val["code"]) ) :
|
2216 |
-
eval(stripcslashes($options['php'][$val["code"]]));
|
2217 |
else :
|
2218 |
-
$values = explode( '#', $
|
2219 |
-
$valueLabel = explode( '#', $
|
2220 |
-
$defaults = explode( '#', $
|
2221 |
endif;
|
2222 |
|
2223 |
if ( is_array($defaults) )
|
@@ -2225,37 +2440,105 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2225 |
$defaults[$dkey] = trim($dval);
|
2226 |
|
2227 |
$tmp = $key;
|
|
|
2228 |
if ( is_array($values) ) :
|
2229 |
-
$i = 0;
|
2230 |
foreach($values as $value) {
|
2231 |
-
$
|
2232 |
-
$Data[$
|
|
|
|
|
2233 |
if ( $valueLabel[$i] )
|
2234 |
-
$Data[$
|
2235 |
if ( $tmp!=$key )
|
2236 |
-
$Data[$
|
2237 |
-
if ( is_array($defaults) )
|
2238 |
if ( in_array(trim($value), $defaults) )
|
2239 |
-
$Data[$
|
2240 |
-
|
2241 |
-
|
2242 |
-
|
2243 |
-
|
2244 |
-
|
2245 |
-
$Data[$title][$key]["insertTag"] = true;
|
2246 |
-
if ( $val["valueCount"] == true )
|
2247 |
-
$Data[$title][$key]["valueCount"] = true;
|
2248 |
-
if ( $val["output"] == true )
|
2249 |
-
$Data[$title][$key]["output"] = true;
|
2250 |
$key++;
|
2251 |
$i++;
|
2252 |
}
|
2253 |
endif;
|
2254 |
-
|
2255 |
-
|
2256 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2257 |
}
|
2258 |
-
|
|
|
2259 |
}
|
2260 |
|
2261 |
function output_custom_field_values($attr) {
|
@@ -2272,7 +2555,7 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2272 |
|
2273 |
$metakey = $key;
|
2274 |
if ( $metakey ) :
|
2275 |
-
$metavalue = get_post_meta($post_id, $key, $single);
|
2276 |
if ( is_array($metavalue) ) :
|
2277 |
$output = '<ul>' . "\n";
|
2278 |
foreach ( $metavalue as $val ) :
|
@@ -2296,50 +2579,45 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2296 |
if ( $count ) :
|
2297 |
for ($i=0;$i<$count;$i++) :
|
2298 |
$fields = $this->get_custom_fields( $i );
|
2299 |
-
foreach ( $fields as $
|
2300 |
-
|
2301 |
-
if ( $
|
2302 |
-
|
2303 |
-
|
2304 |
-
|
2305 |
-
|
2306 |
-
$tmpdata = array();
|
2307 |
-
for( $j=0; $j<count($val); $j++) :
|
2308 |
-
if ( in_array($val[$j]['value'], $data[$key]) )
|
2309 |
-
$tmpdata[] = $val[$j]['value'];
|
2310 |
-
endfor;
|
2311 |
-
$data[$key] = $tmpdata;
|
2312 |
-
endif;
|
2313 |
-
$replace_val = '<ul>';
|
2314 |
-
foreach ( $data[$key] as $val2 ) :
|
2315 |
-
$value = $val2;
|
2316 |
-
if ( is_numeric($val[0]['outputCode']) ) :
|
2317 |
-
eval(stripcslashes($options['php'][$val[0]['outputCode']]));
|
2318 |
endif;
|
2319 |
-
|
2320 |
-
$
|
2321 |
-
|
2322 |
-
|
2323 |
-
|
2324 |
-
|
2325 |
-
|
2326 |
-
|
2327 |
-
|
2328 |
-
|
2329 |
-
$
|
2330 |
-
|
2331 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2332 |
endif;
|
2333 |
-
|
2334 |
-
|
2335 |
-
|
2336 |
-
|
2337 |
-
|
2338 |
-
$output =
|
2339 |
-
|
2340 |
-
$replace_val = str_replace('\\', '\\\\', $replace_val);
|
2341 |
-
$replace_val = str_replace('$', '\$', $replace_val);
|
2342 |
-
$output = preg_replace('/\['.$key.'\]/', $replace_val, $output);
|
2343 |
endforeach;
|
2344 |
endfor;
|
2345 |
endif;
|
@@ -2350,50 +2628,38 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2350 |
return;
|
2351 |
|
2352 |
$output = '<dl class="cft">' . "\n";
|
2353 |
-
foreach ( $fields as $
|
2354 |
-
|
2355 |
-
|
2356 |
-
|
2357 |
-
|
2358 |
-
|
2359 |
-
|
2360 |
-
|
2361 |
-
|
2362 |
-
|
2363 |
-
|
2364 |
-
|
2365 |
-
|
2366 |
-
|
2367 |
-
|
2368 |
-
foreach ( $val as $key2 => $val2 ) :
|
2369 |
-
$hide = '';
|
2370 |
-
if ( $val2['output'] == true ) :
|
2371 |
-
$value = $values[$key2];
|
2372 |
-
$value = str_replace('\\', '\\\\', $value);
|
2373 |
-
if ( is_numeric($val2['outputCode']) ) :
|
2374 |
-
eval(stripcslashes($options['php'][$val2['outputCode']]));
|
2375 |
-
endif;
|
2376 |
-
if ( empty($value) && $val2['outputNone'] ) $value = $val2['outputNone'];
|
2377 |
-
if ( $val2['shortCode'] == true ) $value = do_shortcode($value);
|
2378 |
-
if ( $val2['hideKey'] == true ) $hide = ' class="hideKey"';
|
2379 |
-
if ( !empty($val2['label']) && $options['custom_field_template_replace_keys_by_labels'] )
|
2380 |
-
$key = stripcslashes($val2['label']);
|
2381 |
-
if ( $val2['type'] == 'checkbox' ) :
|
2382 |
-
if( in_array($val2['value'], $values) ) :
|
2383 |
-
$output .= '<dt><span' . $hide . '>' . $key . '</span></dt>' . "\n";
|
2384 |
-
$output .= '<dd>' . $value . '</dd>' . "\n";
|
2385 |
endif;
|
2386 |
-
|
2387 |
-
|
|
|
|
|
|
|
|
|
2388 |
$output .= '<dd>' . $value . '</dd>' . "\n";
|
2389 |
-
|
2390 |
endif;
|
2391 |
-
|
2392 |
-
|
|
|
2393 |
endforeach;
|
2394 |
$output .= '</dl>' . "\n";
|
2395 |
endif;
|
2396 |
-
|
2397 |
return stripcslashes($output);
|
2398 |
}
|
2399 |
|
@@ -2416,160 +2682,156 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2416 |
if ( $count ) :
|
2417 |
for ($t=0;$t<$count;$t++) :
|
2418 |
$fields = $this->get_custom_fields( $t );
|
2419 |
-
foreach ( $fields as $
|
2420 |
-
$
|
2421 |
-
|
2422 |
-
|
2423 |
-
|
2424 |
-
|
2425 |
-
|
2426 |
-
|
2427 |
-
|
2428 |
-
|
2429 |
-
|
2430 |
-
|
2431 |
-
|
2432 |
-
|
2433 |
-
$
|
2434 |
-
|
2435 |
-
$
|
2436 |
-
|
|
|
|
|
2437 |
endforeach;
|
2438 |
-
endforeach;
|
2439 |
|
2440 |
-
|
2441 |
-
|
2442 |
-
|
2443 |
-
|
2444 |
-
|
2445 |
-
|
2446 |
-
|
2447 |
-
|
2448 |
-
|
2449 |
-
|
2450 |
-
|
2451 |
-
|
2452 |
-
|
2453 |
-
|
2454 |
-
|
2455 |
-
|
2456 |
-
|
2457 |
-
|
2458 |
-
|
2459 |
-
|
2460 |
-
|
2461 |
-
|
2462 |
-
|
2463 |
-
|
2464 |
-
|
2465 |
-
|
2466 |
-
|
2467 |
-
|
2468 |
-
|
2469 |
-
|
2470 |
-
|
2471 |
-
|
2472 |
-
|
2473 |
-
if ( in_array($metavalue, $_REQUEST['cftsearch'][urlencode($key)][$rkey]) )
|
2474 |
$checked = ' checked="checked"';
|
2475 |
-
else
|
2476 |
-
$checked = '';
|
2477 |
-
endif;
|
2478 |
-
if ( in_array($metavalue, $default) && !$_REQUEST['cftsearch'][urlencode($key)][$rkey] )
|
2479 |
-
$checked = ' checked="checked"';
|
2480 |
|
2481 |
-
|
2482 |
-
|
2483 |
-
|
2484 |
-
|
2485 |
-
|
2486 |
-
|
2487 |
-
|
2488 |
-
|
2489 |
-
|
2490 |
-
|
2491 |
-
|
2492 |
-
|
2493 |
-
|
2494 |
-
|
2495 |
-
|
2496 |
-
|
2497 |
-
|
2498 |
-
|
2499 |
-
|
2500 |
-
|
2501 |
-
|
2502 |
-
|
2503 |
-
|
2504 |
-
|
2505 |
-
|
2506 |
-
|
2507 |
-
|
2508 |
-
|
2509 |
-
|
2510 |
-
|
2511 |
-
|
2512 |
-
|
|
|
|
|
|
|
|
|
|
|
2513 |
$checked = ' checked="checked"';
|
2514 |
-
|
2515 |
-
|
2516 |
-
|
2517 |
-
|
|
|
|
|
|
|
|
|
|
|
2518 |
$checked = ' checked="checked"';
|
2519 |
-
$replace_val[$rkey] .= '<
|
2520 |
-
if ( $valueLabel[
|
2521 |
-
else $replace_val[$rkey] .= stripcslashes($
|
2522 |
-
$replace_val[$rkey] .= '</label
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2523 |
$j++;
|
2524 |
endforeach;
|
2525 |
-
$replace_val[$rkey] .= '</
|
2526 |
-
|
2527 |
-
|
2528 |
-
|
2529 |
-
$replace_val[$rkey] .= '<label><input type="radio" name="cftsearch[' . urlencode($key) . '][]" value="' . attribute_escape(trim($values[0])) . '"' . $class . $checked . ' /> ';
|
2530 |
-
if ( $valueLabel[0] ) $replace_val[$rkey] .= stripcslashes(trim($valueLabel[0]));
|
2531 |
-
else $replace_val[$rkey] .= stripcslashes(trim($values[0]));
|
2532 |
-
$replace_val[$rkey] .= '</label>';
|
2533 |
-
endif;
|
2534 |
-
break;
|
2535 |
-
case 'select':
|
2536 |
-
if ( $rval[0]['class'] ) $class = ' class="' . $rval[0]['class'] . '"';
|
2537 |
-
$values = explode( '#', $rval[0]['value'] );
|
2538 |
-
$valueLabel = explode( '#', $rval[0]['valueLabel'] );
|
2539 |
-
$default = explode( '#', $rval[0]['default'] );
|
2540 |
-
$selectLabel= $rval[0]['selectLabel'];
|
2541 |
-
|
2542 |
-
if ( is_numeric($rval[0]['searchCode']) ) :
|
2543 |
-
eval(stripcslashes($options['php'][$rval[0]['searchCode']]));
|
2544 |
-
endif;
|
2545 |
-
$replace_val[$rkey] .= '<select name="cftsearch[' . urlencode($key) . '][' . $rkey . '][]"' . $class . '>';
|
2546 |
-
$replace_val[$rkey] .= '<option value="">'.$selectLabel.'</option>';
|
2547 |
-
$j=0;
|
2548 |
-
foreach ( $values as $metaval ) :
|
2549 |
-
$metaval = trim($metaval);
|
2550 |
-
if ( in_array($metavalue, $default) && !$_REQUEST['cftsearch'][urlencode($key)][$rkey] )
|
2551 |
-
$checked = ' checked="checked"';
|
2552 |
-
|
2553 |
-
if ( $_REQUEST['cftsearch'][urlencode($key)][$rkey][0] == $metaval ) $selected = ' selected="selected"';
|
2554 |
-
else $selected = "";
|
2555 |
-
$replace_val[$rkey] .= '<option value="' . attribute_escape($metaval) . '"' . $selected . '>';
|
2556 |
-
if ( $valueLabel[$j] )
|
2557 |
-
$replace_val[$rkey] .= stripcslashes(trim($valueLabel[$j]));
|
2558 |
-
else
|
2559 |
-
$replace_val[$rkey] .= stripcslashes($metaval);
|
2560 |
-
$replace_val[$rkey] .= '</option>' . "\n";
|
2561 |
-
$j++;
|
2562 |
-
endforeach;
|
2563 |
-
$replace_val[$rkey] .= '</select>' . "\n";
|
2564 |
-
break;
|
2565 |
-
endswitch;
|
2566 |
-
endforeach;
|
2567 |
|
2568 |
-
|
2569 |
-
|
2570 |
-
|
2571 |
-
|
2572 |
-
|
|
|
2573 |
endforeach;
|
2574 |
endfor;
|
2575 |
endif;
|
@@ -2583,41 +2845,50 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2583 |
|
2584 |
if ( $fields == null )
|
2585 |
return;
|
2586 |
-
|
2587 |
$output = '<form method="get" action="'.get_option('home').'/" id="cftsearch'.(int)$format.'">' . "\n";
|
2588 |
-
foreach( $fields as $
|
2589 |
-
|
2590 |
-
if (
|
2591 |
-
|
2592 |
-
|
2593 |
-
|
2594 |
-
|
|
|
|
|
|
|
2595 |
$class = "";
|
2596 |
-
switch ( $
|
2597 |
case 'text':
|
2598 |
case 'textfield':
|
2599 |
case 'textarea':
|
2600 |
-
if ( $
|
2601 |
-
$output .= '<dd><input type="text" name="cftsearch[' .
|
2602 |
break;
|
2603 |
case 'checkbox':
|
2604 |
-
|
2605 |
-
|
2606 |
-
if ( $
|
2607 |
-
|
|
|
|
|
|
|
|
|
2608 |
else
|
2609 |
-
$output .= stripcslashes($
|
2610 |
$output .= '</label></dd>' . "\n";
|
2611 |
break;
|
2612 |
case 'radio':
|
2613 |
-
if ( $
|
2614 |
-
$values = explode( '#', $
|
2615 |
-
$valueLabel = explode( '#', $
|
2616 |
$i=0;
|
2617 |
foreach ( $values as $metaval ) :
|
|
|
2618 |
$metaval = trim($metaval);
|
2619 |
-
|
2620 |
-
|
|
|
2621 |
$output .= stripcslashes(trim($valueLabel[$i]));
|
2622 |
else
|
2623 |
$output .= stripcslashes($metaval);
|
@@ -2626,18 +2897,19 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2626 |
endforeach;
|
2627 |
break;
|
2628 |
case 'select':
|
2629 |
-
if ( $
|
2630 |
-
$values = explode( '#', $
|
2631 |
-
$valueLabel = explode( '#', $
|
2632 |
-
$output .= '<dd><select name="cftsearch[' .
|
2633 |
$output .= '<option value=""></option>';
|
2634 |
$i=0;
|
2635 |
foreach ( $values as $metaval ) :
|
|
|
2636 |
$metaval = trim($metaval);
|
2637 |
-
if ( $_REQUEST['cftsearch'][
|
2638 |
else $selected = "";
|
2639 |
$output .= '<option value="' . attribute_escape($metaval) . '"' . $selected . '>';
|
2640 |
-
if ( $
|
2641 |
$output .= stripcslashes(trim($valueLabel[$i]));
|
2642 |
else
|
2643 |
$output .= stripcslashes($metaval);
|
@@ -2647,9 +2919,9 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2647 |
$output .= '</select></dd>' . "\n";
|
2648 |
break;
|
2649 |
endswitch;
|
2650 |
-
|
2651 |
-
|
2652 |
-
|
2653 |
endforeach;
|
2654 |
if ( $button == true )
|
2655 |
$output .= '<p><input type="submit" value="' . $search_label . '" class="cftsearch_submit" /></p>' . "\n";
|
@@ -2680,33 +2952,38 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2680 |
if ( $count ) :
|
2681 |
for ($i=0;$i<$count;$i++) :
|
2682 |
$fields = $this->get_custom_fields( $i );
|
2683 |
-
foreach ( $fields as $
|
2684 |
-
$
|
2685 |
-
|
2686 |
-
|
2687 |
-
|
2688 |
-
|
|
|
2689 |
|
2690 |
-
|
2691 |
-
|
2692 |
-
|
2693 |
-
|
2694 |
-
|
|
|
2695 |
endforeach;
|
2696 |
endforeach;
|
2697 |
endforeach;
|
2698 |
endfor;
|
2699 |
endif;
|
2700 |
-
|
2701 |
if ( is_array($_REQUEST['cftsearch']) ) :
|
2702 |
foreach ( $_REQUEST['cftsearch'] as $key => $val ) :
|
2703 |
$key = rawurldecode($key);
|
2704 |
if ( is_array($val) ) :
|
|
|
2705 |
foreach( $val as $key2 => $val2 ) :
|
2706 |
if ( is_array($val2) ) :
|
2707 |
foreach( $val2 as $val3 ) :
|
2708 |
if ( $val3 ) :
|
2709 |
-
|
|
|
|
|
2710 |
case '<=' :
|
2711 |
case '>=' :
|
2712 |
case '<' :
|
@@ -2714,16 +2991,18 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2714 |
case '=' :
|
2715 |
case '<>' :
|
2716 |
case '<=>':
|
2717 |
-
$where .= "
|
2718 |
break;
|
2719 |
default :
|
2720 |
-
$where .= "
|
2721 |
break;
|
2722 |
endswitch;
|
|
|
2723 |
endif;
|
2724 |
endforeach;
|
2725 |
endif;
|
2726 |
endforeach;
|
|
|
2727 |
endif;
|
2728 |
endforeach;
|
2729 |
endif;
|
@@ -2854,14 +3133,14 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2854 |
if ( $fields == null )
|
2855 |
return;
|
2856 |
|
2857 |
-
foreach( $fields as $
|
2858 |
-
$
|
2859 |
-
|
2860 |
-
|
2861 |
-
$value = get_post_meta($post_id, $title);
|
2862 |
if ( is_array($value) ) :
|
2863 |
foreach ( $value as $val ) :
|
2864 |
-
if ( $data[
|
2865 |
$count = $this->set_value_count($title, $val)-1;
|
2866 |
if ( $count<=0 )
|
2867 |
unset($options['value_count'][$title][$val]);
|
@@ -2870,7 +3149,7 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2870 |
endif;
|
2871 |
endforeach;
|
2872 |
else :
|
2873 |
-
if ( $data[
|
2874 |
$count = $this->set_value_count($title, $value)-1;
|
2875 |
if ( $count<=0 )
|
2876 |
unset($options['value_count'][$title][$value]);
|
@@ -2878,7 +3157,7 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2878 |
$options['value_count'][$title][$value] = $count;
|
2879 |
endif;
|
2880 |
endif;
|
2881 |
-
|
2882 |
endforeach;
|
2883 |
endif;
|
2884 |
update_option('custom_field_template_data', $options);
|
@@ -2897,11 +3176,11 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2897 |
if ( $fields == null )
|
2898 |
return;
|
2899 |
|
2900 |
-
foreach( $fields as $
|
2901 |
-
$
|
2902 |
-
|
2903 |
-
|
2904 |
-
if ( $data[
|
2905 |
$query = $wpdb->prepare("SELECT COUNT(meta_id) as meta_count, `". $wpdb->postmeta."`.meta_value FROM `". $wpdb->postmeta."` WHERE `". $wpdb->postmeta."`.meta_key = %s GROUP BY `". $wpdb->postmeta."`.meta_value;", $title);
|
2906 |
$result = $wpdb->get_results($query, ARRAY_A);
|
2907 |
if ( $result ) :
|
@@ -2910,7 +3189,7 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
2910 |
endforeach;
|
2911 |
endif;
|
2912 |
endif;
|
2913 |
-
|
2914 |
endforeach;
|
2915 |
endfor;
|
2916 |
endif;
|
4 |
Plugin URI: http://wpgogo.com/development/custom-field-template.html
|
5 |
Description: This plugin adds the default custom fields on the Write Post/Page.
|
6 |
Author: Hiroaki Miyashita
|
7 |
+
Version: 1.4
|
8 |
Author URI: http://wpgogo.com/
|
9 |
*/
|
10 |
|
48 |
add_shortcode( 'cftsearch', array(&$this, 'search_custom_field_values') );
|
49 |
endif;
|
50 |
}
|
51 |
+
|
52 |
function custom_field_template_init() {
|
53 |
global $wp_version;
|
54 |
$options = $this->get_custom_field_template_data();
|
130 |
endif;
|
131 |
}
|
132 |
|
133 |
+
if( strstr($_SERVER['REQUEST_URI'], 'wp-admin/post-new.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/post.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/page-new.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/page-new.php') ) :
|
134 |
+
add_action('admin_head', array(&$this, 'custom_field_template_admin_head_buffer') );
|
135 |
+
add_action('admin_footer', array(&$this, 'custom_field_template_admin_footer_buffer') );
|
136 |
+
endif;
|
137 |
+
}
|
138 |
+
|
139 |
+
function custom_field_template_add_enctype($buffer) {
|
140 |
+
$buffer = preg_replace('/<form/', '<form enctype="multipart/form-data"', $buffer);
|
141 |
+
return $buffer;
|
142 |
+
}
|
143 |
+
|
144 |
+
function custom_field_template_admin_head_buffer() {
|
145 |
+
ob_start(array(&$this, 'custom_field_template_add_enctype'));
|
146 |
+
}
|
147 |
+
|
148 |
+
function custom_field_template_admin_footer_buffer() {
|
149 |
+
ob_end_flush();
|
150 |
+
}
|
151 |
+
|
152 |
+
function has_meta( $postid ) {
|
153 |
+
global $wpdb;
|
154 |
+
|
155 |
+
return $wpdb->get_results( $wpdb->prepare("SELECT meta_key, meta_value, meta_id, post_id FROM $wpdb->postmeta WHERE post_id = %d ORDER BY meta_key,meta_id", $postid), ARRAY_A );
|
156 |
}
|
157 |
|
158 |
+
function get_post_meta($post_id, $key, $single = false) {
|
159 |
+
if ( !$post_id || !$key )
|
160 |
+
return '';
|
161 |
+
|
162 |
+
$post_id = (int) $post_id;
|
163 |
+
|
164 |
+
$meta_cache = wp_cache_get($post_id, 'cft_post_meta');
|
165 |
+
|
166 |
+
if ( !$meta_cache ) {
|
167 |
+
if ( $meta_list = $this->has_meta( $post_id ) ) {
|
168 |
+
foreach ( (array) $meta_list as $metarow) {
|
169 |
+
$mpid = (int) $metarow['post_id'];
|
170 |
+
$mkey = $metarow['meta_key'];
|
171 |
+
$mval = $metarow['meta_value'];
|
172 |
+
|
173 |
+
if ( !isset($cache[$mpid]) || !is_array($cache[$mpid]) )
|
174 |
+
$cache[$mpid] = array();
|
175 |
+
if ( !isset($cache[$mpid][$mkey]) || !is_array($cache[$mpid][$mkey]) )
|
176 |
+
$cache[$mpid][$mkey] = array();
|
177 |
+
|
178 |
+
$cache[$mpid][$mkey][] = $mval;
|
179 |
+
}
|
180 |
+
}
|
181 |
+
|
182 |
+
foreach ( (array) $ids as $id ) {
|
183 |
+
if ( ! isset($cache[$id]) )
|
184 |
+
$cache[$id] = array();
|
185 |
+
}
|
186 |
+
|
187 |
+
if ( is_array($cache) ) :
|
188 |
+
foreach ( (array) array_keys($cache) as $post)
|
189 |
+
wp_cache_set($post, $cache[$post], 'cft_post_meta');
|
190 |
+
|
191 |
+
$meta_cache = wp_cache_get($post_id, 'cft_post_meta');
|
192 |
+
endif;
|
193 |
+
}
|
194 |
+
|
195 |
+
if ( isset($meta_cache[$key]) ) {
|
196 |
+
if ( $single ) {
|
197 |
+
return maybe_unserialize( $meta_cache[$key][0] );
|
198 |
+
} else {
|
199 |
+
return array_map('maybe_unserialize', $meta_cache[$key]);
|
200 |
+
}
|
201 |
+
}
|
202 |
+
|
203 |
+
return '';
|
204 |
+
}
|
205 |
+
|
206 |
function add_quick_edit_custom_box($column_name, $type) {
|
207 |
if( $column_name == 'custom-fields' ) :
|
208 |
global $wp_version;
|
528 |
#cft dd { float:left; margin:0; text-align:left; width:80%; }
|
529 |
#cft dd p.label { font-weight:bold; margin:0; }
|
530 |
#cft_instruction { margin:10px; }
|
531 |
+
#cft fieldset { border:1px solid #CCC; margin:5px; padding:5px; }
|
532 |
+
';
|
533 |
update_option('custom_field_template_data', $options);
|
534 |
}
|
535 |
|
1009 |
<table class="widefat" style="margin:10px 0 5px 0;">
|
1010 |
<thead>
|
1011 |
<tr>
|
1012 |
+
<th>type</th><th>text or textfield</th><th>checkbox</th><th>radio</th><th>select</th><th>textarea</th><th>file</th>
|
1013 |
</tr>
|
1014 |
</thead>
|
1015 |
<tbody>
|
1016 |
<tr>
|
1017 |
+
<th>hideKey</th><td>hideKey = true</td><td>hideKey = true</td><td>hideKey = true</td><td>hideKey = true</td><td>hideKey = true</td><td>hideKey = true</td>
|
1018 |
</tr>
|
1019 |
<tr>
|
1020 |
+
<th>label</th><td>label = ABC</td><td>label = DEF</td><td>label = GHI</td><td>label = JKL</td><td>label = MNO</td><td>label = PQR</td>
|
1021 |
</tr>
|
1022 |
<tr>
|
1023 |
+
<th>size</th><td>size = 30</td><td></td><td></td><td></td><td></td><td>size = 30</td>
|
1024 |
</tr>
|
1025 |
<tr>
|
1026 |
+
<th>value</th><td></td><td>value = apple # orange # banana</td><td>value = apple # orange # banana</td><td>value = apple # orange # banana</td><td></td>
|
1027 |
<td></td>
|
1028 |
</tr>
|
1029 |
<tr>
|
1030 |
+
<th>valueLabel</th><td></td><td>valueLabel = apples # oranges # bananas</td><td>valueLabel = apples # oranges # bananas</td><td>valueLabel = apples # oranges # bananas</td><td></td>
|
1031 |
<td></td>
|
1032 |
</tr>
|
1033 |
<tr>
|
1034 |
+
<th>default</th><td>default = orange</td><td>default = orange # banana</td><td>default = orange</td><td>default = orange</td><td>default = orange</td><td></td>
|
1035 |
</tr>
|
1036 |
<tr>
|
1037 |
+
<th>clearButton</th><td></td><td></td><td>clearButton = true</td><td></td><td></td><td></td>
|
1038 |
</tr>
|
1039 |
<tr>
|
1040 |
+
<th>selectLabel</th><td></td><td></td><td></td><td>selectLabel = Select a fruit</td><td></td><td></td>
|
1041 |
</tr>
|
1042 |
<tr>
|
1043 |
+
<th>rows</th><td></td><td></td><td></td><td></td><td>rows = 4</td><td></td>
|
1044 |
</tr>
|
1045 |
<tr>
|
1046 |
+
<th>cols</th><td></td><td></td><td></td><td></td><td>cols = 40</td><td></td>
|
1047 |
</tr>
|
1048 |
<tr>
|
1049 |
+
<th>tinyMCE</th><td></td><td></td><td></td><td></td><td>tinyMCE = true</td><td></td>
|
1050 |
</tr>
|
1051 |
<tr>
|
1052 |
+
<th>htmlEditor</th><td></td><td></td><td></td><td></td><td>htmlEditor = true</td><td></td>
|
1053 |
</tr>
|
1054 |
<tr>
|
1055 |
+
<th>date</th><td>date = true</td><td></td><td></td><td></td><td></td><td></td>
|
1056 |
</tr>
|
1057 |
<tr>
|
1058 |
+
<th>dateFirstDayOfWeek</th><td>dateFirstDayOfWeek = 0</td><td></td><td></td><td></td><td></td><td></td>
|
1059 |
</tr>
|
1060 |
<tr>
|
1061 |
+
<th>dateFormat</th><td>dateFormat = yyyy/mm/dd</td><td></td><td></td><td></td><td></td><td></td>
|
1062 |
</tr>
|
1063 |
<tr>
|
1064 |
+
<th>startDate</th><td>startDate = '1970/01/01'</td><td></td><td></td><td></td><td></td><td></td>
|
1065 |
</tr>
|
1066 |
<tr>
|
1067 |
+
<th>endDate</th><td>endDate = (new Date()).asString()</td><td></td><td></td><td></td><td></td><td></td>
|
1068 |
</tr>
|
1069 |
<tr>
|
1070 |
+
<th>readOnly</th><td>readOnly = true</td><td></td><td></td><td></td><td></td><td></td>
|
1071 |
</tr>
|
1072 |
<tr>
|
1073 |
+
<th>mediaButton</th><td></td><td></td><td></td><td></td><td>mediaButton = true</td><td></td>
|
1074 |
</tr>
|
1075 |
<tr>
|
1076 |
+
<th>mediaOffImage</th><td></td><td></td><td></td><td></td><td>mediaOffImage = true</td><td></td>
|
1077 |
</tr>
|
1078 |
<tr>
|
1079 |
+
<th>mediaOffVideo</th><td></td><td></td><td></td><td></td><td>mediaOffVideo = true</td><td></td>
|
1080 |
</tr>
|
1081 |
<tr>
|
1082 |
+
<th>mediaOffAudio</th><td></td><td></td><td></td><td></td><td>mediaOffAudio = true</td><td></td>
|
1083 |
</tr>
|
1084 |
<tr>
|
1085 |
+
<th>mediaOffMedia</th><td></td><td></td><td></td><td></td><td>mediaOffMedia = true</td><td></td>
|
1086 |
</tr>
|
1087 |
<tr>
|
1088 |
+
<th>relation</th><td></td><td></td><td></td><td></td><td></td><td>relation = true</td>
|
1089 |
</tr>
|
1090 |
<tr>
|
1091 |
+
<th>code</th><td>code = 0</td><td>code = 0</td><td>code = 0</td><td>code = 0</td><td>code = 0</td><td></td>
|
1092 |
</tr>
|
1093 |
<tr>
|
1094 |
+
<th>editCode</th><td>editCode = 0</td><td>editCode = 0</td><td>editCode = 0</td><td>editCode = 0</td><td>editCode = 0</td><td>editCode = 0</td>
|
1095 |
</tr>
|
1096 |
<tr>
|
1097 |
+
<th>level</th><td>level = 1</td><td>level = 3</td><td>level = 5</td><td>level = 7</td><td>level = 9</td><td>level = 10</td>
|
1098 |
</tr>
|
1099 |
<tr>
|
1100 |
+
<th>insertTag</th><td>insertTag = true</td><td>insertTag = true</td><td>insertTag = true</td><td>insertTag = true</td><td>insertTag = true</td><td></td>
|
1101 |
</tr>
|
1102 |
<tr>
|
1103 |
+
<th>output</th><td>output = true</td><td>output = true</td><td>output = true</td><td>output = true</td><td>output = true</td><td></td>
|
1104 |
</tr>
|
1105 |
<tr>
|
1106 |
+
<th>outputCode</th><td>outputCode = 0</td><td>outputCode = 0</td><td>outputCode = 0</td><td>outputCode = 0</td><td>outputCode = 0</td><td></td>
|
1107 |
</tr>
|
1108 |
<tr>
|
1109 |
+
<th>outputNone</th><td>outputNone = No Data</td><td>outputNone = No Data</td><td>outputNone = No Data</td><td>outputNone = No Data</td><td>outputNone = No Data</td><td></td>
|
1110 |
</tr>
|
1111 |
<tr>
|
1112 |
+
<th>singleList</th><td>singleList = true</td><td>singleList = true</td><td>singleList = true</td><td>singleList = true</td><td>singleList = true</td><td></td>
|
1113 |
</tr>
|
1114 |
<tr>
|
1115 |
+
<th>shortCode</th><td>shortCode = true</td><td>shortCode = true</td><td>shortCode = true</td><td>shortCode = true</td><td>shortCode = true</td><td></td>
|
1116 |
</tr>
|
1117 |
<tr>
|
1118 |
+
<th>multiple</th><td>multiple = true</td><td></td><td>multiple = true</td><td>multiple = true</td><td></td><td>multiple = true</td>
|
1119 |
</tr>
|
1120 |
<tr>
|
1121 |
+
<th>startNum</th><td>startNum = 5</td><td></td><td>startNum = 5</td><td>startNum = 5</td><td></td><td>startNum = 5</td>
|
1122 |
</tr>
|
1123 |
<tr>
|
1124 |
+
<th>endNum</th><td>endNum = 10</td><td></td><td>endNum = 10</td><td>endNum = 10</td><td></td><td>endNum = 10</td>
|
1125 |
</tr>
|
1126 |
<tr>
|
1127 |
+
<th>multipleButton</th><td>multipleButton = true</td><td></td><td>multipleButton = true</td><td>multipleButton = true</td><td></td><td>multipleButton = true</td>
|
1128 |
</tr>
|
1129 |
<tr>
|
1130 |
+
<th>blank</th><td>blank = true</td><td>blank = true</td><td>blank = true</td><td>blank = true</td><td>blank = true</td><td></td>
|
1131 |
</tr>
|
1132 |
<tr>
|
1133 |
+
<th>sort</th><td>sort = asc</td><td>sort = desc</td><td>sort = asc</td><td>sort = desc</td><td>sort = asc</td><td></td>
|
1134 |
</tr>
|
1135 |
<tr>
|
1136 |
+
<th>search</th><td>search = true</td><td>search = true</td><td>search = true</td><td>search = true</td><td>search = true</td>
|
1137 |
+
</tr><td></td>
|
1138 |
+
<tr>
|
1139 |
+
<th>class</th><td>class = text</td><td>class = checkbox</td><td>class = radio</td><td>class = select</td><td>class = textarea</td><td>class = file</td>
|
1140 |
</tr>
|
1141 |
<tr>
|
1142 |
+
<th>style</th><td>style = color:#FF0000;</td><td>style = color:#FF0000;</td><td>style = color:#FF0000;</td><td>style = color:#FF0000;</td><td>style = color:#FF0000;</td><td>style = color:#FF0000;</td>
|
1143 |
</tr>
|
1144 |
<tr>
|
1145 |
+
<th>before</th><td>before = abcde</td><td></td><td></td><td>before = abcde</td><td></td><td>before = abcde</td>
|
1146 |
</tr>
|
1147 |
<tr>
|
1148 |
+
<th>after</th><td>after = abcde</td><td></td><td></td><td>after = abcde</td><td></td><td>after = abcde</td>
|
1149 |
</tr>
|
1150 |
<tr>
|
1151 |
+
<th>valueCount</th><td>valueCount = true</td><td>valueCount = true</td><td>valueCount = true</td><td>valueCount = true</td><td>valueCount = true</td><td></td>
|
1152 |
</tr>
|
1153 |
<tr>
|
1154 |
+
<th>JavaScript Event Handlers</th><td>onclick = alert('ok');</td><td>onchange = alert('ok');</td><td>onchange = alert('ok');</td><td>onchange = alert('ok');</td><td>onfocus = alert('ok');</td><td></td>
|
1155 |
</tr>
|
1156 |
</tbody>
|
1157 |
</table>
|
1277 |
return $custom_fields;
|
1278 |
}
|
1279 |
|
1280 |
+
function make_textfield( $name, $sid, $cftnum, $size = 25, $default, $hideKey, $label, $code, $class, $style, $before, $after, $maxlength, $multipleButton, $date, $dateFirstDayOfWeek, $dateFormat, $startDate, $endDate, $readOnly,
|
1281 |
$onclick, $ondblclick, $onkeydown, $onkeypress, $onkeyup, $onmousedown, $onmouseup, $onmouseover, $onmouseout, $onmousemove, $onfocus, $onblur, $onchange, $onselect ) {
|
1282 |
$options = $this->get_custom_field_template_data();
|
1283 |
|
1289 |
endif;
|
1290 |
|
1291 |
if( isset( $_REQUEST[ 'post' ] ) && $_REQUEST[ 'post' ] > 0 && $_REQUEST['default'] != true ) {
|
1292 |
+
$value = $this->get_post_meta( $_REQUEST[ 'post' ], $title, false );
|
1293 |
if ( $value ) {
|
1294 |
+
$ct_value = count($value);
|
1295 |
+
$value = $value[ $cftnum ];
|
1296 |
}
|
1297 |
} else {
|
1298 |
$value = $default;
|
1299 |
}
|
1300 |
+
if ( empty($ct_value) ) $ct_value = 1;
|
1301 |
|
1302 |
if ( $enforced_value ) :
|
1303 |
$value = $enforced_value;
|
1304 |
endif;
|
1305 |
+
|
1306 |
if ( $hideKey == true ) $hide = ' class="hideKey"';
|
1307 |
if ( !empty($class) && $date == true ) $class = ' class="' . $class . ' datePicker"';
|
1308 |
elseif ( empty($class) && $date == true ) $class = ' class="datePicker"';
|
1321 |
$event_output .= " " . $key . '="' . stripcslashes(trim($val)) . '"';
|
1322 |
endforeach;
|
1323 |
|
1324 |
+
if ( $multipleButton == true && $date != true && $ct_value == $cftnum ) :
|
1325 |
+
$addfield .= '<div style="margin-top:-1em;">';
|
1326 |
+
$addfield .= '<a href="#clear" onclick="jQuery(this).parent().parent().parent().clone().insertAfter(jQuery(this).parent().parent().parent()).find('."'input'".').val('."''".');jQuery(this).parent().css('."'visibility','hidden'".');jQuery(this).parent().prev().css('."'visibility','hidden'".'); return false;">' . __('Add New', 'custom-field-template') . '</a>';
|
1327 |
$addfield .= '</div>';
|
1328 |
endif;
|
1329 |
|
1330 |
$out .=
|
1331 |
'<dl id="dl_' . $name . $sid . '">' .
|
1332 |
+
'<dt><span' . $hide . '><label for="' . $name . $sid . $cftnum . '">' . $title . '</label></span>'.$addfield.'</dt>' .
|
1333 |
'<dd>';
|
1334 |
|
1335 |
if ( !empty($label) && !$options['custom_field_template_replace_keys_by_labels'] )
|
1336 |
$out .= '<p class="label">' . stripcslashes($label) . '</p>';
|
1337 |
+
$out .= trim($before).'<input id="' . $name . $sid . $cftnum . '" name="' . $name . '['. $sid . '][]" value="' . attribute_escape(trim($value)) . '" type="text" size="' . $size . '"' . $class . $style . $maxlength . $event_output . $readOnly . ' />'.trim($after);
|
1338 |
|
1339 |
if ( $date == true ) :
|
1340 |
$out .= '<script type="text/javascript">' . "\n" .
|
1355 |
return $out;
|
1356 |
}
|
1357 |
|
1358 |
+
function make_checkbox( $name, $sid, $cftnum, $value, $valueLabel, $checked, $hideKey, $label, $code, $class, $style,
|
1359 |
$onclick, $ondblclick, $onkeydown, $onkeypress, $onkeyup, $onmousedown, $onmouseup, $onmouseover, $onmouseout, $onmousemove, $onfocus, $onblur, $onchange, $onselect ) {
|
1360 |
$options = $this->get_custom_field_template_data();
|
1361 |
|
1365 |
if ( !$value ) $value = "true";
|
1366 |
|
1367 |
if( isset( $_REQUEST[ 'post' ] ) && $_REQUEST[ 'post' ] > 0 && $_REQUEST['default'] != true ) {
|
1368 |
+
$selected = $this->get_post_meta( $_REQUEST[ 'post' ], $title );
|
1369 |
if ( $selected ) {
|
1370 |
if ( in_array(stripcslashes($value), $selected) ) $checked = 'checked="checked"';
|
1371 |
}
|
1396 |
|
1397 |
if ( !empty($label) && !$options['custom_field_template_replace_keys_by_labels'] )
|
1398 |
$out .= '<p class="label">' . stripcslashes($label) . '</p>';
|
1399 |
+
$out .= '<label for="' . $id . '" class="selectit"><input id="' . $id . '" name="' . $name . '[' . $sid . '][' . $cftnum . ']" value="' . attribute_escape(trim($value)) . '"' . $checked . ' type="checkbox"' . $class . $style . $event_output . ' /> ';
|
1400 |
if ( $valueLabel )
|
1401 |
$out .= stripcslashes(trim($valueLabel));
|
1402 |
else
|
1408 |
return $out;
|
1409 |
}
|
1410 |
|
1411 |
+
function make_radio( $name, $sid, $cftnum, $values, $valueLabel, $clearButton, $default, $hideKey, $label, $code, $class, $style, $multipleButton,
|
1412 |
$onclick, $ondblclick, $onkeydown, $onkeypress, $onkeyup, $onmousedown, $onmouseup, $onmouseover, $onmouseout, $onmousemove, $onfocus, $onblur, $onchange, $onselect ) {
|
1413 |
$options = $this->get_custom_field_template_data();
|
1414 |
|
1420 |
endif;
|
1421 |
|
1422 |
if( isset( $_REQUEST[ 'post' ] ) && $_REQUEST[ 'post' ] > 0 && $_REQUEST['default'] != true ) {
|
1423 |
+
$selected = $this->get_post_meta( $_REQUEST[ 'post' ], $title );
|
1424 |
+
$ct_value = count($selected);
|
1425 |
+
$selected = $selected[ $cftnum ];
|
1426 |
} else {
|
1427 |
$selected = $default;
|
1428 |
}
|
1429 |
+
if ( empty($ct_value) ) $ct_value = 1;
|
1430 |
|
1431 |
if ( $hideKey == true ) $hide = ' class="hideKey"';
|
1432 |
if ( !empty($class) ) $class = ' class="' . $class . '"';
|
1442 |
$event_output .= " " . $key . '="' . stripcslashes(trim($val)) . '"';
|
1443 |
endforeach;
|
1444 |
|
1445 |
+
if ( $multipleButton == true && $ct_value == $cftnum ) :
|
1446 |
+
$addfield .= '<div style="margin-top:-1em;">';
|
1447 |
+
$addfield .= '<a href="#clear" onclick="var tmp = jQuery(this).parent().parent().parent().clone().insertAfter(jQuery(this).parent().parent().parent());tmp.find('."'input'".').attr('."'checked',false".');if(tmp.find('."'input'".').attr('."'name'".').match(/\[([0-9]+)\]$/)) { matchval = RegExp.$1; matchval++;tmp.find('."'input'".').attr('."'name',".'tmp.find('."'input'".').attr('."'name'".').replace(/\[([0-9]+)\]$/, \'[\'+matchval+\']\'));}jQuery(this).parent().css('."'visibility','hidden'".');jQuery(this).parent().prev().css('."'visibility','hidden'".'); return false;">' . __('Add New', 'custom-field-template') . '</a>';
|
1448 |
$addfield .= '</div>';
|
1449 |
endif;
|
1450 |
|
1451 |
$out .=
|
1452 |
+
'<dl id="dl_' . $name . $sid . $cftnum . '">' .
|
1453 |
'<dt><span' . $hide . '>' . $title . '</span>'.$addfield;
|
1454 |
|
1455 |
if( $clearButton == true ) {
|
1472 |
$checked = ( trim( $val ) == trim( $selected ) ) ? 'checked="checked"' : '';
|
1473 |
|
1474 |
$out .=
|
1475 |
+
'<label for="' . $id . '" class="selectit"><input name="' . $name . '[' . $sid . '][' . $cftnum . ']" value="' . attribute_escape(trim($val)) . '" ' . $checked . ' type="radio"' . $class . $style . $event_output . ' /> ';
|
1476 |
if ( $valueLabel[$i] )
|
1477 |
$out .= stripcslashes(trim($valueLabel[$i]));
|
1478 |
else
|
1486 |
return $out;
|
1487 |
}
|
1488 |
|
1489 |
+
function make_select( $name, $sid, $cftnum, $values, $valueLabel, $default, $hideKey, $label, $code, $class, $style, $before, $after, $selectLabel, $multipleButton,
|
1490 |
$onclick, $ondblclick, $onkeydown, $onkeypress, $onkeyup, $onmousedown, $onmouseup, $onmouseover, $onmouseout, $onmousemove, $onfocus, $onblur, $onchange, $onselect ) {
|
1491 |
$options = $this->get_custom_field_template_data();
|
1492 |
|
1498 |
endif;
|
1499 |
|
1500 |
if( isset( $_REQUEST[ 'post' ] ) && $_REQUEST[ 'post' ] > 0 && $_REQUEST['default'] != true ) {
|
1501 |
+
$selected = $this->get_post_meta( $_REQUEST[ 'post' ], $title );
|
1502 |
+
$ct_value = count($selected);
|
1503 |
if ( $selected ) {
|
1504 |
+
$selected = $selected[ $cftnum ];
|
1505 |
}
|
1506 |
} else {
|
1507 |
$selected = $default;
|
1508 |
}
|
1509 |
+
if ( empty($ct_value) ) $ct_value = 1;
|
1510 |
|
1511 |
if ( $hideKey == true ) $hide = ' class="hideKey"';
|
1512 |
if ( !empty($class) ) $class = ' class="' . $class . '"';
|
1522 |
$event_output .= " " . $key . '="' . stripcslashes(trim($val)) . '"';
|
1523 |
endforeach;
|
1524 |
|
1525 |
+
if ( $multipleButton == true && $ct_value == $cftnum ) :
|
1526 |
+
$addfield .= '<div style="margin-top:-1em;">';
|
1527 |
+
$addfield .= '<a href="#clear" onclick="jQuery(this).parent().parent().parent().clone().insertAfter(jQuery(this).parent().parent().parent()).find('."'select'".').val('."''".');jQuery(this).parent().css('."'visibility','hidden'".');jQuery(this).parent().prev().css('."'visibility','hidden'".'); return false;">' . __('Add New', 'custom-field-template') . '</a>';
|
1528 |
$addfield .= '</div>';
|
1529 |
endif;
|
1530 |
|
1531 |
$out .=
|
1532 |
+
'<dl id="dl_' . $name . $sid . $cftnum . '">' .
|
1533 |
+
'<dt><span' . $hide . '><label for="' . $name . $sid . $cftnum . '">' . $title . '</label></span>'.$addfield.'</dt>' .
|
1534 |
'<dd>';
|
1535 |
|
1536 |
if ( !empty($label) && !$options['custom_field_template_replace_keys_by_labels'] )
|
1537 |
$out .= '<p class="label">' . stripcslashes($label) . '</p>';
|
1538 |
+
$out .= trim($before).'<select id="' . $name . $sid . $cftnum . '" name="' . $name . '[' . $sid . '][]"' . $class . $style . $event_output . '>';
|
1539 |
|
1540 |
if ( $selectLabel )
|
1541 |
$out .= '<option value="">' . stripcslashes(trim($selectLabel)) . '</option>';
|
1561 |
return $out;
|
1562 |
}
|
1563 |
|
1564 |
+
function make_textarea( $name, $sid, $cftnum, $rows, $cols, $tinyMCE, $htmlEditor, $mediaButton, $default, $hideKey, $label, $code, $class, $style, $mediaOffMedia, $mediaOffImage, $mediaOffVideo, $mediaOffAudio,
|
1565 |
$onclick, $ondblclick, $onkeydown, $onkeypress, $onkeyup, $onmousedown, $onmouseup, $onmouseover, $onmouseout, $onmousemove, $onfocus, $onblur, $onchange, $onselect ) {
|
1566 |
$options = $this->get_custom_field_template_data();
|
1567 |
|
1575 |
endif;
|
1576 |
|
1577 |
if( isset( $_REQUEST[ 'post' ] ) && $_REQUEST[ 'post' ] > 0 && $_REQUEST['default'] != true ) {
|
1578 |
+
$value = $this->get_post_meta( $_REQUEST[ 'post' ], $title );
|
1579 |
+
$value = $value[ $cftnum ];
|
1580 |
} else {
|
1581 |
$value = $default;
|
1582 |
}
|
1651 |
endforeach;
|
1652 |
|
1653 |
$out .=
|
1654 |
+
'<dl id="dl_' . $name . $sid . $cftnum . '">' .
|
1655 |
+
'<dt><span' . $hide . '><label for="' . $name . $sid . $cftnum . '">' . $title . '</label></span><br />' . $media . $switch . '</dt>' .
|
1656 |
'<dd>';
|
1657 |
|
1658 |
if ( !empty($label) && !$options['custom_field_template_replace_keys_by_labels'] )
|
1665 |
$editorcontainer_class .= ' class="editorcontainer"';
|
1666 |
endif;
|
1667 |
|
1668 |
+
$out .= '<div' . $editorcontainer_class . ' id="editorcontainer_' . $name . $rand . '"><textarea id="' . $name . $rand . '" name="' . $name . '[' . $sid . '][]" rows="' .$rows. '" cols="' . $cols . '"' . $content_class . $style . $event_output . '>' . attribute_escape(trim($value)) . '</textarea><input type="hidden" name="'.$name.'_rand['.$sid.']" value="'.$rand.'" /></div>';
|
1669 |
if ( $htmlEditor == true ) $out .= '</div>';
|
1670 |
$out .= '</dd></dl>'."\n";
|
1671 |
|
1672 |
return $out;
|
1673 |
}
|
1674 |
+
|
1675 |
+
function make_file( $name, $sid, $cftnum, $size, $hideKey, $label, $class, $style, $before, $after, $multipleButton ) {
|
1676 |
+
$options = $this->get_custom_field_template_data();
|
1677 |
+
|
1678 |
+
$title = $name;
|
1679 |
+
$name = $this->sanitize_name( $name );
|
1680 |
+
|
1681 |
+
if( isset( $_REQUEST[ 'post' ] ) && $_REQUEST[ 'post' ] > 0 && $_REQUEST['default'] != true ) {
|
1682 |
+
$value = $this->get_post_meta( $_REQUEST[ 'post' ], $title );
|
1683 |
+
$ct_value = count($value);
|
1684 |
+
if ( $value ) {
|
1685 |
+
$value = $value[ $cftnum ];
|
1686 |
+
}
|
1687 |
+
} else {
|
1688 |
+
$value = $default;
|
1689 |
+
}
|
1690 |
+
if ( empty($ct_value) ) $ct_value = 1;
|
1691 |
+
|
1692 |
+
if ( !get_post($value) ) :
|
1693 |
+
delete_post_meta($_REQUEST[ 'post' ], $name, $value);
|
1694 |
+
if ( $sid != 0 ) return false;
|
1695 |
+
endif;
|
1696 |
+
|
1697 |
+
if ( $hideKey == true ) $hide = ' class="hideKey"';
|
1698 |
+
if ( !empty($class) ) $class = ' class="' . $class . '"';
|
1699 |
+
if ( !empty($style) ) $style = ' style="' . $style . '"';
|
1700 |
+
|
1701 |
+
if ( !empty($label) && $options['custom_field_template_replace_keys_by_labels'] )
|
1702 |
+
$title = stripcslashes($label);
|
1703 |
+
|
1704 |
+
if ( $multipleButton == true && $ct_value == $cftnum ) :
|
1705 |
+
$addfield .= '<div style="margin-top:-1em;">';
|
1706 |
+
$addfield .= '<a href="#clear" onclick="jQuery(this).parent().parent().parent().clone().insertAfter(jQuery(this).parent().parent().parent()).find('."'input'".').val('."''".');jQuery(this).parent().css('."'visibility','hidden'".');jQuery(this).parent().prev().css('."'visibility','hidden'".'); return false;">' . __('Add New', 'custom-field-template') . '</a>';
|
1707 |
+
$addfield .= '</div>';
|
1708 |
+
endif;
|
1709 |
+
|
1710 |
+
$out .=
|
1711 |
+
'<dl id="dl_' . $name . $sid . $cftnum . '">' .
|
1712 |
+
'<dt><span' . $hide . '><label for="' . $name . $sid . $cftnum . '">' . $title . '</label></span>'.$addfield.'</dt>' .
|
1713 |
+
'<dd>';
|
1714 |
+
|
1715 |
+
if ( !empty($label) && !$options['custom_field_template_replace_keys_by_labels'] )
|
1716 |
+
$out .= '<p class="label">' . stripcslashes($label) . '</p>';
|
1717 |
+
$out .= trim($before).'<input id="' . $name . $sid . '" name="' . $name . '['.$sid.'][]" type="file" size="' . $size . '"' . $class . $style . ' />'.trim($after);
|
1718 |
+
|
1719 |
+
if ( ( $value = intval($value) ) && $thumb_url = get_attachment_icon_src( $value ) ) :
|
1720 |
+
$thumb_url = $thumb_url[0];
|
1721 |
+
|
1722 |
+
$post = get_post($value);
|
1723 |
+
$filename = basename($post->guid);
|
1724 |
+
$title = esc_attr($post->post_title);
|
1725 |
+
|
1726 |
+
$out .= '<p><label for=""><input type="checkbox" name="'.$name . '_delete[' . $sid . '][]" id="'.$name . '_delete' . $sid . '" value="1" />' . __('Delete', 'custom-field-template') . '</label> <img src="'.$thumb_url.'" width="32" height="32" style="vertical-align:middle;" /> ' . $title . ' </p>';
|
1727 |
+
$out .= '<input type="hidden" name="'.$name . '[' . $sid . '][]" value="' . $value . '" />';
|
1728 |
+
endif;
|
1729 |
+
|
1730 |
+
$out .= '</dd></dl>'."\n";
|
1731 |
+
|
1732 |
+
return $out;
|
1733 |
+
}
|
1734 |
+
|
1735 |
|
1736 |
function load_custom_field( $id = 0 ) {
|
1737 |
global $userdata, $post;
|
1750 |
endif;
|
1751 |
endif;
|
1752 |
|
|
|
1753 |
$fields = $this->get_custom_fields( $id );
|
1754 |
+
|
1755 |
if ( $fields == null )
|
1756 |
return;
|
1757 |
+
|
1758 |
if ( $options['custom_fields'][$id]['post_type'] ) :
|
1759 |
if ( $options['custom_fields'][$id]['post_type'] == 'post' && (strstr($_SERVER['REQUEST_URI'], 'wp-admin/page-new.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/page.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/edit-pages.php')) )
|
1760 |
return;
|
1773 |
|
1774 |
if ( $_REQUEST['post'] && $options['custom_fields'][$id]['category'] && !isset($options['posts'][$_REQUEST['post']]) && $options['posts'][$_REQUEST['post']] !== $id && $_REQUEST['cft_mode'] != 'ajaxload' )
|
1775 |
return;
|
1776 |
+
|
1777 |
+
if ( !isset($_REQUEST['id']) && $options['custom_fields'][$id]['category'] && $_REQUEST['cft_mode'] == 'ajaxload' )
|
1778 |
+
return;
|
1779 |
|
1780 |
if ( $options['custom_fields'][$id]['post'] ) :
|
1781 |
$post_ids = explode(',', $options['custom_fields'][$id]['post']);
|
1799 |
|
1800 |
$out .= '<div id="cft_'.$id.'">';
|
1801 |
$out .= '<input type="hidden" name="custom-field-template-id" id="custom-field-template-id" value="' . $id . '" />';
|
1802 |
+
foreach( $fields as $field_key => $field_val ) :
|
1803 |
+
foreach( $field_val as $title => $data ) {
|
1804 |
+
if ( is_numeric($data['parentSN']) ) $parentSN = $data['parentSN'];
|
1805 |
+
else $parentSN = $field_key;
|
1806 |
+
if ( is_numeric($data['level']) ) :
|
1807 |
+
if ( $data['level'] > $level ) continue;
|
1808 |
+
endif;
|
1809 |
+
if( $data['type'] == 'break' ) {
|
1810 |
+
if ( !empty($data['class']) ) $class = ' class="' . $data['class'] . '"';
|
1811 |
+
if ( !empty($data['style']) ) $style = ' style="' . $data['style'] . '"';
|
1812 |
+
$out .= '</div><div' . $class . $style . '>';
|
1813 |
+
}
|
1814 |
+
else if( $data['type'] == 'fieldset_open' ) {
|
1815 |
+
if ( !empty($data['class']) ) $class = ' class="' . $data['class'] . '"';
|
1816 |
+
if ( !empty($data['style']) ) $style = ' style="' . $data['style'] . '"';
|
1817 |
+
$out .= '<fieldset' . $class . $style . '>'."\n";
|
1818 |
+
$out .= '<input type="hidden" name="' . $title . '[]" value="1" />'."\n";
|
1819 |
+
|
1820 |
+
unset($addfield);
|
1821 |
+
if ( $data['multipleButton'] == true ) :
|
1822 |
+
$addfield .= ' <span>';
|
1823 |
+
$addbutton = $this->get_post_meta( $_REQUEST['post'], $title, true )-1;
|
1824 |
+
if ( $addbutton<=0 ) $addbutton = 0;
|
1825 |
+
if ( $data['cftnum']/2 == $addbutton ) :
|
1826 |
+
$addfield .= ' <a href="#clear" onclick="var tmp = jQuery(this).parent().parent().parent().clone().insertAfter(jQuery(this).parent().parent().parent());tmp.find('."'input[type=text],input[type=hidden],input[type=file]'".').val('."''".');tmp.find('."'select'".').val('."''".');tmp.find('."'textarea'".').val('."''".');tmp.find('."'input'".').attr('."'checked',false".');if(tmp.find('."'input[type=radio]'".').attr('."'name'".').match(/\[([0-9]+)\]$/)) { matchval = RegExp.$1; matchval++;tmp.find('."'input[type=radio]'".').attr('."'name',".'tmp.find('."'input[type=radio]'".').attr('."'name'".').replace(/\[([0-9]+)\]$/, \'[\'+matchval+\']\'));}jQuery(this).parent().css('."'visibility','hidden'".');return false;">' . __('Add New', 'custom-field-template') . '</a>';
|
1827 |
+
else :
|
1828 |
+
$addfield .= ' <a href="#clear" onclick="jQuery(this).parent().parent().parent().remove();return false;">' . __('Delete', 'custom-field-template') . '</a>';
|
1829 |
+
endif;
|
1830 |
+
$addfield .= '</span>';
|
1831 |
+
endif;
|
1832 |
+
|
1833 |
+
if ( !empty($data['legend']) ) $out .= '<legend>' . stripcslashes(trim($data['legend'])) . $addfield . '</legend>';
|
1834 |
+
}
|
1835 |
+
else if( $data['type'] == 'fieldset_close' ) {
|
1836 |
+
$out .= '</fieldset>';
|
1837 |
+
}
|
1838 |
+
else if( $data['type'] == 'textfield' || $data['type'] == 'text' ) {
|
1839 |
+
$out .= $this->make_textfield( $title, $parentSN, $data['cftnum'], $data['size'], $data['default'], $data['hideKey'], $data['label'], $data['code'], $data['class'], $data['style'], $data['before'], $data['after'], $data['maxlength'], $data['multipleButton'], $data['date'], $data['dateFirstDayOfWeek'], $data['dateFormat'], $data['startDate'], $data['endDate'], $data['readOnly'],
|
1840 |
+
$data['onclick'], $data['ondblclick'], $data['onkeydown'], $data['onkeypress'], $data['onkeyup'], $data['onmousedown'], $data['onmouseup'], $data['onmouseover'], $data['onmouseout'], $data['onmousemove'], $data['onfocus'], $data['onblur'], $data['onchange'], $data['onselect'] );
|
1841 |
+
}
|
1842 |
+
else if( $data['type'] == 'checkbox' ) {
|
1843 |
+
$out .=
|
1844 |
+
$this->make_checkbox( $title, $parentSN, $data['cftnum'], $data['value'], $data['valueLabel'], $data['checked'], $data['hideKey'], $data['label'], $data['code'], $data['class'], $data['style'],
|
1845 |
+
$data['onclick'], $data['ondblclick'], $data['onkeydown'], $data['onkeypress'], $data['onkeyup'], $data['onmousedown'], $data['onmouseup'], $data['onmouseover'], $data['onmouseout'], $data['onmousemove'], $data['onfocus'], $data['onblur'], $data['onchange'], $data['onselect'] );
|
1846 |
+
}
|
1847 |
+
else if( $data['type'] == 'radio' ) {
|
1848 |
+
$out .=
|
1849 |
+
$this->make_radio(
|
1850 |
+
$title, $parentSN, $data['cftnum'], explode( '#', $data['value'] ), explode( '#', $data['valueLabel'] ), $data['clearButton'], $data['default'], $data['hideKey'], $data['label'], $data['code'], $data['class'], $data['style'], $data['multipleButton'],
|
1851 |
+
$data['onclick'], $data['ondblclick'], $data['onkeydown'], $data['onkeypress'], $data['onkeyup'], $data['onmousedown'], $data['onmouseup'], $data['onmouseover'], $data['onmouseout'], $data['onmousemove'], $data['onfocus'], $data['onblur'], $data['onchange'], $data['onselect'] );
|
1852 |
+
}
|
1853 |
+
else if( $data['type'] == 'select' ) {
|
1854 |
+
$out .=
|
1855 |
+
$this->make_select(
|
1856 |
+
$title, $parentSN, $data['cftnum'], explode( '#', $data['value'] ), explode( '#', $data['valueLabel'] ), $data['default'], $data['hideKey'], $data['label'], $data['code'], $data['class'], $data['style'], $data['before'], $data['after'], $data['selectLabel'], $data['multipleButton'],
|
1857 |
+
$data['onclick'], $data['ondblclick'], $data['onkeydown'], $data['onkeypress'], $data['onkeyup'], $data['onmousedown'], $data['onmouseup'], $data['onmouseover'], $data['onmouseout'], $data['onmousemove'], $data['onfocus'], $data['onblur'], $data['onchange'], $data['onselect'] );
|
1858 |
+
}
|
1859 |
+
else if( $data['type'] == 'textarea' ) {
|
1860 |
+
if ( $options['tinyMCE'][$_REQUEST['post']][$this->sanitize_name($title)][$i] ) $data['rows'] = $options['tinyMCE'][$_REQUEST['post']][$this->sanitize_name($title)][$i];
|
1861 |
+
$out .=
|
1862 |
+
$this->make_textarea( $title, $parentSN, $data['cftnum'], $data['rows'], $data['cols'], $data['tinyMCE'], $data['htmlEditor'], $data['mediaButton'], $data['default'], $data['hideKey'], $data['label'], $data['code'], $data['class'], $data['style'], $data['mediaOffMedia'], $data['mediaOffImage'], $data['mediaOffVideo'], $data['mediaOffAudio'],
|
1863 |
+
$data['onclick'], $data['ondblclick'], $data['onkeydown'], $data['onkeypress'], $data['onkeyup'], $data['onmousedown'], $data['onmouseup'], $data['onmouseover'], $data['onmouseout'], $data['onmousemove'], $data['onfocus'], $data['onblur'], $data['onchange'], $data['onselect'] );
|
1864 |
+
}
|
1865 |
+
else if( $data['type'] == 'file' ) {
|
1866 |
+
$out .=
|
1867 |
+
$this->make_file( $title, $parentSN, $data['cftnum'], $data['size'], $data['hideKey'], $data['label'], $data['class'], $data['style'], $data['before'], $data['after'], $data['multipleButton'] );
|
1868 |
}
|
1869 |
}
|
1870 |
+
endforeach;
|
1871 |
$out .= '<script type="text/javascript">' . "\n" .
|
1872 |
'// <![CDATA[' . "\n";
|
1873 |
$out .= ' jQuery(document).ready(function() {' . "\n" .
|
1982 |
|
1983 |
$fields = $this->get_custom_fields( $init_id );
|
1984 |
if ( user_can_richedit() ) :
|
1985 |
+
if ( is_array($fields) ) :
|
1986 |
+
foreach( $fields as $field_key => $field_val ) :
|
1987 |
+
foreach( $field_val as $title => $data ) :
|
1988 |
+
if( $data[ 'type' ] == 'textarea' && $data[ 'tinyMCE' ] ) :
|
1989 |
+
if ( substr($wp_version, 0, 3) >= '2.7' ) :
|
1990 |
/*$out .= ' if ( getUserSetting( "editor" ) == "html" ) {
|
1991 |
jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
1992 |
+
else :
|
1993 |
$out .= ' if(wpTinyMCEConfig) if(wpTinyMCEConfig.defaultEditor == "html") { jQuery("#edButtonPreview").trigger("click"); }' . "\n";
|
1994 |
+
endif;
|
1995 |
+
break;
|
1996 |
+
endif;
|
1997 |
+
endforeach;
|
1998 |
+
endforeach;
|
1999 |
+
endif;
|
2000 |
endif;
|
2001 |
|
2002 |
if ( $options['custom_fields'] ) :
|
2007 |
$categories = array_filter($categories);
|
2008 |
foreach($categories as $cat_id) :
|
2009 |
if ( is_numeric($cat_id) ) :
|
2010 |
+
$out .= 'jQuery(\'#in-category-' . $cat_id . '\').click(function(){if(jQuery(\'#in-category-' . $cat_id . '\').attr(\'checked\') == true) { if(tinyMCEID.length) { for(i=0;i<tinyMCEID.length;i++) {tinyMCE.execCommand(\'mceRemoveControl\', false, tinyMCEID[i]);} tinyMCEID.length=0;}; jQuery.get(\'?page=custom-field-template/custom-field-template.php&cft_mode=selectbox&post=\'+jQuery(\'#post_ID\').val()+\'&\'+jQuery(\'#categories-all :input\').fieldSerialize(), function(html) { jQuery(\'#cft_selectbox\').html(html);';
|
2011 |
if ( $options['custom_field_template_use_autosave'] ) :
|
2012 |
$out .= ' var fields = jQuery(\'#cft :input\').fieldSerialize();';
|
2013 |
$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) {';
|
2016 |
endif;
|
2017 |
$out .= 'jQuery(\'#cft\').html(html);}});}});';
|
2018 |
else :
|
2019 |
+
$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(\'#categories-all :input\').fieldSerialize(), success: function(html) {';
|
2020 |
if ( $options['custom_field_template_replace_the_title'] ) :
|
2021 |
$out .= 'jQuery(\'#cftdiv h3 span\').text(\'' . $options['custom_fields'][$key]['title'] . '\');';
|
2022 |
endif;
|
2024 |
endif;
|
2025 |
$out .= ' });';
|
2026 |
|
2027 |
+
$out .= ' }else{ jQuery(\'#cft\').html(\'\');jQuery.get(\'?page=custom-field-template/custom-field-template.php&cft_mode=selectbox&post=\'+jQuery(\'#post_ID\').val()+\'&\'+jQuery(\'#categories-all :input\').fieldSerialize(), function(html) { jQuery(\'#cft_selectbox\').html(html); jQuery.ajax({type: \'GET\', url: \'?page=custom-field-template/custom-field-template.php&cft_mode=ajaxload&post=\'+jQuery(\'#post_ID\').val()+\'&\'+jQuery(\'#categories-all :input\').fieldSerialize(), success: function(html) { jQuery(\'#cft\').html(html);}}); });';
|
2028 |
if ( $options['custom_field_template_replace_the_title'] ) :
|
2029 |
$out .= 'jQuery(\'#cftdiv h3 span\').text(\'' . __('Custom Field Template', 'custom-field-template') . '\');';
|
2030 |
endif;
|
2184 |
endif;
|
2185 |
|
2186 |
$filtered_cfts = $this->custom_field_template_filter();
|
2187 |
+
|
2188 |
if( count($filtered_cfts) < 1 ) :
|
2189 |
return ' ';
|
2190 |
endif;
|
2249 |
$tags_input = explode(",", $_POST['tags_input']);
|
2250 |
}
|
2251 |
}
|
2252 |
+
|
2253 |
+
$save_value = array();
|
2254 |
+
|
2255 |
+
if ( $_FILES ) :
|
2256 |
+
foreach($_FILES as $key => $val ) :
|
2257 |
+
foreach( $val as $key2 => $val2 ) :
|
2258 |
+
foreach( $val2 as $key3 => $val3 ) :
|
2259 |
+
foreach( $val3 as $key4 => $val4 ) :
|
2260 |
+
if ( !empty($val['name'][$key3][$key4]) ) :
|
2261 |
+
$tmpfiles[$key][$key3][$key4]['name'] = $val['name'][$key3][$key4];
|
2262 |
+
$tmpfiles[$key][$key3][$key4]['type'] = $val['type'][$key3][$key4];
|
2263 |
+
$tmpfiles[$key][$key3][$key4]['tmp_name'] = $val['tmp_name'][$key3][$key4];
|
2264 |
+
$tmpfiles[$key][$key3][$key4]['error'] = $val['error'][$key3][$key4];
|
2265 |
+
$tmpfiles[$key][$key3][$key4]['size'] = $val['size'][$key3][$key4];
|
2266 |
+
endif;
|
2267 |
+
endforeach;
|
2268 |
+
endforeach;
|
2269 |
+
break;
|
2270 |
+
endforeach;
|
2271 |
+
endforeach;
|
2272 |
+
endif;
|
2273 |
+
unset($_FILES);
|
2274 |
+
|
2275 |
+
foreach( $fields as $field_key => $field_val) :
|
2276 |
+
foreach( $field_val as $title => $data) :
|
2277 |
+
if ( is_numeric($data['parentSN']) ) $field_key = $data['parentSN'];
|
2278 |
+
$name = $this->sanitize_name( $title );
|
2279 |
+
$title = $wpdb->escape(stripcslashes(trim($title)));
|
2280 |
|
2281 |
+
switch ( $data['type'] ) :
|
2282 |
+
case 'fieldset_open' :
|
2283 |
+
$save_value[$title][0] = count($_REQUEST[$name]);
|
2284 |
+
break;
|
2285 |
+
default :
|
2286 |
+
$value = stripcslashes(trim($_REQUEST[$name][$field_key][$data['cftnum']]));
|
2287 |
+
|
2288 |
+
if ( $options['custom_field_template_use_wpautop'] && $data['type'] == 'textarea' && !empty($value) )
|
2289 |
+
$value = wpautop($value);
|
2290 |
+
if ( is_numeric($data['editCode']) ) :
|
2291 |
+
eval(stripcslashes($options['php'][$data['editCode']]));
|
2292 |
+
endif;
|
2293 |
+
if( isset( $value ) && strlen( $value ) && $data['type'] != 'file' ) {
|
2294 |
+
if ( $data['insertTag'] == true ) $tags_input[] = $value;
|
2295 |
+
if ( $data['valueCount'] == true ) :
|
2296 |
+
$options['value_count'][$title][$value] = $this->set_value_count($title, $value);
|
2297 |
+
endif;
|
2298 |
|
2299 |
+
if ( $_REQUEST['TinyMCE_' . $name . trim($_REQUEST[ $name."_rand" ][$i]) . '_size'] ) {
|
2300 |
+
preg_match('/cw=[0-9]+&ch=([0-9]+)/', $_REQUEST['TinyMCE_' . $name . trim($_REQUEST[ $name."_rand" ][$i]) . '_size'], $matched);
|
2301 |
+
$options['tinyMCE'][$id][$name][$i] = (int)($matched[1]/20);
|
2302 |
+
}
|
2303 |
+
$save_value[$title][] = $value;
|
2304 |
+
} else if ( $data['blank'] == true ) {
|
2305 |
+
$save_value[$title][] = $value;
|
2306 |
+
}
|
2307 |
+
|
2308 |
+
if ( $data['type'] == 'file' ) :
|
2309 |
+
if ( $_REQUEST[$name.'_delete'][$field_key][$data['cftnum']] ) :
|
2310 |
+
wp_delete_attachment($value);
|
2311 |
+
delete_post_meta($id, $title, $value);
|
2312 |
+
endif;
|
2313 |
+
if( isset($tmpfiles[$title][$field_key][$data['cftnum']]) ) :
|
2314 |
+
$_FILES[$title] = $tmpfiles[$title][$field_key][$data['cftnum']];
|
2315 |
+
if ( $value ) :
|
2316 |
+
wp_delete_attachment($value);
|
2317 |
+
delete_post_meta($id, $title, $value);
|
2318 |
+
endif;
|
2319 |
+
|
2320 |
+
if ( $data['relation'] == true ) :
|
2321 |
+
$upload_id = media_handle_upload($title, $id);
|
2322 |
+
else :
|
2323 |
+
$upload_id = media_handle_upload($title, '');
|
2324 |
+
endif;
|
2325 |
+
add_post_meta( $id, $title, apply_filters('cft_'.rawurlencode($title), $upload_id) );
|
2326 |
+
unset($_FILES);
|
2327 |
+
endif;
|
2328 |
+
if ( !get_post($value) && $value ) :
|
2329 |
+
delete_post_meta($id, $title, $value);
|
2330 |
+
endif;
|
2331 |
+
endif;
|
2332 |
+
endswitch;
|
2333 |
+
endforeach;
|
2334 |
+
endforeach;
|
2335 |
+
|
2336 |
+
/*print_r($tmpfiles);
|
2337 |
+
print_r($fields);
|
2338 |
+
print_r($_REQUEST);
|
2339 |
+
print_r($save_value);
|
2340 |
+
exit;*/
|
2341 |
+
|
2342 |
+
foreach( $save_value as $title => $values ) :
|
2343 |
+
unset($delete);
|
2344 |
if ( count($values) == 1 ) :
|
2345 |
+
if ( !add_post_meta( $id, $title, apply_filters('cft_'.rawurlencode($title), $values[0]), true ) ) :
|
2346 |
+
if ( count($this->get_post_meta($id, $title, false))>1 ) :
|
|
|
|
|
|
|
|
|
|
|
2347 |
delete_post_meta($id, $title);
|
2348 |
+
add_post_meta( $id, $title, apply_filters('cft_'.rawurlencode($title), $values[0]) );
|
2349 |
+
else :
|
2350 |
+
update_post_meta( $id, $title, apply_filters('cft_'.rawurlencode($title), $values[0]) );
|
2351 |
endif;
|
2352 |
+
endif;
|
2353 |
+
elseif ( count($values) > 1 ) :
|
2354 |
+
$tmp = $this->get_post_meta( $id, $title, false );
|
2355 |
+
if ( $values != $tmp ) :
|
2356 |
+
delete_post_meta($id, $title);
|
2357 |
foreach($values as $val)
|
2358 |
+
add_post_meta( $id, $title, apply_filters('cft_'.rawurlencode($title), $val) );
|
2359 |
endif;
|
|
|
|
|
2360 |
endif;
|
2361 |
+
endforeach;
|
2362 |
|
2363 |
if ( is_array($tags_input) ) :
|
2364 |
if ( class_exists('SimpleTags') ) :
|
2382 |
$Section = NULL;
|
2383 |
$Data = array();
|
2384 |
$Sections = array();
|
|
|
2385 |
if ($Temp = strtok($Str,"\r\n")) {
|
2386 |
+
$sn = -1;
|
2387 |
do {
|
2388 |
switch ($Temp{0}) {
|
2389 |
case ';':
|
2395 |
}
|
2396 |
$Pos = strpos($Temp,'[');
|
2397 |
$Section = substr($Temp,$Pos+1,strpos($Temp,']',$Pos)-1);
|
2398 |
+
$sn++;
|
2399 |
+
$Data[$sn][$Section] = array();
|
2400 |
+
if ( isset($cftnum[$Section]) ) $cftnum[$Section]++;
|
2401 |
+
else $cftnum[$Section] = 0;
|
2402 |
+
$Data[$sn][$Section]['cftnum'] = $cftnum[$Section];
|
2403 |
+
if($Data[$sn][$Section])
|
|
|
|
|
2404 |
break;
|
2405 |
default:
|
2406 |
$Pos = strpos($Temp,'=');
|
2410 |
$Value = array();
|
2411 |
$Value["NAME"] = trim(substr($Temp,0,$Pos));
|
2412 |
$Value["VALUE"] = trim(substr($Temp,$Pos+1));
|
2413 |
+
|
2414 |
if ($ProcessSections) {
|
2415 |
+
$Data[$sn][$Section][$Value["NAME"]] = $Value["VALUE"];
|
2416 |
}
|
2417 |
else {
|
2418 |
$Data[$Value["NAME"]] = $Value["VALUE"];
|
2420 |
break;
|
2421 |
}
|
2422 |
} while ($Temp = strtok("\r\n"));
|
2423 |
+
|
2424 |
+
$gap = 0;
|
2425 |
+
foreach( $Data as $Data_key => $Data_val ) :
|
2426 |
+
foreach( $Data_val as $title => $data) :
|
2427 |
+
$tmp_parentSN = count($returndata);
|
2428 |
+
switch ( $data["type"]) :
|
2429 |
+
case 'checkbox' :
|
2430 |
+
if ( is_numeric($data["code"]) ) :
|
2431 |
+
eval(stripcslashes($options['php'][$data["code"]]));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2432 |
else :
|
2433 |
+
$values = explode( '#', $data["value"] );
|
2434 |
+
$valueLabel = explode( '#', $data["valueLabel"] );
|
2435 |
+
$defaults = explode( '#', $data["default"] );
|
2436 |
endif;
|
2437 |
|
2438 |
if ( is_array($defaults) )
|
2440 |
$defaults[$dkey] = trim($dval);
|
2441 |
|
2442 |
$tmp = $key;
|
2443 |
+
$i = 0;
|
2444 |
if ( is_array($values) ) :
|
|
|
2445 |
foreach($values as $value) {
|
2446 |
+
$count_key = count($returndata);
|
2447 |
+
$Data[$Data_key][$title]["value"] = trim($value);
|
2448 |
+
$Data[$Data_key][$title]["originalValue"] = $data["value"];
|
2449 |
+
$Data[$Data_key][$title]['cftnum'] = $i;
|
2450 |
if ( $valueLabel[$i] )
|
2451 |
+
$Data[$Data_key][$title]["valueLabel"] = trim($valueLabel[$i]);
|
2452 |
if ( $tmp!=$key )
|
2453 |
+
$Data[$Data_key][$title]["hideKey"] = true;
|
2454 |
+
if ( is_array($defaults) ) :
|
2455 |
if ( in_array(trim($value), $defaults) )
|
2456 |
+
$Data[$Data_key][$title]["checked"] = true;
|
2457 |
+
else
|
2458 |
+
unset($Data[$Data_key][$title]["checked"]);
|
2459 |
+
endif;
|
2460 |
+
$Data[$Data_key][$title]['parentSN'] = $tmp_parentSN+$gap;
|
2461 |
+
$returndata[$count_key] = $Data[$Data_key];
|
|
|
|
|
|
|
|
|
|
|
2462 |
$key++;
|
2463 |
$i++;
|
2464 |
}
|
2465 |
endif;
|
2466 |
+
break;
|
2467 |
+
default :
|
2468 |
+
if ( $data['type'] == 'fieldset_open' ) :
|
2469 |
+
$fieldset = array();
|
2470 |
+
if ( $_REQUEST[$this->sanitize_name($title)] ) $fieldsetcounter = count($_REQUEST[$this->sanitize_name($title)])-1;
|
2471 |
+
else if ( $_REQUEST['post'] ) $fieldsetcounter = $this->get_post_meta( $_REQUEST['post'], $title, true )-1;
|
2472 |
+
else $fieldsetcounter = 0;
|
2473 |
+
endif;
|
2474 |
+
if ( is_array($fieldset) ) :
|
2475 |
+
if ( !$tmp_parentSN2[$title] ) $tmp_parentSN2[$title] = $tmp_parentSN;
|
2476 |
+
endif;
|
2477 |
+
if ( $data['multiple'] == true && $data['type'] != 'checkbox' && $data['type'] != 'fieldset_open' && !is_array($fieldset) ) :
|
2478 |
+
$counter = count($_REQUEST[$this->sanitize_name($title)][$tmp_parentSN+$gap]);
|
2479 |
+
if ( $data['type'] == 'file' && $_FILES[$this->sanitize_name($title)] ) $counter = (int)count($_FILES[$this->sanitize_name($title)]['name'][$tmp_parentSN+$gap])+1;
|
2480 |
+
if ( $_REQUEST['post_ID'] ) $org_counter = count($this->get_post_meta( $_REQUEST['post_ID'], $title ));
|
2481 |
+
else if ( $_REQUEST['post'] ) $org_counter = count($this->get_post_meta( $_REQUEST['post'], $title ));
|
2482 |
+
else $org_counter = 1;
|
2483 |
+
if ( !$counter ) :
|
2484 |
+
$counter = $org_counter;
|
2485 |
+
$counter++;
|
2486 |
+
else :
|
2487 |
+
if ( empty($_REQUEST[$this->sanitize_name($title)][$tmp_parentSN+$gap][$counter-1]) ) $counter--;
|
2488 |
+
endif;
|
2489 |
+
if ( !$org_counter ) $org_counter = 2;
|
2490 |
+
if ( is_numeric($data['startNum']) && $data['startNum']>$counter ) $counter = $data['startNum'];
|
2491 |
+
if ( is_numeric($data['endNum']) && $data['endNum']<$counter ) $counter = $data['endNum'];
|
2492 |
+
if ( $counter ) :
|
2493 |
+
for($i=0;$i<$counter; $i++) :
|
2494 |
+
$count_key = count($returndata);
|
2495 |
+
if ( $i!=0 ) $Data[$Data_key][$title]["hideKey"] = true;
|
2496 |
+
if ( $i!=0 ) unset($Data[$Data_key][$title]["label"]);
|
2497 |
+
$Data[$Data_key][$title]['cftnum'] = $i;
|
2498 |
+
$Data[$Data_key][$title]['parentSN'] = $tmp_parentSN+$gap;
|
2499 |
+
$returndata[$count_key] = $Data[$Data_key];
|
2500 |
+
if ( is_array($fieldset) ) :
|
2501 |
+
$fieldset[] = $Data[$Data_key];
|
2502 |
+
endif;
|
2503 |
+
endfor;
|
2504 |
+
endif;
|
2505 |
+
if ( $counter != $org_counter ) :
|
2506 |
+
$gap += ($org_counter - $counter);
|
2507 |
+
endif;
|
2508 |
+
else :
|
2509 |
+
$Data[$Data_key][$title]['parentSN'] = $tmp_parentSN+$gap;
|
2510 |
+
$returndata[] = $Data[$Data_key];
|
2511 |
+
if ( is_array($fieldset) ) :
|
2512 |
+
$Data[$Data_key][$title]['parentSN'] = $tmp_parentSN2[$title];
|
2513 |
+
$fieldset[] = $Data[$Data_key];
|
2514 |
+
endif;
|
2515 |
+
endif;
|
2516 |
+
if ( $data['type'] == 'fieldset_close' && is_array($fieldset) ) :
|
2517 |
+
for($i=0;$i<$fieldsetcounter;$i++) :
|
2518 |
+
$returndata = array_merge($returndata, $fieldset);
|
2519 |
+
endfor;
|
2520 |
+
|
2521 |
+
$groupcounter = (int)$this->get_post_meta( $_REQUEST['post_ID'], $title, true );
|
2522 |
+
if ( $groupcounter == 0 ) $groupcounter = 2;
|
2523 |
+
if ( $_REQUEST[$this->sanitize_name($title)] ) $gap += (($groupcounter - count($_REQUEST[$this->sanitize_name($title)])))*count($fieldset);
|
2524 |
+
unset($fieldset, $tmp_parentSN2);
|
2525 |
+
endif;
|
2526 |
+
unset($counter);
|
2527 |
+
endswitch;
|
2528 |
+
endforeach;
|
2529 |
+
endforeach;
|
2530 |
+
|
2531 |
+
unset($cftnum);
|
2532 |
+
foreach( $returndata as $Data_key => $Data_val ) :
|
2533 |
+
foreach( $Data_val as $title => $data ) :
|
2534 |
+
if ( is_numeric($cftnum[$title]) ) $cftnum[$title]++;
|
2535 |
+
else $cftnum[$title] = 0;
|
2536 |
+
$returndata[$Data_key][$title]['cftnum'] = $cftnum[$title];
|
2537 |
+
endforeach;
|
2538 |
+
endforeach;
|
2539 |
}
|
2540 |
+
|
2541 |
+
return $returndata;
|
2542 |
}
|
2543 |
|
2544 |
function output_custom_field_values($attr) {
|
2555 |
|
2556 |
$metakey = $key;
|
2557 |
if ( $metakey ) :
|
2558 |
+
$metavalue = $this->get_post_meta($post_id, $key, $single);
|
2559 |
if ( is_array($metavalue) ) :
|
2560 |
$output = '<ul>' . "\n";
|
2561 |
foreach ( $metavalue as $val ) :
|
2579 |
if ( $count ) :
|
2580 |
for ($i=0;$i<$count;$i++) :
|
2581 |
$fields = $this->get_custom_fields( $i );
|
2582 |
+
foreach ( $fields as $field_key => $field_val ) :
|
2583 |
+
foreach ( $field_val as $key => $val ) :
|
2584 |
+
if ( count($data[$key]) > 1 ) :
|
2585 |
+
if ( $val['sort'] == 'asc' ) :
|
2586 |
+
sort($data[$key]);
|
2587 |
+
elseif ( $val['sort'] == 'desc' ) :
|
2588 |
+
rsort($data[$key]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2589 |
endif;
|
2590 |
+
$replace_val = '<ul>';
|
2591 |
+
foreach ( $data[$key] as $val2 ) :
|
2592 |
+
$value = $val2;
|
2593 |
+
if ( is_numeric($val['outputCode']) ) :
|
2594 |
+
eval(stripcslashes($options['php'][$val['outputCode']]));
|
2595 |
+
endif;
|
2596 |
+
if ( $val['shortCode'] == true ) $value = do_shortcode($value);
|
2597 |
+
$replace_val .= '<li>'.$value.'</li>';
|
2598 |
+
endforeach;
|
2599 |
+
$replace_val .= '</ul>';
|
2600 |
+
elseif ( count($data[$key]) == 1 ) :
|
2601 |
+
$value = $data[$key][0];
|
2602 |
+
if ( is_numeric($val['outputCode']) ) :
|
2603 |
+
eval(stripcslashes($options['php'][$val['outputCode']]));
|
2604 |
+
endif;
|
2605 |
+
if ( $val['shortCode'] == true ) $value = do_shortcode($value);
|
2606 |
+
$replace_val = $value;
|
2607 |
+
if ( $val['singleList'] == true ) :
|
2608 |
+
$replace_val = '<ul><li>' . $replace_val . '</li></ul>';
|
2609 |
+
endif;
|
2610 |
+
else :
|
2611 |
+
if ( $val['outputNone'] ) $replace_val = $val['outputNone'];
|
2612 |
+
else $replace_val = '';
|
2613 |
endif;
|
2614 |
+
if ( $options['shortcode_format_use_php'][$format] )
|
2615 |
+
$output = preg_replace_callback("/(<\?php|<\?|< \?php)(.*?)\?>/si", array($this, 'EvalBuffer'), $output);
|
2616 |
+
$key = preg_quote($key, '/');
|
2617 |
+
$replace_val = str_replace('\\', '\\\\', $replace_val);
|
2618 |
+
$replace_val = str_replace('$', '\$', $replace_val);
|
2619 |
+
$output = preg_replace('/\['.$key.'\]/', $replace_val, $output);
|
2620 |
+
endforeach;
|
|
|
|
|
|
|
2621 |
endforeach;
|
2622 |
endfor;
|
2623 |
endif;
|
2628 |
return;
|
2629 |
|
2630 |
$output = '<dl class="cft">' . "\n";
|
2631 |
+
foreach ( $fields as $field_key => $field_val ) :
|
2632 |
+
foreach ( $field_val as $key => $val ) :
|
2633 |
+
if ( $keylist[$key] == true ) break;
|
2634 |
+
$values = $this->get_post_meta( $post_id, $key );
|
2635 |
+
if ( $values ):
|
2636 |
+
if ( $val['sort'] == 'asc' ) :
|
2637 |
+
sort($values);
|
2638 |
+
elseif ( $val['sort'] == 'desc' ) :
|
2639 |
+
rsort($values);
|
2640 |
+
endif;
|
2641 |
+
if ( $val['output'] == true ) :
|
2642 |
+
foreach ( $values as $num => $value ) :
|
2643 |
+
$value = str_replace('\\', '\\\\', $value);
|
2644 |
+
if ( is_numeric($val['outputCode']) ) :
|
2645 |
+
eval(stripcslashes($options['php'][$val['outputCode']]));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2646 |
endif;
|
2647 |
+
if ( empty($value) && $val['outputNone'] ) $value = $val['outputNone'];
|
2648 |
+
if ( $val['shortCode'] == true ) $value = do_shortcode($value);
|
2649 |
+
if ( !empty($val['label']) && $options['custom_field_template_replace_keys_by_labels'] )
|
2650 |
+
$key = stripcslashes($val['label']);
|
2651 |
+
if ( $val['hideKey'] != true && $num == 0 )
|
2652 |
+
$output .= '<dt>' . $key . '</dt>' . "\n";
|
2653 |
$output .= '<dd>' . $value . '</dd>' . "\n";
|
2654 |
+
endforeach;
|
2655 |
endif;
|
2656 |
+
endif;
|
2657 |
+
$keylist[$key] = true;
|
2658 |
+
endforeach;
|
2659 |
endforeach;
|
2660 |
$output .= '</dl>' . "\n";
|
2661 |
endif;
|
2662 |
+
|
2663 |
return stripcslashes($output);
|
2664 |
}
|
2665 |
|
2682 |
if ( $count ) :
|
2683 |
for ($t=0;$t<$count;$t++) :
|
2684 |
$fields = $this->get_custom_fields( $t );
|
2685 |
+
foreach ( $fields as $field_key => $field_val ) :
|
2686 |
+
foreach ( $field_val as $key => $val ) :
|
2687 |
+
unset($replace);
|
2688 |
+
$replace[0] = $val;
|
2689 |
+
|
2690 |
+
$search = array();
|
2691 |
+
if($val['searchType']) eval('$search["type"] =' . stripslashes($val['searchType']));
|
2692 |
+
if($val['searchValue']) eval('$search["value"] =' . stripslashes($val['searchValue']));
|
2693 |
+
if($val['searchOperator']) eval('$search["operator"] =' . stripslashes($val['searchOperator']));
|
2694 |
+
if($val['searchValueLabel']) eval('$search["valueLabel"] =' . stripslashes($val['searchValueLabel']));
|
2695 |
+
if($val['searchDefault']) eval('$search["default"] =' . stripslashes($val['searchDefault']));
|
2696 |
+
if($val['searchClass']) eval('$search["class"] =' . stripslashes($val['searchClass']));
|
2697 |
+
if($val['searchSelectLabel']) eval('$search["selectLabel"] =' . stripslashes($val['searchSelectLabel']));
|
2698 |
+
|
2699 |
+
foreach ( $search as $skey => $sval ) :
|
2700 |
+
$j = 1;
|
2701 |
+
foreach ( $sval as $sval2 ) :
|
2702 |
+
$replace[$j][$skey] = $sval2;
|
2703 |
+
$j++;
|
2704 |
+
endforeach;
|
2705 |
endforeach;
|
|
|
2706 |
|
2707 |
+
foreach( $replace as $rkey => $rval ) :
|
2708 |
+
$replace_val[$rkey] = "";
|
2709 |
+
$class = "";
|
2710 |
+
$default = array();
|
2711 |
+
switch ( $rval['type'] ) :
|
2712 |
+
case 'text':
|
2713 |
+
case 'textfield':
|
2714 |
+
case 'textarea':
|
2715 |
+
if ( $rval['class'] ) $class = ' class="' . $rval['class'] . '"';
|
2716 |
+
$replace_val[$rkey] .= '<input type="text" name="cftsearch[' . rawurlencode($key) . '][' . $rkey . '][]" value="' . attribute_escape($_REQUEST['cftsearch'][rawurlencode($key)][$rkey][0]) . '"' . $class . ' />';
|
2717 |
+
break;
|
2718 |
+
case 'checkbox':
|
2719 |
+
if ( $rval['class'] ) $class = ' class="' . $rval['class'] . '"';
|
2720 |
+
$values = $valueLabel = array();
|
2721 |
+
$values = explode( '#', $rval['originalValue'] );
|
2722 |
+
$valueLabel = explode( '#', $rval['valueLabel'] );
|
2723 |
+
$default = explode( '#', $rval['default'] );
|
2724 |
+
if ( is_numeric($rval['searchCode']) ) :
|
2725 |
+
eval(stripcslashes($options['php'][$rval['searchCode']]));
|
2726 |
+
endif;
|
2727 |
+
if ( count($values) > 1 ) :
|
2728 |
+
$replace_val[$rkey] .= '<ul>';
|
2729 |
+
$j=0;
|
2730 |
+
foreach( $values as $metavalue ) :
|
2731 |
+
$checked = '';
|
2732 |
+
$metavalue = trim($metavalue);
|
2733 |
+
if ( is_array($_REQUEST['cftsearch'][rawurlencode($key)][$rkey]) ) :
|
2734 |
+
if ( in_array($metavalue, $_REQUEST['cftsearch'][rawurlencode($key)][$rkey]) )
|
2735 |
+
$checked = ' checked="checked"';
|
2736 |
+
else
|
2737 |
+
$checked = '';
|
2738 |
+
endif;
|
2739 |
+
if ( in_array($metavalue, $default) && !$_REQUEST['cftsearch'][rawurlencode($key)][$rkey] )
|
|
|
2740 |
$checked = ' checked="checked"';
|
|
|
|
|
|
|
|
|
|
|
2741 |
|
2742 |
+
$replace_val[$rkey] .= '<li><label><input type="checkbox" name="cftsearch[' . rawurlencode($key) . '][' . $rkey . '][]" value="' . attribute_escape($metavalue) . '"' . $class . $checked . ' /> ';
|
2743 |
+
if ( $valueLabel[$j] ) $replace_val[$rkey] .= stripcslashes($valueLabel[$j]);
|
2744 |
+
else $replace_val[$rkey] .= stripcslashes($metavalue);
|
2745 |
+
$replace_val[$rkey] .= '</label></li>';
|
2746 |
+
$j++;
|
2747 |
+
endforeach;
|
2748 |
+
$replace_val[$rkey] .= '</ul>';
|
2749 |
+
else :
|
2750 |
+
if ( $_REQUEST['cftsearch'][rawurlencode($key)][$rkey][0] == attribute_escape(trim($values[0])) )
|
2751 |
+
$checked = ' checked="checked"';
|
2752 |
+
$replace_val[$rkey] .= '<label><input type="checkbox" name="cftsearch[' . rawurlencode($key) . '][' . $rkey . '][]" value="' . attribute_escape(trim($values[0])) . '"' . $class . $checked . ' /> ';
|
2753 |
+
if ( $valueLabel[0] ) $replace_val[$rkey] .= stripcslashes(trim($valueLabel[0]));
|
2754 |
+
else $replace_val[$rkey] .= stripcslashes(trim($values[0]));
|
2755 |
+
$replace_val[$rkey] .= '</label>';
|
2756 |
+
endif;
|
2757 |
+
break;
|
2758 |
+
case 'radio':
|
2759 |
+
if ( $rval['class'] ) $class = ' class="' . $rval['class'] . '"';
|
2760 |
+
$values = explode( '#', $rval['value'] );
|
2761 |
+
$valueLabel = explode( '#', $rval['valueLabel'] );
|
2762 |
+
$default = explode( '#', $rval['default'] );
|
2763 |
+
if ( is_numeric($rval['searchCode']) ) :
|
2764 |
+
eval(stripcslashes($options['php'][$rval['searchCode']]));
|
2765 |
+
endif;
|
2766 |
+
if ( count($values) > 1 ) :
|
2767 |
+
$replace_val[$rkey] .= '<ul>';
|
2768 |
+
$j=0;
|
2769 |
+
foreach ( $values as $metavalue ) :
|
2770 |
+
$checked = '';
|
2771 |
+
$metavalue = trim($metavalue);
|
2772 |
+
if ( is_array($_REQUEST['cftsearch'][rawurlencode($key)][$rkey]) ) :
|
2773 |
+
if ( in_array($metavalue, $_REQUEST['cftsearch'][rawurlencode($key)][$rkey]) )
|
2774 |
+
$checked = ' checked="checked"';
|
2775 |
+
else
|
2776 |
+
$checked = '';
|
2777 |
+
endif;
|
2778 |
+
if ( in_array($metavalue, $default) && !$_REQUEST['cftsearch'][rawurlencode($key)][$rkey] )
|
2779 |
$checked = ' checked="checked"';
|
2780 |
+
$replace_val[$rkey] .= '<li><label><input type="radio" name="cftsearch[' . rawurlencode($key) . '][' . $rkey . '][]" value="' . attribute_escape($metavalue) . '"' . $class . $checked . ' /> ';
|
2781 |
+
if ( $valueLabel[$j] ) $replace_val[$rkey] .= stripcslashes(trim($valueLabel[$j]));
|
2782 |
+
else $replace_val[$rkey] .= stripcslashes($metavalue);
|
2783 |
+
$replace_val[$rkey] .= '</label></li>';
|
2784 |
+
$j++;
|
2785 |
+
endforeach;
|
2786 |
+
$replace_val[$rkey] .= '</ul>';
|
2787 |
+
else :
|
2788 |
+
if ( $_REQUEST['cftsearch'][rawurlencode($key)][$rkey][0] == attribute_escape(trim($values[0])) )
|
2789 |
$checked = ' checked="checked"';
|
2790 |
+
$replace_val[$rkey] .= '<label><input type="radio" name="cftsearch[' . rawurlencode($key) . '][]" value="' . attribute_escape(trim($values[0])) . '"' . $class . $checked . ' /> ';
|
2791 |
+
if ( $valueLabel[0] ) $replace_val[$rkey] .= stripcslashes(trim($valueLabel[0]));
|
2792 |
+
else $replace_val[$rkey] .= stripcslashes(trim($values[0]));
|
2793 |
+
$replace_val[$rkey] .= '</label>';
|
2794 |
+
endif;
|
2795 |
+
break;
|
2796 |
+
case 'select':
|
2797 |
+
if ( $rval['class'] ) $class = ' class="' . $rval['class'] . '"';
|
2798 |
+
$values = explode( '#', $rval['value'] );
|
2799 |
+
$valueLabel = explode( '#', $rval['valueLabel'] );
|
2800 |
+
$default = explode( '#', $rval['default'] );
|
2801 |
+
$selectLabel= $rval['selectLabel'];
|
2802 |
+
|
2803 |
+
if ( is_numeric($rval['searchCode']) ) :
|
2804 |
+
eval(stripcslashes($options['php'][$rval['searchCode']]));
|
2805 |
+
endif;
|
2806 |
+
$replace_val[$rkey] .= '<select name="cftsearch[' . rawurlencode($key) . '][' . $rkey . '][]"' . $class . '>';
|
2807 |
+
$replace_val[$rkey] .= '<option value="">'.$selectLabel.'</option>';
|
2808 |
+
$j=0;
|
2809 |
+
foreach ( $values as $metaval ) :
|
2810 |
+
$metaval = trim($metaval);
|
2811 |
+
if ( in_array($metavalue, $default) && !$_REQUEST['cftsearch'][rawurlencode($key)][$rkey] )
|
2812 |
+
$checked = ' checked="checked"';
|
2813 |
+
|
2814 |
+
if ( $_REQUEST['cftsearch'][rawurlencode($key)][$rkey][0] == $metaval ) $selected = ' selected="selected"';
|
2815 |
+
else $selected = "";
|
2816 |
+
$replace_val[$rkey] .= '<option value="' . attribute_escape($metaval) . '"' . $selected . '>';
|
2817 |
+
if ( $valueLabel[$j] )
|
2818 |
+
$replace_val[$rkey] .= stripcslashes(trim($valueLabel[$j]));
|
2819 |
+
else
|
2820 |
+
$replace_val[$rkey] .= stripcslashes($metaval);
|
2821 |
+
$replace_val[$rkey] .= '</option>' . "\n";
|
2822 |
$j++;
|
2823 |
endforeach;
|
2824 |
+
$replace_val[$rkey] .= '</select>' . "\n";
|
2825 |
+
break;
|
2826 |
+
endswitch;
|
2827 |
+
endforeach;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2828 |
|
2829 |
+
if ( $options['shortcode_format_use_php'][$format] )
|
2830 |
+
$output = preg_replace_callback("/(<\?php|<\?|< \?php)(.*?)\?>/si", array($this, 'EvalBuffer'), $output);
|
2831 |
+
$key = preg_quote($key, '/');
|
2832 |
+
$output = preg_replace('/\['.$key.'\](?!\[[0-9]+\])/', $replace_val[0], $output);
|
2833 |
+
$output = preg_replace('/\['.$key.'\]\[([0-9]+)\](?!\[\])/e', '$replace_val[${1}]', $output);
|
2834 |
+
endforeach;
|
2835 |
endforeach;
|
2836 |
endfor;
|
2837 |
endif;
|
2845 |
|
2846 |
if ( $fields == null )
|
2847 |
return;
|
2848 |
+
|
2849 |
$output = '<form method="get" action="'.get_option('home').'/" id="cftsearch'.(int)$format.'">' . "\n";
|
2850 |
+
foreach( $fields as $field_key => $field_val) :
|
2851 |
+
foreach( $field_val as $key => $val) :
|
2852 |
+
if ( $val['search'] == true ) :
|
2853 |
+
if ( !empty($val['label']) && $options['custom_field_template_replace_keys_by_labels'] )
|
2854 |
+
$key = stripcslashes($val['label']);
|
2855 |
+
$output .= '<dl>' ."\n";
|
2856 |
+
if ( $val['hideKey'] != true) :
|
2857 |
+
$output .= '<dt><label>' . $key . '</label></dt>' ."\n";
|
2858 |
+
endif;
|
2859 |
+
|
2860 |
$class = "";
|
2861 |
+
switch ( $val['type'] ) :
|
2862 |
case 'text':
|
2863 |
case 'textfield':
|
2864 |
case 'textarea':
|
2865 |
+
if ( $val['class'] ) $class = ' class="' . $val['class'] . '"';
|
2866 |
+
$output .= '<dd><input type="text" name="cftsearch[' . rawurlencode($key) . '][' . $rkey . '][]" value="' . attribute_escape($_REQUEST['cftsearch'][rawurlencode($key)][0][0]) . '"' . $class . ' /></dd>';
|
2867 |
break;
|
2868 |
case 'checkbox':
|
2869 |
+
unset($checked);
|
2870 |
+
if ( $val['class'] ) $class = ' class="' . $val['class'] . '"';
|
2871 |
+
if ( is_array($_REQUEST['cftsearch'][rawurlencode($key)]) )
|
2872 |
+
foreach ( $_REQUEST['cftsearch'][rawurlencode($key)] as $values )
|
2873 |
+
if ( $val['value'] == $values[0] ) $checked = ' checked="checked"';
|
2874 |
+
$output .= '<dd><label><input type="checkbox" name="cftsearch[' . rawurlencode($key) . '][' . $rkey . '][]" value="' . attribute_escape($val['value']) . '"' . $class . $checked . ' /> ';
|
2875 |
+
if ( $val['valueLabel'] )
|
2876 |
+
$output .= stripcslashes($val['valueLabel']);
|
2877 |
else
|
2878 |
+
$output .= stripcslashes($val['value']);
|
2879 |
$output .= '</label></dd>' . "\n";
|
2880 |
break;
|
2881 |
case 'radio':
|
2882 |
+
if ( $val['class'] ) $class = ' class="' . $val['class'] . '"';
|
2883 |
+
$values = explode( '#', $val['value'] );
|
2884 |
+
$valueLabel = explode( '#', $val['valueLabel'] );
|
2885 |
$i=0;
|
2886 |
foreach ( $values as $metaval ) :
|
2887 |
+
unset($checked);
|
2888 |
$metaval = trim($metaval);
|
2889 |
+
if ( $_REQUEST['cftsearch'][rawurlencode($key)][0][0] == $metaval ) $checked = 'checked="checked"';
|
2890 |
+
$output .= '<dd><label>' . '<input type="radio" name="cftsearch[' . rawurlencode($key) . '][' . $rkey . '][]" value="' . attribute_escape($metaval) . '"' . $class . $checked . ' /> ';
|
2891 |
+
if ( $val['valueLabel'] )
|
2892 |
$output .= stripcslashes(trim($valueLabel[$i]));
|
2893 |
else
|
2894 |
$output .= stripcslashes($metaval);
|
2897 |
endforeach;
|
2898 |
break;
|
2899 |
case 'select':
|
2900 |
+
if ( $val['class'] ) $class = ' class="' . $val['class'] . '"';
|
2901 |
+
$values = explode( '#', $val['value'] );
|
2902 |
+
$valueLabel = explode( '#', $val['valueLabel'] );
|
2903 |
+
$output .= '<dd><select name="cftsearch[' . rawurlencode($key) . '][' . $rkey . '][]"' . $class . '>';
|
2904 |
$output .= '<option value=""></option>';
|
2905 |
$i=0;
|
2906 |
foreach ( $values as $metaval ) :
|
2907 |
+
unset($selected);
|
2908 |
$metaval = trim($metaval);
|
2909 |
+
if ( $_REQUEST['cftsearch'][rawurlencode($key)][0][0] == $metaval ) $selected = 'selected="selected"';
|
2910 |
else $selected = "";
|
2911 |
$output .= '<option value="' . attribute_escape($metaval) . '"' . $selected . '>';
|
2912 |
+
if ( $val['valueLabel'] )
|
2913 |
$output .= stripcslashes(trim($valueLabel[$i]));
|
2914 |
else
|
2915 |
$output .= stripcslashes($metaval);
|
2919 |
$output .= '</select></dd>' . "\n";
|
2920 |
break;
|
2921 |
endswitch;
|
2922 |
+
$output .= '</dl>' ."\n";
|
2923 |
+
endif;
|
2924 |
+
endforeach;
|
2925 |
endforeach;
|
2926 |
if ( $button == true )
|
2927 |
$output .= '<p><input type="submit" value="' . $search_label . '" class="cftsearch_submit" /></p>' . "\n";
|
2952 |
if ( $count ) :
|
2953 |
for ($i=0;$i<$count;$i++) :
|
2954 |
$fields = $this->get_custom_fields( $i );
|
2955 |
+
foreach ( $fields as $field_key => $field_val ) :
|
2956 |
+
foreach ( $field_val as $key => $val ) :
|
2957 |
+
$replace[$key] = $val;
|
2958 |
+
$search = array();
|
2959 |
+
if($val['searchType']) eval('$search["type"] =' . stripslashes($val['searchType']));
|
2960 |
+
if($val['searchValue']) eval('$search["value"] =' . stripslashes($val['searchValue']));
|
2961 |
+
if($val['searchOperator']) eval('$search["operator"] =' . stripslashes($val['searchOperator']));
|
2962 |
|
2963 |
+
foreach ( $search as $skey => $sval ) :
|
2964 |
+
$j = 1;
|
2965 |
+
foreach ( $sval as $sval2 ) :
|
2966 |
+
$replace[$key][$j][$skey] = $sval2;
|
2967 |
+
$j++;
|
2968 |
+
endforeach;
|
2969 |
endforeach;
|
2970 |
endforeach;
|
2971 |
endforeach;
|
2972 |
endfor;
|
2973 |
endif;
|
2974 |
+
|
2975 |
if ( is_array($_REQUEST['cftsearch']) ) :
|
2976 |
foreach ( $_REQUEST['cftsearch'] as $key => $val ) :
|
2977 |
$key = rawurldecode($key);
|
2978 |
if ( is_array($val) ) :
|
2979 |
+
$ch = 0;
|
2980 |
foreach( $val as $key2 => $val2 ) :
|
2981 |
if ( is_array($val2) ) :
|
2982 |
foreach( $val2 as $val3 ) :
|
2983 |
if ( $val3 ) :
|
2984 |
+
if ( $ch == 0 ) $where .= ' AND (';
|
2985 |
+
else $where .= ' OR ';
|
2986 |
+
switch( $replace[$key][$key2]['operator'] ) :
|
2987 |
case '<=' :
|
2988 |
case '>=' :
|
2989 |
case '<' :
|
2991 |
case '=' :
|
2992 |
case '<>' :
|
2993 |
case '<=>':
|
2994 |
+
$where .= " ROW(ID,1) IN (SELECT post_id,count(post_id) FROM " . $wpdb->postmeta . " WHERE (" . $wpdb->postmeta . ".meta_key = '" . $key . "' AND `" . $wpdb->postmeta . "`.meta_value " . $replace[$key][$key2]['operator'] . " " . trim($val3) . ") GROUP BY post_id) ";
|
2995 |
break;
|
2996 |
default :
|
2997 |
+
$where .= " ROW(ID,1) IN (SELECT post_id,count(post_id) FROM " . $wpdb->postmeta . " WHERE (" . $wpdb->postmeta . ".meta_key = '" . $key . "' AND `" . $wpdb->postmeta . "`.meta_value LIKE '%" . trim($val3) . "%') GROUP BY post_id) ";
|
2998 |
break;
|
2999 |
endswitch;
|
3000 |
+
$ch++;
|
3001 |
endif;
|
3002 |
endforeach;
|
3003 |
endif;
|
3004 |
endforeach;
|
3005 |
+
if ( $ch>0 ) $where .= ') ';
|
3006 |
endif;
|
3007 |
endforeach;
|
3008 |
endif;
|
3133 |
if ( $fields == null )
|
3134 |
return;
|
3135 |
|
3136 |
+
foreach( $fields as $field_key => $field_val) :
|
3137 |
+
foreach( $field_val as $title => $data) :
|
3138 |
+
$name = $this->sanitize_name( $title );
|
3139 |
+
$title = $wpdb->escape(stripcslashes(trim($title)));
|
3140 |
+
$value = $this->get_post_meta($post_id, $title);
|
3141 |
if ( is_array($value) ) :
|
3142 |
foreach ( $value as $val ) :
|
3143 |
+
if ( $data['valueCount'] == true ) :
|
3144 |
$count = $this->set_value_count($title, $val)-1;
|
3145 |
if ( $count<=0 )
|
3146 |
unset($options['value_count'][$title][$val]);
|
3149 |
endif;
|
3150 |
endforeach;
|
3151 |
else :
|
3152 |
+
if ( $data['valueCount'] == true ) :
|
3153 |
$count = $this->set_value_count($title, $value)-1;
|
3154 |
if ( $count<=0 )
|
3155 |
unset($options['value_count'][$title][$value]);
|
3157 |
$options['value_count'][$title][$value] = $count;
|
3158 |
endif;
|
3159 |
endif;
|
3160 |
+
endforeach;
|
3161 |
endforeach;
|
3162 |
endif;
|
3163 |
update_option('custom_field_template_data', $options);
|
3176 |
if ( $fields == null )
|
3177 |
return;
|
3178 |
|
3179 |
+
foreach( $fields as $field_key => $field_val) :
|
3180 |
+
foreach( $field_val as $title => $data) :
|
3181 |
+
$name = $this->sanitize_name( $title );
|
3182 |
+
$title = $wpdb->escape(stripcslashes(trim($title)));
|
3183 |
+
if ( $data['valueCount'] == true ) :
|
3184 |
$query = $wpdb->prepare("SELECT COUNT(meta_id) as meta_count, `". $wpdb->postmeta."`.meta_value FROM `". $wpdb->postmeta."` WHERE `". $wpdb->postmeta."`.meta_key = %s GROUP BY `". $wpdb->postmeta."`.meta_value;", $title);
|
3185 |
$result = $wpdb->get_results($query, ARRAY_A);
|
3186 |
if ( $result ) :
|
3189 |
endforeach;
|
3190 |
endif;
|
3191 |
endif;
|
3192 |
+
endforeach;
|
3193 |
endforeach;
|
3194 |
endfor;
|
3195 |
endif;
|
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: 2009-
|
6 |
-
"PO-Revision-Date: 2009-
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -15,421 +15,428 @@ msgstr ""
|
|
15 |
|
16 |
#: custom-field-template/custom-field-template.php:125
|
17 |
#: custom-field-template/custom-field-template.php:126
|
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 |
msgid "Custom Field Template"
|
23 |
msgstr ""
|
24 |
|
25 |
-
#: custom-field-template/custom-field-template.php:
|
26 |
-
#: custom-field-template/custom-field-template.php:
|
27 |
msgid "Load"
|
28 |
msgstr ""
|
29 |
|
30 |
-
#: custom-field-template/custom-field-template.php:
|
31 |
msgid "read more"
|
32 |
msgstr ""
|
33 |
|
34 |
-
#: custom-field-template/custom-field-template.php:
|
35 |
-
#: custom-field-template/custom-field-template.php:
|
36 |
msgid "Custom Fields"
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: custom-field-template/custom-field-template.php:
|
40 |
msgid "Settings"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: custom-field-template/custom-field-template.php:
|
44 |
msgid "Default Template"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: custom-field-template/custom-field-template.php:
|
48 |
-
#: custom-field-template/custom-field-template.php:
|
49 |
-
#: custom-field-template/custom-field-template.php:
|
50 |
-
#: custom-field-template/custom-field-template.php:
|
51 |
-
#: custom-field-template/custom-field-template.php:
|
52 |
msgid "Options updated."
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: custom-field-template/custom-field-template.php:
|
56 |
msgid "Value Counts rebuilt."
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: custom-field-template/custom-field-template.php:
|
60 |
msgid "Tags rebuilt."
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: custom-field-template/custom-field-template.php:
|
64 |
msgid "Options imported."
|
65 |
msgstr ""
|
66 |
|
67 |
-
#: custom-field-template/custom-field-template.php:
|
68 |
msgid "Options resetted."
|
69 |
msgstr ""
|
70 |
|
71 |
-
#: custom-field-template/custom-field-template.php:
|
72 |
msgid "Options deleted."
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: custom-field-template/custom-field-template.php:
|
76 |
-
#: custom-field-template/custom-field-template.php:
|
77 |
-
#: custom-field-template/custom-field-template.php:
|
78 |
-
#: custom-field-template/custom-field-template.php:
|
79 |
-
#: custom-field-template/custom-field-template.php:
|
80 |
-
#: custom-field-template/custom-field-template.php:
|
81 |
-
#: custom-field-template/custom-field-template.php:
|
82 |
-
#: custom-field-template/custom-field-template.php:
|
83 |
-
#: custom-field-template/custom-field-template.php:
|
84 |
-
#: custom-field-template/custom-field-template.php:
|
85 |
-
#: custom-field-template/custom-field-template.php:
|
86 |
-
#: custom-field-template/custom-field-template.php:
|
87 |
-
#: custom-field-template/custom-field-template.php:
|
88 |
msgid "Click to toggle"
|
89 |
msgstr ""
|
90 |
|
91 |
-
#: custom-field-template/custom-field-template.php:
|
92 |
msgid "Custom Field Template Options"
|
93 |
msgstr ""
|
94 |
|
95 |
-
#: custom-field-template/custom-field-template.php:
|
96 |
msgid "Template Title"
|
97 |
msgstr ""
|
98 |
|
99 |
-
#: custom-field-template/custom-field-template.php:
|
100 |
msgid "Template Instruction"
|
101 |
msgstr ""
|
102 |
|
103 |
-
#: custom-field-template/custom-field-template.php:
|
104 |
-
#: custom-field-template/custom-field-template.php:
|
105 |
msgid "Post Type"
|
106 |
msgstr ""
|
107 |
|
108 |
-
#: custom-field-template/custom-field-template.php:
|
109 |
-
#: custom-field-template/custom-field-template.php:
|
110 |
msgid "Both"
|
111 |
msgstr ""
|
112 |
|
113 |
-
#: custom-field-template/custom-field-template.php:
|
114 |
-
#: custom-field-template/custom-field-template.php:
|
115 |
msgid "Post"
|
116 |
msgstr ""
|
117 |
|
118 |
-
#: custom-field-template/custom-field-template.php:
|
119 |
-
#: custom-field-template/custom-field-template.php:
|
120 |
msgid "Page"
|
121 |
msgstr ""
|
122 |
|
123 |
-
#: custom-field-template/custom-field-template.php:
|
124 |
msgid "Post ID (comma-deliminated)"
|
125 |
msgstr ""
|
126 |
|
127 |
-
#: custom-field-template/custom-field-template.php:
|
128 |
-
#: custom-field-template/custom-field-template.php:
|
129 |
msgid "Category ID (comma-deliminated)"
|
130 |
msgstr ""
|
131 |
|
132 |
-
#: custom-field-template/custom-field-template.php:
|
133 |
msgid "Page Template file name(s) (comma-deliminated)"
|
134 |
msgstr ""
|
135 |
|
136 |
-
#: custom-field-template/custom-field-template.php:
|
137 |
msgid "Template Content"
|
138 |
msgstr ""
|
139 |
|
140 |
-
#: custom-field-template/custom-field-template.php:
|
141 |
msgid "In case that you would like to insert multiple images at once in use of the custom field media buttons"
|
142 |
msgstr ""
|
143 |
|
144 |
-
#: custom-field-template/custom-field-template.php:
|
145 |
msgid "Use multiple image inset"
|
146 |
msgstr ""
|
147 |
|
148 |
-
#: custom-field-template/custom-field-template.php:
|
149 |
msgid "Caution:"
|
150 |
msgstr ""
|
151 |
|
152 |
-
#: custom-field-template/custom-field-template.php:
|
153 |
msgid "You need to edit `wp-admin/includes/media.php`. Delete or comment out the code in the function media_send_to_editor."
|
154 |
msgstr ""
|
155 |
|
156 |
-
#: custom-field-template/custom-field-template.php:
|
157 |
msgid "In case that you would like to replace custom keys by labels if `label` is set"
|
158 |
msgstr ""
|
159 |
|
160 |
-
#: custom-field-template/custom-field-template.php:
|
161 |
msgid "Use labels in place of custom keys"
|
162 |
msgstr ""
|
163 |
|
164 |
-
#: custom-field-template/custom-field-template.php:
|
165 |
msgid "In case that you would like to add p and br tags in textareas automatically"
|
166 |
msgstr ""
|
167 |
|
168 |
-
#: custom-field-template/custom-field-template.php:
|
169 |
msgid "Use wpautop function"
|
170 |
msgstr ""
|
171 |
|
172 |
-
#: custom-field-template/custom-field-template.php:
|
173 |
msgid "In case that you would like to save values automatically in switching templates"
|
174 |
msgstr ""
|
175 |
|
176 |
-
#: custom-field-template/custom-field-template.php:
|
177 |
msgid "Use the auto save in switching templates"
|
178 |
msgstr ""
|
179 |
|
180 |
-
#: custom-field-template/custom-field-template.php:
|
181 |
msgid "In case that you would like to forbid to use the default custom fields."
|
182 |
msgstr ""
|
183 |
|
184 |
-
#: custom-field-template/custom-field-template.php:
|
185 |
msgid "Disable the default custom fields"
|
186 |
msgstr ""
|
187 |
|
188 |
-
#: custom-field-template/custom-field-template.php:
|
189 |
msgid "In case that you would like to forbid to use the quick edit."
|
190 |
msgstr ""
|
191 |
|
192 |
-
#: custom-field-template/custom-field-template.php:
|
193 |
msgid "Disable the quick edit"
|
194 |
msgstr ""
|
195 |
|
196 |
-
#: custom-field-template/custom-field-template.php:
|
197 |
msgid "In case that you would like to forbid to display the custom field column on the edit post list page."
|
198 |
msgstr ""
|
199 |
|
200 |
-
#: custom-field-template/custom-field-template.php:
|
201 |
msgid "Disable the custom field column (The quick edit also does not work.)"
|
202 |
msgstr ""
|
203 |
|
204 |
-
#: custom-field-template/custom-field-template.php:
|
205 |
msgid "In case that you would like to replace the box title with the template title."
|
206 |
msgstr ""
|
207 |
|
208 |
-
#: custom-field-template/custom-field-template.php:
|
209 |
msgid "Replace the box title"
|
210 |
msgstr ""
|
211 |
|
212 |
-
#: custom-field-template/custom-field-template.php:
|
213 |
msgid "In case that you would like to use the shortcode in the widget."
|
214 |
msgstr ""
|
215 |
|
216 |
-
#: custom-field-template/custom-field-template.php:
|
217 |
msgid "Use the shortcode in the widget"
|
218 |
msgstr ""
|
219 |
|
220 |
-
#: custom-field-template/custom-field-template.php:
|
221 |
msgid "In case that you would like to use the shortcode in the excerpt."
|
222 |
msgstr ""
|
223 |
|
224 |
-
#: custom-field-template/custom-field-template.php:
|
225 |
msgid "Use the shortcode in the excerpt"
|
226 |
msgstr ""
|
227 |
|
228 |
-
#: custom-field-template/custom-field-template.php:
|
229 |
-
#: custom-field-template/custom-field-template.php:
|
230 |
-
#: custom-field-template/custom-field-template.php:
|
231 |
-
#: custom-field-template/custom-field-template.php:
|
232 |
-
#: custom-field-template/custom-field-template.php:
|
233 |
msgid "Update Options »"
|
234 |
msgstr ""
|
235 |
|
236 |
-
#: custom-field-template/custom-field-template.php:
|
237 |
msgid "ADMIN CSS"
|
238 |
msgstr ""
|
239 |
|
240 |
-
#: custom-field-template/custom-field-template.php:
|
241 |
msgid "[cft] and [cftsearch] Shortcode Format"
|
242 |
msgstr ""
|
243 |
|
244 |
-
#: custom-field-template/custom-field-template.php:
|
245 |
msgid "For [cft], [key] will be converted into the value of [key]."
|
246 |
msgstr ""
|
247 |
|
248 |
-
#: custom-field-template/custom-field-template.php:
|
249 |
msgid "For [cftsearch], [key] will be converted into the input field."
|
250 |
msgstr ""
|
251 |
|
252 |
-
#: custom-field-template/custom-field-template.php:
|
253 |
-
#: custom-field-template/custom-field-template.php:
|
254 |
msgid "Use PHP"
|
255 |
msgstr ""
|
256 |
|
257 |
-
#: custom-field-template/custom-field-template.php:
|
258 |
msgid "PHP CODE (Experimental Option)"
|
259 |
msgstr ""
|
260 |
|
261 |
-
#: custom-field-template/custom-field-template.php:
|
262 |
msgid "Are you sure to save PHP codes? Please do it at your own risk."
|
263 |
msgstr ""
|
264 |
|
265 |
-
#: custom-field-template/custom-field-template.php:
|
266 |
msgid "For `text` and `textarea`, you must set $value as an string."
|
267 |
msgstr ""
|
268 |
|
269 |
-
#: custom-field-template/custom-field-template.php:
|
270 |
msgid "For `checkbox`, `radio`, and `select`, you must set $values as an array."
|
271 |
msgstr ""
|
272 |
|
273 |
-
#: custom-field-template/custom-field-template.php:
|
274 |
msgid "Auto Hook of `the_content()` (Experimental Option)"
|
275 |
msgstr ""
|
276 |
|
277 |
-
#: custom-field-template/custom-field-template.php:
|
278 |
msgid "Position"
|
279 |
msgstr ""
|
280 |
|
281 |
-
#: custom-field-template/custom-field-template.php:
|
282 |
msgid "Before the conetnt"
|
283 |
msgstr ""
|
284 |
|
285 |
-
#: custom-field-template/custom-field-template.php:
|
286 |
msgid "After the conetnt"
|
287 |
msgstr ""
|
288 |
|
289 |
-
#: custom-field-template/custom-field-template.php:
|
290 |
#, php-format
|
291 |
msgid "Inside the conetnt ([cfthook hook=%d])"
|
292 |
msgstr ""
|
293 |
|
294 |
-
#: custom-field-template/custom-field-template.php:
|
295 |
msgid "Content"
|
296 |
msgstr ""
|
297 |
|
298 |
-
#: custom-field-template/custom-field-template.php:
|
299 |
msgid "Apply to feeds"
|
300 |
msgstr ""
|
301 |
|
302 |
-
#: custom-field-template/custom-field-template.php:
|
303 |
msgid "Rebuild Value Counts"
|
304 |
msgstr ""
|
305 |
|
306 |
-
#: custom-field-template/custom-field-template.php:
|
307 |
msgid "Are you sure to rebuild all value counts?"
|
308 |
msgstr ""
|
309 |
|
310 |
-
#: custom-field-template/custom-field-template.php:
|
311 |
msgid "Value Counts are used for temporarily saving how many values in each key. Set `valueCount = true` into fields."
|
312 |
msgstr ""
|
313 |
|
314 |
-
#: custom-field-template/custom-field-template.php:
|
315 |
msgid "Rebuild Value Counts »"
|
316 |
msgstr ""
|
317 |
|
318 |
-
#: custom-field-template/custom-field-template.php:
|
319 |
msgid "Rebuild Tags"
|
320 |
msgstr ""
|
321 |
|
322 |
-
#: custom-field-template/custom-field-template.php:
|
323 |
msgid "Are you sure to rebuild tags?"
|
324 |
msgstr ""
|
325 |
|
326 |
-
#: custom-field-template/custom-field-template.php:
|
327 |
msgid "Rebuild Tags »"
|
328 |
msgstr ""
|
329 |
|
330 |
-
#: custom-field-template/custom-field-template.php:
|
331 |
msgid "Option List"
|
332 |
msgstr ""
|
333 |
|
334 |
-
#: custom-field-template/custom-field-template.php:
|
335 |
msgid "Export Options"
|
336 |
msgstr ""
|
337 |
|
338 |
-
#: custom-field-template/custom-field-template.php:
|
339 |
msgid "Export Options »"
|
340 |
msgstr ""
|
341 |
|
342 |
-
#: custom-field-template/custom-field-template.php:
|
343 |
msgid "Import Options"
|
344 |
msgstr ""
|
345 |
|
346 |
-
#: custom-field-template/custom-field-template.php:
|
347 |
msgid "Are you sure to import options? Options you set will be overwritten."
|
348 |
msgstr ""
|
349 |
|
350 |
-
#: custom-field-template/custom-field-template.php:
|
351 |
msgid "Import Options »"
|
352 |
msgstr ""
|
353 |
|
354 |
-
#: custom-field-template/custom-field-template.php:
|
355 |
msgid "Reset Options"
|
356 |
msgstr ""
|
357 |
|
358 |
-
#: custom-field-template/custom-field-template.php:
|
359 |
msgid "Are you sure to reset options? Options you set will be reset to the default settings."
|
360 |
msgstr ""
|
361 |
|
362 |
-
#: custom-field-template/custom-field-template.php:
|
363 |
msgid "Reset Options »"
|
364 |
msgstr ""
|
365 |
|
366 |
-
#: custom-field-template/custom-field-template.php:
|
367 |
msgid "Delete Options"
|
368 |
msgstr ""
|
369 |
|
370 |
-
#: custom-field-template/custom-field-template.php:
|
371 |
msgid "Are you sure to delete options? Options you set will be deleted."
|
372 |
msgstr ""
|
373 |
|
374 |
-
#: custom-field-template/custom-field-template.php:
|
375 |
msgid "Delete Options »"
|
376 |
msgstr ""
|
377 |
|
378 |
-
#: custom-field-template/custom-field-template.php:
|
379 |
msgid "Donation"
|
380 |
msgstr ""
|
381 |
|
382 |
-
#: custom-field-template/custom-field-template.php:
|
383 |
msgid "If you liked this plugin, please make a donation via paypal! Any amount is welcome. Your support is much appreciated."
|
384 |
msgstr ""
|
385 |
|
386 |
-
#: custom-field-template/custom-field-template.php:
|
387 |
-
#: custom-field-template/custom-field-template.php:
|
388 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
389 |
msgid "Add New"
|
390 |
msgstr ""
|
391 |
|
392 |
-
#: custom-field-template/custom-field-template.php:
|
393 |
msgid "Clear"
|
394 |
msgstr ""
|
395 |
|
396 |
-
#: custom-field-template/custom-field-template.php:
|
397 |
msgid "Select"
|
398 |
msgstr ""
|
399 |
|
400 |
-
#: custom-field-template/custom-field-template.php:
|
401 |
-
msgid "Add Media"
|
402 |
-
msgstr ""
|
403 |
-
|
404 |
-
#: custom-field-template/custom-field-template.php:1500
|
405 |
msgid "Add an Image"
|
406 |
msgstr ""
|
407 |
|
408 |
-
#: custom-field-template/custom-field-template.php:
|
409 |
msgid "Add Video"
|
410 |
msgstr ""
|
411 |
|
412 |
-
#: custom-field-template/custom-field-template.php:
|
413 |
msgid "Add Audio"
|
414 |
msgstr ""
|
415 |
|
416 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
|
|
|
|
417 |
msgid "Toggle"
|
418 |
msgstr ""
|
419 |
|
420 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
|
|
|
|
|
|
421 |
msgid "Initialize"
|
422 |
msgstr ""
|
423 |
|
424 |
-
#: custom-field-template/custom-field-template.php:
|
425 |
msgid "Are you sure to reset current values? Default values will be loaded."
|
426 |
msgstr ""
|
427 |
|
428 |
-
#: custom-field-template/custom-field-template.php:
|
429 |
msgid "Save"
|
430 |
msgstr ""
|
431 |
|
432 |
-
#: custom-field-template/custom-field-template.php:
|
433 |
msgid "Search »"
|
434 |
msgstr ""
|
435 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Custom Field Template\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2009-10-16 01:16+0900\n"
|
6 |
+
"PO-Revision-Date: 2009-10-16 01:16+0900\n"
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
15 |
|
16 |
#: custom-field-template/custom-field-template.php:125
|
17 |
#: custom-field-template/custom-field-template.php:126
|
18 |
+
#: custom-field-template/custom-field-template.php:543
|
19 |
+
#: custom-field-template/custom-field-template.php:747
|
20 |
+
#: custom-field-template/custom-field-template.php:1901
|
21 |
+
#: custom-field-template/custom-field-template.php:2029
|
22 |
msgid "Custom Field Template"
|
23 |
msgstr ""
|
24 |
|
25 |
+
#: custom-field-template/custom-field-template.php:236
|
26 |
+
#: custom-field-template/custom-field-template.php:2202
|
27 |
msgid "Load"
|
28 |
msgstr ""
|
29 |
|
30 |
+
#: custom-field-template/custom-field-template.php:392
|
31 |
msgid "read more"
|
32 |
msgstr ""
|
33 |
|
34 |
+
#: custom-field-template/custom-field-template.php:410
|
35 |
+
#: custom-field-template/custom-field-template.php:420
|
36 |
msgid "Custom Fields"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: custom-field-template/custom-field-template.php:450
|
40 |
msgid "Settings"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: custom-field-template/custom-field-template.php:470
|
44 |
msgid "Default Template"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: custom-field-template/custom-field-template.php:672
|
48 |
+
#: custom-field-template/custom-field-template.php:676
|
49 |
+
#: custom-field-template/custom-field-template.php:688
|
50 |
+
#: custom-field-template/custom-field-template.php:696
|
51 |
+
#: custom-field-template/custom-field-template.php:712
|
52 |
msgid "Options updated."
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: custom-field-template/custom-field-template.php:716
|
56 |
msgid "Value Counts rebuilt."
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: custom-field-template/custom-field-template.php:719
|
60 |
msgid "Tags rebuilt."
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: custom-field-template/custom-field-template.php:728
|
64 |
msgid "Options imported."
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: custom-field-template/custom-field-template.php:735
|
68 |
msgid "Options resetted."
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: custom-field-template/custom-field-template.php:739
|
72 |
msgid "Options deleted."
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: custom-field-template/custom-field-template.php:753
|
76 |
+
#: custom-field-template/custom-field-template.php:844
|
77 |
+
#: custom-field-template/custom-field-template.php:863
|
78 |
+
#: custom-field-template/custom-field-template.php:892
|
79 |
+
#: custom-field-template/custom-field-template.php:923
|
80 |
+
#: custom-field-template/custom-field-template.php:962
|
81 |
+
#: custom-field-template/custom-field-template.php:983
|
82 |
+
#: custom-field-template/custom-field-template.php:1000
|
83 |
+
#: custom-field-template/custom-field-template.php:1162
|
84 |
+
#: custom-field-template/custom-field-template.php:1178
|
85 |
+
#: custom-field-template/custom-field-template.php:1194
|
86 |
+
#: custom-field-template/custom-field-template.php:1210
|
87 |
+
#: custom-field-template/custom-field-template.php:1226
|
88 |
msgid "Click to toggle"
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: custom-field-template/custom-field-template.php:754
|
92 |
msgid "Custom Field Template Options"
|
93 |
msgstr ""
|
94 |
|
95 |
+
#: custom-field-template/custom-field-template.php:764
|
96 |
msgid "Template Title"
|
97 |
msgstr ""
|
98 |
|
99 |
+
#: custom-field-template/custom-field-template.php:766
|
100 |
msgid "Template Instruction"
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: custom-field-template/custom-field-template.php:768
|
104 |
+
#: custom-field-template/custom-field-template.php:939
|
105 |
msgid "Post Type"
|
106 |
msgstr ""
|
107 |
|
108 |
+
#: custom-field-template/custom-field-template.php:770
|
109 |
+
#: custom-field-template/custom-field-template.php:940
|
110 |
msgid "Both"
|
111 |
msgstr ""
|
112 |
|
113 |
+
#: custom-field-template/custom-field-template.php:771
|
114 |
+
#: custom-field-template/custom-field-template.php:941
|
115 |
msgid "Post"
|
116 |
msgstr ""
|
117 |
|
118 |
+
#: custom-field-template/custom-field-template.php:772
|
119 |
+
#: custom-field-template/custom-field-template.php:942
|
120 |
msgid "Page"
|
121 |
msgstr ""
|
122 |
|
123 |
+
#: custom-field-template/custom-field-template.php:773
|
124 |
msgid "Post ID (comma-deliminated)"
|
125 |
msgstr ""
|
126 |
|
127 |
+
#: custom-field-template/custom-field-template.php:775
|
128 |
+
#: custom-field-template/custom-field-template.php:943
|
129 |
msgid "Category ID (comma-deliminated)"
|
130 |
msgstr ""
|
131 |
|
132 |
+
#: custom-field-template/custom-field-template.php:777
|
133 |
msgid "Page Template file name(s) (comma-deliminated)"
|
134 |
msgstr ""
|
135 |
|
136 |
+
#: custom-field-template/custom-field-template.php:779
|
137 |
msgid "Template Content"
|
138 |
msgstr ""
|
139 |
|
140 |
+
#: custom-field-template/custom-field-template.php:786
|
141 |
msgid "In case that you would like to insert multiple images at once in use of the custom field media buttons"
|
142 |
msgstr ""
|
143 |
|
144 |
+
#: custom-field-template/custom-field-template.php:787
|
145 |
msgid "Use multiple image inset"
|
146 |
msgstr ""
|
147 |
|
148 |
+
#: custom-field-template/custom-field-template.php:787
|
149 |
msgid "Caution:"
|
150 |
msgstr ""
|
151 |
|
152 |
+
#: custom-field-template/custom-field-template.php:787
|
153 |
msgid "You need to edit `wp-admin/includes/media.php`. Delete or comment out the code in the function media_send_to_editor."
|
154 |
msgstr ""
|
155 |
|
156 |
+
#: custom-field-template/custom-field-template.php:791
|
157 |
msgid "In case that you would like to replace custom keys by labels if `label` is set"
|
158 |
msgstr ""
|
159 |
|
160 |
+
#: custom-field-template/custom-field-template.php:792
|
161 |
msgid "Use labels in place of custom keys"
|
162 |
msgstr ""
|
163 |
|
164 |
+
#: custom-field-template/custom-field-template.php:795
|
165 |
msgid "In case that you would like to add p and br tags in textareas automatically"
|
166 |
msgstr ""
|
167 |
|
168 |
+
#: custom-field-template/custom-field-template.php:796
|
169 |
msgid "Use wpautop function"
|
170 |
msgstr ""
|
171 |
|
172 |
+
#: custom-field-template/custom-field-template.php:800
|
173 |
msgid "In case that you would like to save values automatically in switching templates"
|
174 |
msgstr ""
|
175 |
|
176 |
+
#: custom-field-template/custom-field-template.php:801
|
177 |
msgid "Use the auto save in switching templates"
|
178 |
msgstr ""
|
179 |
|
180 |
+
#: custom-field-template/custom-field-template.php:805
|
181 |
msgid "In case that you would like to forbid to use the default custom fields."
|
182 |
msgstr ""
|
183 |
|
184 |
+
#: custom-field-template/custom-field-template.php:806
|
185 |
msgid "Disable the default custom fields"
|
186 |
msgstr ""
|
187 |
|
188 |
+
#: custom-field-template/custom-field-template.php:810
|
189 |
msgid "In case that you would like to forbid to use the quick edit."
|
190 |
msgstr ""
|
191 |
|
192 |
+
#: custom-field-template/custom-field-template.php:811
|
193 |
msgid "Disable the quick edit"
|
194 |
msgstr ""
|
195 |
|
196 |
+
#: custom-field-template/custom-field-template.php:815
|
197 |
msgid "In case that you would like to forbid to display the custom field column on the edit post list page."
|
198 |
msgstr ""
|
199 |
|
200 |
+
#: custom-field-template/custom-field-template.php:816
|
201 |
msgid "Disable the custom field column (The quick edit also does not work.)"
|
202 |
msgstr ""
|
203 |
|
204 |
+
#: custom-field-template/custom-field-template.php:820
|
205 |
msgid "In case that you would like to replace the box title with the template title."
|
206 |
msgstr ""
|
207 |
|
208 |
+
#: custom-field-template/custom-field-template.php:821
|
209 |
msgid "Replace the box title"
|
210 |
msgstr ""
|
211 |
|
212 |
+
#: custom-field-template/custom-field-template.php:825
|
213 |
msgid "In case that you would like to use the shortcode in the widget."
|
214 |
msgstr ""
|
215 |
|
216 |
+
#: custom-field-template/custom-field-template.php:826
|
217 |
msgid "Use the shortcode in the widget"
|
218 |
msgstr ""
|
219 |
|
220 |
+
#: custom-field-template/custom-field-template.php:830
|
221 |
msgid "In case that you would like to use the shortcode in the excerpt."
|
222 |
msgstr ""
|
223 |
|
224 |
+
#: custom-field-template/custom-field-template.php:831
|
225 |
msgid "Use the shortcode in the excerpt"
|
226 |
msgstr ""
|
227 |
|
228 |
+
#: custom-field-template/custom-field-template.php:835
|
229 |
+
#: custom-field-template/custom-field-template.php:854
|
230 |
+
#: custom-field-template/custom-field-template.php:883
|
231 |
+
#: custom-field-template/custom-field-template.php:914
|
232 |
+
#: custom-field-template/custom-field-template.php:953
|
233 |
msgid "Update Options »"
|
234 |
msgstr ""
|
235 |
|
236 |
+
#: custom-field-template/custom-field-template.php:845
|
237 |
msgid "ADMIN CSS"
|
238 |
msgstr ""
|
239 |
|
240 |
+
#: custom-field-template/custom-field-template.php:864
|
241 |
msgid "[cft] and [cftsearch] Shortcode Format"
|
242 |
msgstr ""
|
243 |
|
244 |
+
#: custom-field-template/custom-field-template.php:867
|
245 |
msgid "For [cft], [key] will be converted into the value of [key]."
|
246 |
msgstr ""
|
247 |
|
248 |
+
#: custom-field-template/custom-field-template.php:868
|
249 |
msgid "For [cftsearch], [key] will be converted into the input field."
|
250 |
msgstr ""
|
251 |
|
252 |
+
#: custom-field-template/custom-field-template.php:877
|
253 |
+
#: custom-field-template/custom-field-template.php:946
|
254 |
msgid "Use PHP"
|
255 |
msgstr ""
|
256 |
|
257 |
+
#: custom-field-template/custom-field-template.php:893
|
258 |
msgid "PHP CODE (Experimental Option)"
|
259 |
msgstr ""
|
260 |
|
261 |
+
#: custom-field-template/custom-field-template.php:895
|
262 |
msgid "Are you sure to save PHP codes? Please do it at your own risk."
|
263 |
msgstr ""
|
264 |
|
265 |
+
#: custom-field-template/custom-field-template.php:896
|
266 |
msgid "For `text` and `textarea`, you must set $value as an string."
|
267 |
msgstr ""
|
268 |
|
269 |
+
#: custom-field-template/custom-field-template.php:898
|
270 |
msgid "For `checkbox`, `radio`, and `select`, you must set $values as an array."
|
271 |
msgstr ""
|
272 |
|
273 |
+
#: custom-field-template/custom-field-template.php:924
|
274 |
msgid "Auto Hook of `the_content()` (Experimental Option)"
|
275 |
msgstr ""
|
276 |
|
277 |
+
#: custom-field-template/custom-field-template.php:934
|
278 |
msgid "Position"
|
279 |
msgstr ""
|
280 |
|
281 |
+
#: custom-field-template/custom-field-template.php:935
|
282 |
msgid "Before the conetnt"
|
283 |
msgstr ""
|
284 |
|
285 |
+
#: custom-field-template/custom-field-template.php:936
|
286 |
msgid "After the conetnt"
|
287 |
msgstr ""
|
288 |
|
289 |
+
#: custom-field-template/custom-field-template.php:937
|
290 |
#, php-format
|
291 |
msgid "Inside the conetnt ([cfthook hook=%d])"
|
292 |
msgstr ""
|
293 |
|
294 |
+
#: custom-field-template/custom-field-template.php:945
|
295 |
msgid "Content"
|
296 |
msgstr ""
|
297 |
|
298 |
+
#: custom-field-template/custom-field-template.php:947
|
299 |
msgid "Apply to feeds"
|
300 |
msgstr ""
|
301 |
|
302 |
+
#: custom-field-template/custom-field-template.php:963
|
303 |
msgid "Rebuild Value Counts"
|
304 |
msgstr ""
|
305 |
|
306 |
+
#: custom-field-template/custom-field-template.php:965
|
307 |
msgid "Are you sure to rebuild all value counts?"
|
308 |
msgstr ""
|
309 |
|
310 |
+
#: custom-field-template/custom-field-template.php:969
|
311 |
msgid "Value Counts are used for temporarily saving how many values in each key. Set `valueCount = true` into fields."
|
312 |
msgstr ""
|
313 |
|
314 |
+
#: custom-field-template/custom-field-template.php:973
|
315 |
msgid "Rebuild Value Counts »"
|
316 |
msgstr ""
|
317 |
|
318 |
+
#: custom-field-template/custom-field-template.php:984
|
319 |
msgid "Rebuild Tags"
|
320 |
msgstr ""
|
321 |
|
322 |
+
#: custom-field-template/custom-field-template.php:986
|
323 |
msgid "Are you sure to rebuild tags?"
|
324 |
msgstr ""
|
325 |
|
326 |
+
#: custom-field-template/custom-field-template.php:990
|
327 |
msgid "Rebuild Tags »"
|
328 |
msgstr ""
|
329 |
|
330 |
+
#: custom-field-template/custom-field-template.php:1001
|
331 |
msgid "Option List"
|
332 |
msgstr ""
|
333 |
|
334 |
+
#: custom-field-template/custom-field-template.php:1163
|
335 |
msgid "Export Options"
|
336 |
msgstr ""
|
337 |
|
338 |
+
#: custom-field-template/custom-field-template.php:1169
|
339 |
msgid "Export Options »"
|
340 |
msgstr ""
|
341 |
|
342 |
+
#: custom-field-template/custom-field-template.php:1179
|
343 |
msgid "Import Options"
|
344 |
msgstr ""
|
345 |
|
346 |
+
#: custom-field-template/custom-field-template.php:1181
|
347 |
msgid "Are you sure to import options? Options you set will be overwritten."
|
348 |
msgstr ""
|
349 |
|
350 |
+
#: custom-field-template/custom-field-template.php:1185
|
351 |
msgid "Import Options »"
|
352 |
msgstr ""
|
353 |
|
354 |
+
#: custom-field-template/custom-field-template.php:1195
|
355 |
msgid "Reset Options"
|
356 |
msgstr ""
|
357 |
|
358 |
+
#: custom-field-template/custom-field-template.php:1197
|
359 |
msgid "Are you sure to reset options? Options you set will be reset to the default settings."
|
360 |
msgstr ""
|
361 |
|
362 |
+
#: custom-field-template/custom-field-template.php:1201
|
363 |
msgid "Reset Options »"
|
364 |
msgstr ""
|
365 |
|
366 |
+
#: custom-field-template/custom-field-template.php:1211
|
367 |
msgid "Delete Options"
|
368 |
msgstr ""
|
369 |
|
370 |
+
#: custom-field-template/custom-field-template.php:1213
|
371 |
msgid "Are you sure to delete options? Options you set will be deleted."
|
372 |
msgstr ""
|
373 |
|
374 |
+
#: custom-field-template/custom-field-template.php:1217
|
375 |
msgid "Delete Options »"
|
376 |
msgstr ""
|
377 |
|
378 |
+
#: custom-field-template/custom-field-template.php:1227
|
379 |
msgid "Donation"
|
380 |
msgstr ""
|
381 |
|
382 |
+
#: custom-field-template/custom-field-template.php:1229
|
383 |
msgid "If you liked this plugin, please make a donation via paypal! Any amount is welcome. Your support is much appreciated."
|
384 |
msgstr ""
|
385 |
|
386 |
+
#: custom-field-template/custom-field-template.php:1326
|
387 |
+
#: custom-field-template/custom-field-template.php:1447
|
388 |
+
#: custom-field-template/custom-field-template.php:1527
|
389 |
+
#: custom-field-template/custom-field-template.php:1706
|
390 |
+
#: custom-field-template/custom-field-template.php:1826
|
391 |
msgid "Add New"
|
392 |
msgstr ""
|
393 |
|
394 |
+
#: custom-field-template/custom-field-template.php:1457
|
395 |
msgid "Clear"
|
396 |
msgstr ""
|
397 |
|
398 |
+
#: custom-field-template/custom-field-template.php:1543
|
399 |
msgid "Select"
|
400 |
msgstr ""
|
401 |
|
402 |
+
#: custom-field-template/custom-field-template.php:1608
|
|
|
|
|
|
|
|
|
403 |
msgid "Add an Image"
|
404 |
msgstr ""
|
405 |
|
406 |
+
#: custom-field-template/custom-field-template.php:1613
|
407 |
msgid "Add Video"
|
408 |
msgstr ""
|
409 |
|
410 |
+
#: custom-field-template/custom-field-template.php:1618
|
411 |
msgid "Add Audio"
|
412 |
msgstr ""
|
413 |
|
414 |
+
#: custom-field-template/custom-field-template.php:1622
|
415 |
+
msgid "Add Media"
|
416 |
+
msgstr ""
|
417 |
+
|
418 |
+
#: custom-field-template/custom-field-template.php:1629
|
419 |
msgid "Toggle"
|
420 |
msgstr ""
|
421 |
|
422 |
+
#: custom-field-template/custom-field-template.php:1726
|
423 |
+
#: custom-field-template/custom-field-template.php:1828
|
424 |
+
msgid "Delete"
|
425 |
+
msgstr ""
|
426 |
+
|
427 |
+
#: custom-field-template/custom-field-template.php:2076
|
428 |
msgid "Initialize"
|
429 |
msgstr ""
|
430 |
|
431 |
+
#: custom-field-template/custom-field-template.php:2077
|
432 |
msgid "Are you sure to reset current values? Default values will be loaded."
|
433 |
msgstr ""
|
434 |
|
435 |
+
#: custom-field-template/custom-field-template.php:2080
|
436 |
msgid "Save"
|
437 |
msgstr ""
|
438 |
|
439 |
+
#: custom-field-template/custom-field-template.php:2673
|
440 |
msgid "Search »"
|
441 |
msgstr ""
|
442 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wpgogo.com/development/custom-field-template.html
|
|
4 |
Tags: custom, fields, field, template, meta, custom field, custom fields, custom field template
|
5 |
Requires at least: 2.1
|
6 |
Tested up to: 2.8.4
|
7 |
-
Stable tag: 1.
|
8 |
|
9 |
This plugin adds the default custom fields on the Write Post/Page.
|
10 |
|
@@ -57,6 +57,8 @@ The Custom Field Template plugin adds the default custom fields on the Write Pos
|
|
57 |
* Adds the attribute of `shortCode` in order to output the shortcode filtered values. (`shortCode = true`)
|
58 |
* Adds the attribute of `outputNone` in case there is no data to output. (`outputNone = No Data`)
|
59 |
* Adds the attribute of `singleList` attribute in order to output with `<ul><li>` if the value is single. ex) `singleList = true`
|
|
|
|
|
60 |
|
61 |
Localization
|
62 |
|
@@ -64,10 +66,12 @@ Localization
|
|
64 |
* German (de_DE) - F J Kaiser
|
65 |
* Spanish (es_ES) - [Dario Ferrer](http://www.darioferrer.com/)
|
66 |
* French (fr_FR) - Nicolas Lemoine
|
|
|
67 |
* Italian (it_IT) - [Gianni Diurno](http://gidibao.net/)
|
68 |
* Japanese (ja) - [Hiroaki Miyashita](http://wpgogo.com/)
|
69 |
* Russian (ru_RU) - [Sonika](http://www.sonika.ru/blog/)
|
70 |
* Turkish (tr_TR) - [Omer Faruk](http://ramerta.com/)
|
|
|
71 |
|
72 |
If you have translated into your language, please let me know.
|
73 |
|
@@ -94,6 +98,13 @@ See the default template and modify it.
|
|
94 |
|
95 |
== Changelog ==
|
96 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
= 1.3.8 =
|
98 |
* `readOnly` attribute. ex) `readOnly = true`
|
99 |
* `startDate` and `endDate` attributes for the date picker. ex) `startDate = '1970/01/01'` and `endDate = (new Date()).asString()`
|
4 |
Tags: custom, fields, field, template, meta, custom field, custom fields, custom field template
|
5 |
Requires at least: 2.1
|
6 |
Tested up to: 2.8.4
|
7 |
+
Stable tag: 1.4
|
8 |
|
9 |
This plugin adds the default custom fields on the Write Post/Page.
|
10 |
|
57 |
* Adds the attribute of `shortCode` in order to output the shortcode filtered values. (`shortCode = true`)
|
58 |
* Adds the attribute of `outputNone` in case there is no data to output. (`outputNone = No Data`)
|
59 |
* Adds the attribute of `singleList` attribute in order to output with `<ul><li>` if the value is single. ex) `singleList = true`
|
60 |
+
* Adds the file upload type. (`type = file`)
|
61 |
+
* Adds the fieldset type. (`type = fieldset_open`, `type = fieldset_close`)
|
62 |
|
63 |
Localization
|
64 |
|
66 |
* German (de_DE) - F J Kaiser
|
67 |
* Spanish (es_ES) - [Dario Ferrer](http://www.darioferrer.com/)
|
68 |
* French (fr_FR) - Nicolas Lemoine
|
69 |
+
* Hangarian (hu_HU) - [Balazs Kovacs](http://www.netpok.hu)
|
70 |
* Italian (it_IT) - [Gianni Diurno](http://gidibao.net/)
|
71 |
* Japanese (ja) - [Hiroaki Miyashita](http://wpgogo.com/)
|
72 |
* Russian (ru_RU) - [Sonika](http://www.sonika.ru/blog/)
|
73 |
* Turkish (tr_TR) - [Omer Faruk](http://ramerta.com/)
|
74 |
+
* Uzbek (uz_UZ) - [Alexandra Bolshova](http://www.comfi.com/)
|
75 |
|
76 |
If you have translated into your language, please let me know.
|
77 |
|
98 |
|
99 |
== Changelog ==
|
100 |
|
101 |
+
= 1.4 =
|
102 |
+
* `file` type in order to upload images. If you set `relation = true` with `type = file`, the image you upload will be related to the post you are editing. The image id will be saved as the meta value. You can use the `multiple = true` and `multipleButton = true`.
|
103 |
+
* The group functionality. The attributes between `type = fieldset_open` and `type = fieldset_close` will be enclosed in the fieldset. The key name of the `fieldset_open` and `fieldset_close` must be same. You can use `multipleButton = true` with `type = fieldset_open`. You can also use the `legend = blah` attribute.
|
104 |
+
* Revision of the interpretation of the template codes.
|
105 |
+
* Bugfix: loading templates in switching catgories.
|
106 |
+
* Hangarian and Uzbek.
|
107 |
+
|
108 |
= 1.3.8 =
|
109 |
* `readOnly` attribute. ex) `readOnly = true`
|
110 |
* `startDate` and `endDate` attributes for the date picker. ex) `startDate = '1970/01/01'` and `endDate = (new Date()).asString()`
|