MW WP Form - Version 0.9.5

Version Description

  • Added : URL
  • Cahged : Return-Path
  • Cahged : {}{}
  • Cahged :
  • Cahged : Mail::createBody null
  • Bug fix: Mail::createBody Checkbox Array
Download this release

Release Info

Developer inc2734
Plugin Icon wp plugin MW WP Form
Version 0.9.5
Comparing to
See all releases

Code changes from version 0.9.3 to 0.9.5

css/admin.css CHANGED
@@ -77,6 +77,7 @@ span#formkey_field {
77
  border-top: #ddd solid 1px;
78
  margin: 10px 0 0;
79
  padding: 10px 0 0;
 
80
  }
81
  #mw-wp-form_validation .validation-box table {
82
  margin: 10px 0 0;
77
  border-top: #ddd solid 1px;
78
  margin: 10px 0 0;
79
  padding: 10px 0 0;
80
+ display: none;
81
  }
82
  #mw-wp-form_validation .validation-box table {
83
  margin: 10px 0 0;
form_fields/mw_form_field_checkbox.php CHANGED
@@ -3,11 +3,11 @@
3
  * Name: MW Form Field Checkbox
4
  * URI: http://2inc.org
5
  * Description: チェックボックスを出力。
6
- * Version: 1.1.1
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created: December 14, 2012
10
- * Modified: June 18, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
@@ -55,6 +55,7 @@ class mw_form_field_checkbox extends mw_form_field {
55
  */
56
  protected function inputPage( $atts ) {
57
  $children = $this->getChildren( $atts['children'] );
 
58
  $_ret = $this->Form->checkbox( $atts['name'], $children, array(
59
  'value' => $atts['value'],
60
  ), $atts['separator'] );
3
  * Name: MW Form Field Checkbox
4
  * URI: http://2inc.org
5
  * Description: チェックボックスを出力。
6
+ * Version: 1.1.2
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created: December 14, 2012
10
+ * Modified: August 6, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
55
  */
56
  protected function inputPage( $atts ) {
57
  $children = $this->getChildren( $atts['children'] );
58
+ // $_ret = $this->Form->hidden( $atts['name'] . '[data]', '' );
59
  $_ret = $this->Form->checkbox( $atts['name'], $children, array(
60
  'value' => $atts['value'],
61
  ), $atts['separator'] );
form_fields/mw_form_field_preview_button.php CHANGED
@@ -3,11 +3,11 @@
3
  * Name: MW Form Field Preview Button
4
  * URI: http://2inc.org
5
  * Description: 確認ボタンを出力。
6
- * Version: 1.1.1
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created: December 14, 2012
10
- * Modified: July 22, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
@@ -69,8 +69,8 @@ class mw_form_field_preview_button extends mw_form_field {
69
  protected function add_qtags() {
70
  ?>
71
  '<?php echo $this->short_code_name; ?>',
72
- '<?php _e( 'mwform_previewButton', MWF_Config::DOMAIN ); ?>',
73
- '[<?php echo $this->short_code_name; ?> name=""]',
74
  ''
75
  <?php
76
  }
3
  * Name: MW Form Field Preview Button
4
  * URI: http://2inc.org
5
  * Description: 確認ボタンを出力。
6
+ * Version: 1.1.3
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created: December 14, 2012
10
+ * Modified: August 6, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
69
  protected function add_qtags() {
70
  ?>
71
  '<?php echo $this->short_code_name; ?>',
72
+ '<?php _e( 'Confirm Button', MWF_Config::DOMAIN ); ?>',
73
+ '[<?php echo $this->short_code_name; ?>]',
74
  ''
75
  <?php
76
  }
form_fields/mw_form_field_radio.php CHANGED
@@ -3,11 +3,11 @@
3
  * Name: MW Form Field Radio
4
  * URI: http://2inc.org
5
  * Description: ラジオボタンを出力。
6
- * Version: 1.1
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created: December 14, 2012
10
- * Modified: May 29, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
@@ -54,6 +54,7 @@ class mw_form_field_radio extends mw_form_field {
54
  */
55
  protected function inputPage( $atts ) {
56
  $children = $this->getChildren( $atts['children'] );
 
57
  $_ret = $this->Form->radio( $atts['name'], $children, array(
58
  'value' => $atts['value'],
59
  ) );
3
  * Name: MW Form Field Radio
4
  * URI: http://2inc.org
5
  * Description: ラジオボタンを出力。
6
+ * Version: 1.1.1
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created: December 14, 2012
10
+ * Modified: August 6, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
54
  */
55
  protected function inputPage( $atts ) {
56
  $children = $this->getChildren( $atts['children'] );
57
+ // $_ret = $this->Form->hidden( $atts['name'], '' );
58
  $_ret = $this->Form->radio( $atts['name'], $children, array(
59
  'value' => $atts['value'],
60
  ) );
form_fields/mw_form_field_submit.php CHANGED
@@ -2,12 +2,12 @@
2
  /**
3
  * Name: MW Form Field Submit Button
4
  * URI: http://2inc.org
5
- * Description: 確認ボタンと送信ボタンを自動出力。同一ページ変遷の場合に利用。
6
- * Version: 1.1
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created: December 14, 2012
10
- * Modified: May 29, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
@@ -71,7 +71,7 @@ class mw_form_field_submit extends mw_form_field {
71
  protected function add_qtags() {
72
  ?>
73
  '<?php echo $this->short_code_name; ?>',
74
- '<?php _e( 'Submit', MWF_Config::DOMAIN ); ?>',
75
  '[<?php echo $this->short_code_name; ?> name="submit"]',
76
  ''
77
  <?php
2
  /**
3
  * Name: MW Form Field Submit Button
4
  * URI: http://2inc.org
5
+ * Description: 送信ボタンを出力。
6
+ * Version: 1.1.1
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created: December 14, 2012
10
+ * Modified: July 28, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
71
  protected function add_qtags() {
72
  ?>
73
  '<?php echo $this->short_code_name; ?>',
74
+ '<?php _e( 'Submit Button', MWF_Config::DOMAIN ); ?>',
75
  '[<?php echo $this->short_code_name; ?> name="submit"]',
76
  ''
77
  <?php
form_fields/mw_form_field_submit_button.php CHANGED
@@ -3,11 +3,12 @@
3
  * Name: MW Form Field Submit
4
  * URI: http://2inc.org
5
  * Description: サブミットボタンを出力。
6
- * Version: 1.1
 
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created: December 14, 2012
10
- * Modified: May 29, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
3
  * Name: MW Form Field Submit
4
  * URI: http://2inc.org
5
  * Description: サブミットボタンを出力。
6
+ * Description: 確認ボタンと送信ボタンを自動出力。
7
+ * Version: 1.1.1
8
  * Author: Takashi Kitajima
9
  * Author URI: http://2inc.org
10
  * Created: December 14, 2012
11
+ * Modified: July 28, 2013
12
  * License: GPL2
13
  *
14
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
js/admin.js CHANGED
@@ -28,7 +28,7 @@ jQuery( function( $ ) {
28
  clone.find( 'input' ).each( function() {
29
  $( this ).attr( 'name', $( this ).attr( 'name' ).replace( /\[\d+\]/, '[' + cnt + ']' ) );
30
  } );
31
- clone.hide();
32
  $( this ).siblings( '.validation-box:first' ).after( clone.fadeIn() );
33
  } );
34
 
28
  clone.find( 'input' ).each( function() {
29
  $( this ).attr( 'name', $( this ).attr( 'name' ).replace( /\[\d+\]/, '[' + cnt + ']' ) );
30
  } );
31
+ clone.hide().find( '.validation-content' ).show();
32
  $( this ).siblings( '.validation-box:first' ).after( clone.fadeIn() );
33
  } );
34
 
languages/mw-wp-form-ja.mo CHANGED
Binary file
languages/mw-wp-form-ja.po CHANGED
@@ -2,10 +2,10 @@
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.9\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
7
- "POT-Creation-Date: 2013-06-21 19:25+0900\n"
8
- "PO-Revision-Date: 2013-06-21 19:26+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"
@@ -18,260 +18,262 @@ msgstr ""
18
  "X-Poedit-KeywordsList: __;_e;_x\n"
19
  "X-Poedit-SearchPath-0: ..\n"
20
 
21
- #: ../mw-wp-form.php:315
22
- msgid "Validation Object is not a MW Validation Class."
23
- msgstr ""
24
-
25
- #: ../mw-wp-form.php:500
26
- msgid "Uploaded from "
27
- msgstr ""
28
-
29
- #: ../form_fields/mw_form_field_akismet_error.php:70
30
  msgid "Akismet Error"
31
  msgstr "Akismetエラー"
32
 
33
- #: ../form_fields/mw_form_field_back_button.php:42
34
- #: ../form_fields/mw_form_field_back_button.php:72
35
  msgid "Back"
36
  msgstr "戻る"
37
 
38
- #: ../form_fields/mw_form_field_button.php:74
39
  msgid "Button"
40
  msgstr "ボタン"
41
 
42
- #: ../form_fields/mw_form_field_checkbox.php:88
43
  msgid "Checkbox"
44
  msgstr "チェックボックス"
45
 
46
- #: ../form_fields/mw_form_field_datepicker.php:108
47
  msgid "Datepicker"
48
  msgstr "日付"
49
 
50
- #: ../form_fields/mw_form_field_error.php:77
51
  msgid "Error Message"
52
  msgstr "エラーメッセージ"
53
 
54
- #: ../form_fields/mw_form_field_file.php:62
55
- #: ../form_fields/mw_form_field_file.php:80
56
  msgid "Uploaded."
57
  msgstr "アップロードしました。"
58
 
59
- #: ../form_fields/mw_form_field_file.php:93
60
  msgid "File"
61
  msgstr "ファイルフィールド"
62
 
63
- #: ../form_fields/mw_form_field_hidden.php:75
64
  msgid "Hidden"
65
  msgstr "hiddenフィールド"
66
 
67
- #: ../form_fields/mw_form_field_image.php:93
68
  msgid "Image"
69
  msgstr "画像フィールド"
70
 
71
- #: ../form_fields/mw_form_field_password.php:85
72
  msgid "Password"
73
  msgstr "パスワードフィールド"
74
 
75
- #: ../form_fields/mw_form_field_preview_button.php:42
76
- #: ../form_fields/mw_form_field_submit_button.php:43
77
  msgid "Confirm"
78
  msgstr "確認画面へ"
79
 
80
- #: ../form_fields/mw_form_field_radio.php:86
 
 
 
 
81
  msgid "Radio"
82
  msgstr "ラジオボタン"
83
 
84
- #: ../form_fields/mw_form_field_select.php:86
85
  msgid "Select"
86
  msgstr "セレクトボックス"
87
 
88
- #: ../form_fields/mw_form_field_submit.php:43
89
- #: ../form_fields/mw_form_field_submit_button.php:44
90
  msgid "Send"
91
  msgstr "送信する"
92
 
93
- #: ../form_fields/mw_form_field_submit.php:74
94
- msgid "Submit"
95
- msgstr "送信"
96
 
97
- #: ../form_fields/mw_form_field_submit_button.php:78
98
  msgid "Confirm &amp; Submit"
99
  msgstr "確認・送信"
100
 
101
- #: ../form_fields/mw_form_field_tel.php:81
102
- #: ../system/mw_wp_form_admin_page.php:528
103
  msgid "Tel"
104
  msgstr "電話番号"
105
 
106
- #: ../form_fields/mw_form_field_text.php:87
107
  msgid "Text"
108
  msgstr "テキストフィールド"
109
 
110
- #: ../form_fields/mw_form_field_textarea.php:87
111
  msgid "Textarea"
112
  msgstr "テキストエリア"
113
 
114
- #: ../form_fields/mw_form_field_zip.php:81
115
  msgid "Zip Code"
116
  msgstr "郵便番号"
117
 
118
- #: ../system/mw_validation.php:75
 
 
 
 
 
 
 
 
119
  msgid "This is required."
120
  msgstr "必須項目です。"
121
 
122
- #: ../system/mw_validation.php:95 ../system/mw_validation.php:115
123
  msgid "Please enter."
124
  msgstr "未入力です。"
125
 
126
- #: ../system/mw_validation.php:137
127
  msgid "Please enter with a half-width alphabetic character."
128
  msgstr "半角英字で入力してください。"
129
 
130
- #: ../system/mw_validation.php:157
131
  msgid "Please enter with a half-width number."
132
  msgstr "半角数字で入力してください。"
133
 
134
- #: ../system/mw_validation.php:177
135
  msgid "Please enter with a half-width alphanumeric character."
136
  msgstr "半角英数字で入力してください。"
137
 
138
- #: ../system/mw_validation.php:197
139
  msgid "This is not the format of a zip code."
140
  msgstr "郵便番号の形式ではありません。"
141
 
142
- #: ../system/mw_validation.php:224
143
  msgid "This is not the format of a tel number."
144
  msgstr "電話番号の形式ではありません。"
145
 
146
- #: ../system/mw_validation.php:251
147
  msgid "This is not the format of a mail address."
148
  msgstr "メールアドレスの形式ではありません。"
149
 
150
- #: ../system/mw_validation.php:271
151
  msgid "This is not the format of a url."
152
  msgstr "URLの形式ではありません。"
153
 
154
- #: ../system/mw_validation.php:292
155
  msgid "This is not in agreement."
156
  msgstr "一致しません。"
157
 
158
- #: ../system/mw_validation.php:316
159
  msgid "The number of characters is invalid."
160
  msgstr "文字数が正しくありません。"
161
 
162
- #: ../system/mw_validation.php:352
163
  msgid "The number of characters is a few."
164
  msgstr "文字数が足りません。"
165
 
166
- #: ../system/mw_validation.php:376
167
  msgid "This value is invalid."
168
  msgstr "値が不正です。"
169
 
170
- #: ../system/mw_validation.php:398
171
  msgid "This is not the format of a date."
172
  msgstr "日付の形式ではありません。"
173
 
174
- #: ../system/mw_validation.php:426
175
  msgid "This file is invalid."
176
  msgstr "許可されたファイルではありません。"
177
 
178
- #: ../system/mw_validation.php:456
179
  msgid "This file size is too big."
180
  msgstr "ファイルサイズが大きすぎます。"
181
 
182
- #: ../system/mw_validation.php:476
183
  msgid "The contents which you input were judged with spam."
184
  msgstr "あなたの入力した内容はスパムと判定されました。"
185
 
186
- #: ../system/mw_wp_form_admin_page.php:66
187
  msgid "Add New Form"
188
  msgstr "フォームを追加"
189
 
190
- #: ../system/mw_wp_form_admin_page.php:67
191
  msgid "Edit Form"
192
  msgstr "フォームを編集"
193
 
194
- #: ../system/mw_wp_form_admin_page.php:68
195
  msgid "New Form"
196
  msgstr "新しいフォーム"
197
 
198
- #: ../system/mw_wp_form_admin_page.php:69
199
  msgid "View Form"
200
  msgstr "フォームを表示"
201
 
202
- #: ../system/mw_wp_form_admin_page.php:70
203
  msgid "Search Forms"
204
  msgstr "フォームを検索"
205
 
206
- #: ../system/mw_wp_form_admin_page.php:71
207
  msgid "No Forms found"
208
  msgstr "フォームがありません"
209
 
210
- #: ../system/mw_wp_form_admin_page.php:72
211
  msgid "No Forms found in Trash"
212
  msgstr "ゴミ箱にフォームはありません"
213
 
214
- #: ../system/mw_wp_form_admin_page.php:93
215
  msgid "Edit "
216
  msgstr "編集"
217
 
218
- #: ../system/mw_wp_form_admin_page.php:94
219
  msgid "View"
220
  msgstr "表示"
221
 
222
- #: ../system/mw_wp_form_admin_page.php:95
223
  msgid "Search"
224
  msgstr "検索"
225
 
226
- #: ../system/mw_wp_form_admin_page.php:96
227
  msgid "No data found"
228
  msgstr "データがありません"
229
 
230
- #: ../system/mw_wp_form_admin_page.php:97
231
  msgid "No data found in Trash"
232
  msgstr "ゴミ箱にデータはありません"
233
 
234
- #: ../system/mw_wp_form_admin_page.php:135
235
  msgid "Complete Message"
236
  msgstr "完了画面メッセージ"
237
 
238
- #: ../system/mw_wp_form_admin_page.php:142
239
  msgid "URL Options"
240
  msgstr "URL設定"
241
 
242
- #: ../system/mw_wp_form_admin_page.php:149
243
  msgid "Validation Rule"
244
  msgstr "バリデーションルール"
245
 
246
- #: ../system/mw_wp_form_admin_page.php:156
247
  msgid "Form Key"
248
  msgstr "フォーム識別子"
249
 
250
- #: ../system/mw_wp_form_admin_page.php:163
251
  msgid "Automatic Reply Email Options"
252
  msgstr "自動返信メール設定"
253
 
254
- #: ../system/mw_wp_form_admin_page.php:170
255
  msgid "Admin Email Options"
256
  msgstr "管理者宛メール設定"
257
 
258
- #: ../system/mw_wp_form_admin_page.php:177
259
  msgid "settings"
260
  msgstr "設定"
261
 
262
- #: ../system/mw_wp_form_admin_page.php:184
263
  msgid "Custom Fields"
264
  msgstr "カスタムフィールド"
265
 
266
- #: ../system/mw_wp_form_admin_page.php:347
267
  msgid "Copy and Paste this shortcode."
268
  msgstr "このショートコードをコピー&ペーストしてください。"
269
 
270
- #: ../system/mw_wp_form_admin_page.php:361
271
  msgid "Activate Query string of post"
272
  msgstr "URL引数を有効にする"
273
 
274
- #: ../system/mw_wp_form_admin_page.php:362
275
  msgid ""
276
  "If this field is active, MW WP Form get the post as query string \"post_id\" "
277
  "and you can use $post's property in editor"
@@ -279,46 +281,43 @@ msgstr ""
279
  "有効にした場合、MW WP FormはURL引数 ”post_id\" をもとに投稿を取得して、その投"
280
  "稿($post) のプロパティを使用できるようになります。"
281
 
282
- #: ../system/mw_wp_form_admin_page.php:363
283
  msgid "Example: {ID}, {post_title}, {post_meta} etc..."
284
  msgstr "例:{ID}、{post_title}、{post_meta}など…"
285
 
286
- #: ../system/mw_wp_form_admin_page.php:366
287
  msgid "Saving contact data in database"
288
  msgstr "問い合わせデータをデータベースに保存"
289
 
290
- #: ../system/mw_wp_form_admin_page.php:370
291
  msgid "Akismet Setting"
292
  msgstr "Akismet 設定"
293
 
294
- #: ../system/mw_wp_form_admin_page.php:385
295
  msgid "Input the key to use Akismet."
296
  msgstr "Akismetを使用する項目のキーを入力してください。"
297
 
298
- #: ../system/mw_wp_form_admin_page.php:410
299
- #: ../system/mw_wp_form_admin_page.php:442
300
  msgid "Subject"
301
  msgstr "件名"
302
 
303
- #: ../system/mw_wp_form_admin_page.php:414
304
- #: ../system/mw_wp_form_admin_page.php:446
305
  msgid "Ccontent"
306
  msgstr "本文"
307
 
308
- #: ../system/mw_wp_form_admin_page.php:416
309
- #: ../system/mw_wp_form_admin_page.php:448
310
  msgid "{key} is converted form data."
311
  msgstr "{キー}でそのフォーム項目に変換されます。"
312
 
313
- #: ../system/mw_wp_form_admin_page.php:419
314
  msgid "Automatic reply email"
315
  msgstr "自動返信メール"
316
 
317
- #: ../system/mw_wp_form_admin_page.php:421
318
  msgid "Input the key to use as transmission to automatic reply email."
319
  msgstr "自動返信メールに使用する項目のキーを入力してください。"
320
 
321
- #: ../system/mw_wp_form_admin_page.php:434
322
  msgid ""
323
  "If Admin Email Options is a blank, Automatic Replay Email Options is used as "
324
  "Admin Email Options."
@@ -326,101 +325,125 @@ msgstr ""
326
  "管理者宛メール設定が空のときは自動返信メール設定が管理者宛メール設定が使用さ"
327
  "れます。"
328
 
329
- #: ../system/mw_wp_form_admin_page.php:437
330
  msgid "To ( E-mail address )"
331
  msgstr "送信先(E-mailアドレス)"
332
 
333
- #: ../system/mw_wp_form_admin_page.php:439
334
  msgid "If empty: Using admin E-mail address."
335
  msgstr "未入力の場合:管理者のE-mailアドレスを使用します。"
336
 
337
- #: ../system/mw_wp_form_admin_page.php:463
338
  msgid "Input Page URL"
339
  msgstr "入力画面URL"
340
 
341
- #: ../system/mw_wp_form_admin_page.php:469
342
  msgid "Confirmation Page URL"
343
  msgstr "確認画面URL"
344
 
345
- #: ../system/mw_wp_form_admin_page.php:475
346
  msgid "Complete Page URL"
347
  msgstr "完了画面URL"
348
 
349
- #: ../system/mw_wp_form_admin_page.php:512
 
 
 
 
350
  msgid "Add Validation rule"
351
  msgstr "バリデーションルールを追加"
352
 
353
- #: ../system/mw_wp_form_admin_page.php:518
354
  msgid "The key which applies validation"
355
  msgstr "バリデーションを適用する項目"
356
 
357
- #: ../system/mw_wp_form_admin_page.php:522
358
  msgid "No empty"
359
  msgstr "必須項目"
360
 
361
- #: ../system/mw_wp_form_admin_page.php:523
362
  msgid "No empty( with checkbox )"
363
  msgstr "必須項目(チェックボックス)"
364
 
365
- #: ../system/mw_wp_form_admin_page.php:524
366
  msgid "Numeric"
367
  msgstr "半角数字"
368
 
369
- #: ../system/mw_wp_form_admin_page.php:525
370
  msgid "Alphabet"
371
  msgstr "半角英字"
372
 
373
- #: ../system/mw_wp_form_admin_page.php:526
374
  msgid "Alphabet and Numeric"
375
  msgstr "半角英数字"
376
 
377
- #: ../system/mw_wp_form_admin_page.php:527
378
  msgid "Zip code"
379
  msgstr "郵便番号"
380
 
381
- #: ../system/mw_wp_form_admin_page.php:529
382
  msgid "E-mail"
383
  msgstr "メールアドレス"
384
 
385
- #: ../system/mw_wp_form_admin_page.php:530
386
  msgid "Date"
387
  msgstr "日付"
388
 
389
- #: ../system/mw_wp_form_admin_page.php:534
390
  msgid "The key at same value"
391
  msgstr "一致する項目"
392
 
393
- #: ../system/mw_wp_form_admin_page.php:538
394
  msgid "The range of the number of characters"
395
  msgstr "文字数の範囲"
396
 
397
- #: ../system/mw_wp_form_admin_page.php:546
398
  msgid "The number of the minimum characters"
399
  msgstr "最小文字数"
400
 
401
- #: ../system/mw_wp_form_admin_page.php:550
402
  msgid "Permitted Extension"
403
  msgstr "拡張子制限"
404
 
405
- #: ../system/mw_wp_form_admin_page.php:551
406
  msgid "Example:jpg or jpg,txt,…"
407
  msgstr "例:jpg もしくは jpg,txt…"
408
 
409
- #: ../system/mw_wp_form_admin_page.php:554
410
  msgid "Permitted file size"
411
  msgstr "サイズ制限"
412
 
413
- #: ../system/mw_wp_form_admin_page.php:555
414
  msgid "bytes"
415
  msgstr ""
416
 
417
- #: ../system/mw_wp_form_admin_page.php:592
418
  msgid "Registed Date"
419
  msgstr "登録日時"
420
 
421
- #~ msgid "MW WP Form can create mail form with a confirmation screen."
422
- #~ msgstr ""
423
- #~ "MW WP Formは確認画面付きのフォームを作成しメールを送信することができます。"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
424
 
425
  #~ msgid "Active"
426
  #~ msgstr "有効にする"
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.9.5\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
7
+ "POT-Creation-Date: 2013-08-06 02:52:29+00:00\n"
8
+ "PO-Revision-Date: 2013-08-06 11:55+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"
18
  "X-Poedit-KeywordsList: __;_e;_x\n"
19
  "X-Poedit-SearchPath-0: ..\n"
20
 
21
+ #: form_fields/mw_form_field_akismet_error.php:70
 
 
 
 
 
 
 
 
22
  msgid "Akismet Error"
23
  msgstr "Akismetエラー"
24
 
25
+ #: form_fields/mw_form_field_back_button.php:42
26
+ #: form_fields/mw_form_field_back_button.php:72
27
  msgid "Back"
28
  msgstr "戻る"
29
 
30
+ #: form_fields/mw_form_field_button.php:74
31
  msgid "Button"
32
  msgstr "ボタン"
33
 
34
+ #: form_fields/mw_form_field_checkbox.php:88
35
  msgid "Checkbox"
36
  msgstr "チェックボックス"
37
 
38
+ #: form_fields/mw_form_field_datepicker.php:108
39
  msgid "Datepicker"
40
  msgstr "日付"
41
 
42
+ #: form_fields/mw_form_field_error.php:77
43
  msgid "Error Message"
44
  msgstr "エラーメッセージ"
45
 
46
+ #: form_fields/mw_form_field_file.php:62 form_fields/mw_form_field_file.php:81
 
47
  msgid "Uploaded."
48
  msgstr "アップロードしました。"
49
 
50
+ #: form_fields/mw_form_field_file.php:95
51
  msgid "File"
52
  msgstr "ファイルフィールド"
53
 
54
+ #: form_fields/mw_form_field_hidden.php:75
55
  msgid "Hidden"
56
  msgstr "hiddenフィールド"
57
 
58
+ #: form_fields/mw_form_field_image.php:95
59
  msgid "Image"
60
  msgstr "画像フィールド"
61
 
62
+ #: form_fields/mw_form_field_password.php:85
63
  msgid "Password"
64
  msgstr "パスワードフィールド"
65
 
66
+ #: form_fields/mw_form_field_preview_button.php:42
67
+ #: form_fields/mw_form_field_submit_button.php:44
68
  msgid "Confirm"
69
  msgstr "確認画面へ"
70
 
71
+ #: form_fields/mw_form_field_preview_button.php:72
72
+ msgid "Confirm Button"
73
+ msgstr "確認ボタン"
74
+
75
+ #: form_fields/mw_form_field_radio.php:86
76
  msgid "Radio"
77
  msgstr "ラジオボタン"
78
 
79
+ #: form_fields/mw_form_field_select.php:86
80
  msgid "Select"
81
  msgstr "セレクトボックス"
82
 
83
+ #: form_fields/mw_form_field_submit.php:43
84
+ #: form_fields/mw_form_field_submit_button.php:45
85
  msgid "Send"
86
  msgstr "送信する"
87
 
88
+ #: form_fields/mw_form_field_submit.php:74
89
+ msgid "Submit Button"
90
+ msgstr "送信ボタン"
91
 
92
+ #: form_fields/mw_form_field_submit_button.php:79
93
  msgid "Confirm &amp; Submit"
94
  msgstr "確認・送信"
95
 
96
+ #: form_fields/mw_form_field_tel.php:81 system/mw_wp_form_admin_page.php:534
 
97
  msgid "Tel"
98
  msgstr "電話番号"
99
 
100
+ #: form_fields/mw_form_field_text.php:87
101
  msgid "Text"
102
  msgstr "テキストフィールド"
103
 
104
+ #: form_fields/mw_form_field_textarea.php:87
105
  msgid "Textarea"
106
  msgstr "テキストエリア"
107
 
108
+ #: form_fields/mw_form_field_zip.php:81
109
  msgid "Zip Code"
110
  msgstr "郵便番号"
111
 
112
+ #: mw-wp-form.php:335
113
+ msgid "Validation Object is not a MW Validation Class."
114
+ msgstr ""
115
+
116
+ #: mw-wp-form.php:520
117
+ msgid "Uploaded from "
118
+ msgstr ""
119
+
120
+ #: system/mw_validation.php:75
121
  msgid "This is required."
122
  msgstr "必須項目です。"
123
 
124
+ #: system/mw_validation.php:95 system/mw_validation.php:115
125
  msgid "Please enter."
126
  msgstr "未入力です。"
127
 
128
+ #: system/mw_validation.php:137
129
  msgid "Please enter with a half-width alphabetic character."
130
  msgstr "半角英字で入力してください。"
131
 
132
+ #: system/mw_validation.php:157
133
  msgid "Please enter with a half-width number."
134
  msgstr "半角数字で入力してください。"
135
 
136
+ #: system/mw_validation.php:177
137
  msgid "Please enter with a half-width alphanumeric character."
138
  msgstr "半角英数字で入力してください。"
139
 
140
+ #: system/mw_validation.php:197
141
  msgid "This is not the format of a zip code."
142
  msgstr "郵便番号の形式ではありません。"
143
 
144
+ #: system/mw_validation.php:224
145
  msgid "This is not the format of a tel number."
146
  msgstr "電話番号の形式ではありません。"
147
 
148
+ #: system/mw_validation.php:251
149
  msgid "This is not the format of a mail address."
150
  msgstr "メールアドレスの形式ではありません。"
151
 
152
+ #: system/mw_validation.php:271
153
  msgid "This is not the format of a url."
154
  msgstr "URLの形式ではありません。"
155
 
156
+ #: system/mw_validation.php:292
157
  msgid "This is not in agreement."
158
  msgstr "一致しません。"
159
 
160
+ #: system/mw_validation.php:316
161
  msgid "The number of characters is invalid."
162
  msgstr "文字数が正しくありません。"
163
 
164
+ #: system/mw_validation.php:352
165
  msgid "The number of characters is a few."
166
  msgstr "文字数が足りません。"
167
 
168
+ #: system/mw_validation.php:376
169
  msgid "This value is invalid."
170
  msgstr "値が不正です。"
171
 
172
+ #: system/mw_validation.php:398
173
  msgid "This is not the format of a date."
174
  msgstr "日付の形式ではありません。"
175
 
176
+ #: system/mw_validation.php:426
177
  msgid "This file is invalid."
178
  msgstr "許可されたファイルではありません。"
179
 
180
+ #: system/mw_validation.php:456
181
  msgid "This file size is too big."
182
  msgstr "ファイルサイズが大きすぎます。"
183
 
184
+ #: system/mw_validation.php:476
185
  msgid "The contents which you input were judged with spam."
186
  msgstr "あなたの入力した内容はスパムと判定されました。"
187
 
188
+ #: system/mw_wp_form_admin_page.php:66
189
  msgid "Add New Form"
190
  msgstr "フォームを追加"
191
 
192
+ #: system/mw_wp_form_admin_page.php:67
193
  msgid "Edit Form"
194
  msgstr "フォームを編集"
195
 
196
+ #: system/mw_wp_form_admin_page.php:68
197
  msgid "New Form"
198
  msgstr "新しいフォーム"
199
 
200
+ #: system/mw_wp_form_admin_page.php:69
201
  msgid "View Form"
202
  msgstr "フォームを表示"
203
 
204
+ #: system/mw_wp_form_admin_page.php:70
205
  msgid "Search Forms"
206
  msgstr "フォームを検索"
207
 
208
+ #: system/mw_wp_form_admin_page.php:71
209
  msgid "No Forms found"
210
  msgstr "フォームがありません"
211
 
212
+ #: system/mw_wp_form_admin_page.php:72
213
  msgid "No Forms found in Trash"
214
  msgstr "ゴミ箱にフォームはありません"
215
 
216
+ #: system/mw_wp_form_admin_page.php:93
217
  msgid "Edit "
218
  msgstr "編集"
219
 
220
+ #: system/mw_wp_form_admin_page.php:94
221
  msgid "View"
222
  msgstr "表示"
223
 
224
+ #: system/mw_wp_form_admin_page.php:95
225
  msgid "Search"
226
  msgstr "検索"
227
 
228
+ #: system/mw_wp_form_admin_page.php:96
229
  msgid "No data found"
230
  msgstr "データがありません"
231
 
232
+ #: system/mw_wp_form_admin_page.php:97
233
  msgid "No data found in Trash"
234
  msgstr "ゴミ箱にデータはありません"
235
 
236
+ #: system/mw_wp_form_admin_page.php:135
237
  msgid "Complete Message"
238
  msgstr "完了画面メッセージ"
239
 
240
+ #: system/mw_wp_form_admin_page.php:142
241
  msgid "URL Options"
242
  msgstr "URL設定"
243
 
244
+ #: system/mw_wp_form_admin_page.php:149
245
  msgid "Validation Rule"
246
  msgstr "バリデーションルール"
247
 
248
+ #: system/mw_wp_form_admin_page.php:156
249
  msgid "Form Key"
250
  msgstr "フォーム識別子"
251
 
252
+ #: system/mw_wp_form_admin_page.php:163
253
  msgid "Automatic Reply Email Options"
254
  msgstr "自動返信メール設定"
255
 
256
+ #: system/mw_wp_form_admin_page.php:170
257
  msgid "Admin Email Options"
258
  msgstr "管理者宛メール設定"
259
 
260
+ #: system/mw_wp_form_admin_page.php:177
261
  msgid "settings"
262
  msgstr "設定"
263
 
264
+ #: system/mw_wp_form_admin_page.php:184
265
  msgid "Custom Fields"
266
  msgstr "カスタムフィールド"
267
 
268
+ #: system/mw_wp_form_admin_page.php:347
269
  msgid "Copy and Paste this shortcode."
270
  msgstr "このショートコードをコピー&ペーストしてください。"
271
 
272
+ #: system/mw_wp_form_admin_page.php:361
273
  msgid "Activate Query string of post"
274
  msgstr "URL引数を有効にする"
275
 
276
+ #: system/mw_wp_form_admin_page.php:362
277
  msgid ""
278
  "If this field is active, MW WP Form get the post as query string \"post_id\" "
279
  "and you can use $post's property in editor"
281
  "有効にした場合、MW WP FormはURL引数 ”post_id\" をもとに投稿を取得して、その投"
282
  "稿($post) のプロパティを使用できるようになります。"
283
 
284
+ #: system/mw_wp_form_admin_page.php:363
285
  msgid "Example: {ID}, {post_title}, {post_meta} etc..."
286
  msgstr "例:{ID}、{post_title}、{post_meta}など…"
287
 
288
+ #: system/mw_wp_form_admin_page.php:366
289
  msgid "Saving contact data in database"
290
  msgstr "問い合わせデータをデータベースに保存"
291
 
292
+ #: system/mw_wp_form_admin_page.php:370
293
  msgid "Akismet Setting"
294
  msgstr "Akismet 設定"
295
 
296
+ #: system/mw_wp_form_admin_page.php:385
297
  msgid "Input the key to use Akismet."
298
  msgstr "Akismetを使用する項目のキーを入力してください。"
299
 
300
+ #: system/mw_wp_form_admin_page.php:410 system/mw_wp_form_admin_page.php:442
 
301
  msgid "Subject"
302
  msgstr "件名"
303
 
304
+ #: system/mw_wp_form_admin_page.php:414 system/mw_wp_form_admin_page.php:446
 
305
  msgid "Ccontent"
306
  msgstr "本文"
307
 
308
+ #: system/mw_wp_form_admin_page.php:416 system/mw_wp_form_admin_page.php:448
 
309
  msgid "{key} is converted form data."
310
  msgstr "{キー}でそのフォーム項目に変換されます。"
311
 
312
+ #: system/mw_wp_form_admin_page.php:419
313
  msgid "Automatic reply email"
314
  msgstr "自動返信メール"
315
 
316
+ #: system/mw_wp_form_admin_page.php:421
317
  msgid "Input the key to use as transmission to automatic reply email."
318
  msgstr "自動返信メールに使用する項目のキーを入力してください。"
319
 
320
+ #: system/mw_wp_form_admin_page.php:434
321
  msgid ""
322
  "If Admin Email Options is a blank, Automatic Replay Email Options is used as "
323
  "Admin Email Options."
325
  "管理者宛メール設定が空のときは自動返信メール設定が管理者宛メール設定が使用さ"
326
  "れます。"
327
 
328
+ #: system/mw_wp_form_admin_page.php:437
329
  msgid "To ( E-mail address )"
330
  msgstr "送信先(E-mailアドレス)"
331
 
332
+ #: system/mw_wp_form_admin_page.php:439
333
  msgid "If empty: Using admin E-mail address."
334
  msgstr "未入力の場合:管理者のE-mailアドレスを使用します。"
335
 
336
+ #: system/mw_wp_form_admin_page.php:463
337
  msgid "Input Page URL"
338
  msgstr "入力画面URL"
339
 
340
+ #: system/mw_wp_form_admin_page.php:469
341
  msgid "Confirmation Page URL"
342
  msgstr "確認画面URL"
343
 
344
+ #: system/mw_wp_form_admin_page.php:475
345
  msgid "Complete Page URL"
346
  msgstr "完了画面URL"
347
 
348
+ #: system/mw_wp_form_admin_page.php:481
349
+ msgid "Validation Error Page URL"
350
+ msgstr "エラー画面URL"
351
+
352
+ #: system/mw_wp_form_admin_page.php:518
353
  msgid "Add Validation rule"
354
  msgstr "バリデーションルールを追加"
355
 
356
+ #: system/mw_wp_form_admin_page.php:524
357
  msgid "The key which applies validation"
358
  msgstr "バリデーションを適用する項目"
359
 
360
+ #: system/mw_wp_form_admin_page.php:528
361
  msgid "No empty"
362
  msgstr "必須項目"
363
 
364
+ #: system/mw_wp_form_admin_page.php:529
365
  msgid "No empty( with checkbox )"
366
  msgstr "必須項目(チェックボックス)"
367
 
368
+ #: system/mw_wp_form_admin_page.php:530
369
  msgid "Numeric"
370
  msgstr "半角数字"
371
 
372
+ #: system/mw_wp_form_admin_page.php:531
373
  msgid "Alphabet"
374
  msgstr "半角英字"
375
 
376
+ #: system/mw_wp_form_admin_page.php:532
377
  msgid "Alphabet and Numeric"
378
  msgstr "半角英数字"
379
 
380
+ #: system/mw_wp_form_admin_page.php:533
381
  msgid "Zip code"
382
  msgstr "郵便番号"
383
 
384
+ #: system/mw_wp_form_admin_page.php:535
385
  msgid "E-mail"
386
  msgstr "メールアドレス"
387
 
388
+ #: system/mw_wp_form_admin_page.php:536
389
  msgid "Date"
390
  msgstr "日付"
391
 
392
+ #: system/mw_wp_form_admin_page.php:540
393
  msgid "The key at same value"
394
  msgstr "一致する項目"
395
 
396
+ #: system/mw_wp_form_admin_page.php:544
397
  msgid "The range of the number of characters"
398
  msgstr "文字数の範囲"
399
 
400
+ #: system/mw_wp_form_admin_page.php:552
401
  msgid "The number of the minimum characters"
402
  msgstr "最小文字数"
403
 
404
+ #: system/mw_wp_form_admin_page.php:556
405
  msgid "Permitted Extension"
406
  msgstr "拡張子制限"
407
 
408
+ #: system/mw_wp_form_admin_page.php:557
409
  msgid "Example:jpg or jpg,txt,…"
410
  msgstr "例:jpg もしくは jpg,txt…"
411
 
412
+ #: system/mw_wp_form_admin_page.php:560
413
  msgid "Permitted file size"
414
  msgstr "サイズ制限"
415
 
416
+ #: system/mw_wp_form_admin_page.php:561
417
  msgid "bytes"
418
  msgstr ""
419
 
420
+ #: system/mw_wp_form_admin_page.php:598
421
  msgid "Registed Date"
422
  msgstr "登録日時"
423
 
424
+ #. Plugin Name of the plugin/theme
425
+ msgid "MW WP Form"
426
+ msgstr ""
427
+
428
+ #. Plugin URI of the plugin/theme
429
+ msgid "http://2inc.org/blog/category/products/wordpress_plugins/mw-wp-form/"
430
+ msgstr ""
431
+
432
+ #. Description of the plugin/theme
433
+ msgid "MW WP Form can create mail form with a confirmation screen."
434
+ msgstr ""
435
+ "MW WP Formは確認画面付きのフォームを作成しメールを送信することができます。"
436
+
437
+ #. Author of the plugin/theme
438
+ msgid "Takashi Kitajima"
439
+ msgstr ""
440
+
441
+ #. Author URI of the plugin/theme
442
+ msgid "http://2inc.org"
443
+ msgstr ""
444
+
445
+ #~ msgid "Submit"
446
+ #~ msgstr "送信"
447
 
448
  #~ msgid "Active"
449
  #~ msgstr "有効にする"
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.9\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
7
- "POT-Creation-Date: 2013-06-21 10:17:01+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -43,11 +43,11 @@ msgstr ""
43
  msgid "Error Message"
44
  msgstr ""
45
 
46
- #: form_fields/mw_form_field_file.php:62 form_fields/mw_form_field_file.php:80
47
  msgid "Uploaded."
48
  msgstr ""
49
 
50
- #: form_fields/mw_form_field_file.php:93
51
  msgid "File"
52
  msgstr ""
53
 
@@ -55,7 +55,7 @@ msgstr ""
55
  msgid "Hidden"
56
  msgstr ""
57
 
58
- #: form_fields/mw_form_field_image.php:93
59
  msgid "Image"
60
  msgstr ""
61
 
@@ -64,10 +64,14 @@ msgid "Password"
64
  msgstr ""
65
 
66
  #: form_fields/mw_form_field_preview_button.php:42
67
- #: form_fields/mw_form_field_submit_button.php:43
68
  msgid "Confirm"
69
  msgstr ""
70
 
 
 
 
 
71
  #: form_fields/mw_form_field_radio.php:86
72
  msgid "Radio"
73
  msgstr ""
@@ -77,19 +81,19 @@ msgid "Select"
77
  msgstr ""
78
 
79
  #: form_fields/mw_form_field_submit.php:43
80
- #: form_fields/mw_form_field_submit_button.php:44
81
  msgid "Send"
82
  msgstr ""
83
 
84
  #: form_fields/mw_form_field_submit.php:74
85
- msgid "Submit"
86
  msgstr ""
87
 
88
- #: form_fields/mw_form_field_submit_button.php:78
89
  msgid "Confirm &amp; Submit"
90
  msgstr ""
91
 
92
- #: form_fields/mw_form_field_tel.php:81 system/mw_wp_form_admin_page.php:528
93
  msgid "Tel"
94
  msgstr ""
95
 
@@ -105,11 +109,11 @@ msgstr ""
105
  msgid "Zip Code"
106
  msgstr ""
107
 
108
- #: mw-wp-form.php:315
109
  msgid "Validation Object is not a MW Validation Class."
110
  msgstr ""
111
 
112
- #: mw-wp-form.php:500
113
  msgid "Uploaded from "
114
  msgstr ""
115
 
@@ -337,75 +341,79 @@ msgstr ""
337
  msgid "Complete Page URL"
338
  msgstr ""
339
 
340
- #: system/mw_wp_form_admin_page.php:512
341
- msgid "Add Validation rule"
342
  msgstr ""
343
 
344
  #: system/mw_wp_form_admin_page.php:518
 
 
 
 
345
  msgid "The key which applies validation"
346
  msgstr ""
347
 
348
- #: system/mw_wp_form_admin_page.php:522
349
  msgid "No empty"
350
  msgstr ""
351
 
352
- #: system/mw_wp_form_admin_page.php:523
353
  msgid "No empty( with checkbox )"
354
  msgstr ""
355
 
356
- #: system/mw_wp_form_admin_page.php:524
357
  msgid "Numeric"
358
  msgstr ""
359
 
360
- #: system/mw_wp_form_admin_page.php:525
361
  msgid "Alphabet"
362
  msgstr ""
363
 
364
- #: system/mw_wp_form_admin_page.php:526
365
  msgid "Alphabet and Numeric"
366
  msgstr ""
367
 
368
- #: system/mw_wp_form_admin_page.php:527
369
  msgid "Zip code"
370
  msgstr ""
371
 
372
- #: system/mw_wp_form_admin_page.php:529
373
  msgid "E-mail"
374
  msgstr ""
375
 
376
- #: system/mw_wp_form_admin_page.php:530
377
  msgid "Date"
378
  msgstr ""
379
 
380
- #: system/mw_wp_form_admin_page.php:534
381
  msgid "The key at same value"
382
  msgstr ""
383
 
384
- #: system/mw_wp_form_admin_page.php:538
385
  msgid "The range of the number of characters"
386
  msgstr ""
387
 
388
- #: system/mw_wp_form_admin_page.php:546
389
  msgid "The number of the minimum characters"
390
  msgstr ""
391
 
392
- #: system/mw_wp_form_admin_page.php:550
393
  msgid "Permitted Extension"
394
  msgstr ""
395
 
396
- #: system/mw_wp_form_admin_page.php:551
397
  msgid "Example:jpg or jpg,txt,…"
398
  msgstr ""
399
 
400
- #: system/mw_wp_form_admin_page.php:554
401
  msgid "Permitted file size"
402
  msgstr ""
403
 
404
- #: system/mw_wp_form_admin_page.php:555
405
  msgid "bytes"
406
  msgstr ""
407
 
408
- #: system/mw_wp_form_admin_page.php:592
409
  msgid "Registed Date"
410
  msgstr ""
411
 
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.9.5\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
7
+ "POT-Creation-Date: 2013-08-06 02:52:29+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
43
  msgid "Error Message"
44
  msgstr ""
45
 
46
+ #: form_fields/mw_form_field_file.php:62 form_fields/mw_form_field_file.php:81
47
  msgid "Uploaded."
48
  msgstr ""
49
 
50
+ #: form_fields/mw_form_field_file.php:95
51
  msgid "File"
52
  msgstr ""
53
 
55
  msgid "Hidden"
56
  msgstr ""
57
 
58
+ #: form_fields/mw_form_field_image.php:95
59
  msgid "Image"
60
  msgstr ""
61
 
64
  msgstr ""
65
 
66
  #: form_fields/mw_form_field_preview_button.php:42
67
+ #: form_fields/mw_form_field_submit_button.php:44
68
  msgid "Confirm"
69
  msgstr ""
70
 
71
+ #: form_fields/mw_form_field_preview_button.php:72
72
+ msgid "Confirm Button"
73
+ msgstr ""
74
+
75
  #: form_fields/mw_form_field_radio.php:86
76
  msgid "Radio"
77
  msgstr ""
81
  msgstr ""
82
 
83
  #: form_fields/mw_form_field_submit.php:43
84
+ #: form_fields/mw_form_field_submit_button.php:45
85
  msgid "Send"
86
  msgstr ""
87
 
88
  #: form_fields/mw_form_field_submit.php:74
89
+ msgid "Submit Button"
90
  msgstr ""
91
 
92
+ #: form_fields/mw_form_field_submit_button.php:79
93
  msgid "Confirm &amp; Submit"
94
  msgstr ""
95
 
96
+ #: form_fields/mw_form_field_tel.php:81 system/mw_wp_form_admin_page.php:534
97
  msgid "Tel"
98
  msgstr ""
99
 
109
  msgid "Zip Code"
110
  msgstr ""
111
 
112
+ #: mw-wp-form.php:335
113
  msgid "Validation Object is not a MW Validation Class."
114
  msgstr ""
115
 
116
+ #: mw-wp-form.php:520
117
  msgid "Uploaded from "
118
  msgstr ""
119
 
341
  msgid "Complete Page URL"
342
  msgstr ""
343
 
344
+ #: system/mw_wp_form_admin_page.php:481
345
+ msgid "Validation Error Page URL"
346
  msgstr ""
347
 
348
  #: system/mw_wp_form_admin_page.php:518
349
+ msgid "Add Validation rule"
350
+ msgstr ""
351
+
352
+ #: system/mw_wp_form_admin_page.php:524
353
  msgid "The key which applies validation"
354
  msgstr ""
355
 
356
+ #: system/mw_wp_form_admin_page.php:528
357
  msgid "No empty"
358
  msgstr ""
359
 
360
+ #: system/mw_wp_form_admin_page.php:529
361
  msgid "No empty( with checkbox )"
362
  msgstr ""
363
 
364
+ #: system/mw_wp_form_admin_page.php:530
365
  msgid "Numeric"
366
  msgstr ""
367
 
368
+ #: system/mw_wp_form_admin_page.php:531
369
  msgid "Alphabet"
370
  msgstr ""
371
 
372
+ #: system/mw_wp_form_admin_page.php:532
373
  msgid "Alphabet and Numeric"
374
  msgstr ""
375
 
376
+ #: system/mw_wp_form_admin_page.php:533
377
  msgid "Zip code"
378
  msgstr ""
379
 
380
+ #: system/mw_wp_form_admin_page.php:535
381
  msgid "E-mail"
382
  msgstr ""
383
 
384
+ #: system/mw_wp_form_admin_page.php:536
385
  msgid "Date"
386
  msgstr ""
387
 
388
+ #: system/mw_wp_form_admin_page.php:540
389
  msgid "The key at same value"
390
  msgstr ""
391
 
392
+ #: system/mw_wp_form_admin_page.php:544
393
  msgid "The range of the number of characters"
394
  msgstr ""
395
 
396
+ #: system/mw_wp_form_admin_page.php:552
397
  msgid "The number of the minimum characters"
398
  msgstr ""
399
 
400
+ #: system/mw_wp_form_admin_page.php:556
401
  msgid "Permitted Extension"
402
  msgstr ""
403
 
404
+ #: system/mw_wp_form_admin_page.php:557
405
  msgid "Example:jpg or jpg,txt,…"
406
  msgstr ""
407
 
408
+ #: system/mw_wp_form_admin_page.php:560
409
  msgid "Permitted file size"
410
  msgstr ""
411
 
412
+ #: system/mw_wp_form_admin_page.php:561
413
  msgid "bytes"
414
  msgstr ""
415
 
416
+ #: system/mw_wp_form_admin_page.php:598
417
  msgid "Registed Date"
418
  msgstr ""
419
 
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.
6
- * Version: 0.9.3
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created: September 25, 2012
10
- * Modified: July 28, 2013
11
  * Text Domain: mw-wp-form
12
  * Domain Path: /languages/
13
  * License: GPL2
@@ -36,6 +36,7 @@ class mw_wp_form {
36
  protected $input;
37
  protected $preview;
38
  protected $complete;
 
39
  protected $Data;
40
  protected $Form;
41
  protected $Validation;
@@ -164,7 +165,8 @@ class mw_wp_form {
164
  if ( is_null( $this->key ) ||
165
  is_null( $this->input ) ||
166
  is_null( $this->preview ) ||
167
- is_null( $this->complete ) )
 
168
  return;
169
 
170
  // セッション初期化
@@ -199,7 +201,11 @@ class mw_wp_form {
199
  $this->fileUpload();
200
  $this->redirect( $this->preview );
201
  } else {
202
- $this->redirect( $this->input );
 
 
 
 
203
  }
204
  }
205
  // 完了画面のとき
@@ -220,7 +226,11 @@ class mw_wp_form {
220
  $this->redirect( $this->complete );
221
  $this->Form->clearToken();
222
  } else {
223
- $this->redirect( $this->input );
 
 
 
 
224
  }
225
  }
226
  $this->Session->clearValues();
@@ -253,12 +263,14 @@ class mw_wp_form {
253
  'input' => '',
254
  'preview' => '',
255
  'complete' => '',
 
256
  'key' => 'mwform'
257
  ), $atts );
258
  $this->key = $atts['key'];
259
  $this->input = $this->parse_url( $atts['input'] );
260
  $this->preview = $this->parse_url( $atts['preview'] );
261
  $this->complete = $this->parse_url( $atts['complete'] );
 
262
  }
263
 
264
  /**
@@ -280,6 +292,7 @@ class mw_wp_form {
280
  $this->input = $this->parse_url( $this->options_by_formkey['input_url'] );
281
  $this->preview = $this->parse_url( $this->options_by_formkey['confirmation_url'] );
282
  $this->complete = $this->parse_url( $this->options_by_formkey['complete_url'] );
 
283
  }
284
  }
285
  wp_reset_postdata();
@@ -532,7 +545,7 @@ class mw_wp_form {
532
 
533
  /**
534
  * create_mail_body
535
- * メール本文用に {$postのプロパティ} を置換
536
  */
537
  public function create_mail_body( $matches ) {
538
  return $this->parse_mail_body( $matches, false );
@@ -540,7 +553,7 @@ class mw_wp_form {
540
 
541
  /**
542
  * save_mail_body
543
- * DB保存用に {$postのプロパティ} を置換、保存
544
  */
545
  public function save_mail_body( $matches ) {
546
  return $this->parse_mail_body( $matches, true );
@@ -599,9 +612,12 @@ class mw_wp_form {
599
  if ( empty( $url ) )
600
  return '';
601
 
602
- preg_match( '/(\?.*)$/', $url, $reg );
 
603
  if ( !empty( $reg[1] ) ) {
 
604
  $url = str_replace( $reg[1], '', $url );
 
605
  }
606
  if ( !preg_match( '/^https?:\/\//', $url ) ) {
607
  $protocol = ( is_ssl() ) ? 'https://' : 'http://';
@@ -609,10 +625,14 @@ class mw_wp_form {
609
  $url = $home_url . $url;
610
  }
611
  $url = preg_replace( '/([^:])\/+/', '$1/', $url );
612
- // $url = trailingslashit( $url );
 
 
613
  if ( !empty( $this->options_by_formkey['querystring'] ) && MWF_Functions::is_numeric( $_GET['post_id'] ) ) {
614
- $url = $url . '?post_id=' . $_GET['post_id'];
615
  }
 
 
616
  return $url;
617
  }
618
 
@@ -661,31 +681,15 @@ class mw_wp_form {
661
  do_action( 'mwform_add_shortcode', $this->Form, $this->viewFlg, $this->Error );
662
 
663
  // ユーザー情報取得
664
- $user = wp_get_current_user();
665
- if ( !empty( $user ) ) {
666
- $search = array(
667
- '{user_id}',
668
- '{user_login}',
669
- '{user_email}',
670
- '{user_url}',
671
- '{user_registered}',
672
- '{display_name}',
673
- );
674
- $content = str_replace( $search, array(
675
- $user->get( 'ID' ),
676
- $user->get( 'user_login' ),
677
- $user->get( 'user_email' ),
678
- $user->get( 'user_url' ),
679
- $user->get( 'user_registered' ),
680
- $user->get( 'display_name' ),
681
- ), $content );
682
- }
683
 
684
  // 投稿情報取得
685
  if ( isset( $this->options_by_formkey['querystring'] ) )
686
  $querystring = $this->options_by_formkey['querystring'];
687
  if ( !empty( $querystring ) ) {
688
- $content = preg_replace_callback( '/{(.+?)}/', array( $this, 'get_post_propery' ), $content );
 
 
689
  }
690
 
691
  $upload_file_keys = $this->Form->getValue( MWF_Config::UPLOAD_FILE_KEYS );
@@ -706,12 +710,43 @@ class mw_wp_form {
706
  }
707
 
708
  /**
709
- * get_post_propery
710
- * 引数 post_id が有効の場合、ユーザー情報を取得するために preg_replace_callback から呼び出される。
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
711
  * @param Array $matches
712
  * @return String
713
  */
714
- public function get_post_propery( $matches ) {
715
  if ( isset( $this->options_by_formkey['querystring'] ) )
716
  $querystring = $this->options_by_formkey['querystring'];
717
  if ( !empty( $querystring ) && MWF_Functions::is_numeric( $_GET['post_id'] ) ) {
@@ -727,7 +762,7 @@ class mw_wp_form {
727
  return $pm;
728
  }
729
  }
730
- return $matches[0];
731
  }
732
 
733
  /**
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.
6
+ * Version: 0.9.5
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created: September 25, 2012
10
+ * Modified: August 6, 2013
11
  * Text Domain: mw-wp-form
12
  * Domain Path: /languages/
13
  * License: GPL2
36
  protected $input;
37
  protected $preview;
38
  protected $complete;
39
+ protected $validation_error;
40
  protected $Data;
41
  protected $Form;
42
  protected $Validation;
165
  if ( is_null( $this->key ) ||
166
  is_null( $this->input ) ||
167
  is_null( $this->preview ) ||
168
+ is_null( $this->complete ) ||
169
+ is_null( $this->validation_error ) )
170
  return;
171
 
172
  // セッション初期化
201
  $this->fileUpload();
202
  $this->redirect( $this->preview );
203
  } else {
204
+ if ( !empty( $this->validation_error ) ) {
205
+ $this->redirect( $this->validation_error );
206
+ } else {
207
+ $this->redirect( $this->input );
208
+ }
209
  }
210
  }
211
  // 完了画面のとき
226
  $this->redirect( $this->complete );
227
  $this->Form->clearToken();
228
  } else {
229
+ if ( !empty( $this->validation_error ) ) {
230
+ $this->redirect( $this->validation_error );
231
+ } else {
232
+ $this->redirect( $this->input );
233
+ }
234
  }
235
  }
236
  $this->Session->clearValues();
263
  'input' => '',
264
  'preview' => '',
265
  'complete' => '',
266
+ 'validation_error' => '',
267
  'key' => 'mwform'
268
  ), $atts );
269
  $this->key = $atts['key'];
270
  $this->input = $this->parse_url( $atts['input'] );
271
  $this->preview = $this->parse_url( $atts['preview'] );
272
  $this->complete = $this->parse_url( $atts['complete'] );
273
+ $this->validation_error = $this->parse_url( $atts['validation_error'] );
274
  }
275
 
276
  /**
292
  $this->input = $this->parse_url( $this->options_by_formkey['input_url'] );
293
  $this->preview = $this->parse_url( $this->options_by_formkey['confirmation_url'] );
294
  $this->complete = $this->parse_url( $this->options_by_formkey['complete_url'] );
295
+ $this->validation_error = $this->parse_url( $this->options_by_formkey['validation_error_url'] );
296
  }
297
  }
298
  wp_reset_postdata();
545
 
546
  /**
547
  * create_mail_body
548
+ * メール本文用に {name属性} を置換
549
  */
550
  public function create_mail_body( $matches ) {
551
  return $this->parse_mail_body( $matches, false );
553
 
554
  /**
555
  * save_mail_body
556
+ * DB保存用に {name属性} を置換、保存
557
  */
558
  public function save_mail_body( $matches ) {
559
  return $this->parse_mail_body( $matches, true );
612
  if ( empty( $url ) )
613
  return '';
614
 
615
+ $query_string = array();
616
+ preg_match( '/\?(.*)$/', $url, $reg );
617
  if ( !empty( $reg[1] ) ) {
618
+ $url = str_replace( '?', '', $url );
619
  $url = str_replace( $reg[1], '', $url );
620
+ parse_str( $reg[1], $query_string );
621
  }
622
  if ( !preg_match( '/^https?:\/\//', $url ) ) {
623
  $protocol = ( is_ssl() ) ? 'https://' : 'http://';
625
  $url = $home_url . $url;
626
  }
627
  $url = preg_replace( '/([^:])\/+/', '$1/', $url );
628
+
629
+ // url引数が無効の場合、URL設定 で ?post_id が使われている場合はそれが使用される
630
+ // url引数が有効の場合は URL設定 で ?post_id が使われていても $_GET['post_id'] で上書きされる
631
  if ( !empty( $this->options_by_formkey['querystring'] ) && MWF_Functions::is_numeric( $_GET['post_id'] ) ) {
632
+ $query_string['post_id'] = $_GET['post_id'];
633
  }
634
+ if ( !empty( $query_string ) )
635
+ $url = $url . '?' . http_build_query( $query_string, null, '&' );
636
  return $url;
637
  }
638
 
681
  do_action( 'mwform_add_shortcode', $this->Form, $this->viewFlg, $this->Error );
682
 
683
  // ユーザー情報取得
684
+ $content = $this->replace_user_property( $content );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
685
 
686
  // 投稿情報取得
687
  if ( isset( $this->options_by_formkey['querystring'] ) )
688
  $querystring = $this->options_by_formkey['querystring'];
689
  if ( !empty( $querystring ) ) {
690
+ $content = preg_replace_callback( '/{(.+?)}/', array( $this, 'get_post_property' ), $content );
691
+ } else {
692
+ $content = preg_replace( '/{(.+?)}/', '', $content );
693
  }
694
 
695
  $upload_file_keys = $this->Form->getValue( MWF_Config::UPLOAD_FILE_KEYS );
710
  }
711
 
712
  /**
713
+ * replace_user_property
714
+ * ユーザーがログイン中の場合、{ユーザー情報のプロパティ}を置換する。
715
+ * @param String フォーム内容
716
+ * @return String フォーム内容
717
+ */
718
+ protected function replace_user_property( $content ) {
719
+ $user = wp_get_current_user();
720
+ $search = array(
721
+ '{user_id}',
722
+ '{user_login}',
723
+ '{user_email}',
724
+ '{user_url}',
725
+ '{user_registered}',
726
+ '{display_name}',
727
+ );
728
+ if ( !empty( $user ) ) {
729
+ $content = str_replace( $search, array(
730
+ $user->get( 'ID' ),
731
+ $user->get( 'user_login' ),
732
+ $user->get( 'user_email' ),
733
+ $user->get( 'user_url' ),
734
+ $user->get( 'user_registered' ),
735
+ $user->get( 'display_name' ),
736
+ ), $content );
737
+ } else {
738
+ $content = str_replace( $search, '', $content );
739
+ }
740
+ return $content;
741
+ }
742
+
743
+ /**
744
+ * get_post_property
745
+ * 引数 post_id が有効の場合、投稿情報を取得するために preg_replace_callback から呼び出される。
746
  * @param Array $matches
747
  * @return String
748
  */
749
+ public function get_post_property( $matches ) {
750
  if ( isset( $this->options_by_formkey['querystring'] ) )
751
  $querystring = $this->options_by_formkey['querystring'];
752
  if ( !empty( $querystring ) && MWF_Functions::is_numeric( $_GET['post_id'] ) ) {
762
  return $pm;
763
  }
764
  }
765
+ return;
766
  }
767
 
768
  /**
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.9.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -37,6 +37,17 @@ http://2inc.org/blog/category/products/wordpress_plugins/mw-wp-form/
37
 
38
  == Changelog ==
39
 
 
 
 
 
 
 
 
 
 
 
 
40
  = 0.9.3 =
41
  * Added : readme.txt にマニュアルのURLを追記
42
  * Bug fix: 確認ボタン 挿入ボタンが表示されていなかったのを修正
4
  Tags: plugin, form, confirm, preview
5
  Requires at least: 3.4
6
  Tested up to: 3.5
7
+ Stable tag: 0.9.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
37
 
38
  == Changelog ==
39
 
40
+ = 0.9.5 =
41
+ * Added : バリデーションエラー時に遷移するURLを設定可能に
42
+ * Cahged : 送信メールの Return-Path に「管理者宛メール設定の送信先」が利用されるように変更
43
+ * Cahged : {投稿情報}、{ユーザー情報}の値がない場合は空値が返るように変更
44
+ * Cahged : 設定済みのバリデーションルールは閉じた状態で表示されるように変更
45
+ * Cahged : Mail::createBody の挙動を変更(送信された値がnullの場合はキーも値も出力しない)
46
+ * Bug fix: Mail::createBody で Checkbox が未チェックで送信されたときに Array と出力されてしまうバグを修正
47
+
48
+ = 0.9.4 =
49
+ * Bug fix: 管理画面での 確認ボタン の表記間違いを修正
50
+
51
  = 0.9.3 =
52
  * Added : readme.txt にマニュアルのURLを追記
53
  * Bug fix: 確認ボタン 挿入ボタンが表示されていなかったのを修正
system/mw_mail.php CHANGED
@@ -3,11 +3,11 @@
3
  * Name: MW Mail
4
  * URI: http://2inc.org
5
  * Description: メールクラス
6
- * Version: 1.3
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created: July 20, 2012
10
- * Modified: May 29, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
@@ -33,7 +33,6 @@ class MW_Mail {
33
  public $subject; // 題名
34
  public $body; // 本文
35
  public $attachments; // 添付
36
- // private $targetEncodeing = 'ISO-2022-JP';
37
  private $ENCODE = 'utf-8';
38
 
39
  /**
@@ -42,42 +41,30 @@ class MW_Mail {
42
  */
43
  public function send() {
44
  if ( !$this->to ) return;
45
- /*
46
- mb_language( 'ja' );
47
- mb_internal_encoding( $this->ENCODE );
48
- $subject = mb_encode_mimeheader( $this->subject );
49
- $body = base64_encode( $this->body );
50
- $body = mb_convert_encoding( $this->body, $this->targetEncodeing, $this->ENCODE );
51
- */
52
  $subject = $this->subject;
53
  $body = $this->body;
54
 
55
- $fromHeader = '';
56
- if ( !empty( $this->from ) ) {
57
- if ( empty( $this->sender ) ) {
58
- $fromHeader = $this->from;
59
- } else if ( !empty( $this->sender ) ) {
60
- // $sender = mb_encode_mimeheader( $this->sender );
61
- $sender = $this->sender;
62
- $fromHeader = $sender.' <'.$this->from.'>';
63
- }
64
- }
65
-
66
- $header = '';
67
- /*
68
- $header .= "Content-Type: text/plain;charset=".$this->targetEncodeing."\n";
69
- $header .= "Content-Transfer-Encoding: 7bit\n";
70
- $header .= "MIME-Version: 1.0\n";
71
- $header .= "X-Mailer:PHP\n";
72
- */
73
- $header .= "From:" . $fromHeader . "\n";
74
  $to = explode( ',', $this->to );
75
  if ( isset( $to[0] ) ) {
76
  $to = trim( $to[0] );
77
- wp_mail( $to, $subject, $body, $header, $this->attachments );
78
- // mail( $to, $subject, $body, $header );
 
 
79
  }
80
  }
 
 
 
 
 
 
 
 
 
81
 
82
  /**
83
  * createBody
@@ -93,8 +80,8 @@ class MW_Mail {
93
  $options = array_merge( $defaults, $options );
94
  foreach( $array as $key => $value ) {
95
  if ( in_array( $key, $options['exclude'] ) ) continue;
96
- if ( is_array( $value ) && array_key_exists( 'data', $value ) && array_key_exists( 'separator', $value ) ) {
97
- if ( is_array( $value['data'] ) ) {
98
  foreach ( $value['data'] as $_val ) {
99
  if ( !( $_val === '' || $_val === null ) ) {
100
  $value = implode( $value['separator'], $value['data'] );
@@ -103,27 +90,13 @@ class MW_Mail {
103
  $value = '';
104
  }
105
  } else {
106
- $value = $value['data'];
107
  }
108
  }
109
- $_ret .= sprintf( "▼%s\n%s\n\n", $this->e( $key ), $this->e( $value ) );
 
110
  }
111
  return $_ret;
112
  }
113
-
114
- /**
115
- * e
116
- * htmlサニタイズ
117
- * @param Mixed
118
- * @return Mixed
119
- */
120
- public function e( $str ){
121
- if ( is_array( $str ) ) {
122
- return array_map( array( $this, 'e' ), $str );
123
- } else {
124
- $str = stripslashes( $str );
125
- return htmlspecialchars( $str, ENT_QUOTES, $this->ENCODE );
126
- }
127
- }
128
  }
129
  ?>
3
  * Name: MW Mail
4
  * URI: http://2inc.org
5
  * Description: メールクラス
6
+ * Version: 1.3.1
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created: July 20, 2012
10
+ * Modified: August 6, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
33
  public $subject; // 題名
34
  public $body; // 本文
35
  public $attachments; // 添付
 
36
  private $ENCODE = 'utf-8';
37
 
38
  /**
41
  */
42
  public function send() {
43
  if ( !$this->to ) return;
 
 
 
 
 
 
 
44
  $subject = $this->subject;
45
  $body = $this->body;
46
 
47
+ add_action( 'phpmailer_init', array( $this, 'set_return_path' ) );
48
+ add_filter( 'wp_mail_from', array( $this, 'set_mail_from' ) );
49
+ add_filter( 'wp_mail_from_name', array( $this, 'set_mail_from_name' ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  $to = explode( ',', $this->to );
51
  if ( isset( $to[0] ) ) {
52
  $to = trim( $to[0] );
53
+ wp_mail( $to, $subject, $body, $this->attachments );
54
+ remove_action( 'phpmailer_init', array( $this, 'set_return_path' ) );
55
+ remove_filter( 'wp_mail_from', array( $this, 'set_mail_from' ) );
56
+ remove_filter( 'wp_mail_from_name', array( $this, 'set_mail_from_name' ) );
57
  }
58
  }
59
+ public function set_mail_from( $email ) {
60
+ return $this->from;
61
+ }
62
+ public function set_mail_from_name( $email_from ) {
63
+ return $this->sender;
64
+ }
65
+ public function set_return_path( $phpmailer ) {
66
+ $phpmailer->Sender = $this->from;
67
+ }
68
 
69
  /**
70
  * createBody
80
  $options = array_merge( $defaults, $options );
81
  foreach( $array as $key => $value ) {
82
  if ( in_array( $key, $options['exclude'] ) ) continue;
83
+ if ( isset( $value['separator'] ) && is_array( $value ) ) {
84
+ if ( isset( $value['data'] ) && is_array( $value['data'] ) ) {
85
  foreach ( $value['data'] as $_val ) {
86
  if ( !( $_val === '' || $_val === null ) ) {
87
  $value = implode( $value['separator'], $value['data'] );
90
  $value = '';
91
  }
92
  } else {
93
+ continue;
94
  }
95
  }
96
+ if ( $value )
97
+ $_ret .= sprintf( "▼%s\n%s\n\n", esc_html( $key ), esc_html( $value ) );
98
  }
99
  return $_ret;
100
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
101
  }
102
  ?>
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.4
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created: February 21, 2013
10
- * Modified: June 21, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
@@ -477,6 +477,12 @@ class MW_WP_Form_Admin_Page {
477
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[complete_url]" value="<?php echo esc_attr( $this->get_post_data( 'complete_url' ) ); ?>" />
478
  </td>
479
  </tr>
 
 
 
 
 
 
480
  </table>
481
  <?php
482
  }
3
  * Name: MW WP Form Admin Page
4
  * URI: http://2inc.org
5
  * Description: 管理画面クラス
6
+ * Version: 1.5
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created: February 21, 2013
10
+ * Modified: August 6, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
477
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[complete_url]" value="<?php echo esc_attr( $this->get_post_data( 'complete_url' ) ); ?>" />
478
  </td>
479
  </tr>
480
+ <tr>
481
+ <th><?php _e( 'Validation Error Page URL', MWF_Config::DOMAIN ); ?></th>
482
+ <td>
483
+ <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[validation_error_url]" value="<?php echo esc_attr( $this->get_post_data( 'validation_error_url' ) ); ?>" />
484
+ </td>
485
+ </tr>
486
  </table>
487
  <?php
488
  }