MW WP Form - Version 2.6.0

Version Description

  • Bugfix : JavaScript bug fix on validation.
  • Changed : Multilingual support. Changed domain.
  • Changed : Changed radio and checkbox style.
  • Added : Added the class attribute setting.
Download this release

Release Info

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

Code changes from version 2.5.3 to 2.6.0

Files changed (75) hide show
  1. classes/controllers/class.admin-list.php +4 -4
  2. classes/controllers/class.admin.php +9 -9
  3. classes/controllers/class.contact-data-list.php +2 -2
  4. classes/controllers/class.contact-data.php +2 -2
  5. classes/form-fields/class.akismet_error.php +1 -1
  6. classes/form-fields/class.back-button.php +14 -6
  7. classes/form-fields/class.button.php +13 -5
  8. classes/form-fields/class.checkbox.php +23 -16
  9. classes/form-fields/class.confirm-button.php +14 -6
  10. classes/form-fields/class.datepicker.php +13 -6
  11. classes/form-fields/class.email.php +15 -8
  12. classes/form-fields/class.error.php +3 -3
  13. classes/form-fields/class.file.php +17 -10
  14. classes/form-fields/class.hidden.php +4 -4
  15. classes/form-fields/class.image.php +15 -8
  16. classes/form-fields/class.number.php +12 -5
  17. classes/form-fields/class.password.php +13 -6
  18. classes/form-fields/class.radio.php +23 -16
  19. classes/form-fields/class.range.php +12 -5
  20. classes/form-fields/class.select.php +20 -13
  21. classes/form-fields/class.submit-button.php +23 -11
  22. classes/form-fields/class.submit.php +14 -6
  23. classes/form-fields/class.tel.php +14 -7
  24. classes/form-fields/class.text.php +15 -8
  25. classes/form-fields/class.textarea.php +13 -6
  26. classes/form-fields/class.url.php +15 -8
  27. classes/form-fields/class.zip.php +14 -7
  28. classes/functions.php +2 -2
  29. classes/models/class.contact-data-setting.php +3 -3
  30. classes/models/class.csv.php +4 -4
  31. classes/models/class.data.php +8 -6
  32. classes/models/class.form.php +53 -19
  33. classes/validation-rules/class.akismet.php +1 -1
  34. classes/validation-rules/class.alpha.php +2 -2
  35. classes/validation-rules/class.alphanumeric.php +2 -2
  36. classes/validation-rules/class.between.php +2 -2
  37. classes/validation-rules/class.date.php +2 -2
  38. classes/validation-rules/class.eq.php +2 -2
  39. classes/validation-rules/class.filesize.php +3 -3
  40. classes/validation-rules/class.filetype.php +3 -3
  41. classes/validation-rules/class.hiragana.php +2 -2
  42. classes/validation-rules/class.in.php +1 -1
  43. classes/validation-rules/class.kana.php +2 -2
  44. classes/validation-rules/class.katakana.php +2 -2
  45. classes/validation-rules/class.mail.php +2 -2
  46. classes/validation-rules/class.minlength.php +2 -2
  47. classes/validation-rules/class.noempty.php +2 -2
  48. classes/validation-rules/class.nofalse.php +1 -1
  49. classes/validation-rules/class.numeric.php +2 -2
  50. classes/validation-rules/class.required.php +2 -2
  51. classes/validation-rules/class.tel.php +2 -2
  52. classes/validation-rules/class.url.php +2 -2
  53. classes/validation-rules/class.zip.php +2 -2
  54. css/admin.css +1 -1
  55. css/style.css +25 -1
  56. js/form.js +4 -1
  57. languages/mw-wp-form-ja.mo +0 -0
  58. languages/mw-wp-form-ja.po +85 -85
  59. languages/mw-wp-form.pot +87 -87
  60. mw-wp-form.php +19 -19
  61. readme.txt +9 -2
  62. templates/admin/add-ons.php +2 -2
  63. templates/admin/admin-mail-options.php +13 -13
  64. templates/admin/form-key.php +2 -2
  65. templates/admin/mail-options.php +10 -10
  66. templates/admin/settings.php +9 -9
  67. templates/admin/style.php +1 -1
  68. templates/admin/tag-generator.php +7 -7
  69. templates/admin/url.php +6 -6
  70. templates/admin/validation-rule.php +2 -2
  71. templates/chart/index.php +9 -9
  72. templates/contact-data-list/csv-button.php +1 -1
  73. templates/contact-data/detail.php +2 -2
  74. templates/contact-data/returning-link.php +1 -1
  75. templates/stores-inquiry-data-form-list/index.php +9 -9
classes/controllers/class.admin-list.php CHANGED
@@ -31,9 +31,9 @@ class MW_WP_Form_Admin_List_Controller extends MW_WP_Form_Controller {
31
  $donation = array(
32
  'donation' =>
33
  '<div class="donation"><p>' .
34
- __( 'Your contribution is needed for making this plugin better.', MWF_Config::DOMAIN ) .
35
  ' <a href="http://www.amazon.co.jp/registry/wishlist/39ANKRNSTNW40" class="button">' .
36
- __( 'Donate', MWF_Config::DOMAIN ) . '</a></p></div>'
37
  );
38
  $views = array_merge( $donation, $views );
39
  return $views;
@@ -63,7 +63,7 @@ class MW_WP_Form_Admin_List_Controller extends MW_WP_Form_Controller {
63
  public function manage_posts_columns( $columns ) {
64
  $date = $columns['date'];
65
  unset( $columns['date'] );
66
- $columns['mwform_form_key'] = __( 'Form Key', MWF_Config::DOMAIN );
67
  $columns['date'] = $date;
68
  return $columns;
69
  }
@@ -79,4 +79,4 @@ class MW_WP_Form_Admin_List_Controller extends MW_WP_Form_Controller {
79
  $this->render( 'admin-list/form-key' );
80
  }
81
  }
82
- }
31
  $donation = array(
32
  'donation' =>
33
  '<div class="donation"><p>' .
34
+ __( 'Your contribution is needed for making this plugin better.', 'mw-wp-form' ) .
35
  ' <a href="http://www.amazon.co.jp/registry/wishlist/39ANKRNSTNW40" class="button">' .
36
+ __( 'Donate', 'mw-wp-form' ) . '</a></p></div>'
37
  );
38
  $views = array_merge( $donation, $views );
39
  return $views;
63
  public function manage_posts_columns( $columns ) {
64
  $date = $columns['date'];
65
  unset( $columns['date'] );
66
+ $columns['mwform_form_key'] = __( 'Form Key', 'mw-wp-form' );
67
  $columns['date'] = $date;
68
  return $columns;
69
  }
79
  $this->render( 'admin-list/form-key' );
80
  }
81
  }
