MW WP Form - Version 1.5.4

Version Description

  • Bug fix : fixed spelling mistake in admin page.
  • Added : Convert full-pitch character to half character in text shortcode.
Download this release

Release Info

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

Code changes from version 1.5.3 to 1.5.4

form_fields/mw_form_field_text.php CHANGED
@@ -3,7 +3,7 @@
3
  * Name: MW Form Field Text
4
  * URI: http://2inc.org
5
  * Description: テキストフィールドを出力。
6
- * Version: 1.4.0
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : December 14, 2012
@@ -53,6 +53,7 @@ class mw_form_field_text extends mw_form_field {
53
  'value' => '',
54
  'placeholder' => '',
55
  'show_error' => 'true',
 
56
  );
57
  }
58
 
@@ -62,12 +63,17 @@ class mw_form_field_text extends mw_form_field {
62
  * @return string html
63
  */
64
  protected function inputPage() {
 
 
 
 
65
  $_ret = $this->Form->text( $this->atts['name'], array(
66
  'id' => $this->atts['id'],
67
  'size' => $this->atts['size'],
68
  'maxlength' => $this->atts['maxlength'],
69
  'value' => $this->atts['value'],
70
  'placeholder' => $this->atts['placeholder'],
 
71
  ) );
72
  if ( $this->atts['show_error'] !== 'false' )
73
  $_ret .= $this->getError( $this->atts['name'] );
@@ -120,6 +126,10 @@ class mw_form_field_text extends mw_form_field {
120
  <strong><?php _e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
121
  <input type="checkbox" name="show_error" value="false" /> <?php _e( 'Don\'t display error.', MWF_Config::DOMAIN ); ?>
122
  </p>
 
 
 
 
123
  <?php
124
  }
125
  }
3
  * Name: MW Form Field Text
4
  * URI: http://2inc.org
5
  * Description: テキストフィールドを出力。
6
+ * Version: 1.4.1
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : December 14, 2012
53
  'value' => '',
54
  'placeholder' => '',
55
  'show_error' => 'true',
56
+ 'conv_half_alphanumeric' => 'false',
57
  );
58
  }
59
 
63
  * @return string html
64
  */
65
  protected function inputPage() {
66
+ $conv_half_alphanumeric = false;
67
+ if ( $this->atts['conv_half_alphanumeric'] === 'true' ) {
68
+ $conv_half_alphanumeric = true;
69
+ }
70
  $_ret = $this->Form->text( $this->atts['name'], array(
71
  'id' => $this->atts['id'],
72
  'size' => $this->atts['size'],
73
  'maxlength' => $this->atts['maxlength'],
74
  'value' => $this->atts['value'],
75
  'placeholder' => $this->atts['placeholder'],
76
+ 'conv-half-alphanumeric' => $conv_half_alphanumeric,
77
  ) );
78
  if ( $this->atts['show_error'] !== 'false' )
79
  $_ret .= $this->getError( $this->atts['name'] );
126
  <strong><?php _e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
127
  <input type="checkbox" name="show_error" value="false" /> <?php _e( 'Don\'t display error.', MWF_Config::DOMAIN ); ?>
128
  </p>
129
+ <p>
130
+ <strong><?php _e( 'Convert half alphanumeric', MWF_Config::DOMAIN ); ?></strong>
131
+ <input type="checkbox" name="conv_half_alphanumeric" value="true" /> <?php _e( 'Convert.', MWF_Config::DOMAIN ); ?>
132
+ </p>
133
  <?php
134
  }
135
  }
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 1.5.0\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
7
- "POT-Creation-Date: 2014-04-05 13:05:31+00:00\n"
8
- "PO-Revision-Date: 2014-04-05 22:06+0900\n"
9
  "Last-Translator: Takashi Kitajima <inc@2inc.org>\n"
10
  "Language-Team: Takashi Kitajima <inc@2inc.org>\n"
11
  "Language: ja\n"
@@ -61,11 +61,11 @@ msgstr "ボタンに表示する文字列"
61
  #: form_fields/mw_form_field_select.php:101
62
  #: form_fields/mw_form_field_select.php:108
63
  #: form_fields/mw_form_field_submit.php:83
64
- #: form_fields/mw_form_field_text.php:100
65
- #: form_fields/mw_form_field_text.php:104
66
- #: form_fields/mw_form_field_text.php:108
67
- #: form_fields/mw_form_field_text.php:112
68
- #: form_fields/mw_form_field_text.php:116
69
  #: form_fields/mw_form_field_textarea.php:100
