Version Description
- Added : Add html5 email field.
- Added : Add html5 url field.
- Added : Add html5 range field.
- Added : Add html5 number field.
- Added : Support attribute placeholder in datepicker.
- Changed : maxlength default value is null.
- Bugfix : Fixed a bug that is CC and BCC have been overlapping sent when To is multiple.
Download this release
Release Info
Developer | inc2734 |
Plugin | MW WP Form |
Version | 2.5.0 |
Comparing to | |
See all releases |
Code changes from version 2.4.12 to 2.5.0
- classes/config.php +1 -1
- classes/controllers/class.admin-list.php +1 -1
- classes/controllers/class.admin.php +1 -1
- classes/controllers/class.chart.php +1 -1
- classes/controllers/class.contact-data-list.php +1 -1
- classes/controllers/class.contact-data.php +1 -1
- classes/controllers/class.controller.php +1 -1
- classes/controllers/class.main.php +1 -1
- classes/controllers/class.stores-inquiry-data-form-list.php +1 -1
- classes/form-fields/class.akismet_error.php +1 -1
- classes/form-fields/class.back-button.php +1 -1
- classes/form-fields/class.button.php +1 -1
- classes/form-fields/class.checkbox.php +1 -1
- classes/form-fields/class.confirm-button.php +1 -1
- classes/form-fields/class.datepicker.php +20 -13
- classes/form-fields/class.email.php +141 -0
- classes/form-fields/class.error.php +1 -1
- classes/form-fields/class.file.php +1 -1
- classes/form-fields/class.hidden.php +1 -1
- classes/form-fields/class.image.php +1 -1
- classes/form-fields/class.number.php +132 -0
- classes/form-fields/class.password.php +4 -4
- classes/form-fields/class.radio.php +1 -1
- classes/form-fields/class.range.php +125 -0
- classes/form-fields/class.select.php +1 -1
- classes/form-fields/class.submit-button.php +1 -1
- classes/form-fields/class.submit.php +1 -1
- classes/form-fields/class.tel.php +1 -1
- classes/form-fields/class.text.php +4 -4
- classes/form-fields/class.textarea.php +1 -1
- classes/form-fields/class.url.php +141 -0
- classes/form-fields/class.zip.php +1 -1
- classes/functions.php +1 -1
- classes/models/class.abstract-form-field.php +1 -1
- classes/models/class.abstract-validation-rule.php +1 -1
- classes/models/class.admin.php +1 -1
- classes/models/class.akismet.php +1 -1
- classes/models/class.contact-data-setting.php +1 -1
- classes/models/class.contact-data.php +1 -1
- classes/models/class.csv.php +1 -1
- classes/models/class.data.php +1 -1
- classes/models/class.error.php +1 -1
- classes/models/class.file.php +1 -1
- classes/models/class.form.php +114 -10
- classes/models/class.mail.php +24 -27
- classes/models/class.session.php +1 -1
- classes/models/class.setting.php +1 -1
- classes/models/class.validation.php +1 -1
- classes/services/class.exec-shortcode.php +1 -1
- classes/services/class.mail-parser.php +1 -1
- classes/services/class.mail.php +1 -1
- classes/services/class.redirected.php +1 -1
- classes/validation-rules/class.akismet.php +1 -1
- classes/validation-rules/class.alpha.php +1 -1
- classes/validation-rules/class.alphanumeric.php +1 -1
- classes/validation-rules/class.between.php +1 -1
- classes/validation-rules/class.date.php +1 -1
- classes/validation-rules/class.eq.php +1 -1
- classes/validation-rules/class.filesize.php +1 -1
- classes/validation-rules/class.filetype.php +1 -1
- classes/validation-rules/class.hiragana.php +1 -1
- classes/validation-rules/class.in.php +1 -1
- classes/validation-rules/class.katakana.php +1 -1
- classes/validation-rules/class.mail.php +1 -1
- classes/validation-rules/class.minlength.php +1 -1
- classes/validation-rules/class.noempty.php +1 -1
- classes/validation-rules/class.nofalse.php +1 -1
- classes/validation-rules/class.numeric.php +1 -1
- classes/validation-rules/class.required.php +1 -1
- classes/validation-rules/class.tel.php +1 -1
- classes/validation-rules/class.url.php +2 -2
- classes/validation-rules/class.zip.php +1 -1
- languages/mw-wp-form-ja.mo +0 -0
- languages/mw-wp-form-ja.po +83 -57
- languages/mw-wp-form.pot +113 -66
- mw-wp-form.php +3 -3
- readme.txt +21 -9
classes/config.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : May 29, 2013
|
9 |
* Modified : January 2, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MWF_Config {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : May 29, 2013
|
9 |
* Modified : January 2, 2015
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MWF_Config {
|
classes/controllers/class.admin-list.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Author URI : http://2inc.org
|
7 |
* Created : January 1, 2015
|
8 |
* Modified : March 27, 2015
|
9 |
-
* License : GPLv2
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
12 |
class MW_WP_Form_Admin_List_Controller extends MW_WP_Form_Controller {
|
6 |
* Author URI : http://2inc.org
|
7 |
* Created : January 1, 2015
|
8 |
* Modified : March 27, 2015
|
9 |
+
* License : GPLv2 or later
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
12 |
class MW_WP_Form_Admin_List_Controller extends MW_WP_Form_Controller {
|
classes/controllers/class.admin.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Author URI : http://2inc.org
|
7 |
* Created : December 31, 2014
|
8 |
* Modified : April 15, 2015
|
9 |
-
* License : GPLv2
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
12 |
class MW_WP_Form_Admin_Controller extends MW_WP_Form_Controller {
|
6 |
* Author URI : http://2inc.org
|
7 |
* Created : December 31, 2014
|
8 |
* Modified : April 15, 2015
|
9 |
+
* License : GPLv2 or later
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
12 |
class MW_WP_Form_Admin_Controller extends MW_WP_Form_Controller {
|
classes/controllers/class.chart.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Author URI : http://2inc.org
|
7 |
* Created : January 1, 2015
|
8 |
* Modified : March 27, 2015
|
9 |
-
* License : GPLv2
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
12 |
class MW_WP_Form_Chart_Controller extends MW_WP_Form_Controller {
|
6 |
* Author URI : http://2inc.org
|
7 |
* Created : January 1, 2015
|
8 |
* Modified : March 27, 2015
|
9 |
+
* License : GPLv2 or later
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
12 |
class MW_WP_Form_Chart_Controller extends MW_WP_Form_Controller {
|
classes/controllers/class.contact-data-list.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Author URI : http://2inc.org
|
7 |
* Created : January 1, 2015
|
8 |
* Modified : May 26, 2015
|
9 |
-
* License : GPLv2
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
12 |
class MW_WP_Form_Contact_Data_List_Controller extends MW_WP_Form_Controller {
|
6 |
* Author URI : http://2inc.org
|
7 |
* Created : January 1, 2015
|
8 |
* Modified : May 26, 2015
|
9 |
+
* License : GPLv2 or later
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
12 |
class MW_WP_Form_Contact_Data_List_Controller extends MW_WP_Form_Controller {
|
classes/controllers/class.contact-data.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Author URI : http://2inc.org
|
7 |
* Created : December 31, 2014
|
8 |
* Modified : March 27, 2015
|
9 |
-
* License : GPLv2
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
12 |
class MW_WP_Form_Contact_Data_Controller extends MW_WP_Form_Controller {
|
6 |
* Author URI : http://2inc.org
|
7 |
* Created : December 31, 2014
|
8 |
* Modified : March 27, 2015
|
9 |
+
* License : GPLv2 or later
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
12 |
class MW_WP_Form_Contact_Data_Controller extends MW_WP_Form_Controller {
|
classes/controllers/class.controller.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Author URI : http://2inc.org
|
7 |
* Created : March 28, 2015
|
8 |
* Modified :
|
9 |
-
* License : GPLv2
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
12 |
class MW_WP_Form_Controller {
|
6 |
* Author URI : http://2inc.org
|
7 |
* Created : March 28, 2015
|
8 |
* Modified :
|
9 |
+
* License : GPLv2 or later
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
12 |
class MW_WP_Form_Controller {
|
classes/controllers/class.main.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : December 23, 2014
|
9 |
* Modified : May 11, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Main_Controller {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : December 23, 2014
|
9 |
* Modified : May 11, 2015
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Main_Controller {
|
classes/controllers/class.stores-inquiry-data-form-list.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Author URI : http://2inc.org
|
7 |
* Created : March 27, 2015
|
8 |
* Modified :
|
9 |
-
* License : GPLv2
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
12 |
class MW_WP_Form_Stores_Inquiry_Data_Form_List_Controller extends MW_WP_Form_Controller {
|
6 |
* Author URI : http://2inc.org
|
7 |
* Created : March 27, 2015
|
8 |
* Modified :
|
9 |
+
* License : GPLv2 or later
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
12 |
class MW_WP_Form_Stores_Inquiry_Data_Form_List_Controller extends MW_WP_Form_Controller {
|
classes/form-fields/class.akismet_error.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : June 21, 2013
|
9 |
* Modified : January 2, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Field_Akismet_Error extends MW_WP_Form_Abstract_Form_Field {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : June 21, 2013
|
9 |
* Modified : January 2, 2015
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Field_Akismet_Error extends MW_WP_Form_Abstract_Form_Field {
|
classes/form-fields/class.back-button.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
* Modified : January 2, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Field_Back_Button extends MW_WP_Form_Abstract_Form_Field {
|
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 |
*/
|
13 |
class MW_WP_Form_Field_Back_Button extends MW_WP_Form_Abstract_Form_Field {
|
classes/form-fields/class.button.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
* Modified : January 2, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Field_Button extends MW_WP_Form_Abstract_Form_Field {
|
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 |
*/
|
13 |
class MW_WP_Form_Field_Button extends MW_WP_Form_Abstract_Form_Field {
|
classes/form-fields/class.checkbox.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
* Modified : June 23, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Field_Checkbox extends MW_WP_Form_Abstract_Form_Field {
|
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 |
*/
|
13 |
class MW_WP_Form_Field_Checkbox extends MW_WP_Form_Abstract_Form_Field {
|
classes/form-fields/class.confirm-button.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
* Modified : January 2, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Field_Confirm_Button extends MW_WP_Form_Abstract_Form_Field {
|
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 |
*/
|
13 |
class MW_WP_Form_Field_Confirm_Button extends MW_WP_Form_Abstract_Form_Field {
|
classes/form-fields/class.datepicker.php
CHANGED
@@ -2,12 +2,12 @@
|
|
2 |
/**
|
3 |
* Name : MW WP Form Field Datepicker
|
4 |
* Description: datepickerを出力
|
5 |
-
* Version : 1.5.
|
6 |
* Author : Takashi Kitajima
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
-
* Modified :
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Field_Datepicker extends MW_WP_Form_Abstract_Form_Field {
|
@@ -38,12 +38,13 @@ class MW_WP_Form_Field_Datepicker extends MW_WP_Form_Abstract_Form_Field {
|
|
38 |
*/
|
39 |
protected function set_defaults() {
|
40 |
return array(
|
41 |
-
'name'
|
42 |
-
'id'
|
43 |
-
'size'
|
44 |
-
'js'
|
45 |
-
'value'
|
46 |
-
'
|
|
|
47 |
);
|
48 |
}
|
49 |
|
@@ -83,10 +84,11 @@ class MW_WP_Form_Field_Datepicker extends MW_WP_Form_Abstract_Form_Field {
|
|
83 |
|
84 |
$_ret = '';
|
85 |
$_ret .= $this->Form->datepicker( $this->atts['name'], array(
|
86 |
-
'id'
|
87 |
-
'size'
|
88 |
-
'js'
|
89 |
-
'value'
|
|
|
90 |
) );
|
91 |
if ( $this->atts['show_error'] !== 'false' ) {
|
92 |
$_ret .= $this->get_error( $this->atts['name'] );
|
@@ -137,6 +139,11 @@ class MW_WP_Form_Field_Datepicker extends MW_WP_Form_Abstract_Form_Field {
|
|
137 |
<?php $value = $this->get_value_for_generator( 'value', $options ); ?>
|
138 |
<input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
|
139 |
</p>
|
|
|
|
|
|
|
|
|
|
|
140 |
<p>
|
141 |
<strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
|
142 |
<?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
|
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 |
*/
|
13 |
class MW_WP_Form_Field_Datepicker extends MW_WP_Form_Abstract_Form_Field {
|
38 |
*/
|
39 |
protected function set_defaults() {
|
40 |
return array(
|
41 |
+
'name' => '',
|
42 |
+
'id' => null,
|
43 |
+
'size' => 30,
|
44 |
+
'js' => '',
|
45 |
+
'value' => '',
|
46 |
+
'placeholder' => null,
|
47 |
+
'show_error' => 'true',
|
48 |
);
|
49 |
}
|
50 |
|
84 |
|
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,
|
91 |
+
'placeholder' => $this->atts['placeholder'],
|
92 |
) );
|
93 |
if ( $this->atts['show_error'] !== 'false' ) {
|
94 |
$_ret .= $this->get_error( $this->atts['name'] );
|
139 |
<?php $value = $this->get_value_for_generator( 'value', $options ); ?>
|
140 |
<input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
|
141 |
</p>
|
142 |
+
<p>
|
143 |
+
<strong>placeholder</strong>
|
144 |
+
<?php $placeholder = $this->get_value_for_generator( 'placeholder', $options ); ?>
|
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 ); ?>
|
classes/form-fields/class.email.php
ADDED
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
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 |
+
*/
|
13 |
+
class MW_WP_Form_Field_Email extends MW_WP_Form_Abstract_Form_Field {
|
14 |
+
|
15 |
+
/**
|
16 |
+
* $type
|
17 |
+
* フォームタグの種類 input|select|button|error|other
|
18 |
+
* @var string
|
19 |
+
*/
|
20 |
+
public $type = 'input';
|
21 |
+
|
22 |
+
/**
|
23 |
+
* set_names
|
24 |
+
* shortcode_name、display_nameを定義。各子クラスで上書きする。
|
25 |
+
* @return array shortcode_name, display_name
|
26 |
+
*/
|
27 |
+
protected function set_names() {
|
28 |
+
return array(
|
29 |
+
'shortcode_name' => 'mwform_email',
|
30 |
+
'display_name' => __( 'Email', MWF_Config::DOMAIN ),
|
31 |
+
);
|
32 |
+
}
|
33 |
+
|
34 |
+
/**
|
35 |
+
* set_defaults
|
36 |
+
* $this->defaultsを設定し返す
|
37 |
+
* @return array
|
38 |
+
*/
|
39 |
+
protected function set_defaults() {
|
40 |
+
return array(
|
41 |
+
'name' => '',
|
42 |
+
'id' => null,
|
43 |
+
'size' => 60,
|
44 |
+
'maxlength' => null,
|
45 |
+
'value' => '',
|
46 |
+
'placeholder' => null,
|
47 |
+
'show_error' => 'true',
|
48 |
+
'conv_half_alphanumeric' => 'true',
|
49 |
+
);
|
50 |
+
}
|
51 |
+
|
52 |
+
/**
|
53 |
+
* input_page
|
54 |
+
* 入力ページでのフォーム項目を返す
|
55 |
+
* @return string html
|
56 |
+
*/
|
57 |
+
protected function input_page() {
|
58 |
+
$conv_half_alphanumeric = 'true';
|
59 |
+
if ( $this->atts['conv_half_alphanumeric'] !== 'true' ) {
|
60 |
+
$conv_half_alphanumeric = null;
|
61 |
+
}
|
62 |
+
$value = $this->Data->get_raw( $this->atts['name'] );
|
63 |
+
if ( is_null( $value ) ) {
|
64 |
+
$value = $this->atts['value'];
|
65 |
+
}
|
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,
|
72 |
+
'placeholder' => $this->atts['placeholder'],
|
73 |
+
'conv-half-alphanumeric' => $conv_half_alphanumeric,
|
74 |
+
) );
|
75 |
+
if ( $this->atts['show_error'] !== 'false' ) {
|
76 |
+
$_ret .= $this->get_error( $this->atts['name'] );
|
77 |
+
}
|
78 |
+
return $_ret;
|
79 |
+
}
|
80 |
+
|
81 |
+
/**
|
82 |
+
* confirm_page
|
83 |
+
* 確認ページでのフォーム項目を返す
|
84 |
+
* @return string HTML
|
85 |
+
*/
|
86 |
+
protected function confirm_page() {
|
87 |
+
$value = $this->Data->get_raw( $this->atts['name'] );
|
88 |
+
$_ret = esc_html( $value );
|
89 |
+
$_ret .= $this->Form->hidden( $this->atts['name'], $value );
|
90 |
+
return $_ret;
|
91 |
+
}
|
92 |
+
|
93 |
+
/**
|
94 |
+
* add_mwform_tag_generator
|
95 |
+
* フォームタグジェネレーター
|
96 |
+
*/
|
97 |
+
public function mwform_tag_generator_dialog( array $options = array() ) {
|
98 |
+
?>
|
99 |
+
<p>
|
100 |
+
<strong>name<span class="mwf_require">*</span></strong>
|
101 |
+
<?php $name = $this->get_value_for_generator( 'name', $options ); ?>
|
102 |
+
<input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" />
|
103 |
+
</p>
|
104 |
+
<p>
|
105 |
+
<strong>id</strong>
|
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 ); ?>
|
112 |
+
<input type="text" name="size" value="<?php echo esc_attr( $size ); ?>" />
|
113 |
+
</p>
|
114 |
+
<p>
|
115 |
+
<strong>maxlength</strong>
|
116 |
+
<?php $maxlength = $this->get_value_for_generator( 'maxlength', $options ); ?>
|
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>
|
124 |
+
<p>
|
125 |
+
<strong>placeholder</strong>
|
126 |
+
<?php $placeholder = $this->get_value_for_generator( 'placeholder', $options ); ?>
|
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 |
+
}
|
141 |
+
}
|
classes/form-fields/class.error.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
* Modified : January 2, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Field_Error extends MW_WP_Form_Abstract_Form_Field {
|
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 |
*/
|
13 |
class MW_WP_Form_Field_Error extends MW_WP_Form_Abstract_Form_Field {
|
classes/form-fields/class.file.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : May 17, 2013
|
9 |
* Modified : April 1, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Field_File extends MW_WP_Form_Abstract_Form_Field {
|
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 |
*/
|
13 |
class MW_WP_Form_Field_File extends MW_WP_Form_Abstract_Form_Field {
|
classes/form-fields/class.hidden.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
* Modified : April 7, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Field_Hidden extends MW_WP_Form_Abstract_Form_Field {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
* Modified : April 7, 2015
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Field_Hidden extends MW_WP_Form_Abstract_Form_Field {
|
classes/form-fields/class.image.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : May 17, 2013
|
9 |
* Modified : April 1, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Field_Image extends MW_WP_Form_Abstract_Form_Field {
|
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 |
*/
|
13 |
class MW_WP_Form_Field_Image extends MW_WP_Form_Abstract_Form_Field {
|
classes/form-fields/class.number.php
ADDED
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
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 |
+
*/
|
13 |
+
class MW_WP_Form_Field_Number extends MW_WP_Form_Abstract_Form_Field {
|
14 |
+
|
15 |
+
/**
|
16 |
+
* $type
|
17 |
+
* フォームタグの種類 input|select|button|error|other
|
18 |
+
* @var string
|
19 |
+
*/
|
20 |
+
public $type = 'input';
|
21 |
+
|
22 |
+
/**
|
23 |
+
* set_names
|
24 |
+
* shortcode_name、display_nameを定義。各子クラスで上書きする。
|
25 |
+
* @return array shortcode_name, display_name
|
26 |
+
*/
|
27 |
+
protected function set_names() {
|
28 |
+
return array(
|
29 |
+
'shortcode_name' => 'mwform_number',
|
30 |
+
'display_name' => __( 'Number', MWF_Config::DOMAIN ),
|
31 |
+
);
|
32 |
+
}
|
33 |
+
|
34 |
+
/**
|
35 |
+
* set_defaults
|
36 |
+
* $this->defaultsを設定し返す
|
37 |
+
* @return array
|
38 |
+
*/
|
39 |
+
protected function set_defaults() {
|
40 |
+
return array(
|
41 |
+
'name' => '',
|
42 |
+
'id' => null,
|
43 |
+
'value' => '',
|
44 |
+
'min' => null,
|
45 |
+
'max' => null,
|
46 |
+
'step' => 1,
|
47 |
+
'placeholder' => null,
|
48 |
+
'show_error' => 'true',
|
49 |
+
);
|
50 |
+
}
|
51 |
+
|
52 |
+
/**
|
53 |
+
* input_page
|
54 |
+
* 入力ページでのフォーム項目を返す
|
55 |
+
* @return string html
|
56 |
+
*/
|
57 |
+
protected function input_page() {
|
58 |
+
$value = $this->Data->get_raw( $this->atts['name'] );
|
59 |
+
if ( is_null( $value ) ) {
|
60 |
+
$value = $this->atts['value'];
|
61 |
+
}
|
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'],
|
68 |
+
'step' => $this->atts['step'],
|
69 |
+
'placeholder' => $this->atts['placeholder'],
|
70 |
+
) );
|
71 |
+
if ( $this->atts['show_error'] !== 'false' ) {
|
72 |
+
$_ret .= $this->get_error( $this->atts['name'] );
|
73 |
+
}
|
74 |
+
return $_ret;
|
75 |
+
}
|
76 |
+
|
77 |
+
/**
|
78 |
+
* confirm_page
|
79 |
+
* 確認ページでのフォーム項目を返す
|
80 |
+
* @return string HTML
|
81 |
+
*/
|
82 |
+
protected function confirm_page() {
|
83 |
+
$value = $this->Data->get_raw( $this->atts['name'] );
|
84 |
+
$_ret = esc_html( $value );
|
85 |
+
$_ret .= $this->Form->hidden( $this->atts['name'], $value );
|
86 |
+
return $_ret;
|
87 |
+
}
|
88 |
+
|
89 |
+
/**
|
90 |
+
* add_mwform_tag_generator
|
91 |
+
* フォームタグジェネレーター
|
92 |
+
*/
|
93 |
+
public function mwform_tag_generator_dialog( array $options = array() ) {
|
94 |
+
?>
|
95 |
+
<p>
|
96 |
+
<strong>name<span class="mwf_require">*</span></strong>
|
97 |
+
<?php $name = $this->get_value_for_generator( 'name', $options ); ?>
|
98 |
+
<input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" />
|
99 |
+
</p>
|
100 |
+
<p>
|
101 |
+
<strong>id</strong>
|
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 ); ?>
|
108 |
+
<input type="text" name="min" value="<?php echo esc_attr( $min ); ?>" />
|
109 |
+
</p>
|
110 |
+
<p>
|
111 |
+
<strong>max</strong>
|
112 |
+
<?php $max = $this->get_value_for_generator( 'max', $options ); ?>
|
113 |
+
<input type="text" name="max" value="<?php echo esc_attr( $max ); ?>" />
|
114 |
+
</p>
|
115 |
+
<p>
|
116 |
+
<strong>step</strong>
|
117 |
+
<?php $step = $this->get_value_for_generator( 'step', $options ); ?>
|
118 |
+
<input type="text" name="step" value="<?php echo esc_attr( $step ); ?>" />
|
119 |
+
</p>
|
120 |
+
<p>
|
121 |
+
<strong>placeholder</strong>
|
122 |
+
<?php $placeholder = $this->get_value_for_generator( 'placeholder', $options ); ?>
|
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 |
+
}
|
132 |
+
}
|
classes/form-fields/class.password.php
CHANGED
@@ -2,12 +2,12 @@
|
|
2 |
/**
|
3 |
* Name : MW WP Form Password
|
4 |
* Description: パスワードフィールドを出力
|
5 |
-
* Version : 1.5.
|
6 |
* Author : Takashi Kitajima
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
-
* Modified :
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Field_Password extends MW_WP_Form_Abstract_Form_Field {
|
@@ -41,7 +41,7 @@ class MW_WP_Form_Field_Password extends MW_WP_Form_Abstract_Form_Field {
|
|
41 |
'name' => '',
|
42 |
'id' => null,
|
43 |
'size' => 60,
|
44 |
-
'maxlength' =>
|
45 |
'value' => '',
|
46 |
'placeholder' => null,
|
47 |
'show_error' => 'true',
|
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 |
*/
|
13 |
class MW_WP_Form_Field_Password extends MW_WP_Form_Abstract_Form_Field {
|
41 |
'name' => '',
|
42 |
'id' => null,
|
43 |
'size' => 60,
|
44 |
+
'maxlength' => null,
|
45 |
'value' => '',
|
46 |
'placeholder' => null,
|
47 |
'show_error' => 'true',
|
classes/form-fields/class.radio.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
* Modified : April 24, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Field_Radio extends MW_WP_Form_Abstract_Form_Field {
|
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 |
*/
|
13 |
class MW_WP_Form_Field_Radio extends MW_WP_Form_Abstract_Form_Field {
|
classes/form-fields/class.range.php
ADDED
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
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 |
+
*/
|
13 |
+
class MW_WP_Form_Field_Range extends MW_WP_Form_Abstract_Form_Field {
|
14 |
+
|
15 |
+
/**
|
16 |
+
* $type
|
17 |
+
* フォームタグの種類 input|select|button|error|other
|
18 |
+
* @var string
|
19 |
+
*/
|
20 |
+
public $type = 'input';
|
21 |
+
|
22 |
+
/**
|
23 |
+
* set_names
|
24 |
+
* shortcode_name、display_nameを定義。各子クラスで上書きする。
|
25 |
+
* @return array shortcode_name, display_name
|
26 |
+
*/
|
27 |
+
protected function set_names() {
|
28 |
+
return array(
|
29 |
+
'shortcode_name' => 'mwform_range',
|
30 |
+
'display_name' => __( 'Range', MWF_Config::DOMAIN ),
|
31 |
+
);
|
32 |
+
}
|
33 |
+
|
34 |
+
/**
|
35 |
+
* set_defaults
|
36 |
+
* $this->defaultsを設定し返す
|
37 |
+
* @return array
|
38 |
+
*/
|
39 |
+
protected function set_defaults() {
|
40 |
+
return array(
|
41 |
+
'name' => '',
|
42 |
+
'id' => null,
|
43 |
+
'value' => '',
|
44 |
+
'min' => 0,
|
45 |
+
'max' => 100,
|
46 |
+
'step' => 1,
|
47 |
+
'show_error' => 'true',
|
48 |
+
);
|
49 |
+
}
|
50 |
+
|
51 |
+
/**
|
52 |
+
* input_page
|
53 |
+
* 入力ページでのフォーム項目を返す
|
54 |
+
* @return string html
|
55 |
+
*/
|
56 |
+
protected function input_page() {
|
57 |
+
$value = $this->Data->get_raw( $this->atts['name'] );
|
58 |
+
if ( is_null( $value ) ) {
|
59 |
+
$value = $this->atts['value'];
|
60 |
+
}
|
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'],
|
67 |
+
'step' => $this->atts['step'],
|
68 |
+
) );
|
69 |
+
if ( $this->atts['show_error'] !== 'false' ) {
|
70 |
+
$_ret .= $this->get_error( $this->atts['name'] );
|
71 |
+
}
|
72 |
+
return $_ret;
|
73 |
+
}
|
74 |
+
|
75 |
+
/**
|
76 |
+
* confirm_page
|
77 |
+
* 確認ページでのフォーム項目を返す
|
78 |
+
* @return string HTML
|
79 |
+
*/
|
80 |
+
protected function confirm_page() {
|
81 |
+
$value = $this->Data->get_raw( $this->atts['name'] );
|
82 |
+
$_ret = esc_html( $value );
|
83 |
+
$_ret .= $this->Form->hidden( $this->atts['name'], $value );
|
84 |
+
return $_ret;
|
85 |
+
}
|
86 |
+
|
87 |
+
/**
|
88 |
+
* add_mwform_tag_generator
|
89 |
+
* フォームタグジェネレーター
|
90 |
+
*/
|
91 |
+
public function mwform_tag_generator_dialog( array $options = array() ) {
|
92 |
+
?>
|
93 |
+
<p>
|
94 |
+
<strong>name<span class="mwf_require">*</span></strong>
|
95 |
+
<?php $name = $this->get_value_for_generator( 'name', $options ); ?>
|
96 |
+
<input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" />
|
97 |
+
</p>
|
98 |
+
<p>
|
99 |
+
<strong>id</strong>
|
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 ); ?>
|
106 |
+
<input type="text" name="min" value="<?php echo esc_attr( $min ); ?>" />
|
107 |
+
</p>
|
108 |
+
<p>
|
109 |
+
<strong>max</strong>
|
110 |
+
<?php $max = $this->get_value_for_generator( 'max', $options ); ?>
|
111 |
+
<input type="text" name="max" value="<?php echo esc_attr( $max ); ?>" />
|
112 |
+
</p>
|
113 |
+
<p>
|
114 |
+
<strong>step</strong>
|
115 |
+
<?php $step = $this->get_value_for_generator( 'step', $options ); ?>
|
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 |
+
}
|
125 |
+
}
|
classes/form-fields/class.select.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
* Modified : April 1, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Field_Select extends MW_WP_Form_Abstract_Form_Field {
|
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 |
*/
|
13 |
class MW_WP_Form_Field_Select extends MW_WP_Form_Abstract_Form_Field {
|
classes/form-fields/class.submit-button.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
* Modified : January 2, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Field_Submit_Button extends MW_WP_Form_Abstract_Form_Field {
|
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 |
*/
|
13 |
class MW_WP_Form_Field_Submit_Button extends MW_WP_Form_Abstract_Form_Field {
|
classes/form-fields/class.submit.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
* Modified : January 2, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Field_Submit extends MW_WP_Form_Abstract_Form_Field {
|
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 |
*/
|
13 |
class MW_WP_Form_Field_Submit extends MW_WP_Form_Abstract_Form_Field {
|
classes/form-fields/class.tel.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
* Modified : April 10, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Field_Tel extends MW_WP_Form_Abstract_Form_Field {
|
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 |
*/
|
13 |
class MW_WP_Form_Field_Tel extends MW_WP_Form_Abstract_Form_Field {
|
classes/form-fields/class.text.php
CHANGED
@@ -2,12 +2,12 @@
|
|
2 |
/**
|
3 |
* Name : MW WP Form Field Text
|
4 |
* Description: テキストフィールドを出力
|
5 |
-
* Version : 1.5.
|
6 |
* Author : Takashi Kitajima
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
-
* Modified :
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Field_Text extends MW_WP_Form_Abstract_Form_Field {
|
@@ -41,7 +41,7 @@ class MW_WP_Form_Field_Text extends MW_WP_Form_Abstract_Form_Field {
|
|
41 |
'name' => '',
|
42 |
'id' => null,
|
43 |
'size' => 60,
|
44 |
-
'maxlength' =>
|
45 |
'value' => '',
|
46 |
'placeholder' => null,
|
47 |
'show_error' => 'true',
|
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 |
*/
|
13 |
class MW_WP_Form_Field_Text extends MW_WP_Form_Abstract_Form_Field {
|
41 |
'name' => '',
|
42 |
'id' => null,
|
43 |
'size' => 60,
|
44 |
+
'maxlength' => null,
|
45 |
'value' => '',
|
46 |
'placeholder' => null,
|
47 |
'show_error' => 'true',
|
classes/form-fields/class.textarea.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
* Modified : April 1, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Field_Textarea extends MW_WP_Form_Abstract_Form_Field {
|
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 |
*/
|
13 |
class MW_WP_Form_Field_Textarea extends MW_WP_Form_Abstract_Form_Field {
|
classes/form-fields/class.url.php
ADDED
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
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 |
+
*/
|
13 |
+
class MW_WP_Form_Field_Url extends MW_WP_Form_Abstract_Form_Field {
|
14 |
+
|
15 |
+
/**
|
16 |
+
* $type
|
17 |
+
* フォームタグの種類 input|select|button|error|other
|
18 |
+
* @var string
|
19 |
+
*/
|
20 |
+
public $type = 'input';
|
21 |
+
|
22 |
+
/**
|
23 |
+
* set_names
|
24 |
+
* shortcode_name、display_nameを定義。各子クラスで上書きする。
|
25 |
+
* @return array shortcode_name, display_name
|
26 |
+
*/
|
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 |
+
|
34 |
+
/**
|
35 |
+
* set_defaults
|
36 |
+
* $this->defaultsを設定し返す
|
37 |
+
* @return array
|
38 |
+
*/
|
39 |
+
protected function set_defaults() {
|
40 |
+
return array(
|
41 |
+
'name' => '',
|
42 |
+
'id' => null,
|
43 |
+
'size' => 60,
|
44 |
+
'maxlength' => null,
|
45 |
+
'value' => '',
|
46 |
+
'placeholder' => null,
|
47 |
+
'show_error' => 'true',
|
48 |
+
'conv_half_alphanumeric' => 'true',
|
49 |
+
);
|
50 |
+
}
|
51 |
+
|
52 |
+
/**
|
53 |
+
* input_page
|
54 |
+
* 入力ページでのフォーム項目を返す
|
55 |
+
* @return string html
|
56 |
+
*/
|
57 |
+
protected function input_page() {
|
58 |
+
$conv_half_alphanumeric = 'true';
|
59 |
+
if ( $this->atts['conv_half_alphanumeric'] !== 'true' ) {
|
60 |
+
$conv_half_alphanumeric = null;
|
61 |
+
}
|
62 |
+
$value = $this->Data->get_raw( $this->atts['name'] );
|
63 |
+
if ( is_null( $value ) ) {
|
64 |
+
$value = $this->atts['value'];
|
65 |
+
}
|
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,
|
72 |
+
'placeholder' => $this->atts['placeholder'],
|
73 |
+
'conv-half-alphanumeric' => $conv_half_alphanumeric,
|
74 |
+
) );
|
75 |
+
if ( $this->atts['show_error'] !== 'false' ) {
|
76 |
+
$_ret .= $this->get_error( $this->atts['name'] );
|
77 |
+
}
|
78 |
+
return $_ret;
|
79 |
+
}
|
80 |
+
|
81 |
+
/**
|
82 |
+
* confirm_page
|
83 |
+
* 確認ページでのフォーム項目を返す
|
84 |
+
* @return string HTML
|
85 |
+
*/
|
86 |
+
protected function confirm_page() {
|
87 |
+
$value = $this->Data->get_raw( $this->atts['name'] );
|
88 |
+
$_ret = esc_html( $value );
|
89 |
+
$_ret .= $this->Form->hidden( $this->atts['name'], $value );
|
90 |
+
return $_ret;
|
91 |
+
}
|
92 |
+
|
93 |
+
/**
|
94 |
+
* add_mwform_tag_generator
|
95 |
+
* フォームタグジェネレーター
|
96 |
+
*/
|
97 |
+
public function mwform_tag_generator_dialog( array $options = array() ) {
|
98 |
+
?>
|
99 |
+
<p>
|
100 |
+
<strong>name<span class="mwf_require">*</span></strong>
|
101 |
+
<?php $name = $this->get_value_for_generator( 'name', $options ); ?>
|
102 |
+
<input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" />
|
103 |
+
</p>
|
104 |
+
<p>
|
105 |
+
<strong>id</strong>
|
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 ); ?>
|
112 |
+
<input type="text" name="size" value="<?php echo esc_attr( $size ); ?>" />
|
113 |
+
</p>
|
114 |
+
<p>
|
115 |
+
<strong>maxlength</strong>
|
116 |
+
<?php $maxlength = $this->get_value_for_generator( 'maxlength', $options ); ?>
|
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>
|
124 |
+
<p>
|
125 |
+
<strong>placeholder</strong>
|
126 |
+
<?php $placeholder = $this->get_value_for_generator( 'placeholder', $options ); ?>
|
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 |
+
}
|
141 |
+
}
|
classes/form-fields/class.zip.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
* Modified : April 10, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Field_Zip extends MW_WP_Form_Abstract_Form_Field {
|
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 |
*/
|
13 |
class MW_WP_Form_Field_Zip extends MW_WP_Form_Abstract_Form_Field {
|
classes/functions.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : May 29, 2013
|
9 |
* Modified : May 26, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MWF_Functions {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : May 29, 2013
|
9 |
* Modified : May 26, 2015
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MWF_Functions {
|
classes/models/class.abstract-form-field.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
* Modified : June 23, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
abstract class MW_WP_Form_Abstract_Form_Field {
|
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 |
*/
|
13 |
abstract class MW_WP_Form_Abstract_Form_Field {
|
classes/models/class.abstract-validation-rule.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 19, 2014
|
9 |
* Modified : March 26, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
abstract class MW_WP_Form_Abstract_Validation_Rule {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 19, 2014
|
9 |
* Modified : March 26, 2015
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
abstract class MW_WP_Form_Abstract_Validation_Rule {
|
classes/models/class.admin.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : February 21, 2013
|
9 |
* Modified : May 25, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Admin {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : February 21, 2013
|
9 |
* Modified : May 25, 2015
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Admin {
|
classes/models/class.akismet.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : April 30, 2014
|
9 |
* Modified : July 24, 2014
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Akismet {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : April 30, 2014
|
9 |
* Modified : July 24, 2014
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Akismet {
|
classes/models/class.contact-data-setting.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : January 1, 2015
|
9 |
* Modified : May 26, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Contact_Data_Setting {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : January 1, 2015
|
9 |
* Modified : May 26, 2015
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Contact_Data_Setting {
|
classes/models/class.contact-data.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Author URI : http://2inc.org
|
7 |
* Created : January 1, 2015
|
8 |
* Modified :
|
9 |
-
* License : GPLv2
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
12 |
class MW_WP_Form_Contact_Data {
|
6 |
* Author URI : http://2inc.org
|
7 |
* Created : January 1, 2015
|
8 |
* Modified :
|
9 |
+
* License : GPLv2 or later
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
12 |
class MW_WP_Form_Contact_Data {
|
classes/models/class.csv.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Author URI : http://2inc.org
|
7 |
* Created : April 3, 2015
|
8 |
* Modified : May 26, 2015
|
9 |
-
* License : GPLv2
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
12 |
class MW_WP_Form_CSV {
|
6 |
* Author URI : http://2inc.org
|
7 |
* Created : April 3, 2015
|
8 |
* Modified : May 26, 2015
|
9 |
+
* License : GPLv2 or later
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
12 |
class MW_WP_Form_CSV {
|
classes/models/class.data.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : October 10, 2013
|
9 |
* Modified : May 6, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Data {
|
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 |
*/
|
13 |
class MW_WP_Form_Data {
|
classes/models/class.error.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Author URI : http://2inc.org
|
7 |
* Created : July 17, 2012
|
8 |
* Modified : December 31, 2014
|
9 |
-
* License : GPLv2
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
12 |
class MW_WP_Form_Error {
|
6 |
* Author URI : http://2inc.org
|
7 |
* Created : July 17, 2012
|
8 |
* Modified : December 31, 2014
|
9 |
+
* License : GPLv2 or later
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
12 |
class MW_WP_Form_Error {
|
classes/models/class.file.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : October 10, 2013
|
9 |
* Modified : September 1, 2014
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_File {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : October 10, 2013
|
9 |
* Modified : September 1, 2014
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_File {
|
classes/models/class.form.php
CHANGED
@@ -2,12 +2,12 @@
|
|
2 |
/**
|
3 |
* Name : MW WP Form Form
|
4 |
* Description: フォームヘルパー
|
5 |
-
* Version : 1.
|
6 |
* Author : Takashi Kitajima
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : September 25, 2012
|
9 |
-
* Modified :
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Form {
|
@@ -218,7 +218,7 @@ class MW_WP_Form_Form {
|
|
218 |
$defaults = array(
|
219 |
'id' => null,
|
220 |
'size' => 60,
|
221 |
-
'maxlength' =>
|
222 |
'value' => '',
|
223 |
'placeholder' => null,
|
224 |
'conv-half-alphanumeric' => null,
|
@@ -233,6 +233,109 @@ class MW_WP_Form_Form {
|
|
233 |
);
|
234 |
}
|
235 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
236 |
/**
|
237 |
* input[type=hidden]タグ生成
|
238 |
*
|
@@ -259,7 +362,7 @@ class MW_WP_Form_Form {
|
|
259 |
$defaults = array(
|
260 |
'id' => null,
|
261 |
'size' => 60,
|
262 |
-
'maxlength' =>
|
263 |
'value' => '',
|
264 |
'placeholder' => null,
|
265 |
);
|
@@ -571,10 +674,11 @@ class MW_WP_Form_Form {
|
|
571 |
*/
|
572 |
public function datepicker( $name, $options = array() ) {
|
573 |
$defaults = array(
|
574 |
-
'id'
|
575 |
-
'size'
|
576 |
-
'js'
|
577 |
-
'value'
|
|
|
578 |
);
|
579 |
$options = array_merge( $defaults, $options );
|
580 |
$_options = $options;
|
@@ -653,4 +757,4 @@ class MW_WP_Form_Form {
|
|
653 |
return $id;
|
654 |
}
|
655 |
}
|
656 |
-
}
|
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 |
*/
|
13 |
class MW_WP_Form_Form {
|
218 |
$defaults = array(
|
219 |
'id' => null,
|
220 |
'size' => 60,
|
221 |
+
'maxlength' => null,
|
222 |
'value' => '',
|
223 |
'placeholder' => null,
|
224 |
'conv-half-alphanumeric' => null,
|
233 |
);
|
234 |
}
|
235 |
|
236 |
+
/**
|
237 |
+
* input[type=email]タグ生成
|
238 |
+
*
|
239 |
+
* @param string $name name属性
|
240 |
+
* @param array
|
241 |
+
* @return string html
|
242 |
+
*/
|
243 |
+
public function email( $name, $options = array() ) {
|
244 |
+
$defaults = array(
|
245 |
+
'id' => null,
|
246 |
+
'size' => 60,
|
247 |
+
'maxlength' => null,
|
248 |
+
'value' => '',
|
249 |
+
'placeholder' => null,
|
250 |
+
'conv-half-alphanumeric' => null,
|
251 |
+
);
|
252 |
+
$options = array_merge( $defaults, $options );
|
253 |
+
$attributes = $this->generate_attributes( $options );
|
254 |
+
|
255 |
+
return sprintf(
|
256 |
+
'<input type="email" name="%s"%s />',
|
257 |
+
esc_attr( $name ),
|
258 |
+
$attributes
|
259 |
+
);
|
260 |
+
}
|
261 |
+
|
262 |
+
/**
|
263 |
+
* input[type=url]タグ生成
|
264 |
+
*
|
265 |
+
* @param string $name name属性
|
266 |
+
* @param array
|
267 |
+
* @return string html
|
268 |
+
*/
|
269 |
+
public function url( $name, $options = array() ) {
|
270 |
+
$defaults = array(
|
271 |
+
'id' => null,
|
272 |
+
'size' => 60,
|
273 |
+
'maxlength' => null,
|
274 |
+
'value' => '',
|
275 |
+
'placeholder' => null,
|
276 |
+
'conv-half-alphanumeric' => null,
|
277 |
+
);
|
278 |
+
$options = array_merge( $defaults, $options );
|
279 |
+
$attributes = $this->generate_attributes( $options );
|
280 |
+
|
281 |
+
return sprintf(
|
282 |
+
'<input type="url" name="%s"%s />',
|
283 |
+
esc_attr( $name ),
|
284 |
+
$attributes
|
285 |
+
);
|
286 |
+
}
|
287 |
+
|
288 |
+
/**
|
289 |
+
* input[type=range]タグ生成
|
290 |
+
*
|
291 |
+
* @param string $name name属性
|
292 |
+
* @param array
|
293 |
+
* @return string html
|
294 |
+
*/
|
295 |
+
public function range( $name, $options = array() ) {
|
296 |
+
$defaults = array(
|
297 |
+
'id' => null,
|
298 |
+
'value' => '',
|
299 |
+
'min' => 0,
|
300 |
+
'max' => 100,
|
301 |
+
'step' => 1,
|
302 |
+
);
|
303 |
+
$options = array_merge( $defaults, $options );
|
304 |
+
$attributes = $this->generate_attributes( $options );
|
305 |
+
|
306 |
+
return sprintf(
|
307 |
+
'<input type="range" name="%s"%s />',
|
308 |
+
esc_attr( $name ),
|
309 |
+
$attributes
|
310 |
+
);
|
311 |
+
}
|
312 |
+
|
313 |
+
/**
|
314 |
+
* input[type=number]タグ生成
|
315 |
+
*
|
316 |
+
* @param string $name name属性
|
317 |
+
* @param array
|
318 |
+
* @return string html
|
319 |
+
*/
|
320 |
+
public function number( $name, $options = array() ) {
|
321 |
+
$defaults = array(
|
322 |
+
'id' => null,
|
323 |
+
'value' => '',
|
324 |
+
'min' => null,
|
325 |
+
'max' => null,
|
326 |
+
'step' => 1,
|
327 |
+
'placeholder' => null,
|
328 |
+
);
|
329 |
+
$options = array_merge( $defaults, $options );
|
330 |
+
$attributes = $this->generate_attributes( $options );
|
331 |
+
|
332 |
+
return sprintf(
|
333 |
+
'<input type="number" name="%s"%s />',
|
334 |
+
esc_attr( $name ),
|
335 |
+
$attributes
|
336 |
+
);
|
337 |
+
}
|
338 |
+
|
339 |
/**
|
340 |
* input[type=hidden]タグ生成
|
341 |
*
|
362 |
$defaults = array(
|
363 |
'id' => null,
|
364 |
'size' => 60,
|
365 |
+
'maxlength' => null,
|
366 |
'value' => '',
|
367 |
'placeholder' => null,
|
368 |
);
|
674 |
*/
|
675 |
public function datepicker( $name, $options = array() ) {
|
676 |
$defaults = array(
|
677 |
+
'id' => null,
|
678 |
+
'size' => 30,
|
679 |
+
'js' => '',
|
680 |
+
'value' => '',
|
681 |
+
'placeholder' => null,
|
682 |
);
|
683 |
$options = array_merge( $defaults, $options );
|
684 |
$_options = $options;
|
757 |
return $id;
|
758 |
}
|
759 |
}
|
760 |
+
}
|
classes/models/class.mail.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 20, 2012
|
9 |
* Modified : April 14, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Mail {
|
@@ -85,32 +85,29 @@ class MW_WP_Form_Mail {
|
|
85 |
$temp_dir = apply_filters( 'mwform_log_directory', $temp_dir );
|
86 |
}
|
87 |
|
88 |
-
$
|
89 |
-
|
90 |
-
$headers =
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
$
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
} else {
|
112 |
-
@wp_mail( $to, $subject, $body, $headers, $this->attachments );
|
113 |
-
}
|
114 |
}
|
115 |
|
116 |
remove_action( 'phpmailer_init' , array( $this, 'set_return_path' ) );
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 20, 2012
|
9 |
* Modified : April 14, 2015
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Mail {
|
85 |
$temp_dir = apply_filters( 'mwform_log_directory', $temp_dir );
|
86 |
}
|
87 |
|
88 |
+
$headers = array();
|
89 |
+
if ( $this->cc ) {
|
90 |
+
$headers[] = 'Cc: ' . $this->cc;
|
91 |
+
}
|
92 |
+
if ( $this->bcc ) {
|
93 |
+
$headers[] = 'Bcc: ' . $this->bcc;
|
94 |
+
}
|
95 |
+
$to = trim( $this->to );
|
96 |
+
if ( !empty( $File ) ) {
|
97 |
+
$contents = sprintf(
|
98 |
+
"====================\n\nSend Date: %s\nTo: %s\nSender: %s\nFrom: %s\nSubject: %s\nheaders:%s\n-----\n%s\n-----\nattachments:\n%s\n\n",
|
99 |
+
date( 'M j Y, H:i:s' ),
|
100 |
+
$to,
|
101 |
+
$sender,
|
102 |
+
$from,
|
103 |
+
$subject,
|
104 |
+
implode( "\n", $headers ),
|
105 |
+
$body,
|
106 |
+
implode( "\n", $this->attachments )
|
107 |
+
);
|
108 |
+
file_put_contents( $temp_dir . '/mw-wp-form-debug.log', $contents, FILE_APPEND );
|
109 |
+
} else {
|
110 |
+
@wp_mail( $to, $subject, $body, $headers, $this->attachments );
|
|
|
|
|
|
|
111 |
}
|
112 |
|
113 |
remove_action( 'phpmailer_init' , array( $this, 'set_return_path' ) );
|
classes/models/class.session.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 17, 2012
|
9 |
* Modified : December 31, 2014
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Session {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 17, 2012
|
9 |
* Modified : December 31, 2014
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Session {
|
classes/models/class.setting.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Author URI : http://2inc.org
|
7 |
* Created : December 31, 2014
|
8 |
* Modified : April 15, 2015
|
9 |
-
* License : GPLv2
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
12 |
class MW_WP_Form_Setting {
|
6 |
* Author URI : http://2inc.org
|
7 |
* Created : December 31, 2014
|
8 |
* Modified : April 15, 2015
|
9 |
+
* License : GPLv2 or later
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
12 |
class MW_WP_Form_Setting {
|
classes/models/class.validation.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 20, 2012
|
9 |
* Modified : April 15, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 20, 2012
|
9 |
* Modified : April 15, 2015
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation {
|
classes/services/class.exec-shortcode.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : December 31, 2014
|
9 |
* Modified : April 14, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Exec_Shortcode {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : December 31, 2014
|
9 |
* Modified : April 14, 2015
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Exec_Shortcode {
|
classes/services/class.mail-parser.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : April 14, 2015
|
9 |
* Modified : May 25, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Mail_Parser {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : April 14, 2015
|
9 |
* Modified : May 25, 2015
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Mail_Parser {
|
classes/services/class.mail.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Author URI : http://2inc.org
|
7 |
* Created : January 1, 2015
|
8 |
* Modified : April 14, 2015
|
9 |
-
* License : GPLv2
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
12 |
class MW_WP_Form_Mail_Service {
|
6 |
* Author URI : http://2inc.org
|
7 |
* Created : January 1, 2015
|
8 |
* Modified : April 14, 2015
|
9 |
+
* License : GPLv2 or later
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
12 |
class MW_WP_Form_Mail_Service {
|
classes/services/class.redirected.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Author URI : http://2inc.org
|
7 |
* Created : December 31, 2014
|
8 |
* Modified : April 3, 2015
|
9 |
-
* License : GPLv2
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
12 |
class MW_WP_Form_Redirected {
|
6 |
* Author URI : http://2inc.org
|
7 |
* Created : December 31, 2014
|
8 |
* Modified : April 3, 2015
|
9 |
+
* License : GPLv2 or later
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
12 |
class MW_WP_Form_Redirected {
|
classes/validation-rules/class.akismet.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 3, 2014
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_Akismet extends MW_WP_Form_Abstract_Validation_Rule {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 3, 2014
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_Akismet extends MW_WP_Form_Abstract_Validation_Rule {
|
classes/validation-rules/class.alpha.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_Alpha extends MW_WP_Form_Abstract_Validation_Rule {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_Alpha extends MW_WP_Form_Abstract_Validation_Rule {
|
classes/validation-rules/class.alphanumeric.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_AlphaNumeric extends MW_WP_Form_Abstract_Validation_Rule {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_AlphaNumeric extends MW_WP_Form_Abstract_Validation_Rule {
|
classes/validation-rules/class.between.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_Between extends MW_WP_Form_Abstract_Validation_Rule {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_Between extends MW_WP_Form_Abstract_Validation_Rule {
|
classes/validation-rules/class.date.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_Date extends MW_WP_Form_Abstract_Validation_Rule {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_Date extends MW_WP_Form_Abstract_Validation_Rule {
|
classes/validation-rules/class.eq.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_Eq extends MW_WP_Form_Abstract_Validation_Rule {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_Eq extends MW_WP_Form_Abstract_Validation_Rule {
|
classes/validation-rules/class.filesize.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : December 31, 2014
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_FileSize extends MW_WP_Form_Abstract_Validation_Rule {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : December 31, 2014
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_FileSize extends MW_WP_Form_Abstract_Validation_Rule {
|
classes/validation-rules/class.filetype.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_FileType extends MW_WP_Form_Abstract_Validation_Rule {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_FileType extends MW_WP_Form_Abstract_Validation_Rule {
|
classes/validation-rules/class.hiragana.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_Hiragana extends MW_WP_Form_Abstract_Validation_Rule {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_Hiragana extends MW_WP_Form_Abstract_Validation_Rule {
|
classes/validation-rules/class.in.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_In extends MW_WP_Form_Abstract_Validation_Rule {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_In extends MW_WP_Form_Abstract_Validation_Rule {
|
classes/validation-rules/class.katakana.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_Katakana extends MW_WP_Form_Abstract_Validation_Rule {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_Katakana extends MW_WP_Form_Abstract_Validation_Rule {
|
classes/validation-rules/class.mail.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_Mail extends MW_WP_Form_Abstract_Validation_Rule {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_Mail extends MW_WP_Form_Abstract_Validation_Rule {
|
classes/validation-rules/class.minlength.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_MinLength extends MW_WP_Form_Abstract_Validation_Rule {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_MinLength extends MW_WP_Form_Abstract_Validation_Rule {
|
classes/validation-rules/class.noempty.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_noEmpty extends MW_WP_Form_Abstract_Validation_Rule {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_noEmpty extends MW_WP_Form_Abstract_Validation_Rule {
|
classes/validation-rules/class.nofalse.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_noFalse extends MW_WP_Form_Abstract_Validation_Rule {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_noFalse extends MW_WP_Form_Abstract_Validation_Rule {
|
classes/validation-rules/class.numeric.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_Numeric extends MW_WP_Form_Abstract_Validation_Rule {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_Numeric extends MW_WP_Form_Abstract_Validation_Rule {
|
classes/validation-rules/class.required.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : December 31, 2014
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_Required extends MW_WP_Form_Abstract_Validation_Rule {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : December 31, 2014
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_Required extends MW_WP_Form_Abstract_Validation_Rule {
|
classes/validation-rules/class.tel.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_Tel extends MW_WP_Form_Abstract_Validation_Rule {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_Tel extends MW_WP_Form_Abstract_Validation_Rule {
|
classes/validation-rules/class.url.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_Url extends MW_WP_Form_Abstract_Validation_Rule {
|
@@ -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
|
50 |
<?php
|
51 |
}
|
52 |
}
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
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 esc_html_x( 'URL', 'validatioin', MWF_Config::DOMAIN ); ?></label>
|
50 |
<?php
|
51 |
}
|
52 |
}
|
classes/validation-rules/class.zip.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
-
* License : GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_Zip extends MW_WP_Form_Abstract_Validation_Rule {
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : July 21, 2014
|
9 |
* Modified : April 1, 2015
|
10 |
+
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_WP_Form_Validation_Rule_Zip extends MW_WP_Form_Abstract_Validation_Rule {
|
languages/mw-wp-form-ja.mo
CHANGED
Binary file
|
languages/mw-wp-form-ja.po
CHANGED
@@ -2,11 +2,11 @@
|
|
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 |
-
"Report-Msgid-Bugs-To:
|
7 |
-
"POT-Creation-Date: 2015-
|
8 |
-
"PO-Revision-Date: 2015-
|
9 |
-
"Last-Translator:
|
10 |
"Language-Team: Takashi Kitajima <inc@2inc.org>\n"
|
11 |
"Language: ja\n"
|
12 |
"MIME-Version: 1.0\n"
|
@@ -15,7 +15,7 @@ msgstr ""
|
|
15 |
"Plural-Forms: nplurals=1; plural=0;\n"
|
16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
17 |
"X-Poedit-Basepath: .\n"
|
18 |
-
"X-Generator: Poedit 1.
|
19 |
"X-Poedit-KeywordsList: __;_e;_x;esc_html_e;esc_html__\n"
|
20 |
"X-Poedit-SearchPath-0: ..\n"
|
21 |
|
@@ -70,7 +70,7 @@ msgstr "登録日時"
|
|
70 |
|
71 |
#: classes/controllers/class.contact-data-list.php:118
|
72 |
#: classes/models/class.csv.php:122 classes/models/class.csv.php:169
|
73 |
-
#: templates/contact-data/detail.php:
|
74 |
msgid "Response Status"
|
75 |
msgstr "対応状況"
|
76 |
|
@@ -102,27 +102,27 @@ msgstr "ボタン"
|
|
102 |
msgid "Checkbox"
|
103 |
msgstr "チェックボックス"
|
104 |
|
105 |
-
#: classes/form-fields/class.checkbox.php:
|
106 |
-
#: classes/form-fields/class.radio.php:
|
107 |
#: classes/form-fields/class.select.php:109
|
108 |
msgid "Choices"
|
109 |
msgstr "選択肢"
|
110 |
|
111 |
-
#: classes/form-fields/class.checkbox.php:
|
112 |
#: classes/form-fields/class.error.php:78
|
113 |
-
#: classes/form-fields/class.radio.php:
|
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:
|
119 |
-
#: classes/form-fields/class.radio.php:
|
120 |
#: classes/form-fields/class.select.php:114
|
121 |
msgid "Example: value1↵value2 or key1:value1↵key2:value2"
|
122 |
msgstr "例:値1↵値2 もしくは キー1:値1↵キー2:値2"
|
123 |
|
124 |
-
#: classes/form-fields/class.checkbox.php:
|
125 |
-
#: classes/form-fields/class.radio.php:
|
126 |
#: classes/form-fields/class.select.php:115
|
127 |
msgid ""
|
128 |
"You can split the post value and display value by \":\". But display value "
|
@@ -130,76 +130,82 @@ msgid ""
|
|
130 |
msgstr ""
|
131 |
"送信値と表示値を「:」で分割できます。ただし、メールでは表示値が送信されます。"
|
132 |
|
133 |
-
#: classes/form-fields/class.checkbox.php:
|
134 |
-
#: classes/form-fields/class.radio.php:
|
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:
|
140 |
-
#: classes/form-fields/class.radio.php:
|
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:
|
146 |
-
#: classes/form-fields/class.radio.php:
|
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:
|
154 |
-
#: classes/form-fields/class.datepicker.php:
|
|
|
155 |
#: classes/form-fields/class.hidden.php:84
|
156 |
#: classes/form-fields/class.password.php:112
|
157 |
-
#: classes/form-fields/class.radio.php:
|
158 |
#: classes/form-fields/class.select.php:126
|
159 |
#: classes/form-fields/class.text.php:120
|
160 |
#: classes/form-fields/class.textarea.php:114
|
|
|
161 |
msgid "Default value"
|
162 |
msgstr "初期値"
|
163 |
|
164 |
-
#: classes/form-fields/class.checkbox.php:
|
165 |
msgid "Separator string"
|
166 |
msgstr "区切り文字"
|
167 |
|
168 |
-
#: classes/form-fields/class.checkbox.php:
|
169 |
-
#: classes/form-fields/class.radio.php:
|
170 |
msgid "Display method"
|
171 |
msgstr "表示方法"
|
172 |
|
173 |
-
#: classes/form-fields/class.checkbox.php:
|
174 |
-
#: classes/form-fields/class.radio.php:
|
175 |
msgid "Arranged vertically."
|
176 |
msgstr "垂直に配置する"
|
177 |
|
178 |
-
#: classes/form-fields/class.checkbox.php:
|
179 |
-
#: classes/form-fields/class.datepicker.php:
|
|
|
180 |
#: classes/form-fields/class.file.php:115
|
181 |
#: classes/form-fields/class.image.php:119
|
|
|
182 |
#: classes/form-fields/class.password.php:122
|
183 |
-
#: classes/form-fields/class.radio.php:
|
|
|
184 |
#: classes/form-fields/class.select.php:131
|
185 |
-
#: classes/form-fields/class.tel.php:102
|
186 |
-
#: classes/form-fields/class.text.php:130
|
187 |
#: classes/form-fields/class.textarea.php:124
|
188 |
-
#: classes/form-fields/class.zip.php:101
|
189 |
msgid "Dsiplay error"
|
190 |
msgstr "エラー表示"
|
191 |
|
192 |
-
#: classes/form-fields/class.checkbox.php:
|
193 |
-
#: classes/form-fields/class.datepicker.php:
|
|
|
194 |
#: classes/form-fields/class.file.php:117
|
195 |
#: classes/form-fields/class.image.php:121
|
|
|
196 |
#: classes/form-fields/class.password.php:124
|
197 |
-
#: classes/form-fields/class.radio.php:
|
|
|
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.zip.php:103
|
203 |
msgid "Don't display error."
|
204 |
msgstr "エラーを表示しない"
|
205 |
|
@@ -216,6 +222,22 @@ msgstr "確認画面へ"
|
|
216 |
msgid "Datepicker"
|
217 |
msgstr "日付"
|
218 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
219 |
#: classes/form-fields/class.error.php:30
|
220 |
msgid "Error Message"
|
221 |
msgstr "エラーメッセージ"
|
@@ -248,6 +270,10 @@ msgstr "hiddenの値を表示"
|
|
248 |
msgid "Image"
|
249 |
msgstr "画像フィールド"
|
250 |
|
|
|
|
|
|
|
|
|
251 |
#: classes/form-fields/class.password.php:30
|
252 |
msgid "Password"
|
253 |
msgstr "パスワードフィールド"
|
@@ -256,6 +282,10 @@ msgstr "パスワードフィールド"
|
|
256 |
msgid "Radio"
|
257 |
msgstr "ラジオボタン"
|
258 |
|
|
|
|
|
|
|
|
|
259 |
#: classes/form-fields/class.select.php:30
|
260 |
msgid "Select"
|
261 |
msgstr "セレクトボックス"
|
@@ -286,16 +316,6 @@ msgstr "送信ボタン"
|
|
286 |
msgid "Tel"
|
287 |
msgstr "電話番号"
|
288 |
|
289 |
-
#: classes/form-fields/class.tel.php:107
|
290 |
-
#: classes/form-fields/class.text.php:135
|
291 |
-
#: classes/form-fields/class.zip.php:106
|
292 |
-
msgid "Convert half alphanumeric"
|
293 |
-
msgstr "半角英数字に変換"
|
294 |
-
|
295 |
-
#: classes/form-fields/class.tel.php:109 classes/form-fields/class.zip.php:108
|
296 |
-
msgid "Don't Convert."
|
297 |
-
msgstr "変換しない"
|
298 |
-
|
299 |
#: classes/form-fields/class.text.php:30
|
300 |
msgid "Text"
|
301 |
msgstr "テキストフィールド"
|
@@ -308,16 +328,21 @@ msgstr "変換する"
|
|
308 |
msgid "Textarea"
|
309 |
msgstr "テキストエリア"
|
310 |
|
|
|
|
|
|
|
|
|
|
|
311 |
#: classes/form-fields/class.zip.php:30
|
312 |
#: classes/validation-rules/class.zip.php:49
|
313 |
msgid "Zip Code"
|
314 |
msgstr "郵便番号"
|
315 |
|
316 |
-
#: classes/functions.php:
|
317 |
msgid "Uploaded from "
|
318 |
msgstr "Uploaded from "
|
319 |
|
320 |
-
#: classes/functions.php:
|
321 |
msgid "Tracking Number"
|
322 |
msgstr "問い合わせ番号"
|
323 |
|
@@ -334,7 +359,7 @@ msgid "Supported"
|
|
334 |
msgstr "対応済み"
|
335 |
|
336 |
#: classes/models/class.csv.php:148 classes/models/class.csv.php:172
|
337 |
-
#: templates/contact-data/detail.php:
|
338 |
msgid "Memo"
|
339 |
msgstr "メモ"
|
340 |
|
@@ -476,8 +501,10 @@ msgid "This is not the format of a url."
|
|
476 |
msgstr "URLの形式ではありません。"
|
477 |
|
478 |
#: classes/validation-rules/class.url.php:49
|
|
|
|
|
479 |
msgid "URL"
|
480 |
-
msgstr "URL"
|
481 |
|
482 |
#: classes/validation-rules/class.zip.php:32
|
483 |
msgid "This is not the format of a zip code."
|
@@ -583,8 +610,7 @@ msgstr "CC(E-mailアドレス)"
|
|
583 |
msgid "BCC ( E-mail address )"
|
584 |
msgstr "BCC(E-mailアドレス)"
|
585 |
|
586 |
-
#: templates/admin/admin-mail-options.php:25
|
587 |
-
#: templates/admin/mail-options.php:9
|
588 |
msgid "Subject"
|
589 |
msgstr "件名"
|
590 |
|
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.0\n"
|
6 |
+
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mw-wp-form\n"
|
7 |
+
"POT-Creation-Date: 2015-08-20 08:55+0900\n"
|
8 |
+
"PO-Revision-Date: 2015-08-20 08:55+0900\n"
|
9 |
+
"Last-Translator: inc2734 <inc@2inc.org>\n"
|
10 |
"Language-Team: Takashi Kitajima <inc@2inc.org>\n"
|
11 |
"Language: ja\n"
|
12 |
"MIME-Version: 1.0\n"
|
15 |
"Plural-Forms: nplurals=1; plural=0;\n"
|
16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
17 |
"X-Poedit-Basepath: .\n"
|
18 |
+
"X-Generator: Poedit 1.8.4\n"
|
19 |
"X-Poedit-KeywordsList: __;_e;_x;esc_html_e;esc_html__\n"
|
20 |
"X-Poedit-SearchPath-0: ..\n"
|
21 |
|
70 |
|
71 |
#: classes/controllers/class.contact-data-list.php:118
|
72 |
#: classes/models/class.csv.php:122 classes/models/class.csv.php:169
|
73 |
+
#: templates/contact-data/detail.php:36
|
74 |
msgid "Response Status"
|
75 |
msgstr "対応状況"
|
76 |
|
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↵value2 or key1:value1↵key2:value2"
|
122 |
msgstr "例:値1↵値2 もしくは キー1:値1↵キー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 "
|
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 |
|
222 |
msgid "Datepicker"
|
223 |
msgstr "日付"
|
224 |
|
225 |
+
#: classes/form-fields/class.email.php:30
|
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 |
+
|
241 |
#: classes/form-fields/class.error.php:30
|
242 |
msgid "Error Message"
|
243 |
msgstr "エラーメッセージ"
|
270 |
msgid "Image"
|
271 |
msgstr "画像フィールド"
|
272 |
|
273 |
+
#: classes/form-fields/class.number.php:30
|
274 |
+
msgid "Number"
|
275 |
+
msgstr "Number フィールド"
|
276 |
+
|
277 |
#: classes/form-fields/class.password.php:30
|
278 |
msgid "Password"
|
279 |
msgstr "パスワードフィールド"
|
282 |
msgid "Radio"
|
283 |
msgstr "ラジオボタン"
|
284 |
|
285 |
+
#: classes/form-fields/class.range.php:30
|
286 |
+
msgid "Range"
|
287 |
+
msgstr "Range フィールド"
|
288 |
+
|
289 |
#: classes/form-fields/class.select.php:30
|
290 |
msgid "Select"
|
291 |
msgstr "セレクトボックス"
|
316 |
msgid "Tel"
|
317 |
msgstr "電話番号"
|
318 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
319 |
#: classes/form-fields/class.text.php:30
|
320 |
msgid "Text"
|
321 |
msgstr "テキストフィールド"
|
328 |
msgid "Textarea"
|
329 |
msgstr "テキストエリア"
|
330 |
|
331 |
+
#: classes/form-fields/class.url.php:30
|
332 |
+
msgctxt "form-field"
|
333 |
+
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 |
|
341 |
+
#: classes/functions.php:201
|
342 |
msgid "Uploaded from "
|
343 |
msgstr "Uploaded from "
|
344 |
|
345 |
+
#: classes/functions.php:300
|
346 |
msgid "Tracking Number"
|
347 |
msgstr "問い合わせ番号"
|
348 |
|
359 |
msgstr "対応済み"
|
360 |
|
361 |
#: classes/models/class.csv.php:148 classes/models/class.csv.php:172
|
362 |
+
#: templates/contact-data/detail.php:48
|
363 |
msgid "Memo"
|
364 |
msgstr "メモ"
|
365 |
|
501 |
msgstr "URLの形式ではありません。"
|
502 |
|
503 |
#: classes/validation-rules/class.url.php:49
|
504 |
+
#, fuzzy
|
505 |
+
msgctxt "validatioin"
|
506 |
msgid "URL"
|
507 |
+
msgstr "URL フィールド"
|
508 |
|
509 |
#: classes/validation-rules/class.zip.php:32
|
510 |
msgid "This is not the format of a zip code."
|
610 |
msgid "BCC ( E-mail address )"
|
611 |
msgstr "BCC(E-mailアドレス)"
|
612 |
|
613 |
+
#: templates/admin/admin-mail-options.php:25 templates/admin/mail-options.php:9
|
|
|
614 |
msgid "Subject"
|
615 |
msgstr "件名"
|
616 |
|
languages/mw-wp-form.pot
CHANGED
@@ -2,21 +2,15 @@
|
|
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 |
-
"Report-Msgid-Bugs-To:
|
7 |
-
"POT-Creation-Date: 2015-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
"PO-Revision-Date: 2015-MO-DA HO:MI+ZONE\n"
|
12 |
-
"Last-Translator:
|
13 |
-
"Language-Team:
|
14 |
-
"Plural-Forms: nplurals=1; plural=0;\n"
|
15 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
-
"X-Poedit-Basepath: .\n"
|
17 |
-
"X-Generator: Poedit 1.7.5\n"
|
18 |
-
"X-Poedit-KeywordsList: __;_e\n"
|
19 |
-
"X-Poedit-SearchPath-0: ..\n"
|
20 |
|
21 |
#: classes/controllers/class.admin-list.php:34
|
22 |
msgid "Your contribution is needed for making this plugin better."
|
@@ -69,7 +63,7 @@ msgstr ""
|
|
69 |
|
70 |
#: classes/controllers/class.contact-data-list.php:118
|
71 |
#: classes/models/class.csv.php:122 classes/models/class.csv.php:169
|
72 |
-
#: templates/contact-data/detail.php:
|
73 |
msgid "Response Status"
|
74 |
msgstr ""
|
75 |
|
@@ -101,97 +95,111 @@ msgstr ""
|
|
101 |
msgid "Checkbox"
|
102 |
msgstr ""
|
103 |
|
104 |
-
#: classes/form-fields/class.checkbox.php:
|
105 |
-
#: classes/form-fields/class.radio.php:
|
106 |
#: classes/form-fields/class.select.php:109
|
107 |
msgid "Choices"
|
108 |
msgstr ""
|
109 |
|
110 |
-
#: classes/form-fields/class.checkbox.php:
|
111 |
#: classes/form-fields/class.error.php:78
|
112 |
-
#: classes/form-fields/class.radio.php:
|
113 |
#: classes/form-fields/class.select.php:113
|
114 |
msgid "Input one line about one item."
|
115 |
msgstr ""
|
116 |
|
117 |
-
#: classes/form-fields/class.checkbox.php:
|
118 |
-
#: classes/form-fields/class.radio.php:
|
119 |
#: classes/form-fields/class.select.php:114
|
120 |
msgid "Example: value1↵value2 or key1:value1↵key2:value2"
|
121 |
msgstr ""
|
122 |
|
123 |
-
#: classes/form-fields/class.checkbox.php:
|
124 |
-
#: classes/form-fields/class.radio.php:
|
125 |
#: classes/form-fields/class.select.php:115
|
126 |
-
msgid "
|
|
|
|
|
127 |
msgstr ""
|
128 |
|
129 |
-
#: classes/form-fields/class.checkbox.php:
|
130 |
-
#: classes/form-fields/class.radio.php:
|
131 |
#: classes/form-fields/class.select.php:116
|
132 |
msgid "When you want to use \":\", please enter \"::\"."
|
133 |
msgstr ""
|
134 |
|
135 |
-
#: classes/form-fields/class.checkbox.php:
|
136 |
-
#: classes/form-fields/class.radio.php:
|
137 |
#: classes/form-fields/class.select.php:120
|
138 |
msgid "Send value by e-mail"
|
139 |
msgstr ""
|
140 |
|
141 |
-
#: classes/form-fields/class.checkbox.php:
|
142 |
-
#: classes/form-fields/class.radio.php:
|
143 |
#: classes/form-fields/class.select.php:123
|
144 |
-
msgid "
|
|
|
|
|
145 |
msgstr ""
|
146 |
|
147 |
-
#: classes/form-fields/class.checkbox.php:
|
148 |
-
#: classes/form-fields/class.datepicker.php:
|
|
|
149 |
#: classes/form-fields/class.hidden.php:84
|
150 |
#: classes/form-fields/class.password.php:112
|
151 |
-
#: classes/form-fields/class.radio.php:
|
152 |
#: classes/form-fields/class.select.php:126
|
153 |
#: classes/form-fields/class.text.php:120
|
154 |
#: classes/form-fields/class.textarea.php:114
|
|
|
155 |
msgid "Default value"
|
156 |
msgstr ""
|
157 |
|
158 |
-
#: classes/form-fields/class.checkbox.php:
|
159 |
msgid "Separator string"
|
160 |
msgstr ""
|
161 |
|
162 |
-
#: classes/form-fields/class.checkbox.php:
|
163 |
-
#: classes/form-fields/class.radio.php:
|
164 |
msgid "Display method"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#: classes/form-fields/class.checkbox.php:
|
168 |
-
#: classes/form-fields/class.radio.php:
|
169 |
msgid "Arranged vertically."
|
170 |
msgstr ""
|
171 |
|
172 |
-
#: classes/form-fields/class.checkbox.php:
|
173 |
-
#: classes/form-fields/class.datepicker.php:
|
|
|
174 |
#: classes/form-fields/class.file.php:115
|
175 |
#: classes/form-fields/class.image.php:119
|
|
|
176 |
#: classes/form-fields/class.password.php:122
|
177 |
-
#: classes/form-fields/class.radio.php:
|
|
|
178 |
#: classes/form-fields/class.select.php:131
|
179 |
-
#: classes/form-fields/class.tel.php:102
|
|
|
180 |
#: classes/form-fields/class.textarea.php:124
|
181 |
-
#: classes/form-fields/class.zip.php:101
|
182 |
msgid "Dsiplay error"
|
183 |
msgstr ""
|
184 |
|
185 |
-
#: classes/form-fields/class.checkbox.php:
|
186 |
-
#: classes/form-fields/class.datepicker.php:
|
|
|
187 |
#: classes/form-fields/class.file.php:117
|
188 |
#: classes/form-fields/class.image.php:121
|
|
|
189 |
#: classes/form-fields/class.password.php:124
|
190 |
-
#: classes/form-fields/class.radio.php:
|
|
|
191 |
#: classes/form-fields/class.select.php:133
|
192 |
-
#: classes/form-fields/class.tel.php:104
|
|
|
193 |
#: classes/form-fields/class.textarea.php:126
|
194 |
-
#: classes/form-fields/class.zip.php:103
|
195 |
msgid "Don't display error."
|
196 |
msgstr ""
|
197 |
|
@@ -208,6 +216,23 @@ msgstr ""
|
|
208 |
msgid "Datepicker"
|
209 |
msgstr ""
|
210 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
211 |
#: classes/form-fields/class.error.php:30
|
212 |
msgid "Error Message"
|
213 |
msgstr ""
|
@@ -240,6 +265,10 @@ msgstr ""
|
|
240 |
msgid "Image"
|
241 |
msgstr ""
|
242 |
|
|
|
|
|
|
|
|
|
243 |
#: classes/form-fields/class.password.php:30
|
244 |
msgid "Password"
|
245 |
msgstr ""
|
@@ -248,6 +277,10 @@ msgstr ""
|
|
248 |
msgid "Radio"
|
249 |
msgstr ""
|
250 |
|
|
|
|
|
|
|
|
|
251 |
#: classes/form-fields/class.select.php:30
|
252 |
msgid "Select"
|
253 |
msgstr ""
|
@@ -278,15 +311,6 @@ msgstr ""
|
|
278 |
msgid "Tel"
|
279 |
msgstr ""
|
280 |
|
281 |
-
#: classes/form-fields/class.tel.php:107 classes/form-fields/class.text.php:135
|
282 |
-
#: classes/form-fields/class.zip.php:106
|
283 |
-
msgid "Convert half alphanumeric"
|
284 |
-
msgstr ""
|
285 |
-
|
286 |
-
#: classes/form-fields/class.tel.php:109 classes/form-fields/class.zip.php:108
|
287 |
-
msgid "Don't Convert."
|
288 |
-
msgstr ""
|
289 |
-
|
290 |
#: classes/form-fields/class.text.php:30
|
291 |
msgid "Text"
|
292 |
msgstr ""
|
@@ -299,16 +323,21 @@ msgstr ""
|
|
299 |
msgid "Textarea"
|
300 |
msgstr ""
|
301 |
|
|
|
|
|
|
|
|
|
|
|
302 |
#: classes/form-fields/class.zip.php:30
|
303 |
#: classes/validation-rules/class.zip.php:49
|
304 |
msgid "Zip Code"
|
305 |
msgstr ""
|
306 |
|
307 |
-
#: classes/functions.php:
|
308 |
msgid "Uploaded from "
|
309 |
msgstr ""
|
310 |
|
311 |
-
#: classes/functions.php:
|
312 |
msgid "Tracking Number"
|
313 |
msgstr ""
|
314 |
|
@@ -325,7 +354,7 @@ msgid "Supported"
|
|
325 |
msgstr ""
|
326 |
|
327 |
#: classes/models/class.csv.php:148 classes/models/class.csv.php:172
|
328 |
-
#: templates/contact-data/detail.php:
|
329 |
msgid "Memo"
|
330 |
msgstr ""
|
331 |
|
@@ -467,6 +496,7 @@ msgid "This is not the format of a url."
|
|
467 |
msgstr ""
|
468 |
|
469 |
#: classes/validation-rules/class.url.php:49
|
|
|
470 |
msgid "URL"
|
471 |
msgstr ""
|
472 |
|
@@ -548,7 +578,9 @@ msgid "It is automatically converted to Tracking number when you input {%s}."
|
|
548 |
msgstr ""
|
549 |
|
550 |
#: templates/admin/admin-mail-options.php:9
|
551 |
-
msgid "
|
|
|
|
|
552 |
msgstr ""
|
553 |
|
554 |
#: templates/admin/admin-mail-options.php:12
|
@@ -570,7 +602,8 @@ msgstr ""
|
|
570 |
msgid "BCC ( E-mail address )"
|
571 |
msgstr ""
|
572 |
|
573 |
-
#: templates/admin/admin-mail-options.php:25
|
|
|
574 |
msgid "Subject"
|
575 |
msgstr ""
|
576 |
|
@@ -602,7 +635,9 @@ msgid "Automatic reply email"
|
|
602 |
msgstr ""
|
603 |
|
604 |
#: templates/admin/mail-options.php:29
|
605 |
-
msgid "
|
|
|
|
|
606 |
msgstr ""
|
607 |
|
608 |
#: templates/admin/settings.php:2
|
@@ -610,7 +645,9 @@ msgid "Activate Query string of post"
|
|
610 |
msgstr ""
|
611 |
|
612 |
#: templates/admin/settings.php:3
|
613 |
-
msgid "
|
|
|
|
|
614 |
msgstr ""
|
615 |
|
616 |
#: templates/admin/settings.php:4
|
@@ -690,7 +727,9 @@ msgid "Validation Error Page URL"
|
|
690 |
msgstr ""
|
691 |
|
692 |
#: templates/admin/url.php:29
|
693 |
-
msgid "
|
|
|
|
|
694 |
msgstr ""
|
695 |
|
696 |
#: templates/admin/url.php:30
|
@@ -726,7 +765,9 @@ msgid "Bar chart"
|
|
726 |
msgstr ""
|
727 |
|
728 |
#: templates/chart/index.php:49
|
729 |
-
msgid "
|
|
|
|
|
730 |
msgstr ""
|
731 |
|
732 |
#: templates/chart/index.php:71
|
@@ -743,7 +784,9 @@ msgid "CSV Download"
|
|
743 |
msgstr ""
|
744 |
|
745 |
#: templates/stores-inquiry-data-form-list/index.php:4
|
746 |
-
msgid "
|
|
|
|
|
747 |
msgstr ""
|
748 |
|
749 |
#: templates/stores-inquiry-data-form-list/index.php:8
|
@@ -766,6 +809,7 @@ msgstr ""
|
|
766 |
#: templates/stores-inquiry-data-form-list/index.php:19
|
767 |
msgid "cases"
|
768 |
msgstr ""
|
|
|
769 |
#. Plugin Name of the plugin/theme
|
770 |
msgid "MW WP Form"
|
771 |
msgstr ""
|
@@ -775,7 +819,10 @@ msgid "http://plugins.2inc.org/mw-wp-form/"
|
|
775 |
msgstr ""
|
776 |
|
777 |
#. Description of the plugin/theme
|
778 |
-
msgid "
|
|
|
|
|
|
|
779 |
msgstr ""
|
780 |
|
781 |
#. Author of the plugin/theme
|
2 |
# This file is distributed under the same license as the MW WP Form package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: MW WP Form 2.5.0\n"
|
6 |
+
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mw-wp-form\n"
|
7 |
+
"POT-Creation-Date: 2015-08-19 23:53:09+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
"PO-Revision-Date: 2015-MO-DA HO:MI+ZONE\n"
|
12 |
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
#: classes/controllers/class.admin-list.php:34
|
16 |
msgid "Your contribution is needed for making this plugin better."
|
63 |
|
64 |
#: classes/controllers/class.contact-data-list.php:118
|
65 |
#: classes/models/class.csv.php:122 classes/models/class.csv.php:169
|
66 |
+
#: templates/contact-data/detail.php:36
|
67 |
msgid "Response Status"
|
68 |
msgstr ""
|
69 |
|
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↵value2 or key1:value1↵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 |
|
216 |
msgid "Datepicker"
|
217 |
msgstr ""
|
218 |
|
219 |
+
#: classes/form-fields/class.email.php:30
|
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 |
+
|
236 |
#: classes/form-fields/class.error.php:30
|
237 |
msgid "Error Message"
|
238 |
msgstr ""
|
265 |
msgid "Image"
|
266 |
msgstr ""
|
267 |
|
268 |
+
#: classes/form-fields/class.number.php:30
|
269 |
+
msgid "Number"
|
270 |
+
msgstr ""
|
271 |
+
|
272 |
#: classes/form-fields/class.password.php:30
|
273 |
msgid "Password"
|
274 |
msgstr ""
|
277 |
msgid "Radio"
|
278 |
msgstr ""
|
279 |
|
280 |
+
#: classes/form-fields/class.range.php:30
|
281 |
+
msgid "Range"
|
282 |
+
msgstr ""
|
283 |
+
|
284 |
#: classes/form-fields/class.select.php:30
|
285 |
msgid "Select"
|
286 |
msgstr ""
|
311 |
msgid "Tel"
|
312 |
msgstr ""
|
313 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
314 |
#: classes/form-fields/class.text.php:30
|
315 |
msgid "Text"
|
316 |
msgstr ""
|
323 |
msgid "Textarea"
|
324 |
msgstr ""
|
325 |
|
326 |
+
#: classes/form-fields/class.url.php:30
|
327 |
+
msgctxt "form-field"
|
328 |
+
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 |
|
336 |
+
#: classes/functions.php:201
|
337 |
msgid "Uploaded from "
|
338 |
msgstr ""
|
339 |
|
340 |
+
#: classes/functions.php:300
|
341 |
msgid "Tracking Number"
|
342 |
msgstr ""
|
343 |
|
354 |
msgstr ""
|
355 |
|
356 |
#: classes/models/class.csv.php:148 classes/models/class.csv.php:172
|
357 |
+
#: templates/contact-data/detail.php:48
|
358 |
msgid "Memo"
|
359 |
msgstr ""
|
360 |
|
496 |
msgstr ""
|
497 |
|
498 |
#: classes/validation-rules/class.url.php:49
|
499 |
+
msgctxt "validatioin"
|
500 |
msgid "URL"
|
501 |
msgstr ""
|
502 |
|
578 |
msgstr ""
|
579 |
|
580 |
#: templates/admin/admin-mail-options.php:9
|
581 |
+
msgid ""
|
582 |
+
"If Admin Email Options is a blank, Automatic Replay Email Options is used as "
|
583 |
+
"Admin Email Options."
|
584 |
msgstr ""
|
585 |
|
586 |
#: templates/admin/admin-mail-options.php:12
|
602 |
msgid "BCC ( E-mail address )"
|
603 |
msgstr ""
|
604 |
|
605 |
+
#: templates/admin/admin-mail-options.php:25
|
606 |
+
#: templates/admin/mail-options.php:9
|
607 |
msgid "Subject"
|
608 |
msgstr ""
|
609 |
|
635 |
msgstr ""
|
636 |
|
637 |
#: templates/admin/mail-options.php:29
|
638 |
+
msgid ""
|
639 |
+
"Input the key to use as transmission to automatic reply email. {} is "
|
640 |
+
"unnecessary."
|
641 |
msgstr ""
|
642 |
|
643 |
#: templates/admin/settings.php:2
|
645 |
msgstr ""
|
646 |
|
647 |
#: templates/admin/settings.php:3
|
648 |
+
msgid ""
|
649 |
+
"If this field is active, MW WP Form get query string. And get post data from "
|
650 |
+
"query string \"post_id\". You can use $post's property in editor."
|
651 |
msgstr ""
|
652 |
|
653 |
#: templates/admin/settings.php:4
|
727 |
msgstr ""
|
728 |
|
729 |
#: templates/admin/url.php:29
|
730 |
+
msgid ""
|
731 |
+
"This urls are the redirection urls at the time of button press. When URL "
|
732 |
+
"setting is empty, The page redirect on the same page."
|
733 |
msgstr ""
|
734 |
|
735 |
#: templates/admin/url.php:30
|
765 |
msgstr ""
|
766 |
|
767 |
#: templates/chart/index.php:49
|
768 |
+
msgid ""
|
769 |
+
"Separator string (If the check box. If the separator attribute is not set to "
|
770 |
+
"\",\")"
|
771 |
msgstr ""
|
772 |
|
773 |
#: templates/chart/index.php:71
|
784 |
msgstr ""
|
785 |
|
786 |
#: templates/stores-inquiry-data-form-list/index.php:4
|
787 |
+
msgid ""
|
788 |
+
"You can see the inquiry data that are saved in the database by clicking on "
|
789 |
+
"the link below."
|
790 |
msgstr ""
|
791 |
|
792 |
#: templates/stores-inquiry-data-form-list/index.php:8
|
809 |
#: templates/stores-inquiry-data-form-list/index.php:19
|
810 |
msgid "cases"
|
811 |
msgstr ""
|
812 |
+
|
813 |
#. Plugin Name of the plugin/theme
|
814 |
msgid "MW WP Form"
|
815 |
msgstr ""
|
819 |
msgstr ""
|
820 |
|
821 |
#. Description of the plugin/theme
|
822 |
+
msgid ""
|
823 |
+
"MW WP Form is shortcode base contact form plugin. This plugin have many "
|
824 |
+
"feature. For example you can use many validation rules, contact data saving, "
|
825 |
+
"and chart aggregation using saved contact data."
|
826 |
msgstr ""
|
827 |
|
828 |
#. Author of the plugin/theme
|
mw-wp-form.php
CHANGED
@@ -3,14 +3,14 @@
|
|
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.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : September 25, 2012
|
10 |
-
* Modified:
|
11 |
* Text Domain: mw-wp-form
|
12 |
* Domain Path: /languages/
|
13 |
-
* License: GPLv2
|
14 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
15 |
*/
|
16 |
include_once( plugin_dir_path( __FILE__ ) . 'classes/functions.php' );
|
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.0
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : September 25, 2012
|
10 |
+
* Modified: August 20, 2015
|
11 |
* Text Domain: mw-wp-form
|
12 |
* Domain Path: /languages/
|
13 |
+
* License: GPLv2 or later
|
14 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
15 |
*/
|
16 |
include_once( plugin_dir_path( __FILE__ ) . 'classes/functions.php' );
|
readme.txt
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
=== MW WP Form ===
|
2 |
-
Contributors: inc2734, ryu263, tomothumb, nanniku
|
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: 3.7
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 2.
|
8 |
-
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
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.
|
@@ -49,6 +49,9 @@ Source: https://developers.google.com/chart/
|
|
49 |
* [Ryujiro Yamamoto](http://webcre-archive.com) ( [ryu263](http://profiles.wordpress.org/ryu263) )
|
50 |
* [Tsujimoto Tomoyuki](http://kee-non.com) ( [tomothumb](http://profiles.wordpress.org/tomothumb) )
|
51 |
* [Naoyuki Ohata] ( [nanniku](http://profiles.wordpress.org/nanniku) )
|
|
|
|
|
|
|
52 |
|
53 |
== Installation ==
|
54 |
|
@@ -73,16 +76,25 @@ Do you have questions or issues with MW WP Form? Use these support channels appr
|
|
73 |
|
74 |
== Changelog ==
|
75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
= 2.4.12
|
77 |
-
|
78 |
-
|
79 |
|
80 |
= 2.4.11
|
81 |
-
|
82 |
-
|
83 |
|
84 |
= 2.4.10
|
85 |
-
|
86 |
|
87 |
= 2.4.9 =
|
88 |
* Bugfix : Fixes a bug that the value of last checkbox is only posted when multiple same name checkboxes created and those post_raw is true.
|
1 |
=== MW WP Form ===
|
2 |
+
Contributors: inc2734, ryu263, tomothumb, nanniku, mt8.biz, NExt-Season, kuck1u
|
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: 3.7
|
6 |
+
Tested up to: 4.3
|
7 |
+
Stable tag: 2.5.0
|
8 |
+
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
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.
|
49 |
* [Ryujiro Yamamoto](http://webcre-archive.com) ( [ryu263](http://profiles.wordpress.org/ryu263) )
|
50 |
* [Tsujimoto Tomoyuki](http://kee-non.com) ( [tomothumb](http://profiles.wordpress.org/tomothumb) )
|
51 |
* [Naoyuki Ohata] ( [nanniku](http://profiles.wordpress.org/nanniku) )
|
52 |
+
* [Kazuto Takeshita] ( [mt8.biz](http://mt8.biz/) )
|
53 |
+
* [Atsushi Ando] ( [NExt-Season](http://www.next-season.net/) )
|
54 |
+
* [Kazuki Tomiyasu] ( [KUCKLU](http://visualive.jp/) )
|
55 |
|
56 |
== Installation ==
|
57 |
|
76 |
|
77 |
== Changelog ==
|
78 |
|
79 |
+
= 2.5.0 =
|
80 |
+
* Added : Add html5 email field.
|
81 |
+
* Added : Add html5 url field.
|
82 |
+
* Added : Add html5 range field.
|
83 |
+
* Added : Add html5 number field.
|
84 |
+
* Added : Support attribute placeholder in datepicker.
|
85 |
+
* Changed : maxlength default value is null.
|
86 |
+
* Bugfix : Fixed a bug that is CC and BCC have been overlapping sent when To is multiple.
|
87 |
+
|
88 |
= 2.4.12
|
89 |
+
* Bugfix : filter hook 'mwform_value_mwf_xxx' does not work when to use radio or checkboxes.
|
90 |
+
* Changed : Changed checkbox default separator ', ' to ','.
|
91 |
|
92 |
= 2.4.11
|
93 |
+
* Bugfix : Fixed a bug that attachment file does not displayed in contact data list page.
|
94 |
+
* Changed : Trim email address on inputs.
|
95 |
|
96 |
= 2.4.10
|
97 |
+
* Bugfix : Fixed a bug that does not scroll when you return to the input screen.
|
98 |
|
99 |
= 2.4.9 =
|
100 |
* Bugfix : Fixes a bug that the value of last checkbox is only posted when multiple same name checkboxes created and those post_raw is true.
|