Version Description
Download this release
Release Info
Developer | Hiroaki Miyashita |
Plugin | Custom Field Template |
Version | 1.0 |
Comparing to | |
See all releases |
Code changes from version 0.9.2 to 1.0
- custom-field-template-de_DE.mo +0 -0
- custom-field-template-de_DE.po +208 -0
- custom-field-template-ja.mo +0 -0
- custom-field-template-ja.po +137 -80
- custom-field-template-tr_TR.mo +0 -0
- custom-field-template-tr_TR.po +196 -0
- custom-field-template.php +455 -61
- custom-field-template.pot +130 -71
- readme.txt +10 -1
custom-field-template-de_DE.mo
ADDED
Binary file
|
custom-field-template-de_DE.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-01-18 12:27+0100\n"
|
7 |
+
"Last-Translator: Franz Josef Kaiser <24-7@gmx.net>\n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Poedit-Language: Japanese\n"
|
13 |
+
"X-Poedit-Country: JAPAN\n"
|
14 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
15 |
+
"X-Poedit-KeywordsList: __;_e;_c\n"
|
16 |
+
"X-Poedit-Basepath: ../\n"
|
17 |
+
"X-Poedit-SearchPath-0: custom-field-template\n"
|
18 |
+
|
19 |
+
#: custom-field-template/custom-field-template.php:83
|
20 |
+
#: custom-field-template/custom-field-template.php:84
|
21 |
+
#: custom-field-template/custom-field-template.php:178
|
22 |
+
#: custom-field-template/custom-field-template.php:235
|
23 |
+
#: custom-field-template/custom-field-template.php:824
|
24 |
+
msgid "Custom Field Template"
|
25 |
+
msgstr "Custom Field Template"
|
26 |
+
|
27 |
+
#: custom-field-template/custom-field-template.php:95
|
28 |
+
msgid "Settings"
|
29 |
+
msgstr "Einstellungen"
|
30 |
+
|
31 |
+
#: custom-field-template/custom-field-template.php:106
|
32 |
+
msgid "Default Template"
|
33 |
+
msgstr "Standardvorlage"
|
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 "Einstellungen aktualisiert"
|
41 |
+
|
42 |
+
#: custom-field-template/custom-field-template.php:223
|
43 |
+
msgid "Options resetted."
|
44 |
+
msgstr "Einstellungen auf Standard zurückgesetzt"
|
45 |
+
|
46 |
+
#: custom-field-template/custom-field-template.php:227
|
47 |
+
msgid "Options deleted."
|
48 |
+
msgstr "Einstellungen gelöscht"
|
49 |
+
|
50 |
+
#: custom-field-template/custom-field-template.php:241
|
51 |
+
msgid "Custom Field Template Options"
|
52 |
+
msgstr "Einstellungen für benutzerdefinierte Felder"
|
53 |
+
|
54 |
+
#: custom-field-template/custom-field-template.php:251
|
55 |
+
#, php-format
|
56 |
+
msgid "Template Title %d"
|
57 |
+
msgstr "Vorlagentitel %d"
|
58 |
+
|
59 |
+
#: custom-field-template/custom-field-template.php:253
|
60 |
+
#, php-format
|
61 |
+
msgid "Template Instruction %d"
|
62 |
+
msgstr "Notizen zur Vorlage %d"
|
63 |
+
|
64 |
+
#: custom-field-template/custom-field-template.php:255
|
65 |
+
#, php-format
|
66 |
+
msgid "Template Content %d"
|
67 |
+
msgstr "Vorlage %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 "Falls Sie mehrere Bilder auf einmal mit dem \"Medien hochladen\"-Button einfügen wollen"
|
72 |
+
|
73 |
+
# Deutsche Übersetzung: Franz Josef Kaiser.
|
74 |
+
#: custom-field-template/custom-field-template.php:263
|
75 |
+
msgid "Use multiple image inset"
|
76 |
+
msgstr "Verwenden von Mehrfachbildern"
|
77 |
+
|
78 |
+
#: custom-field-template/custom-field-template.php:263
|
79 |
+
msgid "Caution:"
|
80 |
+
msgstr "Hinweis:"
|
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 "Hierfür müssen Sie in der Datei `wp-admin/includes/media.php` öffnen und darin die Funktion 'media_send_to_editor' auskommentieren (/*Kommentar*/) oder löschen."
|
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 "Falls Sie (als Formularfeld Titel) benutzerdefinierte Schlüssel durch 'Labels' ersetzen wollen, falls ein 'label' (beim Format) gesetzt ist "
|
89 |
+
|
90 |
+
#: custom-field-template/custom-field-template.php:268
|
91 |
+
msgid "Use labels in place of custom keys"
|
92 |
+
msgstr "Anzeigen von `Labels`, statt benutzerdefinierten Schlüsseln."
|
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 "Falls Sie < p > (Text) und < br > (Zeilenumbruch) Html-Tags in (Formularfeldern vom Typ) `textarea` automatisch anfügen lassen wollen"
|
97 |
+
|
98 |
+
#: custom-field-template/custom-field-template.php:272
|
99 |
+
msgid "Use wpautop function"
|
100 |
+
msgstr "Verwende 'wpautop'-Funktion"
|
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 "Einstellungen aktualisieren »"
|
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 "zum Aufklappen klicken"
|
117 |
+
|
118 |
+
#: custom-field-template/custom-field-template.php:286
|
119 |
+
msgid "CSS"
|
120 |
+
msgstr "CSS (Darstellung im Admin-Bereich)"
|
121 |
+
|
122 |
+
#: custom-field-template/custom-field-template.php:305
|
123 |
+
msgid "[cft] Shortcode Format"
|
124 |
+
msgstr "[cft] Shortcode Format (Darstellung in Seite/Artikel)"
|
125 |
+
|
126 |
+
#: custom-field-template/custom-field-template.php:308
|
127 |
+
msgid "[key] will be converted into the value of [key]."
|
128 |
+
msgstr "Anm.: [key] wird in den Wert (value) [key] umgewandelt."
|
129 |
+
|
130 |
+
#: custom-field-template/custom-field-template.php:332
|
131 |
+
msgid "PHP CODE (Experimental Option)"
|
132 |
+
msgstr "PHP CODE (im Versuchstadium)"
|
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 "Sind Sie sich sicher, dass Sie Php Codes verwenden wollen? Sie sollten diese Funktion nur verwenden, wenn Sie genau wissen was Sie tun. - Anm.: Diese Funktion befindet sich im Versuchstadium."
|
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 "Diese Einstellung is nur für'radio'- & 'select'-Typen möglich. Sie müssen '$values' als 'array' setzen."
|
141 |
+
|
142 |
+
#: custom-field-template/custom-field-template.php:360
|
143 |
+
msgid "Option List"
|
144 |
+
msgstr "Liste der erlaubten Format-Einstellungen"
|
145 |
+
|
146 |
+
#: custom-field-template/custom-field-template.php:432
|
147 |
+
msgid "Reset Options"
|
148 |
+
msgstr "Einstellungen zurücksetzen"
|
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 "Sind Sie sicher, dass Sie die Einstellungen zurück setzen wollen? Die Einstellungen werden auf die Ursprungseinstellungen zurück gesetzt."
|
153 |
+
|
154 |
+
#: custom-field-template/custom-field-template.php:438
|
155 |
+
msgid "Unset Options »"
|
156 |
+
msgstr "Einstellungen zurücksetzen »"
|
157 |
+
|
158 |
+
#: custom-field-template/custom-field-template.php:448
|
159 |
+
msgid "Delete Options"
|
160 |
+
msgstr "Einstellungen löschen"
|
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 "Sind Sie sicher, dass Sie alle Einstellungen löschen wollen? Die von Ihnen vorgenommenen Einstellungen werden unwiderruflich gelöscht."
|
165 |
+
|
166 |
+
#: custom-field-template/custom-field-template.php:454
|
167 |
+
msgid "Delete Options »"
|
168 |
+
msgstr "Einstellungen löschen »"
|
169 |
+
|
170 |
+
#: custom-field-template/custom-field-template.php:597
|
171 |
+
msgid "Clear"
|
172 |
+
msgstr "Löschen"
|
173 |
+
|
174 |
+
#: custom-field-template/custom-field-template.php:712
|
175 |
+
msgid "Add Media"
|
176 |
+
msgstr "Medien hochladen"
|
177 |
+
|
178 |
+
#: custom-field-template/custom-field-template.php:714
|
179 |
+
msgid "Add an Image"
|
180 |
+
msgstr "Bild hochladen"
|
181 |
+
|
182 |
+
#: custom-field-template/custom-field-template.php:716
|
183 |
+
msgid "Add Video"
|
184 |
+
msgstr "Video hochladen"
|
185 |
+
|
186 |
+
#: custom-field-template/custom-field-template.php:718
|
187 |
+
msgid "Add Audio"
|
188 |
+
msgstr "Audio hochladen"
|
189 |
+
|
190 |
+
#: custom-field-template/custom-field-template.php:729
|
191 |
+
msgid "Toggle"
|
192 |
+
msgstr "Aufklappen"
|
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-01-14
|
6 |
-
"PO-Revision-Date: 2009-01-14
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -16,192 +16,249 @@ msgstr ""
|
|
16 |
"X-Poedit-Basepath: ../\n"
|
17 |
"X-Poedit-SearchPath-0: custom-field-template\n"
|
18 |
|
19 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
msgid "read more"
|
21 |
msgstr "続きを表示"
|
22 |
|
23 |
-
#: custom-field-template/custom-field-template.php:
|
24 |
-
|
25 |
-
msgstr "クイック編集"
|
26 |
-
|
27 |
-
#: custom-field-template/custom-field-template.php:88
|
28 |
msgid "Custom Fields"
|
29 |
msgstr "カスタムフィールド"
|
30 |
|
31 |
-
#: custom-field-template/custom-field-template.php:
|
32 |
-
#: custom-field-template/custom-field-template.php:148
|
33 |
-
#: custom-field-template/custom-field-template.php:243
|
34 |
-
#: custom-field-template/custom-field-template.php:300
|
35 |
-
#: custom-field-template/custom-field-template.php:892
|
36 |
-
msgid "Custom Field Template"
|
37 |
-
msgstr "カスタムフィールドテンプレート"
|
38 |
-
|
39 |
-
#: custom-field-template/custom-field-template.php:159
|
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 |
msgid "Options updated."
|
52 |
msgstr "オプションは更新されました。"
|
53 |
|
54 |
-
#: custom-field-template/custom-field-template.php:
|
55 |
msgid "Options resetted."
|
56 |
msgstr "オプションはリセットされました。"
|
57 |
|
58 |
-
#: custom-field-template/custom-field-template.php:
|
59 |
msgid "Options deleted."
|
60 |
msgstr "オプションは削除されました。"
|
61 |
|
62 |
-
#: custom-field-template/custom-field-template.php:
|
63 |
msgid "Custom Field Template Options"
|
64 |
msgstr "カスタムフィールドテンプレートオプション"
|
65 |
|
66 |
-
#: custom-field-template/custom-field-template.php:
|
67 |
-
|
68 |
-
|
69 |
-
msgstr "テンプレートタイトル %d"
|
70 |
|
71 |
-
#: custom-field-template/custom-field-template.php:
|
72 |
-
|
73 |
-
|
74 |
-
msgstr "テンプレートインストラクション %d"
|
75 |
|
76 |
-
#: custom-field-template/custom-field-template.php:
|
77 |
-
|
78 |
-
msgid "
|
79 |
-
msgstr "
|
80 |
|
81 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
|
|
|
|
82 |
msgid "In case that you would like to insert multiple images at once in use of the custom field media buttons"
|
83 |
msgstr "カスタムフィールへの画像挿入を一度に複数枚実行する場合"
|
84 |
|
85 |
-
#: custom-field-template/custom-field-template.php:
|
86 |
msgid "Use multiple image inset"
|
87 |
msgstr "複数画像挿入を利用する"
|
88 |
|
89 |
-
#: custom-field-template/custom-field-template.php:
|
90 |
msgid "Caution:"
|
91 |
msgstr "ご注意:"
|
92 |
|
93 |
-
#: custom-field-template/custom-field-template.php:
|
94 |
msgid "You need to edit `wp-admin/includes/media.php`. Delete or comment out the code in the function media_send_to_editor."
|
95 |
msgstr "`wp-admin/includes/media.php`を編集する必要があります。media_send_to_editor関数の中身を削除するかコメントアウトしてください。"
|
96 |
|
97 |
-
#: custom-field-template/custom-field-template.php:
|
98 |
msgid "In case that you would like to replace custom keys by labels if `label` is set"
|
99 |
msgstr "`label`がセットされていて、カスタムフィールドのキーの代わりにラベルを表示したい場合"
|
100 |
|
101 |
-
#: custom-field-template/custom-field-template.php:
|
102 |
msgid "Use labels in place of custom keys"
|
103 |
msgstr "カスタムフィールドのキーの代わりにラベルを使用する"
|
104 |
|
105 |
-
#: custom-field-template/custom-field-template.php:
|
106 |
msgid "In case that you would like to add p and br tags in textareas automatically"
|
107 |
msgstr "テキストエリアでpタグ、brタグを自動的に追加したい場合"
|
108 |
|
109 |
-
#: custom-field-template/custom-field-template.php:
|
110 |
msgid "Use wpautop function"
|
111 |
msgstr "wpautop関数を使用する"
|
112 |
|
113 |
-
#: custom-field-template/custom-field-template.php:
|
114 |
-
|
115 |
-
|
116 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
msgid "Update Options »"
|
118 |
msgstr "オプションを更新する »"
|
119 |
|
120 |
-
#: custom-field-template/custom-field-template.php:
|
121 |
-
#: custom-field-template/custom-field-template.php:
|
122 |
-
#: custom-field-template/custom-field-template.php:
|
123 |
-
#: custom-field-template/custom-field-template.php:
|
124 |
-
#: custom-field-template/custom-field-template.php:
|
125 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
126 |
msgid "Click to toggle"
|
127 |
msgstr "クリックで切替"
|
128 |
|
129 |
-
#: custom-field-template/custom-field-template.php:
|
130 |
msgid "CSS"
|
131 |
msgstr "CSS"
|
132 |
|
133 |
-
#: custom-field-template/custom-field-template.php:
|
134 |
-
msgid "[cft] Shortcode Format"
|
135 |
-
msgstr "[cft] Shortcode Format"
|
136 |
|
137 |
-
#: custom-field-template/custom-field-template.php:
|
138 |
-
msgid "[key] will be converted into the value of [key]."
|
139 |
-
msgstr "[key]は、[key]の値に置換されます。"
|
140 |
|
141 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
|
|
|
|
142 |
msgid "PHP CODE (Experimental Option)"
|
143 |
msgstr "PHP CODE (Experimental Option)"
|
144 |
|
145 |
-
#: custom-field-template/custom-field-template.php:
|
146 |
msgid "Are you sure to save PHP codes? Please do it at your own risk."
|
147 |
msgstr "PHPコードを保存してよろしいですか?自己責任で実行してください。"
|
148 |
|
149 |
-
#: custom-field-template/custom-field-template.php:
|
150 |
-
msgid "
|
151 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
|
153 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
msgid "Option List"
|
155 |
msgstr "オプションリスト"
|
156 |
|
157 |
-
#: custom-field-template/custom-field-template.php:
|
158 |
msgid "Reset Options"
|
159 |
msgstr "オプションをリセットする"
|
160 |
|
161 |
-
#: custom-field-template/custom-field-template.php:
|
162 |
msgid "Are you sure to reset options? Options you set will be reset to the default settings."
|
163 |
msgstr "本当にオプションをリセットしてもよろしいですか?設定したオプションはデフォルトの状態に戻ります。"
|
164 |
|
165 |
-
#: custom-field-template/custom-field-template.php:
|
166 |
msgid "Unset Options »"
|
167 |
msgstr "オプションをリセットする »"
|
168 |
|
169 |
-
#: custom-field-template/custom-field-template.php:
|
170 |
msgid "Delete Options"
|
171 |
msgstr "オプションを削除する"
|
172 |
|
173 |
-
#: custom-field-template/custom-field-template.php:
|
174 |
msgid "Are you sure to delete options? Options you set will be deleted."
|
175 |
msgstr "本当にオプションを削除してもよろしいですか?設定したオプションは削除されます。"
|
176 |
|
177 |
-
#: custom-field-template/custom-field-template.php:
|
178 |
msgid "Delete Options »"
|
179 |
msgstr "オプションを削除する »"
|
180 |
|
181 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
msgid "Clear"
|
183 |
msgstr "解除"
|
184 |
|
185 |
-
#: custom-field-template/custom-field-template.php:
|
186 |
msgid "Add Media"
|
187 |
msgstr ""
|
188 |
|
189 |
-
#: custom-field-template/custom-field-template.php:
|
190 |
msgid "Add an Image"
|
191 |
msgstr ""
|
192 |
|
193 |
-
#: custom-field-template/custom-field-template.php:
|
194 |
msgid "Add Video"
|
195 |
msgstr ""
|
196 |
|
197 |
-
#: custom-field-template/custom-field-template.php:
|
198 |
msgid "Add Audio"
|
199 |
msgstr ""
|
200 |
|
201 |
-
#: custom-field-template/custom-field-template.php:
|
202 |
msgid "Toggle"
|
203 |
msgstr "切り替え"
|
204 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
205 |
#~ msgid "Recent Posts Ext"
|
206 |
#~ msgstr "最近の投稿 Ext"
|
207 |
#~ msgid "camera"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Custom Field Template\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2009-01-26 14:36+0900\n"
|
6 |
+
"PO-Revision-Date: 2009-01-26 14:37+0900\n"
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
16 |
"X-Poedit-Basepath: ../\n"
|
17 |
"X-Poedit-SearchPath-0: custom-field-template\n"
|
18 |
|
19 |
+
#: custom-field-template/custom-field-template.php:87
|
20 |
+
#: custom-field-template/custom-field-template.php:88
|
21 |
+
#: custom-field-template/custom-field-template.php:411
|
22 |
+
#: custom-field-template/custom-field-template.php:511
|
23 |
+
#: custom-field-template/custom-field-template.php:1199
|
24 |
+
msgid "Custom Field Template"
|
25 |
+
msgstr "カスタムフィールドテンプレート"
|
26 |
+
|
27 |
+
#: custom-field-template/custom-field-template.php:269
|
28 |
msgid "read more"
|
29 |
msgstr "続きを表示"
|
30 |
|
31 |
+
#: custom-field-template/custom-field-template.php:287
|
32 |
+
#: custom-field-template/custom-field-template.php:297
|
|
|
|
|
|
|
33 |
msgid "Custom Fields"
|
34 |
msgstr "カスタムフィールド"
|
35 |
|
36 |
+
#: custom-field-template/custom-field-template.php:327
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
msgid "Settings"
|
38 |
msgstr "設定"
|
39 |
|
40 |
+
#: custom-field-template/custom-field-template.php:339
|
41 |
msgid "Default Template"
|
42 |
msgstr "デフォルトテンプレート"
|
43 |
|
44 |
+
#: custom-field-template/custom-field-template.php:461
|
45 |
+
#: custom-field-template/custom-field-template.php:465
|
46 |
+
#: custom-field-template/custom-field-template.php:473
|
47 |
+
#: custom-field-template/custom-field-template.php:481
|
48 |
+
#: custom-field-template/custom-field-template.php:494
|
49 |
msgid "Options updated."
|
50 |
msgstr "オプションは更新されました。"
|
51 |
|
52 |
+
#: custom-field-template/custom-field-template.php:499
|
53 |
msgid "Options resetted."
|
54 |
msgstr "オプションはリセットされました。"
|
55 |
|
56 |
+
#: custom-field-template/custom-field-template.php:503
|
57 |
msgid "Options deleted."
|
58 |
msgstr "オプションは削除されました。"
|
59 |
|
60 |
+
#: custom-field-template/custom-field-template.php:517
|
61 |
msgid "Custom Field Template Options"
|
62 |
msgstr "カスタムフィールドテンプレートオプション"
|
63 |
|
64 |
+
#: custom-field-template/custom-field-template.php:527
|
65 |
+
msgid "Template Title"
|
66 |
+
msgstr "テンプレートタイトル"
|
|
|
67 |
|
68 |
+
#: custom-field-template/custom-field-template.php:529
|
69 |
+
msgid "Template Instruction"
|
70 |
+
msgstr "テンプレートインストラクション"
|
|
|
71 |
|
72 |
+
#: custom-field-template/custom-field-template.php:531
|
73 |
+
#: custom-field-template/custom-field-template.php:661
|
74 |
+
msgid "Category ID (comma-deliminated)"
|
75 |
+
msgstr "カテゴリーID(カンマ区切り)"
|
76 |
|
77 |
+
#: custom-field-template/custom-field-template.php:533
|
78 |
+
msgid "Template Content"
|
79 |
+
msgstr "テンプレートコンテンツ"
|
80 |
+
|
81 |
+
#: custom-field-template/custom-field-template.php:540
|
82 |
msgid "In case that you would like to insert multiple images at once in use of the custom field media buttons"
|
83 |
msgstr "カスタムフィールへの画像挿入を一度に複数枚実行する場合"
|
84 |
|
85 |
+
#: custom-field-template/custom-field-template.php:541
|
86 |
msgid "Use multiple image inset"
|
87 |
msgstr "複数画像挿入を利用する"
|
88 |
|
89 |
+
#: custom-field-template/custom-field-template.php:541
|
90 |
msgid "Caution:"
|
91 |
msgstr "ご注意:"
|
92 |
|
93 |
+
#: custom-field-template/custom-field-template.php:541
|
94 |
msgid "You need to edit `wp-admin/includes/media.php`. Delete or comment out the code in the function media_send_to_editor."
|
95 |
msgstr "`wp-admin/includes/media.php`を編集する必要があります。media_send_to_editor関数の中身を削除するかコメントアウトしてください。"
|
96 |
|
97 |
+
#: custom-field-template/custom-field-template.php:545
|
98 |
msgid "In case that you would like to replace custom keys by labels if `label` is set"
|
99 |
msgstr "`label`がセットされていて、カスタムフィールドのキーの代わりにラベルを表示したい場合"
|
100 |
|
101 |
+
#: custom-field-template/custom-field-template.php:546
|
102 |
msgid "Use labels in place of custom keys"
|
103 |
msgstr "カスタムフィールドのキーの代わりにラベルを使用する"
|
104 |
|
105 |
+
#: custom-field-template/custom-field-template.php:549
|
106 |
msgid "In case that you would like to add p and br tags in textareas automatically"
|
107 |
msgstr "テキストエリアでpタグ、brタグを自動的に追加したい場合"
|
108 |
|
109 |
+
#: custom-field-template/custom-field-template.php:550
|
110 |
msgid "Use wpautop function"
|
111 |
msgstr "wpautop関数を使用する"
|
112 |
|
113 |
+
#: custom-field-template/custom-field-template.php:554
|
114 |
+
msgid "In case that you would like to save values automatically in switching templates"
|
115 |
+
msgstr "テンプレート切替時自動で保存したい場合"
|
116 |
+
|
117 |
+
#: custom-field-template/custom-field-template.php:555
|
118 |
+
msgid "Use the auto save in switching templates"
|
119 |
+
msgstr "テンプレート切替時の自動保存を使用する"
|
120 |
+
|
121 |
+
#: custom-field-template/custom-field-template.php:559
|
122 |
+
#: custom-field-template/custom-field-template.php:578
|
123 |
+
#: custom-field-template/custom-field-template.php:606
|
124 |
+
#: custom-field-template/custom-field-template.php:637
|
125 |
+
#: custom-field-template/custom-field-template.php:669
|
126 |
msgid "Update Options »"
|
127 |
msgstr "オプションを更新する »"
|
128 |
|
129 |
+
#: custom-field-template/custom-field-template.php:568
|
130 |
+
#: custom-field-template/custom-field-template.php:587
|
131 |
+
#: custom-field-template/custom-field-template.php:615
|
132 |
+
#: custom-field-template/custom-field-template.php:646
|
133 |
+
#: custom-field-template/custom-field-template.php:678
|
134 |
+
#: custom-field-template/custom-field-template.php:765
|
135 |
+
#: custom-field-template/custom-field-template.php:781
|
136 |
+
#: custom-field-template/custom-field-template.php:797
|
137 |
msgid "Click to toggle"
|
138 |
msgstr "クリックで切替"
|
139 |
|
140 |
+
#: custom-field-template/custom-field-template.php:569
|
141 |
msgid "CSS"
|
142 |
msgstr "CSS"
|
143 |
|
144 |
+
#: custom-field-template/custom-field-template.php:588
|
145 |
+
msgid "[cft] and [cftsearch] Shortcode Format"
|
146 |
+
msgstr "[cft] and [cftsearch] Shortcode Format"
|
147 |
|
148 |
+
#: custom-field-template/custom-field-template.php:591
|
149 |
+
msgid "For [cft], [key] will be converted into the value of [key]."
|
150 |
+
msgstr "[cft]では、[key]は、[key]の値に置換されます。"
|
151 |
|
152 |
+
#: custom-field-template/custom-field-template.php:592
|
153 |
+
msgid "For [cftsearch], [key] will be converted into the input field."
|
154 |
+
msgstr "[cftsearch]では、[key]は、インプットフィールドに置換されます。"
|
155 |
+
|
156 |
+
#: custom-field-template/custom-field-template.php:616
|
157 |
msgid "PHP CODE (Experimental Option)"
|
158 |
msgstr "PHP CODE (Experimental Option)"
|
159 |
|
160 |
+
#: custom-field-template/custom-field-template.php:618
|
161 |
msgid "Are you sure to save PHP codes? Please do it at your own risk."
|
162 |
msgstr "PHPコードを保存してよろしいですか?自己責任で実行してください。"
|
163 |
|
164 |
+
#: custom-field-template/custom-field-template.php:619
|
165 |
+
msgid "For `text` and `textarea`, you must set $value as an string."
|
166 |
+
msgstr "`text`と`textarea`は$valueを文字列としてセットしてください。"
|
167 |
+
|
168 |
+
#: custom-field-template/custom-field-template.php:621
|
169 |
+
msgid "For `checkbox`, `radio`, and `select`, you must set $values as an array."
|
170 |
+
msgstr "`checkbox`、`radio`、`select`では、配列として$valuesをセットしてください。"
|
171 |
+
|
172 |
+
#: custom-field-template/custom-field-template.php:647
|
173 |
+
msgid "Auto Hook of `the_content()` (Experimental Option)"
|
174 |
+
msgstr "Auto Hook of `the_content()` (Experimental Option)"
|
175 |
+
|
176 |
+
#: custom-field-template/custom-field-template.php:657
|
177 |
+
msgid "Position"
|
178 |
+
msgstr "位置"
|
179 |
|
180 |
+
#: custom-field-template/custom-field-template.php:658
|
181 |
+
msgid "Before the conetnt"
|
182 |
+
msgstr "コンテンツの前"
|
183 |
+
|
184 |
+
#: custom-field-template/custom-field-template.php:659
|
185 |
+
msgid "After the conetnt"
|
186 |
+
msgstr "コンテンツの後"
|
187 |
+
|
188 |
+
#: custom-field-template/custom-field-template.php:663
|
189 |
+
msgid "Content"
|
190 |
+
msgstr "コンテンツ"
|
191 |
+
|
192 |
+
#: custom-field-template/custom-field-template.php:679
|
193 |
msgid "Option List"
|
194 |
msgstr "オプションリスト"
|
195 |
|
196 |
+
#: custom-field-template/custom-field-template.php:766
|
197 |
msgid "Reset Options"
|
198 |
msgstr "オプションをリセットする"
|
199 |
|
200 |
+
#: custom-field-template/custom-field-template.php:768
|
201 |
msgid "Are you sure to reset options? Options you set will be reset to the default settings."
|
202 |
msgstr "本当にオプションをリセットしてもよろしいですか?設定したオプションはデフォルトの状態に戻ります。"
|
203 |
|
204 |
+
#: custom-field-template/custom-field-template.php:772
|
205 |
msgid "Unset Options »"
|
206 |
msgstr "オプションをリセットする »"
|
207 |
|
208 |
+
#: custom-field-template/custom-field-template.php:782
|
209 |
msgid "Delete Options"
|
210 |
msgstr "オプションを削除する"
|
211 |
|
212 |
+
#: custom-field-template/custom-field-template.php:784
|
213 |
msgid "Are you sure to delete options? Options you set will be deleted."
|
214 |
msgstr "本当にオプションを削除してもよろしいですか?設定したオプションは削除されます。"
|
215 |
|
216 |
+
#: custom-field-template/custom-field-template.php:788
|
217 |
msgid "Delete Options »"
|
218 |
msgstr "オプションを削除する »"
|
219 |
|
220 |
+
#: custom-field-template/custom-field-template.php:798
|
221 |
+
msgid "Donation"
|
222 |
+
msgstr "寄付"
|
223 |
+
|
224 |
+
#: custom-field-template/custom-field-template.php:800
|
225 |
+
msgid "If you liked this plugin, please make a donation via paypal! Any amount is welcome. Your support is much appreciated."
|
226 |
+
msgstr "このプラグインをお気に召しましたら、Paypalよりご寄付をよろしくお願いいたします。"
|
227 |
+
|
228 |
+
#: custom-field-template/custom-field-template.php:963
|
229 |
msgid "Clear"
|
230 |
msgstr "解除"
|
231 |
|
232 |
+
#: custom-field-template/custom-field-template.php:1085
|
233 |
msgid "Add Media"
|
234 |
msgstr ""
|
235 |
|
236 |
+
#: custom-field-template/custom-field-template.php:1087
|
237 |
msgid "Add an Image"
|
238 |
msgstr ""
|
239 |
|
240 |
+
#: custom-field-template/custom-field-template.php:1089
|
241 |
msgid "Add Video"
|
242 |
msgstr ""
|
243 |
|
244 |
+
#: custom-field-template/custom-field-template.php:1091
|
245 |
msgid "Add Audio"
|
246 |
msgstr ""
|
247 |
|
248 |
+
#: custom-field-template/custom-field-template.php:1102
|
249 |
msgid "Toggle"
|
250 |
msgstr "切り替え"
|
251 |
|
252 |
+
#: custom-field-template/custom-field-template.php:1357
|
253 |
+
msgid "Save"
|
254 |
+
msgstr "保存"
|
255 |
+
|
256 |
+
#: custom-field-template/custom-field-template.php:1676
|
257 |
+
msgid "Search »"
|
258 |
+
msgstr "検索 »"
|
259 |
+
|
260 |
+
#~ msgid "Quick Edit"
|
261 |
+
#~ msgstr "クイック編集"
|
262 |
#~ msgid "Recent Posts Ext"
|
263 |
#~ msgstr "最近の投稿 Ext"
|
264 |
#~ msgid "camera"
|
custom-field-template-tr_TR.mo
ADDED
Binary file
|
custom-field-template-tr_TR.po
ADDED
@@ -0,0 +1,196 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Custom Field Template\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2008-12-12 15:19+0900\n"
|
6 |
+
"PO-Revision-Date: 2009-01-16 02:17+0200\n"
|
7 |
+
"Last-Translator: Omer Faruk - wordpress.info.tr <admin@wordpress.info.tr>\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: Turkish\n"
|
13 |
+
"X-Poedit-Country: TURKEY\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:161
|
22 |
+
#: custom-field-template/custom-field-template.php:210
|
23 |
+
#: custom-field-template/custom-field-template.php:740
|
24 |
+
msgid "Custom Field Template"
|
25 |
+
msgstr "Geleneksel Alan Teması"
|
26 |
+
|
27 |
+
#: custom-field-template/custom-field-template.php:95
|
28 |
+
msgid "Settings"
|
29 |
+
msgstr "Ayarlar"
|
30 |
+
|
31 |
+
#: custom-field-template/custom-field-template.php:106
|
32 |
+
msgid "Default Template"
|
33 |
+
msgstr "Mevcut Tema"
|
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 "Ayarlar güncellendi."
|
40 |
+
|
41 |
+
#: custom-field-template/custom-field-template.php:198
|
42 |
+
msgid "Options resetted."
|
43 |
+
msgstr "Ayarlar sıfırlandı."
|
44 |
+
|
45 |
+
#: custom-field-template/custom-field-template.php:202
|
46 |
+
msgid "Options deleted."
|
47 |
+
msgstr "Ayarlar silindi"
|
48 |
+
|
49 |
+
#: custom-field-template/custom-field-template.php:216
|
50 |
+
msgid "Custom Field Template Options"
|
51 |
+
msgstr "Geleneksel Alan Tema Ayarları"
|
52 |
+
|
53 |
+
#: custom-field-template/custom-field-template.php:226
|
54 |
+
#, php-format
|
55 |
+
msgid "Template Title %d"
|
56 |
+
msgstr "Tema başlığı %d"
|
57 |
+
|
58 |
+
#: custom-field-template/custom-field-template.php:228
|
59 |
+
#, php-format
|
60 |
+
msgid "Template Instruction %d"
|
61 |
+
msgstr "Tema açıklaması %d"
|
62 |
+
|
63 |
+
#: custom-field-template/custom-field-template.php:230
|
64 |
+
#, php-format
|
65 |
+
msgid "Template Content %d"
|
66 |
+
msgstr "Tema eklentileri %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 "Senin, kullanımda gelenek alan medya düğmelerinin hemen çeşitli şekilleri sokmayı beğenecek olduğun olasılığına karşı"
|
71 |
+
|
72 |
+
#: custom-field-template/custom-field-template.php:238
|
73 |
+
msgid "Use multiple image inset"
|
74 |
+
msgstr "Çoklu araya sokulmuş resimi kullan"
|
75 |
+
|
76 |
+
#: custom-field-template/custom-field-template.php:238
|
77 |
+
msgid "Caution:"
|
78 |
+
msgstr "Uyarı:"
|
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 "`wp-admin/includes/media.php` dosyasını düzenlemelisin. Sil veya ...... media_send_to_editor. fonksiyon içinde."
|
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 "Eğer 'etiket' ayarlanmışsa, bu duruma göre geleneksel anahtarları etiketlerle değiştirmek istersin."
|
87 |
+
|
88 |
+
#: custom-field-template/custom-field-template.php:243
|
89 |
+
msgid "Use labels in place of custom keys"
|
90 |
+
msgstr "Geleneksel anahtarların yerine etiketleri kullan"
|
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 "Bu durumda, text alanlarına otomatik olarak p ve br etiketlerini eklemek istersin."
|
95 |
+
|
96 |
+
#: custom-field-template/custom-field-template.php:247
|
97 |
+
msgid "Use wpautop function"
|
98 |
+
msgstr "'wpautop' fonksiyonunu kullan"
|
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:297
|
103 |
+
msgid "Update Options »"
|
104 |
+
msgstr "Ayarları güncelle »"
|
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:306
|
109 |
+
#: custom-field-template/custom-field-template.php:371
|
110 |
+
#: custom-field-template/custom-field-template.php:387
|
111 |
+
msgid "Click to toggle"
|
112 |
+
msgstr "Düğmeye Tıkla"
|
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 KODU (Deneysel Seçenek)"
|
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 kodlarını kaydetmek istediğinizden emin misiniz? Lütfen kendi riskinizde yapın."
|
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 seçenek sadece `radio` ve `select`tipleri için geçerlidir. $values'i bir dizin olarak ayarlamalısınız."
|
129 |
+
|
130 |
+
#: custom-field-template/custom-field-template.php:307
|
131 |
+
msgid "Option List"
|
132 |
+
msgstr "Seçim Listesi"
|
133 |
+
|
134 |
+
#: custom-field-template/custom-field-template.php:372
|
135 |
+
msgid "Reset Options"
|
136 |
+
msgstr "Ayarları Sıfırla"
|
137 |
+
|
138 |
+
#: custom-field-template/custom-field-template.php:374
|
139 |
+
msgid "Are you sure to reset options? Options you set will be reset to the default settings."
|
140 |
+
msgstr "Ayarları sıfırlamak istediğinizden emin misiniz? Tüm ayarlar sıfırlanacak ve mevcut ayarlara dönülecek."
|
141 |
+
|
142 |
+
#: custom-field-template/custom-field-template.php:378
|
143 |
+
msgid "Unset Options »"
|
144 |
+
msgstr "Belirsiz Ayarlar »"
|
145 |
+
|
146 |
+
#: custom-field-template/custom-field-template.php:388
|
147 |
+
msgid "Delete Options"
|
148 |
+
msgstr "Ayarları Sil"
|
149 |
+
|
150 |
+
#: custom-field-template/custom-field-template.php:390
|
151 |
+
msgid "Are you sure to delete options? Options you set will be deleted."
|
152 |
+
msgstr "Ayarları silmek istediğinizden emin misiniz? Ayarladığınız seçenekler silinecek."
|
153 |
+
|
154 |
+
#: custom-field-template/custom-field-template.php:394
|
155 |
+
msgid "Delete Options »"
|
156 |
+
msgstr "Ayarları Sil »"
|
157 |
+
|
158 |
+
#: custom-field-template/custom-field-template.php:532
|
159 |
+
msgid "Clear"
|
160 |
+
msgstr "Temizle"
|
161 |
+
|
162 |
+
#: custom-field-template/custom-field-template.php:633
|
163 |
+
msgid "Add Media"
|
164 |
+
msgstr "Medya Ekle"
|
165 |
+
|
166 |
+
#: custom-field-template/custom-field-template.php:635
|
167 |
+
msgid "Add an Image"
|
168 |
+
msgstr "Bir Resim Ekle"
|
169 |
+
|
170 |
+
#: custom-field-template/custom-field-template.php:637
|
171 |
+
msgid "Add Video"
|
172 |
+
msgstr "Video Ekle"
|
173 |
+
|
174 |
+
#: custom-field-template/custom-field-template.php:639
|
175 |
+
msgid "Add Audio"
|
176 |
+
msgstr "Ses Dosyası Ekle"
|
177 |
+
|
178 |
+
#: custom-field-template/custom-field-template.php:650
|
179 |
+
msgid "Toggle"
|
180 |
+
msgstr "Düğme"
|
181 |
+
|
182 |
+
#~ msgid "Recent Posts Ext"
|
183 |
+
#~ msgstr "最近の投稿 Ext"
|
184 |
+
#~ msgid "camera"
|
185 |
+
#~ msgstr "機種"
|
186 |
+
#~ msgid "aperture"
|
187 |
+
#~ msgstr "絞り値"
|
188 |
+
#~ msgid "focal_length"
|
189 |
+
#~ msgstr "焦点距離"
|
190 |
+
#~ msgid "ISO"
|
191 |
+
#~ msgstr "ISO"
|
192 |
+
#~ msgid "shutter_speed"
|
193 |
+
#~ msgstr "シャッタースピード"
|
194 |
+
#~ msgid "created_timestamp"
|
195 |
+
#~ msgstr "撮影日時"
|
196 |
+
|
custom-field-template.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Custom Field Template
|
|
4 |
Plugin URI: http://wordpressgogo.com/development/custom-field-template.html
|
5 |
Description: This plugin adds the default custom fields on the Write Post/Page.
|
6 |
Author: Hiroaki Miyashita
|
7 |
-
Version: 0
|
8 |
Author URI: http://wordpressgogo.com/
|
9 |
*/
|
10 |
|
@@ -28,8 +28,17 @@ class custom_field_template {
|
|
28 |
add_filter( 'media_send_to_editor', array(&$this, 'media_send_to_custom_field'), 15 );
|
29 |
add_filter( 'plugin_action_links', array(&$this, 'wpaq_filter_plugin_actions'), 10, 2 );
|
30 |
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
add_shortcode( 'cft', array(&$this, 'output_custom_field_values') );
|
|
|
|
|
33 |
}
|
34 |
|
35 |
function custom_field_template_init() {
|
@@ -43,8 +52,9 @@ class custom_field_template {
|
|
43 |
}
|
44 |
}
|
45 |
|
46 |
-
if ( is_user_logged_in() && isset($_REQUEST['
|
47 |
-
$
|
|
|
48 |
exit();
|
49 |
}
|
50 |
|
@@ -126,7 +136,7 @@ class custom_field_template {
|
|
126 |
function custom_field_template_admin_head() {
|
127 |
global $wp_version;
|
128 |
|
129 |
-
if ( substr($wp_version, 0, 3) >= '2.7' && is_user_logged_in() && ( strstr($_SERVER['REQUEST_URI'], 'wp-admin/edit.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/edit-pages.php') ) ) {
|
130 |
?>
|
131 |
<script type="text/javascript">
|
132 |
// <![CDATA[
|
@@ -200,13 +210,6 @@ class custom_field_template {
|
|
200 |
inlineEditPost.cft_load = function (post_id) {
|
201 |
jQuery.ajax({type: 'GET', url: '?page=custom-field-template/custom-field-template.php&id=0&post='+post_id, success: function(html) {jQuery('#cft').html(html);}});
|
202 |
};
|
203 |
-
|
204 |
-
jQuery('.save').click(function () {post_id = jQuery(this).parent().parent().parent().attr('id').replace('edit-',''); inlineEditPost.cft_save(post_id);});
|
205 |
-
inlineEditPost.cft_save = function (post_id) {
|
206 |
-
var fields = jQuery('#edit-'+post_id+' #cft :input').fieldSerialize();
|
207 |
-
jQuery.ajax({type: 'POST', url: '?page=custom-field-template/custom-field-template.php&cft_mode=ajax&post='+post_id+'&'+fields});
|
208 |
-
};
|
209 |
-
|
210 |
});
|
211 |
//-->
|
212 |
</script>
|
@@ -226,7 +229,7 @@ class custom_field_template {
|
|
226 |
function add_manage_posts_custom_column($column_name, $post_id) {
|
227 |
$data = get_post_custom($post_id);
|
228 |
|
229 |
-
if( is_array($data) ) :
|
230 |
$flag = 0;
|
231 |
foreach($data as $key => $val) :
|
232 |
if ( substr($key, 0, 1) == '_' || !$val[0] ) continue;
|
@@ -331,6 +334,7 @@ class custom_field_template {
|
|
331 |
|
332 |
function custom_field_template_admin_scripts() {
|
333 |
wp_enqueue_script( 'jquery' );
|
|
|
334 |
}
|
335 |
|
336 |
function install_custom_field_template_data() {
|
@@ -409,6 +413,41 @@ mediaButton = true';
|
|
409 |
add_options_page(__('Custom Field Template', 'custom-field-template'), __('Custom Field Template', 'custom-field-template'), 8, basename(__FILE__), array(&$this, 'custom_field_template_admin'));
|
410 |
}
|
411 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
412 |
function custom_field_template_admin() {
|
413 |
$options = $this->get_custom_field_template_data();
|
414 |
if($_POST["custom_field_template_set_options_submit"]) :
|
@@ -417,11 +456,13 @@ mediaButton = true';
|
|
417 |
$options['custom_field_template_replace_keys_by_labels'] = $_POST['custom_field_template_replace_keys_by_labels'];
|
418 |
$options['custom_field_template_use_multiple_insert'] = $_POST['custom_field_template_use_multiple_insert'];
|
419 |
$options['custom_field_template_use_wpautop'] = $_POST['custom_field_template_use_wpautop'];
|
|
|
420 |
for($i=0;$i<count($_POST["custom_field_template_content"]);$i++) {
|
421 |
if( $_POST["custom_field_template_content"][$i] ) {
|
422 |
$options['custom_fields'][$j]['title'] = $_POST["custom_field_template_title"][$i];
|
423 |
$options['custom_fields'][$j]['content'] = $_POST["custom_field_template_content"][$i];
|
424 |
$options['custom_fields'][$j]['instruction'] = $_POST["custom_field_template_instruction"][$i];
|
|
|
425 |
$j++;
|
426 |
}
|
427 |
}
|
@@ -447,6 +488,19 @@ mediaButton = true';
|
|
447 |
}
|
448 |
update_option('custom_field_template_data', $options);
|
449 |
$message = __('Options updated.', 'custom-field-template');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
450 |
elseif ($_POST['custom_field_template_unset_options_submit']) :
|
451 |
$this->install_custom_field_template_data();
|
452 |
$this->install_custom_field_template_css();
|
@@ -479,11 +533,13 @@ mediaButton = true';
|
|
479 |
?>
|
480 |
<tr><td>
|
481 |
<p><strong>TEMPLATE #<?php echo $i; ?></strong></p>
|
482 |
-
<p><label for="custom_field_template_title[<?php echo $i; ?>]"><?php echo sprintf(__('Template Title
|
483 |
<input type="text" name="custom_field_template_title[<?php echo $i; ?>]" id="custom_field_template_title[<?php echo $i; ?>]" value="<?php echo stripcslashes($options['custom_fields'][$i]['title']); ?>" size="60" /></p>
|
484 |
-
<p><label for="custom_field_template_instruction[<?php echo $i; ?>]"><a href="javascript:void(0);" onclick="jQuery(this).parent().next().next().toggle();"><?php echo sprintf(__('Template Instruction
|
485 |
<textarea name="custom_field_template_instruction[<?php echo $i; ?>]" id="custom_field_template_instruction[<?php echo $i; ?>]" rows="5" cols="60"<?php if ( empty($options['custom_fields'][$i]['instruction']) ) : echo ' style="display:none;"'; endif; ?>><?php echo stripcslashes($options['custom_fields'][$i]['instruction']); ?></textarea></p>
|
486 |
-
<p><label for="
|
|
|
|
|
487 |
<textarea name="custom_field_template_content[<?php echo $i; ?>]" id="custom_field_template_content[<?php echo $i; ?>]" rows="10" cols="60"><?php echo stripcslashes($options['custom_fields'][$i]['content']); ?></textarea></p>
|
488 |
</td></tr>
|
489 |
<?php
|
@@ -504,6 +560,11 @@ mediaButton = true';
|
|
504 |
</td>
|
505 |
</tr>
|
506 |
<tr><td>
|
|
|
|
|
|
|
|
|
|
|
507 |
<p><input type="submit" name="custom_field_template_set_options_submit" value="<?php _e('Update Options »', 'custom-field-template'); ?>" class="button-primary" /></p>
|
508 |
</td></tr>
|
509 |
</tbody>
|
@@ -514,7 +575,7 @@ mediaButton = true';
|
|
514 |
|
515 |
<div class="postbox closed">
|
516 |
<div class="handlediv" title="<?php _e('Click to toggle', 'custom-field-template'); ?>"><br /></div>
|
517 |
-
<h3><?php _e('CSS', 'custom-field-template'); ?></h3>
|
518 |
<div class="inside">
|
519 |
<form method="post">
|
520 |
<table class="form-table" style="margin-bottom:5px;">
|
@@ -533,10 +594,11 @@ mediaButton = true';
|
|
533 |
|
534 |
<div class="postbox closed">
|
535 |
<div class="handlediv" title="<?php _e('Click to toggle', 'meta-ext'); ?>"><br /></div>
|
536 |
-
<h3><?php _e('[cft] Shortcode Format', 'custom-field-template'); ?></h3>
|
537 |
<div class="inside">
|
538 |
<form method="post">
|
539 |
-
<p><?php _e('[key] will be converted into the value of [key].', 'custom-field-template');
|
|
|
540 |
<table class="form-table" style="margin-bottom:5px;">
|
541 |
<tbody>
|
542 |
<?php
|
@@ -563,8 +625,11 @@ mediaButton = true';
|
|
563 |
<h3><?php _e('PHP CODE (Experimental Option)', 'custom-field-template'); ?></h3>
|
564 |
<div class="inside">
|
565 |
<form method="post" onsubmit="return confirm('<?php _e('Are you sure to save PHP codes? Please do it at your own risk.', 'custom-field-template'); ?>');">
|
566 |
-
<
|
567 |
-
ex. `
|
|
|
|
|
|
|
568 |
<table class="form-table" style="margin-bottom:5px;">
|
569 |
<tbody>
|
570 |
<?php
|
@@ -586,6 +651,38 @@ ex. `checkbox`:<br />$values = array('dog', 'cat', 'monkey'); $defaults = array(
|
|
586 |
</div>
|
587 |
</div>
|
588 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
589 |
<div class="postbox closed">
|
590 |
<div class="handlediv" title="<?php _e('Click to toggle', 'custom-field-template'); ?>"><br /></div>
|
591 |
<h3><?php _e('Option List', 'custom-field-template'); ?></h3>
|
@@ -639,7 +736,10 @@ hideKey = true<br />
|
|
639 |
<th>mediaButton</th><td></td><td></td><td></td><td></td><td>mediaButton = true</td>
|
640 |
</tr>
|
641 |
<tr>
|
642 |
-
<th>code</th><td
|
|
|
|
|
|
|
643 |
</tr>
|
644 |
<tr>
|
645 |
<th>level</th><td>level = 1</td><td>level = 3</td><td>level = 5</td><td>level = 7</td><td>level = 9</td>
|
@@ -651,11 +751,20 @@ hideKey = true<br />
|
|
651 |
<th>output</th><td>output = true</td><td>output = true</td><td>output = true</td><td>output = true</td><td>output = true</td>
|
652 |
</tr>
|
653 |
<tr>
|
|
|
|
|
|
|
654 |
<th>blank</th><td>blank = true</td><td>blank = true</td><td>blank = true</td><td>blank = true</td><td>blank = true</td>
|
655 |
</tr>
|
656 |
<tr>
|
657 |
<th>sort</th><td>sort = asc</td><td>sort = desc</td><td>sort = asc</td><td>sort = desc</td><td>sort = asc</td>
|
658 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
659 |
</tbody>
|
660 |
</table>
|
661 |
</div>
|
@@ -692,8 +801,29 @@ hideKey = true<br />
|
|
692 |
</form>
|
693 |
</div>
|
694 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
695 |
</div>
|
696 |
|
|
|
697 |
<script type="text/javascript">
|
698 |
// <![CDATA[
|
699 |
<?php if ( version_compare( substr($wp_version, 0, 3), '2.7', '<' ) ) { ?>
|
@@ -727,11 +857,15 @@ jQuery(this).addClass("closed");
|
|
727 |
return $custom_fields;
|
728 |
}
|
729 |
|
730 |
-
function make_textfield( $name, $sid, $size = 25, $default, $hideKey, $label ) {
|
731 |
$options = $this->get_custom_field_template_data();
|
732 |
|
733 |
$title = $name;
|
734 |
$name = $this->sanitize_name( $name );
|
|
|
|
|
|
|
|
|
735 |
|
736 |
if( isset( $_REQUEST[ 'post' ] ) ) {
|
737 |
$value = get_post_meta( $_REQUEST[ 'post' ], $title );
|
@@ -742,7 +876,12 @@ jQuery(this).addClass("closed");
|
|
742 |
$value = $default;
|
743 |
}
|
744 |
|
|
|
|
|
|
|
|
|
745 |
if ( $hideKey == true ) $hide = ' class="hideKey"';
|
|
|
746 |
|
747 |
if ( !empty($label) && $options['custom_field_template_replace_keys_by_labels'] )
|
748 |
$title = stripcslashes($label);
|
@@ -754,12 +893,12 @@ jQuery(this).addClass("closed");
|
|
754 |
|
755 |
if ( !empty($label) && !$options['custom_field_template_replace_keys_by_labels'] )
|
756 |
$out .= '<p class="label">' . stripcslashes($label) . '</p>';
|
757 |
-
$out .= '<input id="' . $name . '" name="' . $name . '[]" value="' . attribute_escape($value) . '" type="text" size="' . $size . '" /></dd>' .
|
758 |
'</dl>';
|
759 |
return $out;
|
760 |
}
|
761 |
|
762 |
-
function make_checkbox( $name, $sid, $value, $valueLabel, $checked, $hideKey, $label, $code ) {
|
763 |
$options = $this->get_custom_field_template_data();
|
764 |
|
765 |
$title = $name;
|
@@ -777,7 +916,8 @@ jQuery(this).addClass("closed");
|
|
777 |
}
|
778 |
|
779 |
if ( $hideKey == true ) $hide = ' class="hideKey"';
|
780 |
-
|
|
|
781 |
if ( !empty($label) && $options['custom_field_template_replace_keys_by_labels'] )
|
782 |
$title = stripcslashes($label);
|
783 |
|
@@ -788,7 +928,7 @@ jQuery(this).addClass("closed");
|
|
788 |
|
789 |
if ( !empty($label) && !$options['custom_field_template_replace_keys_by_labels'] )
|
790 |
$out .= '<p class="label">' . stripcslashes($label) . '</p>';
|
791 |
-
$out .= '<label for="' . $id . '" class="selectit"><input name="' . $name . '[' . $sid . ']" value="' . attribute_escape($value) . '" ' . $checked . ' type="checkbox" /> ';
|
792 |
if ( $valueLabel )
|
793 |
$out .= stripcslashes($valueLabel);
|
794 |
else
|
@@ -800,7 +940,7 @@ jQuery(this).addClass("closed");
|
|
800 |
return $out;
|
801 |
}
|
802 |
|
803 |
-
function make_radio( $name, $sid, $values, $valueLabel, $clearButton, $default, $hideKey, $label, $code ) {
|
804 |
$options = $this->get_custom_field_template_data();
|
805 |
|
806 |
$title = $name;
|
@@ -818,6 +958,7 @@ jQuery(this).addClass("closed");
|
|
818 |
}
|
819 |
|
820 |
if ( $hideKey == true ) $hide = ' class="hideKey"';
|
|
|
821 |
|
822 |
if ( !empty($label) && $options['custom_field_template_replace_keys_by_labels'] )
|
823 |
$title = stripcslashes($label);
|
@@ -845,7 +986,7 @@ jQuery(this).addClass("closed");
|
|
845 |
$checked = ( trim( $val ) == trim( $selected ) ) ? 'checked="checked"' : '';
|
846 |
|
847 |
$out .=
|
848 |
-
'<label for="' . $id . '" class="selectit"><input id="' . $id . '" name="' . $name . '[' . $sid . ']" value="' . attribute_escape($val) . '" ' . $checked . ' type="radio" /> ';
|
849 |
if ( $valueLabel[$i] )
|
850 |
$out .= stripcslashes($valueLabel[$i]);
|
851 |
else
|
@@ -858,7 +999,7 @@ jQuery(this).addClass("closed");
|
|
858 |
return $out;
|
859 |
}
|
860 |
|
861 |
-
function make_select( $name, $sid, $values, $valueLabel, $default, $hideKey, $label, $code ) {
|
862 |
$options = $this->get_custom_field_template_data();
|
863 |
|
864 |
$title = $name;
|
@@ -878,6 +1019,7 @@ jQuery(this).addClass("closed");
|
|
878 |
}
|
879 |
|
880 |
if ( $hideKey == true ) $hide = ' class="hideKey"';
|
|
|
881 |
|
882 |
if ( !empty($label) && $options['custom_field_template_replace_keys_by_labels'] )
|
883 |
$title = stripcslashes($label);
|
@@ -889,7 +1031,7 @@ jQuery(this).addClass("closed");
|
|
889 |
|
890 |
if ( !empty($label) && !$options['custom_field_template_replace_keys_by_labels'] )
|
891 |
$out .= '<p class="label">' . stripcslashes($label) . '</p>';
|
892 |
-
$out .= '<select name="' . $name . '[]">' .
|
893 |
'<option value="" >Select</option>';
|
894 |
|
895 |
$i = 0;
|
@@ -909,7 +1051,7 @@ jQuery(this).addClass("closed");
|
|
909 |
return $out;
|
910 |
}
|
911 |
|
912 |
-
function make_textarea( $name, $sid, $rows, $cols, $tinyMCE, $mediaButton, $default, $hideKey, $label ) {
|
913 |
$options = $this->get_custom_field_template_data();
|
914 |
|
915 |
global $wp_version;
|
@@ -917,6 +1059,10 @@ jQuery(this).addClass("closed");
|
|
917 |
$title = $name;
|
918 |
$name = $this->sanitize_name( $name );
|
919 |
|
|
|
|
|
|
|
|
|
920 |
if( isset( $_REQUEST[ 'post' ] ) ) {
|
921 |
$value = get_post_meta( $_REQUEST[ 'post' ], $title );
|
922 |
$value = $value[ $sid ];
|
@@ -970,6 +1116,7 @@ EOF;
|
|
970 |
}
|
971 |
|
972 |
if ( $hideKey == true ) $hide = ' class="hideKey"';
|
|
|
973 |
|
974 |
if ( !empty($label) && $options['custom_field_template_replace_keys_by_labels'] )
|
975 |
$title = stripcslashes($label);
|
@@ -981,7 +1128,7 @@ EOF;
|
|
981 |
|
982 |
if ( !empty($label) && !$options['custom_field_template_replace_keys_by_labels'] )
|
983 |
$out .= '<p class="label">' . stripcslashes($label) . '</p>';
|
984 |
-
$out .= '<textarea id="' . $name . $rand . '" name="' . $name . '[' . $sid . ']" rows="' .$rows. '" cols="' . $cols . '" style="color:#000000">' . attribute_escape($value) . '</textarea><input type="hidden" name="'.$name.'_rand['.$sid.']" value="'.$rand.'" /></dd>' .
|
985 |
'</dl>';
|
986 |
return $out;
|
987 |
}
|
@@ -1012,26 +1159,26 @@ EOF;
|
|
1012 |
$out .= '</div><div>';
|
1013 |
}
|
1014 |
else if( $data[$i]['type'] == 'textfield' || $data[$i]['type'] == 'text' ) {
|
1015 |
-
$out .= $this->make_textfield( $title, $i, $data[$i]['size'], $data[$i]['default'], $data[$i]['hideKey'], $data[$i]['label'] );
|
1016 |
}
|
1017 |
else if( $data[$i]['type'] == 'checkbox' ) {
|
1018 |
$out .=
|
1019 |
-
$this->make_checkbox( $title, $i, $data[$i]['value'], $data[$i]['valueLabel'], $data[$i]['checked'], $data[$i]['hideKey'], $data[$i]['label'], $data[$i]['code'] );
|
1020 |
}
|
1021 |
else if( $data[$i]['type'] == 'radio' ) {
|
1022 |
$out .=
|
1023 |
$this->make_radio(
|
1024 |
-
$title, $i, explode( '#', $data[$i]['value'] ), explode( '#', $data[$i]['valueLabel'] ), $data[$i]['clearButton'], $data[$i]['default'], $data[$i]['hideKey'], $data[$i]['label'], $data[$i]['code'] );
|
1025 |
}
|
1026 |
else if( $data[$i]['type'] == 'select' ) {
|
1027 |
$out .=
|
1028 |
$this->make_select(
|
1029 |
-
$title, $i, explode( '#', $data[$i]['value'] ), explode( '#', $data[$i]['valueLabel'] ), $data[$i]['default'], $data[$i]['hideKey'], $data[$i]['label'], $data[$i]['code'] );
|
1030 |
}
|
1031 |
else if( $data[$i]['type'] == 'textarea' ) {
|
1032 |
if ( $options['tinyMCE'][$_REQUEST['post']][$this->sanitize_name($title)][$i] ) $data[$i]['rows'] = $options['tinyMCE'][$_REQUEST['post']][$this->sanitize_name($title)][$i];
|
1033 |
$out .=
|
1034 |
-
$this->make_textarea( $title, $i, $data[$i]['rows'], $data[$i]['cols'], $data[$i]['tinyMCE'], $data[$i]['mediaButton'], $data[$i]['default'], $data[$i]['hideKey'], $data[$i]['label'] );
|
1035 |
}
|
1036 |
}
|
1037 |
}
|
@@ -1134,24 +1281,50 @@ EOF;
|
|
1134 |
if(count($options['custom_fields'])>$options['posts'][$_REQUEST['post']] && $options['posts'][$_REQUEST['post']]) $init_id = $options['posts'][$_REQUEST['post']];
|
1135 |
else $init_id = 0;
|
1136 |
|
1137 |
-
$fields = $this->get_custom_fields( $init_id );
|
1138 |
-
if ( user_can_richedit() ) {
|
1139 |
-
foreach( $fields as $title => $data ) {
|
1140 |
-
for($i = 0; $i<count($data); $i++) {
|
1141 |
-
if( $data[$i][ 'type' ] == 'textarea' && $data[$i][ 'tinyMCE' ] ) {
|
1142 |
$out .= 'jQuery(document).ready(function() {' . "\n";
|
1143 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1144 |
$out .= ' if ( getUserSetting( "editor" ) == "html" ) {
|
1145 |
jQuery("#edButtonPreview").trigger("click"); }' . "\n";
|
1146 |
-
|
1147 |
$out .= ' if(wpTinyMCEConfig) if(wpTinyMCEConfig.defaultEditor == "html") { jQuery("#edButtonPreview").trigger("click"); }' . "\n";
|
1148 |
-
|
1149 |
-
$out .= '});' . "\n";
|
1150 |
break;
|
1151 |
-
|
1152 |
-
|
1153 |
-
|
1154 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1155 |
|
1156 |
$out .= 'var tinyMCEID = new Array();' . "\n" .
|
1157 |
'// ]]>' . "\n" .
|
@@ -1164,7 +1337,15 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";
|
|
1164 |
$body = $this->load_custom_field();
|
1165 |
|
1166 |
if ( count($options['custom_fields'])>1 ) {
|
1167 |
-
$out .= '<select id="custom_field_template_select" onchange="if(tinyMCEID.length) { for(i=0;i<tinyMCEID.length;i++) {tinyMCE.execCommand(\'mceRemoveControl\', false, tinyMCEID[i]);} tinyMCEID = new Array();};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1168 |
for ( $i=0; $i < count($options['custom_fields']); $i++ ) {
|
1169 |
if ( $i == $options['posts'][$_REQUEST['post']] ) {
|
1170 |
$out .= '<option value="' . $i . '" selected="selected">' . stripcslashes($options['custom_fields'][$i]['title']) . '</option>';
|
@@ -1179,6 +1360,14 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";
|
|
1179 |
$out .= '<div id="cft">';
|
1180 |
$out .= $body;
|
1181 |
$out .= '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1182 |
|
1183 |
if ( substr($wp_version, 0, 3) < '2.5' ) {
|
1184 |
$out .= '</div></fieldset></div>';
|
@@ -1224,6 +1413,9 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";
|
|
1224 |
if ( $options['custom_field_template_use_wpautop'] && $data[$i]['type'] == 'textarea' && !empty($meta_value) )
|
1225 |
$meta_value = wpautop($meta_value);
|
1226 |
if( isset( $meta_value ) && strlen( $meta_value ) ) {
|
|
|
|
|
|
|
1227 |
add_post_meta( $id, $title, $meta_value );
|
1228 |
if ( $data[$i]['insertTag'] == true ) $tags_input[] = $meta_value;
|
1229 |
|
@@ -1372,11 +1564,19 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";
|
|
1372 |
rsort($data[$key]);
|
1373 |
$replace_val = '<ul>';
|
1374 |
foreach ( $data[$key] as $val2 ) :
|
1375 |
-
$
|
|
|
|
|
|
|
|
|
1376 |
endforeach;
|
1377 |
$replace_val .= '</ul>';
|
1378 |
elseif ( count($data[$key]) == 1 ) :
|
1379 |
-
$
|
|
|
|
|
|
|
|
|
1380 |
else :
|
1381 |
$replace_val = '';
|
1382 |
endif;
|
@@ -1393,26 +1593,30 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";
|
|
1393 |
|
1394 |
$output = '<dl class="cft">' . "\n";
|
1395 |
foreach ( $fields as $key => $val ) :
|
1396 |
-
$
|
1397 |
-
if ($
|
1398 |
if ( $val[0]['sort'] == 'asc' )
|
1399 |
-
sort($
|
1400 |
elseif ( $val[0]['sort'] == 'desc' )
|
1401 |
-
rsort($
|
1402 |
foreach ( $val as $key2 => $val2 ) :
|
1403 |
$hide = '';
|
1404 |
if ( $val2['output'] == true ) :
|
|
|
|
|
|
|
|
|
1405 |
if ( $val2['hideKey'] == true ) $hide = ' class="hideKey"';
|
1406 |
if ( !empty($val2['label']) && $options['custom_field_template_replace_keys_by_labels'] )
|
1407 |
$key = stripcslashes($val2['label']);
|
1408 |
if ( $val2['type'] == 'checkbox' ) :
|
1409 |
-
if( in_array($val2['value'], $
|
1410 |
$output .= '<dt><span' . $hide . '>' . $key . '</span></dt>' . "\n";
|
1411 |
-
$output .= '<dd>' . $value
|
1412 |
endif;
|
1413 |
else :
|
1414 |
$output .= '<dt><span' . $hide . '>' . $key . '</span></dt>' . "\n";
|
1415 |
-
$output .= '<dd>' . $value
|
1416 |
endif;
|
1417 |
endif;
|
1418 |
endforeach;
|
@@ -1423,6 +1627,196 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";
|
|
1423 |
|
1424 |
return stripcslashes($output);
|
1425 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1426 |
}
|
1427 |
|
1428 |
$custom_field_template = new custom_field_template();
|
4 |
Plugin URI: http://wordpressgogo.com/development/custom-field-template.html
|
5 |
Description: This plugin adds the default custom fields on the Write Post/Page.
|
6 |
Author: Hiroaki Miyashita
|
7 |
+
Version: 1.0
|
8 |
Author URI: http://wordpressgogo.com/
|
9 |
*/
|
10 |
|
28 |
add_filter( 'media_send_to_editor', array(&$this, 'media_send_to_custom_field'), 15 );
|
29 |
add_filter( 'plugin_action_links', array(&$this, 'wpaq_filter_plugin_actions'), 10, 2 );
|
30 |
|
31 |
+
add_filter( 'the_content', array(&$this, 'custom_field_template_the_content') );
|
32 |
+
|
33 |
+
if ( $_REQUEST['cftsearch'] ) :
|
34 |
+
add_filter( 'posts_where', array(&$this, 'custom_field_template_posts_where') );
|
35 |
+
add_filter( 'posts_orderby', array(&$this, 'custom_field_template_posts_orderby') );
|
36 |
+
endif;
|
37 |
+
|
38 |
+
if ( function_exists('add_shortcode') ) :
|
39 |
add_shortcode( 'cft', array(&$this, 'output_custom_field_values') );
|
40 |
+
add_shortcode( 'cftsearch', array(&$this, 'search_custom_field_values') );
|
41 |
+
endif;
|
42 |
}
|
43 |
|
44 |
function custom_field_template_init() {
|
52 |
}
|
53 |
}
|
54 |
|
55 |
+
if ( is_user_logged_in() && isset($_REQUEST['post']) && $_REQUEST['page'] == 'custom-field-template/custom-field-template.php' && $_REQUEST['cft_mode'] == 'ajax' ) {
|
56 |
+
if ( $_REQUEST['post'] > 0 )
|
57 |
+
$this->edit_meta_value( $_REQUEST['post'] );
|
58 |
exit();
|
59 |
}
|
60 |
|
136 |
function custom_field_template_admin_head() {
|
137 |
global $wp_version;
|
138 |
|
139 |
+
if ( substr($wp_version, 0, 3) >= '2.7' && is_user_logged_in() && ( strstr($_SERVER['REQUEST_URI'], 'wp-admin/edit.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/edit-pages.php') ) && !strstr($_SERVER['REQUEST_URI'], 'page=') ) {
|
140 |
?>
|
141 |
<script type="text/javascript">
|
142 |
// <![CDATA[
|
210 |
inlineEditPost.cft_load = function (post_id) {
|
211 |
jQuery.ajax({type: 'GET', url: '?page=custom-field-template/custom-field-template.php&id=0&post='+post_id, success: function(html) {jQuery('#cft').html(html);}});
|
212 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
});
|
214 |
//-->
|
215 |
</script>
|
229 |
function add_manage_posts_custom_column($column_name, $post_id) {
|
230 |
$data = get_post_custom($post_id);
|
231 |
|
232 |
+
if( is_array($data) && $column_name == 'custom-fields' ) :
|
233 |
$flag = 0;
|
234 |
foreach($data as $key => $val) :
|
235 |
if ( substr($key, 0, 1) == '_' || !$val[0] ) continue;
|
334 |
|
335 |
function custom_field_template_admin_scripts() {
|
336 |
wp_enqueue_script( 'jquery' );
|
337 |
+
wp_enqueue_script( 'jquery-form' );
|
338 |
}
|
339 |
|
340 |
function install_custom_field_template_data() {
|
413 |
add_options_page(__('Custom Field Template', 'custom-field-template'), __('Custom Field Template', 'custom-field-template'), 8, basename(__FILE__), array(&$this, 'custom_field_template_admin'));
|
414 |
}
|
415 |
|
416 |
+
function custom_field_template_the_content($content) {
|
417 |
+
global $wp_query, $post;
|
418 |
+
$options = $this->get_custom_field_template_data();
|
419 |
+
|
420 |
+
if ( count($options['hook']) > 0 ) :
|
421 |
+
$categories = get_the_category();
|
422 |
+
$cats = array();
|
423 |
+
foreach( $categories as $val ) :
|
424 |
+
$cats[] = $val->cat_ID;
|
425 |
+
endforeach;
|
426 |
+
|
427 |
+
for ( $i=0; $i<count($options['hook']); $i++ ) :
|
428 |
+
if ( $options['hook'][$i]['category'] ) :
|
429 |
+
$needle = explode(',', $options['hook'][$i]['category']);
|
430 |
+
foreach ( $needle as $val ) :
|
431 |
+
if ( in_array($val, $cats ) ) :
|
432 |
+
if ( $options['hook'][$i]['position'] == 0 )
|
433 |
+
$content .= $options['hook'][$i]['content'];
|
434 |
+
else
|
435 |
+
$content = $options['hook'][$i]['content'] . $content;
|
436 |
+
break;
|
437 |
+
endif;
|
438 |
+
endforeach;
|
439 |
+
else :
|
440 |
+
if ( $options['hook'][$i]['position'] == 0 )
|
441 |
+
$content .= $options['hook'][$i]['content'];
|
442 |
+
else
|
443 |
+
$content = $options['hook'][$i]['content'] . $content;
|
444 |
+
endif;
|
445 |
+
endfor;
|
446 |
+
endif;
|
447 |
+
|
448 |
+
return $content;
|
449 |
+
}
|
450 |
+
|
451 |
function custom_field_template_admin() {
|
452 |
$options = $this->get_custom_field_template_data();
|
453 |
if($_POST["custom_field_template_set_options_submit"]) :
|
456 |
$options['custom_field_template_replace_keys_by_labels'] = $_POST['custom_field_template_replace_keys_by_labels'];
|
457 |
$options['custom_field_template_use_multiple_insert'] = $_POST['custom_field_template_use_multiple_insert'];
|
458 |
$options['custom_field_template_use_wpautop'] = $_POST['custom_field_template_use_wpautop'];
|
459 |
+
$options['custom_field_template_use_autosave'] = $_POST['custom_field_template_use_autosave'];
|
460 |
for($i=0;$i<count($_POST["custom_field_template_content"]);$i++) {
|
461 |
if( $_POST["custom_field_template_content"][$i] ) {
|
462 |
$options['custom_fields'][$j]['title'] = $_POST["custom_field_template_title"][$i];
|
463 |
$options['custom_fields'][$j]['content'] = $_POST["custom_field_template_content"][$i];
|
464 |
$options['custom_fields'][$j]['instruction'] = $_POST["custom_field_template_instruction"][$i];
|
465 |
+
$options['custom_fields'][$j]['category'] = $_POST["custom_field_template_category"][$i];
|
466 |
$j++;
|
467 |
}
|
468 |
}
|
488 |
}
|
489 |
update_option('custom_field_template_data', $options);
|
490 |
$message = __('Options updated.', 'custom-field-template');
|
491 |
+
elseif($_POST["custom_field_template_hook_submit"]) :
|
492 |
+
unset($options['hook']);
|
493 |
+
$j = 0;
|
494 |
+
for($i=0;$i<count($_POST["custom_field_template_hook_content"]);$i++) {
|
495 |
+
if( $_POST["custom_field_template_hook_content"][$i] ) {
|
496 |
+
$options['hook'][$j]['position'] = $_POST["custom_field_template_hook_position"][$i];
|
497 |
+
$options['hook'][$j]['content'] = $_POST["custom_field_template_hook_content"][$i];
|
498 |
+
$options['hook'][$j]['category'] = preg_replace('/\s/', '', $_POST["custom_field_template_hook_category"][$i]);
|
499 |
+
$j++;
|
500 |
+
}
|
501 |
+
}
|
502 |
+
update_option('custom_field_template_data', $options);
|
503 |
+
$message = __('Options updated.', 'custom-field-template');
|
504 |
elseif ($_POST['custom_field_template_unset_options_submit']) :
|
505 |
$this->install_custom_field_template_data();
|
506 |
$this->install_custom_field_template_css();
|
533 |
?>
|
534 |
<tr><td>
|
535 |
<p><strong>TEMPLATE #<?php echo $i; ?></strong></p>
|
536 |
+
<p><label for="custom_field_template_title[<?php echo $i; ?>]"><?php echo sprintf(__('Template Title', 'custom-field-template'), $i); ?></label>:<br />
|
537 |
<input type="text" name="custom_field_template_title[<?php echo $i; ?>]" id="custom_field_template_title[<?php echo $i; ?>]" value="<?php echo stripcslashes($options['custom_fields'][$i]['title']); ?>" size="60" /></p>
|
538 |
+
<p><label for="custom_field_template_instruction[<?php echo $i; ?>]"><a href="javascript:void(0);" onclick="jQuery(this).parent().next().next().toggle();"><?php echo sprintf(__('Template Instruction', 'custom-field-template'), $i); ?></a></label>:<br />
|
539 |
<textarea name="custom_field_template_instruction[<?php echo $i; ?>]" id="custom_field_template_instruction[<?php echo $i; ?>]" rows="5" cols="60"<?php if ( empty($options['custom_fields'][$i]['instruction']) ) : echo ' style="display:none;"'; endif; ?>><?php echo stripcslashes($options['custom_fields'][$i]['instruction']); ?></textarea></p>
|
540 |
+
<p><label for="custom_field_template_category[<?php echo $i; ?>]"><a href="javascript:void(0);" onclick="jQuery(this).parent().next().next().toggle();"><?php echo sprintf(__('Category ID (comma-deliminated)', 'custom-field-template'), $i); ?></a></label>:<br />
|
541 |
+
<input type="text" name="custom_field_template_category[<?php echo $i; ?>]" id="custom_field_template_category[<?php echo $i; ?>]" value="<?php echo stripcslashes($options['custom_fields'][$i]['category']); ?>" size="60"<?php if ( empty($options['custom_fields'][$i]['category']) ) : echo ' style="display:none;"'; endif; ?> /></p>
|
542 |
+
<p><label for="custom_field_template_content[<?php echo $i; ?>]"><?php echo sprintf(__('Template Content', 'custom-field-template'), $i); ?></label>:<br />
|
543 |
<textarea name="custom_field_template_content[<?php echo $i; ?>]" id="custom_field_template_content[<?php echo $i; ?>]" rows="10" cols="60"><?php echo stripcslashes($options['custom_fields'][$i]['content']); ?></textarea></p>
|
544 |
</td></tr>
|
545 |
<?php
|
560 |
</td>
|
561 |
</tr>
|
562 |
<tr><td>
|
563 |
+
<p><label for="custom_field_template_use_autosave"><?php _e('In case that you would like to save values automatically in switching templates', 'custom-field-template'); ?></label>:<br />
|
564 |
+
<input type="checkbox" name="custom_field_template_use_autosave" id="custom_field_template_use_autosave" value="1" <?php if ($options['custom_field_template_use_autosave']) { echo 'checked="checked"'; } ?> /> <?php _e('Use the auto save in switching templates', 'custom-field-template'); ?></p>
|
565 |
+
</td>
|
566 |
+
</tr>
|
567 |
+
<tr><td>
|
568 |
<p><input type="submit" name="custom_field_template_set_options_submit" value="<?php _e('Update Options »', 'custom-field-template'); ?>" class="button-primary" /></p>
|
569 |
</td></tr>
|
570 |
</tbody>
|
575 |
|
576 |
<div class="postbox closed">
|
577 |
<div class="handlediv" title="<?php _e('Click to toggle', 'custom-field-template'); ?>"><br /></div>
|
578 |
+
<h3><?php _e('ADMIN CSS', 'custom-field-template'); ?></h3>
|
579 |
<div class="inside">
|
580 |
<form method="post">
|
581 |
<table class="form-table" style="margin-bottom:5px;">
|
594 |
|
595 |
<div class="postbox closed">
|
596 |
<div class="handlediv" title="<?php _e('Click to toggle', 'meta-ext'); ?>"><br /></div>
|
597 |
+
<h3><?php _e('[cft] and [cftsearch] Shortcode Format', 'custom-field-template'); ?></h3>
|
598 |
<div class="inside">
|
599 |
<form method="post">
|
600 |
+
<p><?php _e('For [cft], [key] will be converted into the value of [key].', 'custom-field-template'); ?><br />
|
601 |
+
<?php _e('For [cftsearch], [key] will be converted into the input field.', 'custom-field-template'); ?></p>
|
602 |
<table class="form-table" style="margin-bottom:5px;">
|
603 |
<tbody>
|
604 |
<?php
|
625 |
<h3><?php _e('PHP CODE (Experimental Option)', 'custom-field-template'); ?></h3>
|
626 |
<div class="inside">
|
627 |
<form method="post" onsubmit="return confirm('<?php _e('Are you sure to save PHP codes? Please do it at your own risk.', 'custom-field-template'); ?>');">
|
628 |
+
<dl><dt><?php _e('For `text` and `textarea`, you must set $value as an string.', 'custom-field-template'); ?><br />
|
629 |
+
ex. `text` and `textarea`:</dt><dd>$value = 'Yes we can.';</dd></dl>
|
630 |
+
<dl><dt><?php _e('For `checkbox`, `radio`, and `select`, you must set $values as an array.', 'custom-field-template'); ?><br />
|
631 |
+
ex. `radio` and `select`:</dt><dd>$values = array('dog', 'cat', 'monkey'); $default = 'cat';</dd>
|
632 |
+
<dt>ex. `checkbox`:</dt><dd>$values = array('dog', 'cat', 'monkey'); $defaults = array('dog', 'cat');</dd></dl>
|
633 |
<table class="form-table" style="margin-bottom:5px;">
|
634 |
<tbody>
|
635 |
<?php
|
651 |
</div>
|
652 |
</div>
|
653 |
|
654 |
+
<div class="postbox closed">
|
655 |
+
<div class="handlediv" title="<?php _e('Click to toggle', 'meta-ext'); ?>"><br /></div>
|
656 |
+
<h3><?php _e('Auto Hook of `the_content()` (Experimental Option)', 'custom-field-template'); ?></h3>
|
657 |
+
<div class="inside">
|
658 |
+
<form method="post">
|
659 |
+
<table class="form-table" style="margin-bottom:5px;">
|
660 |
+
<tbody>
|
661 |
+
<?php
|
662 |
+
for ($i=0;$i<count($options['hook'])+1;$i++) :
|
663 |
+
?>
|
664 |
+
<tr><th><strong>HOOK #<?php echo $i; ?></strong></th></tr>
|
665 |
+
<tr><td>
|
666 |
+
<p><label for="custom_field_template_hook_position[<?php echo $i; ?>]"><?php echo sprintf(__('Position', 'custom-field-template'), $i); ?></label>:<br />
|
667 |
+
<input type="radio" name="custom_field_template_hook_position[<?php echo $i; ?>]" value="1" <?php if($options['hook'][$i]['position']==1) echo ' checked="checked"'; ?> /> <?php _e('Before the conetnt', 'custom-field-template'); ?>
|
668 |
+
<input type="radio" name="custom_field_template_hook_position[<?php echo $i; ?>]" value="0" <?php if($options['hook'][$i]['position']==0) echo ' checked="checked"'; ?> /> <?php _e('After the conetnt', 'custom-field-template'); ?>
|
669 |
+
</p>
|
670 |
+
<p><label for="custom_field_template_hook_category[<?php echo $i; ?>]"><?php echo sprintf(__('Category ID (comma-deliminated)', 'custom-field-template'), $i); ?></label>:<br />
|
671 |
+
<input type="text" name="custom_field_template_hook_category[<?php echo $i; ?>]" id="custom_field_template_hook_category[<?php echo $i; ?>]" value="<?php echo stripcslashes($options['hook'][$i]['category']); ?>" size="60" /></p>
|
672 |
+
<p><label for="custom_field_template_hook_content[<?php echo $i; ?>]"><?php echo sprintf(__('Content', 'custom-field-template'), $i); ?></label>:<br /><textarea name="custom_field_template_hook_content[<?php echo $i; ?>]" rows="5" cols="60"><?php echo stripcslashes($options['hook'][$i]['content']); ?></textarea></p>
|
673 |
+
</td></tr>
|
674 |
+
<?php
|
675 |
+
endfor;
|
676 |
+
?>
|
677 |
+
<tr><td>
|
678 |
+
<p><input type="submit" name="custom_field_template_hook_submit" value="<?php _e('Update Options »', 'custom-field-template'); ?>" class="button-primary" /></p>
|
679 |
+
</td></tr>
|
680 |
+
</tbody>
|
681 |
+
</table>
|
682 |
+
</form>
|
683 |
+
</div>
|
684 |
+
</div>
|
685 |
+
|
686 |
<div class="postbox closed">
|
687 |
<div class="handlediv" title="<?php _e('Click to toggle', 'custom-field-template'); ?>"><br /></div>
|
688 |
<h3><?php _e('Option List', 'custom-field-template'); ?></h3>
|
736 |
<th>mediaButton</th><td></td><td></td><td></td><td></td><td>mediaButton = true</td>
|
737 |
</tr>
|
738 |
<tr>
|
739 |
+
<th>code</th><td>code = 0</td><td>code = 0</td><td>code = 0</td><td>code = 0</td><td>code = 0</td>
|
740 |
+
</tr>
|
741 |
+
<tr>
|
742 |
+
<th>editCode</th><td>editCode = 0</td><td>editCode = 0</td><td>editCode = 0</td><td>editCode = 0</td><td>editCode = 0</td>
|
743 |
</tr>
|
744 |
<tr>
|
745 |
<th>level</th><td>level = 1</td><td>level = 3</td><td>level = 5</td><td>level = 7</td><td>level = 9</td>
|
751 |
<th>output</th><td>output = true</td><td>output = true</td><td>output = true</td><td>output = true</td><td>output = true</td>
|
752 |
</tr>
|
753 |
<tr>
|
754 |
+
<th>outputCode</th><td>outputCode = 0</td><td>outputCode = 0</td><td>outputCode = 0</td><td>outputCode = 0</td><td>outputCode = 0</td>
|
755 |
+
</tr>
|
756 |
+
<tr>
|
757 |
<th>blank</th><td>blank = true</td><td>blank = true</td><td>blank = true</td><td>blank = true</td><td>blank = true</td>
|
758 |
</tr>
|
759 |
<tr>
|
760 |
<th>sort</th><td>sort = asc</td><td>sort = desc</td><td>sort = asc</td><td>sort = desc</td><td>sort = asc</td>
|
761 |
</tr>
|
762 |
+
<tr>
|
763 |
+
<th>search</th><td>search = true</td><td>search = true</td><td>search = true</td><td>search = true</td><td>search = true</td>
|
764 |
+
</tr>
|
765 |
+
<tr>
|
766 |
+
<th>class</th><td>class = text</td><td>class = checkbox</td><td>class = radio</td><td>class = select</td><td>class = textarea</td>
|
767 |
+
</tr>
|
768 |
</tbody>
|
769 |
</table>
|
770 |
</div>
|
801 |
</form>
|
802 |
</div>
|
803 |
</div>
|
804 |
+
|
805 |
+
<div class="postbox closed">
|
806 |
+
<div class="handlediv" title="<?php _e('Click to toggle', 'custom-field-template'); ?>"><br /></div>
|
807 |
+
<h3><?php _e('Donation', 'custom-field-template'); ?></h3>
|
808 |
+
<div class="inside">
|
809 |
+
<p><?php _e('If you liked this plugin, please make a donation via paypal! Any amount is welcome. Your support is much appreciated.', 'custom-field-template'); ?></p>
|
810 |
+
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
811 |
+
<table class="form-table" style="margin-bottom:5px;">
|
812 |
+
<tbody>
|
813 |
+
<tr><td>
|
814 |
+
<input type="hidden" name="cmd" value="_s-xclick" />
|
815 |
+
<input type="hidden" name="hosted_button_id" value="100156" />
|
816 |
+
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG_global.gif" border="0" name="submit" alt="" style="border:0;" />
|
817 |
+
<img alt="" border="0" src="https://www.paypal.com/ja_JP/i/scr/pixel.gif" width="1" height="1" />
|
818 |
+
</td></tr>
|
819 |
+
</tbody>
|
820 |
+
</table>
|
821 |
+
</form>
|
822 |
+
</div>
|
823 |
+
</div>
|
824 |
</div>
|
825 |
|
826 |
+
|
827 |
<script type="text/javascript">
|
828 |
// <![CDATA[
|
829 |
<?php if ( version_compare( substr($wp_version, 0, 3), '2.7', '<' ) ) { ?>
|
857 |
return $custom_fields;
|
858 |
}
|
859 |
|
860 |
+
function make_textfield( $name, $sid, $size = 25, $default, $hideKey, $label, $code, $class ) {
|
861 |
$options = $this->get_custom_field_template_data();
|
862 |
|
863 |
$title = $name;
|
864 |
$name = $this->sanitize_name( $name );
|
865 |
+
|
866 |
+
if ( is_numeric($code) ) :
|
867 |
+
eval(stripcslashes($options['php'][$code]));
|
868 |
+
endif;
|
869 |
|
870 |
if( isset( $_REQUEST[ 'post' ] ) ) {
|
871 |
$value = get_post_meta( $_REQUEST[ 'post' ], $title );
|
876 |
$value = $default;
|
877 |
}
|
878 |
|
879 |
+
if ( $enforced_value ) :
|
880 |
+
$value = $enforced_value;
|
881 |
+
endif;
|
882 |
+
|
883 |
if ( $hideKey == true ) $hide = ' class="hideKey"';
|
884 |
+
if ( !empty($class) ) $class = ' class="' . $class . '"';
|
885 |
|
886 |
if ( !empty($label) && $options['custom_field_template_replace_keys_by_labels'] )
|
887 |
$title = stripcslashes($label);
|
893 |
|
894 |
if ( !empty($label) && !$options['custom_field_template_replace_keys_by_labels'] )
|
895 |
$out .= '<p class="label">' . stripcslashes($label) . '</p>';
|
896 |
+
$out .= '<input id="' . $name . '" name="' . $name . '[]" value="' . attribute_escape($value) . '" type="text" size="' . $size . '"' . $class . ' /></dd>' .
|
897 |
'</dl>';
|
898 |
return $out;
|
899 |
}
|
900 |
|
901 |
+
function make_checkbox( $name, $sid, $value, $valueLabel, $checked, $hideKey, $label, $code, $class ) {
|
902 |
$options = $this->get_custom_field_template_data();
|
903 |
|
904 |
$title = $name;
|
916 |
}
|
917 |
|
918 |
if ( $hideKey == true ) $hide = ' class="hideKey"';
|
919 |
+
if ( !empty($class) ) $class = ' class="' . $class . '"';
|
920 |
+
|
921 |
if ( !empty($label) && $options['custom_field_template_replace_keys_by_labels'] )
|
922 |
$title = stripcslashes($label);
|
923 |
|
928 |
|
929 |
if ( !empty($label) && !$options['custom_field_template_replace_keys_by_labels'] )
|
930 |
$out .= '<p class="label">' . stripcslashes($label) . '</p>';
|
931 |
+
$out .= '<label for="' . $id . '" class="selectit"><input name="' . $name . '[' . $sid . ']" value="' . attribute_escape($value) . '" ' . $checked . ' type="checkbox"' . $class . ' /> ';
|
932 |
if ( $valueLabel )
|
933 |
$out .= stripcslashes($valueLabel);
|
934 |
else
|
940 |
return $out;
|
941 |
}
|
942 |
|
943 |
+
function make_radio( $name, $sid, $values, $valueLabel, $clearButton, $default, $hideKey, $label, $code, $class ) {
|
944 |
$options = $this->get_custom_field_template_data();
|
945 |
|
946 |
$title = $name;
|
958 |
}
|
959 |
|
960 |
if ( $hideKey == true ) $hide = ' class="hideKey"';
|
961 |
+
if ( !empty($class) ) $class = ' class="' . $class . '"';
|
962 |
|
963 |
if ( !empty($label) && $options['custom_field_template_replace_keys_by_labels'] )
|
964 |
$title = stripcslashes($label);
|
986 |
$checked = ( trim( $val ) == trim( $selected ) ) ? 'checked="checked"' : '';
|
987 |
|
988 |
$out .=
|
989 |
+
'<label for="' . $id . '" class="selectit"><input id="' . $id . '" name="' . $name . '[' . $sid . ']" value="' . attribute_escape($val) . '" ' . $checked . ' type="radio"' . $class . ' /> ';
|
990 |
if ( $valueLabel[$i] )
|
991 |
$out .= stripcslashes($valueLabel[$i]);
|
992 |
else
|
999 |
return $out;
|
1000 |
}
|
1001 |
|
1002 |
+
function make_select( $name, $sid, $values, $valueLabel, $default, $hideKey, $label, $code, $class ) {
|
1003 |
$options = $this->get_custom_field_template_data();
|
1004 |
|
1005 |
$title = $name;
|
1019 |
}
|
1020 |
|
1021 |
if ( $hideKey == true ) $hide = ' class="hideKey"';
|
1022 |
+
if ( !empty($class) ) $class = ' class="' . $class . '"';
|
1023 |
|
1024 |
if ( !empty($label) && $options['custom_field_template_replace_keys_by_labels'] )
|
1025 |
$title = stripcslashes($label);
|
1031 |
|
1032 |
if ( !empty($label) && !$options['custom_field_template_replace_keys_by_labels'] )
|
1033 |
$out .= '<p class="label">' . stripcslashes($label) . '</p>';
|
1034 |
+
$out .= '<select name="' . $name . '[]"' . $class . '>' .
|
1035 |
'<option value="" >Select</option>';
|
1036 |
|
1037 |
$i = 0;
|
1051 |
return $out;
|
1052 |
}
|
1053 |
|
1054 |
+
function make_textarea( $name, $sid, $rows, $cols, $tinyMCE, $mediaButton, $default, $hideKey, $label, $code, $class ) {
|
1055 |
$options = $this->get_custom_field_template_data();
|
1056 |
|
1057 |
global $wp_version;
|
1059 |
$title = $name;
|
1060 |
$name = $this->sanitize_name( $name );
|
1061 |
|
1062 |
+
if ( is_numeric($code) ) :
|
1063 |
+
eval(stripcslashes($options['php'][$code]));
|
1064 |
+
endif;
|
1065 |
+
|
1066 |
if( isset( $_REQUEST[ 'post' ] ) ) {
|
1067 |
$value = get_post_meta( $_REQUEST[ 'post' ], $title );
|
1068 |
$value = $value[ $sid ];
|
1116 |
}
|
1117 |
|
1118 |
if ( $hideKey == true ) $hide = ' class="hideKey"';
|
1119 |
+
if ( !empty($class) ) $class = ' class="' . $class . '"';
|
1120 |
|
1121 |
if ( !empty($label) && $options['custom_field_template_replace_keys_by_labels'] )
|
1122 |
$title = stripcslashes($label);
|
1128 |
|
1129 |
if ( !empty($label) && !$options['custom_field_template_replace_keys_by_labels'] )
|
1130 |
$out .= '<p class="label">' . stripcslashes($label) . '</p>';
|
1131 |
+
$out .= '<textarea id="' . $name . $rand . '" name="' . $name . '[' . $sid . ']" rows="' .$rows. '" cols="' . $cols . '" style="color:#000000"' . $class . '>' . attribute_escape($value) . '</textarea><input type="hidden" name="'.$name.'_rand['.$sid.']" value="'.$rand.'" /></dd>' .
|
1132 |
'</dl>';
|
1133 |
return $out;
|
1134 |
}
|
1159 |
$out .= '</div><div>';
|
1160 |
}
|
1161 |
else if( $data[$i]['type'] == 'textfield' || $data[$i]['type'] == 'text' ) {
|
1162 |
+
$out .= $this->make_textfield( $title, $i, $data[$i]['size'], $data[$i]['default'], $data[$i]['hideKey'], $data[$i]['label'], $data[$i]['code'], $data[$i]['class'] );
|
1163 |
}
|
1164 |
else if( $data[$i]['type'] == 'checkbox' ) {
|
1165 |
$out .=
|
1166 |
+
$this->make_checkbox( $title, $i, $data[$i]['value'], $data[$i]['valueLabel'], $data[$i]['checked'], $data[$i]['hideKey'], $data[$i]['label'], $data[$i]['code'], $data[$i]['class'] );
|
1167 |
}
|
1168 |
else if( $data[$i]['type'] == 'radio' ) {
|
1169 |
$out .=
|
1170 |
$this->make_radio(
|
1171 |
+
$title, $i, explode( '#', $data[$i]['value'] ), explode( '#', $data[$i]['valueLabel'] ), $data[$i]['clearButton'], $data[$i]['default'], $data[$i]['hideKey'], $data[$i]['label'], $data[$i]['code'], $data[$i]['class'] );
|
1172 |
}
|
1173 |
else if( $data[$i]['type'] == 'select' ) {
|
1174 |
$out .=
|
1175 |
$this->make_select(
|
1176 |
+
$title, $i, explode( '#', $data[$i]['value'] ), explode( '#', $data[$i]['valueLabel'] ), $data[$i]['default'], $data[$i]['hideKey'], $data[$i]['label'], $data[$i]['code'], $data[$i]['class'] );
|
1177 |
}
|
1178 |
else if( $data[$i]['type'] == 'textarea' ) {
|
1179 |
if ( $options['tinyMCE'][$_REQUEST['post']][$this->sanitize_name($title)][$i] ) $data[$i]['rows'] = $options['tinyMCE'][$_REQUEST['post']][$this->sanitize_name($title)][$i];
|
1180 |
$out .=
|
1181 |
+
$this->make_textarea( $title, $i, $data[$i]['rows'], $data[$i]['cols'], $data[$i]['tinyMCE'], $data[$i]['mediaButton'], $data[$i]['default'], $data[$i]['hideKey'], $data[$i]['label'], $data[$i]['code'], $data[$i]['class'] );
|
1182 |
}
|
1183 |
}
|
1184 |
}
|
1281 |
if(count($options['custom_fields'])>$options['posts'][$_REQUEST['post']] && $options['posts'][$_REQUEST['post']]) $init_id = $options['posts'][$_REQUEST['post']];
|
1282 |
else $init_id = 0;
|
1283 |
|
|
|
|
|
|
|
|
|
|
|
1284 |
$out .= 'jQuery(document).ready(function() {' . "\n";
|
1285 |
+
|
1286 |
+
$fields = $this->get_custom_fields( $init_id );
|
1287 |
+
if ( user_can_richedit() ) :
|
1288 |
+
foreach( $fields as $title => $data ) :
|
1289 |
+
for($i = 0; $i<count($data); $i++) :
|
1290 |
+
if( $data[$i][ 'type' ] == 'textarea' && $data[$i][ 'tinyMCE' ] ) :
|
1291 |
+
if ( substr($wp_version, 0, 3) >= '2.7' ) :
|
1292 |
$out .= ' if ( getUserSetting( "editor" ) == "html" ) {
|
1293 |
jQuery("#edButtonPreview").trigger("click"); }' . "\n";
|
1294 |
+
else :
|
1295 |
$out .= ' if(wpTinyMCEConfig) if(wpTinyMCEConfig.defaultEditor == "html") { jQuery("#edButtonPreview").trigger("click"); }' . "\n";
|
1296 |
+
endif;
|
|
|
1297 |
break;
|
1298 |
+
endif;
|
1299 |
+
endfor;
|
1300 |
+
endforeach;
|
1301 |
+
endif;
|
1302 |
+
|
1303 |
+
if ( $options['custom_fields'] ) :
|
1304 |
+
foreach ( $options['custom_fields'] as $key => $val ) :
|
1305 |
+
if ( $val['category'] ) :
|
1306 |
+
$val['category'] = preg_replace('/\s/', '', $val['category']);
|
1307 |
+
$categories = explode(',', $val['category']);
|
1308 |
+
foreach($categories as $cat_id) :
|
1309 |
+
if ( is_numeric($cat_id) ) :
|
1310 |
+
$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 = new Array();};';
|
1311 |
+
if ( $options['custom_field_template_use_autosave'] ) :
|
1312 |
+
$out .= 'var fields = jQuery(\'#cft :input\').fieldSerialize();';
|
1313 |
+
$out .= 'jQuery.ajax({type: \'POST\', url: \'?page=custom-field-template/custom-field-template.php&cft_mode=ajax&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&id=' . $key . '&post=\'+jQuery(\'#post_ID\').val(), success: function(html) {jQuery(\'#cft\').html(html);}});}});';
|
1314 |
+
else :
|
1315 |
+
$out .= ' jQuery(\'#custom_field_template_select\').val(\'' . $key . '\');jQuery.ajax({type: \'GET\', url: \'?page=custom-field-template/custom-field-template.php&id=' . $key . '&post=\'+jQuery(\'#post_ID\').val(), success: function(html) {jQuery(\'#cft\').html(html);}});';
|
1316 |
+
endif;
|
1317 |
+
|
1318 |
+
$out .= ' }});' . "\n";
|
1319 |
+
endif;
|
1320 |
+
endforeach;
|
1321 |
+
endif;
|
1322 |
+
endforeach;
|
1323 |
+
endif;
|
1324 |
+
$out .= ' jQuery(\'#cftloading_img\').ajaxStart(function() { jQuery(this).show();});';
|
1325 |
+
$out .= ' jQuery(\'#cftloading_img\').ajaxStop(function() { jQuery(this).hide();});';
|
1326 |
+
$out .= '});' . "\n";
|
1327 |
+
|
1328 |
|
1329 |
$out .= 'var tinyMCEID = new Array();' . "\n" .
|
1330 |
'// ]]>' . "\n" .
|
1337 |
$body = $this->load_custom_field();
|
1338 |
|
1339 |
if ( count($options['custom_fields'])>1 ) {
|
1340 |
+
$out .= '<select id="custom_field_template_select" onchange="if(tinyMCEID.length) { for(i=0;i<tinyMCEID.length;i++) {tinyMCE.execCommand(\'mceRemoveControl\', false, tinyMCEID[i]);} tinyMCEID = new Array();};';
|
1341 |
+
$out .= 'var cftloading_select = function() {jQuery.ajax({type: \'GET\', url: \'?page=custom-field-template/custom-field-template.php&id=\'+jQuery(\'#custom_field_template_select\').val()+\'&post=\'+jQuery(\'#post_ID\').val(), success: function(html) {jQuery(\'#cft\').html(html);}});};';
|
1342 |
+
if ( $options['custom_field_template_use_autosave'] ) :
|
1343 |
+
$out .= 'var fields = jQuery(\'#cft :input\').fieldSerialize();';
|
1344 |
+
$out .= 'jQuery.ajax({type: \'POST\', url: \'?page=custom-field-template/custom-field-template.php&cft_mode=ajax&post=\'+jQuery(\'#post_ID\').val()+\'&custom-field-template-verify-key=\'+jQuery(\'#custom-field-template-verify-key\').val()+\'&\'+fields, success: cftloading_select});';
|
1345 |
+
else :
|
1346 |
+
$out .= 'cftloading_select();';
|
1347 |
+
endif;
|
1348 |
+
$out .= '">';
|
1349 |
for ( $i=0; $i < count($options['custom_fields']); $i++ ) {
|
1350 |
if ( $i == $options['posts'][$_REQUEST['post']] ) {
|
1351 |
$out .= '<option value="' . $i . '" selected="selected">' . stripcslashes($options['custom_fields'][$i]['title']) . '</option>';
|
1360 |
$out .= '<div id="cft">';
|
1361 |
$out .= $body;
|
1362 |
$out .= '</div>';
|
1363 |
+
|
1364 |
+
$out .= '<div style="position:absolute; top:30px; right:5px;">';
|
1365 |
+
$out .= '<img class="waiting" style="display:none; vertical-align:middle;" src="images/loading.gif" alt="" id="cftloading_img" /> ';
|
1366 |
+
$out .= '<input type="button" value="' . __('Save', 'custom-field-template') . '" onclick="';
|
1367 |
+
$out .= 'var fields = jQuery(\'#cft :input\').fieldSerialize();';
|
1368 |
+
$out .= 'jQuery.ajax({type: \'POST\', url: \'?page=custom-field-template/custom-field-template.php&cft_mode=ajax&post=\'+jQuery(\'#post_ID\').val()+\'&custom-field-template-verify-key=\'+jQuery(\'#custom-field-template-verify-key\').val()+\'&\'+fields});';
|
1369 |
+
$out .= '" class="button" style="vertical-align:middle;" />';
|
1370 |
+
$out .= '</div>';
|
1371 |
|
1372 |
if ( substr($wp_version, 0, 3) < '2.5' ) {
|
1373 |
$out .= '</div></fieldset></div>';
|
1413 |
if ( $options['custom_field_template_use_wpautop'] && $data[$i]['type'] == 'textarea' && !empty($meta_value) )
|
1414 |
$meta_value = wpautop($meta_value);
|
1415 |
if( isset( $meta_value ) && strlen( $meta_value ) ) {
|
1416 |
+
if ( is_numeric($data[$i]['editCode']) ) :
|
1417 |
+
eval(stripcslashes($options['php'][$data[$i]['editCode']]));
|
1418 |
+
endif;
|
1419 |
add_post_meta( $id, $title, $meta_value );
|
1420 |
if ( $data[$i]['insertTag'] == true ) $tags_input[] = $meta_value;
|
1421 |
|
1564 |
rsort($data[$key]);
|
1565 |
$replace_val = '<ul>';
|
1566 |
foreach ( $data[$key] as $val2 ) :
|
1567 |
+
$value = $val2;
|
1568 |
+
if ( is_numeric($val[0]['outputCode']) ) :
|
1569 |
+
eval(stripcslashes($options['php'][$val[0]['outputCode']]));
|
1570 |
+
endif;
|
1571 |
+
$replace_val .= '<li>'.$value.'</li>';
|
1572 |
endforeach;
|
1573 |
$replace_val .= '</ul>';
|
1574 |
elseif ( count($data[$key]) == 1 ) :
|
1575 |
+
$value = $data[$key][0];
|
1576 |
+
if ( is_numeric($val[0]['outputCode']) ) :
|
1577 |
+
eval(stripcslashes($options['php'][$val[0]['outputCode']]));
|
1578 |
+
endif;
|
1579 |
+
$replace_val = $value;
|
1580 |
else :
|
1581 |
$replace_val = '';
|
1582 |
endif;
|
1593 |
|
1594 |
$output = '<dl class="cft">' . "\n";
|
1595 |
foreach ( $fields as $key => $val ) :
|
1596 |
+
$values = get_post_meta( $post_id, $key );
|
1597 |
+
if ($values):
|
1598 |
if ( $val[0]['sort'] == 'asc' )
|
1599 |
+
sort($values);
|
1600 |
elseif ( $val[0]['sort'] == 'desc' )
|
1601 |
+
rsort($values);
|
1602 |
foreach ( $val as $key2 => $val2 ) :
|
1603 |
$hide = '';
|
1604 |
if ( $val2['output'] == true ) :
|
1605 |
+
$value = $values[$key2];
|
1606 |
+
if ( is_numeric($val2['outputCode']) ) :
|
1607 |
+
eval(stripcslashes($options['php'][$val2['outputCode']]));
|
1608 |
+
endif;
|
1609 |
if ( $val2['hideKey'] == true ) $hide = ' class="hideKey"';
|
1610 |
if ( !empty($val2['label']) && $options['custom_field_template_replace_keys_by_labels'] )
|
1611 |
$key = stripcslashes($val2['label']);
|
1612 |
if ( $val2['type'] == 'checkbox' ) :
|
1613 |
+
if( in_array($val2['value'], $values) ) :
|
1614 |
$output .= '<dt><span' . $hide . '>' . $key . '</span></dt>' . "\n";
|
1615 |
+
$output .= '<dd>' . $value . '</dd>' . "\n";
|
1616 |
endif;
|
1617 |
else :
|
1618 |
$output .= '<dt><span' . $hide . '>' . $key . '</span></dt>' . "\n";
|
1619 |
+
$output .= '<dd>' . $value . '</dd>' . "\n";
|
1620 |
endif;
|
1621 |
endif;
|
1622 |
endforeach;
|
1627 |
|
1628 |
return stripcslashes($output);
|
1629 |
}
|
1630 |
+
|
1631 |
+
function search_custom_field_values($attr) {
|
1632 |
+
global $post;
|
1633 |
+
$options = $this->get_custom_field_template_data();
|
1634 |
+
|
1635 |
+
extract(shortcode_atts(array(
|
1636 |
+
'template' => 0,
|
1637 |
+
'format' => ''
|
1638 |
+
), $attr));
|
1639 |
+
|
1640 |
+
|
1641 |
+
if ( is_numeric($format) && $output = $options['shortcode_format'][$format] ) :
|
1642 |
+
$output = '<form method="get" action="/" id="cftsearch">' . "\n" . $output;
|
1643 |
+
|
1644 |
+
$count = count($options['custom_fields']);
|
1645 |
+
if ( $count ) :
|
1646 |
+
for ($i=0;$i<$count;$i++) :
|
1647 |
+
$fields = $this->get_custom_fields( $i );
|
1648 |
+
foreach ( $fields as $key => $val ) :
|
1649 |
+
$replace_val = "";
|
1650 |
+
switch ( $val[0]['type'] ) :
|
1651 |
+
case 'text':
|
1652 |
+
case 'textarea':
|
1653 |
+
$replace_val .= '<input type="text" name="cftsearch[' . urlencode($key) . ']" value="' . $_REQUEST['cftsearch'][urlencode($key)] . '" />';
|
1654 |
+
break;
|
1655 |
+
case 'checkbox':
|
1656 |
+
if ( count($val) > 1 ) :
|
1657 |
+
$replace_val .= '<ul>';
|
1658 |
+
foreach( $val as $val2 ) :
|
1659 |
+
$replace_val .= '<li><input type="checkbox" name="cftsearch[' . urlencode($key) . ']" value="' . attribute_escape($val2['value']) . '" /> ';
|
1660 |
+
if ( $val2['valueLabel'] )
|
1661 |
+
$replace_val .= stripcslashes($val2['valueLabel']);
|
1662 |
+
else
|
1663 |
+
$replace_val .= stripcslashes($val2['value']);
|
1664 |
+
$replace_val .= '</li>';
|
1665 |
+
endforeach;
|
1666 |
+
else :
|
1667 |
+
$replace_val .= '<input type="checkbox" name="cftsearch[' . urlencode($key) . ']" value="' . attribute_escape($val[0]['value']) . '" /> ';
|
1668 |
+
if ( $val[0]['valueLabel'] )
|
1669 |
+
$replace_val .= stripcslashes($val[0]['valueLabel']);
|
1670 |
+
else
|
1671 |
+
$replace_val .= stripcslashes($val[0]['value']);
|
1672 |
+
endif;
|
1673 |
+
break;
|
1674 |
+
case 'radio':
|
1675 |
+
$values = explode( '#', $val[0]['value'] );
|
1676 |
+
$valueLabels = explode( '#', $val[0]['valueLabel'] );
|
1677 |
+
$j=0;
|
1678 |
+
foreach ( $values as $metaval ) :
|
1679 |
+
$metaval = trim($metaval);
|
1680 |
+
$replace_val .= '<input type="radio" name="cftsearch[' . urlencode($key) . ']" value="' . attribute_escape($metaval) . '" /> ';
|
1681 |
+
if ( $val[0]['valueLabel'] )
|
1682 |
+
$replace_val .= stripcslashes(trim($valueLabels[$j]));
|
1683 |
+
else
|
1684 |
+
$replace_val .= stripcslashes($metaval);
|
1685 |
+
$j++;
|
1686 |
+
endforeach;
|
1687 |
+
break;
|
1688 |
+
case 'select':
|
1689 |
+
$values = explode( '#', $val[0]['value'] );
|
1690 |
+
$valueLabels = explode( '#', $val[0]['valueLabel'] );
|
1691 |
+
$replace_val .= '<select name="cftsearch[' . urlencode($key) . ']">';
|
1692 |
+
$replace_val .= '<option value=""></option>';
|
1693 |
+
$j=0;
|
1694 |
+
foreach ( $values as $metaval ) :
|
1695 |
+
$metaval = trim($metaval);
|
1696 |
+
if ( $_REQUEST['cftsearch'][urlencode($key)] == $metaval ) $selected = ' selected="selected"';
|
1697 |
+
else $selected = "";
|
1698 |
+
$replace_val .= '<option value="' . attribute_escape($metaval) . '"' . $selected . '>';
|
1699 |
+
if ( $val[0]['valueLabel'] )
|
1700 |
+
$replace_val .= stripcslashes(trim($valueLabels[$j]));
|
1701 |
+
else
|
1702 |
+
$replace_val .= stripcslashes($metaval);
|
1703 |
+
$replace_val .= '</option>' . "\n";
|
1704 |
+
$j++;
|
1705 |
+
endforeach;
|
1706 |
+
$replace_val .= '</select>' . "\n";
|
1707 |
+
break;
|
1708 |
+
endswitch;
|
1709 |
+
|
1710 |
+
$key = preg_quote($key, '/');
|
1711 |
+
$output = preg_replace('/\['.$key.'\]/', $replace_val, $output);
|
1712 |
+
endforeach;
|
1713 |
+
endfor;
|
1714 |
+
endif;
|
1715 |
+
|
1716 |
+
$output .= '<p><input type="submit" name="cftsearch_submit" value="' . __('Search »', 'custom-field-template') . '" /></p>' . "\n";
|
1717 |
+
$output .= '</form>' . "\n";
|
1718 |
+
else :
|
1719 |
+
$fields = $this->get_custom_fields( $template );
|
1720 |
+
|
1721 |
+
if ( $fields == null )
|
1722 |
+
return;
|
1723 |
+
|
1724 |
+
$output = '<form method="get" action="/" id="cftsearch">' . "\n";
|
1725 |
+
foreach( $fields as $key => $val) :
|
1726 |
+
if ( $val[0]['search'] == true ) :
|
1727 |
+
if ( !empty($val[0]['label']) && $options['custom_field_template_replace_keys_by_labels'] )
|
1728 |
+
$key = stripcslashes($val[0]['label']);
|
1729 |
+
$output .= '<dl>' ."\n";
|
1730 |
+
$output .= '<dt><label>' . $key . '</label></dt>' ."\n";
|
1731 |
+
foreach ( $val as $key2 => $val2 ) :
|
1732 |
+
switch ( $val2['type'] ) :
|
1733 |
+
case 'text':
|
1734 |
+
case 'textarea':
|
1735 |
+
$output .= '<dd><input type="text" name="cftsearch[' . urlencode($key) . ']" value="' . $_REQUEST['cftsearch'][urlencode($key)] . '" /></dd>';
|
1736 |
+
break;
|
1737 |
+
case 'checkbox':
|
1738 |
+
$output .= '<dd><input type="checkbox" name="cftsearch[' . urlencode($key) . ']" value="' . attribute_escape($val2['value']) . '" /> ';
|
1739 |
+
if ( $val2['valueLabel'] )
|
1740 |
+
$output .= stripcslashes($val2['valueLabel']);
|
1741 |
+
else
|
1742 |
+
$output .= stripcslashes($val2['value']);
|
1743 |
+
$output .= '</dd>' . "\n";
|
1744 |
+
break;
|
1745 |
+
case 'radio':
|
1746 |
+
$values = explode( '#', $val2['value'] );
|
1747 |
+
$valueLabels = explode( '#', $val2['valueLabel'] );
|
1748 |
+
$output .= '<dd>';
|
1749 |
+
$i=0;
|
1750 |
+
foreach ( $values as $metaval ) :
|
1751 |
+
$metaval = trim($metaval);
|
1752 |
+
$output .= '<input type="radio" name="cftsearch[' . urlencode($key) . ']" value="' . attribute_escape($metaval) . '" /> ';
|
1753 |
+
if ( $val2['valueLabel'] )
|
1754 |
+
$output .= stripcslashes(trim($valueLabels[$i]));
|
1755 |
+
else
|
1756 |
+
$output .= stripcslashes($metaval);
|
1757 |
+
$i++;
|
1758 |
+
endforeach;
|
1759 |
+
$output .= '</dd>' . "\n";
|
1760 |
+
break;
|
1761 |
+
case 'select':
|
1762 |
+
$values = explode( '#', $val2['value'] );
|
1763 |
+
$valueLabels = explode( '#', $val2['valueLabel'] );
|
1764 |
+
$output .= '<dd><select name="cftsearch[' . urlencode($key) . ']">';
|
1765 |
+
$output .= '<option value=""></option>';
|
1766 |
+
$i=0;
|
1767 |
+
foreach ( $values as $metaval ) :
|
1768 |
+
$metaval = trim($metaval);
|
1769 |
+
if ( $_REQUEST['cftsearch'][urlencode($key)] == $metaval ) $selected = ' selected="selected"';
|
1770 |
+
else $selected = "";
|
1771 |
+
$output .= '<option value="' . attribute_escape($metaval) . '"' . $selected . '>';
|
1772 |
+
if ( $val2['valueLabel'] )
|
1773 |
+
$output .= stripcslashes(trim($valueLabels[$i]));
|
1774 |
+
else
|
1775 |
+
$output .= stripcslashes($metaval);
|
1776 |
+
$output .= '</option>' . "\n";
|
1777 |
+
$i++;
|
1778 |
+
endforeach;
|
1779 |
+
$output .= '</select></dd>' . "\n";
|
1780 |
+
break;
|
1781 |
+
endswitch;
|
1782 |
+
endforeach;
|
1783 |
+
$output .= '</dl>' ."\n";
|
1784 |
+
endif;
|
1785 |
+
endforeach;
|
1786 |
+
$output .= '<p><input type="submit" name="cftsearch_submit" value="' . __('Search »', 'custom-field-template') . '" /></p>' . "\n";
|
1787 |
+
$output .= '</form>' . "\n";
|
1788 |
+
endif;
|
1789 |
+
|
1790 |
+
return stripcslashes($output);
|
1791 |
+
}
|
1792 |
+
|
1793 |
+
function custom_field_template_posts_where($where) {
|
1794 |
+
global $wp_query, $wp_version, $wpdb;
|
1795 |
+
|
1796 |
+
if ( isset($_REQUEST['ss']) ) :
|
1797 |
+
$wp_query->query_vars['s'] = $_REQUEST['ss'];
|
1798 |
+
endif;
|
1799 |
+
|
1800 |
+
if ( is_array($_REQUEST['cftsearch']) ) :
|
1801 |
+
foreach ( $_REQUEST['cftsearch'] as $key => $val ) :
|
1802 |
+
if ( $val ) :
|
1803 |
+
$where .= " AND ROW(ID,1) IN (SELECT post_id,count(post_id) FROM wp_postmeta WHERE (" . $wpdb->postmeta . ".meta_key = '" . urldecode($key) . "' AND " . $wpdb->postmeta . ".meta_value LIKE '%" . $val . "%') GROUP BY post_id) ";
|
1804 |
+
endif;
|
1805 |
+
endforeach;
|
1806 |
+
endif;
|
1807 |
+
|
1808 |
+
return $where;
|
1809 |
+
}
|
1810 |
+
|
1811 |
+
function custom_field_template_posts_orderby($orderby) {
|
1812 |
+
$orderby = $_REQUEST['custom_f_orderby'];
|
1813 |
+
if (!empty($orderby)) :
|
1814 |
+
$sql = $orderby;
|
1815 |
+
$ascdesc = $_REQUEST['custom_f_ascdesc'];
|
1816 |
+
if (!empty($ascdesc)) $sql .= " ".$ascdesc;
|
1817 |
+
endif;
|
1818 |
+
return $sql;
|
1819 |
+
}
|
1820 |
}
|
1821 |
|
1822 |
$custom_field_template = new custom_field_template();
|
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-01-
|
6 |
-
"PO-Revision-Date: 2009-01-
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -13,186 +13,245 @@ msgstr ""
|
|
13 |
"X-Poedit-Basepath: ../\n"
|
14 |
"X-Poedit-SearchPath-0: custom-field-template\n"
|
15 |
|
16 |
-
#: custom-field-template/custom-field-template.php:
|
17 |
-
|
|
|
|
|
|
|
|
|
18 |
msgstr ""
|
19 |
|
20 |
-
#: custom-field-template/custom-field-template.php:
|
21 |
-
|
22 |
-
msgid "Custom Fields"
|
23 |
msgstr ""
|
24 |
|
25 |
-
#: custom-field-template/custom-field-template.php:
|
26 |
-
#: custom-field-template/custom-field-template.php:
|
27 |
-
|
28 |
-
#: custom-field-template/custom-field-template.php:466
|
29 |
-
#: custom-field-template/custom-field-template.php:1061
|
30 |
-
msgid "Custom Field Template"
|
31 |
msgstr ""
|
32 |
|
33 |
-
#: custom-field-template/custom-field-template.php:
|
34 |
msgid "Settings"
|
35 |
msgstr ""
|
36 |
|
37 |
-
#: custom-field-template/custom-field-template.php:
|
38 |
msgid "Default Template"
|
39 |
msgstr ""
|
40 |
|
41 |
-
#: custom-field-template/custom-field-template.php:
|
42 |
-
#: custom-field-template/custom-field-template.php:
|
43 |
-
#: custom-field-template/custom-field-template.php:
|
44 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
45 |
msgid "Options updated."
|
46 |
msgstr ""
|
47 |
|
48 |
-
#: custom-field-template/custom-field-template.php:
|
49 |
msgid "Options resetted."
|
50 |
msgstr ""
|
51 |
|
52 |
-
#: custom-field-template/custom-field-template.php:
|
53 |
msgid "Options deleted."
|
54 |
msgstr ""
|
55 |
|
56 |
-
#: custom-field-template/custom-field-template.php:
|
57 |
msgid "Custom Field Template Options"
|
58 |
msgstr ""
|
59 |
|
60 |
-
#: custom-field-template/custom-field-template.php:
|
61 |
-
|
62 |
-
|
|
|
|
|
|
|
63 |
msgstr ""
|
64 |
|
65 |
-
#: custom-field-template/custom-field-template.php:
|
66 |
-
|
67 |
-
msgid "
|
68 |
msgstr ""
|
69 |
|
70 |
-
#: custom-field-template/custom-field-template.php:
|
71 |
-
|
72 |
-
msgid "Template Content %d"
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: custom-field-template/custom-field-template.php:
|
76 |
msgid "In case that you would like to insert multiple images at once in use of the custom field media buttons"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: custom-field-template/custom-field-template.php:
|
80 |
msgid "Use multiple image inset"
|
81 |
msgstr ""
|
82 |
|
83 |
-
#: custom-field-template/custom-field-template.php:
|
84 |
msgid "Caution:"
|
85 |
msgstr ""
|
86 |
|
87 |
-
#: custom-field-template/custom-field-template.php:
|
88 |
msgid "You need to edit `wp-admin/includes/media.php`. Delete or comment out the code in the function media_send_to_editor."
|
89 |
msgstr ""
|
90 |
|
91 |
-
#: custom-field-template/custom-field-template.php:
|
92 |
msgid "In case that you would like to replace custom keys by labels if `label` is set"
|
93 |
msgstr ""
|
94 |
|
95 |
-
#: custom-field-template/custom-field-template.php:
|
96 |
msgid "Use labels in place of custom keys"
|
97 |
msgstr ""
|
98 |
|
99 |
-
#: custom-field-template/custom-field-template.php:
|
100 |
msgid "In case that you would like to add p and br tags in textareas automatically"
|
101 |
msgstr ""
|
102 |
|
103 |
-
#: custom-field-template/custom-field-template.php:
|
104 |
msgid "Use wpautop function"
|
105 |
msgstr ""
|
106 |
|
107 |
-
#: custom-field-template/custom-field-template.php:
|
108 |
-
|
109 |
-
|
110 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
msgid "Update Options »"
|
112 |
msgstr ""
|
113 |
|
114 |
-
#: custom-field-template/custom-field-template.php:
|
115 |
-
#: custom-field-template/custom-field-template.php:
|
116 |
-
#: custom-field-template/custom-field-template.php:
|
117 |
-
#: custom-field-template/custom-field-template.php:
|
118 |
-
#: custom-field-template/custom-field-template.php:
|
119 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
120 |
msgid "Click to toggle"
|
121 |
msgstr ""
|
122 |
|
123 |
-
#: custom-field-template/custom-field-template.php:
|
124 |
msgid "CSS"
|
125 |
msgstr ""
|
126 |
|
127 |
-
#: custom-field-template/custom-field-template.php:
|
128 |
-
msgid "[cft] Shortcode Format"
|
129 |
msgstr ""
|
130 |
|
131 |
-
#: custom-field-template/custom-field-template.php:
|
132 |
-
msgid "[key] will be converted into the value of [key]."
|
133 |
msgstr ""
|
134 |
|
135 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
|
|
|
|
136 |
msgid "PHP CODE (Experimental Option)"
|
137 |
msgstr ""
|
138 |
|
139 |
-
#: custom-field-template/custom-field-template.php:
|
140 |
msgid "Are you sure to save PHP codes? Please do it at your own risk."
|
141 |
msgstr ""
|
142 |
|
143 |
-
#: custom-field-template/custom-field-template.php:
|
144 |
-
msgid "
|
145 |
msgstr ""
|
146 |
|
147 |
-
#: custom-field-template/custom-field-template.php:
|
148 |
-
msgid "
|
|
|
|
|
|
|
|
|
149 |
msgstr ""
|
150 |
|
151 |
#: custom-field-template/custom-field-template.php:666
|
152 |
-
msgid "
|
|
|
|
|
|
|
|
|
153 |
msgstr ""
|
154 |
|
155 |
#: custom-field-template/custom-field-template.php:668
|
156 |
-
msgid "
|
157 |
msgstr ""
|
158 |
|
159 |
#: custom-field-template/custom-field-template.php:672
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
msgid "Unset Options »"
|
161 |
msgstr ""
|
162 |
|
163 |
-
#: custom-field-template/custom-field-template.php:
|
164 |
msgid "Delete Options"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#: custom-field-template/custom-field-template.php:
|
168 |
msgid "Are you sure to delete options? Options you set will be deleted."
|
169 |
msgstr ""
|
170 |
|
171 |
-
#: custom-field-template/custom-field-template.php:
|
172 |
msgid "Delete Options »"
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: custom-field-template/custom-field-template.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
176 |
msgid "Clear"
|
177 |
msgstr ""
|
178 |
|
179 |
-
#: custom-field-template/custom-field-template.php:
|
180 |
msgid "Add Media"
|
181 |
msgstr ""
|
182 |
|
183 |
-
#: custom-field-template/custom-field-template.php:
|
184 |
msgid "Add an Image"
|
185 |
msgstr ""
|
186 |
|
187 |
-
#: custom-field-template/custom-field-template.php:
|
188 |
msgid "Add Video"
|
189 |
msgstr ""
|
190 |
|
191 |
-
#: custom-field-template/custom-field-template.php:
|
192 |
msgid "Add Audio"
|
193 |
msgstr ""
|
194 |
|
195 |
-
#: custom-field-template/custom-field-template.php:
|
196 |
msgid "Toggle"
|
197 |
msgstr ""
|
198 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Custom Field Template\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2009-01-27 16:11+0900\n"
|
6 |
+
"PO-Revision-Date: 2009-01-27 16:12+0900\n"
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
13 |
"X-Poedit-Basepath: ../\n"
|
14 |
"X-Poedit-SearchPath-0: custom-field-template\n"
|
15 |
|
16 |
+
#: custom-field-template/custom-field-template.php:89
|
17 |
+
#: custom-field-template/custom-field-template.php:90
|
18 |
+
#: custom-field-template/custom-field-template.php:413
|
19 |
+
#: custom-field-template/custom-field-template.php:520
|
20 |
+
#: custom-field-template/custom-field-template.php:1208
|
21 |
+
msgid "Custom Field Template"
|
22 |
msgstr ""
|
23 |
|
24 |
+
#: custom-field-template/custom-field-template.php:271
|
25 |
+
msgid "read more"
|
|
|
26 |
msgstr ""
|
27 |
|
28 |
+
#: custom-field-template/custom-field-template.php:289
|
29 |
+
#: custom-field-template/custom-field-template.php:299
|
30 |
+
msgid "Custom Fields"
|
|
|
|
|
|
|
31 |
msgstr ""
|
32 |
|
33 |
+
#: custom-field-template/custom-field-template.php:329
|
34 |
msgid "Settings"
|
35 |
msgstr ""
|
36 |
|
37 |
+
#: custom-field-template/custom-field-template.php:341
|
38 |
msgid "Default Template"
|
39 |
msgstr ""
|
40 |
|
41 |
+
#: custom-field-template/custom-field-template.php:470
|
42 |
+
#: custom-field-template/custom-field-template.php:474
|
43 |
+
#: custom-field-template/custom-field-template.php:482
|
44 |
+
#: custom-field-template/custom-field-template.php:490
|
45 |
+
#: custom-field-template/custom-field-template.php:503
|
46 |
msgid "Options updated."
|
47 |
msgstr ""
|
48 |
|
49 |
+
#: custom-field-template/custom-field-template.php:508
|
50 |
msgid "Options resetted."
|
51 |
msgstr ""
|
52 |
|
53 |
+
#: custom-field-template/custom-field-template.php:512
|
54 |
msgid "Options deleted."
|
55 |
msgstr ""
|
56 |
|
57 |
+
#: custom-field-template/custom-field-template.php:526
|
58 |
msgid "Custom Field Template Options"
|
59 |
msgstr ""
|
60 |
|
61 |
+
#: custom-field-template/custom-field-template.php:536
|
62 |
+
msgid "Template Title"
|
63 |
+
msgstr ""
|
64 |
+
|
65 |
+
#: custom-field-template/custom-field-template.php:538
|
66 |
+
msgid "Template Instruction"
|
67 |
msgstr ""
|
68 |
|
69 |
+
#: custom-field-template/custom-field-template.php:540
|
70 |
+
#: custom-field-template/custom-field-template.php:670
|
71 |
+
msgid "Category ID (comma-deliminated)"
|
72 |
msgstr ""
|
73 |
|
74 |
+
#: custom-field-template/custom-field-template.php:542
|
75 |
+
msgid "Template Content"
|
|
|
76 |
msgstr ""
|
77 |
|
78 |
+
#: custom-field-template/custom-field-template.php:549
|
79 |
msgid "In case that you would like to insert multiple images at once in use of the custom field media buttons"
|
80 |
msgstr ""
|
81 |
|
82 |
+
#: custom-field-template/custom-field-template.php:550
|
83 |
msgid "Use multiple image inset"
|
84 |
msgstr ""
|
85 |
|
86 |
+
#: custom-field-template/custom-field-template.php:550
|
87 |
msgid "Caution:"
|
88 |
msgstr ""
|
89 |
|
90 |
+
#: custom-field-template/custom-field-template.php:550
|
91 |
msgid "You need to edit `wp-admin/includes/media.php`. Delete or comment out the code in the function media_send_to_editor."
|
92 |
msgstr ""
|
93 |
|
94 |
+
#: custom-field-template/custom-field-template.php:554
|
95 |
msgid "In case that you would like to replace custom keys by labels if `label` is set"
|
96 |
msgstr ""
|
97 |
|
98 |
+
#: custom-field-template/custom-field-template.php:555
|
99 |
msgid "Use labels in place of custom keys"
|
100 |
msgstr ""
|
101 |
|
102 |
+
#: custom-field-template/custom-field-template.php:558
|
103 |
msgid "In case that you would like to add p and br tags in textareas automatically"
|
104 |
msgstr ""
|
105 |
|
106 |
+
#: custom-field-template/custom-field-template.php:559
|
107 |
msgid "Use wpautop function"
|
108 |
msgstr ""
|
109 |
|
110 |
+
#: custom-field-template/custom-field-template.php:563
|
111 |
+
msgid "In case that you would like to save values automatically in switching templates"
|
112 |
+
msgstr ""
|
113 |
+
|
114 |
+
#: custom-field-template/custom-field-template.php:564
|
115 |
+
msgid "Use the auto save in switching templates"
|
116 |
+
msgstr ""
|
117 |
+
|
118 |
+
#: custom-field-template/custom-field-template.php:568
|
119 |
+
#: custom-field-template/custom-field-template.php:587
|
120 |
+
#: custom-field-template/custom-field-template.php:615
|
121 |
+
#: custom-field-template/custom-field-template.php:646
|
122 |
+
#: custom-field-template/custom-field-template.php:678
|
123 |
msgid "Update Options »"
|
124 |
msgstr ""
|
125 |
|
126 |
+
#: custom-field-template/custom-field-template.php:577
|
127 |
+
#: custom-field-template/custom-field-template.php:596
|
128 |
+
#: custom-field-template/custom-field-template.php:624
|
129 |
+
#: custom-field-template/custom-field-template.php:655
|
130 |
+
#: custom-field-template/custom-field-template.php:687
|
131 |
+
#: custom-field-template/custom-field-template.php:774
|
132 |
+
#: custom-field-template/custom-field-template.php:790
|
133 |
+
#: custom-field-template/custom-field-template.php:806
|
134 |
msgid "Click to toggle"
|
135 |
msgstr ""
|
136 |
|
137 |
+
#: custom-field-template/custom-field-template.php:578
|
138 |
msgid "CSS"
|
139 |
msgstr ""
|
140 |
|
141 |
+
#: custom-field-template/custom-field-template.php:597
|
142 |
+
msgid "[cft] and [cftsearch] Shortcode Format"
|
143 |
msgstr ""
|
144 |
|
145 |
+
#: custom-field-template/custom-field-template.php:600
|
146 |
+
msgid "For [cft], [key] will be converted into the value of [key]."
|
147 |
msgstr ""
|
148 |
|
149 |
+
#: custom-field-template/custom-field-template.php:601
|
150 |
+
msgid "For [cftsearch], [key] will be converted into the input field."
|
151 |
+
msgstr ""
|
152 |
+
|
153 |
+
#: custom-field-template/custom-field-template.php:625
|
154 |
msgid "PHP CODE (Experimental Option)"
|
155 |
msgstr ""
|
156 |
|
157 |
+
#: custom-field-template/custom-field-template.php:627
|
158 |
msgid "Are you sure to save PHP codes? Please do it at your own risk."
|
159 |
msgstr ""
|
160 |
|
161 |
+
#: custom-field-template/custom-field-template.php:628
|
162 |
+
msgid "For `text` and `textarea`, you must set $value as an string."
|
163 |
msgstr ""
|
164 |
|
165 |
+
#: custom-field-template/custom-field-template.php:630
|
166 |
+
msgid "For `checkbox`, `radio`, and `select`, you must set $values as an array."
|
167 |
+
msgstr ""
|
168 |
+
|
169 |
+
#: custom-field-template/custom-field-template.php:656
|
170 |
+
msgid "Auto Hook of `the_content()` (Experimental Option)"
|
171 |
msgstr ""
|
172 |
|
173 |
#: custom-field-template/custom-field-template.php:666
|
174 |
+
msgid "Position"
|
175 |
+
msgstr ""
|
176 |
+
|
177 |
+
#: custom-field-template/custom-field-template.php:667
|
178 |
+
msgid "Before the conetnt"
|
179 |
msgstr ""
|
180 |
|
181 |
#: custom-field-template/custom-field-template.php:668
|
182 |
+
msgid "After the conetnt"
|
183 |
msgstr ""
|
184 |
|
185 |
#: custom-field-template/custom-field-template.php:672
|
186 |
+
msgid "Content"
|
187 |
+
msgstr ""
|
188 |
+
|
189 |
+
#: custom-field-template/custom-field-template.php:688
|
190 |
+
msgid "Option List"
|
191 |
+
msgstr ""
|
192 |
+
|
193 |
+
#: custom-field-template/custom-field-template.php:775
|
194 |
+
msgid "Reset Options"
|
195 |
+
msgstr ""
|
196 |
+
|
197 |
+
#: custom-field-template/custom-field-template.php:777
|
198 |
+
msgid "Are you sure to reset options? Options you set will be reset to the default settings."
|
199 |
+
msgstr ""
|
200 |
+
|
201 |
+
#: custom-field-template/custom-field-template.php:781
|
202 |
msgid "Unset Options »"
|
203 |
msgstr ""
|
204 |
|
205 |
+
#: custom-field-template/custom-field-template.php:791
|
206 |
msgid "Delete Options"
|
207 |
msgstr ""
|
208 |
|
209 |
+
#: custom-field-template/custom-field-template.php:793
|
210 |
msgid "Are you sure to delete options? Options you set will be deleted."
|
211 |
msgstr ""
|
212 |
|
213 |
+
#: custom-field-template/custom-field-template.php:797
|
214 |
msgid "Delete Options »"
|
215 |
msgstr ""
|
216 |
|
217 |
+
#: custom-field-template/custom-field-template.php:807
|
218 |
+
msgid "Donation"
|
219 |
+
msgstr ""
|
220 |
+
|
221 |
+
#: custom-field-template/custom-field-template.php:809
|
222 |
+
msgid "If you liked this plugin, please make a donation via paypal! Any amount is welcome. Your support is much appreciated."
|
223 |
+
msgstr ""
|
224 |
+
|
225 |
+
#: custom-field-template/custom-field-template.php:972
|
226 |
msgid "Clear"
|
227 |
msgstr ""
|
228 |
|
229 |
+
#: custom-field-template/custom-field-template.php:1094
|
230 |
msgid "Add Media"
|
231 |
msgstr ""
|
232 |
|
233 |
+
#: custom-field-template/custom-field-template.php:1096
|
234 |
msgid "Add an Image"
|
235 |
msgstr ""
|
236 |
|
237 |
+
#: custom-field-template/custom-field-template.php:1098
|
238 |
msgid "Add Video"
|
239 |
msgstr ""
|
240 |
|
241 |
+
#: custom-field-template/custom-field-template.php:1100
|
242 |
msgid "Add Audio"
|
243 |
msgstr ""
|
244 |
|
245 |
+
#: custom-field-template/custom-field-template.php:1111
|
246 |
msgid "Toggle"
|
247 |
msgstr ""
|
248 |
|
249 |
+
#: custom-field-template/custom-field-template.php:1366
|
250 |
+
msgid "Save"
|
251 |
+
msgstr ""
|
252 |
+
|
253 |
+
#: custom-field-template/custom-field-template.php:1716
|
254 |
+
#: custom-field-template/custom-field-template.php:1786
|
255 |
+
msgid "Search »"
|
256 |
+
msgstr ""
|
257 |
+
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wordpressgogo.com/development/custom-field-template.html
|
|
4 |
Tags: custom, fields, field, template, meta, custom field, custom fields, custom field template
|
5 |
Requires at least: 2.1
|
6 |
Tested up to: 2.7
|
7 |
-
Stable tag: 0
|
8 |
|
9 |
This plugin adds the default custom fields on the Write Post/Page.
|
10 |
|
@@ -33,12 +33,21 @@ The Custom Field Template plugin adds the default custom fields on the Write Pos
|
|
33 |
* Adds [cft] Shortcode Format.
|
34 |
* Adds the sort option. (`sort = asc` or `sort = desc`)
|
35 |
* Support for Quick Edit of custom fields. (tinyMCE and mediaButton are not supported yet)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
|
37 |
Localization
|
38 |
|
39 |
* Japanese (ja) - [Hiroaki Miyashita](http://wordpressgogo.com/)
|
|
|
40 |
* Spanish (es_ES) - Dario Ferrer
|
41 |
* Russian (ru_RU) - [Sonika](http://www.sonika.ru/blog/)
|
|
|
42 |
|
43 |
If you have translated into your language, please let me know.
|
44 |
|
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.7
|
7 |
+
Stable tag: 1.0
|
8 |
|
9 |
This plugin adds the default custom fields on the Write Post/Page.
|
10 |
|
33 |
* Adds [cft] Shortcode Format.
|
34 |
* Adds the sort option. (`sort = asc` or `sort = desc`)
|
35 |
* Support for Quick Edit of custom fields. (tinyMCE and mediaButton are not supported yet)
|
36 |
+
* Support for the custom field search. (only shows the attributes which have `search = true`.)
|
37 |
+
* Adds [cftsearch] Shortcode Format. (under development)
|
38 |
+
* Adds PHP codes for the output value. (`outputCode = 0`)
|
39 |
+
* Adds PHP codes before saving the values. (`editCode = 0`)
|
40 |
+
* Adds the save functionality.
|
41 |
+
* Adds the class option. (`class = text`)
|
42 |
+
* Adds the auto hook of `the_content()`. (experimental)
|
43 |
|
44 |
Localization
|
45 |
|
46 |
* Japanese (ja) - [Hiroaki Miyashita](http://wordpressgogo.com/)
|
47 |
+
* German (de_DE) - F J Kaiser
|
48 |
* Spanish (es_ES) - Dario Ferrer
|
49 |
* Russian (ru_RU) - [Sonika](http://www.sonika.ru/blog/)
|
50 |
+
* Turkish (tr_TR) - [Omer Faruk](http://ramerta.com/)
|
51 |
|
52 |
If you have translated into your language, please let me know.
|
53 |
|