70
  #: form_fields/mw_form_field_textarea.php:104
71
  #: form_fields/mw_form_field_textarea.php:108
@@ -102,7 +102,7 @@ msgstr "1項目につき1行で入力してください。"
102
  #: form_fields/mw_form_field_password.php:110
103
  #: form_fields/mw_form_field_radio.php:108
104
  #: form_fields/mw_form_field_select.php:108
105
- #: form_fields/mw_form_field_text.php:112
106
  #: form_fields/mw_form_field_textarea.php:112
107
  msgid "Default value"
108
  msgstr "初期値"
@@ -114,7 +114,7 @@ msgstr "初期値"
114
  #: form_fields/mw_form_field_password.php:118
115
  #: form_fields/mw_form_field_radio.php:112
116
  #: form_fields/mw_form_field_select.php:112
117
- #: form_fields/mw_form_field_tel.php:95 form_fields/mw_form_field_text.php:120
118
  #: form_fields/mw_form_field_textarea.php:120
119
  #: form_fields/mw_form_field_zip.php:95
120
  msgid "Dsiplay error"
@@ -127,7 +127,7 @@ msgstr "エラー表示"
127
  #: form_fields/mw_form_field_password.php:119
128
  #: form_fields/mw_form_field_radio.php:113
129
  #: form_fields/mw_form_field_select.php:113
130
- #: form_fields/mw_form_field_tel.php:96 form_fields/mw_form_field_text.php:121
131
  #: form_fields/mw_form_field_textarea.php:121
132
  #: form_fields/mw_form_field_zip.php:96
133
  msgid "Don't display error."
@@ -215,7 +215,8 @@ msgstr "送信ボタンに表示する文字列"
215
  msgid "Tel"
216
  msgstr "電話番号"
217
 
218
- #: form_fields/mw_form_field_tel.php:99 form_fields/mw_form_field_zip.php:99
 
219
  msgid "Convert half alphanumeric"
220
  msgstr "半角英数字に変換"
221
 
@@ -227,6 +228,10 @@ msgstr "変換しない"
227
  msgid "Text"
228
  msgstr "テキストフィールド"
229
 
 
 
 
 
230
  #: form_fields/mw_form_field_textarea.php:38
231
  msgid "Textarea"
232
  msgstr "テキストエリア"
@@ -443,7 +448,8 @@ msgid "From ( E-mail address )"
443
  msgstr "送信元(E-mailアドレス)"
444
 
445
  #: system/mw_wp_form_admin_page.php:382 system/mw_wp_form_admin_page.php:426
446
- msgid "Ccontent"
 
447
  msgstr "本文"
448
 
449
  #: system/mw_wp_form_admin_page.php:386
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 1.5.4\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
7
+ "POT-Creation-Date: 2014-04-16 15:48:24+00:00\n"
8
+ "PO-Revision-Date: 2014-04-17 00:49+0900\n"
9
  "Last-Translator: Takashi Kitajima <inc@2inc.org>\n"
10
  "Language-Team: Takashi Kitajima <inc@2inc.org>\n"
11
  "Language: ja\n"
61
  #: form_fields/mw_form_field_select.php:101
62
  #: form_fields/mw_form_field_select.php:108
63
  #: form_fields/mw_form_field_submit.php:83
64
+ #: form_fields/mw_form_field_text.php:106
65
+ #: form_fields/mw_form_field_text.php:110
66
+ #: form_fields/mw_form_field_text.php:114
67
+ #: form_fields/mw_form_field_text.php:118
68
+ #: form_fields/mw_form_field_text.php:122
69
  #: form_fields/mw_form_field_textarea.php:100
70
  #: form_fields/mw_form_field_textarea.php:104
71
  #: form_fields/mw_form_field_textarea.php:108
102
  #: form_fields/mw_form_field_password.php:110
103
  #: form_fields/mw_form_field_radio.php:108
104
  #: form_fields/mw_form_field_select.php:108
105
+ #: form_fields/mw_form_field_text.php:118
106
  #: form_fields/mw_form_field_textarea.php:112
107
  msgid "Default value"
108
  msgstr "初期値"
114
  #: form_fields/mw_form_field_password.php:118
115
  #: form_fields/mw_form_field_radio.php:112
