Version Description
- Added : Add filter_hook mwform_post_content_raw_mw-wp-form-xxx.
- Added : Add filter_hook mwform_post_content_mw-wp-form-xxx.
- Added : Add filter_hook mwform_form_fields.
- Added : Add "Error" form type.
- Changed : MW_Form_Field::mwform_tag_generator_dialog() method needs $options argument.
- Changed : Zip code field and Tel field are wrapped by span tag.
- Bug fix : Empty separator is changed to not allow in checkbox field.
- Bug fix : Fix add form tag button css bug.
Download this release
Release Info
Developer | inc2734 |
Plugin | MW WP Form |
Version | 2.1.0 |
Comparing to | |
See all releases |
Code changes from version 2.0.0 to 2.1.0
- css/admin.css +25 -1
- form_fields/mw_form_field_akismet_error.php +8 -2
- form_fields/mw_form_field_back_button.php +5 -5
- form_fields/mw_form_field_button.php +10 -8
- form_fields/mw_form_field_checkbox.php +22 -15
- form_fields/mw_form_field_confirm_button.php +7 -6
- form_fields/mw_form_field_datepicker.php +21 -15
- form_fields/mw_form_field_error.php +11 -4
- form_fields/mw_form_field_file.php +12 -9
- form_fields/mw_form_field_hidden.php +11 -8
- form_fields/mw_form_field_image.php +12 -9
- form_fields/mw_form_field_password.php +24 -17
- form_fields/mw_form_field_radio.php +18 -13
- form_fields/mw_form_field_select.php +18 -13
- form_fields/mw_form_field_submit.php +10 -8
- form_fields/mw_form_field_submit_button.php +10 -7
- form_fields/mw_form_field_tel.php +10 -7
- form_fields/mw_form_field_text.php +26 -18
- form_fields/mw_form_field_textarea.php +24 -17
- form_fields/mw_form_field_zip.php +10 -7
- js/mw-wp-form-repeatable.js +1 -1
- languages/mw-wp-form-ja.mo +0 -0
- languages/mw-wp-form-ja.po +63 -94
- languages/mw-wp-form.pot +58 -91
- mw-wp-form.php +10 -5
- readme.txt +11 -1
- system/mw_form.php +5 -2
- system/mw_form_field.php +44 -4
- system/mw_wp_form_admin_page.php +6 -3
css/admin.css
CHANGED
@@ -29,15 +29,31 @@
|
|
29 |
display: none;
|
30 |
}
|
31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
/**
|
33 |
* .add-mwform-btn
|
34 |
*/
|
35 |
.add-mwform-btn {
|
36 |
position: relative;
|
37 |
-
bottom: -15px;
|
38 |
z-index: 1001;
|
39 |
}
|
40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
/**
|
42 |
* フォーム識別子
|
43 |
*/
|
@@ -246,6 +262,14 @@ span#formkey_field {
|
|
246 |
font-size: 93%;
|
247 |
}
|
248 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
249 |
/**
|
250 |
* CSVダウンロードボタン
|
251 |
*/
|
29 |
display: none;
|
30 |
}
|
31 |
|
32 |
+
/**
|
33 |
+
* #titlediv
|
34 |
+
*/
|
35 |
+
#titlediv {
|
36 |
+
margin-bottom: 3px;
|
37 |
+
}
|
38 |
+
|
39 |
/**
|
40 |
* .add-mwform-btn
|
41 |
*/
|
42 |
.add-mwform-btn {
|
43 |
position: relative;
|
44 |
+
/* bottom: -15px; */
|
45 |
z-index: 1001;
|
46 |
}
|
47 |
|
48 |
+
/**
|
49 |
+
* .wp-editor-tabs
|
50 |
+
*/
|
51 |
+
.wp-editor-tabs {
|
52 |
+
position: absolute;
|
53 |
+
right: 0;
|
54 |
+
bottom: 0;
|
55 |
+
}
|
56 |
+
|
57 |
/**
|
58 |
* フォーム識別子
|
59 |
*/
|
262 |
font-size: 93%;
|
263 |
}
|
264 |
|
265 |
+
/**
|
266 |
+
* 注釈
|
267 |
+
*/
|
268 |
+
.mwf_require {
|
269 |
+
color: #b70000;
|
270 |
+
margin-left: 3px;
|
271 |
+
}
|
272 |
+
|
273 |
/**
|
274 |
* CSVダウンロードボタン
|
275 |
*/
|
form_fields/mw_form_field_akismet_error.php
CHANGED
@@ -2,16 +2,22 @@
|
|
2 |
/**
|
3 |
* Name: MW Form Field Akismet Error
|
4 |
* Description: Akismetのエラーを出力。
|
5 |
-
* Version: 1.3.
|
6 |
* Author: Takashi Kitajima
|
7 |
* Author URI: http://2inc.org
|
8 |
* Created : June 21, 2013
|
9 |
-
* Modified:
|
10 |
* License: GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_Form_Field_Akismet_Error extends MW_Form_Field {
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
/**
|
16 |
* set_names
|
17 |
* shortcode_name、display_nameを定義。各子クラスで上書きする。
|
2 |
/**
|
3 |
* Name: MW Form Field Akismet Error
|
4 |
* Description: Akismetのエラーを出力。
|
5 |
+
* Version: 1.3.4
|
6 |
* Author: Takashi Kitajima
|
7 |
* Author URI: http://2inc.org
|
8 |
* Created : June 21, 2013
|
9 |
+
* Modified: November 2, 2014
|
10 |
* License: GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_Form_Field_Akismet_Error extends MW_Form_Field {
|
14 |
|
15 |
+
/**
|
16 |
+
* string $type フォームタグの種類
|
17 |
+
* input, select, button, error, other
|
18 |
+
*/
|
19 |
+
public $type = 'error';
|
20 |
+
|
21 |
/**
|
22 |
* set_names
|
23 |
* shortcode_name、display_nameを定義。各子クラスで上書きする。
|
form_fields/mw_form_field_back_button.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
/**
|
3 |
* Name: MW Form Field Back Button
|
4 |
* Description: 戻るボタンを出力。
|
5 |
-
* Version: 1.4.
|
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 |
*/
|
@@ -14,7 +14,7 @@ class MW_Form_Field_Back_Button extends MW_Form_Field {
|
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
-
* input, select, button, other
|
18 |
*/
|
19 |
public $type = 'button';
|
20 |
|
@@ -62,10 +62,10 @@ class MW_Form_Field_Back_Button extends MW_Form_Field {
|
|
62 |
* add_mwform_tag_generator
|
63 |
* フォームタグジェネレーター
|
64 |
*/
|
65 |
-
public function mwform_tag_generator_dialog() {
|
66 |
?>
|
67 |
<p>
|
68 |
-
<strong><?php esc_html_e( 'String on the button', MWF_Config::DOMAIN );
|
69 |
<input type="text" name="value" />
|
70 |
</p>
|
71 |
<?php
|
2 |
/**
|
3 |
* Name: MW Form Field Back Button
|
4 |
* Description: 戻るボタンを出力。
|
5 |
+
* Version: 1.4.3
|
6 |
* Author: Takashi Kitajima
|
7 |
* Author URI: http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
+
* Modified: November 2, 2014
|
10 |
* License: GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
+
* input, select, button, error, other
|
18 |
*/
|
19 |
public $type = 'button';
|
20 |
|
62 |
* add_mwform_tag_generator
|
63 |
* フォームタグジェネレーター
|
64 |
*/
|
65 |
+
public function mwform_tag_generator_dialog( array $options = array() ) {
|
66 |
?>
|
67 |
<p>
|
68 |
+
<strong><?php esc_html_e( 'String on the button', MWF_Config::DOMAIN ); ?></strong>
|
69 |
<input type="text" name="value" />
|
70 |
</p>
|
71 |
<?php
|
form_fields/mw_form_field_button.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
/**
|
3 |
* Name: MW Form Field Button
|
4 |
* Description: ボタンを出力。
|
5 |
-
* Version: 1.4.
|
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 |
*/
|
@@ -14,7 +14,7 @@ class MW_Form_Field_Button extends MW_Form_Field {
|
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
-
* input, select, button, other
|
18 |
*/
|
19 |
public $type = 'button';
|
20 |
|
@@ -64,15 +64,17 @@ class MW_Form_Field_Button extends MW_Form_Field {
|
|
64 |
* add_mwform_tag_generator
|
65 |
* フォームタグジェネレーター
|
66 |
*/
|
67 |
-
public function mwform_tag_generator_dialog() {
|
68 |
?>
|
69 |
<p>
|
70 |
-
<strong>name
|
71 |
-
|
|
|
72 |
</p>
|
73 |
<p>
|
74 |
-
<strong><?php esc_html_e( 'String on the button', MWF_Config::DOMAIN );
|
75 |
-
|
|
|
76 |
</p>
|
77 |
<?php
|
78 |
}
|
2 |
/**
|
3 |
* Name: MW Form Field Button
|
4 |
* Description: ボタンを出力。
|
5 |
+
* Version: 1.4.3
|
6 |
* Author: Takashi Kitajima
|
7 |
* Author URI: http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
+
* Modified: November 2, 2014
|
10 |
* License: GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
+
* input, select, button, error, other
|
18 |
*/
|
19 |
public $type = 'button';
|
20 |
|
64 |
* add_mwform_tag_generator
|
65 |
* フォームタグジェネレーター
|
66 |
*/
|
67 |
+
public function mwform_tag_generator_dialog( array $options = array() ) {
|
68 |
?>
|
69 |
<p>
|
70 |
+
<strong>name<span class="mwf_require">*</span></strong>
|
71 |
+
<?php $name = $this->get_value_for_generator( 'name', $options ); ?>
|
72 |
+
<input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" />
|
73 |
</p>
|
74 |
<p>
|
75 |
+
<strong><?php esc_html_e( 'String on the button', MWF_Config::DOMAIN ); ?></strong>
|
76 |
+
<?php $value = $this->get_value_for_generator( 'value', $options ); ?>
|
77 |
+
<input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
|
78 |
</p>
|
79 |
<?php
|
80 |
}
|
form_fields/mw_form_field_checkbox.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
/**
|
3 |
* Name: MW Form Field Checkbox
|
4 |
* Description: チェックボックスを出力。
|
5 |
-
* Version: 1.4.
|
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 |
*/
|
@@ -14,7 +14,7 @@ class MW_Form_Field_Checkbox extends MW_Form_Field {
|
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
-
* input, select, button, other
|
18 |
*/
|
19 |
public $type = 'select';
|
20 |
|
@@ -53,10 +53,11 @@ class MW_Form_Field_Checkbox extends MW_Form_Field {
|
|
53 |
*/
|
54 |
protected function inputPage() {
|
55 |
$children = $this->getChildren( $this->atts['children'] );
|
|
|
56 |
$_ret = $this->Form->checkbox( $this->atts['name'], $children, array(
|
57 |
'id' => $this->atts['id'],
|
58 |
'value' => $this->atts['value'],
|
59 |
-
), $
|
60 |
if ( $this->atts['show_error'] !== 'false' )
|
61 |
$_ret .= $this->getError( $this->atts['name'] );
|
62 |
return $_ret;
|
@@ -80,34 +81,40 @@ class MW_Form_Field_Checkbox extends MW_Form_Field {
|
|
80 |
* add_mwform_tag_generator
|
81 |
* フォームタグジェネレーター
|
82 |
*/
|
83 |
-
public function mwform_tag_generator_dialog() {
|
84 |
?>
|
85 |
<p>
|
86 |
-
<strong>name
|
87 |
-
|
|
|
88 |
</p>
|
89 |
<p>
|
90 |
-
<strong>id
|
91 |
-
|
|
|
92 |
</p>
|
93 |
<p>
|
94 |
-
<strong><?php esc_html_e( 'Choices', MWF_Config::DOMAIN );
|
95 |
-
|
|
|
96 |
<span class="mwf_note">
|
97 |
<?php esc_html_e( 'Input one line about one item.', MWF_Config::DOMAIN ); ?>
|
98 |
</span>
|
99 |
</p>
|
100 |
<p>
|
101 |
-
<strong><?php esc_html_e( 'Default value', MWF_Config::DOMAIN );
|
102 |
-
|
|
|
103 |
</p>
|
104 |
<p>
|
105 |
<strong><?php esc_html_e( 'Separator string', MWF_Config::DOMAIN ); ?></strong>
|
106 |
-
|
|
|
107 |
</p>
|
108 |
<p>
|
109 |
<strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
|
110 |
-
|
|
|
111 |
</p>
|
112 |
<?php
|
113 |
}
|
2 |
/**
|
3 |
* Name: MW Form Field Checkbox
|
4 |
* Description: チェックボックスを出力。
|
5 |
+
* Version: 1.4.4
|
6 |
* Author: Takashi Kitajima
|
7 |
* Author URI: http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
+
* Modified: November 2, 2014
|
10 |
* License: GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
+
* input, select, button, error, other
|
18 |
*/
|
19 |
public $type = 'select';
|
20 |
|
53 |
*/
|
54 |
protected function inputPage() {
|
55 |
$children = $this->getChildren( $this->atts['children'] );
|
56 |
+
$separator = ( $this->atts['separator'] ) ? $this->atts['separator'] : $this->defaults['separator'];
|
57 |
$_ret = $this->Form->checkbox( $this->atts['name'], $children, array(
|
58 |
'id' => $this->atts['id'],
|
59 |
'value' => $this->atts['value'],
|
60 |
+
), $separator );
|
61 |
if ( $this->atts['show_error'] !== 'false' )
|
62 |
$_ret .= $this->getError( $this->atts['name'] );
|
63 |
return $_ret;
|
81 |
* add_mwform_tag_generator
|
82 |
* フォームタグジェネレーター
|
83 |
*/
|
84 |
+
public function mwform_tag_generator_dialog( array $options = array() ) {
|
85 |
?>
|
86 |
<p>
|
87 |
+
<strong>name<span class="mwf_require">*</span></strong>
|
88 |
+
<?php $name = $this->get_value_for_generator( 'name', $options ); ?>
|
89 |
+
<input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" />
|
90 |
</p>
|
91 |
<p>
|
92 |
+
<strong>id</strong>
|
93 |
+
<?php $id = $this->get_value_for_generator( 'id', $options ); ?>
|
94 |
+
<input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
|
95 |
</p>
|
96 |
<p>
|
97 |
+
<strong><?php esc_html_e( 'Choices', MWF_Config::DOMAIN ); ?><span class="mwf_require">*</span></strong>
|
98 |
+
<?php $children = "\n" . $this->get_value_for_generator( 'children', $options ); ?>
|
99 |
+
<textarea name="children"><?php echo esc_attr( $children ); ?></textarea>
|
100 |
<span class="mwf_note">
|
101 |
<?php esc_html_e( 'Input one line about one item.', MWF_Config::DOMAIN ); ?>
|
102 |
</span>
|
103 |
</p>
|
104 |
<p>
|
105 |
+
<strong><?php esc_html_e( 'Default value', MWF_Config::DOMAIN ); ?></strong>
|
106 |
+
<?php $value = $this->get_value_for_generator( 'value', $options ); ?>
|
107 |
+
<input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
|
108 |
</p>
|
109 |
<p>
|
110 |
<strong><?php esc_html_e( 'Separator string', MWF_Config::DOMAIN ); ?></strong>
|
111 |
+
<?php $separator = $this->get_value_for_generator( 'separator', $options ); ?>
|
112 |
+
<input type="text" name="separator" size="10" value="<?php echo esc_attr( $separator ); ?>" />
|
113 |
</p>
|
114 |
<p>
|
115 |
<strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
|
116 |
+
<?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
|
117 |
+
<input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', MWF_Config::DOMAIN ); ?>
|
118 |
</p>
|
119 |
<?php
|
120 |
}
|
form_fields/mw_form_field_confirm_button.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
/**
|
3 |
* Name: MW Form Field Confirm Button
|
4 |
* Description: 確認ボタンを出力。
|
5 |
-
* Version: 1.4.
|
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 |
*/
|
@@ -14,7 +14,7 @@ class MW_Form_Field_Confirm_Button extends MW_Form_Field {
|
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
-
* input, select, button, other
|
18 |
*/
|
19 |
public $type = 'button';
|
20 |
|
@@ -62,11 +62,12 @@ class MW_Form_Field_Confirm_Button extends MW_Form_Field {
|
|
62 |
* add_mwform_tag_generator
|
63 |
* フォームタグジェネレーター
|
64 |
*/
|
65 |
-
public function mwform_tag_generator_dialog() {
|
66 |
?>
|
67 |
<p>
|
68 |
-
<strong><?php esc_html_e( 'String on the button', MWF_Config::DOMAIN );
|
69 |
-
|
|
|
70 |
</p>
|
71 |
<?php
|
72 |
}
|
2 |
/**
|
3 |
* Name: MW Form Field Confirm Button
|
4 |
* Description: 確認ボタンを出力。
|
5 |
+
* Version: 1.4.4
|
6 |
* Author: Takashi Kitajima
|
7 |
* Author URI: http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
+
* Modified: November 2, 2014
|
10 |
* License: GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
+
* input, select, button, error, other
|
18 |
*/
|
19 |
public $type = 'button';
|
20 |
|
62 |
* add_mwform_tag_generator
|
63 |
* フォームタグジェネレーター
|
64 |
*/
|
65 |
+
public function mwform_tag_generator_dialog( array $options = array() ) {
|
66 |
?>
|
67 |
<p>
|
68 |
+
<strong><?php esc_html_e( 'String on the button', MWF_Config::DOMAIN ); ?></strong>
|
69 |
+
<?php $name = $this->get_value_for_generator( 'name', $options ); ?>
|
70 |
+
<input type="text" name="value" value="<?php echo esc_attr( $name ); ?>" />
|
71 |
</p>
|
72 |
<?php
|
73 |
}
|
form_fields/mw_form_field_datepicker.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
/**
|
3 |
* Name: MW Form Field Datepicker
|
4 |
* Description: datepickerを出力。
|
5 |
-
* Version: 1.4.
|
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 |
*/
|
@@ -14,7 +14,7 @@ class MW_Form_Field_Datepicker extends MW_Form_Field {
|
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
-
* input, select, button, other
|
18 |
*/
|
19 |
public $type = 'input';
|
20 |
|
@@ -102,31 +102,37 @@ class MW_Form_Field_Datepicker extends MW_Form_Field {
|
|
102 |
* add_mwform_tag_generator
|
103 |
* フォームタグジェネレーター
|
104 |
*/
|
105 |
-
public function mwform_tag_generator_dialog() {
|
106 |
?>
|
107 |
<p>
|
108 |
-
<strong>name
|
109 |
-
|
|
|
110 |
</p>
|
111 |
<p>
|
112 |
-
<strong>id
|
113 |
-
|
|
|
114 |
</p>
|
115 |
<p>
|
116 |
-
<strong>size
|
117 |
-
|
|
|
118 |
</p>
|
119 |
<p>
|
120 |
-
<strong>JavaScript
|
121 |
-
|
|
|
122 |
</p>
|
123 |
<p>
|
124 |
-
<strong><?php esc_html_e( 'Default value', MWF_Config::DOMAIN );
|
125 |
-
|
|
|
126 |
</p>
|
127 |
<p>
|
128 |
<strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
|
129 |
-
|
|
|
130 |
</p>
|
131 |
<?php
|
132 |
}
|
2 |
/**
|
3 |
* Name: MW Form Field Datepicker
|
4 |
* Description: datepickerを出力。
|
5 |
+
* Version: 1.4.3
|
6 |
* Author: Takashi Kitajima
|
7 |
* Author URI: http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
+
* Modified: November 2, 2014
|
10 |
* License: GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
+
* input, select, button, error, other
|
18 |
*/
|
19 |
public $type = 'input';
|
20 |
|
102 |
* add_mwform_tag_generator
|
103 |
* フォームタグジェネレーター
|
104 |
*/
|
105 |
+
public function mwform_tag_generator_dialog( array $options = array() ) {
|
106 |
?>
|
107 |
<p>
|
108 |
+
<strong>name<span class="mwf_require">*</span></strong>
|
109 |
+
<?php $name = $this->get_value_for_generator( 'name', $options ); ?>
|
110 |
+
<input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" />
|
111 |
</p>
|
112 |
<p>
|
113 |
+
<strong>id</strong>
|
114 |
+
<?php $id = $this->get_value_for_generator( 'id', $options ); ?>
|
115 |
+
<input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
|
116 |
</p>
|
117 |
<p>
|
118 |
+
<strong>size</strong>
|
119 |
+
<?php $size = $this->get_value_for_generator( 'size', $options ); ?>
|
120 |
+
<input type="text" name="size" value="<?php echo esc_attr( $size ); ?>" />
|
121 |
</p>
|
122 |
<p>
|
123 |
+
<strong>JavaScript</strong>
|
124 |
+
<?php $js = $this->get_value_for_generator( 'js', $options ); ?>
|
125 |
+
<input type="text" name="js" value="<?php echo esc_attr( $js ); ?>" />
|
126 |
</p>
|
127 |
<p>
|
128 |
+
<strong><?php esc_html_e( 'Default value', MWF_Config::DOMAIN ); ?></strong>
|
129 |
+
<?php $value = $this->get_value_for_generator( 'value', $options ); ?>
|
130 |
+
<input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
|
131 |
</p>
|
132 |
<p>
|
133 |
<strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
|
134 |
+
<?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
|
135 |
+
<input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', MWF_Config::DOMAIN ); ?>
|
136 |
</p>
|
137 |
<?php
|
138 |
}
|
form_fields/mw_form_field_error.php
CHANGED
@@ -2,16 +2,22 @@
|
|
2 |
/**
|
3 |
* Name: MW Form Field Error
|
4 |
* Description: エラーを出力。
|
5 |
-
* Version: 1.4.
|
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_Form_Field_Error extends MW_Form_Field {
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
/**
|
16 |
* set_names
|
17 |
* shortcode_name、display_nameを定義。各子クラスで上書きする。
|
@@ -61,11 +67,12 @@ class MW_Form_Field_Error extends MW_Form_Field {
|
|
61 |
* add_mwform_tag_generator
|
62 |
* フォームタグジェネレーター
|
63 |
*/
|
64 |
-
public function mwform_tag_generator_dialog() {
|
65 |
?>
|
66 |
<p>
|
67 |
<strong><?php esc_html_e( 'name of the element which wants to display error', MWF_Config::DOMAIN ); ?></strong>
|
68 |
-
|
|
|
69 |
<span class="mwf_note">
|
70 |
<?php esc_html_e( 'Input one line about one item.', MWF_Config::DOMAIN ); ?>
|
71 |
</span>
|
2 |
/**
|
3 |
* Name: MW Form Field Error
|
4 |
* Description: エラーを出力。
|
5 |
+
* Version: 1.4.2
|
6 |
* Author: Takashi Kitajima
|
7 |
* Author URI: http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
+
* Modified: November 2, 2014
|
10 |
* License: GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
class MW_Form_Field_Error extends MW_Form_Field {
|
14 |
|
15 |
+
/**
|
16 |
+
* string $type フォームタグの種類
|
17 |
+
* input, select, button, error, other
|
18 |
+
*/
|
19 |
+
public $type = 'error';
|
20 |
+
|
21 |
/**
|
22 |
* set_names
|
23 |
* shortcode_name、display_nameを定義。各子クラスで上書きする。
|
67 |
* add_mwform_tag_generator
|
68 |
* フォームタグジェネレーター
|
69 |
*/
|
70 |
+
public function mwform_tag_generator_dialog( array $options = array() ) {
|
71 |
?>
|
72 |
<p>
|
73 |
<strong><?php esc_html_e( 'name of the element which wants to display error', MWF_Config::DOMAIN ); ?></strong>
|
74 |
+
<?php $keys = "\n" . $this->get_value_for_generator( 'keys', $options ); ?>
|
75 |
+
<textarea name="keys"><?php echo esc_attr( $keys ); ?></textarea>
|
76 |
<span class="mwf_note">
|
77 |
<?php esc_html_e( 'Input one line about one item.', MWF_Config::DOMAIN ); ?>
|
78 |
</span>
|
form_fields/mw_form_field_file.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
/**
|
3 |
* Name: MW Form Field File
|
4 |
* Description: 画像アップロードフィールドを出力。
|
5 |
-
* Version: 1.4.
|
6 |
* Author: Takashi Kitajima
|
7 |
* Author URI: http://2inc.org
|
8 |
* Created : May 17, 2013
|
9 |
-
* Modified:
|
10 |
* License: GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
@@ -14,7 +14,7 @@ class MW_Form_Field_File extends MW_Form_Field {
|
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
-
* input, select, button, other
|
18 |
*/
|
19 |
public $type = 'input';
|
20 |
|
@@ -91,19 +91,22 @@ class MW_Form_Field_File extends MW_Form_Field {
|
|
91 |
* add_mwform_tag_generator
|
92 |
* フォームタグジェネレーター
|
93 |
*/
|
94 |
-
public function mwform_tag_generator_dialog() {
|
95 |
?>
|
96 |
<p>
|
97 |
-
<strong>name
|
98 |
-
|
|
|
99 |
</p>
|
100 |
<p>
|
101 |
-
<strong>id
|
102 |
-
|
|
|
103 |
</p>
|
104 |
<p>
|
105 |
<strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
|
106 |
-
|
|
|
107 |
</p>
|
108 |
<?php
|
109 |
}
|
2 |
/**
|
3 |
* Name: MW Form Field File
|
4 |
* Description: 画像アップロードフィールドを出力。
|
5 |
+
* Version: 1.4.4
|
6 |
* Author: Takashi Kitajima
|
7 |
* Author URI: http://2inc.org
|
8 |
* Created : May 17, 2013
|
9 |
+
* Modified: November 2, 2014
|
10 |
* License: GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
+
* input, select, button, error, other
|
18 |
*/
|
19 |
public $type = 'input';
|
20 |
|
91 |
* add_mwform_tag_generator
|
92 |
* フォームタグジェネレーター
|
93 |
*/
|
94 |
+
public function mwform_tag_generator_dialog( array $options = array() ) {
|
95 |
?>
|
96 |
<p>
|
97 |
+
<strong>name<span class="mwf_require">*</span></strong>
|
98 |
+
<?php $name = $this->get_value_for_generator( 'name', $options ); ?>
|
99 |
+
<input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" />
|
100 |
</p>
|
101 |
<p>
|
102 |
+
<strong>id</strong>
|
103 |
+
<?php $id = $this->get_value_for_generator( 'id', $options ); ?>
|
104 |
+
<input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
|
105 |
</p>
|
106 |
<p>
|
107 |
<strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
|
108 |
+
<?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
|
109 |
+
<input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', MWF_Config::DOMAIN ); ?>
|
110 |
</p>
|
111 |
<?php
|
112 |
}
|
form_fields/mw_form_field_hidden.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
/**
|
3 |
* Name: MW Form Field Hidden
|
4 |
* Description: hiddenフィールドを出力。
|
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 |
*/
|
@@ -68,19 +68,22 @@ class MW_Form_Field_Hidden extends MW_Form_Field {
|
|
68 |
* add_mwform_tag_generator
|
69 |
* フォームタグジェネレーター
|
70 |
*/
|
71 |
-
public function mwform_tag_generator_dialog() {
|
72 |
?>
|
73 |
<p>
|
74 |
-
<strong>name
|
75 |
-
|
|
|
76 |
</p>
|
77 |
<p>
|
78 |
-
<strong><?php esc_html_e( 'Default value', MWF_Config::DOMAIN );
|
79 |
-
|
|
|
80 |
</p>
|
81 |
<p>
|
82 |
<strong><?php esc_html_e( 'Display', MWF_Config::DOMAIN ); ?></strong>
|
83 |
-
|
|
|
84 |
</p>
|
85 |
<?php
|
86 |
}
|
2 |
/**
|
3 |
* Name: MW Form Field Hidden
|
4 |
* Description: hiddenフィールドを出力。
|
5 |
+
* Version: 1.5.2
|
6 |
* Author: Takashi Kitajima
|
7 |
* Author URI: http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
+
* Modified: November 2, 2014
|
10 |
* License: GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
68 |
* add_mwform_tag_generator
|
69 |
* フォームタグジェネレーター
|
70 |
*/
|
71 |
+
public function mwform_tag_generator_dialog( array $options = array() ) {
|
72 |
?>
|
73 |
<p>
|
74 |
+
<strong>name<span class="mwf_require">*</span></strong>
|
75 |
+
<?php $name = $this->get_value_for_generator( 'name', $options ); ?>
|
76 |
+
<input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" />
|
77 |
</p>
|
78 |
<p>
|
79 |
+
<strong><?php esc_html_e( 'Default value', MWF_Config::DOMAIN ); ?></strong>
|
80 |
+
<?php $value = $this->get_value_for_generator( 'value', $options ); ?>
|
81 |
+
<input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
|
82 |
</p>
|
83 |
<p>
|
84 |
<strong><?php esc_html_e( 'Display', MWF_Config::DOMAIN ); ?></strong>
|
85 |
+
<?php $echo = $this->get_value_for_generator( 'echo', $options ); ?>
|
86 |
+
<input type="checkbox" name="echo" value="true" <?php checked( 'true', $echo ); ?> /> <?php esc_html_e( 'Display hidden value.', MWF_Config::DOMAIN ); ?>
|
87 |
</p>
|
88 |
<?php
|
89 |
}
|
form_fields/mw_form_field_image.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
/**
|
3 |
* Name: MW Form Field Image
|
4 |
* Description: 画像アップロードフィールドを出力。
|
5 |
-
* Version: 1.4.
|
6 |
* Author: Takashi Kitajima
|
7 |
* Author URI: http://2inc.org
|
8 |
* Created : May 17, 2013
|
9 |
-
* Modified:
|
10 |
* License: GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
@@ -14,7 +14,7 @@ class MW_Form_Field_Image extends MW_Form_Field {
|
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
-
* input, select, button, other
|
18 |
*/
|
19 |
public $type = 'input';
|
20 |
|
@@ -92,19 +92,22 @@ class MW_Form_Field_Image extends MW_Form_Field {
|
|
92 |
* add_mwform_tag_generator
|
93 |
* フォームタグジェネレーター
|
94 |
*/
|
95 |
-
public function mwform_tag_generator_dialog() {
|
96 |
?>
|
97 |
<p>
|
98 |
-
<strong>name
|
99 |
-
|
|
|
100 |
</p>
|
101 |
<p>
|
102 |
-
<strong>id
|
103 |
-
|
|
|
104 |
</p>
|
105 |
<p>
|
106 |
<strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
|
107 |
-
|
|
|
108 |
</p>
|
109 |
<?php
|
110 |
}
|
2 |
/**
|
3 |
* Name: MW Form Field Image
|
4 |
* Description: 画像アップロードフィールドを出力。
|
5 |
+
* Version: 1.4.4
|
6 |
* Author: Takashi Kitajima
|
7 |
* Author URI: http://2inc.org
|
8 |
* Created : May 17, 2013
|
9 |
+
* Modified: November 2, 2014
|
10 |
* License: GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
+
* input, select, button, error, other
|
18 |
*/
|
19 |
public $type = 'input';
|
20 |
|
92 |
* add_mwform_tag_generator
|
93 |
* フォームタグジェネレーター
|
94 |
*/
|
95 |
+
public function mwform_tag_generator_dialog( array $options = array() ) {
|
96 |
?>
|
97 |
<p>
|
98 |
+
<strong>name<span class="mwf_require">*</span></strong>
|
99 |
+
<?php $name = $this->get_value_for_generator( 'name', $options ); ?>
|
100 |
+
<input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" />
|
101 |
</p>
|
102 |
<p>
|
103 |
+
<strong>id</strong>
|
104 |
+
<?php $id = $this->get_value_for_generator( 'id', $options ); ?>
|
105 |
+
<input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
|
106 |
</p>
|
107 |
<p>
|
108 |
<strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
|
109 |
+
<?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
|
110 |
+
<input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', MWF_Config::DOMAIN ); ?>
|
111 |
</p>
|
112 |
<?php
|
113 |
}
|
form_fields/mw_form_field_password.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
/**
|
3 |
* Name: MW Form Field Password
|
4 |
* Description: パスワードフィールドを出力。
|
5 |
-
* Version: 1.4.
|
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 |
*/
|
@@ -14,7 +14,7 @@ class MW_Form_Field_Password extends MW_Form_Field {
|
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
-
* input, select, button, other
|
18 |
*/
|
19 |
public $type = 'input';
|
20 |
|
@@ -79,35 +79,42 @@ class MW_Form_Field_Password extends MW_Form_Field {
|
|
79 |
* add_mwform_tag_generator
|
80 |
* フォームタグジェネレーター
|
81 |
*/
|
82 |
-
public function mwform_tag_generator_dialog() {
|
83 |
?>
|
84 |
<p>
|
85 |
-
<strong>name
|
86 |
-
|
|
|
87 |
</p>
|
88 |
<p>
|
89 |
-
<strong>id
|
90 |
-
|
|
|
91 |
</p>
|
92 |
<p>
|
93 |
-
<strong>size
|
94 |
-
|
|
|
95 |
</p>
|
96 |
<p>
|
97 |
-
<strong>maxlength
|
98 |
-
|
|
|
99 |
</p>
|
100 |
<p>
|
101 |
-
<strong><?php esc_html_e( 'Default value', MWF_Config::DOMAIN );
|
102 |
-
|
|
|
103 |
</p>
|
104 |
<p>
|
105 |
-
<strong>placeholder
|
106 |
-
|
|
|
107 |
</p>
|
108 |
<p>
|
109 |
<strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
|
110 |
-
|
|
|
111 |
</p>
|
112 |
<?php
|
113 |
}
|
2 |
/**
|
3 |
* Name: MW Form Field Password
|
4 |
* Description: パスワードフィールドを出力。
|
5 |
+
* Version: 1.4.3
|
6 |
* Author: Takashi Kitajima
|
7 |
* Author URI: http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
+
* Modified: November 2, 2014
|
10 |
* License: GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
+
* input, select, button, error, other
|
18 |
*/
|
19 |
public $type = 'input';
|
20 |
|
79 |
* add_mwform_tag_generator
|
80 |
* フォームタグジェネレーター
|
81 |
*/
|
82 |
+
public function mwform_tag_generator_dialog( array $options = array() ) {
|
83 |
?>
|
84 |
<p>
|
85 |
+
<strong>name<span class="mwf_require">*</span></strong>
|
86 |
+
<?php $name = $this->get_value_for_generator( 'name', $options ); ?>
|
87 |
+
<input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" />
|
88 |
</p>
|
89 |
<p>
|
90 |
+
<strong>id</strong>
|
91 |
+
<?php $id = $this->get_value_for_generator( 'id', $options ); ?>
|
92 |
+
<input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
|
93 |
</p>
|
94 |
<p>
|
95 |
+
<strong>size</strong>
|
96 |
+
<?php $size = $this->get_value_for_generator( 'size', $options ); ?>
|
97 |
+
<input type="text" name="size" value="<?php echo esc_attr( $size ); ?>" />
|
98 |
</p>
|
99 |
<p>
|
100 |
+
<strong>maxlength</strong>
|
101 |
+
<?php $maxlength = $this->get_value_for_generator( 'maxlength', $options ); ?>
|
102 |
+
<input type="text" name="maxlength" value="<?php echo esc_attr( $maxlength ); ?>" />
|
103 |
</p>
|
104 |
<p>
|
105 |
+
<strong><?php esc_html_e( 'Default value', MWF_Config::DOMAIN ); ?></strong>
|
106 |
+
<?php $value = $this->get_value_for_generator( 'value', $options ); ?>
|
107 |
+
<input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
|
108 |
</p>
|
109 |
<p>
|
110 |
+
<strong>placeholder</strong>
|
111 |
+
<?php $placeholder = $this->get_value_for_generator( 'placeholder', $options ); ?>
|
112 |
+
<input type="text" name="placeholder" value="<?php echo esc_attr( $placeholder ); ?>" />
|
113 |
</p>
|
114 |
<p>
|
115 |
<strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
|
116 |
+
<?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
|
117 |
+
<input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', MWF_Config::DOMAIN ); ?>
|
118 |
</p>
|
119 |
<?php
|
120 |
}
|
form_fields/mw_form_field_radio.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
/**
|
3 |
* Name: MW Form Field Radio
|
4 |
* Description: ラジオボタンを出力。
|
5 |
-
* Version: 1.4.
|
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 |
*/
|
@@ -14,7 +14,7 @@ class MW_Form_Field_Radio extends MW_Form_Field {
|
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
-
* input, select, button, other
|
18 |
*/
|
19 |
public $type = 'select';
|
20 |
|
@@ -78,30 +78,35 @@ class MW_Form_Field_Radio extends MW_Form_Field {
|
|
78 |
* add_mwform_tag_generator
|
79 |
* フォームタグジェネレーター
|
80 |
*/
|
81 |
-
public function mwform_tag_generator_dialog() {
|
82 |
?>
|
83 |
<p>
|
84 |
-
<strong>name
|
85 |
-
|
|
|
86 |
</p>
|
87 |
<p>
|
88 |
-
<strong>id
|
89 |
-
|
|
|
90 |
</p>
|
91 |
<p>
|
92 |
-
<strong><?php esc_html_e( 'Choices', MWF_Config::DOMAIN );
|
93 |
-
|
|
|
94 |
<span class="mwf_note">
|
95 |
<?php esc_html_e( 'Input one line about one item.', MWF_Config::DOMAIN ); ?>
|
96 |
</span>
|
97 |
</p>
|
98 |
<p>
|
99 |
-
<strong><?php esc_html_e( 'Default value', MWF_Config::DOMAIN );
|
100 |
-
|
|
|
101 |
</p>
|
102 |
<p>
|
103 |
<strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
|
104 |
-
|
|
|
105 |
</p>
|
106 |
<?php
|
107 |
}
|
2 |
/**
|
3 |
* Name: MW Form Field Radio
|
4 |
* Description: ラジオボタンを出力。
|
5 |
+
* Version: 1.4.3
|
6 |
* Author: Takashi Kitajima
|
7 |
* Author URI: http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
+
* Modified: November 2, 2014
|
10 |
* License: GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
+
* input, select, button, error, other
|
18 |
*/
|
19 |
public $type = 'select';
|
20 |
|
78 |
* add_mwform_tag_generator
|
79 |
* フォームタグジェネレーター
|
80 |
*/
|
81 |
+
public function mwform_tag_generator_dialog( array $options = array() ) {
|
82 |
?>
|
83 |
<p>
|
84 |
+
<strong>name<span class="mwf_require">*</span></strong>
|
85 |
+
<?php $name = $this->get_value_for_generator( 'name', $options ); ?>
|
86 |
+
<input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" />
|
87 |
</p>
|
88 |
<p>
|
89 |
+
<strong>id</strong>
|
90 |
+
<?php $id = $this->get_value_for_generator( 'id', $options ); ?>
|
91 |
+
<input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
|
92 |
</p>
|
93 |
<p>
|
94 |
+
<strong><?php esc_html_e( 'Choices', MWF_Config::DOMAIN ); ?><span class="mwf_require">*</span></strong>
|
95 |
+
<?php $children = "\n" . $this->get_value_for_generator( 'children', $options ); ?>
|
96 |
+
<textarea name="children"><?php echo esc_attr( $children ); ?></textarea>
|
97 |
<span class="mwf_note">
|
98 |
<?php esc_html_e( 'Input one line about one item.', MWF_Config::DOMAIN ); ?>
|
99 |
</span>
|
100 |
</p>
|
101 |
<p>
|
102 |
+
<strong><?php esc_html_e( 'Default value', MWF_Config::DOMAIN ); ?></strong>
|
103 |
+
<?php $value = $this->get_value_for_generator( 'value', $options ); ?>
|
104 |
+
<input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
|
105 |
</p>
|
106 |
<p>
|
107 |
<strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
|
108 |
+
<?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
|
109 |
+
<input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', MWF_Config::DOMAIN ); ?>
|
110 |
</p>
|
111 |
<?php
|
112 |
}
|
form_fields/mw_form_field_select.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
/**
|
3 |
* Name: MW Form Field Select
|
4 |
* Description: セレクトボックスを出力。
|
5 |
-
* Version: 1.4.
|
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 |
*/
|
@@ -14,7 +14,7 @@ class MW_Form_Field_Select extends MW_Form_Field {
|
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
-
* input, select, button, other
|
18 |
*/
|
19 |
public $type = 'select';
|
20 |
|
@@ -78,30 +78,35 @@ class MW_Form_Field_Select extends MW_Form_Field {
|
|
78 |
* add_mwform_tag_generator
|
79 |
* フォームタグジェネレーター
|
80 |
*/
|
81 |
-
public function mwform_tag_generator_dialog() {
|
82 |
?>
|
83 |
<p>
|
84 |
-
<strong>name
|
85 |
-
|
|
|
86 |
</p>
|
87 |
<p>
|
88 |
-
<strong>id
|
89 |
-
|
|
|
90 |
</p>
|
91 |
<p>
|
92 |
-
<strong><?php esc_html_e( 'Choices', MWF_Config::DOMAIN );
|
93 |
-
|
|
|
94 |
<span class="mwf_note">
|
95 |
<?php esc_html_e( 'Input one line about one item.', MWF_Config::DOMAIN ); ?>
|
96 |
</span>
|
97 |
</p>
|
98 |
<p>
|
99 |
-
<strong><?php esc_html_e( 'Default value', MWF_Config::DOMAIN );
|
100 |
-
|
|
|
101 |
</p>
|
102 |
<p>
|
103 |
<strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
|
104 |
-
|
|
|
105 |
</p>
|
106 |
<?php
|
107 |
}
|
2 |
/**
|
3 |
* Name: MW Form Field Select
|
4 |
* Description: セレクトボックスを出力。
|
5 |
+
* Version: 1.4.3
|
6 |
* Author: Takashi Kitajima
|
7 |
* Author URI: http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
+
* Modified: November 2, 2014
|
10 |
* License: GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
+
* input, select, button, error, other
|
18 |
*/
|
19 |
public $type = 'select';
|
20 |
|
78 |
* add_mwform_tag_generator
|
79 |
* フォームタグジェネレーター
|
80 |
*/
|
81 |
+
public function mwform_tag_generator_dialog( array $options = array() ) {
|
82 |
?>
|
83 |
<p>
|
84 |
+
<strong>name<span class="mwf_require">*</span></strong>
|
85 |
+
<?php $name = $this->get_value_for_generator( 'name', $options ); ?>
|
86 |
+
<input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" />
|
87 |
</p>
|
88 |
<p>
|
89 |
+
<strong>id</strong>
|
90 |
+
<?php $id = $this->get_value_for_generator( 'id', $options ); ?>
|
91 |
+
<input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
|
92 |
</p>
|
93 |
<p>
|
94 |
+
<strong><?php esc_html_e( 'Choices', MWF_Config::DOMAIN ); ?><span class="mwf_require">*</span></strong>
|
95 |
+
<?php $children = "\n" . $this->get_value_for_generator( 'children', $options ); ?>
|
96 |
+
<textarea name="children"><?php echo esc_attr( $children ); ?></textarea>
|
97 |
<span class="mwf_note">
|
98 |
<?php esc_html_e( 'Input one line about one item.', MWF_Config::DOMAIN ); ?>
|
99 |
</span>
|
100 |
</p>
|
101 |
<p>
|
102 |
+
<strong><?php esc_html_e( 'Default value', MWF_Config::DOMAIN ); ?></strong>
|
103 |
+
<?php $value = $this->get_value_for_generator( 'value', $options ); ?>
|
104 |
+
<input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
|
105 |
</p>
|
106 |
<p>
|
107 |
<strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
|
108 |
+
<?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
|
109 |
+
<input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', MWF_Config::DOMAIN ); ?>
|
110 |
</p>
|
111 |
<?php
|
112 |
}
|
form_fields/mw_form_field_submit.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
/**
|
3 |
* Name: MW Form Field Submit Button
|
4 |
* Description: 送信ボタンを出力。
|
5 |
-
* Version: 1.4.
|
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 |
*/
|
@@ -14,7 +14,7 @@ class MW_Form_Field_Submit extends MW_Form_Field {
|
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
-
* input, select, button, other
|
18 |
*/
|
19 |
public $type = 'button';
|
20 |
|
@@ -64,15 +64,17 @@ class MW_Form_Field_Submit extends MW_Form_Field {
|
|
64 |
* add_mwform_tag_generator
|
65 |
* フォームタグジェネレーター
|
66 |
*/
|
67 |
-
public function mwform_tag_generator_dialog() {
|
68 |
?>
|
69 |
<p>
|
70 |
-
<strong>name
|
71 |
-
|
|
|
72 |
</p>
|
73 |
<p>
|
74 |
-
<strong><?php esc_html_e( 'String on the button', MWF_Config::DOMAIN );
|
75 |
-
|
|
|
76 |
</p>
|
77 |
<?php
|
78 |
}
|
2 |
/**
|
3 |
* Name: MW Form Field Submit Button
|
4 |
* Description: 送信ボタンを出力。
|
5 |
+
* Version: 1.4.3
|
6 |
* Author: Takashi Kitajima
|
7 |
* Author URI: http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
+
* Modified: November 2, 2014
|
10 |
* License: GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
+
* input, select, button, error, other
|
18 |
*/
|
19 |
public $type = 'button';
|
20 |
|
64 |
* add_mwform_tag_generator
|
65 |
* フォームタグジェネレーター
|
66 |
*/
|
67 |
+
public function mwform_tag_generator_dialog( array $options = array() ) {
|
68 |
?>
|
69 |
<p>
|
70 |
+
<strong>name<span class="mwf_require">*</span></strong>
|
71 |
+
<?php $name = $this->get_value_for_generator( 'name', $options ); ?>
|
72 |
+
<input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" />
|
73 |
</p>
|
74 |
<p>
|
75 |
+
<strong><?php esc_html_e( 'String on the button', MWF_Config::DOMAIN ); ?></strong>
|
76 |
+
<?php $value = $this->get_value_for_generator( 'value', $options ); ?>
|
77 |
+
<input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
|
78 |
</p>
|
79 |
<?php
|
80 |
}
|
form_fields/mw_form_field_submit_button.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
/**
|
3 |
* Name: MW Form Field Submit
|
4 |
* Description: 確認ボタンと送信ボタンを自動出力。
|
5 |
-
* Version: 1.4.
|
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 |
*/
|
@@ -14,7 +14,7 @@ class MW_Form_Field_Submit_Button extends MW_Form_Field {
|
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
-
* input, select, button, other
|
18 |
*/
|
19 |
public $type = 'button';
|
20 |
|
@@ -68,19 +68,22 @@ class MW_Form_Field_Submit_Button extends MW_Form_Field {
|
|
68 |
* add_mwform_tag_generator
|
69 |
* フォームタグジェネレーター
|
70 |
*/
|
71 |
-
public function mwform_tag_generator_dialog() {
|
72 |
?>
|
73 |
<p>
|
74 |
<strong>name</strong>
|
75 |
-
|
|
|
76 |
</p>
|
77 |
<p>
|
78 |
<strong><?php esc_html_e( 'String on the confirm button', MWF_Config::DOMAIN ); ?></strong>
|
79 |
-
|
|
|
80 |
</p>
|
81 |
<p>
|
82 |
<strong><?php esc_html_e( 'String on the submit button', MWF_Config::DOMAIN ); ?></strong>
|
83 |
-
|
|
|
84 |
</p>
|
85 |
<?php
|
86 |
}
|
2 |
/**
|
3 |
* Name: MW Form Field Submit
|
4 |
* Description: 確認ボタンと送信ボタンを自動出力。
|
5 |
+
* Version: 1.4.3
|
6 |
* Author: Takashi Kitajima
|
7 |
* Author URI: http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
+
* Modified: November 2, 2014
|
10 |
* License: GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
+
* input, select, button, error, other
|
18 |
*/
|
19 |
public $type = 'button';
|
20 |
|
68 |
* add_mwform_tag_generator
|
69 |
* フォームタグジェネレーター
|
70 |
*/
|
71 |
+
public function mwform_tag_generator_dialog( array $options = array() ) {
|
72 |
?>
|
73 |
<p>
|
74 |
<strong>name</strong>
|
75 |
+
<?php $name = $this->get_value_for_generator( 'name', $options ); ?>
|
76 |
+
<input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" />
|
77 |
</p>
|
78 |
<p>
|
79 |
<strong><?php esc_html_e( 'String on the confirm button', MWF_Config::DOMAIN ); ?></strong>
|
80 |
+
<?php $confirm_value = $this->get_value_for_generator( 'confirm_value', $options ); ?>
|
81 |
+
<input type="text" name="confirm_value" value="<?php echo esc_attr( $confirm_value ); ?>" />
|
82 |
</p>
|
83 |
<p>
|
84 |
<strong><?php esc_html_e( 'String on the submit button', MWF_Config::DOMAIN ); ?></strong>
|
85 |
+
<?php $submit_value = $this->get_value_for_generator( 'submit_value', $options ); ?>
|
86 |
+
<input type="text" name="submit_value" value="<?php echo esc_attr( $submit_value ); ?>" />
|
87 |
</p>
|
88 |
<?php
|
89 |
}
|
form_fields/mw_form_field_tel.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
/**
|
3 |
* Name: MW Form Field Tel
|
4 |
* Description: 電話番号フィールドを出力。
|
5 |
-
* Version: 1.4.
|
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 |
*/
|
@@ -14,7 +14,7 @@ class MW_Form_Field_Tel extends MW_Form_Field {
|
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
-
* input, select, button, other
|
18 |
*/
|
19 |
public $type = 'input';
|
20 |
|
@@ -76,19 +76,22 @@ class MW_Form_Field_Tel extends MW_Form_Field {
|
|
76 |
* add_mwform_tag_generator
|
77 |
* フォームタグジェネレーター
|
78 |
*/
|
79 |
-
public function mwform_tag_generator_dialog() {
|
80 |
?>
|
81 |
<p>
|
82 |
<strong>name</strong>
|
83 |
-
|
|
|
84 |
</p>
|
85 |
<p>
|
86 |
<strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
|
87 |
-
|
|
|
88 |
</p>
|
89 |
<p>
|
90 |
<strong><?php esc_html_e( 'Convert half alphanumeric', MWF_Config::DOMAIN ); ?></strong>
|
91 |
-
|
|
|
92 |
</p>
|
93 |
<?php
|
94 |
}
|
2 |
/**
|
3 |
* Name: MW Form Field Tel
|
4 |
* Description: 電話番号フィールドを出力。
|
5 |
+
* Version: 1.4.3
|
6 |
* Author: Takashi Kitajima
|
7 |
* Author URI: http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
+
* Modified: November 2, 2014
|
10 |
* License: GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
+
* input, select, button, error, other
|
18 |
*/
|
19 |
public $type = 'input';
|
20 |
|
76 |
* add_mwform_tag_generator
|
77 |
* フォームタグジェネレーター
|
78 |
*/
|
79 |
+
public function mwform_tag_generator_dialog( array $options = array() ) {
|
80 |
?>
|
81 |
<p>
|
82 |
<strong>name</strong>
|
83 |
+
<?php $name = $this->get_value_for_generator( 'name', $options ); ?>
|
84 |
+
<input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" />
|
85 |
</p>
|
86 |
<p>
|
87 |
<strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
|
88 |
+
<?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
|
89 |
+
<input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', MWF_Config::DOMAIN ); ?>
|
90 |
</p>
|
91 |
<p>
|
92 |
<strong><?php esc_html_e( 'Convert half alphanumeric', MWF_Config::DOMAIN ); ?></strong>
|
93 |
+
<?php $conv_half_alphanumeric = $this->get_value_for_generator( 'conv_half_alphanumeric', $options ); ?>
|
94 |
+
<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 ); ?>
|
95 |
</p>
|
96 |
<?php
|
97 |
}
|
form_fields/mw_form_field_text.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
/**
|
3 |
* Name: MW Form Field Text
|
4 |
* Description: テキストフィールドを出力。
|
5 |
-
* Version: 1.4.
|
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 |
*/
|
@@ -14,7 +14,7 @@ class MW_Form_Field_Text extends MW_Form_Field {
|
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
-
* input, select, button, other
|
18 |
*/
|
19 |
public $type = 'input';
|
20 |
|
@@ -87,39 +87,47 @@ class MW_Form_Field_Text extends MW_Form_Field {
|
|
87 |
* add_mwform_tag_generator
|
88 |
* フォームタグジェネレーター
|
89 |
*/
|
90 |
-
public function mwform_tag_generator_dialog() {
|
91 |
?>
|
92 |
<p>
|
93 |
-
<strong>name
|
94 |
-
|
|
|
95 |
</p>
|
96 |
<p>
|
97 |
-
<strong>id
|
98 |
-
|
|
|
99 |
</p>
|
100 |
<p>
|
101 |
-
<strong>size
|
102 |
-
|
|
|
103 |
</p>
|
104 |
<p>
|
105 |
-
<strong>maxlength
|
106 |
-
|
|
|
107 |
</p>
|
108 |
<p>
|
109 |
-
<strong><?php esc_html_e( 'Default value', MWF_Config::DOMAIN );
|
110 |
-
|
|
|
111 |
</p>
|
112 |
<p>
|
113 |
-
<strong>placeholder
|
114 |
-
|
|
|
115 |
</p>
|
116 |
<p>
|
117 |
<strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
|
118 |
-
|
|
|
119 |
</p>
|
120 |
<p>
|
121 |
<strong><?php esc_html_e( 'Convert half alphanumeric', MWF_Config::DOMAIN ); ?></strong>
|
122 |
-
|
|
|
123 |
</p>
|
124 |
<?php
|
125 |
}
|
2 |
/**
|
3 |
* Name: MW Form Field Text
|
4 |
* Description: テキストフィールドを出力。
|
5 |
+
* Version: 1.4.5
|
6 |
* Author: Takashi Kitajima
|
7 |
* Author URI: http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
+
* Modified: November 2, 2014
|
10 |
* License: GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
+
* input, select, button, error, other
|
18 |
*/
|
19 |
public $type = 'input';
|
20 |
|
87 |
* add_mwform_tag_generator
|
88 |
* フォームタグジェネレーター
|
89 |
*/
|
90 |
+
public function mwform_tag_generator_dialog( array $options = array() ) {
|
91 |
?>
|
92 |
<p>
|
93 |
+
<strong>name<span class="mwf_require">*</span></strong>
|
94 |
+
<?php $name = $this->get_value_for_generator( 'name', $options ); ?>
|
95 |
+
<input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" />
|
96 |
</p>
|
97 |
<p>
|
98 |
+
<strong>id</strong>
|
99 |
+
<?php $id = $this->get_value_for_generator( 'id', $options ); ?>
|
100 |
+
<input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
|
101 |
</p>
|
102 |
<p>
|
103 |
+
<strong>size</strong>
|
104 |
+
<?php $size = $this->get_value_for_generator( 'size', $options ); ?>
|
105 |
+
<input type="text" name="size" value="<?php echo esc_attr( $size ); ?>" />
|
106 |
</p>
|
107 |
<p>
|
108 |
+
<strong>maxlength</strong>
|
109 |
+
<?php $maxlength = $this->get_value_for_generator( 'maxlength', $options ); ?>
|
110 |
+
<input type="text" name="maxlength" value="<?php echo esc_attr( $maxlength ); ?>" />
|
111 |
</p>
|
112 |
<p>
|
113 |
+
<strong><?php esc_html_e( 'Default value', MWF_Config::DOMAIN ); ?></strong>
|
114 |
+
<?php $value = $this->get_value_for_generator( 'value', $options ); ?>
|
115 |
+
<input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
|
116 |
</p>
|
117 |
<p>
|
118 |
+
<strong>placeholder</strong>
|
119 |
+
<?php $placeholder = $this->get_value_for_generator( 'placeholder', $options ); ?>
|
120 |
+
<input type="text" name="placeholder" value="<?php echo esc_attr( $placeholder ); ?>" />
|
121 |
</p>
|
122 |
<p>
|
123 |
<strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
|
124 |
+
<?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
|
125 |
+
<input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', MWF_Config::DOMAIN ); ?>
|
126 |
</p>
|
127 |
<p>
|
128 |
<strong><?php esc_html_e( 'Convert half alphanumeric', MWF_Config::DOMAIN ); ?></strong>
|
129 |
+
<?php $conv_half_alphanumeric = $this->get_value_for_generator( 'conv_half_alphanumeric', $options ); ?>
|
130 |
+
<input type="checkbox" name="conv_half_alphanumeric" value="true" <?php checked( 'true', $conv_half_alphanumeric ); ?> /> <?php esc_html_e( 'Convert.', MWF_Config::DOMAIN ); ?>
|
131 |
</p>
|
132 |
<?php
|
133 |
}
|
form_fields/mw_form_field_textarea.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
/**
|
3 |
* Name: MW Form Field TextArea
|
4 |
* Description: テキストエリアを出力。
|
5 |
-
* Version: 1.4.
|
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 |
*/
|
@@ -14,7 +14,7 @@ class MW_Form_Field_Textarea extends MW_Form_Field {
|
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
-
* input, select, button, other
|
18 |
*/
|
19 |
public $type = 'input';
|
20 |
|
@@ -81,35 +81,42 @@ class MW_Form_Field_Textarea extends MW_Form_Field {
|
|
81 |
* add_mwform_tag_generator
|
82 |
* フォームタグジェネレーター
|
83 |
*/
|
84 |
-
public function mwform_tag_generator_dialog() {
|
85 |
?>
|
86 |
<p>
|
87 |
-
<strong>name
|
88 |
-
|
|
|
89 |
</p>
|
90 |
<p>
|
91 |
-
<strong>id
|
92 |
-
|
|
|
93 |
</p>
|
94 |
<p>
|
95 |
-
<strong>cols
|
96 |
-
|
|
|
97 |
</p>
|
98 |
<p>
|
99 |
-
<strong>rows
|
100 |
-
|
|
|
101 |
</p>
|
102 |
<p>
|
103 |
-
<strong><?php esc_html_e( 'Default value', MWF_Config::DOMAIN );
|
104 |
-
|
|
|
105 |
</p>
|
106 |
<p>
|
107 |
-
<strong>placeholder
|
108 |
-
|
|
|
109 |
</p>
|
110 |
<p>
|
111 |
<strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
|
112 |
-
|
|
|
113 |
</p>
|
114 |
<?php
|
115 |
}
|
2 |
/**
|
3 |
* Name: MW Form Field TextArea
|
4 |
* Description: テキストエリアを出力。
|
5 |
+
* Version: 1.4.4
|
6 |
* Author: Takashi Kitajima
|
7 |
* Author URI: http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
+
* Modified: November 2, 2014
|
10 |
* License: GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
+
* input, select, button, error, other
|
18 |
*/
|
19 |
public $type = 'input';
|
20 |
|
81 |
* add_mwform_tag_generator
|
82 |
* フォームタグジェネレーター
|
83 |
*/
|
84 |
+
public function mwform_tag_generator_dialog( array $options = array() ) {
|
85 |
?>
|
86 |
<p>
|
87 |
+
<strong>name<span class="mwf_require">*</span></strong>
|
88 |
+
<?php $name = $this->get_value_for_generator( 'name', $options ); ?>
|
89 |
+
<input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" />
|
90 |
</p>
|
91 |
<p>
|
92 |
+
<strong>id</strong>
|
93 |
+
<?php $id = $this->get_value_for_generator( 'id', $options ); ?>
|
94 |
+
<input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
|
95 |
</p>
|
96 |
<p>
|
97 |
+
<strong>cols</strong>
|
98 |
+
<?php $cols = $this->get_value_for_generator( 'cols', $options ); ?>
|
99 |
+
<input type="text" name="cols" value="<?php echo esc_attr( $cols ); ?>" />
|
100 |
</p>
|
101 |
<p>
|
102 |
+
<strong>rows</strong>
|
103 |
+
<?php $rows = $this->get_value_for_generator( 'rows', $options ); ?>
|
104 |
+
<input type="text" name="rows" value="<?php echo esc_attr( $rows ); ?>" />
|
105 |
</p>
|
106 |
<p>
|
107 |
+
<strong><?php esc_html_e( 'Default value', MWF_Config::DOMAIN ); ?></strong>
|
108 |
+
<?php $value = $this->get_value_for_generator( 'value', $options ); ?>
|
109 |
+
<input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
|
110 |
</p>
|
111 |
<p>
|
112 |
+
<strong>placeholder</strong>
|
113 |
+
<?php $placeholder = $this->get_value_for_generator( 'placeholder', $options ); ?>
|
114 |
+
<input type="text" name="placeholder" value="<?php echo esc_attr( $placeholder ); ?>" />
|
115 |
</p>
|
116 |
<p>
|
117 |
<strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
|
118 |
+
<?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
|
119 |
+
<input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', MWF_Config::DOMAIN ); ?>
|
120 |
</p>
|
121 |
<?php
|
122 |
}
|
form_fields/mw_form_field_zip.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
/**
|
3 |
* Name: MW Form Field Zip
|
4 |
* Description: 郵便番号フィールドを出力。
|
5 |
-
* Version: 1.4.
|
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 |
*/
|
@@ -14,7 +14,7 @@ class MW_Form_Field_Zip extends MW_Form_Field {
|
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
-
* input, select, button, other
|
18 |
*/
|
19 |
public $type = 'input';
|
20 |
|
@@ -76,19 +76,22 @@ class MW_Form_Field_Zip extends MW_Form_Field {
|
|
76 |
* add_mwform_tag_generator
|
77 |
* フォームタグジェネレーター
|
78 |
*/
|
79 |
-
public function mwform_tag_generator_dialog() {
|
80 |
?>
|
81 |
<p>
|
82 |
<strong>name</strong>
|
83 |
-
|
|
|
84 |
</p>
|
85 |
<p>
|
86 |
<strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
|
87 |
-
|
|
|
88 |
</p>
|
89 |
<p>
|
90 |
<strong><?php esc_html_e( 'Convert half alphanumeric', MWF_Config::DOMAIN ); ?></strong>
|
91 |
-
|
|
|
92 |
</p>
|
93 |
<?php
|
94 |
}
|
2 |
/**
|
3 |
* Name: MW Form Field Zip
|
4 |
* Description: 郵便番号フィールドを出力。
|
5 |
+
* Version: 1.4.3
|
6 |
* Author: Takashi Kitajima
|
7 |
* Author URI: http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
+
* Modified: November 2, 2014
|
10 |
* License: GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
14 |
|
15 |
/**
|
16 |
* string $type フォームタグの種類
|
17 |
+
* input, select, button, error, other
|
18 |
*/
|
19 |
public $type = 'input';
|
20 |
|
76 |
* add_mwform_tag_generator
|
77 |
* フォームタグジェネレーター
|
78 |
*/
|
79 |
+
public function mwform_tag_generator_dialog( array $options = array() ) {
|
80 |
?>
|
81 |
<p>
|
82 |
<strong>name</strong>
|
83 |
+
<?php $name = $this->get_value_for_generator( 'name', $options ); ?>
|
84 |
+
<input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" /></td>
|
85 |
</p>
|
86 |
<p>
|
87 |
<strong><?php esc_html_e( 'Dsiplay error', MWF_Config::DOMAIN ); ?></strong>
|
88 |
+
<?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
|
89 |
+
<input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', MWF_Config::DOMAIN ); ?>
|
90 |
</p>
|
91 |
<p>
|
92 |
<strong><?php esc_html_e( 'Convert half alphanumeric', MWF_Config::DOMAIN ); ?></strong>
|
93 |
+
<?php $conv_half_alphanumeric = $this->get_value_for_generator( 'conv_half_alphanumeric', $options ); ?>
|
94 |
+
<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 ); ?>
|
95 |
</p>
|
96 |
<?php
|
97 |
}
|
js/mw-wp-form-repeatable.js
CHANGED
@@ -22,7 +22,7 @@ jQuery( function( $ ) {
|
|
22 |
* 開閉ボタン
|
23 |
*/
|
24 |
$( e ).find( config.open_btn ).on( 'click', function() {
|
25 |
-
$( this ).parent().siblings( config.box_content ).slideToggle(
|
26 |
} );
|
27 |
|
28 |
/**
|
22 |
* 開閉ボタン
|
23 |
*/
|
24 |
$( e ).find( config.open_btn ).on( 'click', function() {
|
25 |
+
$( this ).parent().siblings( config.box_content ).slideToggle( 100 );
|
26 |
} );
|
27 |
|
28 |
/**
|
languages/mw-wp-form-ja.mo
CHANGED
Binary file
|
languages/mw-wp-form-ja.po
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
# This file is distributed under the same license as the MW WP Form package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: MW WP Form 2.
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
|
7 |
-
"POT-Creation-Date: 2014-
|
8 |
-
"PO-Revision-Date: 2014-
|
9 |
"Last-Translator: Takashi Kitajima <inc@2inc.org>\n"
|
10 |
"Language-Team: Takashi Kitajima <inc@2inc.org>\n"
|
11 |
"Language: ja\n"
|
@@ -15,11 +15,11 @@ 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.6.
|
19 |
"X-Poedit-KeywordsList: __;_e;_x;esc_html_e;esc_html__\n"
|
20 |
"X-Poedit-SearchPath-0: ..\n"
|
21 |
|
22 |
-
#: form_fields/mw_form_field_akismet_error.php:
|
23 |
msgid "Akismet Error"
|
24 |
msgstr "Akismetエラー"
|
25 |
|
@@ -29,50 +29,12 @@ msgid "Back"
|
|
29 |
msgstr "戻る"
|
30 |
|
31 |
#: form_fields/mw_form_field_back_button.php:68
|
32 |
-
#: form_fields/mw_form_field_button.php:
|
33 |
#: form_fields/mw_form_field_confirm_button.php:68
|
34 |
-
#: form_fields/mw_form_field_submit.php:
|
35 |
msgid "String on the button"
|
36 |
msgstr "ボタンに表示する文字列"
|
37 |
|
38 |
-
#: form_fields/mw_form_field_back_button.php:68
|
39 |
-
#: form_fields/mw_form_field_button.php:74
|
40 |
-
#: form_fields/mw_form_field_checkbox.php:90
|
41 |
-
#: form_fields/mw_form_field_checkbox.php:94
|
42 |
-
#: form_fields/mw_form_field_checkbox.php:101
|
43 |
-
#: form_fields/mw_form_field_confirm_button.php:68
|
44 |
-
#: form_fields/mw_form_field_datepicker.php:112
|
45 |
-
#: form_fields/mw_form_field_datepicker.php:116
|
46 |
-
#: form_fields/mw_form_field_datepicker.php:120
|
47 |
-
#: form_fields/mw_form_field_datepicker.php:124
|
48 |
-
#: form_fields/mw_form_field_file.php:101
|
49 |
-
#: form_fields/mw_form_field_hidden.php:78
|
50 |
-
#: form_fields/mw_form_field_image.php:102
|
51 |
-
#: form_fields/mw_form_field_password.php:89
|
52 |
-
#: form_fields/mw_form_field_password.php:93
|
53 |
-
#: form_fields/mw_form_field_password.php:97
|
54 |
-
#: form_fields/mw_form_field_password.php:101
|
55 |
-
#: form_fields/mw_form_field_password.php:105
|
56 |
-
#: form_fields/mw_form_field_radio.php:88
|
57 |
-
#: form_fields/mw_form_field_radio.php:92
|
58 |
-
#: form_fields/mw_form_field_radio.php:99
|
59 |
-
#: form_fields/mw_form_field_select.php:88
|
60 |
-
#: form_fields/mw_form_field_select.php:92
|
61 |
-
#: form_fields/mw_form_field_select.php:99
|
62 |
-
#: form_fields/mw_form_field_submit.php:74
|
63 |
-
#: form_fields/mw_form_field_text.php:97
|
64 |
-
#: form_fields/mw_form_field_text.php:101
|
65 |
-
#: form_fields/mw_form_field_text.php:105
|
66 |
-
#: form_fields/mw_form_field_text.php:109
|
67 |
-
#: form_fields/mw_form_field_text.php:113
|
68 |
-
#: form_fields/mw_form_field_textarea.php:91
|
69 |
-
#: form_fields/mw_form_field_textarea.php:95
|
70 |
-
#: form_fields/mw_form_field_textarea.php:99
|
71 |
-
#: form_fields/mw_form_field_textarea.php:103
|
72 |
-
#: form_fields/mw_form_field_textarea.php:107
|
73 |
-
msgid "option"
|
74 |
-
msgstr "オプション"
|
75 |
-
|
76 |
#: form_fields/mw_form_field_button.php:29
|
77 |
msgid "Button"
|
78 |
msgstr "ボタン"
|
@@ -81,57 +43,57 @@ msgstr "ボタン"
|
|
81 |
msgid "Checkbox"
|
82 |
msgstr "チェックボックス"
|
83 |
|
84 |
-
#: form_fields/mw_form_field_checkbox.php:
|
85 |
-
#: form_fields/mw_form_field_radio.php:
|
86 |
-
#: form_fields/mw_form_field_select.php:
|
87 |
msgid "Choices"
|
88 |
msgstr "選択肢"
|
89 |
|
90 |
-
#: form_fields/mw_form_field_checkbox.php:
|
91 |
-
#: form_fields/mw_form_field_error.php:
|
92 |
-
#: form_fields/mw_form_field_radio.php:
|
93 |
-
#: form_fields/mw_form_field_select.php:
|
94 |
msgid "Input one line about one item."
|
95 |
msgstr "1項目につき1行で入力してください。"
|
96 |
|
97 |
-
#: form_fields/mw_form_field_checkbox.php:
|
98 |
-
#: form_fields/mw_form_field_datepicker.php:
|
99 |
-
#: form_fields/mw_form_field_hidden.php:
|
100 |
-
#: form_fields/mw_form_field_password.php:
|
101 |
-
#: form_fields/mw_form_field_radio.php:
|
102 |
-
#: form_fields/mw_form_field_select.php:
|
103 |
-
#: form_fields/mw_form_field_text.php:
|
104 |
-
#: form_fields/mw_form_field_textarea.php:
|
105 |
msgid "Default value"
|
106 |
msgstr "初期値"
|
107 |
|
108 |
-
#: form_fields/mw_form_field_checkbox.php:
|
109 |
msgid "Separator string"
|
110 |
msgstr "区切り文字"
|
111 |
|
112 |
-
#: form_fields/mw_form_field_checkbox.php:
|
113 |
-
#: form_fields/mw_form_field_datepicker.php:
|
114 |
-
#: form_fields/mw_form_field_file.php:
|
115 |
-
#: form_fields/mw_form_field_image.php:
|
116 |
-
#: form_fields/mw_form_field_password.php:
|
117 |
-
#: form_fields/mw_form_field_radio.php:
|
118 |
-
#: form_fields/mw_form_field_select.php:
|
119 |
-
#: form_fields/mw_form_field_tel.php:
|
120 |
-
#: form_fields/mw_form_field_textarea.php:
|
121 |
-
#: form_fields/mw_form_field_zip.php:
|
122 |
msgid "Dsiplay error"
|
123 |
msgstr "エラー表示"
|
124 |
|
125 |
-
#: form_fields/mw_form_field_checkbox.php:
|
126 |
-
#: form_fields/mw_form_field_datepicker.php:
|
127 |
-
#: form_fields/mw_form_field_file.php:
|
128 |
-
#: form_fields/mw_form_field_image.php:
|
129 |
-
#: form_fields/mw_form_field_password.php:
|
130 |
-
#: form_fields/mw_form_field_radio.php:
|
131 |
-
#: form_fields/mw_form_field_select.php:
|
132 |
-
#: form_fields/mw_form_field_tel.php:
|
133 |
-
#: form_fields/mw_form_field_textarea.php:
|
134 |
-
#: form_fields/mw_form_field_zip.php:
|
135 |
msgid "Don't display error."
|
136 |
msgstr "エラーを表示しない"
|
137 |
|
@@ -148,11 +110,11 @@ msgstr "確認画面へ"
|
|
148 |
msgid "Datepicker"
|
149 |
msgstr "日付"
|
150 |
|
151 |
-
#: form_fields/mw_form_field_error.php:
|
152 |
msgid "Error Message"
|
153 |
msgstr "エラーメッセージ"
|
154 |
|
155 |
-
#: form_fields/mw_form_field_error.php:
|
156 |
msgid "name of the element which wants to display error"
|
157 |
msgstr "エラーを表示したい要素のname属性"
|
158 |
|
@@ -168,11 +130,11 @@ msgstr "アップロードしました。"
|
|
168 |
msgid "Hidden"
|
169 |
msgstr "hiddenフィールド"
|
170 |
|
171 |
-
#: form_fields/mw_form_field_hidden.php:
|
172 |
msgid "Display"
|
173 |
msgstr "表示する"
|
174 |
|
175 |
-
#: form_fields/mw_form_field_hidden.php:
|
176 |
msgid "Display hidden value."
|
177 |
msgstr "hiddenの値を表示"
|
178 |
|
@@ -205,11 +167,11 @@ msgstr "送信する"
|
|
205 |
msgid "Confirm & Submit"
|
206 |
msgstr "確認・送信"
|
207 |
|
208 |
-
#: form_fields/mw_form_field_submit_button.php:
|
209 |
msgid "String on the confirm button"
|
210 |
msgstr "確認ボタンに表示する文字列"
|
211 |
|
212 |
-
#: form_fields/mw_form_field_submit_button.php:
|
213 |
msgid "String on the submit button"
|
214 |
msgstr "送信ボタンに表示する文字列"
|
215 |
|
@@ -218,12 +180,12 @@ msgstr "送信ボタンに表示する文字列"
|
|
218 |
msgid "Tel"
|
219 |
msgstr "電話番号"
|
220 |
|
221 |
-
#: form_fields/mw_form_field_tel.php:
|
222 |
-
#: form_fields/mw_form_field_zip.php:
|
223 |
msgid "Convert half alphanumeric"
|
224 |
msgstr "半角英数字に変換"
|
225 |
|
226 |
-
#: form_fields/mw_form_field_tel.php:
|
227 |
msgid "Don't Convert."
|
228 |
msgstr "変換しない"
|
229 |
|
@@ -231,7 +193,7 @@ msgstr "変換しない"
|
|
231 |
msgid "Text"
|
232 |
msgstr "テキストフィールド"
|
233 |
|
234 |
-
#: form_fields/mw_form_field_text.php:
|
235 |
msgid "Convert."
|
236 |
msgstr "変換する"
|
237 |
|
@@ -244,11 +206,11 @@ msgstr "テキストエリア"
|
|
244 |
msgid "Zip Code"
|
245 |
msgstr "郵便番号"
|
246 |
|
247 |
-
#: mw-wp-form.php:
|
248 |
msgid "Validation Object is not a MW Validation Class."
|
249 |
msgstr ""
|
250 |
|
251 |
-
#: mw-wp-form.php:
|
252 |
msgid "Tracking Number"
|
253 |
msgstr "問い合わせ番号"
|
254 |
|
@@ -478,10 +440,14 @@ msgid "Button fields"
|
|
478 |
msgstr "ボタン項目"
|
479 |
|
480 |
#: system/mw_wp_form_admin_page.php:599
|
|
|
|
|
|
|
|
|
481 |
msgid "Other fields"
|
482 |
msgstr "その他の項目"
|
483 |
|
484 |
-
#: system/mw_wp_form_admin_page.php:
|
485 |
msgid "Add form tag"
|
486 |
msgstr "フォームタグを追加"
|
487 |
|
@@ -788,6 +754,9 @@ msgstr ""
|
|
788 |
msgid "http://2inc.org"
|
789 |
msgstr ""
|
790 |
|
|
|
|
|
|
|
791 |
#~ msgid "Shortcodes"
|
792 |
#~ msgstr "ショートコード"
|
793 |
|
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.1.0\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
|
7 |
+
"POT-Creation-Date: 2014-11-02 02:20:30+00:00\n"
|
8 |
+
"PO-Revision-Date: 2014-11-02 11:22+0900\n"
|
9 |
"Last-Translator: Takashi Kitajima <inc@2inc.org>\n"
|
10 |
"Language-Team: Takashi Kitajima <inc@2inc.org>\n"
|
11 |
"Language: ja\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.6.10\n"
|
19 |
"X-Poedit-KeywordsList: __;_e;_x;esc_html_e;esc_html__\n"
|
20 |
"X-Poedit-SearchPath-0: ..\n"
|
21 |
|
22 |
+
#: form_fields/mw_form_field_akismet_error.php:29
|
23 |
msgid "Akismet Error"
|
24 |
msgstr "Akismetエラー"
|
25 |
|
29 |
msgstr "戻る"
|
30 |
|
31 |
#: form_fields/mw_form_field_back_button.php:68
|
32 |
+
#: form_fields/mw_form_field_button.php:75
|
33 |
#: form_fields/mw_form_field_confirm_button.php:68
|
34 |
+
#: form_fields/mw_form_field_submit.php:75
|
35 |
msgid "String on the button"
|
36 |
msgstr "ボタンに表示する文字列"
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
#: form_fields/mw_form_field_button.php:29
|
39 |
msgid "Button"
|
40 |
msgstr "ボタン"
|
43 |
msgid "Checkbox"
|
44 |
msgstr "チェックボックス"
|
45 |
|
46 |
+
#: form_fields/mw_form_field_checkbox.php:96
|
47 |
+
#: form_fields/mw_form_field_radio.php:94
|
48 |
+
#: form_fields/mw_form_field_select.php:94
|
49 |
msgid "Choices"
|
50 |
msgstr "選択肢"
|
51 |
|
52 |
+
#: form_fields/mw_form_field_checkbox.php:100
|
53 |
+
#: form_fields/mw_form_field_error.php:77
|
54 |
+
#: form_fields/mw_form_field_radio.php:98
|
55 |
+
#: form_fields/mw_form_field_select.php:98
|
56 |
msgid "Input one line about one item."
|
57 |
msgstr "1項目につき1行で入力してください。"
|
58 |
|
59 |
+
#: form_fields/mw_form_field_checkbox.php:104
|
60 |
+
#: form_fields/mw_form_field_datepicker.php:128
|
61 |
+
#: form_fields/mw_form_field_hidden.php:79
|
62 |
+
#: form_fields/mw_form_field_password.php:105
|
63 |
+
#: form_fields/mw_form_field_radio.php:102
|
64 |
+
#: form_fields/mw_form_field_select.php:102
|
65 |
+
#: form_fields/mw_form_field_text.php:113
|
66 |
+
#: form_fields/mw_form_field_textarea.php:107
|
67 |
msgid "Default value"
|
68 |
msgstr "初期値"
|
69 |
|
70 |
+
#: form_fields/mw_form_field_checkbox.php:109
|
71 |
msgid "Separator string"
|
72 |
msgstr "区切り文字"
|
73 |
|
74 |
+
#: form_fields/mw_form_field_checkbox.php:114
|
75 |
+
#: form_fields/mw_form_field_datepicker.php:133
|
76 |
+
#: form_fields/mw_form_field_file.php:107
|
77 |
+
#: form_fields/mw_form_field_image.php:108
|
78 |
+
#: form_fields/mw_form_field_password.php:115
|
79 |
+
#: form_fields/mw_form_field_radio.php:107
|
80 |
+
#: form_fields/mw_form_field_select.php:107
|
81 |
+
#: form_fields/mw_form_field_tel.php:87 form_fields/mw_form_field_text.php:123
|
82 |
+
#: form_fields/mw_form_field_textarea.php:117
|
83 |
+
#: form_fields/mw_form_field_zip.php:87
|
84 |
msgid "Dsiplay error"
|
85 |
msgstr "エラー表示"
|
86 |
|
87 |
+
#: form_fields/mw_form_field_checkbox.php:116
|
88 |
+
#: form_fields/mw_form_field_datepicker.php:135
|
89 |
+
#: form_fields/mw_form_field_file.php:109
|
90 |
+
#: form_fields/mw_form_field_image.php:110
|
91 |
+
#: form_fields/mw_form_field_password.php:117
|
92 |
+
#: form_fields/mw_form_field_radio.php:109
|
93 |
+
#: form_fields/mw_form_field_select.php:109
|
94 |
+
#: form_fields/mw_form_field_tel.php:89 form_fields/mw_form_field_text.php:125
|
95 |
+
#: form_fields/mw_form_field_textarea.php:119
|
96 |
+
#: form_fields/mw_form_field_zip.php:89
|
97 |
msgid "Don't display error."
|
98 |
msgstr "エラーを表示しない"
|
99 |
|
110 |
msgid "Datepicker"
|
111 |
msgstr "日付"
|
112 |
|
113 |
+
#: form_fields/mw_form_field_error.php:29
|
114 |
msgid "Error Message"
|
115 |
msgstr "エラーメッセージ"
|
116 |
|
117 |
+
#: form_fields/mw_form_field_error.php:73
|
118 |
msgid "name of the element which wants to display error"
|
119 |
msgstr "エラーを表示したい要素のname属性"
|
120 |
|
130 |
msgid "Hidden"
|
131 |
msgstr "hiddenフィールド"
|
132 |
|
133 |
+
#: form_fields/mw_form_field_hidden.php:84
|
134 |
msgid "Display"
|
135 |
msgstr "表示する"
|
136 |
|
137 |
+
#: form_fields/mw_form_field_hidden.php:86
|
138 |
msgid "Display hidden value."
|
139 |
msgstr "hiddenの値を表示"
|
140 |
|
167 |
msgid "Confirm & Submit"
|
168 |
msgstr "確認・送信"
|
169 |
|
170 |
+
#: form_fields/mw_form_field_submit_button.php:79
|
171 |
msgid "String on the confirm button"
|
172 |
msgstr "確認ボタンに表示する文字列"
|
173 |
|
174 |
+
#: form_fields/mw_form_field_submit_button.php:84
|
175 |
msgid "String on the submit button"
|
176 |
msgstr "送信ボタンに表示する文字列"
|
177 |
|
180 |
msgid "Tel"
|
181 |
msgstr "電話番号"
|
182 |
|
183 |
+
#: form_fields/mw_form_field_tel.php:92 form_fields/mw_form_field_text.php:128
|
184 |
+
#: form_fields/mw_form_field_zip.php:92
|
185 |
msgid "Convert half alphanumeric"
|
186 |
msgstr "半角英数字に変換"
|
187 |
|
188 |
+
#: form_fields/mw_form_field_tel.php:94 form_fields/mw_form_field_zip.php:94
|
189 |
msgid "Don't Convert."
|
190 |
msgstr "変換しない"
|
191 |
|
193 |
msgid "Text"
|
194 |
msgstr "テキストフィールド"
|
195 |
|
196 |
+
#: form_fields/mw_form_field_text.php:130
|
197 |
msgid "Convert."
|
198 |
msgstr "変換する"
|
199 |
|
206 |
msgid "Zip Code"
|
207 |
msgstr "郵便番号"
|
208 |
|
209 |
+
#: mw-wp-form.php:553
|
210 |
msgid "Validation Object is not a MW Validation Class."
|
211 |
msgstr ""
|
212 |
|
213 |
+
#: mw-wp-form.php:740
|
214 |
msgid "Tracking Number"
|
215 |
msgstr "問い合わせ番号"
|
216 |
|
440 |
msgstr "ボタン項目"
|
441 |
|
442 |
#: system/mw_wp_form_admin_page.php:599
|
443 |
+
msgid "Error fields"
|
444 |
+
msgstr "エラー項目"
|
445 |
+
|
446 |
+
#: system/mw_wp_form_admin_page.php:602
|
447 |
msgid "Other fields"
|
448 |
msgstr "その他の項目"
|
449 |
|
450 |
+
#: system/mw_wp_form_admin_page.php:606
|
451 |
msgid "Add form tag"
|
452 |
msgstr "フォームタグを追加"
|
453 |
|
754 |
msgid "http://2inc.org"
|
755 |
msgstr ""
|
756 |
|
757 |
+
#~ msgid "option"
|
758 |
+
#~ msgstr "オプション"
|
759 |
+
|
760 |
#~ msgid "Shortcodes"
|
761 |
#~ msgstr "ショートコード"
|
762 |
|
languages/mw-wp-form.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the MW WP Form package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: MW WP Form 2.
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
|
7 |
-
"POT-Creation-Date: 2014-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -18,7 +18,7 @@ msgstr ""
|
|
18 |
"X-Poedit-KeywordsList: __;_e\n"
|
19 |
"X-Poedit-SearchPath-0: ..\n"
|
20 |
|
21 |
-
#: form_fields/mw_form_field_akismet_error.php:
|
22 |
msgid "Akismet Error"
|
23 |
msgstr ""
|
24 |
|
@@ -28,49 +28,12 @@ msgid "Back"
|
|
28 |
msgstr ""
|
29 |
|
30 |
#: form_fields/mw_form_field_back_button.php:68
|
31 |
-
#: form_fields/mw_form_field_button.php:
|
32 |
#: form_fields/mw_form_field_confirm_button.php:68
|
33 |
-
#: form_fields/mw_form_field_submit.php:
|
34 |
msgid "String on the button"
|
35 |
msgstr ""
|
36 |
|
37 |
-
#: form_fields/mw_form_field_back_button.php:68
|
38 |
-
#: form_fields/mw_form_field_button.php:74
|
39 |
-
#: form_fields/mw_form_field_checkbox.php:90
|
40 |
-
#: form_fields/mw_form_field_checkbox.php:94
|
41 |
-
#: form_fields/mw_form_field_checkbox.php:101
|
42 |
-
#: form_fields/mw_form_field_confirm_button.php:68
|
43 |
-
#: form_fields/mw_form_field_datepicker.php:112
|
44 |
-
#: form_fields/mw_form_field_datepicker.php:116
|
45 |
-
#: form_fields/mw_form_field_datepicker.php:120
|
46 |
-
#: form_fields/mw_form_field_datepicker.php:124
|
47 |
-
#: form_fields/mw_form_field_file.php:101
|
48 |
-
#: form_fields/mw_form_field_hidden.php:78
|
49 |
-
#: form_fields/mw_form_field_image.php:102
|
50 |
-
#: form_fields/mw_form_field_password.php:89
|
51 |
-
#: form_fields/mw_form_field_password.php:93
|
52 |
-
#: form_fields/mw_form_field_password.php:97
|
53 |
-
#: form_fields/mw_form_field_password.php:101
|
54 |
-
#: form_fields/mw_form_field_password.php:105
|
55 |
-
#: form_fields/mw_form_field_radio.php:88
|
56 |
-
#: form_fields/mw_form_field_radio.php:92
|
57 |
-
#: form_fields/mw_form_field_radio.php:99
|
58 |
-
#: form_fields/mw_form_field_select.php:88
|
59 |
-
#: form_fields/mw_form_field_select.php:92
|
60 |
-
#: form_fields/mw_form_field_select.php:99
|
61 |
-
#: form_fields/mw_form_field_submit.php:74
|
62 |
-
#: form_fields/mw_form_field_text.php:97 form_fields/mw_form_field_text.php:101
|
63 |
-
#: form_fields/mw_form_field_text.php:105
|
64 |
-
#: form_fields/mw_form_field_text.php:109
|
65 |
-
#: form_fields/mw_form_field_text.php:113
|
66 |
-
#: form_fields/mw_form_field_textarea.php:91
|
67 |
-
#: form_fields/mw_form_field_textarea.php:95
|
68 |
-
#: form_fields/mw_form_field_textarea.php:99
|
69 |
-
#: form_fields/mw_form_field_textarea.php:103
|
70 |
-
#: form_fields/mw_form_field_textarea.php:107
|
71 |
-
msgid "option"
|
72 |
-
msgstr ""
|
73 |
-
|
74 |
#: form_fields/mw_form_field_button.php:29
|
75 |
msgid "Button"
|
76 |
msgstr ""
|
@@ -79,57 +42,57 @@ msgstr ""
|
|
79 |
msgid "Checkbox"
|
80 |
msgstr ""
|
81 |
|
82 |
-
#: form_fields/mw_form_field_checkbox.php:
|
83 |
-
#: form_fields/mw_form_field_radio.php:
|
84 |
-
#: form_fields/mw_form_field_select.php:
|
85 |
msgid "Choices"
|
86 |
msgstr ""
|
87 |
|
88 |
-
#: form_fields/mw_form_field_checkbox.php:
|
89 |
-
#: form_fields/mw_form_field_error.php:
|
90 |
-
#: form_fields/mw_form_field_radio.php:
|
91 |
-
#: form_fields/mw_form_field_select.php:
|
92 |
msgid "Input one line about one item."
|
93 |
msgstr ""
|
94 |
|
95 |
-
#: form_fields/mw_form_field_checkbox.php:
|
96 |
-
#: form_fields/mw_form_field_datepicker.php:
|
97 |
-
#: form_fields/mw_form_field_hidden.php:
|
98 |
-
#: form_fields/mw_form_field_password.php:
|
99 |
-
#: form_fields/mw_form_field_radio.php:
|
100 |
-
#: form_fields/mw_form_field_select.php:
|
101 |
-
#: form_fields/mw_form_field_text.php:
|
102 |
-
#: form_fields/mw_form_field_textarea.php:
|
103 |
msgid "Default value"
|
104 |
msgstr ""
|
105 |
|
106 |
-
#: form_fields/mw_form_field_checkbox.php:
|
107 |
msgid "Separator string"
|
108 |
msgstr ""
|
109 |
|
110 |
-
#: form_fields/mw_form_field_checkbox.php:
|
111 |
-
#: form_fields/mw_form_field_datepicker.php:
|
112 |
-
#: form_fields/mw_form_field_file.php:
|
113 |
-
#: form_fields/mw_form_field_image.php:
|
114 |
-
#: form_fields/mw_form_field_password.php:
|
115 |
-
#: form_fields/mw_form_field_radio.php:
|
116 |
-
#: form_fields/mw_form_field_select.php:
|
117 |
-
#: form_fields/mw_form_field_tel.php:
|
118 |
-
#: form_fields/mw_form_field_textarea.php:
|
119 |
-
#: form_fields/mw_form_field_zip.php:
|
120 |
msgid "Dsiplay error"
|
121 |
msgstr ""
|
122 |
|
123 |
-
#: form_fields/mw_form_field_checkbox.php:
|
124 |
-
#: form_fields/mw_form_field_datepicker.php:
|
125 |
-
#: form_fields/mw_form_field_file.php:
|
126 |
-
#: form_fields/mw_form_field_image.php:
|
127 |
-
#: form_fields/mw_form_field_password.php:
|
128 |
-
#: form_fields/mw_form_field_radio.php:
|
129 |
-
#: form_fields/mw_form_field_select.php:
|
130 |
-
#: form_fields/mw_form_field_tel.php:
|
131 |
-
#: form_fields/mw_form_field_textarea.php:
|
132 |
-
#: form_fields/mw_form_field_zip.php:
|
133 |
msgid "Don't display error."
|
134 |
msgstr ""
|
135 |
|
@@ -146,11 +109,11 @@ msgstr ""
|
|
146 |
msgid "Datepicker"
|
147 |
msgstr ""
|
148 |
|
149 |
-
#: form_fields/mw_form_field_error.php:
|
150 |
msgid "Error Message"
|
151 |
msgstr ""
|
152 |
|
153 |
-
#: form_fields/mw_form_field_error.php:
|
154 |
msgid "name of the element which wants to display error"
|
155 |
msgstr ""
|
156 |
|
@@ -166,11 +129,11 @@ msgstr ""
|
|
166 |
msgid "Hidden"
|
167 |
msgstr ""
|
168 |
|
169 |
-
#: form_fields/mw_form_field_hidden.php:
|
170 |
msgid "Display"
|
171 |
msgstr ""
|
172 |
|
173 |
-
#: form_fields/mw_form_field_hidden.php:
|
174 |
msgid "Display hidden value."
|
175 |
msgstr ""
|
176 |
|
@@ -203,11 +166,11 @@ msgstr ""
|
|
203 |
msgid "Confirm & Submit"
|
204 |
msgstr ""
|
205 |
|
206 |
-
#: form_fields/mw_form_field_submit_button.php:
|
207 |
msgid "String on the confirm button"
|
208 |
msgstr ""
|
209 |
|
210 |
-
#: form_fields/mw_form_field_submit_button.php:
|
211 |
msgid "String on the submit button"
|
212 |
msgstr ""
|
213 |
|
@@ -216,12 +179,12 @@ msgstr ""
|
|
216 |
msgid "Tel"
|
217 |
msgstr ""
|
218 |
|
219 |
-
#: form_fields/mw_form_field_tel.php:
|
220 |
-
#: form_fields/mw_form_field_zip.php:
|
221 |
msgid "Convert half alphanumeric"
|
222 |
msgstr ""
|
223 |
|
224 |
-
#: form_fields/mw_form_field_tel.php:
|
225 |
msgid "Don't Convert."
|
226 |
msgstr ""
|
227 |
|
@@ -229,7 +192,7 @@ msgstr ""
|
|
229 |
msgid "Text"
|
230 |
msgstr ""
|
231 |
|
232 |
-
#: form_fields/mw_form_field_text.php:
|
233 |
msgid "Convert."
|
234 |
msgstr ""
|
235 |
|
@@ -242,11 +205,11 @@ msgstr ""
|
|
242 |
msgid "Zip Code"
|
243 |
msgstr ""
|
244 |
|
245 |
-
#: mw-wp-form.php:
|
246 |
msgid "Validation Object is not a MW Validation Class."
|
247 |
msgstr ""
|
248 |
|
249 |
-
#: mw-wp-form.php:
|
250 |
msgid "Tracking Number"
|
251 |
msgstr ""
|
252 |
|
@@ -461,10 +424,14 @@ msgid "Button fields"
|
|
461 |
msgstr ""
|
462 |
|
463 |
#: system/mw_wp_form_admin_page.php:599
|
|
|
|
|
|
|
|
|
464 |
msgid "Other fields"
|
465 |
msgstr ""
|
466 |
|
467 |
-
#: system/mw_wp_form_admin_page.php:
|
468 |
msgid "Add form tag"
|
469 |
msgstr ""
|
470 |
|
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.1.0\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
|
7 |
+
"POT-Creation-Date: 2014-11-02 02:20:30+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
18 |
"X-Poedit-KeywordsList: __;_e\n"
|
19 |
"X-Poedit-SearchPath-0: ..\n"
|
20 |
|
21 |
+
#: form_fields/mw_form_field_akismet_error.php:29
|
22 |
msgid "Akismet Error"
|
23 |
msgstr ""
|
24 |
|
28 |
msgstr ""
|
29 |
|
30 |
#: form_fields/mw_form_field_back_button.php:68
|
31 |
+
#: form_fields/mw_form_field_button.php:75
|
32 |
#: form_fields/mw_form_field_confirm_button.php:68
|
33 |
+
#: form_fields/mw_form_field_submit.php:75
|
34 |
msgid "String on the button"
|
35 |
msgstr ""
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
#: form_fields/mw_form_field_button.php:29
|
38 |
msgid "Button"
|
39 |
msgstr ""
|
42 |
msgid "Checkbox"
|
43 |
msgstr ""
|
44 |
|
45 |
+
#: form_fields/mw_form_field_checkbox.php:96
|
46 |
+
#: form_fields/mw_form_field_radio.php:94
|
47 |
+
#: form_fields/mw_form_field_select.php:94
|
48 |
msgid "Choices"
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: form_fields/mw_form_field_checkbox.php:100
|
52 |
+
#: form_fields/mw_form_field_error.php:77
|
53 |
+
#: form_fields/mw_form_field_radio.php:98
|
54 |
+
#: form_fields/mw_form_field_select.php:98
|
55 |
msgid "Input one line about one item."
|
56 |
msgstr ""
|
57 |
|
58 |
+
#: form_fields/mw_form_field_checkbox.php:104
|
59 |
+
#: form_fields/mw_form_field_datepicker.php:128
|
60 |
+
#: form_fields/mw_form_field_hidden.php:79
|
61 |
+
#: form_fields/mw_form_field_password.php:105
|
62 |
+
#: form_fields/mw_form_field_radio.php:102
|
63 |
+
#: form_fields/mw_form_field_select.php:102
|
64 |
+
#: form_fields/mw_form_field_text.php:113
|
65 |
+
#: form_fields/mw_form_field_textarea.php:107
|
66 |
msgid "Default value"
|
67 |
msgstr ""
|
68 |
|
69 |
+
#: form_fields/mw_form_field_checkbox.php:109
|
70 |
msgid "Separator string"
|
71 |
msgstr ""
|
72 |
|
73 |
+
#: form_fields/mw_form_field_checkbox.php:114
|
74 |
+
#: form_fields/mw_form_field_datepicker.php:133
|
75 |
+
#: form_fields/mw_form_field_file.php:107
|
76 |
+
#: form_fields/mw_form_field_image.php:108
|
77 |
+
#: form_fields/mw_form_field_password.php:115
|
78 |
+
#: form_fields/mw_form_field_radio.php:107
|
79 |
+
#: form_fields/mw_form_field_select.php:107
|
80 |
+
#: form_fields/mw_form_field_tel.php:87 form_fields/mw_form_field_text.php:123
|
81 |
+
#: form_fields/mw_form_field_textarea.php:117
|
82 |
+
#: form_fields/mw_form_field_zip.php:87
|
83 |
msgid "Dsiplay error"
|
84 |
msgstr ""
|
85 |
|
86 |
+
#: form_fields/mw_form_field_checkbox.php:116
|
87 |
+
#: form_fields/mw_form_field_datepicker.php:135
|
88 |
+
#: form_fields/mw_form_field_file.php:109
|
89 |
+
#: form_fields/mw_form_field_image.php:110
|
90 |
+
#: form_fields/mw_form_field_password.php:117
|
91 |
+
#: form_fields/mw_form_field_radio.php:109
|
92 |
+
#: form_fields/mw_form_field_select.php:109
|
93 |
+
#: form_fields/mw_form_field_tel.php:89 form_fields/mw_form_field_text.php:125
|
94 |
+
#: form_fields/mw_form_field_textarea.php:119
|
95 |
+
#: form_fields/mw_form_field_zip.php:89
|
96 |
msgid "Don't display error."
|
97 |
msgstr ""
|
98 |
|
109 |
msgid "Datepicker"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: form_fields/mw_form_field_error.php:29
|
113 |
msgid "Error Message"
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: form_fields/mw_form_field_error.php:73
|
117 |
msgid "name of the element which wants to display error"
|
118 |
msgstr ""
|
119 |
|
129 |
msgid "Hidden"
|
130 |
msgstr ""
|
131 |
|
132 |
+
#: form_fields/mw_form_field_hidden.php:84
|
133 |
msgid "Display"
|
134 |
msgstr ""
|
135 |
|
136 |
+
#: form_fields/mw_form_field_hidden.php:86
|
137 |
msgid "Display hidden value."
|
138 |
msgstr ""
|
139 |
|
166 |
msgid "Confirm & Submit"
|
167 |
msgstr ""
|
168 |
|
169 |
+
#: form_fields/mw_form_field_submit_button.php:79
|
170 |
msgid "String on the confirm button"
|
171 |
msgstr ""
|
172 |
|
173 |
+
#: form_fields/mw_form_field_submit_button.php:84
|
174 |
msgid "String on the submit button"
|
175 |
msgstr ""
|
176 |
|
179 |
msgid "Tel"
|
180 |
msgstr ""
|
181 |
|
182 |
+
#: form_fields/mw_form_field_tel.php:92 form_fields/mw_form_field_text.php:128
|
183 |
+
#: form_fields/mw_form_field_zip.php:92
|
184 |
msgid "Convert half alphanumeric"
|
185 |
msgstr ""
|
186 |
|
187 |
+
#: form_fields/mw_form_field_tel.php:94 form_fields/mw_form_field_zip.php:94
|
188 |
msgid "Don't Convert."
|
189 |
msgstr ""
|
190 |
|
192 |
msgid "Text"
|
193 |
msgstr ""
|
194 |
|
195 |
+
#: form_fields/mw_form_field_text.php:130
|
196 |
msgid "Convert."
|
197 |
msgstr ""
|
198 |
|
205 |
msgid "Zip Code"
|
206 |
msgstr ""
|
207 |
|
208 |
+
#: mw-wp-form.php:553
|
209 |
msgid "Validation Object is not a MW Validation Class."
|
210 |
msgstr ""
|
211 |
|
212 |
+
#: mw-wp-form.php:740
|
213 |
msgid "Tracking Number"
|
214 |
msgstr ""
|
215 |
|
424 |
msgstr ""
|
425 |
|
426 |
#: system/mw_wp_form_admin_page.php:599
|
427 |
+
msgid "Error fields"
|
428 |
+
msgstr ""
|
429 |
+
|
430 |
+
#: system/mw_wp_form_admin_page.php:602
|
431 |
msgid "Other fields"
|
432 |
msgstr ""
|
433 |
|
434 |
+
#: system/mw_wp_form_admin_page.php:606
|
435 |
msgid "Add form tag"
|
436 |
msgstr ""
|
437 |
|
mw-wp-form.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Plugin Name: MW WP Form
|
4 |
* Plugin URI: http://plugins.2inc.org/mw-wp-form/
|
5 |
* Description: MW WP Form can create mail form with a confirmation screen.
|
6 |
-
* Version: 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
|
@@ -79,6 +79,7 @@ class mw_wp_form {
|
|
79 |
'style' => '',
|
80 |
'scroll' => null,
|
81 |
);
|
|
|
82 |
|
83 |
/**
|
84 |
* __construct
|
@@ -127,6 +128,7 @@ class mw_wp_form {
|
|
127 |
new $className();
|
128 |
}
|
129 |
}
|
|
|
130 |
|
131 |
// バリデーションルールの読み込み、インスタンス化
|
132 |
$validation_rules = $this->validation_rules;
|
@@ -841,11 +843,11 @@ class mw_wp_form {
|
|
841 |
|
842 |
// 入力画面・確認画面
|
843 |
if ( $this->viewFlg == 'input' || $this->viewFlg == 'confirm' ) {
|
844 |
-
$content = get_the_content();
|
845 |
if ( has_filter( 'the_content', 'wpautop' ) ) {
|
846 |
$content = wpautop( $content );
|
847 |
}
|
848 |
-
$_ret ='[mwform]' . $content . '[/mwform]';
|
849 |
}
|
850 |
// 完了画面
|
851 |
elseif( $this->viewFlg == 'complete' ) {
|
@@ -889,10 +891,13 @@ class mw_wp_form {
|
|
889 |
}
|
890 |
}
|
891 |
$_preview_class = ( $this->viewFlg === 'confirm' ) ? ' mw_wp_form_preview' : '';
|
|
|
|
|
892 |
return sprintf(
|
893 |
-
'<div id="mw_wp_form_%s" class="mw_wp_form mw_wp_form_%s">%s<!-- end .mw_wp_form --></div>',
|
894 |
esc_attr( $this->key ),
|
895 |
esc_attr( $this->viewFlg . $_preview_class ),
|
|
|
896 |
$this->Form->start() . do_shortcode( $content ) . $upload_file_hidden . $this->Form->end()
|
897 |
);
|
898 |
}
|
3 |
* Plugin Name: MW WP Form
|
4 |
* Plugin URI: http://plugins.2inc.org/mw-wp-form/
|
5 |
* Description: MW WP Form can create mail form with a confirmation screen.
|
6 |
+
* Version: 2.1.0
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : September 25, 2012
|
10 |
+
* Modified: November 2, 2014
|
11 |
* Text Domain: mw-wp-form
|
12 |
* Domain Path: /languages/
|
13 |
* License: GPLv2
|
79 |
'style' => '',
|
80 |
'scroll' => null,
|
81 |
);
|
82 |
+
private $form_fields = array();
|
83 |
|
84 |
/**
|
85 |
* __construct
|
128 |
new $className();
|
129 |
}
|
130 |
}
|
131 |
+
$this->form_fields = apply_filters( 'mwform_form_fields', $this->form_fields );
|
132 |
|
133 |
// バリデーションルールの読み込み、インスタンス化
|
134 |
$validation_rules = $this->validation_rules;
|
843 |
|
844 |
// 入力画面・確認画面
|
845 |
if ( $this->viewFlg == 'input' || $this->viewFlg == 'confirm' ) {
|
846 |
+
$content = apply_filters( 'mwform_post_content_raw_' . $this->key, get_the_content() );
|
847 |
if ( has_filter( 'the_content', 'wpautop' ) ) {
|
848 |
$content = wpautop( $content );
|
849 |
}
|
850 |
+
$_ret ='[mwform]' . apply_filters( 'mwform_post_content_' . $this->key, $content ) . '[/mwform]';
|
851 |
}
|
852 |
// 完了画面
|
853 |
elseif( $this->viewFlg == 'complete' ) {
|
891 |
}
|
892 |
}
|
893 |
$_preview_class = ( $this->viewFlg === 'confirm' ) ? ' mw_wp_form_preview' : '';
|
894 |
+
$style = $this->options_by_formkey['style'];
|
895 |
+
$class_for_style = ( $style ) ? 'mw_wp_form_' . $style : '';
|
896 |
return sprintf(
|
897 |
+
'<div id="mw_wp_form_%s" class="mw_wp_form mw_wp_form_%s %s">%s<!-- end .mw_wp_form --></div>',
|
898 |
esc_attr( $this->key ),
|
899 |
esc_attr( $this->viewFlg . $_preview_class ),
|
900 |
+
$class_for_style,
|
901 |
$this->Form->start() . do_shortcode( $content ) . $upload_file_hidden . $this->Form->end()
|
902 |
);
|
903 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.amazon.co.jp/registry/wishlist/39ANKRNSTNW40
|
|
4 |
Tags: plugin, form, confirm, preview, shortcode, mail, chart, graph
|
5 |
Requires at least: 3.7
|
6 |
Tested up to: 4.0
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -71,6 +71,16 @@ Do you have questions or issues with MW WP Form? Use these support channels appr
|
|
71 |
|
72 |
== Changelog ==
|
73 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
= 2.0.0 =
|
75 |
* Added : Add scrolling of screen transition setting.
|
76 |
* Added : Add filter_hook mwform_scroll_offset_mw-wp-form-xxx.
|
4 |
Tags: plugin, form, confirm, preview, shortcode, mail, chart, graph
|
5 |
Requires at least: 3.7
|
6 |
Tested up to: 4.0
|
7 |
+
Stable tag: 2.1.0
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
71 |
|
72 |
== Changelog ==
|
73 |
|
74 |
+
= 2.1.0 =
|
75 |
+
* Added : Add filter_hook mwform_post_content_raw_mw-wp-form-xxx.
|
76 |
+
* Added : Add filter_hook mwform_post_content_mw-wp-form-xxx.
|
77 |
+
* Added : Add filter_hook mwform_form_fields.
|
78 |
+
* Added : Add "Error" form type.
|
79 |
+
* Changed : MW_Form_Field::mwform_tag_generator_dialog() method needs $options argument.
|
80 |
+
* Changed : Zip code field and Tel field are wrapped by span tag.
|
81 |
+
* Bug fix : Empty separator is changed to not allow in checkbox field.
|
82 |
+
* Bug fix : Fix add form tag button css bug.
|
83 |
+
|
84 |
= 2.0.0 =
|
85 |
* Added : Add scrolling of screen transition setting.
|
86 |
* Added : Add filter_hook mwform_scroll_offset_mw-wp-form-xxx.
|
system/mw_form.php
CHANGED
@@ -428,7 +428,8 @@ class MW_Form {
|
|
428 |
}
|
429 |
}
|
430 |
|
431 |
-
$_ret = '
|
|
|
432 |
$_ret .= $this->text( $name . '[data][0]', array(
|
433 |
'size' => 4,
|
434 |
'maxlength' => 3,
|
@@ -443,6 +444,7 @@ class MW_Form {
|
|
443 |
'conv-half-alphanumeric' => $options['conv-half-alphanumeric'],
|
444 |
) );
|
445 |
$_ret .= $this->separator( $name, $separator );
|
|
|
446 |
return $_ret;
|
447 |
}
|
448 |
|
@@ -477,7 +479,7 @@ class MW_Form {
|
|
477 |
}
|
478 |
}
|
479 |
|
480 |
-
$_ret
|
481 |
$_ret .= $this->text( $name . '[data][0]', array(
|
482 |
'size' => 6,
|
483 |
'maxlength' => 5,
|
@@ -499,6 +501,7 @@ class MW_Form {
|
|
499 |
'conv-half-alphanumeric' => $options['conv-half-alphanumeric'],
|
500 |
) );
|
501 |
$_ret .= $this->separator( $name, $separator );
|
|
|
502 |
return $_ret;
|
503 |
}
|
504 |
|
428 |
}
|
429 |
}
|
430 |
|
431 |
+
$_ret = '<span class="mwform-zip-field">';
|
432 |
+
$_ret .= '〒';
|
433 |
$_ret .= $this->text( $name . '[data][0]', array(
|
434 |
'size' => 4,
|
435 |
'maxlength' => 3,
|
444 |
'conv-half-alphanumeric' => $options['conv-half-alphanumeric'],
|
445 |
) );
|
446 |
$_ret .= $this->separator( $name, $separator );
|
447 |
+
$_ret .= '</span>';
|
448 |
return $_ret;
|
449 |
}
|
450 |
|
479 |
}
|
480 |
}
|
481 |
|
482 |
+
$_ret = '<span class="mwform-tel-field">';
|
483 |
$_ret .= $this->text( $name . '[data][0]', array(
|
484 |
'size' => 6,
|
485 |
'maxlength' => 5,
|
501 |
'conv-half-alphanumeric' => $options['conv-half-alphanumeric'],
|
502 |
) );
|
503 |
$_ret .= $this->separator( $name, $separator );
|
504 |
+
$_ret .= '</span>';
|
505 |
return $_ret;
|
506 |
}
|
507 |
|
system/mw_form_field.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
/**
|
3 |
* Name: MW Form Field
|
4 |
* Description: フォームフィールドの抽象クラス
|
5 |
-
* Version: 1.6.
|
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 |
*/
|
@@ -49,7 +49,7 @@ abstract class MW_Form_Field {
|
|
49 |
|
50 |
/**
|
51 |
* string $type フォームタグの種類
|
52 |
-
* input, select, button, other
|
53 |
*/
|
54 |
protected $type = 'other';
|
55 |
|
@@ -71,6 +71,7 @@ abstract class MW_Form_Field {
|
|
71 |
$this->defaults = $this->setDefaults();
|
72 |
add_action( 'mwform_add_shortcode', array( $this, 'add_shortcode' ), 10, 4 );
|
73 |
$this->_add_mwform_tag_generator();
|
|
|
74 |
}
|
75 |
|
76 |
/**
|
@@ -250,7 +251,7 @@ abstract class MW_Form_Field {
|
|
250 |
* add_mwform_tag_generator
|
251 |
* タグジェネレータのダイアログを出力。各フォーム項目クラスでオーバーライド
|
252 |
*/
|
253 |
-
|
254 |
|
255 |
/**
|
256 |
* mwform_tag_generator_option
|
@@ -264,4 +265,43 @@ abstract class MW_Form_Field {
|
|
264 |
<option value="<?php echo esc_attr( $this->shortcode_name ); ?>"><?php echo esc_html( $display_name ); ?></option>
|
265 |
<?php
|
266 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
267 |
}
|
2 |
/**
|
3 |
* Name: MW Form Field
|
4 |
* Description: フォームフィールドの抽象クラス
|
5 |
+
* Version: 1.6.4
|
6 |
* Author: Takashi Kitajima
|
7 |
* Author URI: http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
+
* Modified: November 2, 2014
|
10 |
* License: GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
49 |
|
50 |
/**
|
51 |
* string $type フォームタグの種類
|
52 |
+
* input, select, button, error, other
|
53 |
*/
|
54 |
protected $type = 'other';
|
55 |
|
71 |
$this->defaults = $this->setDefaults();
|
72 |
add_action( 'mwform_add_shortcode', array( $this, 'add_shortcode' ), 10, 4 );
|
73 |
$this->_add_mwform_tag_generator();
|
74 |
+
add_filter( 'mwform_form_fields', array( $this, 'mwform_form_fields' ) );
|
75 |
}
|
76 |
|
77 |
/**
|
251 |
* add_mwform_tag_generator
|
252 |
* タグジェネレータのダイアログを出力。各フォーム項目クラスでオーバーライド
|
253 |
*/
|
254 |
+
public function mwform_tag_generator_dialog( array $options = array() ) {}
|
255 |
|
256 |
/**
|
257 |
* mwform_tag_generator_option
|
265 |
<option value="<?php echo esc_attr( $this->shortcode_name ); ?>"><?php echo esc_html( $display_name ); ?></option>
|
266 |
<?php
|
267 |
}
|
268 |
+
|
269 |
+
/**
|
270 |
+
* mwform_form_fields
|
271 |
+
* @param array $form_fields MW_Form_Field を継承したオブジェクトの一覧
|
272 |
+
* @return array $form_fields
|
273 |
+
*/
|
274 |
+
public function mwform_form_fields( array $form_fields ) {
|
275 |
+
$form_fields = array_merge( $form_fields, array( $this->shortcode_name => $this ) );
|
276 |
+
return $form_fields;
|
277 |
+
}
|
278 |
+
|
279 |
+
/**
|
280 |
+
* get_display_name
|
281 |
+
* @return string 表示名
|
282 |
+
*/
|
283 |
+
public function get_display_name() {
|
284 |
+
return $this->display_name;
|
285 |
+
}
|
286 |
+
|
287 |
+
/**
|
288 |
+
* get_value_for_generator
|
289 |
+
* MW WP Fomr Generator 用
|
290 |
+
*/
|
291 |
+
public function get_value_for_generator( $key, $options ) {
|
292 |
+
$attributes = array_keys( $this->defaults );
|
293 |
+
$add_allow_attributes = array(
|
294 |
+
'mw-wp-form-generator-notes',
|
295 |
+
'mw-wp-form-generator-display-name'
|
296 |
+
);
|
297 |
+
$attributes = array_merge( $attributes, $add_allow_attributes );
|
298 |
+
$attributes = array_flip( $attributes );
|
299 |
+
if ( isset( $attributes[$key] ) ) {
|
300 |
+
if ( isset( $options[$key] ) ) {
|
301 |
+
return $options[$key];
|
302 |
+
} else {
|
303 |
+
return '';
|
304 |
+
}
|
305 |
+
}
|
306 |
+
}
|
307 |
}
|
system/mw_wp_form_admin_page.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
/**
|
3 |
* Name: MW WP Form Admin Page
|
4 |
* Description: 管理画面クラス
|
5 |
-
* Version: 1.12.
|
6 |
* Author: Takashi Kitajima
|
7 |
* Author URI: http://2inc.org
|
8 |
* Created : February 21, 2013
|
9 |
-
* Modified:
|
10 |
* License: GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
@@ -38,7 +38,7 @@ class MW_WP_Form_Admin_Page {
|
|
38 |
add_action( 'admin_print_footer_scripts', array( $this, 'add_quicktag' ) );
|
39 |
add_action( 'current_screen', array( $this, 'current_screen' ) );
|
40 |
add_filter( 'default_content', array( $this, 'default_content' ) );
|
41 |
-
add_action( '
|
42 |
}
|
43 |
|
44 |
/**
|
@@ -596,6 +596,9 @@ class MW_WP_Form_Admin_Page {
|
|
596 |
<optgroup label="<?php echo esc_attr_e( 'Button fields', MWF_Config::DOMAIN ); ?>">
|
597 |
<?php do_action( 'mwform_tag_generator_button_option' ); ?>
|
598 |
</optgroup>
|
|
|
|
|
|
|
599 |
<optgroup label="<?php echo esc_attr_e( 'Other fields', MWF_Config::DOMAIN ); ?>">
|
600 |
<?php do_action( 'mwform_tag_generator_option' ); ?>
|
601 |
</optgroup>
|
2 |
/**
|
3 |
* Name: MW WP Form Admin Page
|
4 |
* Description: 管理画面クラス
|
5 |
+
* Version: 1.12.1
|
6 |
* Author: Takashi Kitajima
|
7 |
* Author URI: http://2inc.org
|
8 |
* Created : February 21, 2013
|
9 |
+
* Modified: November 2, 2014
|
10 |
* License: GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
38 |
add_action( 'admin_print_footer_scripts', array( $this, 'add_quicktag' ) );
|
39 |
add_action( 'current_screen', array( $this, 'current_screen' ) );
|
40 |
add_filter( 'default_content', array( $this, 'default_content' ) );
|
41 |
+
add_action( 'media_buttons', array( $this, 'add_tag_generator' ) );
|
42 |
}
|
43 |
|
44 |
/**
|
596 |
<optgroup label="<?php echo esc_attr_e( 'Button fields', MWF_Config::DOMAIN ); ?>">
|
597 |
<?php do_action( 'mwform_tag_generator_button_option' ); ?>
|
598 |
</optgroup>
|
599 |
+
<optgroup label="<?php echo esc_attr_e( 'Error fields', MWF_Config::DOMAIN ); ?>">
|
600 |
+
<?php do_action( 'mwform_tag_generator_error_option' ); ?>
|
601 |
+
</optgroup>
|
602 |
<optgroup label="<?php echo esc_attr_e( 'Other fields', MWF_Config::DOMAIN ); ?>">
|
603 |
<?php do_action( 'mwform_tag_generator_option' ); ?>
|
604 |
</optgroup>
|