82
+ }
classes/controllers/class.admin.php CHANGED
@@ -54,7 +54,7 @@ class MW_WP_Form_Admin_Controller extends MW_WP_Form_Controller {
54
  // 完了画面内容
55
  add_meta_box(
56
  MWF_Config::NAME . '_complete_message_metabox',
57
- __( 'Complete Message', MWF_Config::DOMAIN ),
58
  array( $this, 'complete_message' ),
59
  MWF_Config::NAME, 'normal'
60
  );
@@ -62,7 +62,7 @@ class MW_WP_Form_Admin_Controller extends MW_WP_Form_Controller {
62
  // URL設定
63
  add_meta_box(
64
  MWF_Config::NAME . '_url',
65
- __( 'URL Options', MWF_Config::DOMAIN ),
66
  array( $this, 'url' ),
67
  MWF_Config::NAME, 'normal'
68
  );
@@ -70,7 +70,7 @@ class MW_WP_Form_Admin_Controller extends MW_WP_Form_Controller {
70
  // バリデーション
71
  add_meta_box(
72
  MWF_Config::NAME . '_validation',
73
- __( 'Validation Rule', MWF_Config::DOMAIN ),
74
  array( $this, 'validation_rule' ),
75
  MWF_Config::NAME, 'normal'
76
  );
@@ -78,7 +78,7 @@ class MW_WP_Form_Admin_Controller extends MW_WP_Form_Controller {
78
  // アドオン
79
  add_meta_box(
80
  MWF_Config::NAME . '_addon',
81
- __( 'Add-ons', MWF_Config::DOMAIN ),
82
  array( $this, 'add_ons' ),
83
  MWF_Config::NAME, 'side'
84
  );
@@ -86,7 +86,7 @@ class MW_WP_Form_Admin_Controller extends MW_WP_Form_Controller {
86
  // フォーム識別子
87
  add_meta_box(
88
  MWF_Config::NAME . '_formkey',
89
- __( 'Form Key', MWF_Config::DOMAIN ),
90
  array( $this, 'form_key' ),
91
  MWF_Config::NAME, 'side'
92
  );
@@ -94,7 +94,7 @@ class MW_WP_Form_Admin_Controller extends MW_WP_Form_Controller {
94
  // 自動返信メール設定
95
  add_meta_box(
96
  MWF_Config::NAME . '_mail',
97
- __( 'Automatic Reply Email Options', MWF_Config::DOMAIN ),
98
  array( $this, 'mail_options' ),
99
  MWF_Config::NAME, 'side'
100
  );
@@ -102,7 +102,7 @@ class MW_WP_Form_Admin_Controller extends MW_WP_Form_Controller {
102
  // 管理者メール設定
103
  add_meta_box(
104
  MWF_Config::NAME . '_admin_mail',
105
- __( 'Admin Email Options', MWF_Config::DOMAIN ),
106
  array( $this, 'admin_mail_options' ),
107
  MWF_Config::NAME, 'side'
108
  );
@@ -110,7 +110,7 @@ class MW_WP_Form_Admin_Controller extends MW_WP_Form_Controller {
110
  // 設定
111
  add_meta_box(
112
  MWF_Config::NAME . '_settings',
113
- __( 'settings', MWF_Config::DOMAIN ),
114
  array( $this, 'settings' ),
115
  MWF_Config::NAME, 'side'
116
  );
@@ -119,7 +119,7 @@ class MW_WP_Form_Admin_Controller extends MW_WP_Form_Controller {
119
  if ( $this->styles ) {
120
  add_meta_box(
121
  MWF_Config::NAME . '_styles',
122
- __( 'Style setting', MWF_Config::DOMAIN ),
123
  array( $this, 'style' ),
124
  MWF_Config::NAME, 'side'
125
  );
54
  // 完了画面内容
55
  add_meta_box(
56
  MWF_Config::NAME . '_complete_message_metabox',
57
+ __( 'Complete Message', 'mw-wp-form' ),
58
  array( $this, 'complete_message' ),
59
  MWF_Config::NAME, 'normal'
60
  );
62
  // URL設定
63
  add_meta_box(
64
  MWF_Config::NAME . '_url',
65
+ __( 'URL Options', 'mw-wp-form' ),
66
  array( $this, 'url' ),
67
  MWF_Config::NAME, 'normal'
68
  );
70
  // バリデーション
71
  add_meta_box(
72
  MWF_Config::NAME . '_validation',
73
+ __( 'Validation Rule', 'mw-wp-form' ),
74
  array( $this, 'validation_rule' ),
75
  MWF_Config::NAME, 'normal'
76
  );
78
  // アドオン
79
  add_meta_box(
80
  MWF_Config::NAME . '_addon',
81
+ __( 'Add-ons', 'mw-wp-form' ),
82
  array( $this, 'add_ons' ),
83
  MWF_Config::NAME, 'side'
84
  );
86
  // フォーム識別子
87
  add_meta_box(
88
  MWF_Config::NAME . '_formkey',
89
+ __( 'Form Key', 'mw-wp-form' ),
90
  array( $this, 'form_key' ),
91
  MWF_Config::NAME, 'side'
92
  );
94
  // 自動返信メール設定
95
  add_meta_box(
96
  MWF_Config::NAME . '_mail',
97
+ __( 'Automatic Reply Email Options', 'mw-wp-form' ),
98
  array( $this, 'mail_options' ),
99
  MWF_Config::NAME, 'side'
100
  );
102
  // 管理者メール設定
103
  add_meta_box(
104
  MWF_Config::NAME . '_admin_mail',
105
+ __( 'Admin Email Options', 'mw-wp-form' ),
106
  array( $this, 'admin_mail_options' ),
107
  MWF_Config::NAME, 'side'
108
  );
110
  // 設定
111
  add_meta_box(
112
  MWF_Config::NAME . '_settings',
113
+ __( 'settings', 'mw-wp-form' ),
114
  array( $this, 'settings' ),
115
  MWF_Config::NAME, 'side'
116
  );
119
  if ( $this->styles ) {
120
  add_meta_box(
121
  MWF_Config::NAME . '_styles',
122
+ __( 'Style setting', 'mw-wp-form' ),
123
  array( $this, 'style' ),
124
  MWF_Config::NAME, 'side'
125
  );
classes/controllers/class.contact-data-list.php CHANGED
@@ -114,8 +114,8 @@ class MW_WP_Form_Contact_Data_List_Controller extends MW_WP_Form_Controller {
114
  public function add_form_columns_name( $columns ) {
115
  global $posts;
116
  unset( $columns['date'] );
117
- $columns['post_date'] = __( 'Registed Date', MWF_Config::DOMAIN );
118
- $columns['response_status'] = __( 'Response Status', MWF_Config::DOMAIN );
119
  $_columns = array();
120
  foreach ( $posts as $post ) {
121
  $post_custom_keys = get_post_custom_keys( $post->ID );
114
  public function add_form_columns_name( $columns ) {
115
  global $posts;
116
  unset( $columns['date'] );
117
+ $columns['post_date'] = __( 'Registed Date', 'mw-wp-form' );
118
+ $columns['response_status'] = __( 'Response Status', 'mw-wp-form' );
119
  $_columns = array();
120
  foreach ( $posts as $post ) {
121
  $post_custom_keys = get_post_custom_keys( $post->ID );
classes/controllers/class.contact-data.php CHANGED
@@ -67,7 +67,7 @@ class MW_WP_Form_Contact_Data_Controller extends MW_WP_Form_Controller {
67
  $post_type = get_post_type();
68
  add_meta_box(
69
  substr( MWF_Config::CONTACT_DATA_NAME, 1 ) . '_custom_fields',
70
- __( 'Custom Fields', MWF_Config::DOMAIN ),
71
  array( $this, 'detail' ),
72
  $post_type
73
  );
@@ -94,4 +94,4 @@ class MW_WP_Form_Contact_Data_Controller extends MW_WP_Form_Controller {
94
  $this->assign( 'link', $link );
95
  $this->render( 'contact-data/returning-link' );
96
  }
97
- }
67
  $post_type = get_post_type();
68
  add_meta_box(
69
  substr( MWF_Config::CONTACT_DATA_NAME, 1 ) . '_custom_fields',
70
+ __( 'Custom Fields', 'mw-wp-form' ),
71
  array( $this, 'detail' ),
72
  $post_type
73
  );
94
  $this->assign( 'link', $link );
95
  $this->render( 'contact-data/returning-link' );
96
  }
97
+ }
classes/form-fields/class.akismet_error.php CHANGED
@@ -27,7 +27,7 @@ class MW_WP_Form_Field_Akismet_Error extends MW_WP_Form_Abstract_Form_Field {
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_akismet_error',
30
- 'display_name' => __( 'Akismet Error', MWF_Config::DOMAIN ),
31
  );
32
  }
33
 
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_akismet_error',
30
+ 'display_name' => __( 'Akismet Error', 'mw-wp-form' ),
31
  );
32
  }
33
 
classes/form-fields/class.back-button.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Field Back Button
4
  * Description: 戻るボタンを出力
5
- * Version : 1.5.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
- * Modified : January 2, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -27,7 +27,7 @@ class MW_WP_Form_Field_Back_Button extends MW_WP_Form_Abstract_Form_Field {
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_backButton',
30
- 'display_name' => __( 'Back', MWF_Config::DOMAIN ),
31
  );
32
  }
33
 
@@ -38,7 +38,8 @@ class MW_WP_Form_Field_Back_Button extends MW_WP_Form_Abstract_Form_Field {
38
  */
39
  protected function set_defaults() {
40
  return array(
41
- 'value' => __( 'Back', MWF_Config::DOMAIN ),
 
42
  );
43
  }
44
 
@@ -56,7 +57,9 @@ class MW_WP_Form_Field_Back_Button extends MW_WP_Form_Abstract_Form_Field {
56
  * @return string HTML
57
  */
58
  protected function confirm_page() {
59
- return $this->Form->submit( MWF_Config::BACK_BUTTON, $this->atts['value'] );
 
 
60
  }
61
 
62
  /**
@@ -66,7 +69,12 @@ class MW_WP_Form_Field_Back_Button extends MW_WP_Form_Abstract_Form_Field {
66
  public function mwform_tag_generator_dialog( array $options = array() ) {
67
  ?>
68
  <p>
69
- <strong><?php esc_html_e( 'String on the button', MWF_Config::DOMAIN ); ?></strong>
 
 
 
 
 
70
  <input type="text" name="value" />
71
  </p>
72
  <?php
2
  /**
3
  * Name : MW WP Form Field Back Button
4
  * Description: 戻るボタンを出力
5
+ * Version : 1.6.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
+ * Modified : November 14, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_backButton',
30
+ 'display_name' => __( 'Back', 'mw-wp-form' ),
31
  );
32
  }
33
 
38
  */
39
  protected function set_defaults() {
40
  return array(
41
+ 'class' => null,
42
+ 'value' => __( 'Back', 'mw-wp-form' ),
43
  );
44
  }
45
 
57
  * @return string HTML
58
  */
59
  protected function confirm_page() {
60
+ return $this->Form->submit( MWF_Config::BACK_BUTTON, $this->atts['value'], array(
61
+ 'class' => $this->atts['class'],
62
+ ) );
63
  }
64
 
65
  /**
69
  public function mwform_tag_generator_dialog( array $options = array() ) {
70
  ?>
71
  <p>
72
+ <strong>class</strong>
73
+ <?php $class = $this->get_value_for_generator( 'class', $options ); ?>
74
+ <input type="text" name="class" value="<?php echo esc_attr( $class ); ?>" />
75
+ </p>
76
+ <p>
77
+ <strong><?php esc_html_e( 'String on the button', 'mw-wp-form' ); ?></strong>
78
  <input type="text" name="value" />
79
  </p>
80
  <?php
classes/form-fields/class.button.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Field Button
4
  * Description: ボタンを出力
5
- * Version : 1.5.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
- * Modified : January 2, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -27,7 +27,7 @@ class MW_WP_Form_Field_Button extends MW_WP_Form_Abstract_Form_Field {
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_button',
30
- 'display_name' => __( 'Button', MWF_Config::DOMAIN ),
31
  );
32
  }
33
 
@@ -39,6 +39,7 @@ class MW_WP_Form_Field_Button extends MW_WP_Form_Abstract_Form_Field {
39
  protected function set_defaults() {
40
  return array(
41
  'name' => '',
 
42
  'value' => '',
43
  );
44
  }
@@ -49,7 +50,9 @@ class MW_WP_Form_Field_Button extends MW_WP_Form_Abstract_Form_Field {
49
  * @return string HTML
50
  */
51
  protected function input_page() {
52
- return $this->Form->button( $this->atts['name'], $this->atts['value'] );
 
 
53
  }
54
 
55
  /**
@@ -73,7 +76,12 @@ class MW_WP_Form_Field_Button extends MW_WP_Form_Abstract_Form_Field {
73
  <input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" />
74
  </p>
75
  <p>
76
- <strong><?php esc_html_e( 'String on the button', MWF_Config::DOMAIN ); ?></strong>
 
 
 
 
 
77
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
78
  <input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
79
  </p>
2
  /**
3
  * Name : MW WP Form Field Button
4
  * Description: ボタンを出力
5
+ * Version : 1.6.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
+ * Modified : November 14, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_button',
30
+ 'display_name' => __( 'Button', 'mw-wp-form' ),
31
  );
32
  }
33
 
39
  protected function set_defaults() {
40
  return array(
41
  'name' => '',
42
+ 'class' => null,
43
  'value' => '',
44
  );
45
  }
50
  * @return string HTML
51
  */
52
  protected function input_page() {
53
+ return $this->Form->button( $this->atts['name'], $this->atts['value'], array(
54
+ 'class' => $this->atts['class'],
55
+ ) );
56
  }
57
 
58
  /**
76
  <input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" />
77
  </p>
78
  <p>
79
+ <strong>class</strong>
80
+ <?php $class = $this->get_value_for_generator( 'class', $options ); ?>
81
+ <input type="text" name="class" value="<?php echo esc_attr( $class ); ?>" />
82
+ </p>
83
+ <p>
84
+ <strong><?php esc_html_e( 'String on the button', 'mw-wp-form' ); ?></strong>
85
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
86
  <input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
87
  </p>
classes/form-fields/class.checkbox.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Field Checkbox
4
  * Description: チェックボックスを出力
5
- * Version : 1.5.11
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
- * Modified : June 23, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -27,7 +27,7 @@ class MW_WP_Form_Field_Checkbox extends MW_WP_Form_Abstract_Form_Field {
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_checkbox',
30
- 'display_name' => __( 'Checkbox', MWF_Config::DOMAIN ),
31
  );
32
  }
33
 
@@ -40,6 +40,7 @@ class MW_WP_Form_Field_Checkbox extends MW_WP_Form_Abstract_Form_Field {
40
  return array(
41
  'name' => '',
42
  'id' => null,
 
43
  'children' => '',
44
  'value' => null,
45
  'vertically' => null,
@@ -64,6 +65,7 @@ class MW_WP_Form_Field_Checkbox extends MW_WP_Form_Abstract_Form_Field {
64
 
65
  $_ret = $this->Form->checkbox( $this->atts['name'], $children, array(
66
  'id' => $this->atts['id'],
 
67
  'value' => $value,
68
  'vertically' => $this->atts['vertically'],
69
  ), $separator );
@@ -114,41 +116,46 @@ class MW_WP_Form_Field_Checkbox extends MW_WP_Form_Abstract_Form_Field {
114
  <input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
115
  </p>
116
  <p>
117
- <strong><?php esc_html_e( 'Choices', MWF_Config::DOMAIN ); ?><span class="mwf_require">*</span></strong>
 
 
 
 
 
118
  <?php $children = "\n" . $this->get_value_for_generator( 'children', $options ); ?>
119
  <textarea name="children"><?php echo esc_attr( $children ); ?></textarea>
120
  <span class="mwf_note">
121
- <?php esc_html_e( 'Input one line about one item.', MWF_Config::DOMAIN ); ?><br />
122
- <?php esc_html_e( 'Example: value1&crarr;value2 or key1:value1&crarr;key2:value2', MWF_Config::DOMAIN ); ?><br />
123
- <?php esc_html_e( 'You can split the post value and display value by ":". But display value is sent in e-mail.', MWF_Config::DOMAIN ); ?><br />
124
- <?php esc_html_e( 'When you want to use ":", please enter "::".', MWF_Config::DOMAIN ); ?>
125
  </span>
126
  </p>
127
  <p>
128
- <strong><?php esc_html_e( 'Send value by e-mail', MWF_Config::DOMAIN ); ?></strong>
129
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
130
  <?php $post_raw = $this->get_value_for_generator( 'post_raw', $options ); ?>
131
- <label><input type="checkbox" name="post_raw" value="true" <?php checked( 'true', $post_raw ); ?> /> <?php esc_html_e( 'Send post value when you split the post value and display value by ":" in choices.', MWF_Config::DOMAIN ); ?></label>
132
  </p>
133
  <p>
134
- <strong><?php esc_html_e( 'Default value', MWF_Config::DOMAIN ); ?></strong>
135
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
136
  <input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
137
  </p>
138
  <p>
139
- <strong><?php esc_html_e( 'Separator string', MWF_Config::DOMAIN ); ?></strong>
140
  <?php $separator = $this->get_value_for_generator( 'separator', $options ); ?>
141
  <input type="text" name="separator" size="10" value="<?php echo esc_attr( $separator ); ?>" />
142
  </p>
143
  <p>
144
- <strong><?php esc_html_e( 'Display method', MWF_Config::DOMAIN ); ?></strong>
145
  <?php $vertically = $this->get_value_for_generator( 'vertically', $options ); ?>
146
- <label><input type="checkbox" name="vertically" value="true" <?php checked( 'true', $vertically ); ?> /> <?php esc_html_e( 'Arranged vertically.', MWF_Config::DOMAIN ); ?></label>
147
  </p>
148
  <p>
149
- <strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
150
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
151
- <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', MWF_Config::DOMAIN ); ?></label>
152
  </p>
153
  <?php
154
  }
2
  /**
3
  * Name : MW WP Form Field Checkbox
4
  * Description: チェックボックスを出力
5
+ * Version : 1.6.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
+ * Modified : November 14, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_checkbox',
30
+ 'display_name' => __( 'Checkbox', 'mw-wp-form' ),
31
  );
32
  }
33
 
40
  return array(
41
  'name' => '',
42
  'id' => null,
43
+ 'class' => null,
44
  'children' => '',
45
  'value' => null,
46
  'vertically' => null,
65
 
66
  $_ret = $this->Form->checkbox( $this->atts['name'], $children, array(
67
  'id' => $this->atts['id'],
68
+ 'class' => $this->atts['class'],
69
  'value' => $value,
70
  'vertically' => $this->atts['vertically'],
71
  ), $separator );
116
  <input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
117
  </p>
118
  <p>
119
+ <strong>class</strong>
120
+ <?php $class = $this->get_value_for_generator( 'class', $options ); ?>
121
+ <input type="text" name="class" value="<?php echo esc_attr( $class ); ?>" />
122
+ </p>
123
+ <p>
124
+ <strong><?php esc_html_e( 'Choices', 'mw-wp-form' ); ?><span class="mwf_require">*</span></strong>
125
  <?php $children = "\n" . $this->get_value_for_generator( 'children', $options ); ?>
126
  <textarea name="children"><?php echo esc_attr( $children ); ?></textarea>
127
  <span class="mwf_note">
128
+ <?php esc_html_e( 'Input one line about one item.', 'mw-wp-form' ); ?>
129
+ <?php esc_html_e( 'Example: value1&crarr;value2 or key1:value1&crarr;key2:value2', 'mw-wp-form' ); ?><br />
130
+ <?php esc_html_e( 'You can split the post value and display value by ":". But display value is sent in e-mail.', 'mw-wp-form' ); ?><br />
131
+ <?php esc_html_e( 'When you want to use ":", please enter "::".', 'mw-wp-form' ); ?>
132
  </span>
133
  </p>
134
  <p>
135
+ <strong><?php esc_html_e( 'Send value by e-mail', 'mw-wp-form' ); ?></strong>
136
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
137
  <?php $post_raw = $this->get_value_for_generator( 'post_raw', $options ); ?>
138
+ <label><input type="checkbox" name="post_raw" value="true" <?php checked( 'true', $post_raw ); ?> /> <?php esc_html_e( 'Send post value when you split the post value and display value by ":" in choices.', 'mw-wp-form' ); ?></label>
139
  </p>
140
  <p>
141
+ <strong><?php esc_html_e( 'Default value', 'mw-wp-form' ); ?></strong>
142
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
143
  <input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
144
  </p>
145
  <p>
146
+ <strong><?php esc_html_e( 'Separator string', 'mw-wp-form' ); ?></strong>
147
  <?php $separator = $this->get_value_for_generator( 'separator', $options ); ?>
148
  <input type="text" name="separator" size="10" value="<?php echo esc_attr( $separator ); ?>" />
149
  </p>
150
  <p>
151
+ <strong><?php esc_html_e( 'Display method', 'mw-wp-form' ); ?></strong>
152
  <?php $vertically = $this->get_value_for_generator( 'vertically', $options ); ?>
153
+ <label><input type="checkbox" name="vertically" value="true" <?php checked( 'true', $vertically ); ?> /> <?php esc_html_e( 'Arranged vertically.', 'mw-wp-form' ); ?></label>
154
  </p>
155
  <p>
156
+ <strong><?php esc_html_e( 'Dsiplay error', 'mw-wp-form' ); ?></strong>
157
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
158
+ <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', 'mw-wp-form' ); ?></label>
159
  </p>
160
  <?php
161
  }
classes/form-fields/class.confirm-button.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Field Confirm Button
4
  * Description: 確認ボタンを出力
5
- * Version : 1.5.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
- * Modified : January 2, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -27,7 +27,7 @@ class MW_WP_Form_Field_Confirm_Button extends MW_WP_Form_Abstract_Form_Field {
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_confirmButton',
30
- 'display_name' => __( 'Confirm Button', MWF_Config::DOMAIN ),
31
  );
32
  }
33
 
@@ -38,7 +38,8 @@ class MW_WP_Form_Field_Confirm_Button extends MW_WP_Form_Abstract_Form_Field {
38
  */
39
  protected function set_defaults() {
40
  return array(
41
- 'value' => __( 'Confirm', MWF_Config::DOMAIN ),
 
42
  );
43
  }
44
 
@@ -48,7 +49,9 @@ class MW_WP_Form_Field_Confirm_Button extends MW_WP_Form_Abstract_Form_Field {
48
  * @return string HTML
49
  */
50
  protected function input_page() {
51
- return $this->Form->submit( MWF_Config::CONFIRM_BUTTON, $this->atts['value'] );
 
 
52
  }
53
 
54
  /**
@@ -66,7 +69,12 @@ class MW_WP_Form_Field_Confirm_Button extends MW_WP_Form_Abstract_Form_Field {
66
  public function mwform_tag_generator_dialog( array $options = array() ) {
67
  ?>
68
  <p>
69
- <strong><?php esc_html_e( 'String on the button', MWF_Config::DOMAIN ); ?></strong>
 
 
 
 
 
70
  <?php $name = $this->get_value_for_generator( 'name', $options ); ?>
71
  <input type="text" name="value" value="<?php echo esc_attr( $name ); ?>" />
72
  </p>
2
  /**
3
  * Name : MW WP Form Field Confirm Button
4
  * Description: 確認ボタンを出力
5
+ * Version : 1.6.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
+ * Modified : November 14, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_confirmButton',
30
+ 'display_name' => __( 'Confirm Button', 'mw-wp-form' ),
31
  );
32
  }
33
 
38
  */
39
  protected function set_defaults() {
40
  return array(
41
+ 'class' => null,
42
+ 'value' => __( 'Confirm', 'mw-wp-form' ),
43
  );
44
  }
45
 
49
  * @return string HTML
50
  */
51
  protected function input_page() {
52
+ return $this->Form->submit( MWF_Config::CONFIRM_BUTTON, $this->atts['value'], array(
53
+ 'class' => $this->atts['class'],
54
+ ) );
55
  }
56
 
57
  /**
69
  public function mwform_tag_generator_dialog( array $options = array() ) {
70
  ?>
71
  <p>
72
+ <strong>class</strong>
73
+ <?php $class = $this->get_value_for_generator( 'class', $options ); ?>
74
+ <input type="text" name="class" value="<?php echo esc_attr( $class ); ?>" />
75
+ </p>
76
+ <p>
77
+ <strong><?php esc_html_e( 'String on the button', 'mw-wp-form' ); ?></strong>
78
  <?php $name = $this->get_value_for_generator( 'name', $options ); ?>
79
  <input type="text" name="value" value="<?php echo esc_attr( $name ); ?>" />
80
  </p>
classes/form-fields/class.datepicker.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Field Datepicker
4
  * Description: datepickerを出力
5
- * Version : 1.5.3
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
- * Modified : August 12, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -27,7 +27,7 @@ class MW_WP_Form_Field_Datepicker extends MW_WP_Form_Abstract_Form_Field {
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_datepicker',
30
- 'display_name' => __( 'Datepicker', MWF_Config::DOMAIN ),
31
  );
32
  }
33
 
@@ -40,6 +40,7 @@ class MW_WP_Form_Field_Datepicker extends MW_WP_Form_Abstract_Form_Field {
40
  return array(
41
  'name' => '',
42
  'id' => null,
 
43
  'size' => 30,
44
  'js' => '',
45
  'value' => '',
@@ -85,6 +86,7 @@ class MW_WP_Form_Field_Datepicker extends MW_WP_Form_Abstract_Form_Field {
85
  $_ret = '';
86
  $_ret .= $this->Form->datepicker( $this->atts['name'], array(
87
  'id' => $this->atts['id'],
 
88
  'size' => $this->atts['size'],
89
  'js' => $this->atts['js'],
90
  'value' => $value,
@@ -124,6 +126,11 @@ class MW_WP_Form_Field_Datepicker extends MW_WP_Form_Abstract_Form_Field {
124
  <?php $id = $this->get_value_for_generator( 'id', $options ); ?>
125
  <input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
126
  </p>
 
 
 
 
 
127
  <p>
128
  <strong>size</strong>
129
  <?php $size = $this->get_value_for_generator( 'size', $options ); ?>
@@ -135,7 +142,7 @@ class MW_WP_Form_Field_Datepicker extends MW_WP_Form_Abstract_Form_Field {
135
  <input type="text" name="js" value="<?php echo esc_attr( $js ); ?>" />
136
  </p>
137
  <p>
138
- <strong><?php esc_html_e( 'Default value', MWF_Config::DOMAIN ); ?></strong>
139
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
140
  <input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
141
  </p>
@@ -145,9 +152,9 @@ class MW_WP_Form_Field_Datepicker extends MW_WP_Form_Abstract_Form_Field {
145
  <input type="text" name="placeholder" value="<?php echo esc_attr( $placeholder ); ?>" />
146
  </p>
147
  <p>
148
- <strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
149
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
150
- <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', MWF_Config::DOMAIN ); ?></label>
151
  </p>
152
  <?php
153
  }
2
  /**
3
  * Name : MW WP Form Field Datepicker
4
  * Description: datepickerを出力
5
+ * Version : 1.6.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
+ * Modified : November 11, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_datepicker',
30
+ 'display_name' => __( 'Datepicker', 'mw-wp-form' ),
31
  );
32
  }
33
 
40
  return array(
41
  'name' => '',
42
  'id' => null,
43
+ 'class' => null,
44
  'size' => 30,
45
  'js' => '',
46
  'value' => '',
86
  $_ret = '';
87
  $_ret .= $this->Form->datepicker( $this->atts['name'], array(
88
  'id' => $this->atts['id'],
89
+ 'class' => $this->atts['class'],
90
  'size' => $this->atts['size'],
91
  'js' => $this->atts['js'],
92
  'value' => $value,
126
  <?php $id = $this->get_value_for_generator( 'id', $options ); ?>
127
  <input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
128
  </p>
129
+ <p>
130
+ <strong>class</strong>
131
+ <?php $class = $this->get_value_for_generator( 'class', $options ); ?>
132
+ <input type="text" name="class" value="<?php echo esc_attr( $class ); ?>" />
133
+ </p>
134
  <p>
135
  <strong>size</strong>
136
  <?php $size = $this->get_value_for_generator( 'size', $options ); ?>
142
  <input type="text" name="js" value="<?php echo esc_attr( $js ); ?>" />
143
  </p>
144
  <p>
145
+ <strong><?php esc_html_e( 'Default value', 'mw-wp-form' ); ?></strong>
146
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
147
  <input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
148
  </p>
152
  <input type="text" name="placeholder" value="<?php echo esc_attr( $placeholder ); ?>" />
153
  </p>
154
  <p>
155
+ <strong><?php esc_html_e( 'Dsiplay error', 'mw-wp-form' ); ?></strong>
156
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
157
+ <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', 'mw-wp-form' ); ?></label>
158
  </p>
159
  <?php
160
  }
classes/form-fields/class.email.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Field Email
4
  * Description: email フィールドを出力
5
- * Version : 1.0.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : July 20, 2015
9
- * Modified :
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -27,7 +27,7 @@ class MW_WP_Form_Field_Email extends MW_WP_Form_Abstract_Form_Field {
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_email',
30
- 'display_name' => __( 'Email', MWF_Config::DOMAIN ),
31
  );
32
  }
33
 
@@ -40,6 +40,7 @@ class MW_WP_Form_Field_Email extends MW_WP_Form_Abstract_Form_Field {
40
  return array(
41
  'name' => '',
42
  'id' => null,
 
43
  'size' => 60,
44
  'maxlength' => null,
45
  'value' => '',
@@ -66,6 +67,7 @@ class MW_WP_Form_Field_Email extends MW_WP_Form_Abstract_Form_Field {
66
 
67
  $_ret = $this->Form->email( $this->atts['name'], array(
68
  'id' => $this->atts['id'],
 
69
  'size' => $this->atts['size'],
70
  'maxlength' => $this->atts['maxlength'],
71
  'value' => $value,
@@ -106,6 +108,11 @@ class MW_WP_Form_Field_Email extends MW_WP_Form_Abstract_Form_Field {
106
  <?php $id = $this->get_value_for_generator( 'id', $options ); ?>
107
  <input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
108
  </p>
 
 
 
 
 
109
  <p>
110
  <strong>size</strong>
111
  <?php $size = $this->get_value_for_generator( 'size', $options ); ?>
@@ -117,7 +124,7 @@ class MW_WP_Form_Field_Email extends MW_WP_Form_Abstract_Form_Field {
117
  <input type="text" name="maxlength" value="<?php echo esc_attr( $maxlength ); ?>" />
118
  </p>
119
  <p>
120
- <strong><?php esc_html_e( 'Default value', MWF_Config::DOMAIN ); ?></strong>
121
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
122
  <input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
123
  </p>
@@ -127,14 +134,14 @@ class MW_WP_Form_Field_Email extends MW_WP_Form_Abstract_Form_Field {
127
  <input type="text" name="placeholder" value="<?php echo esc_attr( $placeholder ); ?>" />
128
  </p>
129
  <p>
130
- <strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
131
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
132
- <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', MWF_Config::DOMAIN ); ?></label>
133
  </p>
134
  <p>
135
- <strong><?php esc_html_e( 'Convert half alphanumeric', MWF_Config::DOMAIN ); ?></strong>
136
  <?php $conv_half_alphanumeric = $this->get_value_for_generator( 'conv_half_alphanumeric', $options ); ?>
137
- <label><input type="checkbox" name="conv_half_alphanumeric" value="false" <?php checked( 'false', $conv_half_alphanumeric ); ?> /> <?php esc_html_e( 'Don\'t Convert.', MWF_Config::DOMAIN ); ?></label>
138
  </p>
139
  <?php
140
  }
2
  /**
3
  * Name : MW WP Form Field Email
4
  * Description: email フィールドを出力
5
+ * Version : 1.1.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : July 20, 2015
9
+ * Modified : November 14, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_email',
30
+ 'display_name' => __( 'Email', 'mw-wp-form' ),
31
  );
32
  }
33
 
40
  return array(
41
  'name' => '',
42
  'id' => null,
43
+ 'class' => null,
44
  'size' => 60,
45
  'maxlength' => null,
46
  'value' => '',
67
 
68
  $_ret = $this->Form->email( $this->atts['name'], array(
69
  'id' => $this->atts['id'],
70
+ 'class' => $this->atts['class'],
71
  'size' => $this->atts['size'],
72
  'maxlength' => $this->atts['maxlength'],
73
  'value' => $value,
108
  <?php $id = $this->get_value_for_generator( 'id', $options ); ?>
109
  <input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
110
  </p>
111
+ <p>
112
+ <strong>class</strong>
113
+ <?php $class = $this->get_value_for_generator( 'class', $options ); ?>
114
+ <input type="text" name="class" value="<?php echo esc_attr( $class ); ?>" />
115
+ </p>
116
  <p>
117
  <strong>size</strong>
118
  <?php $size = $this->get_value_for_generator( 'size', $options ); ?>
124
  <input type="text" name="maxlength" value="<?php echo esc_attr( $maxlength ); ?>" />
125
  </p>
126
  <p>
127
+ <strong><?php esc_html_e( 'Default value', 'mw-wp-form' ); ?></strong>
128
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
129
  <input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
130
  </p>
134
  <input type="text" name="placeholder" value="<?php echo esc_attr( $placeholder ); ?>" />
135
  </p>
136
  <p>
137
+ <strong><?php esc_html_e( 'Dsiplay error', 'mw-wp-form' ); ?></strong>
138
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
139
+ <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', 'mw-wp-form' ); ?></label>
140
  </p>
141
  <p>
142
+ <strong><?php esc_html_e( 'Convert half alphanumeric', 'mw-wp-form' ); ?></strong>
143
  <?php $conv_half_alphanumeric = $this->get_value_for_generator( 'conv_half_alphanumeric', $options ); ?>
144
+ <label><input type="checkbox" name="conv_half_alphanumeric" value="false" <?php checked( 'false', $conv_half_alphanumeric ); ?> /> <?php esc_html_e( 'Don\'t Convert.', 'mw-wp-form' ); ?></label>
145
  </p>
146
  <?php
147
  }
classes/form-fields/class.error.php CHANGED
@@ -27,7 +27,7 @@ class MW_WP_Form_Field_Error extends MW_WP_Form_Abstract_Form_Field {
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_error',
30
- 'display_name' => __( 'Error Message', MWF_Config::DOMAIN ),
31
  );
32
  }
33
 
@@ -71,11 +71,11 @@ class MW_WP_Form_Field_Error extends MW_WP_Form_Abstract_Form_Field {
71
  public function mwform_tag_generator_dialog( array $options = array() ) {
72
  ?>
73
  <p>
74
- <strong><?php esc_html_e( 'name of the element which wants to display error', MWF_Config::DOMAIN ); ?></strong>
75
  <?php $keys = "\n" . $this->get_value_for_generator( 'keys', $options ); ?>
76
  <textarea name="keys"><?php echo esc_attr( $keys ); ?></textarea>
77
  <span class="mwf_note">
78
- <?php esc_html_e( 'Input one line about one item.', MWF_Config::DOMAIN ); ?>
79
  </span>
80
  </p>
81
  <?php
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_error',
30
+ 'display_name' => __( 'Error Message', 'mw-wp-form' ),
31
  );
32
  }
33
 
71
  public function mwform_tag_generator_dialog( array $options = array() ) {
72
  ?>
73
  <p>
74
+ <strong><?php esc_html_e( 'name of the element which wants to display error', 'mw-wp-form' ); ?></strong>
75
  <?php $keys = "\n" . $this->get_value_for_generator( 'keys', $options ); ?>
76
  <textarea name="keys"><?php echo esc_attr( $keys ); ?></textarea>
77
  <span class="mwf_note">
78
+ <?php esc_html_e( 'Input one line about one item.', 'mw-wp-form' ); ?>
79
  </span>
80
  </p>
81
  <?php
classes/form-fields/class.file.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Field File
4
  * Description: 画像アップロードフィールドを出力
5
- * Version : 1.5.2
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : May 17, 2013
9
- * Modified : April 1, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -27,7 +27,7 @@ class MW_WP_Form_Field_File extends MW_WP_Form_Abstract_Form_Field {
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_file',
30
- 'display_name' => __( 'File', MWF_Config::DOMAIN ),
31
  );
32
  }
33
 
@@ -38,8 +38,9 @@ class MW_WP_Form_Field_File extends MW_WP_Form_Abstract_Form_Field {
38
  */
39
  protected function set_defaults() {
40
  return array(
41
- 'name' => '',
42
- 'id' => null,
 
43
  'show_error' => 'true',
44
  );
45
  }
@@ -51,7 +52,8 @@ class MW_WP_Form_Field_File extends MW_WP_Form_Abstract_Form_Field {
51
  */
52
  protected function input_page() {
53
  $_ret = $this->Form->file( $this->atts['name'], array(
54
- 'id' => $this->atts['id'],
 
55
  ) );
56
  $value = $this->Data->get_raw( $this->atts['name'] );
57
  $upload_file_keys = $this->Data->get_post_value_by_key( MWF_Config::UPLOAD_FILE_KEYS );
@@ -65,7 +67,7 @@ class MW_WP_Form_Field_File extends MW_WP_Form_Abstract_Form_Field {
65
  </div>',
66
  esc_attr( MWF_Config::NAME ),
67
  esc_attr( $value ),
68
- esc_html__( 'Uploaded.', MWF_Config::DOMAIN ),
69
  $this->Form->hidden( $this->atts['name'], $value )
70
  );
71
  }
@@ -87,7 +89,7 @@ class MW_WP_Form_Field_File extends MW_WP_Form_Abstract_Form_Field {
87
  $filepath = MWF_Functions::fileurl_to_path( $value );
88
  if ( file_exists( $filepath ) ) {
89
  $_ret = '<div class="' . MWF_Config::NAME . '_file">';
90
- $_ret .= '<a href="' . esc_attr( $value ) . '" target="_blank">' . __( 'Uploaded.', MWF_Config::DOMAIN ) . '</a>';
91
  $_ret .= '</div>';
92
  $_ret .= $this->Form->hidden( $this->atts['name'], $value );
93
  return $_ret;
@@ -112,9 +114,14 @@ class MW_WP_Form_Field_File extends MW_WP_Form_Abstract_Form_Field {
112
  <input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
113
  </p>
114
  <p>
115
- <strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
 
 
 
 
 
116
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
117
- <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', MWF_Config::DOMAIN ); ?></label>
118
  </p>
119
  <?php
120
  }
2
  /**
3
  * Name : MW WP Form Field File
4
  * Description: 画像アップロードフィールドを出力
5
+ * Version : 1.6.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : May 17, 2013
9
+ * Modified : November 14, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_file',
30
+ 'display_name' => __( 'File', 'mw-wp-form' ),
31
  );
32
  }
33
 
38
  */
39
  protected function set_defaults() {
40
  return array(
41
+ 'name' => '',
42
+ 'id' => null,
43
+ 'class' => null,
44
  'show_error' => 'true',
45
  );
46
  }
52
  */
53
  protected function input_page() {
54
  $_ret = $this->Form->file( $this->atts['name'], array(
55
+ 'id' => $this->atts['id'],
56
+ 'class' => $this->atts['class'],
57
  ) );
58
  $value = $this->Data->get_raw( $this->atts['name'] );
59
  $upload_file_keys = $this->Data->get_post_value_by_key( MWF_Config::UPLOAD_FILE_KEYS );
67
  </div>',
68
  esc_attr( MWF_Config::NAME ),
69
  esc_attr( $value ),
70
+ esc_html__( 'Uploaded.', 'mw-wp-form' ),
71
  $this->Form->hidden( $this->atts['name'], $value )
72
  );
73
  }
89
  $filepath = MWF_Functions::fileurl_to_path( $value );
90
  if ( file_exists( $filepath ) ) {
91
  $_ret = '<div class="' . MWF_Config::NAME . '_file">';
92
+ $_ret .= '<a href="' . esc_attr( $value ) . '" target="_blank">' . __( 'Uploaded.', 'mw-wp-form' ) . '</a>';
93
  $_ret .= '</div>';
94
  $_ret .= $this->Form->hidden( $this->atts['name'], $value );
95
  return $_ret;
114
  <input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
115
  </p>
116
  <p>
117
+ <strong>class</strong>
118
+ <?php $class = $this->get_value_for_generator( 'class', $options ); ?>
119
+ <input type="text" name="class" value="<?php echo esc_attr( $class ); ?>" />
120
+ </p>
121
+ <p>
122
+ <strong><?php esc_html_e( 'Dsiplay error', 'mw-wp-form' ); ?></strong>
123
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
124
+ <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', 'mw-wp-form' ); ?></label>
125
  </p>
126
  <?php
127
  }
classes/form-fields/class.hidden.php CHANGED
@@ -20,7 +20,7 @@ class MW_WP_Form_Field_Hidden extends MW_WP_Form_Abstract_Form_Field {
20
  protected function set_names() {
21
  return array(
22
  'shortcode_name' => 'mwform_hidden',
23
- 'display_name' => __( 'Hidden', MWF_Config::DOMAIN ),
24
  );
25
  }
26
 
@@ -81,14 +81,14 @@ class MW_WP_Form_Field_Hidden extends MW_WP_Form_Abstract_Form_Field {
81
  <input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" />
82
  </p>
83
  <p>
84
- <strong><?php esc_html_e( 'Default value', MWF_Config::DOMAIN ); ?></strong>
85
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
86
  <input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
87
  </p>
88
  <p>
89
- <strong><?php esc_html_e( 'Display', MWF_Config::DOMAIN ); ?></strong>
90
  <?php $echo = $this->get_value_for_generator( 'echo', $options ); ?>
91
- <input type="checkbox" name="echo" value="true" <?php checked( 'true', $echo ); ?> /> <?php esc_html_e( 'Display hidden value.', MWF_Config::DOMAIN ); ?>
92
  </p>
93
  <?php
94
  }
20
  protected function set_names() {
21
  return array(
22
  'shortcode_name' => 'mwform_hidden',
23
+ 'display_name' => __( 'Hidden', 'mw-wp-form' ),
24
  );
25
  }
26
 
81
  <input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" />
82
  </p>
83
  <p>
84
+ <strong><?php esc_html_e( 'Default value', 'mw-wp-form' ); ?></strong>
85
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
86
  <input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
87
  </p>
88
  <p>
89
+ <strong><?php esc_html_e( 'Display', 'mw-wp-form' ); ?></strong>
90
  <?php $echo = $this->get_value_for_generator( 'echo', $options ); ?>
91
+ <input type="checkbox" name="echo" value="true" <?php checked( 'true', $echo ); ?> /> <?php esc_html_e( 'Display hidden value.', 'mw-wp-form' ); ?>
92
  </p>
93
  <?php
94
  }
classes/form-fields/class.image.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Field Image
4
  * Description: 画像アップロードフィールドを出力
5
- * Version : 1.5.2
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : May 17, 2013
9
- * Modified : April 1, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -27,7 +27,7 @@ class MW_WP_Form_Field_Image extends MW_WP_Form_Abstract_Form_Field {
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_image',
30
- 'display_name' => __( 'Image', MWF_Config::DOMAIN ),
31
  );
32
  }
33
 
@@ -38,8 +38,9 @@ class MW_WP_Form_Field_Image extends MW_WP_Form_Abstract_Form_Field {
38
  */
39
  protected function set_defaults() {
40
  return array(
41
- 'name' => '',
42
- 'id' => null,
 
43
  'show_error' => 'true',
44
  );
45
  }
@@ -51,7 +52,8 @@ class MW_WP_Form_Field_Image extends MW_WP_Form_Abstract_Form_Field {
51
  */
52
  protected function input_page() {
53
  $_ret = $this->Form->file( $this->atts['name'], array(
54
- 'id' => $this->atts['id'],
 
55
  ) );
56
  $value = $this->Data->get_raw( $this->atts['name'] );
57
 
@@ -116,9 +118,14 @@ class MW_WP_Form_Field_Image extends MW_WP_Form_Abstract_Form_Field {
116
  <input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
117
  </p>
118
  <p>
119
- <strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
 
 
 
 
 
120
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
121
- <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', MWF_Config::DOMAIN ); ?></label>
122
  </p>
123
  <?php
124
  }
2
  /**
3
  * Name : MW WP Form Field Image
4
  * Description: 画像アップロードフィールドを出力
5
+ * Version : 1.6.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : May 17, 2013
9
+ * Modified : November 14, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_image',
30
+ 'display_name' => __( 'Image', 'mw-wp-form' ),
31
  );
32
  }
33
 
38
  */
39
  protected function set_defaults() {
40
  return array(
41
+ 'name' => '',
42
+ 'id' => null,
43
+ 'class' => null,
44
  'show_error' => 'true',
45
  );
46
  }
52
  */
53
  protected function input_page() {
54
  $_ret = $this->Form->file( $this->atts['name'], array(
55
+ 'id' => $this->atts['id'],
56
+ 'class' => $this->atts['class'],
57
  ) );
58
  $value = $this->Data->get_raw( $this->atts['name'] );
59
 
118
  <input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
119
  </p>
120
  <p>
121
+ <strong>class</strong>
122
+ <?php $class = $this->get_value_for_generator( 'class', $options ); ?>
123
+ <input type="text" name="class" value="<?php echo esc_attr( $class ); ?>" />
124
+ </p>
125
+ <p>
126
+ <strong><?php esc_html_e( 'Dsiplay error', 'mw-wp-form' ); ?></strong>
127
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
128
+ <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', 'mw-wp-form' ); ?></label>
129
  </p>
130
  <?php
131
  }
classes/form-fields/class.number.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Field Number
4
  * Description: number フィールドを出力
5
- * Version : 1.0.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : July 21, 2015
9
- * Modified :
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -27,7 +27,7 @@ class MW_WP_Form_Field_Number extends MW_WP_Form_Abstract_Form_Field {
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_number',
30
- 'display_name' => __( 'Number', MWF_Config::DOMAIN ),
31
  );
32
  }
33
 
@@ -40,6 +40,7 @@ class MW_WP_Form_Field_Number extends MW_WP_Form_Abstract_Form_Field {
40
  return array(
41
  'name' => '',
42
  'id' => null,
 
43
  'value' => '',
44
  'min' => null,
45
  'max' => null,
@@ -62,6 +63,7 @@ class MW_WP_Form_Field_Number extends MW_WP_Form_Abstract_Form_Field {
62
 
63
  $_ret = $this->Form->number( $this->atts['name'], array(
64
  'id' => $this->atts['id'],
 
65
  'value' => $value,
66
  'min' => $this->atts['min'],
67
  'max' => $this->atts['max'],
@@ -102,6 +104,11 @@ class MW_WP_Form_Field_Number extends MW_WP_Form_Abstract_Form_Field {
102
  <?php $id = $this->get_value_for_generator( 'id', $options ); ?>
103
  <input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
104
  </p>
 
 
 
 
 
105
  <p>
106
  <strong>min</strong>
107
  <?php $min = $this->get_value_for_generator( 'min', $options ); ?>
@@ -123,9 +130,9 @@ class MW_WP_Form_Field_Number extends MW_WP_Form_Abstract_Form_Field {
123
  <input type="text" name="placeholder" value="<?php echo esc_attr( $placeholder ); ?>" />
124
  </p>
125
  <p>
126
- <strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
127
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
128
- <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', MWF_Config::DOMAIN ); ?></label>
129
  </p>
130
  <?php
131
  }
2
  /**
3
  * Name : MW WP Form Field Number
4
  * Description: number フィールドを出力
5
+ * Version : 1.1.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : July 21, 2015
9
+ * Modified : November 14, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_number',
30
+ 'display_name' => __( 'Number', 'mw-wp-form' ),
31
  );
32
  }
33
 
40
  return array(
41
  'name' => '',
42
  'id' => null,
43
+ 'class' => null,
44
  'value' => '',
45
  'min' => null,
46
  'max' => null,
63
 
64
  $_ret = $this->Form->number( $this->atts['name'], array(
65
  'id' => $this->atts['id'],
66
+ 'class' => $this->atts['class'],
67
  'value' => $value,
68
  'min' => $this->atts['min'],
69
  'max' => $this->atts['max'],
104
  <?php $id = $this->get_value_for_generator( 'id', $options ); ?>
105
  <input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
106
  </p>
107
+ <p>
108
+ <strong>class</strong>
109
+ <?php $class = $this->get_value_for_generator( 'class', $options ); ?>
110
+ <input type="text" name="class" value="<?php echo esc_attr( $class ); ?>" />
111
+ </p>
112
  <p>
113
  <strong>min</strong>
114
  <?php $min = $this->get_value_for_generator( 'min', $options ); ?>
130
  <input type="text" name="placeholder" value="<?php echo esc_attr( $placeholder ); ?>" />
131
  </p>
132
  <p>
133
+ <strong><?php esc_html_e( 'Dsiplay error', 'mw-wp-form' ); ?></strong>
134
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
135
+ <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', 'mw-wp-form' ); ?></label>
136
  </p>
137
  <?php
138
  }
classes/form-fields/class.password.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Password
4
  * Description: パスワードフィールドを出力
5
- * Version : 1.5.3
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
- * Modified : July 20, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -27,7 +27,7 @@ class MW_WP_Form_Field_Password extends MW_WP_Form_Abstract_Form_Field {
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_password',
30
- 'display_name' => __( 'Password', MWF_Config::DOMAIN ),
31
  );
32
  }
33
 
@@ -40,6 +40,7 @@ class MW_WP_Form_Field_Password extends MW_WP_Form_Abstract_Form_Field {
40
  return array(
41
  'name' => '',
42
  'id' => null,
 
43
  'size' => 60,
44
  'maxlength' => null,
45
  'value' => '',
@@ -61,6 +62,7 @@ class MW_WP_Form_Field_Password extends MW_WP_Form_Abstract_Form_Field {
61
 
62
  $_ret = $this->Form->password( $this->atts['name'], array(
63
  'id' => $this->atts['id'],
 
64
  'size' => $this->atts['size'],
65
  'maxlength' => $this->atts['maxlength'],
66
  'value' => $value,
@@ -98,6 +100,11 @@ class MW_WP_Form_Field_Password extends MW_WP_Form_Abstract_Form_Field {
98
  <?php $id = $this->get_value_for_generator( 'id', $options ); ?>
99
  <input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
100
  </p>
 
 
 
 
 
101
  <p>
102
  <strong>size</strong>
103
  <?php $size = $this->get_value_for_generator( 'size', $options ); ?>
@@ -109,7 +116,7 @@ class MW_WP_Form_Field_Password extends MW_WP_Form_Abstract_Form_Field {
109
  <input type="text" name="maxlength" value="<?php echo esc_attr( $maxlength ); ?>" />
110
  </p>
111
  <p>
112
- <strong><?php esc_html_e( 'Default value', MWF_Config::DOMAIN ); ?></strong>
113
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
114
  <input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
115
  </p>
@@ -119,9 +126,9 @@ class MW_WP_Form_Field_Password extends MW_WP_Form_Abstract_Form_Field {
119
  <input type="text" name="placeholder" value="<?php echo esc_attr( $placeholder ); ?>" />
120
  </p>
121
  <p>
122
- <strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
123
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
124
- <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', MWF_Config::DOMAIN ); ?></label>
125
  </p>
126
  <?php
127
  }
2
  /**
3
  * Name : MW WP Form Password
4
  * Description: パスワードフィールドを出力
5
+ * Version : 1.6.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
+ * Modified : November 14, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_password',
30
+ 'display_name' => __( 'Password', 'mw-wp-form' ),
31
  );
32
  }
33
 
40
  return array(
41
  'name' => '',
42
  'id' => null,
43
+ 'class' => null,
44
  'size' => 60,
45
  'maxlength' => null,
46
  'value' => '',
62
 
63
  $_ret = $this->Form->password( $this->atts['name'], array(
64
  'id' => $this->atts['id'],
65
+ 'class' => $this->atts['class'],
66
  'size' => $this->atts['size'],
67
  'maxlength' => $this->atts['maxlength'],
68
  'value' => $value,
100
  <?php $id = $this->get_value_for_generator( 'id', $options ); ?>
101
  <input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
102
  </p>
103
+ <p>
104
+ <strong>class</strong>
105
+ <?php $class = $this->get_value_for_generator( 'class', $options ); ?>
106
+ <input type="text" name="class" value="<?php echo esc_attr( $class ); ?>" />
107
+ </p>
108
  <p>
109
  <strong>size</strong>
110
  <?php $size = $this->get_value_for_generator( 'size', $options ); ?>
116
  <input type="text" name="maxlength" value="<?php echo esc_attr( $maxlength ); ?>" />
117
  </p>
118
  <p>
119
+ <strong><?php esc_html_e( 'Default value', 'mw-wp-form' ); ?></strong>
120
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
121
  <input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
122
  </p>
126
  <input type="text" name="placeholder" value="<?php echo esc_attr( $placeholder ); ?>" />
127
  </p>
128
  <p>
129
+ <strong><?php esc_html_e( 'Dsiplay error', 'mw-wp-form' ); ?></strong>
130
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
131
+ <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', 'mw-wp-form' ); ?></label>
132
  </p>
133
  <?php
134
  }
classes/form-fields/class.radio.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Field Radio
4
  * Description: ラジオボタンを出力
5
- * Version : 1.5.7
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
- * Modified : April 24, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -27,7 +27,7 @@ class MW_WP_Form_Field_Radio extends MW_WP_Form_Abstract_Form_Field {
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_radio',
30
- 'display_name' => __( 'Radio', MWF_Config::DOMAIN ),
31
  );
32
  }
33
 
@@ -40,6 +40,7 @@ class MW_WP_Form_Field_Radio extends MW_WP_Form_Abstract_Form_Field {
40
  return array(
41
  'name' => '',
42
  'id' => null,
 
43
  'children' => '',
44
  'value' => null,
45
  'vertically' => null,
@@ -62,6 +63,7 @@ class MW_WP_Form_Field_Radio extends MW_WP_Form_Abstract_Form_Field {
62
 
63
  $_ret = $this->Form->radio( $this->atts['name'], $children, array(
64
  'id' => $this->atts['id'],
 
65
  'value' => $value,
66
  'vertically' => $this->atts['vertically'],
67
  ) );
@@ -110,36 +112,41 @@ class MW_WP_Form_Field_Radio extends MW_WP_Form_Abstract_Form_Field {
110
  <input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
111
  </p>
112
  <p>
113
- <strong><?php esc_html_e( 'Choices', MWF_Config::DOMAIN ); ?><span class="mwf_require">*</span></strong>
 
 
 
 
 
114
  <?php $children = "\n" . $this->get_value_for_generator( 'children', $options ); ?>
115
- <textarea name="children"><?php echo esc_attr( $children ); ?></textarea>
116
  <span class="mwf_note">
117
- <?php esc_html_e( 'Input one line about one item.', MWF_Config::DOMAIN ); ?><br />
118
- <?php esc_html_e( 'Example: value1&crarr;value2 or key1:value1&crarr;key2:value2', MWF_Config::DOMAIN ); ?><br />
119
- <?php esc_html_e( 'You can split the post value and display value by ":". But display value is sent in e-mail.', MWF_Config::DOMAIN ); ?><br />
120
- <?php esc_html_e( 'When you want to use ":", please enter "::".', MWF_Config::DOMAIN ); ?>
121
  </span>
122
  </p>
123
  <p>
124
- <strong><?php esc_html_e( 'Send value by e-mail', MWF_Config::DOMAIN ); ?></strong>
125
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
126
  <?php $post_raw = $this->get_value_for_generator( 'post_raw', $options ); ?>
127
- <label><input type="checkbox" name="post_raw" value="true" <?php checked( 'true', $post_raw ); ?> /> <?php esc_html_e( 'Send post value when you split the post value and display value by ":" in choices.', MWF_Config::DOMAIN ); ?></label>
128
  </p>
129
  <p>
130
- <strong><?php esc_html_e( 'Default value', MWF_Config::DOMAIN ); ?></strong>
131
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
132
  <input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
133
  </p>
134
  <p>
135
- <strong><?php esc_html_e( 'Display method', MWF_Config::DOMAIN ); ?></strong>
136
  <?php $vertically = $this->get_value_for_generator( 'vertically', $options ); ?>
137
- <label><input type="checkbox" name="vertically" value="true" <?php checked( 'true', $vertically ); ?> /> <?php esc_html_e( 'Arranged vertically.', MWF_Config::DOMAIN ); ?></label>
138
  </p>
139
  <p>
140
- <strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
141
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
142
- <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', MWF_Config::DOMAIN ); ?></label>
143
  </p>
144
  <?php
145
  }
2
  /**
3
  * Name : MW WP Form Field Radio
4
  * Description: ラジオボタンを出力
5
+ * Version : 1.6.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
+ * Modified : November 14, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_radio',
30
+ 'display_name' => __( 'Radio', 'mw-wp-form' ),
31
  );
32
  }
33
 
40
  return array(
41
  'name' => '',
42
  'id' => null,
43
+ 'class' => null,
44
  'children' => '',
45
  'value' => null,
46
  'vertically' => null,
63
 
64
  $_ret = $this->Form->radio( $this->atts['name'], $children, array(
65
  'id' => $this->atts['id'],
66
+ 'class' => $this->atts['class'],
67
  'value' => $value,
68
  'vertically' => $this->atts['vertically'],
69
  ) );
112
  <input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
113
  </p>
114
  <p>
115
+ <strong>class</strong>
116
+ <?php $class = $this->get_value_for_generator( 'class', $options ); ?>
117
+ <input type="text" name="class" value="<?php echo esc_attr( $class ); ?>" />
118
+ </p>
119
+ <p>
120
+ <strong><?php esc_html_e( 'Choices', 'mw-wp-form' ); ?><span class="mwf_require">*</span></strong>
121
  <?php $children = "\n" . $this->get_value_for_generator( 'children', $options ); ?>
122
+ <textarea name="children" col="3"><?php echo esc_attr( $children ); ?></textarea>
123
  <span class="mwf_note">
124
+ <?php esc_html_e( 'Input one line about one item.', 'mw-wp-form' ); ?>
125
+ <?php esc_html_e( 'Example: value1&crarr;value2 or key1:value1&crarr;key2:value2', 'mw-wp-form' ); ?><br />
126
+ <?php esc_html_e( 'You can split the post value and display value by ":". But display value is sent in e-mail.', 'mw-wp-form' ); ?><br />
127
+ <?php esc_html_e( 'When you want to use ":", please enter "::".', 'mw-wp-form' ); ?>
128
  </span>
129
  </p>
130
  <p>
131
+ <strong><?php esc_html_e( 'Send value by e-mail', 'mw-wp-form' ); ?></strong>
132
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
133
  <?php $post_raw = $this->get_value_for_generator( 'post_raw', $options ); ?>
134
+ <label><input type="checkbox" name="post_raw" value="true" <?php checked( 'true', $post_raw ); ?> /> <?php esc_html_e( 'Send post value when you split the post value and display value by ":" in choices.', 'mw-wp-form' ); ?></label>
135
  </p>
136
  <p>
137
+ <strong><?php esc_html_e( 'Default value', 'mw-wp-form' ); ?></strong>
138
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
139
  <input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
140
  </p>
141
  <p>
142
+ <strong><?php esc_html_e( 'Display method', 'mw-wp-form' ); ?></strong>
143
  <?php $vertically = $this->get_value_for_generator( 'vertically', $options ); ?>
144
+ <label><input type="checkbox" name="vertically" value="true" <?php checked( 'true', $vertically ); ?> /> <?php esc_html_e( 'Arranged vertically.', 'mw-wp-form' ); ?></label>
145
  </p>
146
  <p>
147
+ <strong><?php esc_html_e( 'Dsiplay error', 'mw-wp-form' ); ?></strong>
148
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
149
+ <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', 'mw-wp-form' ); ?></label>
150
  </p>
151
  <?php
152
  }
classes/form-fields/class.range.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Field Range
4
  * Description: range フィールドを出力
5
- * Version : 1.0.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : July 21, 2015
9
- * Modified :
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -27,7 +27,7 @@ class MW_WP_Form_Field_Range extends MW_WP_Form_Abstract_Form_Field {
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_range',
30
- 'display_name' => __( 'Range', MWF_Config::DOMAIN ),
31
  );
32
  }
33
 
@@ -40,6 +40,7 @@ class MW_WP_Form_Field_Range extends MW_WP_Form_Abstract_Form_Field {
40
  return array(
41
  'name' => '',
42
  'id' => null,
 
43
  'value' => '',
44
  'min' => 0,
45
  'max' => 100,
@@ -61,6 +62,7 @@ class MW_WP_Form_Field_Range extends MW_WP_Form_Abstract_Form_Field {
61
 
62
  $_ret = $this->Form->range( $this->atts['name'], array(
63
  'id' => $this->atts['id'],
 
64
  'value' => $value,
65
  'min' => $this->atts['min'],
66
  'max' => $this->atts['max'],
@@ -100,6 +102,11 @@ class MW_WP_Form_Field_Range extends MW_WP_Form_Abstract_Form_Field {
100
  <?php $id = $this->get_value_for_generator( 'id', $options ); ?>
101
  <input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
102
  </p>
 
 
 
 
 
103
  <p>
104
  <strong>min</strong>
105
  <?php $min = $this->get_value_for_generator( 'min', $options ); ?>
@@ -116,9 +123,9 @@ class MW_WP_Form_Field_Range extends MW_WP_Form_Abstract_Form_Field {
116
  <input type="text" name="step" value="<?php echo esc_attr( $step ); ?>" />
117
  </p>
118
  <p>
119
- <strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
120
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
121
- <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', MWF_Config::DOMAIN ); ?></label>
122
  </p>
123
  <?php
124
  }
2
  /**
3
  * Name : MW WP Form Field Range
4
  * Description: range フィールドを出力
5
+ * Version : 1.1.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : July 21, 2015
9
+ * Modified : November 14, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_range',
30
+ 'display_name' => __( 'Range', 'mw-wp-form' ),
31
  );
32
  }
33
 
40
  return array(
41
  'name' => '',
42
  'id' => null,
43
+ 'class' => null,
44
  'value' => '',
45
  'min' => 0,
46
  'max' => 100,
62
 
63
  $_ret = $this->Form->range( $this->atts['name'], array(
64
  'id' => $this->atts['id'],
65
+ 'class' => $this->atts['class'],
66
  'value' => $value,
67
  'min' => $this->atts['min'],
68
  'max' => $this->atts['max'],
102
  <?php $id = $this->get_value_for_generator( 'id', $options ); ?>
103
  <input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
104
  </p>
105
+ <p>
106
+ <strong>class</strong>
107
+ <?php $class = $this->get_value_for_generator( 'class', $options ); ?>
108
+ <input type="text" name="class" value="<?php echo esc_attr( $class ); ?>" />
109
+ </p>
110
  <p>
111
  <strong>min</strong>
112
  <?php $min = $this->get_value_for_generator( 'min', $options ); ?>
123
  <input type="text" name="step" value="<?php echo esc_attr( $step ); ?>" />
124
  </p>
125
  <p>
126
+ <strong><?php esc_html_e( 'Dsiplay error', 'mw-wp-form' ); ?></strong>
127
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
128
+ <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', 'mw-wp-form' ); ?></label>
129
  </p>
130
  <?php
131
  }
classes/form-fields/class.select.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Field Select
4
  * Description: セレクトボックスを出力
5
- * Version : 1.5.7
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
- * Modified : April 1, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -27,7 +27,7 @@ class MW_WP_Form_Field_Select extends MW_WP_Form_Abstract_Form_Field {
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_select',
30
- 'display_name' => __( 'Select', MWF_Config::DOMAIN ),
31
  );
32
  }
33
 
@@ -40,6 +40,7 @@ class MW_WP_Form_Field_Select extends MW_WP_Form_Abstract_Form_Field {
40
  return array(
41
  'name' => '',
42
  'id' => null,
 
43
  'children' => '',
44
  'value' => '',
45
  'post_raw' => 'false',
@@ -61,6 +62,7 @@ class MW_WP_Form_Field_Select extends MW_WP_Form_Abstract_Form_Field {
61
 
62
  $_ret = $this->Form->select( $this->atts['name'], $children, array(
63
  'id' => $this->atts['id'],
 
64
  'value' => $value,
65
  ) );
66
  if ( $this->atts['post_raw'] === 'false' ) {
@@ -106,31 +108,36 @@ class MW_WP_Form_Field_Select extends MW_WP_Form_Abstract_Form_Field {
106
  <input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
107
  </p>
108
  <p>
109
- <strong><?php esc_html_e( 'Choices', MWF_Config::DOMAIN ); ?><span class="mwf_require">*</span></strong>
 
 
 
 
 
110
  <?php $children = "\n" . $this->get_value_for_generator( 'children', $options ); ?>
111
  <textarea name="children"><?php echo esc_attr( $children ); ?></textarea>
112
  <span class="mwf_note">
113
- <?php esc_html_e( 'Input one line about one item.', MWF_Config::DOMAIN ); ?><br />
114
- <?php esc_html_e( 'Example: value1&crarr;value2 or key1:value1&crarr;key2:value2', MWF_Config::DOMAIN ); ?><br />
115
- <?php esc_html_e( 'You can split the post value and display value by ":". But display value is sent in e-mail.', MWF_Config::DOMAIN ); ?><br />
116
- <?php esc_html_e( 'When you want to use ":", please enter "::".', MWF_Config::DOMAIN ); ?>
117
  </span>
118
  </p>
119
  <p>
120
- <strong><?php esc_html_e( 'Send value by e-mail', MWF_Config::DOMAIN ); ?></strong>
121
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
122
  <?php $post_raw = $this->get_value_for_generator( 'post_raw', $options ); ?>
123
- <label><input type="checkbox" name="post_raw" value="true" <?php checked( 'true', $post_raw ); ?> /> <?php esc_html_e( 'Send post value when you split the post value and display value by ":" in choices.', MWF_Config::DOMAIN ); ?></label>
124
  </p>
125
  <p>
126
- <strong><?php esc_html_e( 'Default value', MWF_Config::DOMAIN ); ?></strong>
127
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
128
  <input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
129
  </p>
130
  <p>
131
- <strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
132
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
133
- <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', MWF_Config::DOMAIN ); ?></label>
134
  </p>
135
  <?php
136
  }
2
  /**
3
  * Name : MW WP Form Field Select
4
  * Description: セレクトボックスを出力
5
+ * Version : 1.6.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
+ * Modified : Novemver 14, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_select',
30
+ 'display_name' => __( 'Select', 'mw-wp-form' ),
31
  );
32
  }
33
 
40
  return array(
41
  'name' => '',
42
  'id' => null,
43
+ 'class' => null,
44
  'children' => '',
45
  'value' => '',
46
  'post_raw' => 'false',
62
 
63
  $_ret = $this->Form->select( $this->atts['name'], $children, array(
64
  'id' => $this->atts['id'],
65
+ 'class' => $this->atts['class'],
66
  'value' => $value,
67
  ) );
68
  if ( $this->atts['post_raw'] === 'false' ) {
108
  <input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
109
  </p>
110
  <p>
111
+ <strong>class</strong>
112
+ <?php $class = $this->get_value_for_generator( 'class', $options ); ?>
113
+ <input type="text" name="class" value="<?php echo esc_attr( $class ); ?>" />
114
+ </p>
115
+ <p>
116
+ <strong><?php esc_html_e( 'Choices', 'mw-wp-form' ); ?><span class="mwf_require">*</span></strong>
117
  <?php $children = "\n" . $this->get_value_for_generator( 'children', $options ); ?>
118
  <textarea name="children"><?php echo esc_attr( $children ); ?></textarea>
119
  <span class="mwf_note">
120
+ <?php esc_html_e( 'Input one line about one item.', 'mw-wp-form' ); ?>
121
+ <?php esc_html_e( 'Example: value1&crarr;value2 or key1:value1&crarr;key2:value2', 'mw-wp-form' ); ?><br />
122
+ <?php esc_html_e( 'You can split the post value and display value by ":". But display value is sent in e-mail.', 'mw-wp-form' ); ?><br />
123
+ <?php esc_html_e( 'When you want to use ":", please enter "::".', 'mw-wp-form' ); ?>
124
  </span>
125
  </p>
126
  <p>
127
+ <strong><?php esc_html_e( 'Send value by e-mail', 'mw-wp-form' ); ?></strong>
128
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
129
  <?php $post_raw = $this->get_value_for_generator( 'post_raw', $options ); ?>
130
+ <label><input type="checkbox" name="post_raw" value="true" <?php checked( 'true', $post_raw ); ?> /> <?php esc_html_e( 'Send post value when you split the post value and display value by ":" in choices.', 'mw-wp-form' ); ?></label>
131
  </p>
132
  <p>
133
+ <strong><?php esc_html_e( 'Default value', 'mw-wp-form' ); ?></strong>
134
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
135
  <input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
136
  </p>
137
  <p>
138
+ <strong><?php esc_html_e( 'Dsiplay error', 'mw-wp-form' ); ?></strong>
139
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
140
+ <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', 'mw-wp-form' ); ?></label>
141
  </p>
142
  <?php
143
  }
classes/form-fields/class.submit-button.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Field Submit Button
4
  * Description: 確認ボタンと送信ボタンを自動出力
5
- * Version : 1.5.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
- * Modified : January 2, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -27,7 +27,7 @@ class MW_WP_Form_Field_Submit_Button extends MW_WP_Form_Abstract_Form_Field {
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_submitButton',
30
- 'display_name' => __( 'Confirm &amp; Submit', MWF_Config::DOMAIN ),
31
  );
32
  }
33
 
@@ -38,9 +38,10 @@ class MW_WP_Form_Field_Submit_Button extends MW_WP_Form_Abstract_Form_Field {
38
  */
39
  protected function set_defaults() {
40
  return array(
41
- 'name' => '',
42
- 'confirm_value' => __( 'Confirm', MWF_Config::DOMAIN ),
43
- 'submit_value' => __( 'Send', MWF_Config::DOMAIN ),
 
44
  );
45
  }
46
 
@@ -51,9 +52,13 @@ class MW_WP_Form_Field_Submit_Button extends MW_WP_Form_Abstract_Form_Field {
51
  */
52
  protected function input_page() {
53
  if ( !empty( $this->atts['confirm_value'] ) ) {
54
- return $this->Form->submit( MWF_Config::CONFIRM_BUTTON, $this->atts['confirm_value'] );
 
 
55
  }
56
- return $this->Form->submit( $this->atts['name'], $this->atts['submit_value'] );
 
 
57
  }
58
 
59
  /**
@@ -62,7 +67,9 @@ class MW_WP_Form_Field_Submit_Button extends MW_WP_Form_Abstract_Form_Field {
62
  * @return string HTML
63
  */
64
  protected function confirm_page() {
65
- return $this->Form->submit( $this->atts['name'], $this->atts['submit_value'] );
 
 
66
  }
67
 
68
  /**
@@ -77,12 +84,17 @@ class MW_WP_Form_Field_Submit_Button extends MW_WP_Form_Abstract_Form_Field {
77
  <input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" />
78
  </p>
79
  <p>
80
- <strong><?php esc_html_e( 'String on the confirm button', MWF_Config::DOMAIN ); ?></strong>
 
 
 
 
 
81
  <?php $confirm_value = $this->get_value_for_generator( 'confirm_value', $options ); ?>
82
  <input type="text" name="confirm_value" value="<?php echo esc_attr( $confirm_value ); ?>" />
83
  </p>
84
  <p>
85
- <strong><?php esc_html_e( 'String on the submit button', MWF_Config::DOMAIN ); ?></strong>
86
  <?php $submit_value = $this->get_value_for_generator( 'submit_value', $options ); ?>
87
  <input type="text" name="submit_value" value="<?php echo esc_attr( $submit_value ); ?>" />
88
  </p>
2
  /**
3
  * Name : MW WP Form Field Submit Button
4
  * Description: 確認ボタンと送信ボタンを自動出力
5
+ * Version : 1.6.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
+ * Modified : November 14, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_submitButton',
30
+ 'display_name' => __( 'Confirm &amp; Submit', 'mw-wp-form' ),
31
  );
32
  }
33
 
38
  */
39
  protected function set_defaults() {
40
  return array(
41
+ 'name' => '',
42
+ 'class' => null,
43
+ 'confirm_value' => __( 'Confirm', 'mw-wp-form' ),
44
+ 'submit_value' => __( 'Send', 'mw-wp-form' ),
45
  );
46
  }
47
 
52
  */
53
  protected function input_page() {
54
  if ( !empty( $this->atts['confirm_value'] ) ) {
55
+ return $this->Form->submit( MWF_Config::CONFIRM_BUTTON, $this->atts['confirm_value'], array(
56
+ 'class' => $this->atts['class'],
57
+ ) );
58
  }
59
+ return $this->Form->submit( $this->atts['name'], $this->atts['submit_value'], array(
60
+ 'class' => $this->atts['class'],
61
+ ) );
62
  }
63
 
64
  /**
67
  * @return string HTML
68
  */
69
  protected function confirm_page() {
70
+ return $this->Form->submit( $this->atts['name'], $this->atts['submit_value'], array(
71
+ 'class' => $this->atts['class'],
72
+ ) );
73
  }
74
 
75
  /**
84
  <input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" />
85
  </p>
86
  <p>
87
+ <strong>class</strong>
88
+ <?php $class = $this->get_value_for_generator( 'class', $options ); ?>
89
+ <input type="text" name="class" value="<?php echo esc_attr( $class ); ?>" />
90
+ </p>
91
+ <p>
92
+ <strong><?php esc_html_e( 'String on the confirm button', 'mw-wp-form' ); ?></strong>
93
  <?php $confirm_value = $this->get_value_for_generator( 'confirm_value', $options ); ?>
94
  <input type="text" name="confirm_value" value="<?php echo esc_attr( $confirm_value ); ?>" />
95
  </p>
96
  <p>
97
+ <strong><?php esc_html_e( 'String on the submit button', 'mw-wp-form' ); ?></strong>
98
  <?php $submit_value = $this->get_value_for_generator( 'submit_value', $options ); ?>
99
  <input type="text" name="submit_value" value="<?php echo esc_attr( $submit_value ); ?>" />
100
  </p>
classes/form-fields/class.submit.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Field Submit
4
  * Description: 送信ボタンを出力
5
- * Version : 1.5.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
- * Modified : January 2, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -27,7 +27,7 @@ class MW_WP_Form_Field_Submit extends MW_WP_Form_Abstract_Form_Field {
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_submit',
30
- 'display_name' => __( 'Submit Button', MWF_Config::DOMAIN ),
31
  );
32
  }
33
 
@@ -39,7 +39,8 @@ class MW_WP_Form_Field_Submit extends MW_WP_Form_Abstract_Form_Field {
39
  protected function set_defaults() {
40
  return array(
41
  'name' => '',
42
- 'value' => __( 'Send', MWF_Config::DOMAIN ),
 
43
  );
44
  }
45
 
@@ -49,7 +50,9 @@ class MW_WP_Form_Field_Submit extends MW_WP_Form_Abstract_Form_Field {
49
  * @return string HTML
50
  */
51
  protected function input_page() {
52
- return $this->Form->submit( $this->atts['name'], $this->atts['value'] );
 
 
53
  }
54
 
55
  /**
@@ -73,7 +76,12 @@ class MW_WP_Form_Field_Submit extends MW_WP_Form_Abstract_Form_Field {
73
  <input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" />
74
  </p>
75
  <p>
76
- <strong><?php esc_html_e( 'String on the button', MWF_Config::DOMAIN ); ?></strong>
 
 
 
 
 
77
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
78
  <input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
79
  </p>
2
  /**
3
  * Name : MW WP Form Field Submit
4
  * Description: 送信ボタンを出力
5
+ * Version : 1.6.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
+ * Modified : November 14, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_submit',
30
+ 'display_name' => __( 'Submit Button', 'mw-wp-form' ),
31
  );
32
  }
33
 
39
  protected function set_defaults() {
40
  return array(
41
  'name' => '',
42
+ 'class' => null,
43
+ 'value' => __( 'Send', 'mw-wp-form' ),
44
  );
45
  }
46
 
50
  * @return string HTML
51
  */
52
  protected function input_page() {
53
+ return $this->Form->submit( $this->atts['name'], $this->atts['value'], array(
54
+ 'class' => $this->atts['class'],
55
+ ) );
56
  }
57
 
58
  /**
76
  <input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" />
77
  </p>
78
  <p>
79
+ <strong>class</strong>
80
+ <?php $class = $this->get_value_for_generator( 'class', $options ); ?>
81
+ <input type="text" name="class" value="<?php echo esc_attr( $class ); ?>" />
82
+ </p>
83
+ <p>
84
+ <strong><?php esc_html_e( 'String on the button', 'mw-wp-form' ); ?></strong>
85
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
86
  <input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
87
  </p>
classes/form-fields/class.tel.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Field Tel
4
  * Description: 電話番号フィールドを出力
5
- * Version : 1.5.2
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
- * Modified : April 10, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -27,7 +27,7 @@ class MW_WP_Form_Field_Tel extends MW_WP_Form_Abstract_Form_Field {
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_tel',
30
- 'display_name' => __( 'Tel', MWF_Config::DOMAIN ),
31
  );
32
  }
33
 
@@ -39,6 +39,7 @@ class MW_WP_Form_Field_Tel extends MW_WP_Form_Abstract_Form_Field {
39
  protected function set_defaults() {
40
  return array(
41
  'name' => '',
 
42
  'value' => '',
43
  'show_error' => 'true',
44
  'conv_half_alphanumeric' => 'true',
@@ -64,6 +65,7 @@ class MW_WP_Form_Field_Tel extends MW_WP_Form_Abstract_Form_Field {
64
  }
65
 
66
  $_ret = $this->Form->tel( $this->atts['name'], array(
 
67
  'conv-half-alphanumeric' => $conv_half_alphanumeric,
68
  'value' => $value,
69
  ) );
@@ -99,14 +101,19 @@ class MW_WP_Form_Field_Tel extends MW_WP_Form_Abstract_Form_Field {
99
  <input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" />
100
  </p>
101
  <p>
102
- <strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
 
 
 
 
 
103
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
104
- <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', MWF_Config::DOMAIN ); ?></label>
105
  </p>
106
  <p>
107
- <strong><?php esc_html_e( 'Convert half alphanumeric', MWF_Config::DOMAIN ); ?></strong>
108
  <?php $conv_half_alphanumeric = $this->get_value_for_generator( 'conv_half_alphanumeric', $options ); ?>
109
- <label><input type="checkbox" name="conv_half_alphanumeric" value="false" <?php checked( 'false', $conv_half_alphanumeric ); ?> /> <?php esc_html_e( 'Don\'t Convert.', MWF_Config::DOMAIN ); ?></label>
110
  </p>
111
  <?php
112
  }
2
  /**
3
  * Name : MW WP Form Field Tel
4
  * Description: 電話番号フィールドを出力
5
+ * Version : 1.6.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
+ * Modified : November 14, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_tel',
30
+ 'display_name' => __( 'Tel', 'mw-wp-form' ),
31
  );
32
  }
33
 
39
  protected function set_defaults() {
40
  return array(
41
  'name' => '',
42
+ 'class' => null,
43
  'value' => '',
44
  'show_error' => 'true',
45
  'conv_half_alphanumeric' => 'true',
65
  }
66
 
67
  $_ret = $this->Form->tel( $this->atts['name'], array(
68
+ 'class' => $this->atts['class'],
69
  'conv-half-alphanumeric' => $conv_half_alphanumeric,
70
  'value' => $value,
71
  ) );
101
  <input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" />
102
  </p>
103
  <p>
104
+ <strong>class</strong>
105
+ <?php $class = $this->get_value_for_generator( 'class', $options ); ?>
106
+ <input type="text" name="class" value="<?php echo esc_attr( $class ); ?>" />
107
+ </p>
108
+ <p>
109
+ <strong><?php esc_html_e( 'Dsiplay error', 'mw-wp-form' ); ?></strong>
110
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
111
+ <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', 'mw-wp-form' ); ?></label>
112
  </p>
113
  <p>
114
+ <strong><?php esc_html_e( 'Convert half alphanumeric', 'mw-wp-form' ); ?></strong>
115
  <?php $conv_half_alphanumeric = $this->get_value_for_generator( 'conv_half_alphanumeric', $options ); ?>
116
+ <label><input type="checkbox" name="conv_half_alphanumeric" value="false" <?php checked( 'false', $conv_half_alphanumeric ); ?> /> <?php esc_html_e( 'Don\'t Convert.', 'mw-wp-form' ); ?></label>
117
  </p>
118
  <?php
119
  }
classes/form-fields/class.text.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Field Text
4
  * Description: テキストフィールドを出力
5
- * Version : 1.5.4
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
- * Modified : July 20, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -27,7 +27,7 @@ class MW_WP_Form_Field_Text extends MW_WP_Form_Abstract_Form_Field {
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_text',
30
- 'display_name' => __( 'Text', MWF_Config::DOMAIN ),
31
  );
32
  }
33
 
@@ -40,6 +40,7 @@ class MW_WP_Form_Field_Text extends MW_WP_Form_Abstract_Form_Field {
40
  return array(
41
  'name' => '',
42
  'id' => null,
 
43
  'size' => 60,
44
  'maxlength' => null,
45
  'value' => '',
@@ -66,6 +67,7 @@ class MW_WP_Form_Field_Text extends MW_WP_Form_Abstract_Form_Field {
66
 
67
  $_ret = $this->Form->text( $this->atts['name'], array(
68
  'id' => $this->atts['id'],
 
69
  'size' => $this->atts['size'],
70
  'maxlength' => $this->atts['maxlength'],
71
  'value' => $value,
@@ -106,6 +108,11 @@ class MW_WP_Form_Field_Text extends MW_WP_Form_Abstract_Form_Field {
106
  <?php $id = $this->get_value_for_generator( 'id', $options ); ?>
107
  <input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
108
  </p>
 
 
 
 
 
109
  <p>
110
  <strong>size</strong>
111
  <?php $size = $this->get_value_for_generator( 'size', $options ); ?>
@@ -117,7 +124,7 @@ class MW_WP_Form_Field_Text extends MW_WP_Form_Abstract_Form_Field {
117
  <input type="text" name="maxlength" value="<?php echo esc_attr( $maxlength ); ?>" />
118
  </p>
119
  <p>
120
- <strong><?php esc_html_e( 'Default value', MWF_Config::DOMAIN ); ?></strong>
121
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
122
  <input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
123
  </p>
@@ -127,14 +134,14 @@ class MW_WP_Form_Field_Text extends MW_WP_Form_Abstract_Form_Field {
127
  <input type="text" name="placeholder" value="<?php echo esc_attr( $placeholder ); ?>" />
128
  </p>
129
  <p>
130
- <strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
131
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
132
- <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', MWF_Config::DOMAIN ); ?></label>
133
  </p>
134
  <p>
135
- <strong><?php esc_html_e( 'Convert half alphanumeric', MWF_Config::DOMAIN ); ?></strong>
136
  <?php $conv_half_alphanumeric = $this->get_value_for_generator( 'conv_half_alphanumeric', $options ); ?>
137
- <label><input type="checkbox" name="conv_half_alphanumeric" value="true" <?php checked( 'true', $conv_half_alphanumeric ); ?> /> <?php esc_html_e( 'Convert.', MWF_Config::DOMAIN ); ?></label>
138
  </p>
139
  <?php
140
  }
2
  /**
3
  * Name : MW WP Form Field Text
4
  * Description: テキストフィールドを出力
5
+ * Version : 1.6.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
+ * Modified : November 14, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_text',
30
+ 'display_name' => __( 'Text', 'mw-wp-form' ),
31
  );
32
  }
33
 
40
  return array(
41
  'name' => '',
42
  'id' => null,
43
+ 'class' => null,
44
  'size' => 60,
45
  'maxlength' => null,
46
  'value' => '',
67
 
68
  $_ret = $this->Form->text( $this->atts['name'], array(
69
  'id' => $this->atts['id'],
70
+ 'class' => $this->atts['class'],
71
  'size' => $this->atts['size'],
72
  'maxlength' => $this->atts['maxlength'],
73
  'value' => $value,
108
  <?php $id = $this->get_value_for_generator( 'id', $options ); ?>
109
  <input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
110
  </p>
111
+ <p>
112
+ <strong>class</strong>
113
+ <?php $class = $this->get_value_for_generator( 'class', $options ); ?>
114
+ <input type="text" name="class" value="<?php echo esc_attr( $class ); ?>" />
115
+ </p>
116
  <p>
117
  <strong>size</strong>
118
  <?php $size = $this->get_value_for_generator( 'size', $options ); ?>
124
  <input type="text" name="maxlength" value="<?php echo esc_attr( $maxlength ); ?>" />
125
  </p>
126
  <p>
127
+ <strong><?php esc_html_e( 'Default value', 'mw-wp-form' ); ?></strong>
128
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
129
  <input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
130
  </p>
134
  <input type="text" name="placeholder" value="<?php echo esc_attr( $placeholder ); ?>" />
135
  </p>
136
  <p>
137
+ <strong><?php esc_html_e( 'Dsiplay error', 'mw-wp-form' ); ?></strong>
138
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
139
+ <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', 'mw-wp-form' ); ?></label>
140
  </p>
141
  <p>
142
+ <strong><?php esc_html_e( 'Convert half alphanumeric', 'mw-wp-form' ); ?></strong>
143
  <?php $conv_half_alphanumeric = $this->get_value_for_generator( 'conv_half_alphanumeric', $options ); ?>
144
+ <label><input type="checkbox" name="conv_half_alphanumeric" value="true" <?php checked( 'true', $conv_half_alphanumeric ); ?> /> <?php esc_html_e( 'Convert.', 'mw-wp-form' ); ?></label>
145
  </p>
146
  <?php
147
  }
classes/form-fields/class.textarea.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Field TextArea
4
  * Description: テキストエリアを出力
5
- * Version : 1.5.2
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
- * Modified : April 1, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -27,7 +27,7 @@ class MW_WP_Form_Field_Textarea extends MW_WP_Form_Abstract_Form_Field {
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_textarea',
30
- 'display_name' => __( 'Textarea', MWF_Config::DOMAIN ),
31
  );
32
  }
33
 
@@ -40,6 +40,7 @@ class MW_WP_Form_Field_Textarea extends MW_WP_Form_Abstract_Form_Field {
40
  return array(
41
  'name' => '',
42
  'id' => null,
 
43
  'cols' => 50,
44
  'rows' => 5,
45
  'value' => '',
@@ -61,6 +62,7 @@ class MW_WP_Form_Field_Textarea extends MW_WP_Form_Abstract_Form_Field {
61
 
62
  $_ret = $this->Form->textarea( $this->atts['name'], array(
63
  'id' => $this->atts['id'],
 
64
  'cols' => $this->atts['cols'],
65
  'rows' => $this->atts['rows'],
66
  'value' => $value,
@@ -100,6 +102,11 @@ class MW_WP_Form_Field_Textarea extends MW_WP_Form_Abstract_Form_Field {
100
  <?php $id = $this->get_value_for_generator( 'id', $options ); ?>
101
  <input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
102
  </p>
 
 
 
 
 
103
  <p>
104
  <strong>cols</strong>
105
  <?php $cols = $this->get_value_for_generator( 'cols', $options ); ?>
@@ -111,7 +118,7 @@ class MW_WP_Form_Field_Textarea extends MW_WP_Form_Abstract_Form_Field {
111
  <input type="text" name="rows" value="<?php echo esc_attr( $rows ); ?>" />
112
  </p>
113
  <p>
114
- <strong><?php esc_html_e( 'Default value', MWF_Config::DOMAIN ); ?></strong>
115
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
116
  <input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
117
  </p>
@@ -121,9 +128,9 @@ class MW_WP_Form_Field_Textarea extends MW_WP_Form_Abstract_Form_Field {
121
  <input type="text" name="placeholder" value="<?php echo esc_attr( $placeholder ); ?>" />
122
  </p>
123
  <p>
124
- <strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
125
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
126
- <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', MWF_Config::DOMAIN ); ?></label>
127
  </p>
128
  <?php
129
  }
2
  /**
3
  * Name : MW WP Form Field TextArea
4
  * Description: テキストエリアを出力
5
+ * Version : 1.6.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
+ * Modified : November 14, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_textarea',
30
+ 'display_name' => __( 'Textarea', 'mw-wp-form' ),
31
  );
32
  }
33
 
40
  return array(
41
  'name' => '',
42
  'id' => null,
43
+ 'class' => null,
44
  'cols' => 50,
45
  'rows' => 5,
46
  'value' => '',
62
 
63
  $_ret = $this->Form->textarea( $this->atts['name'], array(
64
  'id' => $this->atts['id'],
65
+ 'class' => $this->atts['class'],
66
  'cols' => $this->atts['cols'],
67
  'rows' => $this->atts['rows'],
68
  'value' => $value,
102
  <?php $id = $this->get_value_for_generator( 'id', $options ); ?>
103
  <input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
104
  </p>
105
+ <p>
106
+ <strong>class</strong>
107
+ <?php $class = $this->get_value_for_generator( 'class', $options ); ?>
108
+ <input type="text" name="class" value="<?php echo esc_attr( $class ); ?>" />
109
+ </p>
110
  <p>
111
  <strong>cols</strong>
112
  <?php $cols = $this->get_value_for_generator( 'cols', $options ); ?>
118
  <input type="text" name="rows" value="<?php echo esc_attr( $rows ); ?>" />
119
  </p>
120
  <p>
121
+ <strong><?php esc_html_e( 'Default value', 'mw-wp-form' ); ?></strong>
122
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
123
  <input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
124
  </p>
128
  <input type="text" name="placeholder" value="<?php echo esc_attr( $placeholder ); ?>" />
129
  </p>
130
  <p>
131
+ <strong><?php esc_html_e( 'Dsiplay error', 'mw-wp-form' ); ?></strong>
132
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
133
+ <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', 'mw-wp-form' ); ?></label>
134
  </p>
135
  <?php
136
  }
classes/form-fields/class.url.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Field URL
4
  * Description: url フィールドを出力
5
- * Version : 1.0.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : July 20, 2015
9
- * Modified :
10
  * License : GPLv2 or later or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -27,7 +27,7 @@ class MW_WP_Form_Field_Url extends MW_WP_Form_Abstract_Form_Field {
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_url',
30
- 'display_name' => _x( 'URL', 'form-field', MWF_Config::DOMAIN ),
31
  );
32
  }
33
 
@@ -40,6 +40,7 @@ class MW_WP_Form_Field_Url extends MW_WP_Form_Abstract_Form_Field {
40
  return array(
41
  'name' => '',
42
  'id' => null,
 
43
  'size' => 60,
44
  'maxlength' => null,
45
  'value' => '',
@@ -66,6 +67,7 @@ class MW_WP_Form_Field_Url extends MW_WP_Form_Abstract_Form_Field {
66
 
67
  $_ret = $this->Form->url( $this->atts['name'], array(
68
  'id' => $this->atts['id'],
 
69
  'size' => $this->atts['size'],
70
  'maxlength' => $this->atts['maxlength'],
71
  'value' => $value,
@@ -106,6 +108,11 @@ class MW_WP_Form_Field_Url extends MW_WP_Form_Abstract_Form_Field {
106
  <?php $id = $this->get_value_for_generator( 'id', $options ); ?>
107
  <input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
108
  </p>
 
 
 
 
 
109
  <p>
110
  <strong>size</strong>
111
  <?php $size = $this->get_value_for_generator( 'size', $options ); ?>
@@ -117,7 +124,7 @@ class MW_WP_Form_Field_Url extends MW_WP_Form_Abstract_Form_Field {
117
  <input type="text" name="maxlength" value="<?php echo esc_attr( $maxlength ); ?>" />
118
  </p>
119
  <p>
120
- <strong><?php esc_html_e( 'Default value', MWF_Config::DOMAIN ); ?></strong>
121
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
122
  <input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
123
  </p>
@@ -127,14 +134,14 @@ class MW_WP_Form_Field_Url extends MW_WP_Form_Abstract_Form_Field {
127
  <input type="text" name="placeholder" value="<?php echo esc_attr( $placeholder ); ?>" />
128
  </p>
129
  <p>
130
- <strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
131
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
132
- <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', MWF_Config::DOMAIN ); ?></label>
133
  </p>
134
  <p>
135
- <strong><?php esc_html_e( 'Convert half alphanumeric', MWF_Config::DOMAIN ); ?></strong>
136
  <?php $conv_half_alphanumeric = $this->get_value_for_generator( 'conv_half_alphanumeric', $options ); ?>
137
- <label><input type="checkbox" name="conv_half_alphanumeric" value="false" <?php checked( 'false', $conv_half_alphanumeric ); ?> /> <?php esc_html_e( 'Don\'t Convert.', MWF_Config::DOMAIN ); ?></label>
138
  </p>
139
  <?php
140
  }
2
  /**
3
  * Name : MW WP Form Field URL
4
  * Description: url フィールドを出力
5
+ * Version : 1.1.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : July 20, 2015
9
+ * Modified : November 14, 2015
10
  * License : GPLv2 or later or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_url',
30
+ 'display_name' => _x( 'URL', 'form-field', 'mw-wp-form' ),
31
  );
32
  }
33
 
40
  return array(
41
  'name' => '',
42
  'id' => null,
43
+ 'class' => null,
44
  'size' => 60,
45
  'maxlength' => null,
46
  'value' => '',
67
 
68
  $_ret = $this->Form->url( $this->atts['name'], array(
69
  'id' => $this->atts['id'],
70
+ 'class' => $this->atts['class'],
71
  'size' => $this->atts['size'],
72
  'maxlength' => $this->atts['maxlength'],
73
  'value' => $value,
108
  <?php $id = $this->get_value_for_generator( 'id', $options ); ?>
109
  <input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
110
  </p>
111
+ <p>
112
+ <strong>class</strong>
113
+ <?php $class = $this->get_value_for_generator( 'class', $options ); ?>
114
+ <input type="text" name="class" value="<?php echo esc_attr( $class ); ?>" />
115
+ </p>
116
  <p>
117
  <strong>size</strong>
118
  <?php $size = $this->get_value_for_generator( 'size', $options ); ?>
124
  <input type="text" name="maxlength" value="<?php echo esc_attr( $maxlength ); ?>" />
125
  </p>
126
  <p>
127
+ <strong><?php esc_html_e( 'Default value', 'mw-wp-form' ); ?></strong>
128
  <?php $value = $this->get_value_for_generator( 'value', $options ); ?>
129
  <input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
130
  </p>
134
  <input type="text" name="placeholder" value="<?php echo esc_attr( $placeholder ); ?>" />
135
  </p>
136
  <p>
137
+ <strong><?php esc_html_e( 'Dsiplay error', 'mw-wp-form' ); ?></strong>
138
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
139
+ <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', 'mw-wp-form' ); ?></label>
140
  </p>
141
  <p>
142
+ <strong><?php esc_html_e( 'Convert half alphanumeric', 'mw-wp-form' ); ?></strong>
143
  <?php $conv_half_alphanumeric = $this->get_value_for_generator( 'conv_half_alphanumeric', $options ); ?>
144
+ <label><input type="checkbox" name="conv_half_alphanumeric" value="false" <?php checked( 'false', $conv_half_alphanumeric ); ?> /> <?php esc_html_e( 'Don\'t Convert.', 'mw-wp-form' ); ?></label>
145
  </p>
146
  <?php
147
  }
classes/form-fields/class.zip.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Field Zip
4
  * Description: 郵便番号フィールドを出力
5
- * Version : 1.5.1
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
- * Modified : April 10, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -27,7 +27,7 @@ class MW_WP_Form_Field_Zip extends MW_WP_Form_Abstract_Form_Field {
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_zip',
30
- 'display_name' => __( 'Zip Code', MWF_Config::DOMAIN ),
31
  );
32
  }
33
 
@@ -39,6 +39,7 @@ class MW_WP_Form_Field_Zip extends MW_WP_Form_Abstract_Form_Field {
39
  protected function set_defaults() {
40
  return array(
41
  'name' => '',
 
42
  'value' => '',
43
  'show_error' => 'true',
44
  'conv_half_alphanumeric' => 'true',
@@ -63,6 +64,7 @@ class MW_WP_Form_Field_Zip extends MW_WP_Form_Abstract_Form_Field {
63
  $conv_half_alphanumeric = null;
64
  }
65
  $_ret = $this->Form->zip( $this->atts['name'], array(
 
66
  'conv-half-alphanumeric' => $conv_half_alphanumeric,
67
  'value' => $value,
68
  ) );
@@ -98,14 +100,19 @@ class MW_WP_Form_Field_Zip extends MW_WP_Form_Abstract_Form_Field {
98
  <input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" /></td>
99
  </p>
100
  <p>
101
- <strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
 
 
 
 
 
102
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
103
- <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', MWF_Config::DOMAIN ); ?></label>
104
  </p>
105
  <p>
106
- <strong><?php esc_html_e( 'Convert half alphanumeric', MWF_Config::DOMAIN ); ?></strong>
107
  <?php $conv_half_alphanumeric = $this->get_value_for_generator( 'conv_half_alphanumeric', $options ); ?>
108
- <label><input type="checkbox" name="conv_half_alphanumeric" value="false" <?php checked( 'false', $conv_half_alphanumeric ); ?> /> <?php esc_html_e( 'Don\'t Convert.', MWF_Config::DOMAIN ); ?></label>
109
  </p>
110
  <?php
111
  }
2
  /**
3
  * Name : MW WP Form Field Zip
4
  * Description: 郵便番号フィールドを出力
5
+ * Version : 1.6.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 14, 2012
9
+ * Modified : November 14, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
27
  protected function set_names() {
28
  return array(
29
  'shortcode_name' => 'mwform_zip',
30
+ 'display_name' => __( 'Zip Code', 'mw-wp-form' ),
31
  );
32
  }
33
 
39
  protected function set_defaults() {
40
  return array(
41
  'name' => '',
42
+ 'class' => null,
43
  'value' => '',
44
  'show_error' => 'true',
45
  'conv_half_alphanumeric' => 'true',
64
  $conv_half_alphanumeric = null;
65
  }
66
  $_ret = $this->Form->zip( $this->atts['name'], array(
67
+ 'class' => $this->atts['class'],
68
  'conv-half-alphanumeric' => $conv_half_alphanumeric,
69
  'value' => $value,
70
  ) );
100
  <input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" /></td>
101
  </p>
102
  <p>
103
+ <strong>class</strong>
104
+ <?php $class = $this->get_value_for_generator( 'class', $options ); ?>
105
+ <input type="text" name="class" value="<?php echo esc_attr( $class ); ?>" />
106
+ </p>
107
+ <p>
108
+ <strong><?php esc_html_e( 'Dsiplay error', 'mw-wp-form' ); ?></strong>
109
  <?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
110
+ <label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', 'mw-wp-form' ); ?></label>
111
  </p>
112
  <p>
113
+ <strong><?php esc_html_e( 'Convert half alphanumeric', 'mw-wp-form' ); ?></strong>
114
  <?php $conv_half_alphanumeric = $this->get_value_for_generator( 'conv_half_alphanumeric', $options ); ?>
115
+ <label><input type="checkbox" name="conv_half_alphanumeric" value="false" <?php checked( 'false', $conv_half_alphanumeric ); ?> /> <?php esc_html_e( 'Don\'t Convert.', 'mw-wp-form' ); ?></label>
116
  </p>
117
  <?php
118
  }
classes/functions.php CHANGED
@@ -198,7 +198,7 @@ class MWF_Functions {
198
  'post_mime_type' => $wp_check_filetype['type'],
199
  'post_title' => $key,
200
  'post_status' => 'inherit',
201
- 'post_content' => __( 'Uploaded from ', MWF_Config::DOMAIN ) . $post_type->label,
202
  );
203
  $attach_id = wp_insert_attachment( $attachment, $filepath, $post_id );
204
  $attach_data = wp_generate_attachment_metadata( $attach_id, $filepath );
@@ -297,7 +297,7 @@ class MWF_Functions {
297
  * @return string
298
  */
299
  public static function get_tracking_number_title( $post_type ) {
300
- $tracking_number_title = esc_html__( 'Tracking Number', MWF_Config::DOMAIN );
301
  $form_key = self::contact_data_post_type_to_form_key( $post_type );
302
  if ( $form_key ) {
303
  $tracking_number_title = apply_filters(
198
  'post_mime_type' => $wp_check_filetype['type'],
199
  'post_title' => $key,
200
  'post_status' => 'inherit',
201
+ 'post_content' => __( 'Uploaded from ', 'mw-wp-form' ) . $post_type->label,
202
  );
203
  $attach_id = wp_insert_attachment( $attachment, $filepath, $post_id );
204
  $attach_data = wp_generate_attachment_metadata( $attach_id, $filepath );
297
  * @return string
298
  */
299
  public static function get_tracking_number_title( $post_type ) {
300
+ $tracking_number_title = esc_html__( 'Tracking Number', 'mw-wp-form' );
301
  $form_key = self::contact_data_post_type_to_form_key( $post_type );
302
  if ( $form_key ) {
303
  $tracking_number_title = apply_filters(
classes/models/class.contact-data-setting.php CHANGED
@@ -57,9 +57,9 @@ class MW_WP_Form_Contact_Data_Setting {
57
  if ( MWF_Functions::is_contact_data_post_type( get_post_type( $post_id ) ) ) {
58
  $this->post_id = $post_id;
59
  $this->response_statuses = array(
60
- 'not-supported' => esc_html__( 'Not supported', MWF_Config::DOMAIN ),
61
- 'reservation' => esc_html__( 'Reservation', MWF_Config::DOMAIN ),
62
- 'supported' => esc_html__( 'Supported', MWF_Config::DOMAIN ),
63
  );
64
 
65
  $post_custom = get_post_custom( $post_id );
57
  if ( MWF_Functions::is_contact_data_post_type( get_post_type( $post_id ) ) ) {
58
  $this->post_id = $post_id;
59
  $this->response_statuses = array(
60
+ 'not-supported' => esc_html__( 'Not supported', 'mw-wp-form' ),
61
+ 'reservation' => esc_html__( 'Reservation', 'mw-wp-form' ),
62
+ 'supported' => esc_html__( 'Supported', 'mw-wp-form' ),
63
  );
64
 
65
  $post_custom = get_post_custom( $post_id );
classes/models/class.csv.php CHANGED
@@ -119,7 +119,7 @@ class MW_WP_Form_CSV {
119
  protected function get_csv_headings( array $posts ) {
120
  $default_headings = array(
121
  'ID',
122
- __( 'Response Status', MWF_Config::DOMAIN ),
123
  'post_date',
124
  'post_modified',
125
  'post_title'
@@ -145,7 +145,7 @@ class MW_WP_Form_CSV {
145
  }
146
  ksort( $columns );
147
  $rows[0] = array_merge( $rows[0], $columns );
148
- $rows[0] = array_merge( $rows[0], array( __( 'Memo', MWF_Config::DOMAIN ) ) );
149
  return $rows[0];
150
  }
151
 
@@ -166,10 +166,10 @@ class MW_WP_Form_CSV {
166
  $Contact_Data_Setting = new MW_WP_Form_Contact_Data_Setting( $post->ID );
167
  $response_statuses = $Contact_Data_Setting->get_response_statuses();
168
  $column = '';
169
- if ( $value === __( 'Response Status', MWF_Config::DOMAIN ) ) {
170
  $response_status = $Contact_Data_Setting->get( 'response_status' );
171
  $column = $response_statuses[$response_status];
172
- } elseif ( $value === __( 'Memo', MWF_Config::DOMAIN ) ) {
173
  $column = $Contact_Data_Setting->get( 'memo' );
174
  } elseif ( $value === MWF_Functions::get_tracking_number_title( $this->post_type ) ) {
175
  $column = get_post_meta( get_the_ID(), MWF_Config::TRACKINGNUMBER, true );
119
  protected function get_csv_headings( array $posts ) {
120
  $default_headings = array(
121
  'ID',
122
+ __( 'Response Status', 'mw-wp-form' ),
123
  'post_date',
124
  'post_modified',
125
  'post_title'
145
  }
146
  ksort( $columns );
147
  $rows[0] = array_merge( $rows[0], $columns );
148
+ $rows[0] = array_merge( $rows[0], array( __( 'Memo', 'mw-wp-form' ) ) );
149
  return $rows[0];
150
  }
151
 
166
  $Contact_Data_Setting = new MW_WP_Form_Contact_Data_Setting( $post->ID );
167
  $response_statuses = $Contact_Data_Setting->get_response_statuses();
168
  $column = '';
169
+ if ( $value === __( 'Response Status', 'mw-wp-form' ) ) {
170
  $response_status = $Contact_Data_Setting->get( 'response_status' );
171
  $column = $response_statuses[$response_status];
172
+ } elseif ( $value === __( 'Memo', 'mw-wp-form' ) ) {
173
  $column = $Contact_Data_Setting->get( 'memo' );
174
  } elseif ( $value === MWF_Functions::get_tracking_number_title( $this->post_type ) ) {
175
  $column = get_post_meta( get_the_ID(), MWF_Config::TRACKINGNUMBER, true );
classes/models/class.data.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Data
4
  * Description: MW WP Form のデータ操作用
5
- * Version : 1.3.9
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : October 10, 2013
9
- * Modified : May 6, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -263,10 +263,12 @@ class MW_WP_Form_Data {
263
  $children = array();
264
  if ( isset( $this->data['__children'][$key] ) && is_array( $this->data['__children'][$key] ) ) {
265
  $_children = $this->data['__children'][$key];
266
- foreach ( $_children as $_child ) {
267
- $_child = json_decode( $_child, true );
268
- foreach ( $_child as $_child_key => $_child_value ) {
269
- $children[$_child_key] = $_child_value;
 
 
270
  }
271
  }
272
  }
2
  /**
3
  * Name : MW WP Form Data
4
  * Description: MW WP Form のデータ操作用
5
+ * Version : 1.3.10
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : October 10, 2013
9
+ * Modified : November 14, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
263
  $children = array();
264
  if ( isset( $this->data['__children'][$key] ) && is_array( $this->data['__children'][$key] ) ) {
265
  $_children = $this->data['__children'][$key];
266
+ if ( is_array( $_children ) ) {
267
+ foreach ( $_children as $_child ) {
268
+ $_child = json_decode( $_child, true );
269
+ foreach ( $_child as $_child_key => $_child_value ) {
270
+ $children[$_child_key] = $_child_value;
271
+ }
272
  }
273
  }
274
  }
classes/models/class.form.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Form
4
  * Description: フォームヘルパー
5
- * Version : 1.7.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : September 25, 2012
9
- * Modified : August 12, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -217,6 +217,7 @@ class MW_WP_Form_Form {
217
  public function text( $name, $options = array() ) {
218
  $defaults = array(
219
  'id' => null,
 
220
  'size' => 60,
221
  'maxlength' => null,
222
  'value' => '',
@@ -243,6 +244,7 @@ class MW_WP_Form_Form {
243
  public function email( $name, $options = array() ) {
244
  $defaults = array(
245
  'id' => null,
 
246
  'size' => 60,
247
  'maxlength' => null,
248
  'value' => '',
@@ -269,6 +271,7 @@ class MW_WP_Form_Form {
269
  public function url( $name, $options = array() ) {
270
  $defaults = array(
271
  'id' => null,
 
272
  'size' => 60,
273
  'maxlength' => null,
274
  'value' => '',
@@ -295,6 +298,7 @@ class MW_WP_Form_Form {
295
  public function range( $name, $options = array() ) {
296
  $defaults = array(
297
  'id' => null,
 
298
  'value' => '',
299
  'min' => 0,
300
  'max' => 100,
@@ -320,6 +324,7 @@ class MW_WP_Form_Form {
320
  public function number( $name, $options = array() ) {
321
  $defaults = array(
322
  'id' => null,
 
323
  'value' => '',
324
  'min' => null,
325
  'max' => null,
@@ -361,6 +366,7 @@ class MW_WP_Form_Form {
361
  public function password( $name, $options = array() ) {
362
  $defaults = array(
363
  'id' => null,
 
364
  'size' => 60,
365
  'maxlength' => null,
366
  'value' => '',
@@ -385,6 +391,7 @@ class MW_WP_Form_Form {
385
  */
386
  public function zip( $name, $options = array() ) {
387
  $defaults = array(
 
388
  'conv-half-alphanumeric' => null,
389
  'value' => '',
390
  );
@@ -409,6 +416,7 @@ class MW_WP_Form_Form {
409
  $_ret = '<span class="mwform-zip-field">';
410
  $_ret .= '〒';
411
  $_ret .= $this->text( $name . '[data][0]', array(
 
412
  'size' => 4,
413
  'maxlength' => 3,
414
  'value' => $values[0],
@@ -416,6 +424,7 @@ class MW_WP_Form_Form {
416
  ) );
417
  $_ret .= ' ' . $separator . ' ';
418
  $_ret .= $this->text( $name . '[data][1]', array(
 
419
  'size' => 5,
420
  'maxlength' => 4,
421
  'value' => $values[1],
@@ -435,6 +444,7 @@ class MW_WP_Form_Form {
435
  */
436
  public function tel( $name, $options = array() ) {
437
  $defaults = array(
 
438
  'conv-half-alphanumeric' => null,
439
  'value' => '',
440
  );
@@ -458,6 +468,7 @@ class MW_WP_Form_Form {
458
 
459
  $_ret = '<span class="mwform-tel-field">';
460
  $_ret .= $this->text( $name . '[data][0]', array(
 
461
  'size' => 6,
462
  'maxlength' => 5,
463
  'value' => $values[0],
@@ -465,6 +476,7 @@ class MW_WP_Form_Form {
465
  ) );
466
  $_ret .= ' ' . $separator . ' ';
467
  $_ret .= $this->text( $name . '[data][1]', array(
 
468
  'size' => 5,
469
  'maxlength' => 4,
470
  'value' => $values[1],
@@ -472,6 +484,7 @@ class MW_WP_Form_Form {
472
  ) );
473
  $_ret .= ' ' . $separator . ' ';
474
  $_ret .= $this->text( $name . '[data][2]', array(
 
475
  'size' => 5,
476
  'maxlength' => 4,
477
  'value' => $values[2],
@@ -492,6 +505,7 @@ class MW_WP_Form_Form {
492
  public function textarea( $name, $options = array() ) {
493
  $defaults = array(
494
  'id' => null,
 
495
  'cols' => 50,
496
  'rows' => 5,
497
  'value' => '',
@@ -520,14 +534,15 @@ class MW_WP_Form_Form {
520
  */
521
  public function select( $name, $children = array(), $options = array() ) {
522
  $defaults = array(
 
523
  'id' => null,
524
  'value' => '',
525
  );
526
  $options = array_merge( $defaults, $options );
527
-
528
- $attributes = $this->generate_attributes( array(
529
- 'id' => $options['id'],
530
- ) );
531
  $_ret = sprintf(
532
  '<select name="%s"%s>',
533
  esc_attr( $name ),
@@ -556,6 +571,7 @@ class MW_WP_Form_Form {
556
  */
557
  public function radio( $name, $children = array(), $options = array() ) {
558
  $defaults = array(
 
559
  'id' => '',
560
  'value' => '',
561
  'vertically' => null,
@@ -566,7 +582,7 @@ class MW_WP_Form_Form {
566
  $_ret = '';
567
  foreach ( $children as $key => $_value ) {
568
  $i ++;
569
- $vertically = ( $options['vertically'] === 'true' ) ? 'vertical-item' : '';
570
  $attributes_for_label = $this->generate_attributes( array(
571
  'for' => $this->get_attr_id( $options['id'], $i ),
572
  ) );
@@ -574,7 +590,7 @@ class MW_WP_Form_Form {
574
  'id' => $this->get_attr_id( $options['id'], $i ),
575
  ) );
576
  $_ret .= sprintf(
577
- '<span class="%s"><label%s><input type="radio" name="%s" value="%s"%s %s />%s</label></span>',
578
  $vertically,
579
  $attributes_for_label,
580
  esc_attr( $name ),
@@ -598,7 +614,8 @@ class MW_WP_Form_Form {
598
  */
599
  public function checkbox( $name, $children = array(), $options = array(), $separator = ',' ) {
600
  $defaults = array(
601
- 'id' => '',
 
602
  'value' => '',
603
  'vertically' => null,
604
  );
@@ -613,15 +630,16 @@ class MW_WP_Form_Form {
613
  $_ret = '';
614
  foreach ( $children as $key => $_value ) {
615
  $i ++;
616
- $vertically = ( $options['vertically'] === 'true' ) ? 'vertical-item' : '';
617
  $attributes_for_label = $this->generate_attributes( array(
618
  'for' => $this->get_attr_id( $options['id'], $i ),
619
  ) );
620
  $attributes = $this->generate_attributes( array(
621
- 'id' => $this->get_attr_id( $options['id'], $i ),
 
622
  ) );
623
  $_ret .= sprintf(
624
- '<span class="%s"><label%s><input type="checkbox" name="%s" value="%s"%s %s />%s</label></span>',
625
  $vertically,
626
  $attributes_for_label,
627
  esc_attr( $name . '[data][]' ),
@@ -640,13 +658,20 @@ class MW_WP_Form_Form {
640
  *
641
  * @param string $name name属性
642
  * @param string $value value属性
 
643
  * @return string submitボタン
644
  */
645
- public function submit( $name, $value ) {
 
 
 
 
 
646
  return sprintf(
647
- '<input type="submit" name="%s" value="%s" />',
648
  esc_attr( $name ),
649
- esc_attr( $value )
 
650
  );
651
  }
652
 
@@ -655,13 +680,20 @@ class MW_WP_Form_Form {
655
  *
656
  * @param string $name name属性
657
  * @param string $value value属性
 
658
  * @return string ボタン
659
  */
660
- public function button( $name, $value ) {
 
 
 
 
 
661
  return sprintf(
662
- '<input type="button" name="%s" value="%s" />',
663
  esc_attr( $name ),
664
- esc_attr( $value )
 
665
  );
666
  }
667
 
@@ -675,6 +707,7 @@ class MW_WP_Form_Form {
675
  public function datepicker( $name, $options = array() ) {
676
  $defaults = array(
677
  'id' => null,
 
678
  'size' => 30,
679
  'js' => '',
680
  'value' => '',
@@ -707,7 +740,8 @@ class MW_WP_Form_Form {
707
  */
708
  public function file( $name, $options = array() ) {
709
  $defaults = array(
710
- 'id' => '',
 
711
  );
712
  $options = array_merge( $defaults, $options );
713
  $attributes = $this->generate_attributes( $options );
2
  /**
3
  * Name : MW WP Form Form
4
  * Description: フォームヘルパー
5
+ * Version : 1.8.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : September 25, 2012
9
+ * Modified : November 13, 2015
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
217
  public function text( $name, $options = array() ) {
218
  $defaults = array(
219
  'id' => null,
220
+ 'class' => null,
221
  'size' => 60,
222
  'maxlength' => null,
223
  'value' => '',
244
  public function email( $name, $options = array() ) {
245
  $defaults = array(
246
  'id' => null,
247
+ 'class' => null,
248
  'size' => 60,
249
  'maxlength' => null,
250
  'value' => '',
271
  public function url( $name, $options = array() ) {
272
  $defaults = array(
273
  'id' => null,
274
+ 'class' => null,
275
  'size' => 60,
276
  'maxlength' => null,
277
  'value' => '',
298
  public function range( $name, $options = array() ) {
299
  $defaults = array(
300
  'id' => null,
301
+ 'class' => null,
302
  'value' => '',
303
  'min' => 0,
304
  'max' => 100,
324
  public function number( $name, $options = array() ) {
325
  $defaults = array(
326
  'id' => null,
327
+ 'class' => null,
328
  'value' => '',
329
  'min' => null,
330
  'max' => null,
366
  public function password( $name, $options = array() ) {
367
  $defaults = array(
368
  'id' => null,
369
+ 'class' => null,
370
  'size' => 60,
371
  'maxlength' => null,
372
  'value' => '',
391
  */
392
  public function zip( $name, $options = array() ) {
393
  $defaults = array(
394
+ 'class' => null,
395
  'conv-half-alphanumeric' => null,
396
  'value' => '',
397
  );
416
  $_ret = '<span class="mwform-zip-field">';
417
  $_ret .= '〒';
418
  $_ret .= $this->text( $name . '[data][0]', array(
419
+ 'class' => $options['class'],
420
  'size' => 4,
421
  'maxlength' => 3,
422
  'value' => $values[0],
424
  ) );
425
  $_ret .= ' ' . $separator . ' ';
426
  $_ret .= $this->text( $name . '[data][1]', array(
427
+ 'class' => $options['class'],
428
  'size' => 5,
429
  'maxlength' => 4,
430
  'value' => $values[1],
444
  */
445
  public function tel( $name, $options = array() ) {
446
  $defaults = array(
447
+ 'class' => null,
448
  'conv-half-alphanumeric' => null,
449
  'value' => '',
450
  );
468
 
469
  $_ret = '<span class="mwform-tel-field">';
470
  $_ret .= $this->text( $name . '[data][0]', array(
471
+ 'class' => $options['class'],
472
  'size' => 6,
473
  'maxlength' => 5,
474
  'value' => $values[0],
476
  ) );
477
  $_ret .= ' ' . $separator . ' ';
478
  $_ret .= $this->text( $name . '[data][1]', array(
479
+ 'class' => $options['class'],
480
  'size' => 5,
481
  'maxlength' => 4,
482
  'value' => $values[1],
484
  ) );
485
  $_ret .= ' ' . $separator . ' ';
486
  $_ret .= $this->text( $name . '[data][2]', array(
487
+ 'class' => $options['class'],
488
  'size' => 5,
489
  'maxlength' => 4,
490
  'value' => $values[2],
505
  public function textarea( $name, $options = array() ) {
506
  $defaults = array(
507
  'id' => null,
508
+ 'class' => null,
509
  'cols' => 50,
510
  'rows' => 5,
511
  'value' => '',
534
  */
535
  public function select( $name, $children = array(), $options = array() ) {
536
  $defaults = array(
537
+ 'class' => null,
538
  'id' => null,
539
  'value' => '',
540
  );
541
  $options = array_merge( $defaults, $options );
542
+
543
+ $_options = $options;
544
+ unset( $_options['value'] );
545
+ $attributes = $this->generate_attributes( $_options );
546
  $_ret = sprintf(
547
  '<select name="%s"%s>',
548
  esc_attr( $name ),
571
  */
572
  public function radio( $name, $children = array(), $options = array() ) {
573
  $defaults = array(
574
+ 'class' => null,
575
  'id' => '',
576
  'value' => '',
577
  'vertically' => null,
582
  $_ret = '';
583
  foreach ( $children as $key => $_value ) {
584
  $i ++;
585
+ $vertically = ( $options['vertically'] === 'true' ) ? 'vertical-item' : 'horizontal-item';
586
  $attributes_for_label = $this->generate_attributes( array(
587
  'for' => $this->get_attr_id( $options['id'], $i ),
588
  ) );
590
  'id' => $this->get_attr_id( $options['id'], $i ),
591
  ) );
592
  $_ret .= sprintf(
593
+ '<span class="mwform-radio-field %s"><label%s><input type="radio" name="%s" value="%s"%s %s />%s</label></span>',
594
  $vertically,
595
  $attributes_for_label,
596
  esc_attr( $name ),
614
  */
615
  public function checkbox( $name, $children = array(), $options = array(), $separator = ',' ) {
616
  $defaults = array(
617
+ 'id' => null,
618
+ 'class' => null,
619
  'value' => '',
620
  'vertically' => null,
621
  );
630
  $_ret = '';
631
  foreach ( $children as $key => $_value ) {
632
  $i ++;
633
+ $vertically = ( $options['vertically'] === 'true' ) ? 'vertical-item' : 'horizontal-item';
634
  $attributes_for_label = $this->generate_attributes( array(
635
  'for' => $this->get_attr_id( $options['id'], $i ),
636
  ) );
637
  $attributes = $this->generate_attributes( array(
638
+ 'id' => $this->get_attr_id( $options['id'], $i ),
639
+ 'class' => $options['class'],
640
  ) );
641
  $_ret .= sprintf(
642
+ '<span class="mwform-checkbox-field %s"><label%s><input type="checkbox" name="%s" value="%s"%s %s />%s</label></span>',
643
  $vertically,
644
  $attributes_for_label,
645
  esc_attr( $name . '[data][]' ),
658
  *
659
  * @param string $name name属性
660
  * @param string $value value属性
661
+ * @param array $options
662
  * @return string submitボタン
663
  */
664
+ public function submit( $name, $value, $options = array() ) {
665
+ $defaults = array(
666
+ 'class' => null,
667
+ );
668
+ $options = array_merge( $defaults, $options );
669
+ $attributes = $this->generate_attributes( $options );
670
  return sprintf(
671
+ '<input type="submit" name="%s" value="%s"%s />',
672
  esc_attr( $name ),
673
+ esc_attr( $value ),
674
+ $attributes
675
  );
676
  }
677
 
680
  *
681
  * @param string $name name属性
682
  * @param string $value value属性
683
+ * @param array $options
684
  * @return string ボタン
685
  */
686
+ public function button( $name, $value, $options = array() ) {
687
+ $defaults = array(
688
+ 'class' => null,
689
+ );
690
+ $options = array_merge( $defaults, $options );
691
+ $attributes = $this->generate_attributes( $options );
692
  return sprintf(
693
+ '<input type="button" name="%s" value="%s"%s />',
694
  esc_attr( $name ),
695
+ esc_attr( $value ),
696
+ $attributes
697
  );
698
  }
699
 
707
  public function datepicker( $name, $options = array() ) {
708
  $defaults = array(
709
  'id' => null,
710
+ 'class' => null,
711
  'size' => 30,
712
  'js' => '',
713
  'value' => '',
740
  */
741
  public function file( $name, $options = array() ) {
742
  $defaults = array(
743
+ 'id' => null,
744
+ 'class' => null,
745
  );
746
  $options = array_merge( $defaults, $options );
747
  $attributes = $this->generate_attributes( $options );
classes/validation-rules/class.akismet.php CHANGED
@@ -27,7 +27,7 @@ class MW_WP_Form_Validation_Rule_Akismet extends MW_WP_Form_Abstract_Validation_
27
  */
28
  public function rule( $key, array $options = array() ) {
29
  $defaults = array(
30
- 'message' => __( 'The contents which you input were judged with spam.', MWF_Config::DOMAIN )
31
  );
32
  $options = array_merge( $defaults, $options );
33
  return $options['message'];
27
  */
28
  public function rule( $key, array $options = array() ) {
29
  $defaults = array(
30
+ 'message' => __( 'The contents which you input were judged with spam.', 'mw-wp-form' )
31
  );
32
  $options = array_merge( $defaults, $options );
33
  return $options['message'];
classes/validation-rules/class.alpha.php CHANGED
@@ -30,7 +30,7 @@ class MW_WP_Form_Validation_Rule_Alpha extends MW_WP_Form_Abstract_Validation_Ru
30
  if ( !MWF_Functions::is_empty( $value ) ) {
31
  if ( !preg_match( '/^[A-Za-z]+$/', $value ) ) {
32
  $defaults = array(
33
- 'message' => __( 'Please enter with a half-width alphabetic character.', MWF_Config::DOMAIN )
34
  );
35
  $options = array_merge( $defaults, $options );
36
  return $options['message'];
@@ -46,7 +46,7 @@ class MW_WP_Form_Validation_Rule_Alpha extends MW_WP_Form_Abstract_Validation_Ru
46
  */
47
  public function admin( $key, $value ) {
48
  ?>
49
- <label><input type="checkbox" <?php checked( $value[$this->getName()], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>]" value="1" /><?php esc_html_e( 'Alphabet', MWF_Config::DOMAIN ); ?></label>
50
  <?php
51
  }
52
  }
30
  if ( !MWF_Functions::is_empty( $value ) ) {
31
  if ( !preg_match( '/^[A-Za-z]+$/', $value ) ) {
32
  $defaults = array(
33
+ 'message' => __( 'Please enter with a half-width alphabetic character.', 'mw-wp-form' )
34
  );
35
  $options = array_merge( $defaults, $options );
36
  return $options['message'];
46
  */
47
  public function admin( $key, $value ) {
48
  ?>
49
+ <label><input type="checkbox" <?php checked( $value[$this->getName()], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>]" value="1" /><?php esc_html_e( 'Alphabet', 'mw-wp-form' ); ?></label>
50
  <?php
51
  }
52
  }
classes/validation-rules/class.alphanumeric.php CHANGED
@@ -30,7 +30,7 @@ class MW_WP_Form_Validation_Rule_AlphaNumeric extends MW_WP_Form_Abstract_Valida
30
  if ( !MWF_Functions::is_empty( $value ) ) {
31
  if ( !preg_match( '/^[0-9A-Za-z]+$/', $value ) ) {
32
  $defaults = array(
33
- 'message' => __( 'Please enter with a half-width alphanumeric character.', MWF_Config::DOMAIN )
34
  );
35
  $options = array_merge( $defaults, $options );
36
  return $options['message'];
@@ -46,7 +46,7 @@ class MW_WP_Form_Validation_Rule_AlphaNumeric extends MW_WP_Form_Abstract_Valida
46
  */
47
  public function admin( $key, $value ) {
48
  ?>
49
- <label><input type="checkbox" <?php checked( $value[$this->getName()], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>]" value="1" /><?php esc_html_e( 'Alphabet and Numeric', MWF_Config::DOMAIN ); ?></label>
50
  <?php
51
  }
52
  }
30
  if ( !MWF_Functions::is_empty( $value ) ) {
31
  if ( !preg_match( '/^[0-9A-Za-z]+$/', $value ) ) {
32
  $defaults = array(
33
+ 'message' => __( 'Please enter with a half-width alphanumeric character.', 'mw-wp-form' )
34
  );
35
  $options = array_merge( $defaults, $options );
36
  return $options['message'];
46
  */
47
  public function admin( $key, $value ) {
48
  ?>
49
+ <label><input type="checkbox" <?php checked( $value[$this->getName()], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>]" value="1" /><?php esc_html_e( 'Alphabet and Numeric', 'mw-wp-form' ); ?></label>
50
  <?php
51
  }
52
  }
classes/validation-rules/class.between.php CHANGED
@@ -32,7 +32,7 @@ class MW_WP_Form_Validation_Rule_Between extends MW_WP_Form_Abstract_Validation_
32
  $defaults = array(
33
  'min' => 0,
34
  'max' => 0,
35
- 'message' => __( 'The number of characters is invalid.', MWF_Config::DOMAIN )
36
  );
37
  $options = array_merge( $defaults, $options );
38
  $length = mb_strlen( $value, get_bloginfo( 'charset' ) );
@@ -74,7 +74,7 @@ class MW_WP_Form_Validation_Rule_Between extends MW_WP_Form_Abstract_Validation_
74
  ?>
75
  <table>
76
  <tr>
77
- <td><?php esc_html_e( 'The range of the number of characters', MWF_Config::DOMAIN ); ?></td>
78
  <td>
79
  <input type="text" value="<?php echo esc_attr( $min ); ?>" size="3" name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>][min]" />
80
 
32
  $defaults = array(
33
  'min' => 0,
34
  'max' => 0,
35
+ 'message' => __( 'The number of characters is invalid.', 'mw-wp-form' )
36
  );
37
  $options = array_merge( $defaults, $options );
38
  $length = mb_strlen( $value, get_bloginfo( 'charset' ) );
74
  ?>
75
  <table>
76
  <tr>
77
+ <td><?php esc_html_e( 'The range of the number of characters', 'mw-wp-form' ); ?></td>
78
  <td>
79
  <input type="text" value="<?php echo esc_attr( $min ); ?>" size="3" name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>][min]" />
80
 
classes/validation-rules/class.date.php CHANGED
@@ -29,7 +29,7 @@ class MW_WP_Form_Validation_Rule_Date extends MW_WP_Form_Abstract_Validation_Rul
29
  $value = $this->Data->get( $key );
30
  if ( !MWF_Functions::is_empty( $value ) ) {
31
  $defaults = array(
32
- 'message' => __( 'This is not the format of a date.', MWF_Config::DOMAIN )
33
  );
34
  $options = array_merge( $defaults, $options );
35
  $timestamp = strtotime( $value );
@@ -71,7 +71,7 @@ class MW_WP_Form_Validation_Rule_Date extends MW_WP_Form_Abstract_Validation_Rul
71
  */
72
  public function admin( $key, $value ) {
73
  ?>
74
- <label><input type="checkbox" <?php checked( $value[$this->getName()], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>]" value="1" /><?php esc_html_e( 'Date', MWF_Config::DOMAIN ); ?></label>
75
  <?php
76
  }
77
  }
29
  $value = $this->Data->get( $key );
30
  if ( !MWF_Functions::is_empty( $value ) ) {
31
  $defaults = array(
32
+ 'message' => __( 'This is not the format of a date.', 'mw-wp-form' )
33
  );
34
  $options = array_merge( $defaults, $options );
35
  $timestamp = strtotime( $value );
71
  */
72
  public function admin( $key, $value ) {
73
  ?>
74
+ <label><input type="checkbox" <?php checked( $value[$this->getName()], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>]" value="1" /><?php esc_html_e( 'Date', 'mw-wp-form' ); ?></label>
75
  <?php
76
  }
77
  }
classes/validation-rules/class.eq.php CHANGED
@@ -30,7 +30,7 @@ class MW_WP_Form_Validation_Rule_Eq extends MW_WP_Form_Abstract_Validation_Rule
30
  if ( !MWF_Functions::is_empty( $value ) ) {
31
  $defaults = array(
32
  'target' => null,
33
- 'message' => __( 'This is not in agreement.', MWF_Config::DOMAIN )
34
  );
35
  $options = array_merge( $defaults, $options );
36
  $target_value = $this->Data->get( $options['target'] );
@@ -54,7 +54,7 @@ class MW_WP_Form_Validation_Rule_Eq extends MW_WP_Form_Abstract_Validation_Rule
54
  ?>
55
  <table>
56
  <tr>
57
- <td><?php esc_html_e( 'The key at same value', MWF_Config::DOMAIN ); ?></td>
58
  <td><input type="text" value="<?php echo esc_attr( $target ); ?>" name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>][target]" /></td>
59
  </tr>
60
  </table>
30
  if ( !MWF_Functions::is_empty( $value ) ) {
31
  $defaults = array(
32
  'target' => null,
33
+ 'message' => __( 'This is not in agreement.', 'mw-wp-form' )
34
  );
35
  $options = array_merge( $defaults, $options );
36
  $target_value = $this->Data->get( $options['target'] );
54
  ?>
55
  <table>
56
  <tr>
57
+ <td><?php esc_html_e( 'The key at same value', 'mw-wp-form' ); ?></td>
58
  <td><input type="text" value="<?php echo esc_attr( $target ); ?>" name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>][target]" /></td>
59
  </tr>
60
  </table>
classes/validation-rules/class.filesize.php CHANGED
@@ -32,7 +32,7 @@ class MW_WP_Form_Validation_Rule_FileSize extends MW_WP_Form_Abstract_Validation
32
  if ( !empty( $file['size'] ) ) {
33
  $defaults = array(
34
  'bytes' => '0',
35
- 'message' => __( 'This file size is too big.', MWF_Config::DOMAIN )
36
  );
37
  $options = array_merge( $defaults, $options );
38
  if ( !( preg_match( '/^[\d]+$/', $options['bytes'] ) && $options['bytes'] >= $file['size'] ) ) {
@@ -56,8 +56,8 @@ class MW_WP_Form_Validation_Rule_FileSize extends MW_WP_Form_Abstract_Validation
56
  ?>
57
  <table>
58
  <tr>
59
- <td><?php esc_html_e( 'Permitted file size', MWF_Config::DOMAIN ); ?></td>
60
- <td><input type="text" value="<?php echo esc_attr( $bytes ); ?>" name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>][bytes]" /> <span class="mwf_note"><?php esc_html_e( 'bytes', MWF_Config::DOMAIN ); ?></span></td>
61
  </tr>
62
  </table>
63
  <?php
32
  if ( !empty( $file['size'] ) ) {
33
  $defaults = array(
34
  'bytes' => '0',
35
+ 'message' => __( 'This file size is too big.', 'mw-wp-form' )
36
  );
37
  $options = array_merge( $defaults, $options );
38
  if ( !( preg_match( '/^[\d]+$/', $options['bytes'] ) && $options['bytes'] >= $file['size'] ) ) {
56
  ?>
57
  <table>
58
  <tr>
59
+ <td><?php esc_html_e( 'Permitted file size', 'mw-wp-form' ); ?></td>
60
+ <td><input type="text" value="<?php echo esc_attr( $bytes ); ?>" name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>][bytes]" /> <span class="mwf_note"><?php esc_html_e( 'bytes', 'mw-wp-form' ); ?></span></td>
61
  </tr>
62
  </table>
63
  <?php
classes/validation-rules/class.filetype.php CHANGED
@@ -30,7 +30,7 @@ class MW_WP_Form_Validation_Rule_FileType extends MW_WP_Form_Abstract_Validation
30
  if ( !MWF_Functions::is_empty( $value ) ) {
31
  $defaults = array(
32
  'types' => '',
33
- 'message' => __( 'This file is invalid.', MWF_Config::DOMAIN )
34
  );
35
  $options = array_merge( $defaults, $options );
36
  $_types = explode( ',', $options['types'] );
@@ -59,8 +59,8 @@ class MW_WP_Form_Validation_Rule_FileType extends MW_WP_Form_Abstract_Validation
59
  ?>
60
  <table>
61
  <tr>
62
- <td><?php esc_html_e( 'Permitted Extension', MWF_Config::DOMAIN ); ?></td>
63
- <td><input type="text" value="<?php echo esc_attr( $types ); ?>" name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>][types]" /> <span class="mwf_note"><?php esc_html_e( 'Example:jpg or jpg,txt,…', MWF_Config::DOMAIN ); ?></span></td>
64
  </tr>
65
  </table>
66
  <?php
30
  if ( !MWF_Functions::is_empty( $value ) ) {
31
  $defaults = array(
32
  'types' => '',
33
+ 'message' => __( 'This file is invalid.', 'mw-wp-form' )
34
  );
35
  $options = array_merge( $defaults, $options );
36
  $_types = explode( ',', $options['types'] );
59
  ?>
60
  <table>
61
  <tr>
62
+ <td><?php esc_html_e( 'Permitted Extension', 'mw-wp-form' ); ?></td>
63
+ <td><input type="text" value="<?php echo esc_attr( $types ); ?>" name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>][types]" /> <span class="mwf_note"><?php esc_html_e( 'Example:jpg or jpg,txt,…', 'mw-wp-form' ); ?></span></td>
64
  </tr>
65
  </table>
66
  <?php
classes/validation-rules/class.hiragana.php CHANGED
@@ -30,7 +30,7 @@ class MW_WP_Form_Validation_Rule_Hiragana extends MW_WP_Form_Abstract_Validation
30
  if ( !MWF_Functions::is_empty( $value ) ) {
31
  if ( !preg_match( '/^[ぁ-ゞ  ]*?[ぁ-ゞ]+?[ぁ-ゞ  ]*?$/u', $value ) ) {
32
  $defaults = array(
33
- 'message' => __( 'Please enter with a Japanese Hiragana.', MWF_Config::DOMAIN )
34
  );
35
  $options = array_merge( $defaults, $options );
36
  return $options['message'];
@@ -46,7 +46,7 @@ class MW_WP_Form_Validation_Rule_Hiragana extends MW_WP_Form_Abstract_Validation
46
  */
47
  public function admin( $key, $value ) {
48
  ?>
49
- <label><input type="checkbox" <?php checked( $value[$this->getName()], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>]" value="1" /><?php esc_html_e( 'Japanese Hiragana', MWF_Config::DOMAIN ); ?></label>
50
  <?php
51
  }
52
  }
30
  if ( !MWF_Functions::is_empty( $value ) ) {
31
  if ( !preg_match( '/^[ぁ-ゞ  ]*?[ぁ-ゞ]+?[ぁ-ゞ  ]*?$/u', $value ) ) {
32
  $defaults = array(
33
+ 'message' => __( 'Please enter with a Japanese Hiragana.', 'mw-wp-form' )
34
  );
35
  $options = array_merge( $defaults, $options );
36
  return $options['message'];
46
  */
47
  public function admin( $key, $value ) {
48
  ?>
49
+ <label><input type="checkbox" <?php checked( $value[$this->getName()], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>]" value="1" /><?php esc_html_e( 'Japanese Hiragana', 'mw-wp-form' ); ?></label>
50
  <?php
51
  }
52
  }
classes/validation-rules/class.in.php CHANGED
@@ -31,7 +31,7 @@ class MW_WP_Form_Validation_Rule_In extends MW_WP_Form_Abstract_Validation_Rule
31
  if ( !MWF_Functions::is_empty( $value ) ) {
32
  $defaults = array(
33
  'options' => array(),
34
- 'message' => __( 'This value is invalid.', MWF_Config::DOMAIN )
35
  );
36
  $options = array_merge( $defaults, $options );
37
  if ( is_array( $options['options'] ) ) {
31
  if ( !MWF_Functions::is_empty( $value ) ) {
32
  $defaults = array(
33
  'options' => array(),
34
+ 'message' => __( 'This value is invalid.', 'mw-wp-form' )
35
  );
36
  $options = array_merge( $defaults, $options );
37
  if ( is_array( $options['options'] ) ) {
classes/validation-rules/class.kana.php CHANGED
@@ -30,7 +30,7 @@ class MW_WP_Form_Validation_Rule_Kana extends MW_WP_Form_Abstract_Validation_Rul
30
  if ( !MWF_Functions::is_empty( $value ) ) {
31
  if ( !preg_match( '/^[ぁ-ゞァ-ヾ  ]*?[ぁ-ゞァ-ヾ]+?[ぁ-ゞァ-ヾ  ]*?$/u', $value ) ) {
32
  $defaults = array(
33
- 'message' => __( 'Please enter with a Japanese Hiragana or Katakana.', MWF_Config::DOMAIN )
34
  );
35
  $options = array_merge( $defaults, $options );
36
  return $options['message'];
@@ -46,7 +46,7 @@ class MW_WP_Form_Validation_Rule_Kana extends MW_WP_Form_Abstract_Validation_Rul
46
  */
47
  public function admin( $key, $value ) {
48
  ?>
49
- <label><input type="checkbox" <?php checked( $value[$this->getName()], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>]" value="1" /><?php esc_html_e( 'Japanese Hiragana or Katakana', MWF_Config::DOMAIN ); ?></label>
50
  <?php
51
  }
52
  }
30
  if ( !MWF_Functions::is_empty( $value ) ) {
31
  if ( !preg_match( '/^[ぁ-ゞァ-ヾ  ]*?[ぁ-ゞァ-ヾ]+?[ぁ-ゞァ-ヾ  ]*?$/u', $value ) ) {
32
  $defaults = array(
33
+ 'message' => __( 'Please enter with a Japanese Hiragana or Katakana.', 'mw-wp-form' )
34
  );
35
  $options = array_merge( $defaults, $options );
36
  return $options['message'];
46
  */
47
  public function admin( $key, $value ) {
48
  ?>
49
+ <label><input type="checkbox" <?php checked( $value[$this->getName()], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>]" value="1" /><?php esc_html_e( 'Japanese Hiragana or Katakana', 'mw-wp-form' ); ?></label>
50
  <?php
51
  }
52
  }
classes/validation-rules/class.katakana.php CHANGED
@@ -30,7 +30,7 @@ class MW_WP_Form_Validation_Rule_Katakana extends MW_WP_Form_Abstract_Validation
30
  if ( !MWF_Functions::is_empty( $value ) ) {
31
  if ( !preg_match( '/^[ァ-ヾ  ]*?[ァ-ヾ]+?[ァ-ヾ  ]*?$/u', $value ) ) {
32
  $defaults = array(
33
- 'message' => __( 'Please enter with a Japanese Katakana.', MWF_Config::DOMAIN )
34
  );
35
  $options = array_merge( $defaults, $options );
36
  return $options['message'];
@@ -46,7 +46,7 @@ class MW_WP_Form_Validation_Rule_Katakana extends MW_WP_Form_Abstract_Validation
46
  */
47
  public function admin( $key, $value ) {
48
  ?>
49
- <label><input type="checkbox" <?php checked( $value[$this->getName()], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>]" value="1" /><?php esc_html_e( 'Japanese Katakana', MWF_Config::DOMAIN ); ?></label>
50
  <?php
51
  }
52
  }
30
  if ( !MWF_Functions::is_empty( $value ) ) {
31
  if ( !preg_match( '/^[ァ-ヾ  ]*?[ァ-ヾ]+?[ァ-ヾ  ]*?$/u', $value ) ) {
32
  $defaults = array(
33
+ 'message' => __( 'Please enter with a Japanese Katakana.', 'mw-wp-form' )
34
  );
35
  $options = array_merge( $defaults, $options );
36
  return $options['message'];
46
  */
47
  public function admin( $key, $value ) {
48
  ?>
49
+ <label><input type="checkbox" <?php checked( $value[$this->getName()], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>]" value="1" /><?php esc_html_e( 'Japanese Katakana', 'mw-wp-form' ); ?></label>
50
  <?php
51
  }
52
  }
classes/validation-rules/class.mail.php CHANGED
@@ -30,7 +30,7 @@ class MW_WP_Form_Validation_Rule_Mail extends MW_WP_Form_Abstract_Validation_Rul
30
  if ( !MWF_Functions::is_empty( $value ) ) {
31
  if ( !preg_match( '/^[^@]+@([^@^\.]+\.)+[^@^\.]+$/', $value ) ) {
32
  $defaults = array(
33
- 'message' => __( 'This is not the format of a mail address.', MWF_Config::DOMAIN )
34
  );
35
  $options = array_merge( $defaults, $options );
36
  return $options['message'];
@@ -46,7 +46,7 @@ class MW_WP_Form_Validation_Rule_Mail extends MW_WP_Form_Abstract_Validation_Rul
46
  */
47
  public function admin( $key, $value ) {
48
  ?>
49
- <label><input type="checkbox" <?php checked( $value[$this->getName()], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>]" value="1" /><?php esc_html_e( 'E-mail', MWF_Config::DOMAIN ); ?></label>
50
  <?php
51
  }
52
  }
30
  if ( !MWF_Functions::is_empty( $value ) ) {
31
  if ( !preg_match( '/^[^@]+@([^@^\.]+\.)+[^@^\.]+$/', $value ) ) {
32
  $defaults = array(
33
+ 'message' => __( 'This is not the format of a mail address.', 'mw-wp-form' )
34
  );
35
  $options = array_merge( $defaults, $options );
36
  return $options['message'];
46
  */
47
  public function admin( $key, $value ) {
48
  ?>
49
+ <label><input type="checkbox" <?php checked( $value[$this->getName()], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>]" value="1" /><?php esc_html_e( 'E-mail', 'mw-wp-form' ); ?></label>
50
  <?php
51
  }
52
  }
classes/validation-rules/class.minlength.php CHANGED
@@ -31,7 +31,7 @@ class MW_WP_Form_Validation_Rule_MinLength extends MW_WP_Form_Abstract_Validatio
31
  if ( !MWF_Functions::is_empty( $value ) ) {
32
  $defaults = array(
33
  'min' => 0,
34
- 'message' => __( 'The number of characters is a few.', MWF_Config::DOMAIN )
35
  );
36
  $options = array_merge( $defaults, $options );
37
  $length = mb_strlen( $value, get_bloginfo( 'charset' ) );
@@ -55,7 +55,7 @@ class MW_WP_Form_Validation_Rule_MinLength extends MW_WP_Form_Abstract_Validatio
55
  ?>
56
  <table>
57
  <tr>
58
- <td><?php esc_html_e( 'The number of the minimum characters', MWF_Config::DOMAIN ); ?></td>
59
  <td><input type="text" value="<?php echo esc_attr( $min ); ?>" size="3" name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>][min]" /></td>
60
  </tr>
61
  </table>
31
  if ( !MWF_Functions::is_empty( $value ) ) {
32
  $defaults = array(
33
  'min' => 0,
34
+ 'message' => __( 'The number of characters is a few.', 'mw-wp-form' )
35
  );
36
  $options = array_merge( $defaults, $options );
37
  $length = mb_strlen( $value, get_bloginfo( 'charset' ) );
55
  ?>
56
  <table>
57
  <tr>
58
+ <td><?php esc_html_e( 'The number of the minimum characters', 'mw-wp-form' ); ?></td>
59
  <td><input type="text" value="<?php echo esc_attr( $min ); ?>" size="3" name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>][min]" /></td>
60
  </tr>
61
  </table>
classes/validation-rules/class.noempty.php CHANGED
@@ -29,7 +29,7 @@ class MW_WP_Form_Validation_Rule_noEmpty extends MW_WP_Form_Abstract_Validation_
29
  $value = $this->Data->get( $key );
30
  if ( !is_null( $value ) && MWF_Functions::is_empty( $value ) ) {
31
  $defaults = array(
32
- 'message' => __( 'Please enter.', MWF_Config::DOMAIN )
33
  );
34
  $options = array_merge( $defaults, $options );
35
  return $options['message'];
@@ -44,7 +44,7 @@ class MW_WP_Form_Validation_Rule_noEmpty extends MW_WP_Form_Abstract_Validation_
44
  */
45
  public function admin( $key, $value ) {
46
  ?>
47
- <label><input type="checkbox" <?php checked( $value[$this->getName()], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>]" value="1" /><?php esc_html_e( 'No empty', MWF_Config::DOMAIN ); ?></label>
48
  <?php
49
  }
50
  }
29
  $value = $this->Data->get( $key );
30
  if ( !is_null( $value ) && MWF_Functions::is_empty( $value ) ) {
31
  $defaults = array(
32
+ 'message' => __( 'Please enter.', 'mw-wp-form' )
33
  );
34
  $options = array_merge( $defaults, $options );
35
  return $options['message'];
44
  */
45
  public function admin( $key, $value ) {
46
  ?>
47
+ <label><input type="checkbox" <?php checked( $value[$this->getName()], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>]" value="1" /><?php esc_html_e( 'No empty', 'mw-wp-form' ); ?></label>
48
  <?php
49
  }
50
  }
classes/validation-rules/class.nofalse.php CHANGED
@@ -29,7 +29,7 @@ class MW_WP_Form_Validation_Rule_noFalse extends MW_WP_Form_Abstract_Validation_
29
  $value = $this->Data->get( $key );
30
  if ( !is_null( $value ) && empty( $value ) ) {
31
  $defaults = array(
32
- 'message' => __( 'Please enter.', MWF_Config::DOMAIN )
33
  );
34
  $options = array_merge( $defaults, $options );
35
  return $options['message'];
29
  $value = $this->Data->get( $key );
30
  if ( !is_null( $value ) && empty( $value ) ) {
31
  $defaults = array(
32
+ 'message' => __( 'Please enter.', 'mw-wp-form' )
33
  );
34
  $options = array_merge( $defaults, $options );
35
  return $options['message'];
classes/validation-rules/class.numeric.php CHANGED
@@ -30,7 +30,7 @@ class MW_WP_Form_Validation_Rule_Numeric extends MW_WP_Form_Abstract_Validation_
30
  if ( !MWF_Functions::is_empty( $value ) ) {
31
  if ( !preg_match( '/^[0-9]+$/', $value ) ) {
32
  $defaults = array(
33
- 'message' => __( 'Please enter with a half-width number.', MWF_Config::DOMAIN )
34
  );
35
  $options = array_merge( $defaults, $options );
36
  return $options['message'];
@@ -46,7 +46,7 @@ class MW_WP_Form_Validation_Rule_Numeric extends MW_WP_Form_Abstract_Validation_
46
  */
47
  public function admin( $key, $value ) {
48
  ?>
49
- <label><input type="checkbox" <?php checked( $value[$this->getName()], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>]" value="1" /><?php esc_html_e( 'Numeric', MWF_Config::DOMAIN ); ?></label>
50
  <?php
51
  }
52
  }
30
  if ( !MWF_Functions::is_empty( $value ) ) {
31
  if ( !preg_match( '/^[0-9]+$/', $value ) ) {
32
  $defaults = array(
33
+ 'message' => __( 'Please enter with a half-width number.', 'mw-wp-form' )
34
  );
35
  $options = array_merge( $defaults, $options );
36
  return $options['message'];
46
  */
47
  public function admin( $key, $value ) {
48
  ?>
49
+ <label><input type="checkbox" <?php checked( $value[$this->getName()], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>]" value="1" /><?php esc_html_e( 'Numeric', 'mw-wp-form' ); ?></label>
50
  <?php
51
  }
52
  }
classes/validation-rules/class.required.php CHANGED
@@ -32,7 +32,7 @@ class MW_WP_Form_Validation_Rule_Required extends MW_WP_Form_Abstract_Validation
32
  return;
33
  }
34
  $defaults = array(
35
- 'message' => __( 'This is required.', MWF_Config::DOMAIN )
36
  );
37
  $options = array_merge( $defaults, $options );
38
  return $options['message'];
@@ -46,7 +46,7 @@ class MW_WP_Form_Validation_Rule_Required extends MW_WP_Form_Abstract_Validation
46
  */
47
  public function admin( $key, $value ) {
48
  ?>
49
- <label><input type="checkbox" <?php checked( $value[$this->getName()], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>]" value="1" /><?php esc_html_e( 'No empty( with checkbox )', MWF_Config::DOMAIN ); ?></label>
50
  <?php
51
  }
52
  }
32
  return;
33
  }
34
  $defaults = array(
35
+ 'message' => __( 'This is required.', 'mw-wp-form' )
36
  );
37
  $options = array_merge( $defaults, $options );
38
  return $options['message'];
46
  */
47
  public function admin( $key, $value ) {
48
  ?>
49
+ <label><input type="checkbox" <?php checked( $value[$this->getName()], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>]" value="1" /><?php esc_html_e( 'No empty( with checkbox )', 'mw-wp-form' ); ?></label>
50
  <?php
51
  }
52
  }
classes/validation-rules/class.tel.php CHANGED
@@ -29,7 +29,7 @@ class MW_WP_Form_Validation_Rule_Tel extends MW_WP_Form_Abstract_Validation_Rule
29
  $value = $this->Data->get( $key );
30
  if ( !MWF_Functions::is_empty( $value ) ) {
31
  $defaults = array(
32
- 'message' => __( 'This is not the format of a tel number.', MWF_Config::DOMAIN )
33
  );
34
  $options = array_merge( $defaults, $options );
35
  if ( ! (
@@ -53,7 +53,7 @@ class MW_WP_Form_Validation_Rule_Tel extends MW_WP_Form_Abstract_Validation_Rule
53
  */
54
  public function admin( $key, $value ) {
55
  ?>
56
- <label><input type="checkbox" <?php checked( $value[$this->getName()], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>]" value="1" /><?php esc_html_e( 'Tel', MWF_Config::DOMAIN ); ?></label>
57
  <?php
58
  }
59
  }
29
  $value = $this->Data->get( $key );
30
  if ( !MWF_Functions::is_empty( $value ) ) {
31
  $defaults = array(
32
+ 'message' => __( 'This is not the format of a tel number.', 'mw-wp-form' )
33
  );
34
  $options = array_merge( $defaults, $options );
35
  if ( ! (
53
  */
54
  public function admin( $key, $value ) {
55
  ?>
56
+ <label><input type="checkbox" <?php checked( $value[$this->getName()], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>]" value="1" /><?php esc_html_e( 'Tel', 'mw-wp-form' ); ?></label>
57
  <?php
58
  }
59
  }
classes/validation-rules/class.url.php CHANGED
@@ -30,7 +30,7 @@ class MW_WP_Form_Validation_Rule_Url extends MW_WP_Form_Abstract_Validation_Rule
30
  if ( !MWF_Functions::is_empty( $value ) ) {
31
  if ( !preg_match( '/^https{0,1}:\/\/[^\/]+\.[^\.]+/', $value ) ) {
32
  $defaults = array(
33
- 'message' => __( 'This is not the format of a url.', MWF_Config::DOMAIN )
34
  );
35
  $options = array_merge( $defaults, $options );
36
  return $options['message'];
@@ -46,7 +46,7 @@ class MW_WP_Form_Validation_Rule_Url extends MW_WP_Form_Abstract_Validation_Rule
46
  */
47
  public function admin( $key, $value ) {
48
  ?>
49
- <label><input type="checkbox" <?php checked( $value[$this->getName()], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>]" value="1" /><?php echo esc_html_x( 'URL', 'validatioin', MWF_Config::DOMAIN ); ?></label>
50
  <?php
51
  }
52
  }
30
  if ( !MWF_Functions::is_empty( $value ) ) {
31
  if ( !preg_match( '/^https{0,1}:\/\/[^\/]+\.[^\.]+/', $value ) ) {
32
  $defaults = array(
33
+ 'message' => __( 'This is not the format of a url.', 'mw-wp-form' )
34
  );
35
  $options = array_merge( $defaults, $options );
36
  return $options['message'];
46
  */
47
  public function admin( $key, $value ) {
48
  ?>
49
+ <label><input type="checkbox" <?php checked( $value[$this->getName()], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>]" value="1" /><?php echo esc_html_x( 'URL', 'validatioin', 'mw-wp-form' ); ?></label>
50
  <?php
51
  }
52
  }
classes/validation-rules/class.zip.php CHANGED
@@ -29,7 +29,7 @@ class MW_WP_Form_Validation_Rule_Zip extends MW_WP_Form_Abstract_Validation_Rule
29
  $value = $this->Data->get( $key );
30
  if ( !MWF_Functions::is_empty( $value ) ) {
31
  $defaults = array(
32
- 'message' => __( 'This is not the format of a zip code.', MWF_Config::DOMAIN )
33
  );
34
  $options = array_merge( $defaults, $options );
35
  if ( ! (
@@ -49,7 +49,7 @@ class MW_WP_Form_Validation_Rule_Zip extends MW_WP_Form_Abstract_Validation_Rule
49
  */
50
  public function admin( $key, $value ) {
51
  ?>
52
- <label><input type="checkbox" <?php checked( $value[$this->getName()], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>]" value="1" /><?php esc_html_e( 'Zip Code', MWF_Config::DOMAIN ); ?></label>
53
  <?php
54
  }
55
  }
29
  $value = $this->Data->get( $key );
30
  if ( !MWF_Functions::is_empty( $value ) ) {
31
  $defaults = array(
32
+ 'message' => __( 'This is not the format of a zip code.', 'mw-wp-form' )
33
  );
34
  $options = array_merge( $defaults, $options );
35
  if ( ! (
49
  */
50
  public function admin( $key, $value ) {
51
  ?>
52
+ <label><input type="checkbox" <?php checked( $value[$this->getName()], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>]" value="1" /><?php esc_html_e( 'Zip Code', 'mw-wp-form' ); ?></label>
53
  <?php
54
  }
55
  }
css/admin.css CHANGED
@@ -175,7 +175,7 @@ span#formkey_field {
175
  width: 100%;
176
  }
177
  .mwform-dialog textarea {
178
- height: 100px;
179
  }
180
  .mwform-dialog .mwf_note {
181
  display: block;
175
  width: 100%;
176
  }
177
  .mwform-dialog textarea {
178
+ height: 70px;
179
  }
180
  .mwform-dialog .mwf_note {
181
  display: block;
css/style.css CHANGED
@@ -10,9 +10,27 @@
10
  display: block;
11
  }
12
 
13
- .mw_wp_form .vertical-item {
14
  display: block;
15
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
17
  .ui-datepicker .ui-datepicker-title select.ui-datepicker-month,
18
  .ui-datepicker .ui-datepicker-title select.ui-datepicker-year {
@@ -34,3 +52,9 @@
34
  cursor: pointer;
35
  visibility: hidden;
36
  }
 
 
 
 
 
 
10
  display: block;
11
  }
12
 
13
+ .vertical-item {
14
  display: block;
15
  }
16
+ .vertical-item+.vertical-item {
17
+ margin-top: 5px;
18
+ }
19
+ .horizontal-item+.horizontal-item {
20
+ margin-left: 10px;
21
+ }
22
+ .mwform-checkbox-field,
23
+ .mwform-radio-field {
24
+ }
25
+ .mwform-checkbox-field label,
26
+ .mwform-radio-field label {
27
+ font-weight: normal;
28
+ margin-bottom: 0;
29
+ }
30
+ .mwform-checkbox-field input,
31
+ .mwform-radio-field input {
32
+ margin-right: 5px;
33
+ }
34
 
35
  .ui-datepicker .ui-datepicker-title select.ui-datepicker-month,
36
  .ui-datepicker .ui-datepicker-title select.ui-datepicker-year {
52
  cursor: pointer;
53
  visibility: hidden;
54
  }
55
+
56
+ .mwform-tel-field input[type="text"],
57
+ .mwform-zip-field input[type="text"] {
58
+ display: inline-block;
59
+ width: auto;
60
+ }
js/form.js CHANGED
@@ -33,6 +33,10 @@ jQuery( function( $ ) {
33
 
34
  var mw_wp_form_button_no_click = true;
35
  $( '.mw_wp_form input[type="submit"]' ).click( function() {
 
 
 
 
36
  if ( mw_wp_form_button_no_click ) {
37
  mw_wp_form_button_no_click = false;
38
  } else {
@@ -40,4 +44,3 @@ jQuery( function( $ ) {
40
  }
41
  } );
42
  } );
43
-
33
 
34
  var mw_wp_form_button_no_click = true;
35
  $( '.mw_wp_form input[type="submit"]' ).click( function() {
36
+ var formElement = $( this ).closest( 'form' )[0];
37
+ if ( formElement && formElement.checkValidity && !formElement.checkValidity() ) {
38
+ return;
39
+ }
40
  if ( mw_wp_form_button_no_click ) {
41
  mw_wp_form_button_no_click = false;
42
  } else {
44
  }
45
  } );
46
  } );
 
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 2.5.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mw-wp-form\n"
7
- "POT-Creation-Date: 2015-09-01 15:50+0900\n"
8
- "PO-Revision-Date: 2015-09-01 15:54+0900\n"
9
  "Last-Translator: inc2734 <inc@2inc.org>\n"
10
  "Language-Team: Takashi Kitajima <inc@2inc.org>\n"
11
  "Language: ja\n"
@@ -83,14 +83,14 @@ msgid "Akismet Error"
83
  msgstr "Akismetエラー"
84
 
85
  #: classes/form-fields/class.back-button.php:30
86
- #: classes/form-fields/class.back-button.php:41
87
  msgid "Back"
88
  msgstr "戻る"
89
 
90
- #: classes/form-fields/class.back-button.php:69
91
- #: classes/form-fields/class.button.php:76
92
- #: classes/form-fields/class.confirm-button.php:69
93
- #: classes/form-fields/class.submit.php:76
94
  msgid "String on the button"
95
  msgstr "ボタンに表示する文字列"
96
 
@@ -102,110 +102,110 @@ msgstr "ボタン"
102
  msgid "Checkbox"
103
  msgstr "チェックボックス"
104
 
105
- #: classes/form-fields/class.checkbox.php:117
106
- #: classes/form-fields/class.radio.php:113
107
- #: classes/form-fields/class.select.php:109
108
  msgid "Choices"
109
  msgstr "選択肢"
110
 
111
- #: classes/form-fields/class.checkbox.php:121
112
  #: classes/form-fields/class.error.php:78
113
- #: classes/form-fields/class.radio.php:117
114
- #: classes/form-fields/class.select.php:113
115
  msgid "Input one line about one item."
116
  msgstr "1項目につき1行で入力してください。"
117
 
118
- #: classes/form-fields/class.checkbox.php:122
119
- #: classes/form-fields/class.radio.php:118
120
- #: classes/form-fields/class.select.php:114
121
  msgid "Example: value1&crarr;value2 or key1:value1&crarr;key2:value2"
122
  msgstr "例:値1&crarr;値2 もしくは キー1:値1&crarr;キー2:値2"
123
 
124
- #: classes/form-fields/class.checkbox.php:123
125
- #: classes/form-fields/class.radio.php:119
126
- #: classes/form-fields/class.select.php:115
127
  msgid ""
128
  "You can split the post value and display value by \":\". But display value "
129
  "is sent in e-mail."
130
  msgstr ""
131
  "送信値と表示値を「:」で分割できます。ただし、メールでは表示値が送信されます。"
132
 
133
- #: classes/form-fields/class.checkbox.php:124
134
- #: classes/form-fields/class.radio.php:120
135
- #: classes/form-fields/class.select.php:116
136
  msgid "When you want to use \":\", please enter \"::\"."
137
  msgstr "「:」を使いたいときは「::」と入力してください。"
138
 
139
- #: classes/form-fields/class.checkbox.php:128
140
- #: classes/form-fields/class.radio.php:124
141
- #: classes/form-fields/class.select.php:120
142
  msgid "Send value by e-mail"
143
  msgstr "メールで送信する値"
144
 
145
- #: classes/form-fields/class.checkbox.php:131
146
- #: classes/form-fields/class.radio.php:127
147
- #: classes/form-fields/class.select.php:123
148
  msgid ""
149
  "Send post value when you split the post value and display value by \":\" in "
150
  "choices."
151
  msgstr "選択肢を「:」で送信値と表示値に分割したとき、送信値をメールで送信"
152
 
153
- #: classes/form-fields/class.checkbox.php:134
154
- #: classes/form-fields/class.datepicker.php:138
155
- #: classes/form-fields/class.email.php:120
156
  #: classes/form-fields/class.hidden.php:84
157
- #: classes/form-fields/class.password.php:112
158
- #: classes/form-fields/class.radio.php:130
159
- #: classes/form-fields/class.select.php:126
160
- #: classes/form-fields/class.text.php:120
161
- #: classes/form-fields/class.textarea.php:114
162
- #: classes/form-fields/class.url.php:120
163
  msgid "Default value"
164
  msgstr "初期値"
165
 
166
- #: classes/form-fields/class.checkbox.php:139
167
  msgid "Separator string"
168
  msgstr "区切り文字"
169
 
170
- #: classes/form-fields/class.checkbox.php:144
171
- #: classes/form-fields/class.radio.php:135
172
  msgid "Display method"
173
  msgstr "表示方法"
174
 
175
- #: classes/form-fields/class.checkbox.php:146
176
- #: classes/form-fields/class.radio.php:137
177
  msgid "Arranged vertically."
178
  msgstr "垂直に配置する"
179
 
180
- #: classes/form-fields/class.checkbox.php:149
181
- #: classes/form-fields/class.datepicker.php:148
182
- #: classes/form-fields/class.email.php:130
183
- #: classes/form-fields/class.file.php:115
184
- #: classes/form-fields/class.image.php:119
185
- #: classes/form-fields/class.number.php:126
186
- #: classes/form-fields/class.password.php:122
187
- #: classes/form-fields/class.radio.php:140
188
- #: classes/form-fields/class.range.php:119
189
- #: classes/form-fields/class.select.php:131
190
- #: classes/form-fields/class.tel.php:102 classes/form-fields/class.text.php:130
191
- #: classes/form-fields/class.textarea.php:124
192
- #: classes/form-fields/class.url.php:130 classes/form-fields/class.zip.php:101
193
  msgid "Dsiplay error"
194
  msgstr "エラー表示"
195
 
196
- #: classes/form-fields/class.checkbox.php:151
197
- #: classes/form-fields/class.datepicker.php:150
198
- #: classes/form-fields/class.email.php:132
199
- #: classes/form-fields/class.file.php:117
200
- #: classes/form-fields/class.image.php:121
201
- #: classes/form-fields/class.number.php:128
202
- #: classes/form-fields/class.password.php:124
203
- #: classes/form-fields/class.radio.php:142
204
- #: classes/form-fields/class.range.php:121
205
- #: classes/form-fields/class.select.php:133
206
- #: classes/form-fields/class.tel.php:104 classes/form-fields/class.text.php:132
207
- #: classes/form-fields/class.textarea.php:126
208
- #: classes/form-fields/class.url.php:132 classes/form-fields/class.zip.php:103
209
  msgid "Don't display error."
210
  msgstr "エラーを表示しない"
211
 
@@ -213,8 +213,8 @@ msgstr "エラーを表示しない"
213
  msgid "Confirm Button"
214
  msgstr "確認ボタン"
215
 
216
- #: classes/form-fields/class.confirm-button.php:41
217
- #: classes/form-fields/class.submit-button.php:42
218
  msgid "Confirm"
219
  msgstr "確認画面へ"
220
 
@@ -226,15 +226,15 @@ msgstr "日付"
226
  msgid "Email"
227
  msgstr "Email フィールド"
228
 
229
- #: classes/form-fields/class.email.php:135
230
- #: classes/form-fields/class.tel.php:107 classes/form-fields/class.text.php:135
231
- #: classes/form-fields/class.url.php:135 classes/form-fields/class.zip.php:106
232
  msgid "Convert half alphanumeric"
233
  msgstr "半角英数字に変換"
234
 
235
- #: classes/form-fields/class.email.php:137
236
- #: classes/form-fields/class.tel.php:109 classes/form-fields/class.url.php:137
237
- #: classes/form-fields/class.zip.php:108
238
  msgid "Don't Convert."
239
  msgstr "変換しない"
240
 
@@ -250,7 +250,7 @@ msgstr "エラーを表示したい要素のname属性"
250
  msgid "File"
251
  msgstr "ファイルフィールド"
252
 
253
- #: classes/form-fields/class.file.php:68 classes/form-fields/class.file.php:90
254
  msgid "Uploaded."
255
  msgstr "アップロードしました。"
256
 
@@ -294,16 +294,16 @@ msgstr "セレクトボックス"
294
  msgid "Confirm &amp; Submit"
295
  msgstr "確認・送信"
296
 
297
- #: classes/form-fields/class.submit-button.php:43
298
- #: classes/form-fields/class.submit.php:42
299
  msgid "Send"
300
  msgstr "送信する"
301
 
302
- #: classes/form-fields/class.submit-button.php:80
303
  msgid "String on the confirm button"
304
  msgstr "確認ボタンに表示する文字列"
305
 
306
- #: classes/form-fields/class.submit-button.php:85
307
  msgid "String on the submit button"
308
  msgstr "送信ボタンに表示する文字列"
309
 
@@ -320,7 +320,7 @@ msgstr "電話番号"
320
  msgid "Text"
321
  msgstr "テキストフィールド"
322
 
323
- #: classes/form-fields/class.text.php:137
324
  msgid "Convert."
325
  msgstr "変換する"
326
 
@@ -334,7 +334,7 @@ msgid "URL"
334
  msgstr "URL フィールド"
335
 
336
  #: classes/form-fields/class.zip.php:30
337
- #: classes/validation-rules/class.zip.php:49
338
  msgid "Zip Code"
339
  msgstr "郵便番号"
340
 
@@ -395,7 +395,7 @@ msgstr "文字数の範囲"
395
  msgid "This is not the format of a date."
396
  msgstr "日付の形式ではありません。"
397
 
398
- #: classes/validation-rules/class.date.php:60
399
  msgid "Date"
400
  msgstr "日付"
401
 
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 2.6.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mw-wp-form\n"
7
+ "POT-Creation-Date: 2015-11-14 02:10+0900\n"
8
+ "PO-Revision-Date: 2015-11-14 02:11+0900\n"
9
  "Last-Translator: inc2734 <inc@2inc.org>\n"
10
  "Language-Team: Takashi Kitajima <inc@2inc.org>\n"
11
  "Language: ja\n"
83
  msgstr "Akismetエラー"
84
 
85
  #: classes/form-fields/class.back-button.php:30
86
+ #: classes/form-fields/class.back-button.php:42
87
  msgid "Back"
88
  msgstr "戻る"
89
 
90
+ #: classes/form-fields/class.back-button.php:77
91
+ #: classes/form-fields/class.button.php:84
92
+ #: classes/form-fields/class.confirm-button.php:77
93
+ #: classes/form-fields/class.submit.php:84
94
  msgid "String on the button"
95
  msgstr "ボタンに表示する文字列"
96
 
102
  msgid "Checkbox"
103
  msgstr "チェックボックス"
104
 
105
+ #: classes/form-fields/class.checkbox.php:124
106
+ #: classes/form-fields/class.radio.php:120
107
+ #: classes/form-fields/class.select.php:116
108
  msgid "Choices"
109
  msgstr "選択肢"
110
 
111
+ #: classes/form-fields/class.checkbox.php:128
112
  #: classes/form-fields/class.error.php:78
113
+ #: classes/form-fields/class.radio.php:124
114
+ #: classes/form-fields/class.select.php:120
115
  msgid "Input one line about one item."
116
  msgstr "1項目につき1行で入力してください。"
117
 
118
+ #: classes/form-fields/class.checkbox.php:129
119
+ #: classes/form-fields/class.radio.php:125
120
+ #: classes/form-fields/class.select.php:121
121
  msgid "Example: value1&crarr;value2 or key1:value1&crarr;key2:value2"
122
  msgstr "例:値1&crarr;値2 もしくは キー1:値1&crarr;キー2:値2"
123
 
124
+ #: classes/form-fields/class.checkbox.php:130
125
+ #: classes/form-fields/class.radio.php:126
126
+ #: classes/form-fields/class.select.php:122
127
  msgid ""
128
  "You can split the post value and display value by \":\". But display value "
129
  "is sent in e-mail."
130
  msgstr ""
131
  "送信値と表示値を「:」で分割できます。ただし、メールでは表示値が送信されます。"
132
 
133
+ #: classes/form-fields/class.checkbox.php:131
134
+ #: classes/form-fields/class.radio.php:127
135
+ #: classes/form-fields/class.select.php:123
136
  msgid "When you want to use \":\", please enter \"::\"."
137
  msgstr "「:」を使いたいときは「::」と入力してください。"
138
 
139
+ #: classes/form-fields/class.checkbox.php:135
140
+ #: classes/form-fields/class.radio.php:131
141
+ #: classes/form-fields/class.select.php:127
142
  msgid "Send value by e-mail"
143
  msgstr "メールで送信する値"
144
 
145
+ #: classes/form-fields/class.checkbox.php:138
146
+ #: classes/form-fields/class.radio.php:134
147
+ #: classes/form-fields/class.select.php:130
148
  msgid ""
149
  "Send post value when you split the post value and display value by \":\" in "
150
  "choices."
151
  msgstr "選択肢を「:」で送信値と表示値に分割したとき、送信値をメールで送信"
152
 
153
+ #: classes/form-fields/class.checkbox.php:141
154
+ #: classes/form-fields/class.datepicker.php:145
155
+ #: classes/form-fields/class.email.php:127
156
  #: classes/form-fields/class.hidden.php:84
157
+ #: classes/form-fields/class.password.php:119
158
+ #: classes/form-fields/class.radio.php:137
159
+ #: classes/form-fields/class.select.php:133
160
+ #: classes/form-fields/class.text.php:127
161
+ #: classes/form-fields/class.textarea.php:121
162
+ #: classes/form-fields/class.url.php:127
163
  msgid "Default value"
164
  msgstr "初期値"
165
 
166
+ #: classes/form-fields/class.checkbox.php:146
167
  msgid "Separator string"
168
  msgstr "区切り文字"
169
 
170
+ #: classes/form-fields/class.checkbox.php:151
171
+ #: classes/form-fields/class.radio.php:142
172
  msgid "Display method"
173
  msgstr "表示方法"
174
 
175
+ #: classes/form-fields/class.checkbox.php:153
176
+ #: classes/form-fields/class.radio.php:144
177
  msgid "Arranged vertically."
178
  msgstr "垂直に配置する"
179
 
180
+ #: classes/form-fields/class.checkbox.php:156
181
+ #: classes/form-fields/class.datepicker.php:155
182
+ #: classes/form-fields/class.email.php:137
183
+ #: classes/form-fields/class.file.php:122
184
+ #: classes/form-fields/class.image.php:126
185
+ #: classes/form-fields/class.number.php:133
186
+ #: classes/form-fields/class.password.php:129
187
+ #: classes/form-fields/class.radio.php:147
188
+ #: classes/form-fields/class.range.php:126
189
+ #: classes/form-fields/class.select.php:138
190
+ #: classes/form-fields/class.tel.php:109 classes/form-fields/class.text.php:137
191
+ #: classes/form-fields/class.textarea.php:131
192
+ #: classes/form-fields/class.url.php:137 classes/form-fields/class.zip.php:108
193
  msgid "Dsiplay error"
194
  msgstr "エラー表示"
195
 
196
+ #: classes/form-fields/class.checkbox.php:158
197
+ #: classes/form-fields/class.datepicker.php:157
198
+ #: classes/form-fields/class.email.php:139
199
+ #: classes/form-fields/class.file.php:124
200
+ #: classes/form-fields/class.image.php:128
201
+ #: classes/form-fields/class.number.php:135
202
+ #: classes/form-fields/class.password.php:131
203
+ #: classes/form-fields/class.radio.php:149
204
+ #: classes/form-fields/class.range.php:128
205
+ #: classes/form-fields/class.select.php:140
206
+ #: classes/form-fields/class.tel.php:111 classes/form-fields/class.text.php:139
207
+ #: classes/form-fields/class.textarea.php:133
208
+ #: classes/form-fields/class.url.php:139 classes/form-fields/class.zip.php:110
209
  msgid "Don't display error."
210
  msgstr "エラーを表示しない"
211
 
213
  msgid "Confirm Button"
214
  msgstr "確認ボタン"
215
 
216
+ #: classes/form-fields/class.confirm-button.php:42
217
+ #: classes/form-fields/class.submit-button.php:43
218
  msgid "Confirm"
219
  msgstr "確認画面へ"
220
 
226
  msgid "Email"
227
  msgstr "Email フィールド"
228
 
229
+ #: classes/form-fields/class.email.php:142
230
+ #: classes/form-fields/class.tel.php:114 classes/form-fields/class.text.php:142
231
+ #: classes/form-fields/class.url.php:142 classes/form-fields/class.zip.php:113
232
  msgid "Convert half alphanumeric"
233
  msgstr "半角英数字に変換"
234
 
235
+ #: classes/form-fields/class.email.php:144
236
+ #: classes/form-fields/class.tel.php:116 classes/form-fields/class.url.php:144
237
+ #: classes/form-fields/class.zip.php:115
238
  msgid "Don't Convert."
239
  msgstr "変換しない"
240
 
250
  msgid "File"
251
  msgstr "ファイルフィールド"
252
 
253
+ #: classes/form-fields/class.file.php:70 classes/form-fields/class.file.php:92
254
  msgid "Uploaded."
255
  msgstr "アップロードしました。"
256
 
294
  msgid "Confirm &amp; Submit"
295
  msgstr "確認・送信"
296
 
297
+ #: classes/form-fields/class.submit-button.php:44
298
+ #: classes/form-fields/class.submit.php:43
299
  msgid "Send"
300
  msgstr "送信する"
301
 
302
+ #: classes/form-fields/class.submit-button.php:92
303
  msgid "String on the confirm button"
304
  msgstr "確認ボタンに表示する文字列"
305
 
306
+ #: classes/form-fields/class.submit-button.php:97
307
  msgid "String on the submit button"
308
  msgstr "送信ボタンに表示する文字列"
309
 
320
  msgid "Text"
321
  msgstr "テキストフィールド"
322
 
323
+ #: classes/form-fields/class.text.php:144
324
  msgid "Convert."
325
  msgstr "変換する"
326
 
334
  msgstr "URL フィールド"
335
 
336
  #: classes/form-fields/class.zip.php:30
337
+ #: classes/validation-rules/class.zip.php:52
338
  msgid "Zip Code"
339
  msgstr "郵便番号"
340
 
395
  msgid "This is not the format of a date."
396
  msgstr "日付の形式ではありません。"
397
 
398
+ #: classes/validation-rules/class.date.php:74
399
  msgid "Date"
400
  msgstr "日付"
401
 
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 2.5.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mw-wp-form\n"
7
- "POT-Creation-Date: 2015-09-01 06:49:06+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -76,14 +76,14 @@ msgid "Akismet Error"
76
  msgstr ""
77
 
78
  #: classes/form-fields/class.back-button.php:30
79
- #: classes/form-fields/class.back-button.php:41
80
  msgid "Back"
81
  msgstr ""
82
 
83
- #: classes/form-fields/class.back-button.php:69
84
- #: classes/form-fields/class.button.php:76
85
- #: classes/form-fields/class.confirm-button.php:69
86
- #: classes/form-fields/class.submit.php:76
87
  msgid "String on the button"
88
  msgstr ""
89
 
@@ -95,111 +95,111 @@ msgstr ""
95
  msgid "Checkbox"
96
  msgstr ""
97
 
98
- #: classes/form-fields/class.checkbox.php:117
99
- #: classes/form-fields/class.radio.php:113
100
- #: classes/form-fields/class.select.php:109
101
  msgid "Choices"
102
  msgstr ""
103
 
104
- #: classes/form-fields/class.checkbox.php:121
105
  #: classes/form-fields/class.error.php:78
106
- #: classes/form-fields/class.radio.php:117
107
- #: classes/form-fields/class.select.php:113
108
  msgid "Input one line about one item."
109
  msgstr ""
110
 
111
- #: classes/form-fields/class.checkbox.php:122
112
- #: classes/form-fields/class.radio.php:118
113
- #: classes/form-fields/class.select.php:114
114
  msgid "Example: value1&crarr;value2 or key1:value1&crarr;key2:value2"
115
  msgstr ""
116
 
117
- #: classes/form-fields/class.checkbox.php:123
118
- #: classes/form-fields/class.radio.php:119
119
- #: classes/form-fields/class.select.php:115
120
  msgid ""
121
  "You can split the post value and display value by \":\". But display value "
122
  "is sent in e-mail."
123
  msgstr ""
124
 
125
- #: classes/form-fields/class.checkbox.php:124
126
- #: classes/form-fields/class.radio.php:120
127
- #: classes/form-fields/class.select.php:116
128
  msgid "When you want to use \":\", please enter \"::\"."
129
  msgstr ""
130
 
131
- #: classes/form-fields/class.checkbox.php:128
132
- #: classes/form-fields/class.radio.php:124
133
- #: classes/form-fields/class.select.php:120
134
  msgid "Send value by e-mail"
135
  msgstr ""
136
 
137
- #: classes/form-fields/class.checkbox.php:131
138
- #: classes/form-fields/class.radio.php:127
139
- #: classes/form-fields/class.select.php:123
140
  msgid ""
141
  "Send post value when you split the post value and display value by \":\" in "
142
  "choices."
143
  msgstr ""
144
 
145
- #: classes/form-fields/class.checkbox.php:134
146
- #: classes/form-fields/class.datepicker.php:138
147
- #: classes/form-fields/class.email.php:120
148
  #: classes/form-fields/class.hidden.php:84
149
- #: classes/form-fields/class.password.php:112
150
- #: classes/form-fields/class.radio.php:130
151
- #: classes/form-fields/class.select.php:126
152
- #: classes/form-fields/class.text.php:120
153
- #: classes/form-fields/class.textarea.php:114
154
- #: classes/form-fields/class.url.php:120
155
  msgid "Default value"
156
  msgstr ""
157
 
158
- #: classes/form-fields/class.checkbox.php:139
159
  msgid "Separator string"
160
  msgstr ""
161
 
162
- #: classes/form-fields/class.checkbox.php:144
163
- #: classes/form-fields/class.radio.php:135
164
  msgid "Display method"
165
  msgstr ""
166
 
167
- #: classes/form-fields/class.checkbox.php:146
168
- #: classes/form-fields/class.radio.php:137
169
  msgid "Arranged vertically."
170
  msgstr ""
171
 
172
- #: classes/form-fields/class.checkbox.php:149
173
- #: classes/form-fields/class.datepicker.php:148
174
- #: classes/form-fields/class.email.php:130
175
- #: classes/form-fields/class.file.php:115
176
- #: classes/form-fields/class.image.php:119
177
- #: classes/form-fields/class.number.php:126
178
- #: classes/form-fields/class.password.php:122
179
- #: classes/form-fields/class.radio.php:140
180
- #: classes/form-fields/class.range.php:119
181
- #: classes/form-fields/class.select.php:131
182
- #: classes/form-fields/class.tel.php:102
183
- #: classes/form-fields/class.text.php:130
184
- #: classes/form-fields/class.textarea.php:124
185
- #: classes/form-fields/class.url.php:130 classes/form-fields/class.zip.php:101
186
  msgid "Dsiplay error"
187
  msgstr ""
188
 
189
- #: classes/form-fields/class.checkbox.php:151
190
- #: classes/form-fields/class.datepicker.php:150
191
- #: classes/form-fields/class.email.php:132
192
- #: classes/form-fields/class.file.php:117
193
- #: classes/form-fields/class.image.php:121
194
- #: classes/form-fields/class.number.php:128
195
- #: classes/form-fields/class.password.php:124
196
- #: classes/form-fields/class.radio.php:142
197
- #: classes/form-fields/class.range.php:121
198
- #: classes/form-fields/class.select.php:133
199
- #: classes/form-fields/class.tel.php:104
200
- #: classes/form-fields/class.text.php:132
201
- #: classes/form-fields/class.textarea.php:126
202
- #: classes/form-fields/class.url.php:132 classes/form-fields/class.zip.php:103
203
  msgid "Don't display error."
204
  msgstr ""
205
 
@@ -207,8 +207,8 @@ msgstr ""
207
  msgid "Confirm Button"
208
  msgstr ""
209
 
210
- #: classes/form-fields/class.confirm-button.php:41
211
- #: classes/form-fields/class.submit-button.php:42
212
  msgid "Confirm"
213
  msgstr ""
214
 
@@ -220,16 +220,16 @@ msgstr ""
220
  msgid "Email"
221
  msgstr ""
222
 
223
- #: classes/form-fields/class.email.php:135
224
- #: classes/form-fields/class.tel.php:107
225
- #: classes/form-fields/class.text.php:135
226
- #: classes/form-fields/class.url.php:135 classes/form-fields/class.zip.php:106
227
  msgid "Convert half alphanumeric"
228
  msgstr ""
229
 
230
- #: classes/form-fields/class.email.php:137
231
- #: classes/form-fields/class.tel.php:109 classes/form-fields/class.url.php:137
232
- #: classes/form-fields/class.zip.php:108
233
  msgid "Don't Convert."
234
  msgstr ""
235
 
@@ -245,7 +245,7 @@ msgstr ""
245
  msgid "File"
246
  msgstr ""
247
 
248
- #: classes/form-fields/class.file.php:68 classes/form-fields/class.file.php:90
249
  msgid "Uploaded."
250
  msgstr ""
251
 
@@ -289,16 +289,16 @@ msgstr ""
289
  msgid "Confirm &amp; Submit"
290
  msgstr ""
291
 
292
- #: classes/form-fields/class.submit-button.php:43
293
- #: classes/form-fields/class.submit.php:42
294
  msgid "Send"
295
  msgstr ""
296
 
297
- #: classes/form-fields/class.submit-button.php:80
298
  msgid "String on the confirm button"
299
  msgstr ""
300
 
301
- #: classes/form-fields/class.submit-button.php:85
302
  msgid "String on the submit button"
303
  msgstr ""
304
 
@@ -315,7 +315,7 @@ msgstr ""
315
  msgid "Text"
316
  msgstr ""
317
 
318
- #: classes/form-fields/class.text.php:137
319
  msgid "Convert."
320
  msgstr ""
321
 
@@ -329,7 +329,7 @@ msgid "URL"
329
  msgstr ""
330
 
331
  #: classes/form-fields/class.zip.php:30
332
- #: classes/validation-rules/class.zip.php:49
333
  msgid "Zip Code"
334
  msgstr ""
335
 
@@ -390,7 +390,7 @@ msgstr ""
390
  msgid "This is not the format of a date."
391
  msgstr ""
392
 
393
- #: classes/validation-rules/class.date.php:60
394
  msgid "Date"
395
  msgstr ""
396
 
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 2.5.4\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mw-wp-form\n"
7
+ "POT-Creation-Date: 2015-11-13 17:09:55+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
76
  msgstr ""
77
 
78
  #: classes/form-fields/class.back-button.php:30
79
+ #: classes/form-fields/class.back-button.php:42
80
  msgid "Back"
81
  msgstr ""
82
 
83
+ #: classes/form-fields/class.back-button.php:77
84
+ #: classes/form-fields/class.button.php:84
85
+ #: classes/form-fields/class.confirm-button.php:77
86
+ #: classes/form-fields/class.submit.php:84
87
  msgid "String on the button"
88
  msgstr ""
89
 
95
  msgid "Checkbox"
96
  msgstr ""
97
 
98
+ #: classes/form-fields/class.checkbox.php:124
99
+ #: classes/form-fields/class.radio.php:120
100
+ #: classes/form-fields/class.select.php:116
101
  msgid "Choices"
102
  msgstr ""
103
 
104
+ #: classes/form-fields/class.checkbox.php:128
105
  #: classes/form-fields/class.error.php:78
106
+ #: classes/form-fields/class.radio.php:124
107
+ #: classes/form-fields/class.select.php:120
108
  msgid "Input one line about one item."
109
  msgstr ""
110
 
111
+ #: classes/form-fields/class.checkbox.php:129
112
+ #: classes/form-fields/class.radio.php:125
113
+ #: classes/form-fields/class.select.php:121
114
  msgid "Example: value1&crarr;value2 or key1:value1&crarr;key2:value2"
115
  msgstr ""
116
 
117
+ #: classes/form-fields/class.checkbox.php:130
118
+ #: classes/form-fields/class.radio.php:126
119
+ #: classes/form-fields/class.select.php:122
120
  msgid ""
121
  "You can split the post value and display value by \":\". But display value "
122
  "is sent in e-mail."
123
  msgstr ""
124
 
125
+ #: classes/form-fields/class.checkbox.php:131
126
+ #: classes/form-fields/class.radio.php:127
127
+ #: classes/form-fields/class.select.php:123
128
  msgid "When you want to use \":\", please enter \"::\"."
129
  msgstr ""
130
 
131
+ #: classes/form-fields/class.checkbox.php:135
132
+ #: classes/form-fields/class.radio.php:131
133
+ #: classes/form-fields/class.select.php:127
134
  msgid "Send value by e-mail"
135
  msgstr ""
136
 
137
+ #: classes/form-fields/class.checkbox.php:138
138
+ #: classes/form-fields/class.radio.php:134
139
+ #: classes/form-fields/class.select.php:130
140
  msgid ""
141
  "Send post value when you split the post value and display value by \":\" in "
142
  "choices."
143
  msgstr ""
144
 
145
+ #: classes/form-fields/class.checkbox.php:141
146
+ #: classes/form-fields/class.datepicker.php:145
147
+ #: classes/form-fields/class.email.php:127
148
  #: classes/form-fields/class.hidden.php:84
149
+ #: classes/form-fields/class.password.php:119
150
+ #: classes/form-fields/class.radio.php:137
151
+ #: classes/form-fields/class.select.php:133
152
+ #: classes/form-fields/class.text.php:127
153
+ #: classes/form-fields/class.textarea.php:121
154
+ #: classes/form-fields/class.url.php:127
155
  msgid "Default value"
156
  msgstr ""
157
 
158
+ #: classes/form-fields/class.checkbox.php:146
159
  msgid "Separator string"
160
  msgstr ""
161
 
162
+ #: classes/form-fields/class.checkbox.php:151
163
+ #: classes/form-fields/class.radio.php:142
164
  msgid "Display method"
165
  msgstr ""
166
 
167
+ #: classes/form-fields/class.checkbox.php:153
168
+ #: classes/form-fields/class.radio.php:144
169
  msgid "Arranged vertically."
170
  msgstr ""
171
 
172
+ #: classes/form-fields/class.checkbox.php:156
173
+ #: classes/form-fields/class.datepicker.php:155
174
+ #: classes/form-fields/class.email.php:137
175
+ #: classes/form-fields/class.file.php:122
176
+ #: classes/form-fields/class.image.php:126
177
+ #: classes/form-fields/class.number.php:133
178
+ #: classes/form-fields/class.password.php:129
179
+ #: classes/form-fields/class.radio.php:147
180
+ #: classes/form-fields/class.range.php:126
181
+ #: classes/form-fields/class.select.php:138
182
+ #: classes/form-fields/class.tel.php:109
183
+ #: classes/form-fields/class.text.php:137
184
+ #: classes/form-fields/class.textarea.php:131
185
+ #: classes/form-fields/class.url.php:137 classes/form-fields/class.zip.php:108
186
  msgid "Dsiplay error"
187
  msgstr ""
188
 
189
+ #: classes/form-fields/class.checkbox.php:158
190
+ #: classes/form-fields/class.datepicker.php:157
191
+ #: classes/form-fields/class.email.php:139
192
+ #: classes/form-fields/class.file.php:124
193
+ #: classes/form-fields/class.image.php:128
194
+ #: classes/form-fields/class.number.php:135
195
+ #: classes/form-fields/class.password.php:131
196
+ #: classes/form-fields/class.radio.php:149
197
+ #: classes/form-fields/class.range.php:128
198
+ #: classes/form-fields/class.select.php:140
199
+ #: classes/form-fields/class.tel.php:111
200
+ #: classes/form-fields/class.text.php:139
201
+ #: classes/form-fields/class.textarea.php:133
202
+ #: classes/form-fields/class.url.php:139 classes/form-fields/class.zip.php:110
203
  msgid "Don't display error."
204
  msgstr ""
205
 
207
  msgid "Confirm Button"
208
  msgstr ""
209
 
210
+ #: classes/form-fields/class.confirm-button.php:42
211
+ #: classes/form-fields/class.submit-button.php:43
212
  msgid "Confirm"
213
  msgstr ""
214
 
220
  msgid "Email"
221
  msgstr ""
222
 
223
+ #: classes/form-fields/class.email.php:142
224
+ #: classes/form-fields/class.tel.php:114
225
+ #: classes/form-fields/class.text.php:142
226
+ #: classes/form-fields/class.url.php:142 classes/form-fields/class.zip.php:113
227
  msgid "Convert half alphanumeric"
228
  msgstr ""
229
 
230
+ #: classes/form-fields/class.email.php:144
231
+ #: classes/form-fields/class.tel.php:116 classes/form-fields/class.url.php:144
232
+ #: classes/form-fields/class.zip.php:115
233
  msgid "Don't Convert."
234
  msgstr ""
235
 
245
  msgid "File"
246
  msgstr ""
247
 
248
+ #: classes/form-fields/class.file.php:70 classes/form-fields/class.file.php:92
249
  msgid "Uploaded."
250
  msgstr ""
251
 
289
  msgid "Confirm &amp; Submit"
290
  msgstr ""
291
 
292
+ #: classes/form-fields/class.submit-button.php:44
293
+ #: classes/form-fields/class.submit.php:43
294
  msgid "Send"
295
  msgstr ""
296
 
297
+ #: classes/form-fields/class.submit-button.php:92
298
  msgid "String on the confirm button"
299
  msgstr ""
300
 
301
+ #: classes/form-fields/class.submit-button.php:97
302
  msgid "String on the submit button"
303
  msgstr ""
304
 
315
  msgid "Text"
316
  msgstr ""
317
 
318
+ #: classes/form-fields/class.text.php:144
319
  msgid "Convert."
320
  msgstr ""
321
 
329
  msgstr ""
330
 
331
  #: classes/form-fields/class.zip.php:30
332
+ #: classes/validation-rules/class.zip.php:52
333
  msgid "Zip Code"
334
  msgstr ""
335
 
390
  msgid "This is not the format of a date."
391
  msgstr ""
392
 
393
+ #: classes/validation-rules/class.date.php:74
394
  msgid "Date"
395
  msgstr ""
396
 
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 is shortcode base contact form plugin. This plugin have many feature. For example you can use many validation rules, contact data saving, and chart aggregation using saved contact data.
6
- * Version: 2.5.3
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : September 25, 2012
10
- * Modified: October 16, 2015
11
  * Text Domain: mw-wp-form
12
  * Domain Path: /languages/
13
  * License: GPLv2 or later
@@ -118,7 +118,7 @@ class MW_WP_Form {
118
  * initialize
119
  */
120
  public function initialize() {
121
- load_plugin_textdomain( MWF_Config::DOMAIN, false, basename( dirname( __FILE__ ) ) . '/languages' );
122
 
123
  add_action( 'after_setup_theme', array( $this, 'after_setup_theme' ), 11 );
124
  add_action( 'init', array( $this, 'register_post_type' ) );
@@ -164,8 +164,8 @@ class MW_WP_Form {
164
 
165
  add_submenu_page(
166
  'edit.php?post_type=' . MWF_Config::NAME,
167
- esc_html__( 'Chart', MWF_Config::DOMAIN ),
168
- esc_html__( 'Chart', MWF_Config::DOMAIN ),
169
  MWF_Config::CAPABILITY,
170
  MWF_Config::NAME . '-chart',
171
  array( $this, 'display_chart' )
@@ -193,8 +193,8 @@ class MW_WP_Form {
193
 
194
  add_submenu_page(
195
  'edit.php?post_type=' . MWF_Config::NAME,
196
- __( 'Inquiry data', MWF_Config::DOMAIN ),
197
- __( 'Inquiry data', MWF_Config::DOMAIN ),
198
  MWF_Config::CAPABILITY,
199
  MWF_Config::NAME . '-save-data',
200
  array( $this, 'display_stores_inquiry_data_form_list' )
@@ -289,13 +289,13 @@ class MW_WP_Form {
289
  'labels' => array(
290
  'name' => 'MW WP Form',
291
  'singular_name' => 'MW WP Form',
292
- 'add_new_item' => __( 'Add New Form', MWF_Config::DOMAIN ),
293
- 'edit_item' => __( 'Edit Form', MWF_Config::DOMAIN ),
294
- 'new_item' => __( 'New Form', MWF_Config::DOMAIN ),
295
- 'view_item' => __( 'View Form', MWF_Config::DOMAIN ),
296
- 'search_items' => __( 'Search Forms', MWF_Config::DOMAIN ),
297
- 'not_found' => __( 'No Forms found', MWF_Config::DOMAIN ),
298
- 'not_found_in_trash' => __( 'No Forms found in Trash', MWF_Config::DOMAIN ),
299
  ),
300
  'capability_type' => 'page',
301
  'public' => false,
@@ -312,11 +312,11 @@ class MW_WP_Form {
312
  'labels' => array(
313
  'name' => $form->post_title,
314
  'singular_name' => $form->post_title,
315
- 'edit_item' => __( 'Edit ', MWF_Config::DOMAIN ) . ':' . $form->post_title,
316
- 'view_item' => __( 'View', MWF_Config::DOMAIN ) . ':' . $form->post_title,
317
- 'search_items' => __( 'Search', MWF_Config::DOMAIN ) . ':' . $form->post_title,
318
- 'not_found' => __( 'No data found', MWF_Config::DOMAIN ),
319
- 'not_found_in_trash' => __( 'No data found in Trash', MWF_Config::DOMAIN ),
320
  ),
321
  'capability_type' => 'page',
322
  'public' => false,
3
  * Plugin Name: MW WP Form
4
  * Plugin URI: http://plugins.2inc.org/mw-wp-form/
5
  * Description: MW WP Form is shortcode base contact form plugin. This plugin have many feature. For example you can use many validation rules, contact data saving, and chart aggregation using saved contact data.
6
+ * Version: 2.6.0
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : September 25, 2012
10
+ * Modified: December 13, 2015
11
  * Text Domain: mw-wp-form
12
  * Domain Path: /languages/
13
  * License: GPLv2 or later
118
  * initialize
119
  */
120
  public function initialize() {
121
+ load_plugin_textdomain( 'mw-wp-form', false, basename( dirname( __FILE__ ) ) . '/languages' );
122
 
123
  add_action( 'after_setup_theme', array( $this, 'after_setup_theme' ), 11 );
124
  add_action( 'init', array( $this, 'register_post_type' ) );
164
 
165
  add_submenu_page(
166
  'edit.php?post_type=' . MWF_Config::NAME,
167
+ esc_html__( 'Chart', 'mw-wp-form' ),
168
+ esc_html__( 'Chart', 'mw-wp-form' ),
169
  MWF_Config::CAPABILITY,
170
  MWF_Config::NAME . '-chart',
171
  array( $this, 'display_chart' )
193
 
194
  add_submenu_page(
195
  'edit.php?post_type=' . MWF_Config::NAME,
196
+ __( 'Inquiry data', 'mw-wp-form' ),
197
+ __( 'Inquiry data', 'mw-wp-form' ),
198
  MWF_Config::CAPABILITY,
199
  MWF_Config::NAME . '-save-data',
200
  array( $this, 'display_stores_inquiry_data_form_list' )
289
  'labels' => array(
290
  'name' => 'MW WP Form',
291
  'singular_name' => 'MW WP Form',
292
+ 'add_new_item' => __( 'Add New Form', 'mw-wp-form' ),
293
+ 'edit_item' => __( 'Edit Form', 'mw-wp-form' ),
294
+ 'new_item' => __( 'New Form', 'mw-wp-form' ),
295
+ 'view_item' => __( 'View Form', 'mw-wp-form' ),
296
+ 'search_items' => __( 'Search Forms', 'mw-wp-form' ),
297
+ 'not_found' => __( 'No Forms found', 'mw-wp-form' ),
298
+ 'not_found_in_trash' => __( 'No Forms found in Trash', 'mw-wp-form' ),
299
  ),
300
  'capability_type' => 'page',
301
  'public' => false,
312
  'labels' => array(
313
  'name' => $form->post_title,
314
  'singular_name' => $form->post_title,
315
+ 'edit_item' => __( 'Edit ', 'mw-wp-form' ) . ':' . $form->post_title,
316
+ 'view_item' => __( 'View', 'mw-wp-form' ) . ':' . $form->post_title,
317
+ 'search_items' => __( 'Search', 'mw-wp-form' ) . ':' . $form->post_title,
318
+ 'not_found' => __( 'No data found', 'mw-wp-form' ),
319
+ 'not_found_in_trash' => __( 'No data found in Trash', 'mw-wp-form' ),
320
  ),
321
  'capability_type' => 'page',
322
  'public' => false,
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === MW WP Form ===
2
- Contributors: inc2734, ryu263, tomothumb, nanniku, mt8.biz, NExt-Season, kuck1u, mypacecreator
3
  Donate link: http://www.amazon.co.jp/registry/wishlist/39ANKRNSTNW40
4
  Tags: plugin, form, confirm, preview, shortcode, mail, chart, graph, html, contact form, form creation, form creator, form manager, form builder, custom form
5
  Requires at least: 4.0
6
  Tested up to: 4.3.1
7
- Stable tag: 2.5.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -53,6 +53,7 @@ Source: https://developers.google.com/chart/
53
  * [Atsushi Ando](http://www.next-season.net/) ( [NExt-Season](https://profiles.wordpress.org/next-season/) )
54
  * [Kazuki Tomiyasu](http://visualive.jp/) ( [KUCKLU](https://profiles.wordpress.org/kuck1u/) )
55
  * [Key Nomura](http://mypacecreator.net/) ( [mypacecreator](https://profiles.wordpress.org/mypacecreator/) )
 
56
 
57
  == Installation ==
58
 
@@ -77,6 +78,12 @@ Do you have questions or issues with MW WP Form? Use these support channels appr
77
 
78
  == Changelog ==
79
 
 
 
 
 
 
 
80
  = 2.5.3 =
81
  * Added : Japanese zip code validation allows the format of the form 0000000.
82
  * Bugfix : Fixed a date validation bug.
1
  === MW WP Form ===
2
+ Contributors: inc2734, ryu263, tomothumb, nanniku, mt8.biz, NExt-Season, kuck1u, mypacecreator, mh35
3
  Donate link: http://www.amazon.co.jp/registry/wishlist/39ANKRNSTNW40
4
  Tags: plugin, form, confirm, preview, shortcode, mail, chart, graph, html, contact form, form creation, form creator, form manager, form builder, custom form
5
  Requires at least: 4.0
6
  Tested up to: 4.3.1
7
+ Stable tag: 2.6.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
53
  * [Atsushi Ando](http://www.next-season.net/) ( [NExt-Season](https://profiles.wordpress.org/next-season/) )
54
  * [Kazuki Tomiyasu](http://visualive.jp/) ( [KUCKLU](https://profiles.wordpress.org/kuck1u/) )
55
  * [Key Nomura](http://mypacecreator.net/) ( [mypacecreator](https://profiles.wordpress.org/mypacecreator/) )
56
+ * [mh35](https://profiles.wordpress.org/mh35)
57
 
58
  == Installation ==
59
 
78
 
79
  == Changelog ==
80
 
81
+ = 2.6.0 =
82
+ * Bugfix : JavaScript bug fix on validation.
83
+ * Changed : Multilingual support. Changed domain.
84
+ * Changed : Changed radio and checkbox style.
85
+ * Added : Added the class attribute setting.
86
+
87
  = 2.5.3 =
88
  * Added : Japanese zip code validation allows the format of the form 0000000.
89
  * Bugfix : Fixed a date validation bug.
templates/admin/add-ons.php CHANGED
@@ -1,4 +1,4 @@
1
  <p>
2
- <?php esc_html_e( 'You can use more easy and useful to the MW WP Form in add-on!', MWF_Config::DOMAIN ); ?><br />
3
- <a href="http://plugins.2inc.org/mw-wp-form/add-on/" target="_blank" class="button button-primary"><?php esc_html_e( 'View Add-ons', MWF_Config::DOMAIN ); ?></a>
4
  </p>
1
  <p>
2
+ <?php esc_html_e( 'You can use more easy and useful to the MW WP Form in add-on!', 'mw-wp-form' ); ?><br />
3
+ <a href="http://plugins.2inc.org/mw-wp-form/add-on/" target="_blank" class="button button-primary"><?php esc_html_e( 'View Add-ons', 'mw-wp-form' ); ?></a>
4
  </p>
templates/admin/admin-mail-options.php CHANGED
@@ -1,41 +1,41 @@
1
  <p>
2
- <?php esc_html_e( '{key} is converted form data.', MWF_Config::DOMAIN ); ?>
3
  <?php echo sprintf(
4
- esc_html__( 'It is automatically converted to Tracking number when you input {%s}.', MWF_Config::DOMAIN ),
5
  MWF_Config::TRACKINGNUMBER
6
  ); ?>
7
  </p>
8
  <p>
9
- <?php esc_html_e( 'If Admin Email Options is a blank, Automatic Replay Email Options is used as Admin Email Options.', MWF_Config::DOMAIN ); ?>
10
  </p>
11
  <p>
12
- <b><?php esc_html_e( 'To ( E-mail address )', MWF_Config::DOMAIN ); ?></b><br />
13
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[mail_to]" value="<?php echo esc_attr( $mail_to ); ?>" /><br />
14
- <span class="mwf_note"><?php esc_html_e( 'If empty:', MWF_Config::DOMAIN ); ?> <?php bloginfo( 'admin_email' ); ?></span>
15
  </p>
16
  <p>
17
- <b><?php esc_html_e( 'CC ( E-mail address )', MWF_Config::DOMAIN ); ?></b><br />
18
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[mail_cc]" value="<?php echo esc_attr( $mail_cc ); ?>" />
19
  </p>
20
  <p>
21
- <b><?php esc_html_e( 'BCC ( E-mail address )', MWF_Config::DOMAIN ); ?></b><br />
22
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[mail_bcc]" value="<?php echo esc_attr( $mail_bcc ); ?>" />
23
  </p>
24
  <p>
25
- <b><?php esc_html_e( 'Subject', MWF_Config::DOMAIN ); ?></b><br />
26
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[admin_mail_subject]" value="<?php echo esc_attr( $admin_mail_subject ); ?>" />
27
  </p>
28
  <p>
29
- <b><?php esc_html_e( 'Sender', MWF_Config::DOMAIN ); ?></b><br />
30
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[admin_mail_sender]" value="<?php echo esc_attr( $admin_mail_sender ); ?>" /><br />
31
- <span class="mwf_note"><?php esc_html_e( 'If empty:', MWF_Config::DOMAIN ); ?> <?php bloginfo( 'name' ); ?></span>
32
  </p>
33
  <p>
34
- <b><?php esc_html_e( 'From ( E-mail address )', MWF_Config::DOMAIN ); ?></b><br />
35
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[admin_mail_from]" value="<?php echo esc_attr( $admin_mail_from ); ?>" /><br />
36
- <span class="mwf_note"><?php esc_html_e( 'If empty:', MWF_Config::DOMAIN ); ?> <?php bloginfo( 'admin_email' ); ?></span>
37
  </p>
38
  <p>
39
- <b><?php esc_html_e( 'Content', MWF_Config::DOMAIN ); ?></b><br />
40
  <textarea name="<?php echo esc_attr( MWF_Config::NAME ); ?>[admin_mail_content]" cols="30" rows="10"><?php echo esc_attr( $admin_mail_content ); ?></textarea>
41
  </p>
1
  <p>
2
+ <?php esc_html_e( '{key} is converted form data.', 'mw-wp-form' ); ?>
3
  <?php echo sprintf(
4
+ esc_html__( 'It is automatically converted to Tracking number when you input {%s}.', 'mw-wp-form' ),
5
  MWF_Config::TRACKINGNUMBER
6
  ); ?>
7
  </p>
8
  <p>
9
+ <?php esc_html_e( 'If Admin Email Options is a blank, Automatic Replay Email Options is used as Admin Email Options.', 'mw-wp-form' ); ?>
10
  </p>
11
  <p>
12
+ <b><?php esc_html_e( 'To ( E-mail address )', 'mw-wp-form' ); ?></b><br />
13
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[mail_to]" value="<?php echo esc_attr( $mail_to ); ?>" /><br />
14
+ <span class="mwf_note"><?php esc_html_e( 'If empty:', 'mw-wp-form' ); ?> <?php bloginfo( 'admin_email' ); ?></span>
15
  </p>
16
  <p>
17
+ <b><?php esc_html_e( 'CC ( E-mail address )', 'mw-wp-form' ); ?></b><br />
18
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[mail_cc]" value="<?php echo esc_attr( $mail_cc ); ?>" />
19
  </p>
20
  <p>
21
+ <b><?php esc_html_e( 'BCC ( E-mail address )', 'mw-wp-form' ); ?></b><br />
22
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[mail_bcc]" value="<?php echo esc_attr( $mail_bcc ); ?>" />
23
  </p>
24
  <p>
25
+ <b><?php esc_html_e( 'Subject', 'mw-wp-form' ); ?></b><br />
26
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[admin_mail_subject]" value="<?php echo esc_attr( $admin_mail_subject ); ?>" />
27
  </p>
28
  <p>
29
+ <b><?php esc_html_e( 'Sender', 'mw-wp-form' ); ?></b><br />
30
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[admin_mail_sender]" value="<?php echo esc_attr( $admin_mail_sender ); ?>" /><br />
31
+ <span class="mwf_note"><?php esc_html_e( 'If empty:', 'mw-wp-form' ); ?> <?php bloginfo( 'name' ); ?></span>
32
  </p>
33
  <p>
34
+ <b><?php esc_html_e( 'From ( E-mail address )', 'mw-wp-form' ); ?></b><br />
35
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[admin_mail_from]" value="<?php echo esc_attr( $admin_mail_from ); ?>" /><br />
36
+ <span class="mwf_note"><?php esc_html_e( 'If empty:', 'mw-wp-form' ); ?> <?php bloginfo( 'admin_email' ); ?></span>
37
  </p>
38
  <p>
39
+ <b><?php esc_html_e( 'Content', 'mw-wp-form' ); ?></b><br />
40
  <textarea name="<?php echo esc_attr( MWF_Config::NAME ); ?>[admin_mail_content]" cols="30" rows="10"><?php echo esc_attr( $admin_mail_content ); ?></textarea>
41
  </p>
templates/admin/form-key.php CHANGED
@@ -1,7 +1,7 @@
1
  <p>
2
  <span id="formkey_field">[mwform_formkey key="<?php echo esc_html( $post_id ); ?>"]</span>
3
  <span class="mwf_note">
4
- <?php esc_html_e( 'Copy and Paste this shortcode.', MWF_Config::DOMAIN ); ?><br />
5
- <?php esc_html_e( 'The key to use with hook is ', MWF_Config::DOMAIN ); ?><?php echo MWF_Config::NAME; ?>-<?php echo esc_html( $post_id ); ?>
6
  </span>
7
  </p>
1
  <p>
2
  <span id="formkey_field">[mwform_formkey key="<?php echo esc_html( $post_id ); ?>"]</span>
3
  <span class="mwf_note">
4
+ <?php esc_html_e( 'Copy and Paste this shortcode.', 'mw-wp-form' ); ?><br />
5
+ <?php esc_html_e( 'The key to use with hook is ', 'mw-wp-form' ); ?><?php echo MWF_Config::NAME; ?>-<?php echo esc_html( $post_id ); ?>
6
  </span>
7
  </p>
templates/admin/mail-options.php CHANGED
@@ -1,30 +1,30 @@
1
  <p>
2
- <?php esc_html_e( '{key} is converted form data.', MWF_Config::DOMAIN ); ?>
3
  <?php echo sprintf(
4
- esc_html__( 'It is automatically converted to Tracking number when you input {%s}.', MWF_Config::DOMAIN ),
5
  MWF_Config::TRACKINGNUMBER
6
  ); ?>
7
  </p>
8
  <p>
9
- <b><?php esc_html_e( 'Subject', MWF_Config::DOMAIN ); ?></b><br />
10
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[mail_subject]" value="<?php echo esc_attr( $mail_subject ); ?>" />
11
  </p>
12
  <p>
13
- <b><?php esc_html_e( 'Sender', MWF_Config::DOMAIN ); ?></b><br />
14
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[mail_sender]" value="<?php echo esc_attr( $mail_sender ); ?>" /><br />
15
- <span class="mwf_note"><?php esc_html_e( 'If empty:', MWF_Config::DOMAIN ); ?> <?php bloginfo( 'name' ); ?></span>
16
  </p>
17
  <p>
18
- <b><?php esc_html_e( 'From ( E-mail address )', MWF_Config::DOMAIN ); ?></b><br />
19
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[mail_from]" value="<?php echo esc_attr( $mail_from ); ?>" /><br />
20
- <span class="mwf_note"><?php esc_html_e( 'If empty:', MWF_Config::DOMAIN ); ?> <?php bloginfo( 'admin_email' ); ?></span>
21
  </p>
22
  <p>
23
- <b><?php esc_html_e( 'Content', MWF_Config::DOMAIN ); ?></b><br />
24
  <textarea name="<?php echo esc_attr( MWF_Config::NAME ); ?>[mail_content]" cols="30" rows="10"><?php echo esc_attr( $mail_content ); ?></textarea>
25
  </p>
26
  <p>
27
- <b><?php esc_html_e( 'Automatic reply email', MWF_Config::DOMAIN ); ?></b><br />
28
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[automatic_reply_email]" value="<?php echo esc_attr( $automatic_reply_email ); ?>" /><br />
29
- <span class="mwf_note"><?php esc_html_e( 'Input the key to use as transmission to automatic reply email. {} is unnecessary.', MWF_Config::DOMAIN ); ?></span>
30
  </p>
1
  <p>
2
+ <?php esc_html_e( '{key} is converted form data.', 'mw-wp-form' ); ?>
3
  <?php echo sprintf(
4
+ esc_html__( 'It is automatically converted to Tracking number when you input {%s}.', 'mw-wp-form' ),
5
  MWF_Config::TRACKINGNUMBER
6
  ); ?>
7
  </p>
8
  <p>
9
+ <b><?php esc_html_e( 'Subject', 'mw-wp-form' ); ?></b><br />
10
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[mail_subject]" value="<?php echo esc_attr( $mail_subject ); ?>" />
11
  </p>
12
  <p>
13
+ <b><?php esc_html_e( 'Sender', 'mw-wp-form' ); ?></b><br />
14
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[mail_sender]" value="<?php echo esc_attr( $mail_sender ); ?>" /><br />
15
+ <span class="mwf_note"><?php esc_html_e( 'If empty:', 'mw-wp-form' ); ?> <?php bloginfo( 'name' ); ?></span>
16
  </p>
17
  <p>
18
+ <b><?php esc_html_e( 'From ( E-mail address )', 'mw-wp-form' ); ?></b><br />
19
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[mail_from]" value="<?php echo esc_attr( $mail_from ); ?>" /><br />
20
+ <span class="mwf_note"><?php esc_html_e( 'If empty:', 'mw-wp-form' ); ?> <?php bloginfo( 'admin_email' ); ?></span>
21
  </p>
22
  <p>
23
+ <b><?php esc_html_e( 'Content', 'mw-wp-form' ); ?></b><br />
24
  <textarea name="<?php echo esc_attr( MWF_Config::NAME ); ?>[mail_content]" cols="30" rows="10"><?php echo esc_attr( $mail_content ); ?></textarea>
25
  </p>
26
  <p>
27
+ <b><?php esc_html_e( 'Automatic reply email', 'mw-wp-form' ); ?></b><br />
28
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[automatic_reply_email]" value="<?php echo esc_attr( $automatic_reply_email ); ?>" /><br />
29
+ <span class="mwf_note"><?php esc_html_e( 'Input the key to use as transmission to automatic reply email. {} is unnecessary.', 'mw-wp-form' ); ?></span>
30
  </p>
templates/admin/settings.php CHANGED
@@ -1,23 +1,23 @@
1
  <p>
2
- <label><input type="checkbox" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[querystring]" value="1" <?php checked( $querystring, 1 ); ?> /> <?php esc_html_e( 'Activate Query string of post', MWF_Config::DOMAIN ); ?></label><br />
3
- <span class="mwf_note"><?php esc_html_e( 'If this field is active, MW WP Form get query string. And get post data from query string "post_id". You can use $post\'s property in editor.', MWF_Config::DOMAIN ); ?><br />
4
- <?php esc_html_e( 'Example: {ID}, {post_title}, {post_meta} etc...', MWF_Config::DOMAIN ); ?></span>
5
  </p>
6
  <p>
7
- <label><input type="checkbox" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[usedb]" value="1" <?php checked( $usedb, 1 ); ?> /> <?php esc_html_e( 'Saving inquiry data in database', MWF_Config::DOMAIN ); ?></label>
8
  </p>
9
  <p>
10
- <label><input type="checkbox" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[scroll]" value="1" <?php checked( $scroll, 1 ); ?> /> <?php esc_html_e( 'Enable scrolling of screen transition.', MWF_Config::DOMAIN ); ?></label>
11
  </p>
12
  <p>
13
- <?php esc_html_e( 'Next Tracking Number', MWF_Config::DOMAIN ); ?><br />
14
  <input type="number" name="<?php echo esc_attr( MWF_Config::TRACKINGNUMBER ); ?>" id="tracking_number_field" value="<?php echo esc_attr( $tracking_number ); ?>" step="1" min="1" disabled="disabled" /><br />
15
  <input type="checkbox" name="open_tracking_number_field" />
16
- <?php esc_html_e( 'I want to change.', MWF_Config::DOMAIN ); ?>
17
  </p>
18
  <table border="0" cellpadding="0" cellspacing="0" class="akismet">
19
  <tr>
20
- <th colspan="2"><?php esc_html_e( 'Akismet Setting', MWF_Config::DOMAIN ); ?></th>
21
  </tr>
22
  <tr>
23
  <td>author</td>
@@ -32,4 +32,4 @@
32
  <td><input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[akismet_author_url]" value="<?php echo esc_attr( $akismet_author_url ); ?>" /></td>
33
  </tr>
34
  </table>
35
- <span class="mwf_note"><?php esc_html_e( 'Input the key to use Akismet.', MWF_Config::DOMAIN ); ?></span>
1
  <p>
2
+ <label><input type="checkbox" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[querystring]" value="1" <?php checked( $querystring, 1 ); ?> /> <?php esc_html_e( 'Activate Query string of post', 'mw-wp-form' ); ?></label><br />
3
+ <span class="mwf_note"><?php esc_html_e( 'If this field is active, MW WP Form get query string. And get post data from query string "post_id". You can use $post\'s property in editor.', 'mw-wp-form' ); ?><br />
4
+ <?php esc_html_e( 'Example: {ID}, {post_title}, {post_meta} etc...', 'mw-wp-form' ); ?></span>
5
  </p>
6
  <p>
7
+ <label><input type="checkbox" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[usedb]" value="1" <?php checked( $usedb, 1 ); ?> /> <?php esc_html_e( 'Saving inquiry data in database', 'mw-wp-form' ); ?></label>
8
  </p>
9
  <p>
10
+ <label><input type="checkbox" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[scroll]" value="1" <?php checked( $scroll, 1 ); ?> /> <?php esc_html_e( 'Enable scrolling of screen transition.', 'mw-wp-form' ); ?></label>
11
  </p>
12
  <p>
13
+ <?php esc_html_e( 'Next Tracking Number', 'mw-wp-form' ); ?><br />
14
  <input type="number" name="<?php echo esc_attr( MWF_Config::TRACKINGNUMBER ); ?>" id="tracking_number_field" value="<?php echo esc_attr( $tracking_number ); ?>" step="1" min="1" disabled="disabled" /><br />
15
  <input type="checkbox" name="open_tracking_number_field" />
16
+ <?php esc_html_e( 'I want to change.', 'mw-wp-form' ); ?>
17
  </p>
18
  <table border="0" cellpadding="0" cellspacing="0" class="akismet">
19
  <tr>
20
+ <th colspan="2"><?php esc_html_e( 'Akismet Setting', 'mw-wp-form' ); ?></th>
21
  </tr>
22
  <tr>
23
  <td>author</td>
32
  <td><input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[akismet_author_url]" value="<?php echo esc_attr( $akismet_author_url ); ?>" /></td>
33
  </tr>
34
  </table>
35
+ <span class="mwf_note"><?php esc_html_e( 'Input the key to use Akismet.', 'mw-wp-form' ); ?></span>
templates/admin/style.php CHANGED
@@ -1,6 +1,6 @@
1
  <p>
2
  <select name="<?php echo MWF_Config::NAME; ?>[style]">
3
- <option value=""><?php esc_html_e( 'Select Style', MWF_Config::DOMAIN ); ?></option>
4
  <?php foreach ( $styles as $style_key => $css ) : ?>
5
  <option value="<?php echo esc_attr( $style_key ); ?>" <?php selected( $style, $style_key ); ?>>
6
  <?php echo esc_html( $style_key ); ?>
1
  <p>
2
  <select name="<?php echo MWF_Config::NAME; ?>[style]">
3
+ <option value=""><?php esc_html_e( 'Select Style', 'mw-wp-form' ); ?></option>
4
  <?php foreach ( $styles as $style_key => $css ) : ?>
5
  <option value="<?php echo esc_attr( $style_key ); ?>" <?php selected( $style, $style_key ); ?>>
6
  <?php echo esc_html( $style_key ); ?>
templates/admin/tag-generator.php CHANGED
@@ -3,22 +3,22 @@ do_action( 'mwform_tag_generator_dialog' );
3
  ?>
4
  <div class="add-mwform-btn">
5
  <select>
6
- <option value=""><?php echo esc_html_e( 'Select this.', MWF_Config::DOMAIN ); ?></option>
7
- <optgroup label="<?php echo esc_attr_e( 'Input fields', MWF_Config::DOMAIN ); ?>">
8
  <?php do_action( 'mwform_tag_generator_input_option' ); ?>
9
  </optgroup>
10
- <optgroup label="<?php echo esc_attr_e( 'Select fields', MWF_Config::DOMAIN ); ?>">
11
  <?php do_action( 'mwform_tag_generator_select_option' ); ?>
12
  </optgroup>
13
- <optgroup label="<?php echo esc_attr_e( 'Button fields', MWF_Config::DOMAIN ); ?>">
14
  <?php do_action( 'mwform_tag_generator_button_option' ); ?>
15
  </optgroup>
16
- <optgroup label="<?php echo esc_attr_e( 'Error fields', MWF_Config::DOMAIN ); ?>">
17
  <?php do_action( 'mwform_tag_generator_error_option' ); ?>
18
  </optgroup>
19
- <optgroup label="<?php echo esc_attr_e( 'Other fields', MWF_Config::DOMAIN ); ?>">
20
  <?php do_action( 'mwform_tag_generator_option' ); ?>
21
  </optgroup>
22
  </select>
23
- <span class="button"><?php esc_html_e( 'Add form tag', MWF_Config::DOMAIN ); ?></span>
24
  </div>
3
  ?>
4
  <div class="add-mwform-btn">
5
  <select>
6
+ <option value=""><?php echo esc_html_e( 'Select this.', 'mw-wp-form' ); ?></option>
7
+ <optgroup label="<?php echo esc_attr_e( 'Input fields', 'mw-wp-form' ); ?>">
8
  <?php do_action( 'mwform_tag_generator_input_option' ); ?>
9
  </optgroup>
10
+ <optgroup label="<?php echo esc_attr_e( 'Select fields', 'mw-wp-form' ); ?>">
11
  <?php do_action( 'mwform_tag_generator_select_option' ); ?>
12
  </optgroup>
13
+ <optgroup label="<?php echo esc_attr_e( 'Button fields', 'mw-wp-form' ); ?>">
14
  <?php do_action( 'mwform_tag_generator_button_option' ); ?>
15
  </optgroup>
16
+ <optgroup label="<?php echo esc_attr_e( 'Error fields', 'mw-wp-form' ); ?>">
17
  <?php do_action( 'mwform_tag_generator_error_option' ); ?>
18
  </optgroup>
19
+ <optgroup label="<?php echo esc_attr_e( 'Other fields', 'mw-wp-form' ); ?>">
20
  <?php do_action( 'mwform_tag_generator_option' ); ?>
21
  </optgroup>
22
  </select>
23
+ <span class="button"><?php esc_html_e( 'Add form tag', 'mw-wp-form' ); ?></span>
24
  </div>
templates/admin/url.php CHANGED
@@ -1,31 +1,31 @@
1
  <input type="hidden" name="<?php echo esc_attr( MWF_Config::NAME ); ?>_nonce" value="<?php echo wp_create_nonce( MWF_Config::NAME ); ?>" />
2
  <table border="0" cellpadding="0" cellspacing="4">
3
  <tr>
4
- <th><?php esc_html_e( 'Input Page URL', MWF_Config::DOMAIN ); ?></th>
5
  <td>
6
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[input_url]" value="<?php echo esc_attr( $input_url ); ?>" />
7
  </td>
8
  </tr>
9
  <tr>
10
- <th><?php esc_html_e( 'Confirmation Page URL', MWF_Config::DOMAIN ); ?></th>
11
  <td>
12
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[confirmation_url]" value="<?php echo esc_attr( $confirmation_url ); ?>" />
13
  </td>
14
  </tr>
15
  <tr>
16
- <th><?php esc_html_e( 'Complete Page URL', MWF_Config::DOMAIN ); ?></th>
17
  <td>
18
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[complete_url]" value="<?php echo esc_attr( $complete_url ); ?>" />
19
  </td>
20
  </tr>
21
  <tr>
22
- <th><?php esc_html_e( 'Validation Error Page URL', MWF_Config::DOMAIN ); ?></th>
23
  <td>
24
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[validation_error_url]" value="<?php echo esc_attr( $validation_error_url ); ?>" />
25
  </td>
26
  </tr>
27
  </table>
28
  <p class="description">
29
- <?php esc_html_e( 'This urls are the redirection urls at the time of button press. When URL setting is empty, The page redirect on the same page.', MWF_Config::DOMAIN ); ?><br />
30
- <?php printf( esc_html__( 'When a URL doesn\'t begin http or https, %s is complemented.', MWF_Config::DOMAIN ), '<b>' . home_url() . '</b>' ); ?>
31
  </p>
1
  <input type="hidden" name="<?php echo esc_attr( MWF_Config::NAME ); ?>_nonce" value="<?php echo wp_create_nonce( MWF_Config::NAME ); ?>" />
2
  <table border="0" cellpadding="0" cellspacing="4">
3
  <tr>
4
+ <th><?php esc_html_e( 'Input Page URL', 'mw-wp-form' ); ?></th>
5
  <td>
6
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[input_url]" value="<?php echo esc_attr( $input_url ); ?>" />
7
  </td>
8
  </tr>
9
  <tr>
10
+ <th><?php esc_html_e( 'Confirmation Page URL', 'mw-wp-form' ); ?></th>
11
  <td>
12
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[confirmation_url]" value="<?php echo esc_attr( $confirmation_url ); ?>" />
13
  </td>
14
  </tr>
15
  <tr>
16
+ <th><?php esc_html_e( 'Complete Page URL', 'mw-wp-form' ); ?></th>
17
  <td>
18
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[complete_url]" value="<?php echo esc_attr( $complete_url ); ?>" />
19
  </td>
20
  </tr>
21
  <tr>
22
+ <th><?php esc_html_e( 'Validation Error Page URL', 'mw-wp-form' ); ?></th>
23
  <td>
24
  <input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[validation_error_url]" value="<?php echo esc_attr( $validation_error_url ); ?>" />
25
  </td>
26
  </tr>
27
  </table>
28
  <p class="description">
29
+ <?php esc_html_e( 'This urls are the redirection urls at the time of button press. When URL setting is empty, The page redirect on the same page.', 'mw-wp-form' ); ?><br />
30
+ <?php printf( esc_html__( 'When a URL doesn\'t begin http or https, %s is complemented.', 'mw-wp-form' ), '<b>' . home_url() . '</b>' ); ?>
31
  </p>
templates/admin/validation-rule.php CHANGED
@@ -1,4 +1,4 @@
1
- <b class="add-btn"><?php esc_html_e( 'Add Validation rule', MWF_Config::DOMAIN ); ?></b>
2
  <div class="repeatable-boxes">
3
  <?php foreach ( $validation as $key => $value ) : $value = array_merge( $validation_keys, $value ); ?>
4
  <div class="repeatable-box" <?php if ( $key === 0 ) : ?>style="display:none"<?php endif; ?>>
@@ -6,7 +6,7 @@
6
  <div class="remove-btn"><b>×</b></div>
7
  <div class="open-btn"><span><?php echo esc_attr( $value['target'] ); ?></span><b>▼</b></div>
8
  <div class="repeatable-box-content">
9
- <?php esc_html_e( 'The key which applies validation', MWF_Config::DOMAIN ); ?>:<input type="text" class="targetKey" value="<?php echo esc_attr( $value['target'] ); ?>" name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo esc_attr( $key ); ?>][target]" />
10
  <table border="0" cellpadding="0" cellspacing="0">
11
  <tr>
12
  <td colspan="2">
1
+ <b class="add-btn"><?php esc_html_e( 'Add Validation rule', 'mw-wp-form' ); ?></b>
2
  <div class="repeatable-boxes">
3
  <?php foreach ( $validation as $key => $value ) : $value = array_merge( $validation_keys, $value ); ?>
4
  <div class="repeatable-box" <?php if ( $key === 0 ) : ?>style="display:none"<?php endif; ?>>
6
  <div class="remove-btn"><b>×</b></div>
7
  <div class="open-btn"><span><?php echo esc_attr( $value['target'] ); ?></span><b>▼</b></div>
8
  <div class="repeatable-box-content">
9
+ <?php esc_html_e( 'The key which applies validation', 'mw-wp-form' ); ?>:<input type="text" class="targetKey" value="<?php echo esc_attr( $value['target'] ); ?>" name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo esc_attr( $key ); ?>][target]" />
10
  <table border="0" cellpadding="0" cellspacing="0">
11
  <tr>
12
  <td colspan="2">
templates/chart/index.php CHANGED
@@ -1,7 +1,7 @@
1
  <div class="wrap">
2
  <?php $post_id = preg_replace( '/^(.+_)(\d+)$/', '$2', $post_type ); ?>
3
  <h2>
4
- <?php esc_html_e( 'Chart', MWF_Config::DOMAIN ); ?>
5
  :
6
  <?php echo esc_html( get_the_title( $post_id ) ); ?>
7
  </h2>
@@ -12,7 +12,7 @@
12
  ?>
13
  <div id="<?php echo esc_attr( MWF_Config::NAME . '_chart' ); ?>" class="postbox">
14
  <div class="inside">
15
- <b class="add-btn"><?php esc_html_e( 'Add Chart', MWF_Config::DOMAIN ); ?></b>
16
  <div class="repeatable-boxes">
17
  <?php foreach ( $postdata as $key => $value ) : ?>
18
  <div class="repeatable-box" <?php if ( $key === 0 ) : ?>style="display:none"<?php endif; ?>>
@@ -20,20 +20,20 @@
20
  <div class="remove-btn"><b>×</b></div>
21
  <div class="open-btn"><span><?php echo esc_html( $value['target'] ); ?></span><b>▼</b></div>
22
  <div class="repeatable-box-content">
23
- <?php esc_html_e( 'Item that create chart', MWF_Config::DOMAIN ); ?>
24
  <select class="targetKey" name="<?php echo esc_attr( sprintf( '%s-chart-%s[chart][%s][target]', MWF_Config::NAME, $post_type, $key ) ); ?>">
25
- <option value=""><?php esc_html_e( 'Select this.', MWF_Config::DOMAIN ); ?></option>
26
  <?php foreach ( $custom_keys as $custom_key_name => $custom_key_value ) : ?>
27
  <option value="<?php echo esc_attr( $custom_key_name ); ?>" <?php selected( $value['target'], $custom_key_name ); ?>><?php echo esc_html( $custom_key_name ); ?></option>
28
  <?php endforeach; ?>
29
  </select>
30
  <br />
31
- <?php esc_html_e( 'Chart type', MWF_Config::DOMAIN ); ?>
32
  <select name="<?php echo esc_attr( sprintf( '%s-chart-%s[chart][%s][chart]', MWF_Config::NAME, $post_type, $key ) ); ?>">
33
  <?php
34
  $chart_options = array(
35
- 'pie' => esc_html__( 'Pie chart', MWF_Config::DOMAIN ),
36
- 'bar' => esc_html__( 'Bar chart', MWF_Config::DOMAIN ),
37
  );
38
  foreach ( $chart_options as $chart_option_key => $chart_option ) {
39
  printf(
@@ -46,7 +46,7 @@
46
  ?>
47
  </select>
48
  <br />
49
- <?php esc_html_e( 'Separator string (If the check box. If the separator attribute is not set to ",")', MWF_Config::DOMAIN ); ?>
50
  <input type="text" name="<?php echo esc_attr( sprintf( '%s-chart-%s[chart][%s][separator]', MWF_Config::NAME, $post_type, $key ) ); ?>" value="<?php echo esc_attr( $value['separator'] ); ?>" size="5" />
51
  <!-- end .repeatable-box-content --></div>
52
  <!-- end .repeatable-box --></div>
@@ -68,7 +68,7 @@
68
  '<h3>%s <span style="font-weight:normal;font-size:14px">( %s: %d )</span></h3>
69
  <div class="%s" style="width: 100%%; max-width: 800px"></div>',
70
  esc_html( $chart['target'] ),
71
- esc_html__( 'The number of inquiries', MWF_Config::DOMAIN ),
72
  count( $form_posts ),
73
  esc_attr( MWF_Config::NAME . '-chart-div-' . $postdata_key )
74
  );
1
  <div class="wrap">
2
  <?php $post_id = preg_replace( '/^(.+_)(\d+)$/', '$2', $post_type ); ?>
3
  <h2>
4
+ <?php esc_html_e( 'Chart', 'mw-wp-form' ); ?>
5
  :
6
  <?php echo esc_html( get_the_title( $post_id ) ); ?>
7
  </h2>
12
  ?>
13
  <div id="<?php echo esc_attr( MWF_Config::NAME . '_chart' ); ?>" class="postbox">
14
  <div class="inside">
15
+ <b class="add-btn"><?php esc_html_e( 'Add Chart', 'mw-wp-form' ); ?></b>
16
  <div class="repeatable-boxes">
17
  <?php foreach ( $postdata as $key => $value ) : ?>
18
  <div class="repeatable-box" <?php if ( $key === 0 ) : ?>style="display:none"<?php endif; ?>>
20
  <div class="remove-btn"><b>×</b></div>
21
  <div class="open-btn"><span><?php echo esc_html( $value['target'] ); ?></span><b>▼</b></div>
22
  <div class="repeatable-box-content">
23
+ <?php esc_html_e( 'Item that create chart', 'mw-wp-form' ); ?>
24
  <select class="targetKey" name="<?php echo esc_attr( sprintf( '%s-chart-%s[chart][%s][target]', MWF_Config::NAME, $post_type, $key ) ); ?>">
25
+ <option value=""><?php esc_html_e( 'Select this.', 'mw-wp-form' ); ?></option>
26
  <?php foreach ( $custom_keys as $custom_key_name => $custom_key_value ) : ?>
27
  <option value="<?php echo esc_attr( $custom_key_name ); ?>" <?php selected( $value['target'], $custom_key_name ); ?>><?php echo esc_html( $custom_key_name ); ?></option>
28
  <?php endforeach; ?>
29
  </select>
30
  <br />
31
+ <?php esc_html_e( 'Chart type', 'mw-wp-form' ); ?>
32
  <select name="<?php echo esc_attr( sprintf( '%s-chart-%s[chart][%s][chart]', MWF_Config::NAME, $post_type, $key ) ); ?>">
33
  <?php
34
  $chart_options = array(
35
+ 'pie' => esc_html__( 'Pie chart', 'mw-wp-form' ),
36
+ 'bar' => esc_html__( 'Bar chart', 'mw-wp-form' ),
37
  );
38
  foreach ( $chart_options as $chart_option_key => $chart_option ) {
39
  printf(
46
  ?>
47
  </select>
48
  <br />
49
+ <?php esc_html_e( 'Separator string (If the check box. If the separator attribute is not set to ",")', 'mw-wp-form' ); ?>
50
  <input type="text" name="<?php echo esc_attr( sprintf( '%s-chart-%s[chart][%s][separator]', MWF_Config::NAME, $post_type, $key ) ); ?>" value="<?php echo esc_attr( $value['separator'] ); ?>" size="5" />
51
  <!-- end .repeatable-box-content --></div>
52
  <!-- end .repeatable-box --></div>
68
  '<h3>%s <span style="font-weight:normal;font-size:14px">( %s: %d )</span></h3>
69
  <div class="%s" style="width: 100%%; max-width: 800px"></div>',
70
  esc_html( $chart['target'] ),
71
+ esc_html__( 'The number of inquiries', 'mw-wp-form' ),
72
  count( $form_posts ),
73
  esc_attr( MWF_Config::NAME . '-chart-div-' . $postdata_key )
74
  );
templates/contact-data-list/csv-button.php CHANGED
@@ -1,5 +1,5 @@
1
  <form id="mw-wp-form_csv" method="post" action="<?php echo esc_url( $action ); ?>">
2
- <input type="submit" value="<?php esc_attr_e( 'CSV Download', MWF_Config::DOMAIN ); ?>" class="button-primary" />
3
  &nbsp;
4
  &nbsp;
5
  <label><input type="checkbox" name="download-all" value="true" checked="checked" /> Download All</label>
1
  <form id="mw-wp-form_csv" method="post" action="<?php echo esc_url( $action ); ?>">
2
+ <input type="submit" value="<?php esc_attr_e( 'CSV Download', 'mw-wp-form' ); ?>" class="button-primary" />
3
  &nbsp;
4
  &nbsp;
5
  <label><input type="checkbox" name="download-all" value="true" checked="checked" /> Download All</label>
templates/contact-data/detail.php CHANGED
@@ -33,7 +33,7 @@
33
  </tr>
34
  <?php endforeach; ?>
35
  <tr>
36
- <th><?php esc_html_e( 'Response Status', MWF_Config::DOMAIN ); ?></th>
37
  <td>
38
  <select name="<?php echo esc_attr( MWF_Config::CONTACT_DATA_NAME ); ?>[response_status]">
39
  <?php foreach ( $Contact_Data_Setting->get_response_statuses() as $key => $value ) : ?>
@@ -45,7 +45,7 @@
45
  </td>
46
  </tr>
47
  <tr>
48
- <th><?php esc_html_e( 'Memo', MWF_Config::DOMAIN ); ?></th>
49
  <td><textarea name="<?php echo esc_attr( MWF_Config::CONTACT_DATA_NAME ); ?>[memo]" cols="50" rows="5"><?php echo $Contact_Data_Setting->get( 'memo' ); ?></textarea></td>
50
  </tr>
51
  </table>
33
  </tr>
34
  <?php endforeach; ?>
35
  <tr>
36
+ <th><?php esc_html_e( 'Response Status', 'mw-wp-form' ); ?></th>
37
  <td>
38
  <select name="<?php echo esc_attr( MWF_Config::CONTACT_DATA_NAME ); ?>[response_status]">
39
  <?php foreach ( $Contact_Data_Setting->get_response_statuses() as $key => $value ) : ?>
45
  </td>
46
  </tr>
47
  <tr>
48
+ <th><?php esc_html_e( 'Memo', 'mw-wp-form' ); ?></th>
49
  <td><textarea name="<?php echo esc_attr( MWF_Config::CONTACT_DATA_NAME ); ?>[memo]" cols="50" rows="5"><?php echo $Contact_Data_Setting->get( 'memo' ); ?></textarea></td>
50
  </tr>
51
  </table>
templates/contact-data/returning-link.php CHANGED
@@ -1,3 +1,3 @@
1
  <p>
2
- <a href="<?php echo $link; ?>"><?php esc_html_e( '&laquo; Back to the list', MWF_Config::DOMAIN ); ?></a>
3
  </p>
1
  <p>
2
+ <a href="<?php echo $link; ?>"><?php esc_html_e( '&laquo; Back to the list', 'mw-wp-form' ); ?></a>
3
  </p>
templates/stores-inquiry-data-form-list/index.php CHANGED
@@ -1,22 +1,22 @@
1
  <div class="wrap">
2
- <h2><?php esc_html_e( 'Inquiry data', MWF_Config::DOMAIN ); ?></h2>
3
  <p>
4
- <?php esc_html_e( 'You can see the inquiry data that are saved in the database by clicking on the link below.', MWF_Config::DOMAIN ); ?>
5
  </p>
6
  <table class="wp-list-table widefat fixed" cellspacing="0">
7
  <thead>
8
- <th class="<?php echo MWF_Config::NAME; ?>-table-title"><?php esc_html_e( 'Form title', MWF_Config::DOMAIN ); ?></th>
9
- <th class="<?php echo MWF_Config::NAME; ?>-table-chart"><?php esc_html_e( 'Display Chart', MWF_Config::DOMAIN ); ?></th>
10
- <th class="<?php echo MWF_Config::NAME; ?>-table-count"><?php esc_html_e( 'The number of inquiries', MWF_Config::DOMAIN ); ?></th>
11
- <th class="<?php echo MWF_Config::NAME; ?>-table-date"><?php esc_html_e( 'Updated date', MWF_Config::DOMAIN ); ?></th>
12
- <th class="<?php echo MWF_Config::NAME; ?>-table-date"><?php esc_html_e( 'Created date', MWF_Config::DOMAIN ); ?></th>
13
  </thead>
14
  <tbody>
15
  <?php $i = 0; foreach ( $form_list as $post_type => $values ) : $i ++; ?>
16
  <tr <?php if ( $i % 2 == 1 ) echo 'class="alternate"'; ?>>
17
  <td class="<?php echo MWF_Config::NAME; ?>-table-title"><?php echo esc_html( $values['title'] ) ; ?></td>
18
- <td class="<?php echo MWF_Config::NAME; ?>-table-chart"><a href="<?php echo admin_url( 'edit.php?post_type=' . MWF_Config::NAME . '&page=' . MWF_Config::NAME . '-chart&formkey=' . $post_type ); ?>"><?php esc_html_e( 'Display Chart', MWF_Config::DOMAIN ); ?></td>
19
- <td class="<?php echo MWF_Config::NAME; ?>-table-count"><a href="<?php echo admin_url( 'edit.php?post_type=' . $post_type ); ?>"><?php echo esc_html( $values['count'] ) ?> <?php esc_html_e( 'cases', MWF_Config::DOMAIN ); ?></a></td>
20
  <td class="<?php echo MWF_Config::NAME; ?>-table-date"><?php echo esc_html( $values['modified_datetime'] ); ?></td>
21
  <td class="<?php echo MWF_Config::NAME; ?>-table-date"><?php echo esc_html( $values['created_datetime'] ); ?></td>
22
  </tr>
1
  <div class="wrap">
2
+ <h2><?php esc_html_e( 'Inquiry data', 'mw-wp-form' ); ?></h2>
3
  <p>
4
+ <?php esc_html_e( 'You can see the inquiry data that are saved in the database by clicking on the link below.', 'mw-wp-form' ); ?>
5
  </p>
6
  <table class="wp-list-table widefat fixed" cellspacing="0">
7
  <thead>
8
+ <th class="<?php echo MWF_Config::NAME; ?>-table-title"><?php esc_html_e( 'Form title', 'mw-wp-form' ); ?></th>
9
+ <th class="<?php echo MWF_Config::NAME; ?>-table-chart"><?php esc_html_e( 'Display Chart', 'mw-wp-form' ); ?></th>
10
+ <th class="<?php echo MWF_Config::NAME; ?>-table-count"><?php esc_html_e( 'The number of inquiries', 'mw-wp-form' ); ?></th>
11
+ <th class="<?php echo MWF_Config::NAME; ?>-table-date"><?php esc_html_e( 'Updated date', 'mw-wp-form' ); ?></th>
12
+ <th class="<?php echo MWF_Config::NAME; ?>-table-date"><?php esc_html_e( 'Created date', 'mw-wp-form' ); ?></th>
13
  </thead>
14
  <tbody>
15
  <?php $i = 0; foreach ( $form_list as $post_type => $values ) : $i ++; ?>
16
  <tr <?php if ( $i % 2 == 1 ) echo 'class="alternate"'; ?>>
17
  <td class="<?php echo MWF_Config::NAME; ?>-table-title"><?php echo esc_html( $values['title'] ) ; ?></td>
18
+ <td class="<?php echo MWF_Config::NAME; ?>-table-chart"><a href="<?php echo admin_url( 'edit.php?post_type=' . MWF_Config::NAME . '&page=' . MWF_Config::NAME . '-chart&formkey=' . $post_type ); ?>"><?php esc_html_e( 'Display Chart', 'mw-wp-form' ); ?></td>
19
+ <td class="<?php echo MWF_Config::NAME; ?>-table-count"><a href="<?php echo admin_url( 'edit.php?post_type=' . $post_type ); ?>"><?php echo esc_html( $values['count'] ) ?> <?php esc_html_e( 'cases', 'mw-wp-form' ); ?></a></td>
20
  <td class="<?php echo MWF_Config::NAME; ?>-table-date"><?php echo esc_html( $values['modified_datetime'] ); ?></td>
21
  <td class="<?php echo MWF_Config::NAME; ?>-table-date"><?php echo esc_html( $values['created_datetime'] ); ?></td>
22
  </tr>