116
  #: form_fields/mw_form_field_select.php:112
117
+ #: form_fields/mw_form_field_tel.php:95 form_fields/mw_form_field_text.php:126
118
  #: form_fields/mw_form_field_textarea.php:120
119
  #: form_fields/mw_form_field_zip.php:95
120
  msgid "Dsiplay error"
127
  #: form_fields/mw_form_field_password.php:119
128
  #: form_fields/mw_form_field_radio.php:113
129
  #: form_fields/mw_form_field_select.php:113
130
+ #: form_fields/mw_form_field_tel.php:96 form_fields/mw_form_field_text.php:127
131
  #: form_fields/mw_form_field_textarea.php:121
132
  #: form_fields/mw_form_field_zip.php:96
133
  msgid "Don't display error."
215
  msgid "Tel"
216
  msgstr "電話番号"
217
 
218
+ #: form_fields/mw_form_field_tel.php:99 form_fields/mw_form_field_text.php:130
219
+ #: form_fields/mw_form_field_zip.php:99
220
  msgid "Convert half alphanumeric"
221
  msgstr "半角英数字に変換"
222
 
228
  msgid "Text"
229
  msgstr "テキストフィールド"
230
 
231
+ #: form_fields/mw_form_field_text.php:131
232
+ msgid "Convert."
233
+ msgstr "変換する"
234
+
235
  #: form_fields/mw_form_field_textarea.php:38
236
  msgid "Textarea"
237
  msgstr "テキストエリア"
448
  msgstr "送信元(E-mailアドレス)"
449
 
450
  #: system/mw_wp_form_admin_page.php:382 system/mw_wp_form_admin_page.php:426
451
+ #, fuzzy
452
+ msgid "Content"
453
  msgstr "本文"
454
 
455
  #: system/mw_wp_form_admin_page.php:386
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 1.5.0\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
7
- "POT-Creation-Date: 2014-04-05 13:05:31+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -60,11 +60,11 @@ msgstr ""
60
  #: form_fields/mw_form_field_select.php:101
61
  #: form_fields/mw_form_field_select.php:108
62
  #: form_fields/mw_form_field_submit.php:83
63
- #: form_fields/mw_form_field_text.php:100
64
- #: form_fields/mw_form_field_text.php:104
65
- #: form_fields/mw_form_field_text.php:108
66
- #: form_fields/mw_form_field_text.php:112
67
- #: form_fields/mw_form_field_text.php:116
68
  #: form_fields/mw_form_field_textarea.php:100
69
  #: form_fields/mw_form_field_textarea.php:104
70
  #: form_fields/mw_form_field_textarea.php:108
@@ -101,7 +101,7 @@ msgstr ""
101
  #: form_fields/mw_form_field_password.php:110
102
  #: form_fields/mw_form_field_radio.php:108
103
  #: form_fields/mw_form_field_select.php:108
104
- #: form_fields/mw_form_field_text.php:112
105
  #: form_fields/mw_form_field_textarea.php:112
106
  msgid "Default value"
107
  msgstr ""
@@ -113,7 +113,7 @@ msgstr ""
113
  #: form_fields/mw_form_field_password.php:118
114
  #: form_fields/mw_form_field_radio.php:112
115
  #: form_fields/mw_form_field_select.php:112
116
- #: form_fields/mw_form_field_tel.php:95 form_fields/mw_form_field_text.php:120
117
  #: form_fields/mw_form_field_textarea.php:120
118
  #: form_fields/mw_form_field_zip.php:95
119
  msgid "Dsiplay error"
@@ -126,7 +126,7 @@ msgstr ""
126
  #: form_fields/mw_form_field_password.php:119
127
  #: form_fields/mw_form_field_radio.php:113
128
  #: form_fields/mw_form_field_select.php:113
129
- #: form_fields/mw_form_field_tel.php:96 form_fields/mw_form_field_text.php:121
130
  #: form_fields/mw_form_field_textarea.php:121
131
  #: form_fields/mw_form_field_zip.php:96
132
  msgid "Don't display error."
@@ -214,7 +214,8 @@ msgstr ""
214
  msgid "Tel"
215
  msgstr ""
216
 
217
- #: form_fields/mw_form_field_tel.php:99 form_fields/mw_form_field_zip.php:99
 
218
  msgid "Convert half alphanumeric"
219
  msgstr ""
