Version Description
- Added : meta_box
- Bug fix: "Zip Code"
- Bug fix: URL
- Bug fix: mail
Download this release
Release Info
Developer | inc2734 |
Plugin | MW WP Form |
Version | 0.6.4 |
Comparing to | |
See all releases |
Code changes from version 0.6.3 to 0.6.4
- languages/mw-wp-form-ja.mo +0 -0
- languages/mw-wp-form-ja.po +62 -43
- languages/mw-wp-form.pot +60 -42
- mw-wp-form.php +60 -21
- readme.txt +7 -1
- system/mw_mail.php +9 -5
- system/mw_validation.php +8 -8
- system/mw_wp_form_admin_page.php +24 -2
languages/mw-wp-form-ja.mo
CHANGED
Binary file
|
languages/mw-wp-form-ja.po
CHANGED
@@ -4,8 +4,8 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: MW WP Form 0.6\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
|
7 |
-
"POT-Creation-Date: 2013-
|
8 |
-
"PO-Revision-Date: 2013-
|
9 |
"Last-Translator: Takashi Kitajima <inc@2inc.org>\n"
|
10 |
"Language-Team: Takashi Kitajima <inc@2inc.org>\n"
|
11 |
"MIME-Version: 1.0\n"
|
@@ -19,7 +19,7 @@ msgstr ""
|
|
19 |
"X-Poedit-SearchPath-0: ..\n"
|
20 |
|
21 |
#: form_fields/mw_form_field_back_button.php:36
|
22 |
-
#: system/mw_wp_form_admin_page.php:
|
23 |
msgid "Back"
|
24 |
msgstr "戻る"
|
25 |
|
@@ -138,159 +138,178 @@ msgid "Form Key"
|
|
138 |
msgstr "フォーム識別子"
|
139 |
|
140 |
#: system/mw_wp_form_admin_page.php:137
|
|
|
|
|
|
|
|
|
141 |
msgid "Mail Options"
|
142 |
msgstr "メール設定"
|
143 |
|
144 |
-
#: system/mw_wp_form_admin_page.php:
|
145 |
msgid "Text"
|
146 |
msgstr "テキストフィールド"
|
147 |
|
148 |
-
#: system/mw_wp_form_admin_page.php:
|
149 |
msgid "Textarea"
|
150 |
msgstr "テキストエリア"
|
151 |
|
152 |
-
#: system/mw_wp_form_admin_page.php:
|
153 |
-
#, fuzzy
|
154 |
msgid "Zip Code"
|
155 |
msgstr "郵便番号"
|
156 |
|
157 |
-
#: system/mw_wp_form_admin_page.php:
|
158 |
msgid "Tel"
|
159 |
msgstr "電話番号"
|
160 |
|
161 |
-
#: system/mw_wp_form_admin_page.php:
|
162 |
msgid "Select"
|
163 |
msgstr "セレクトボックス"
|
164 |
|
165 |
-
#: system/mw_wp_form_admin_page.php:
|
166 |
msgid "Radio"
|
167 |
msgstr "ラジオボタン"
|
168 |
|
169 |
-
#: system/mw_wp_form_admin_page.php:
|
170 |
msgid "Checkbox"
|
171 |
msgstr "チェックボックス"
|
172 |
|
173 |
-
#: system/mw_wp_form_admin_page.php:
|
174 |
msgid "Datepicker"
|
175 |
msgstr "日付"
|
176 |
|
177 |
-
#: system/mw_wp_form_admin_page.php:
|
178 |
msgid "Password"
|
179 |
msgstr "パスワードフィールド"
|
180 |
|
181 |
-
#: system/mw_wp_form_admin_page.php:
|
182 |
msgid "Confirm & Submit"
|
183 |
msgstr "確認・送信"
|
184 |
|
185 |
-
#: system/mw_wp_form_admin_page.php:
|
186 |
msgid "Submit"
|
187 |
msgstr "送信"
|
188 |
|
189 |
-
#: system/mw_wp_form_admin_page.php:
|
190 |
msgid "Button"
|
191 |
msgstr "ボタン"
|
192 |
|
193 |
-
#: system/mw_wp_form_admin_page.php:
|
194 |
msgid "Hidden"
|
195 |
msgstr "hiddenフィールド"
|
196 |
|
197 |
-
#: system/mw_wp_form_admin_page.php:
|
198 |
msgid "Error Message"
|
199 |
msgstr "エラーメッセージ"
|
200 |
|
201 |
-
#: system/mw_wp_form_admin_page.php:
|
202 |
msgid "Copy and Paste this shortcode."
|
203 |
msgstr "このショートコードをコピー&ペーストしてください。"
|
204 |
|
205 |
-
#: system/mw_wp_form_admin_page.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
206 |
msgid "To ( E-mail address )"
|
207 |
msgstr "送信先(E-mailアドレス)"
|
208 |
|
209 |
-
#: system/mw_wp_form_admin_page.php:
|
210 |
msgid "If empty: Using admin E-mail address."
|
211 |
msgstr "未入力の場合:管理者のE-mailアドレスを使用します。"
|
212 |
|
213 |
-
#: system/mw_wp_form_admin_page.php:
|
214 |
msgid "Subject"
|
215 |
msgstr "件名"
|
216 |
|
217 |
-
#: system/mw_wp_form_admin_page.php:
|
218 |
msgid "Ccontent"
|
219 |
msgstr "本文"
|
220 |
|
221 |
-
#: system/mw_wp_form_admin_page.php:
|
222 |
msgid "{key} is converted form data."
|
223 |
msgstr "{キー}でそのフォーム項目に変換されます。"
|
224 |
|
225 |
-
#: system/mw_wp_form_admin_page.php:
|
226 |
msgid "Automatic reply email"
|
227 |
msgstr "自動返信メール"
|
228 |
|
229 |
-
#: system/mw_wp_form_admin_page.php:
|
230 |
msgid "Please input the key to use as transmission to automatic reply email."
|
231 |
msgstr "自動返信メールに使用する項目のキーを入力してください。"
|
232 |
|
233 |
-
#: system/mw_wp_form_admin_page.php:
|
234 |
msgid "Input Page URL"
|
235 |
msgstr "入力画面URL"
|
236 |
|
237 |
-
#: system/mw_wp_form_admin_page.php:
|
238 |
msgid "Confirmation Page URL"
|
239 |
msgstr "確認画面URL"
|
240 |
|
241 |
-
#: system/mw_wp_form_admin_page.php:
|
242 |
msgid "Complete Page URL"
|
243 |
msgstr "完了画面URL"
|
244 |
|
245 |
-
#: system/mw_wp_form_admin_page.php:
|
246 |
msgid "Add Validation rule"
|
247 |
msgstr "バリデーションルールを追加"
|
248 |
|
249 |
-
#: system/mw_wp_form_admin_page.php:
|
250 |
msgid "The key which applies validation"
|
251 |
msgstr "バリデーションを適用する項目"
|
252 |
|
253 |
-
#: system/mw_wp_form_admin_page.php:
|
254 |
msgid "No empty"
|
255 |
msgstr "必須項目"
|
256 |
|
257 |
-
#: system/mw_wp_form_admin_page.php:
|
258 |
msgid "No empty( with checkbox )"
|
259 |
msgstr "必須項目(チェックボックス)"
|
260 |
|
261 |
-
#: system/mw_wp_form_admin_page.php:
|
262 |
msgid "Numeric"
|
263 |
msgstr "半角数字"
|
264 |
|
265 |
-
#: system/mw_wp_form_admin_page.php:
|
266 |
msgid "Alphabet"
|
267 |
msgstr "半角英字"
|
268 |
|
269 |
-
#: system/mw_wp_form_admin_page.php:
|
270 |
msgid "Alphabet and Numeric"
|
271 |
msgstr "半角英数字"
|
272 |
|
273 |
-
#: system/mw_wp_form_admin_page.php:
|
274 |
msgid "Zip code"
|
275 |
msgstr "郵便番号"
|
276 |
|
277 |
-
#: system/mw_wp_form_admin_page.php:
|
278 |
msgid "E-mail"
|
279 |
msgstr "メールアドレス"
|
280 |
|
281 |
-
#: system/mw_wp_form_admin_page.php:
|
282 |
msgid "Date"
|
283 |
msgstr "日付"
|
284 |
|
285 |
-
#: system/mw_wp_form_admin_page.php:
|
286 |
msgid "The key at same value"
|
287 |
msgstr "一致する項目"
|
288 |
|
289 |
-
#: system/mw_wp_form_admin_page.php:
|
290 |
msgid "The range of the number of characters"
|
291 |
msgstr "文字数の範囲"
|
292 |
|
293 |
-
#: system/mw_wp_form_admin_page.php:
|
294 |
msgid "The number of the minimum characters"
|
295 |
msgstr "最小文字数"
|
296 |
|
@@ -310,7 +329,7 @@ msgstr ""
|
|
310 |
"することができます。"
|
311 |
|
312 |
#. Author of the plugin/theme
|
313 |
-
msgid "
|
314 |
msgstr ""
|
315 |
|
316 |
#. Author URI of the plugin/theme
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: MW WP Form 0.6\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
|
7 |
+
"POT-Creation-Date: 2013-04-01 07:59:46+00:00\n"
|
8 |
+
"PO-Revision-Date: 2013-04-01 17:00+0900\n"
|
9 |
"Last-Translator: Takashi Kitajima <inc@2inc.org>\n"
|
10 |
"Language-Team: Takashi Kitajima <inc@2inc.org>\n"
|
11 |
"MIME-Version: 1.0\n"
|
19 |
"X-Poedit-SearchPath-0: ..\n"
|
20 |
|
21 |
#: form_fields/mw_form_field_back_button.php:36
|
22 |
+
#: system/mw_wp_form_admin_page.php:214
|
23 |
msgid "Back"
|
24 |
msgstr "戻る"
|
25 |
|
138 |
msgstr "フォーム識別子"
|
139 |
|
140 |
#: system/mw_wp_form_admin_page.php:137
|
141 |
+
msgid "Activate Query string of post"
|
142 |
+
msgstr "URL引数を有効にする"
|
143 |
+
|
144 |
+
#: system/mw_wp_form_admin_page.php:144
|
145 |
msgid "Mail Options"
|
146 |
msgstr "メール設定"
|
147 |
|
148 |
+
#: system/mw_wp_form_admin_page.php:160
|
149 |
msgid "Text"
|
150 |
msgstr "テキストフィールド"
|
151 |
|
152 |
+
#: system/mw_wp_form_admin_page.php:166
|
153 |
msgid "Textarea"
|
154 |
msgstr "テキストエリア"
|
155 |
|
156 |
+
#: system/mw_wp_form_admin_page.php:172
|
|
|
157 |
msgid "Zip Code"
|
158 |
msgstr "郵便番号"
|
159 |
|
160 |
+
#: system/mw_wp_form_admin_page.php:178 system/mw_wp_form_admin_page.php:458
|
161 |
msgid "Tel"
|
162 |
msgstr "電話番号"
|
163 |
|
164 |
+
#: system/mw_wp_form_admin_page.php:184
|
165 |
msgid "Select"
|
166 |
msgstr "セレクトボックス"
|
167 |
|
168 |
+
#: system/mw_wp_form_admin_page.php:190
|
169 |
msgid "Radio"
|
170 |
msgstr "ラジオボタン"
|
171 |
|
172 |
+
#: system/mw_wp_form_admin_page.php:196
|
173 |
msgid "Checkbox"
|
174 |
msgstr "チェックボックス"
|
175 |
|
176 |
+
#: system/mw_wp_form_admin_page.php:202
|
177 |
msgid "Datepicker"
|
178 |
msgstr "日付"
|
179 |
|
180 |
+
#: system/mw_wp_form_admin_page.php:208
|
181 |
msgid "Password"
|
182 |
msgstr "パスワードフィールド"
|
183 |
|
184 |
+
#: system/mw_wp_form_admin_page.php:220
|
185 |
msgid "Confirm & Submit"
|
186 |
msgstr "確認・送信"
|
187 |
|
188 |
+
#: system/mw_wp_form_admin_page.php:226
|
189 |
msgid "Submit"
|
190 |
msgstr "送信"
|
191 |
|
192 |
+
#: system/mw_wp_form_admin_page.php:232
|
193 |
msgid "Button"
|
194 |
msgstr "ボタン"
|
195 |
|
196 |
+
#: system/mw_wp_form_admin_page.php:238
|
197 |
msgid "Hidden"
|
198 |
msgstr "hiddenフィールド"
|
199 |
|
200 |
+
#: system/mw_wp_form_admin_page.php:244
|
201 |
msgid "Error Message"
|
202 |
msgstr "エラーメッセージ"
|
203 |
|
204 |
+
#: system/mw_wp_form_admin_page.php:322
|
205 |
msgid "Copy and Paste this shortcode."
|
206 |
msgstr "このショートコードをコピー&ペーストしてください。"
|
207 |
|
208 |
+
#: system/mw_wp_form_admin_page.php:336
|
209 |
+
msgid "Active"
|
210 |
+
msgstr "有効にする"
|
211 |
+
|
212 |
+
#: system/mw_wp_form_admin_page.php:337
|
213 |
+
msgid ""
|
214 |
+
"If this field is active, MW WP Form get the post as query string \"post_id\" "
|
215 |
+
"and you can use $post's property in editor"
|
216 |
+
msgstr ""
|
217 |
+
"有効にした場合、MW WP FormはURL引数 ”post_id\" をもとに投稿を取得して、その投"
|
218 |
+
"稿($post) のプロパティを使用できるようになります。"
|
219 |
+
|
220 |
+
#: system/mw_wp_form_admin_page.php:338
|
221 |
+
msgid "Example: {ID}, {post_title}, {post_meta} etc..."
|
222 |
+
msgstr "例:{ID}、{post_title}、{post_meta}など…"
|
223 |
+
|
224 |
+
#: system/mw_wp_form_admin_page.php:364
|
225 |
msgid "To ( E-mail address )"
|
226 |
msgstr "送信先(E-mailアドレス)"
|
227 |
|
228 |
+
#: system/mw_wp_form_admin_page.php:366
|
229 |
msgid "If empty: Using admin E-mail address."
|
230 |
msgstr "未入力の場合:管理者のE-mailアドレスを使用します。"
|
231 |
|
232 |
+
#: system/mw_wp_form_admin_page.php:369
|
233 |
msgid "Subject"
|
234 |
msgstr "件名"
|
235 |
|
236 |
+
#: system/mw_wp_form_admin_page.php:373
|
237 |
msgid "Ccontent"
|
238 |
msgstr "本文"
|
239 |
|
240 |
+
#: system/mw_wp_form_admin_page.php:375
|
241 |
msgid "{key} is converted form data."
|
242 |
msgstr "{キー}でそのフォーム項目に変換されます。"
|
243 |
|
244 |
+
#: system/mw_wp_form_admin_page.php:378
|
245 |
msgid "Automatic reply email"
|
246 |
msgstr "自動返信メール"
|
247 |
|
248 |
+
#: system/mw_wp_form_admin_page.php:380
|
249 |
msgid "Please input the key to use as transmission to automatic reply email."
|
250 |
msgstr "自動返信メールに使用する項目のキーを入力してください。"
|
251 |
|
252 |
+
#: system/mw_wp_form_admin_page.php:395
|
253 |
msgid "Input Page URL"
|
254 |
msgstr "入力画面URL"
|
255 |
|
256 |
+
#: system/mw_wp_form_admin_page.php:401
|
257 |
msgid "Confirmation Page URL"
|
258 |
msgstr "確認画面URL"
|
259 |
|
260 |
+
#: system/mw_wp_form_admin_page.php:407
|
261 |
msgid "Complete Page URL"
|
262 |
msgstr "完了画面URL"
|
263 |
|
264 |
+
#: system/mw_wp_form_admin_page.php:442
|
265 |
msgid "Add Validation rule"
|
266 |
msgstr "バリデーションルールを追加"
|
267 |
|
268 |
+
#: system/mw_wp_form_admin_page.php:448
|
269 |
msgid "The key which applies validation"
|
270 |
msgstr "バリデーションを適用する項目"
|
271 |
|
272 |
+
#: system/mw_wp_form_admin_page.php:452
|
273 |
msgid "No empty"
|
274 |
msgstr "必須項目"
|
275 |
|
276 |
+
#: system/mw_wp_form_admin_page.php:453
|
277 |
msgid "No empty( with checkbox )"
|
278 |
msgstr "必須項目(チェックボックス)"
|
279 |
|
280 |
+
#: system/mw_wp_form_admin_page.php:454
|
281 |
msgid "Numeric"
|
282 |
msgstr "半角数字"
|
283 |
|
284 |
+
#: system/mw_wp_form_admin_page.php:455
|
285 |
msgid "Alphabet"
|
286 |
msgstr "半角英字"
|
287 |
|
288 |
+
#: system/mw_wp_form_admin_page.php:456
|
289 |
msgid "Alphabet and Numeric"
|
290 |
msgstr "半角英数字"
|
291 |
|
292 |
+
#: system/mw_wp_form_admin_page.php:457
|
293 |
msgid "Zip code"
|
294 |
msgstr "郵便番号"
|
295 |
|
296 |
+
#: system/mw_wp_form_admin_page.php:459
|
297 |
msgid "E-mail"
|
298 |
msgstr "メールアドレス"
|
299 |
|
300 |
+
#: system/mw_wp_form_admin_page.php:460
|
301 |
msgid "Date"
|
302 |
msgstr "日付"
|
303 |
|
304 |
+
#: system/mw_wp_form_admin_page.php:464
|
305 |
msgid "The key at same value"
|
306 |
msgstr "一致する項目"
|
307 |
|
308 |
+
#: system/mw_wp_form_admin_page.php:468
|
309 |
msgid "The range of the number of characters"
|
310 |
msgstr "文字数の範囲"
|
311 |
|
312 |
+
#: system/mw_wp_form_admin_page.php:476
|
313 |
msgid "The number of the minimum characters"
|
314 |
msgstr "最小文字数"
|
315 |
|
329 |
"することができます。"
|
330 |
|
331 |
#. Author of the plugin/theme
|
332 |
+
msgid "inc2734"
|
333 |
msgstr ""
|
334 |
|
335 |
#. Author URI of the plugin/theme
|
languages/mw-wp-form.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the MW WP Form package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: MW WP Form 0.6.
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
|
7 |
-
"POT-Creation-Date: 2013-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -19,7 +19,7 @@ msgstr ""
|
|
19 |
"X-Poedit-SearchPath-0: ..\n"
|
20 |
|
21 |
#: form_fields/mw_form_field_back_button.php:36
|
22 |
-
#: system/mw_wp_form_admin_page.php:
|
23 |
msgid "Back"
|
24 |
msgstr ""
|
25 |
|
@@ -138,158 +138,176 @@ msgid "Form Key"
|
|
138 |
msgstr ""
|
139 |
|
140 |
#: system/mw_wp_form_admin_page.php:137
|
|
|
|
|
|
|
|
|
141 |
msgid "Mail Options"
|
142 |
msgstr ""
|
143 |
|
144 |
-
#: system/mw_wp_form_admin_page.php:
|
145 |
msgid "Text"
|
146 |
msgstr ""
|
147 |
|
148 |
-
#: system/mw_wp_form_admin_page.php:
|
149 |
msgid "Textarea"
|
150 |
msgstr ""
|
151 |
|
152 |
-
#: system/mw_wp_form_admin_page.php:
|
153 |
msgid "Zip Code"
|
154 |
msgstr ""
|
155 |
|
156 |
-
#: system/mw_wp_form_admin_page.php:
|
157 |
msgid "Tel"
|
158 |
msgstr ""
|
159 |
|
160 |
-
#: system/mw_wp_form_admin_page.php:
|
161 |
msgid "Select"
|
162 |
msgstr ""
|
163 |
|
164 |
-
#: system/mw_wp_form_admin_page.php:
|
165 |
msgid "Radio"
|
166 |
msgstr ""
|
167 |
|
168 |
-
#: system/mw_wp_form_admin_page.php:
|
169 |
msgid "Checkbox"
|
170 |
msgstr ""
|
171 |
|
172 |
-
#: system/mw_wp_form_admin_page.php:
|
173 |
msgid "Datepicker"
|
174 |
msgstr ""
|
175 |
|
176 |
-
#: system/mw_wp_form_admin_page.php:
|
177 |
msgid "Password"
|
178 |
msgstr ""
|
179 |
|
180 |
-
#: system/mw_wp_form_admin_page.php:
|
181 |
msgid "Confirm & Submit"
|
182 |
msgstr ""
|
183 |
|
184 |
-
#: system/mw_wp_form_admin_page.php:
|
185 |
msgid "Submit"
|
186 |
msgstr ""
|
187 |
|
188 |
-
#: system/mw_wp_form_admin_page.php:
|
189 |
msgid "Button"
|
190 |
msgstr ""
|
191 |
|
192 |
-
#: system/mw_wp_form_admin_page.php:
|
193 |
msgid "Hidden"
|
194 |
msgstr ""
|
195 |
|
196 |
-
#: system/mw_wp_form_admin_page.php:
|
197 |
msgid "Error Message"
|
198 |
msgstr ""
|
199 |
|
200 |
-
#: system/mw_wp_form_admin_page.php:
|
201 |
msgid "Copy and Paste this shortcode."
|
202 |
msgstr ""
|
203 |
|
204 |
-
#: system/mw_wp_form_admin_page.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
205 |
msgid "To ( E-mail address )"
|
206 |
msgstr ""
|
207 |
|
208 |
-
#: system/mw_wp_form_admin_page.php:
|
209 |
msgid "If empty: Using admin E-mail address."
|
210 |
msgstr ""
|
211 |
|
212 |
-
#: system/mw_wp_form_admin_page.php:
|
213 |
msgid "Subject"
|
214 |
msgstr ""
|
215 |
|
216 |
-
#: system/mw_wp_form_admin_page.php:
|
217 |
msgid "Ccontent"
|
218 |
msgstr ""
|
219 |
|
220 |
-
#: system/mw_wp_form_admin_page.php:
|
221 |
msgid "{key} is converted form data."
|
222 |
msgstr ""
|
223 |
|
224 |
-
#: system/mw_wp_form_admin_page.php:
|
225 |
msgid "Automatic reply email"
|
226 |
msgstr ""
|
227 |
|
228 |
-
#: system/mw_wp_form_admin_page.php:
|
229 |
msgid "Please input the key to use as transmission to automatic reply email."
|
230 |
msgstr ""
|
231 |
|
232 |
-
#: system/mw_wp_form_admin_page.php:
|
233 |
msgid "Input Page URL"
|
234 |
msgstr ""
|
235 |
|
236 |
-
#: system/mw_wp_form_admin_page.php:
|
237 |
msgid "Confirmation Page URL"
|
238 |
msgstr ""
|
239 |
|
240 |
-
#: system/mw_wp_form_admin_page.php:
|
241 |
msgid "Complete Page URL"
|
242 |
msgstr ""
|
243 |
|
244 |
-
#: system/mw_wp_form_admin_page.php:
|
245 |
msgid "Add Validation rule"
|
246 |
msgstr ""
|
247 |
|
248 |
-
#: system/mw_wp_form_admin_page.php:
|
249 |
msgid "The key which applies validation"
|
250 |
msgstr ""
|
251 |
|
252 |
-
#: system/mw_wp_form_admin_page.php:
|
253 |
msgid "No empty"
|
254 |
msgstr ""
|
255 |
|
256 |
-
#: system/mw_wp_form_admin_page.php:
|
257 |
msgid "No empty( with checkbox )"
|
258 |
msgstr ""
|
259 |
|
260 |
-
#: system/mw_wp_form_admin_page.php:
|
261 |
msgid "Numeric"
|
262 |
msgstr ""
|
263 |
|
264 |
-
#: system/mw_wp_form_admin_page.php:
|
265 |
msgid "Alphabet"
|
266 |
msgstr ""
|
267 |
|
268 |
-
#: system/mw_wp_form_admin_page.php:
|
269 |
msgid "Alphabet and Numeric"
|
270 |
msgstr ""
|
271 |
|
272 |
-
#: system/mw_wp_form_admin_page.php:
|
273 |
msgid "Zip code"
|
274 |
msgstr ""
|
275 |
|
276 |
-
#: system/mw_wp_form_admin_page.php:
|
277 |
msgid "E-mail"
|
278 |
msgstr ""
|
279 |
|
280 |
-
#: system/mw_wp_form_admin_page.php:
|
281 |
msgid "Date"
|
282 |
msgstr ""
|
283 |
|
284 |
-
#: system/mw_wp_form_admin_page.php:
|
285 |
msgid "The key at same value"
|
286 |
msgstr ""
|
287 |
|
288 |
-
#: system/mw_wp_form_admin_page.php:
|
289 |
msgid "The range of the number of characters"
|
290 |
msgstr ""
|
291 |
|
292 |
-
#: system/mw_wp_form_admin_page.php:
|
293 |
msgid "The number of the minimum characters"
|
294 |
msgstr ""
|
295 |
|
@@ -307,7 +325,7 @@ msgid ""
|
|
307 |
msgstr ""
|
308 |
|
309 |
#. Author of the plugin/theme
|
310 |
-
msgid "
|
311 |
msgstr ""
|
312 |
|
313 |
#. Author URI of the plugin/theme
|
2 |
# This file is distributed under the same license as the MW WP Form package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: MW WP Form 0.6.4\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
|
7 |
+
"POT-Creation-Date: 2013-04-01 07:59:46+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
19 |
"X-Poedit-SearchPath-0: ..\n"
|
20 |
|
21 |
#: form_fields/mw_form_field_back_button.php:36
|
22 |
+
#: system/mw_wp_form_admin_page.php:214
|
23 |
msgid "Back"
|
24 |
msgstr ""
|
25 |
|
138 |
msgstr ""
|
139 |
|
140 |
#: system/mw_wp_form_admin_page.php:137
|
141 |
+
msgid "Activate Query string of post"
|
142 |
+
msgstr ""
|
143 |
+
|
144 |
+
#: system/mw_wp_form_admin_page.php:144
|
145 |
msgid "Mail Options"
|
146 |
msgstr ""
|
147 |
|
148 |
+
#: system/mw_wp_form_admin_page.php:160
|
149 |
msgid "Text"
|
150 |
msgstr ""
|
151 |
|
152 |
+
#: system/mw_wp_form_admin_page.php:166
|
153 |
msgid "Textarea"
|
154 |
msgstr ""
|
155 |
|
156 |
+
#: system/mw_wp_form_admin_page.php:172
|
157 |
msgid "Zip Code"
|
158 |
msgstr ""
|
159 |
|
160 |
+
#: system/mw_wp_form_admin_page.php:178 system/mw_wp_form_admin_page.php:458
|
161 |
msgid "Tel"
|
162 |
msgstr ""
|
163 |
|
164 |
+
#: system/mw_wp_form_admin_page.php:184
|
165 |
msgid "Select"
|
166 |
msgstr ""
|
167 |
|
168 |
+
#: system/mw_wp_form_admin_page.php:190
|
169 |
msgid "Radio"
|
170 |
msgstr ""
|
171 |
|
172 |
+
#: system/mw_wp_form_admin_page.php:196
|
173 |
msgid "Checkbox"
|
174 |
msgstr ""
|
175 |
|
176 |
+
#: system/mw_wp_form_admin_page.php:202
|
177 |
msgid "Datepicker"
|
178 |
msgstr ""
|
179 |
|
180 |
+
#: system/mw_wp_form_admin_page.php:208
|
181 |
msgid "Password"
|
182 |
msgstr ""
|
183 |
|
184 |
+
#: system/mw_wp_form_admin_page.php:220
|
185 |
msgid "Confirm & Submit"
|
186 |
msgstr ""
|
187 |
|
188 |
+
#: system/mw_wp_form_admin_page.php:226
|
189 |
msgid "Submit"
|
190 |
msgstr ""
|
191 |
|
192 |
+
#: system/mw_wp_form_admin_page.php:232
|
193 |
msgid "Button"
|
194 |
msgstr ""
|
195 |
|
196 |
+
#: system/mw_wp_form_admin_page.php:238
|
197 |
msgid "Hidden"
|
198 |
msgstr ""
|
199 |
|
200 |
+
#: system/mw_wp_form_admin_page.php:244
|
201 |
msgid "Error Message"
|
202 |
msgstr ""
|
203 |
|
204 |
+
#: system/mw_wp_form_admin_page.php:322
|
205 |
msgid "Copy and Paste this shortcode."
|
206 |
msgstr ""
|
207 |
|
208 |
+
#: system/mw_wp_form_admin_page.php:336
|
209 |
+
msgid "Active"
|
210 |
+
msgstr ""
|
211 |
+
|
212 |
+
#: system/mw_wp_form_admin_page.php:337
|
213 |
+
msgid ""
|
214 |
+
"If this field is active, MW WP Form get the post as query string \"post_id\" "
|
215 |
+
"and you can use $post's property in editor"
|
216 |
+
msgstr ""
|
217 |
+
|
218 |
+
#: system/mw_wp_form_admin_page.php:338
|
219 |
+
msgid "Example: {ID}, {post_title}, {post_meta} etc..."
|
220 |
+
msgstr ""
|
221 |
+
|
222 |
+
#: system/mw_wp_form_admin_page.php:364
|
223 |
msgid "To ( E-mail address )"
|
224 |
msgstr ""
|
225 |
|
226 |
+
#: system/mw_wp_form_admin_page.php:366
|
227 |
msgid "If empty: Using admin E-mail address."
|
228 |
msgstr ""
|
229 |
|
230 |
+
#: system/mw_wp_form_admin_page.php:369
|
231 |
msgid "Subject"
|
232 |
msgstr ""
|
233 |
|
234 |
+
#: system/mw_wp_form_admin_page.php:373
|
235 |
msgid "Ccontent"
|
236 |
msgstr ""
|
237 |
|
238 |
+
#: system/mw_wp_form_admin_page.php:375
|
239 |
msgid "{key} is converted form data."
|
240 |
msgstr ""
|
241 |
|
242 |
+
#: system/mw_wp_form_admin_page.php:378
|
243 |
msgid "Automatic reply email"
|
244 |
msgstr ""
|
245 |
|
246 |
+
#: system/mw_wp_form_admin_page.php:380
|
247 |
msgid "Please input the key to use as transmission to automatic reply email."
|
248 |
msgstr ""
|
249 |
|
250 |
+
#: system/mw_wp_form_admin_page.php:395
|
251 |
msgid "Input Page URL"
|
252 |
msgstr ""
|
253 |
|
254 |
+
#: system/mw_wp_form_admin_page.php:401
|
255 |
msgid "Confirmation Page URL"
|
256 |
msgstr ""
|
257 |
|
258 |
+
#: system/mw_wp_form_admin_page.php:407
|
259 |
msgid "Complete Page URL"
|
260 |
msgstr ""
|
261 |
|
262 |
+
#: system/mw_wp_form_admin_page.php:442
|
263 |
msgid "Add Validation rule"
|
264 |
msgstr ""
|
265 |
|
266 |
+
#: system/mw_wp_form_admin_page.php:448
|
267 |
msgid "The key which applies validation"
|
268 |
msgstr ""
|
269 |
|
270 |
+
#: system/mw_wp_form_admin_page.php:452
|
271 |
msgid "No empty"
|
272 |
msgstr ""
|
273 |
|
274 |
+
#: system/mw_wp_form_admin_page.php:453
|
275 |
msgid "No empty( with checkbox )"
|
276 |
msgstr ""
|
277 |
|
278 |
+
#: system/mw_wp_form_admin_page.php:454
|
279 |
msgid "Numeric"
|
280 |
msgstr ""
|
281 |
|
282 |
+
#: system/mw_wp_form_admin_page.php:455
|
283 |
msgid "Alphabet"
|
284 |
msgstr ""
|
285 |
|
286 |
+
#: system/mw_wp_form_admin_page.php:456
|
287 |
msgid "Alphabet and Numeric"
|
288 |
msgstr ""
|
289 |
|
290 |
+
#: system/mw_wp_form_admin_page.php:457
|
291 |
msgid "Zip code"
|
292 |
msgstr ""
|
293 |
|
294 |
+
#: system/mw_wp_form_admin_page.php:459
|
295 |
msgid "E-mail"
|
296 |
msgstr ""
|
297 |
|
298 |
+
#: system/mw_wp_form_admin_page.php:460
|
299 |
msgid "Date"
|
300 |
msgstr ""
|
301 |
|
302 |
+
#: system/mw_wp_form_admin_page.php:464
|
303 |
msgid "The key at same value"
|
304 |
msgstr ""
|
305 |
|
306 |
+
#: system/mw_wp_form_admin_page.php:468
|
307 |
msgid "The range of the number of characters"
|
308 |
msgstr ""
|
309 |
|
310 |
+
#: system/mw_wp_form_admin_page.php:476
|
311 |
msgid "The number of the minimum characters"
|
312 |
msgstr ""
|
313 |
|
325 |
msgstr ""
|
326 |
|
327 |
#. Author of the plugin/theme
|
328 |
+
msgid "inc2734"
|
329 |
msgstr ""
|
330 |
|
331 |
#. Author URI of the plugin/theme
|
mw-wp-form.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Plugin Name: MW WP Form
|
4 |
* Plugin URI: http://2inc.org/blog/category/products/wordpress_plugins/mw-wp-form/
|
5 |
* Description: MW WP Form can create mail form with a confirmation screen using shortcode.
|
6 |
-
* Version: 0.6.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created: September 25, 2012
|
10 |
-
* Modified:
|
11 |
* Text Domain: mw-wp-form
|
12 |
* Domain Path: /languages/
|
13 |
* License: GPL2
|
@@ -352,6 +352,12 @@ class mw_wp_form {
|
|
352 |
$redirect = ( empty( $url ) ) ? $_SERVER['REQUEST_URI'] : $url;
|
353 |
$redirect = $this->parse_url( $redirect );
|
354 |
$REQUEST_URI = $this->parse_url( $_SERVER['REQUEST_URI'] );
|
|
|
|
|
|
|
|
|
|
|
|
|
355 |
if ( $redirect != $REQUEST_URI || $this->Form->isInput() && !empty( $_POST ) ) {
|
356 |
wp_redirect( $redirect );
|
357 |
exit();
|
@@ -368,20 +374,21 @@ class mw_wp_form {
|
|
368 |
if ( empty( $url ) ) {
|
369 |
return '';
|
370 |
}
|
371 |
-
|
372 |
-
|
373 |
-
if ( empty( $
|
374 |
-
$
|
375 |
-
}
|
376 |
-
// 第2階層以下にインストールされているとき
|
377 |
-
else {
|
378 |
-
$home_url = str_replace( $parse_home_url['path'], '', home_url() );
|
379 |
}
|
380 |
if ( !preg_match( '/^https?:\/\//', $url ) ) {
|
381 |
-
$
|
|
|
|
|
382 |
}
|
383 |
$url = preg_replace( '/([^:])\/+/', '$1/', $url );
|
384 |
$url = trailingslashit( $url );
|
|
|
|
|
|
|
385 |
return $url;
|
386 |
}
|
387 |
|
@@ -428,16 +435,17 @@ class mw_wp_form {
|
|
428 |
if ( $this->viewFlg == 'input' || $this->viewFlg == 'preview' ) {
|
429 |
$this->Error = $this->Validation->Error();
|
430 |
|
|
|
431 |
$user = wp_get_current_user();
|
432 |
-
$search = array(
|
433 |
-
'{user_id}',
|
434 |
-
'{user_login}',
|
435 |
-
'{user_email}',
|
436 |
-
'{user_url}',
|
437 |
-
'{user_registered}',
|
438 |
-
'{display_name}',
|
439 |
-
);
|
440 |
if ( !empty( $user ) ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
441 |
$content = str_replace( $search, array(
|
442 |
$user->get( 'ID' ),
|
443 |
$user->get( 'user_login' ),
|
@@ -446,10 +454,16 @@ class mw_wp_form {
|
|
446 |
$user->get( 'user_registered' ),
|
447 |
$user->get( 'display_name' ),
|
448 |
), $content );
|
449 |
-
} else {
|
450 |
-
$content = str_replace( $search, '', $content );
|
451 |
}
|
452 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
453 |
return
|
454 |
'<div id="mw_wp_form_' . $this->key . '" class="mw_wp_form">' .
|
455 |
$this->Form->start() .
|
@@ -459,6 +473,31 @@ class mw_wp_form {
|
|
459 |
}
|
460 |
}
|
461 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
462 |
/**
|
463 |
* _mwform_complete_message
|
464 |
* 完了後のメッセージ。同一ページで画面変遷したときだけ実行する
|
3 |
* Plugin Name: MW WP Form
|
4 |
* Plugin URI: http://2inc.org/blog/category/products/wordpress_plugins/mw-wp-form/
|
5 |
* Description: MW WP Form can create mail form with a confirmation screen using shortcode.
|
6 |
+
* Version: 0.6.4
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created: September 25, 2012
|
10 |
+
* Modified: April 1, 2013
|
11 |
* Text Domain: mw-wp-form
|
12 |
* Domain Path: /languages/
|
13 |
* License: GPL2
|
352 |
$redirect = ( empty( $url ) ) ? $_SERVER['REQUEST_URI'] : $url;
|
353 |
$redirect = $this->parse_url( $redirect );
|
354 |
$REQUEST_URI = $this->parse_url( $_SERVER['REQUEST_URI'] );
|
355 |
+
/*
|
356 |
+
var_dump( $redirect );
|
357 |
+
echo '<br />';
|
358 |
+
var_dump( $REQUEST_URI );
|
359 |
+
exit;
|
360 |
+
*/
|
361 |
if ( $redirect != $REQUEST_URI || $this->Form->isInput() && !empty( $_POST ) ) {
|
362 |
wp_redirect( $redirect );
|
363 |
exit();
|
374 |
if ( empty( $url ) ) {
|
375 |
return '';
|
376 |
}
|
377 |
+
|
378 |
+
preg_match( '/(\?.*)$/', $url, $reg );
|
379 |
+
if ( !empty( $reg[1] ) ) {
|
380 |
+
$url = str_replace( $reg[1], '', $url );
|
|
|
|
|
|
|
|
|
381 |
}
|
382 |
if ( !preg_match( '/^https?:\/\//', $url ) ) {
|
383 |
+
$protocol = ( is_ssl() ) ? 'https://' : 'http://';
|
384 |
+
$home_url = untrailingslashit( $protocol.$_SERVER['HTTP_HOST'] );
|
385 |
+
$url = $home_url . $url;
|
386 |
}
|
387 |
$url = preg_replace( '/([^:])\/+/', '$1/', $url );
|
388 |
$url = trailingslashit( $url );
|
389 |
+
if ( !empty( $this->options_by_formkey['querystring'] ) && isset( $_GET['post_id'] ) && preg_match( '/^\d+$/', $_GET['post_id'] ) ) {
|
390 |
+
$url = $url . '?post_id=' . $_GET['post_id'];
|
391 |
+
}
|
392 |
return $url;
|
393 |
}
|
394 |
|
435 |
if ( $this->viewFlg == 'input' || $this->viewFlg == 'preview' ) {
|
436 |
$this->Error = $this->Validation->Error();
|
437 |
|
438 |
+
// ユーザー情報取得
|
439 |
$user = wp_get_current_user();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
440 |
if ( !empty( $user ) ) {
|
441 |
+
$search = array(
|
442 |
+
'{user_id}',
|
443 |
+
'{user_login}',
|
444 |
+
'{user_email}',
|
445 |
+
'{user_url}',
|
446 |
+
'{user_registered}',
|
447 |
+
'{display_name}',
|
448 |
+
);
|
449 |
$content = str_replace( $search, array(
|
450 |
$user->get( 'ID' ),
|
451 |
$user->get( 'user_login' ),
|
454 |
$user->get( 'user_registered' ),
|
455 |
$user->get( 'display_name' ),
|
456 |
), $content );
|
|
|
|
|
457 |
}
|
458 |
|
459 |
+
// 投稿情報取得
|
460 |
+
if ( isset( $this->options_by_formkey['querystring'] ) )
|
461 |
+
$querystring = $this->options_by_formkey['querystring'];
|
462 |
+
if ( !empty( $querystring ) ) {
|
463 |
+
$content = preg_replace_callback( '/{(.+?)}/', array( $this, 'get_post_propery' ), $content );
|
464 |
+
}
|
465 |
+
//$content = preg_replace( '/{.+?}/', '', $content );
|
466 |
+
|
467 |
return
|
468 |
'<div id="mw_wp_form_' . $this->key . '" class="mw_wp_form">' .
|
469 |
$this->Form->start() .
|
473 |
}
|
474 |
}
|
475 |
|
476 |
+
/**
|
477 |
+
* get_post_propery
|
478 |
+
* 引数 post_id が有効の場合、ユーザー情報を取得するために preg_replace_callback から呼び出される。
|
479 |
+
* @param Array $matches
|
480 |
+
* @return String
|
481 |
+
*/
|
482 |
+
public function get_post_propery( $matches ) {
|
483 |
+
if ( isset( $this->options_by_formkey['querystring'] ) )
|
484 |
+
$querystring = $this->options_by_formkey['querystring'];
|
485 |
+
if ( !empty( $querystring ) && isset( $_GET['post_id'] ) && preg_match( '/^\d+$/', $_GET['post_id'] ) ) {
|
486 |
+
$_post = get_post( $_GET['post_id'] );
|
487 |
+
if ( empty( $_post->ID ) )
|
488 |
+
return $matches[0];
|
489 |
+
if ( isset( $_post->$matches[1] ) ) {
|
490 |
+
return $_post->$matches[1];
|
491 |
+
} else {
|
492 |
+
// post_meta の処理
|
493 |
+
$pm = get_post_meta( $_post->ID, $matches[1], true );
|
494 |
+
if ( !empty( $pm ) )
|
495 |
+
return $pm;
|
496 |
+
}
|
497 |
+
}
|
498 |
+
return $matches[0];
|
499 |
+
}
|
500 |
+
|
501 |
/**
|
502 |
* _mwform_complete_message
|
503 |
* 完了後のメッセージ。同一ページで画面変遷したときだけ実行する
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:
|
|
4 |
Tags: plugin, form, confirm, preview
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 3.5
|
7 |
-
Stable tag: 0.6.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -29,6 +29,12 @@ http://2inc.org/blog/category/products/wordpress_plugins/mw-wp-form/
|
|
29 |
|
30 |
== Changelog ==
|
31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
= 0.6.3 =
|
33 |
* Bug fix: 管理画面のURL設定で http から入れないとメールが二重送信されてしまうバグを修正
|
34 |
* Bug fix: フォーム識別子部分が Firefox でコピペできないバグを修正
|
4 |
Tags: plugin, form, confirm, preview
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 3.5
|
7 |
+
Stable tag: 0.6.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
29 |
|
30 |
== Changelog ==
|
31 |
|
32 |
+
= 0.6.4 =
|
33 |
+
* Added : 引数を有効にする meta_box を追加
|
34 |
+
* Bug fix: "Zip Code" が日本語化されていないバグを修正
|
35 |
+
* Bug fix: ページリダイレクトのURL判定を変更
|
36 |
+
* Bug fix: バリデーション mail に複数のメールアドレスを指定できないように変更
|
37 |
+
|
38 |
= 0.6.3 =
|
39 |
* Bug fix: 管理画面のURL設定で http から入れないとメールが二重送信されてしまうバグを修正
|
40 |
* Bug fix: フォーム識別子部分が Firefox でコピペできないバグを修正
|
system/mw_mail.php
CHANGED
@@ -3,14 +3,14 @@
|
|
3 |
* Name: MW Mail
|
4 |
* URI: http://2inc.org
|
5 |
* Description: メールクラス
|
6 |
-
* Version: 1.2.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created: July 20, 2012
|
10 |
-
* Modified:
|
11 |
* License: GPL2
|
12 |
*
|
13 |
-
* Copyright
|
14 |
*
|
15 |
* This program is free software; you can redistribute it and/or modify
|
16 |
* it under the terms of the GNU General Public License, version 2, as
|
@@ -70,8 +70,12 @@ class MW_Mail {
|
|
70 |
$header .= "X-Mailer:PHP\n";
|
71 |
*/
|
72 |
$header .= "From:" . $fromHeader . "\n";
|
73 |
-
|
74 |
-
|
|
|
|
|
|
|
|
|
75 |
}
|
76 |
|
77 |
/**
|
3 |
* Name: MW Mail
|
4 |
* URI: http://2inc.org
|
5 |
* Description: メールクラス
|
6 |
+
* Version: 1.2.2
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created: July 20, 2012
|
10 |
+
* Modified: April 6, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
+
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
14 |
*
|
15 |
* This program is free software; you can redistribute it and/or modify
|
16 |
* it under the terms of the GNU General Public License, version 2, as
|
70 |
$header .= "X-Mailer:PHP\n";
|
71 |
*/
|
72 |
$header .= "From:" . $fromHeader . "\n";
|
73 |
+
$to = explode( ',', $this->to );
|
74 |
+
if ( isset( $to[0] ) ) {
|
75 |
+
$to = trim( $to[0] );
|
76 |
+
wp_mail( $to, $subject, $body, $header );
|
77 |
+
// mail( $to, $subject, $body, $header );
|
78 |
+
}
|
79 |
}
|
80 |
|
81 |
/**
|
system/mw_validation.php
CHANGED
@@ -3,24 +3,24 @@
|
|
3 |
* Name: MW Validation
|
4 |
* URI: http://2inc.org
|
5 |
* Description: バリデーションクラス
|
6 |
-
* Version: 1.2.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created: July 20, 2012
|
10 |
-
* Modified:
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
14 |
-
*
|
15 |
* This program is free software; you can redistribute it and/or modify
|
16 |
* it under the terms of the GNU General Public License, version 2, as
|
17 |
* published by the Free Software Foundation.
|
18 |
-
*
|
19 |
* This program is distributed in the hope that it will be useful,
|
20 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
21 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
22 |
* GNU General Public License for more details.
|
23 |
-
*
|
24 |
* You should have received a copy of the GNU General Public License
|
25 |
* along with this program; if not, write to the Free Software
|
26 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
@@ -42,7 +42,7 @@ class MW_Validation {
|
|
42 |
// エラーオブジェクトを設定
|
43 |
$this->Error = new MW_Error();
|
44 |
}
|
45 |
-
|
46 |
private function getValue( $key ) {
|
47 |
$value = null;
|
48 |
if ( ! isset( $this->data[$key] ) ) return $value;
|
@@ -259,7 +259,7 @@ class MW_Validation {
|
|
259 |
'message' => __( 'This is not the format of a mail address.', self::DOMAIN )
|
260 |
);
|
261 |
$options = array_merge( $defaults, $options );
|
262 |
-
if ( !preg_match( '
|
263 |
$_ret = $options['message'];
|
264 |
}
|
265 |
}
|
@@ -485,7 +485,7 @@ class MW_Validation {
|
|
485 |
protected function array_clean( $array ) {
|
486 |
return array_merge( array_diff( $array, array( '' ) ) );
|
487 |
}
|
488 |
-
|
489 |
/**
|
490 |
* noempty
|
491 |
* 値が空(0は許可)
|
3 |
* Name: MW Validation
|
4 |
* URI: http://2inc.org
|
5 |
* Description: バリデーションクラス
|
6 |
+
* Version: 1.2.3
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created: July 20, 2012
|
10 |
+
* Modified: April 6, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
14 |
+
*
|
15 |
* This program is free software; you can redistribute it and/or modify
|
16 |
* it under the terms of the GNU General Public License, version 2, as
|
17 |
* published by the Free Software Foundation.
|
18 |
+
*
|
19 |
* This program is distributed in the hope that it will be useful,
|
20 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
21 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
22 |
* GNU General Public License for more details.
|
23 |
+
*
|
24 |
* You should have received a copy of the GNU General Public License
|
25 |
* along with this program; if not, write to the Free Software
|
26 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
42 |
// エラーオブジェクトを設定
|
43 |
$this->Error = new MW_Error();
|
44 |
}
|
45 |
+
|
46 |
private function getValue( $key ) {
|
47 |
$value = null;
|
48 |
if ( ! isset( $this->data[$key] ) ) return $value;
|
259 |
'message' => __( 'This is not the format of a mail address.', self::DOMAIN )
|
260 |
);
|
261 |
$options = array_merge( $defaults, $options );
|
262 |
+
if ( !preg_match( '/^[^@]+@[^@]+$/', $value ) && !$this->isEmpty( $value ) ) {
|
263 |
$_ret = $options['message'];
|
264 |
}
|
265 |
}
|
485 |
protected function array_clean( $array ) {
|
486 |
return array_merge( array_diff( $array, array( '' ) ) );
|
487 |
}
|
488 |
+
|
489 |
/**
|
490 |
* noempty
|
491 |
* 値が空(0は許可)
|
system/mw_wp_form_admin_page.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Name: MW WP Form Admin Page
|
4 |
* URI: http://2inc.org
|
5 |
* Description: 管理画面クラス
|
6 |
-
* Version: 1.1.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created: February 21, 2013
|
10 |
-
* Modified: March
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
@@ -131,6 +131,13 @@ class MW_WP_Form_Admin_Page {
|
|
131 |
array( $this, 'display_form_key' ),
|
132 |
self::NAME, 'side'
|
133 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
// メール設定
|
135 |
add_meta_box(
|
136 |
self::NAME.'_mail',
|
@@ -318,6 +325,21 @@ class MW_WP_Form_Admin_Page {
|
|
318 |
<?php
|
319 |
}
|
320 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
321 |
/**
|
322 |
* add_complete_message
|
323 |
* 完了画面内容の入力画面を表示
|
3 |
* Name: MW WP Form Admin Page
|
4 |
* URI: http://2inc.org
|
5 |
* Description: 管理画面クラス
|
6 |
+
* Version: 1.1.2
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created: February 21, 2013
|
10 |
+
* Modified: March 25, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
131 |
array( $this, 'display_form_key' ),
|
132 |
self::NAME, 'side'
|
133 |
);
|
134 |
+
// 引数有効
|
135 |
+
add_meta_box(
|
136 |
+
self::NAME.'_querystring',
|
137 |
+
__( 'Activate Query string of post', self::DOMAIN ),
|
138 |
+
array( $this, 'display_query_string' ),
|
139 |
+
self::NAME, 'side'
|
140 |
+
);
|
141 |
// メール設定
|
142 |
add_meta_box(
|
143 |
self::NAME.'_mail',
|
325 |
<?php
|
326 |
}
|
327 |
|
328 |
+
/**
|
329 |
+
* display_query_string
|
330 |
+
* $post を取得するための引数を有効にするフィールドを表示
|
331 |
+
*/
|
332 |
+
public function display_query_string() {
|
333 |
+
global $post;
|
334 |
+
?>
|
335 |
+
<p>
|
336 |
+
<label><input type="checkbox" name="<?php echo esc_attr( self::NAME ); ?>[querystring]" value="1" <?php checked( $this->get_post_data( 'querystring' ), 1 ); ?> /> <?php _e( 'Active', self::DOMAIN ); ?></label><br />
|
337 |
+
<?php _e( 'If this field is active, MW WP Form get the post as query string "post_id" and you can use $post\'s property in editor', self::DOMAIN ); ?><br />
|
338 |
+
<?php _e( 'Example: {ID}, {post_title}, {post_meta} etc...', self::DOMAIN ); ?>
|
339 |
+
</p>
|
340 |
+
<?php
|
341 |
+
}
|
342 |
+
|
343 |
/**
|
344 |
* add_complete_message
|
345 |
* 完了画面内容の入力画面を表示
|