220
 
@@ -226,6 +227,10 @@ msgstr ""
226
  msgid "Text"
227
  msgstr ""
228
 
 
 
 
 
229
  #: form_fields/mw_form_field_textarea.php:38
230
  msgid "Textarea"
231
  msgstr ""
@@ -437,7 +442,7 @@ msgid "From ( E-mail address )"
437
  msgstr ""
438
 
439
  #: system/mw_wp_form_admin_page.php:382 system/mw_wp_form_admin_page.php:426
440
- msgid "Ccontent"
441
  msgstr ""
442
 
443
  #: system/mw_wp_form_admin_page.php:386
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 1.5.4\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
7
+ "POT-Creation-Date: 2014-04-16 15:48:24+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
60
  #: form_fields/mw_form_field_select.php:101
61
  #: form_fields/mw_form_field_select.php:108
62
  #: form_fields/mw_form_field_submit.php:83
63
+ #: form_fields/mw_form_field_text.php:106
64
+ #: form_fields/mw_form_field_text.php:110
65
+ #: form_fields/mw_form_field_text.php:114
66
+ #: form_fields/mw_form_field_text.php:118
67
+ #: form_fields/mw_form_field_text.php:122
68
  #: form_fields/mw_form_field_textarea.php:100
69
  #: form_fields/mw_form_field_textarea.php:104
70
  #: form_fields/mw_form_field_textarea.php:108
101
  #: form_fields/mw_form_field_password.php:110
102
  #: form_fields/mw_form_field_radio.php:108
103
  #: form_fields/mw_form_field_select.php:108
104
+ #: form_fields/mw_form_field_text.php:118
105
  #: form_fields/mw_form_field_textarea.php:112
106
  msgid "Default value"
107
  msgstr ""
113
  #: form_fields/mw_form_field_password.php:118
114
  #: form_fields/mw_form_field_radio.php:112
115
  #: form_fields/mw_form_field_select.php:112
116
+ #: form_fields/mw_form_field_tel.php:95 form_fields/mw_form_field_text.php:126
117
  #: form_fields/mw_form_field_textarea.php:120
118
  #: form_fields/mw_form_field_zip.php:95
119
  msgid "Dsiplay error"
126
  #: form_fields/mw_form_field_password.php:119
127
  #: form_fields/mw_form_field_radio.php:113
128
  #: form_fields/mw_form_field_select.php:113
129
+ #: form_fields/mw_form_field_tel.php:96 form_fields/mw_form_field_text.php:127
130
  #: form_fields/mw_form_field_textarea.php:121
131
  #: form_fields/mw_form_field_zip.php:96
132
  msgid "Don't display error."
214
  msgid "Tel"
215
  msgstr ""
216
 
217
+ #: form_fields/mw_form_field_tel.php:99 form_fields/mw_form_field_text.php:130
218
+ #: form_fields/mw_form_field_zip.php:99
219
  msgid "Convert half alphanumeric"
220
  msgstr ""
221
 
227
  msgid "Text"
228
  msgstr ""
229
 
230
+ #: form_fields/mw_form_field_text.php:131
231
+ msgid "Convert."
232
+ msgstr ""
233
+
234
  #: form_fields/mw_form_field_textarea.php:38
235
  msgid "Textarea"
236
  msgstr ""
442
  msgstr ""
443
 
444
  #: system/mw_wp_form_admin_page.php:382 system/mw_wp_form_admin_page.php:426
445
+ msgid "Content"
446
  msgstr ""
447
 
448
  #: system/mw_wp_form_admin_page.php:386
mw-wp-form.php CHANGED
@@ -3,11 +3,11 @@
3
  * Plugin Name: MW WP Form
4
  * Plugin URI: http://plugins.2inc.org/mw-wp-form/
5
  * Description: MW WP Form can create mail form with a confirmation screen.
6
- * Version: 1.5.3
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : September 25, 2012
10
- * Modified: April 8, 2014
11
  * Text Domain: mw-wp-form
12
  * Domain Path: /languages/
13
  * License: GPL2
3
  * Plugin Name: MW WP Form
4
  * Plugin URI: http://plugins.2inc.org/mw-wp-form/
5
  * Description: MW WP Form can create mail form with a confirmation screen.
6
+ * Version: 1.5.4
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : September 25, 2012
10
+ * Modified: April 17, 2014
11
  * Text Domain: mw-wp-form
12
  * Domain Path: /languages/
13
  * License: GPL2
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: inc2734
3
  Donate link: http://www.amazon.co.jp/registry/wishlist/39ANKRNSTNW40
4
  Tags: plugin, form, confirm, preview, shortcode, mail
5
  Requires at least: 3.4
6
- Tested up to: 3.8.1
7
- Stable tag: 1.5.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -54,6 +54,10 @@ Do you have questions or issues with MW WP Form? Use these support channels appr
54
 
55
  == Changelog ==
56
 
 
 
 
 
57
  = 1.5.3 =
58
  * Bug fix : Fixed a bug where <br> is added in textarea.
59
 
3
  Donate link: http://www.amazon.co.jp/registry/wishlist/39ANKRNSTNW40
4
  Tags: plugin, form, confirm, preview, shortcode, mail
5
  Requires at least: 3.4
6
+ Tested up to: 3.8.3
7
+ Stable tag: 1.5.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
54
 
55
  == Changelog ==
56
 
57
+ = 1.5.4 =
58
+ * Bug fix : fixed spelling mistake in admin page.
59
+ * Added : Convert full-pitch character to half character in text shortcode.
60
+
61
  = 1.5.3 =
62
  * Bug fix : Fixed a bug where <br> is added in textarea.
63
 
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.9.0
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : February 21, 2013
10
- * Modified: April 4, 2014
11
  * License: GPL2
12
  *
13
  * Copyright 2014 Takashi Kitajima (email : inc@2inc.org)
@@ -379,7 +379,7 @@ class MW_WP_Form_Admin_Page {
379
  <span class="mwf_note"><?php _e( 'If empty:', MWF_Config::DOMAIN ); ?> <?php bloginfo( 'admin_email' ); ?></span>
380
  </p>
381
  <p>
382
- <b><?php _e( 'Ccontent', MWF_Config::DOMAIN ); ?></b><br />
383
  <textarea name="<?php echo esc_attr( MWF_Config::NAME ); ?>[mail_content]" cols="30" rows="10"><?php echo esc_attr( $this->get_post_data( 'mail_content' ) ); ?></textarea>
384
  </p>
385
  <p>
@@ -423,7 +423,7 @@ class MW_WP_Form_Admin_Page {
423
  <span class="mwf_note"><?php _e( 'If empty:', MWF_Config::DOMAIN ); ?> <?php bloginfo( 'admin_email' ); ?></span>
424
  </p>
425
  <p>
426
- <b><?php _e( 'Ccontent', MWF_Config::DOMAIN ); ?></b><br />
427
  <textarea name="<?php echo esc_attr( MWF_Config::NAME ); ?>[admin_mail_content]" cols="30" rows="10"><?php echo esc_attr( $this->get_post_data( 'admin_mail_content' ) ); ?></textarea>
428
  </p>
429
  <?php
3
  * Name: MW WP Form Admin Page
4
  * URI: http://2inc.org
5
  * Description: 管理画面クラス
6
+ * Version: 1.9.1
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : February 21, 2013
10
+ * Modified: April 17, 2014
11
  * License: GPL2
12
  *
13
  * Copyright 2014 Takashi Kitajima (email : inc@2inc.org)
379
  <span class="mwf_note"><?php _e( 'If empty:', MWF_Config::DOMAIN ); ?> <?php bloginfo( 'admin_email' ); ?></span>
380
  </p>
381
  <p>
382
+ <b><?php _e( 'Content', MWF_Config::DOMAIN ); ?></b><br />
383
  <textarea name="<?php echo esc_attr( MWF_Config::NAME ); ?>[mail_content]" cols="30" rows="10"><?php echo esc_attr( $this->get_post_data( 'mail_content' ) ); ?></textarea>
384
  </p>
385
  <p>
423
  <span class="mwf_note"><?php _e( 'If empty:', MWF_Config::DOMAIN ); ?> <?php bloginfo( 'admin_email' ); ?></span>
424
  </p>
425
  <p>
426
+ <b><?php _e( 'Content', MWF_Config::DOMAIN ); ?></b><br />
427
  <textarea name="<?php echo esc_attr( MWF_Config::NAME ); ?>[admin_mail_content]" cols="30" rows="10"><?php echo esc_attr( $this->get_post_data( 'admin_mail_content' ) ); ?></textarea>
428
  </p>
429
  <?php