Version Description
- Added : Added the month picker field.
Download this release
Release Info
Developer | inc2734 |
Plugin | MW WP Form |
Version | 3.1.0 |
Comparing to | |
See all releases |
Code changes from version 3.0.1 to 3.1.0
- classes/form-fields/class.datepicker.php +2 -3
- classes/form-fields/class.monthpicker.php +182 -0
- classes/models/class.admin.php +7 -3
- classes/models/class.form.php +38 -2
- classes/validation-rules/class.month.php +76 -0
- js/jquery-ui-month-picker/MonthPicker.min.css +1 -0
- js/jquery-ui-month-picker/MonthPicker.min.js +1 -0
- languages/mw-wp-form-ja.mo +0 -0
- languages/mw-wp-form-ja.po +32 -17
- languages/mw-wp-form.pot +31 -16
- mw-wp-form.php +3 -2
- readme.txt +5 -2
classes/form-fields/class.datepicker.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
/**
|
3 |
* Name : MW WP Form Field Datepicker
|
4 |
* Description: datepickerを出力
|
5 |
-
* Version : 1.8.
|
6 |
* Author : Takashi Kitajima
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
-
* Modified :
|
10 |
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
@@ -66,7 +66,6 @@ class MW_WP_Form_Field_Datepicker extends MW_WP_Form_Abstract_Form_Field {
|
|
66 |
|
67 |
// jsの指定がないときはデフォルトで年付き変更機能追加
|
68 |
if ( empty( $js ) ) {
|
69 |
-
$js = '"showMonthAfterYear": true, "changeYear": true, "changeMonth": true';
|
70 |
$js = array(
|
71 |
'showMonthAfterYear' => 'true',
|
72 |
'changeYear' => 'true',
|
2 |
/**
|
3 |
* Name : MW WP Form Field Datepicker
|
4 |
* Description: datepickerを出力
|
5 |
+
* Version : 1.8.1
|
6 |
* Author : Takashi Kitajima
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : December 14, 2012
|
9 |
+
* Modified : March 9, 2017
|
10 |
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
66 |
|
67 |
// jsの指定がないときはデフォルトで年付き変更機能追加
|
68 |
if ( empty( $js ) ) {
|
|
|
69 |
$js = array(
|
70 |
'showMonthAfterYear' => 'true',
|
71 |
'changeYear' => 'true',
|
classes/form-fields/class.monthpicker.php
ADDED
@@ -0,0 +1,182 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Name : MW WP Form Field Monthpicker
|
4 |
+
* Description: monthpickerを出力
|
5 |
+
* Version : 1.0.0
|
6 |
+
* Author : Takashi Kitajima
|
7 |
+
* Author URI : http://2inc.org
|
8 |
+
* Created : December 14, 2012
|
9 |
+
* Modified : March 9, 2017
|
10 |
+
* License : GPLv2 or later
|
11 |
+
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
+
*/
|
13 |
+
class MW_WP_Form_Field_Monthpicker extends MW_WP_Form_Abstract_Form_Field {
|
14 |
+
|
15 |
+
/**
|
16 |
+
* $type
|
17 |
+
* フォームタグの種類 input|select|button|input_button|error|other
|
18 |
+
* @var string
|
19 |
+
*/
|
20 |
+
public $type = 'input';
|
21 |
+
|
22 |
+
/**
|
23 |
+
* set_names
|
24 |
+
* shortcode_name、display_nameを定義。各子クラスで上書きする。
|
25 |
+
* @return array shortcode_name, display_name
|
26 |
+
*/
|
27 |
+
protected function set_names() {
|
28 |
+
return array(
|
29 |
+
'shortcode_name' => 'mwform_monthpicker',
|
30 |
+
'display_name' => __( 'Monthpicker', 'mw-wp-form' ),
|
31 |
+
);
|
32 |
+
}
|
33 |
+
|
34 |
+
/**
|
35 |
+
* set_defaults
|
36 |
+
* $this->defaultsを設定し返す
|
37 |
+
* @return array defaults
|
38 |
+
*/
|
39 |
+
protected function set_defaults() {
|
40 |
+
return array(
|
41 |
+
'name' => '',
|
42 |
+
'id' => null,
|
43 |
+
'class' => null,
|
44 |
+
'size' => 30,
|
45 |
+
'js' => '',
|
46 |
+
'value' => '',
|
47 |
+
'placeholder' => null,
|
48 |
+
'show_error' => 'true',
|
49 |
+
);
|
50 |
+
}
|
51 |
+
|
52 |
+
/**
|
53 |
+
* input_page
|
54 |
+
* 入力ページでのフォーム項目を返す
|
55 |
+
* @return string HTML
|
56 |
+
*/
|
57 |
+
protected function input_page() {
|
58 |
+
global $wp_scripts;
|
59 |
+
$ui = $wp_scripts->query( 'jquery-ui-core' );
|
60 |
+
wp_enqueue_style(
|
61 |
+
'jquery.ui', '//ajax.googleapis.com/ajax/libs/jqueryui/' . $ui->ver . '/themes/smoothness/jquery-ui.min.css',
|
62 |
+
array(),
|
63 |
+
$ui->ver
|
64 |
+
);
|
65 |
+
|
66 |
+
wp_enqueue_style(
|
67 |
+
'jquery-ui-monthpicker',
|
68 |
+
untrailingslashit( plugin_dir_url( 'mw-wp-form/mw-wp-form.php' ) ) . '/js/jquery-ui-month-picker/MonthPicker.min.css',
|
69 |
+
array(),
|
70 |
+
$ui->ver
|
71 |
+
);
|
72 |
+
|
73 |
+
wp_enqueue_script(
|
74 |
+
'jquery-ui-monthpicker',
|
75 |
+
untrailingslashit( plugin_dir_url( 'mw-wp-form/mw-wp-form.php' ) ) . '/js/jquery-ui-month-picker/MonthPicker.min.js',
|
76 |
+
array( 'jquery', 'jquery-ui-button', 'jquery-ui-datepicker' ),
|
77 |
+
$ui->ver,
|
78 |
+
true
|
79 |
+
);
|
80 |
+
|
81 |
+
$Json_Parser = new MW_WP_Form_Json_Parser( $this->atts['js'] );
|
82 |
+
$this->atts['js'] = $Json_Parser->create_json();
|
83 |
+
$js = json_decode( $this->atts['js'], true );
|
84 |
+
|
85 |
+
$js = array_merge( $js, array(
|
86 |
+
'Button' => 'false',
|
87 |
+
) );
|
88 |
+
|
89 |
+
$translate_monthpicker = apply_filters( 'mwform_translate_monthpicker_' . $this->form_key, true );
|
90 |
+
if ( $translate_monthpicker && get_locale() == 'ja' ) {
|
91 |
+
$js = array_merge( array(
|
92 |
+
'i18n' => array(
|
93 |
+
'year' => '',
|
94 |
+
'months' => array( '1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月' )
|
95 |
+
),
|
96 |
+
'MonthFormat' => 'yy年mm月',
|
97 |
+
), $js );
|
98 |
+
}
|
99 |
+
|
100 |
+
$this->atts['js'] = json_encode( $js );
|
101 |
+
|
102 |
+
$value = $this->Data->get_raw( $this->atts['name'] );
|
103 |
+
if ( is_null( $value ) ) {
|
104 |
+
$value = $this->atts['value'];
|
105 |
+
}
|
106 |
+
|
107 |
+
$_ret = '';
|
108 |
+
$_ret .= $this->Form->monthpicker( $this->atts['name'], array(
|
109 |
+
'id' => $this->atts['id'],
|
110 |
+
'class' => $this->atts['class'],
|
111 |
+
'size' => $this->atts['size'],
|
112 |
+
'js' => $this->atts['js'],
|
113 |
+
'value' => $value,
|
114 |
+
'placeholder' => $this->atts['placeholder'],
|
115 |
+
) );
|
116 |
+
if ( $this->atts['show_error'] !== 'false' ) {
|
117 |
+
$_ret .= $this->get_error( $this->atts['name'] );
|
118 |
+
}
|
119 |
+
return $_ret;
|
120 |
+
}
|
121 |
+
|
122 |
+
/**
|
123 |
+
* confirm_page
|
124 |
+
* 確認ページでのフォーム項目を返す
|
125 |
+
* @return string HTML
|
126 |
+
*/
|
127 |
+
protected function confirm_page() {
|
128 |
+
$value = $this->Data->get_raw( $this->atts['name'] );
|
129 |
+
$_ret = esc_html( $value );
|
130 |
+
$_ret .= $this->Form->hidden( $this->atts['name'], $value );
|
131 |
+
return $_ret;
|
132 |
+
}
|
133 |
+
|
134 |
+
/**
|
135 |
+
* add_mwform_tag_generator
|
136 |
+
* フォームタグジェネレーター
|
137 |
+
*/
|
138 |
+
public function mwform_tag_generator_dialog( array $options = array() ) {
|
139 |
+
?>
|
140 |
+
<p>
|
141 |
+
<strong>name<span class="mwf_require">*</span></strong>
|
142 |
+
<?php $name = $this->get_value_for_generator( 'name', $options ); ?>
|
143 |
+
<input type="text" name="name" value="<?php echo esc_attr( $name ); ?>" />
|
144 |
+
</p>
|
145 |
+
<p>
|
146 |
+
<strong>id</strong>
|
147 |
+
<?php $id = $this->get_value_for_generator( 'id', $options ); ?>
|
148 |
+
<input type="text" name="id" value="<?php echo esc_attr( $id ); ?>" />
|
149 |
+
</p>
|
150 |
+
<p>
|
151 |
+
<strong>class</strong>
|
152 |
+
<?php $class = $this->get_value_for_generator( 'class', $options ); ?>
|
153 |
+
<input type="text" name="class" value="<?php echo esc_attr( $class ); ?>" />
|
154 |
+
</p>
|
155 |
+
<p>
|
156 |
+
<strong>size</strong>
|
157 |
+
<?php $size = $this->get_value_for_generator( 'size', $options ); ?>
|
158 |
+
<input type="text" name="size" value="<?php echo esc_attr( $size ); ?>" />
|
159 |
+
</p>
|
160 |
+
<p>
|
161 |
+
<strong>JavaScript</strong>
|
162 |
+
<?php $js = $this->get_value_for_generator( 'js', $options ); ?>
|
163 |
+
<input type="text" name="js" value="<?php echo esc_attr( $js ); ?>" />
|
164 |
+
</p>
|
165 |
+
<p>
|
166 |
+
<strong><?php esc_html_e( 'Default value', 'mw-wp-form' ); ?></strong>
|
167 |
+
<?php $value = $this->get_value_for_generator( 'value', $options ); ?>
|
168 |
+
<input type="text" name="value" value="<?php echo esc_attr( $value ); ?>" />
|
169 |
+
</p>
|
170 |
+
<p>
|
171 |
+
<strong>placeholder</strong>
|
172 |
+
<?php $placeholder = $this->get_value_for_generator( 'placeholder', $options ); ?>
|
173 |
+
<input type="text" name="placeholder" value="<?php echo esc_attr( $placeholder ); ?>" />
|
174 |
+
</p>
|
175 |
+
<p>
|
176 |
+
<strong><?php esc_html_e( 'Dsiplay error', 'mw-wp-form' ); ?></strong>
|
177 |
+
<?php $show_error = $this->get_value_for_generator( 'show_error', $options ); ?>
|
178 |
+
<label><input type="checkbox" name="show_error" value="false" <?php checked( 'false', $show_error ); ?> /> <?php esc_html_e( 'Don\'t display error.', 'mw-wp-form' ); ?></label>
|
179 |
+
</p>
|
180 |
+
<?php
|
181 |
+
}
|
182 |
+
}
|
classes/models/class.admin.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
/**
|
3 |
* Name : MW WP Form Admin
|
4 |
* Description: 管理画面クラス
|
5 |
-
* Version : 2.1.
|
6 |
* Author : Takashi Kitajima
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : February 21, 2013
|
9 |
-
* Modified :
|
10 |
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
@@ -39,7 +39,11 @@ class MW_WP_Form_Admin {
|
|
39 |
'admin_mail_from',
|
40 |
);
|
41 |
foreach ( $triminglists as $name ) {
|
42 |
-
|
|
|
|
|
|
|
|
|
43 |
}
|
44 |
|
45 |
if ( !empty( $data['validation'] ) && is_array( $data['validation'] ) ) {
|
2 |
/**
|
3 |
* Name : MW WP Form Admin
|
4 |
* Description: 管理画面クラス
|
5 |
+
* Version : 2.1.1
|
6 |
* Author : Takashi Kitajima
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : February 21, 2013
|
9 |
+
* Modified : March 25, 2017
|
10 |
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
39 |
'admin_mail_from',
|
40 |
);
|
41 |
foreach ( $triminglists as $name ) {
|
42 |
+
if ( function_exists( 'mb_convert_kana' ) ) {
|
43 |
+
$data[$name] = trim( mb_convert_kana( $data[$name], 's', get_option( 'blog_charset' ) ) );
|
44 |
+
} else {
|
45 |
+
$data[$name] = trim( $data[$name] );
|
46 |
+
}
|
47 |
}
|
48 |
|
49 |
if ( !empty( $data['validation'] ) && is_array( $data['validation'] ) ) {
|
classes/models/class.form.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
/**
|
3 |
* Name : MW WP Form Form
|
4 |
* Description: フォームヘルパー
|
5 |
-
* Version : 1.
|
6 |
* Author : Takashi Kitajima
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : September 25, 2012
|
9 |
-
* Modified :
|
10 |
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
@@ -790,6 +790,42 @@ class MW_WP_Form_Form {
|
|
790 |
return self::remove_linefeed_space( $_ret );
|
791 |
}
|
792 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
793 |
/**
|
794 |
* input[type=file]タグ生成
|
795 |
*
|
2 |
/**
|
3 |
* Name : MW WP Form Form
|
4 |
* Description: フォームヘルパー
|
5 |
+
* Version : 1.11.0
|
6 |
* Author : Takashi Kitajima
|
7 |
* Author URI : http://2inc.org
|
8 |
* Created : September 25, 2012
|
9 |
+
* Modified : March 9, 2017
|
10 |
* License : GPLv2 or later
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
790 |
return self::remove_linefeed_space( $_ret );
|
791 |
}
|
792 |
|
793 |
+
/**
|
794 |
+
* monthpicker生成
|
795 |
+
*
|
796 |
+
* @param string $name name属性
|
797 |
+
* @param string $options
|
798 |
+
* @return string HTML
|
799 |
+
*/
|
800 |
+
public function monthpicker( $name, $options = array() ) {
|
801 |
+
$defaults = array(
|
802 |
+
'id' => null,
|
803 |
+
'class' => null,
|
804 |
+
'size' => 30,
|
805 |
+
'js' => '',
|
806 |
+
'value' => '',
|
807 |
+
'placeholder' => null,
|
808 |
+
);
|
809 |
+
$options = array_merge( $defaults, $options );
|
810 |
+
$_options = $options;
|
811 |
+
unset( $_options['js'] );
|
812 |
+
$attributes = $this->generate_attributes( $_options );
|
813 |
+
|
814 |
+
$_ret = sprintf(
|
815 |
+
'<input type="text" name="%s"%s />',
|
816 |
+
esc_attr( $name ),
|
817 |
+
$attributes
|
818 |
+
);
|
819 |
+
if ( $name ) {
|
820 |
+
$_ret .= sprintf(
|
821 |
+
'<script type="text/javascript">jQuery( function( $ ) { $("input[name=\'%s\']").MonthPicker( { %s } ); } );</script>',
|
822 |
+
esc_js( $name ),
|
823 |
+
trim( $options['js'], '{}' )
|
824 |
+
);
|
825 |
+
}
|
826 |
+
return self::remove_linefeed_space( $_ret );
|
827 |
+
}
|
828 |
+
|
829 |
/**
|
830 |
* input[type=file]タグ生成
|
831 |
*
|
classes/validation-rules/class.month.php
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Name : MW WP Form Validation Rule Month
|
4 |
+
* Description: 日付(年月)が正しいかどうか
|
5 |
+
* Version : 1.0.0
|
6 |
+
* Author : Takashi Kitajima
|
7 |
+
* Author URI : http://2inc.org
|
8 |
+
* Created : March 25, 2017
|
9 |
+
* Modified :
|
10 |
+
* License : GPLv2 or later
|
11 |
+
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
+
*/
|
13 |
+
class MW_WP_Form_Validation_Rule_Month extends MW_WP_Form_Abstract_Validation_Rule {
|
14 |
+
|
15 |
+
/**
|
16 |
+
* バリデーションルール名を指定
|
17 |
+
* @var string
|
18 |
+
*/
|
19 |
+
protected $name = 'month';
|
20 |
+
|
21 |
+
/**
|
22 |
+
* バリデーションチェック
|
23 |
+
*
|
24 |
+
* @param string $key name属性
|
25 |
+
* @param array $option
|
26 |
+
* @return string エラーメッセージ
|
27 |
+
*/
|
28 |
+
public function rule( $key, array $options = array() ) {
|
29 |
+
$value = $this->Data->get( $key );
|
30 |
+
if ( !MWF_Functions::is_empty( $value ) ) {
|
31 |
+
$defaults = array(
|
32 |
+
'message' => __( 'This is not the format of a date (Year/Month).', 'mw-wp-form' )
|
33 |
+
);
|
34 |
+
$options = array_merge( $defaults, $options );
|
35 |
+
$timestamp = strtotime( $value );
|
36 |
+
if ( !$timestamp ) {
|
37 |
+
$timestamp = $this->convert_jpdate_to_timestamp( $value );
|
38 |
+
}
|
39 |
+
if ( !$timestamp ) {
|
40 |
+
return $options['message'];
|
41 |
+
}
|
42 |
+
$year = date( 'Y', $timestamp );
|
43 |
+
$month = date( 'm', $timestamp );
|
44 |
+
$checkdate = checkdate( $month, 1, $year );
|
45 |
+
if ( !$timestamp || !$checkdate || preg_match( '/^[a-zA-Z]$/', $value ) || preg_match( '/^\s+$/', $value ) ) {
|
46 |
+
return $options['message'];
|
47 |
+
}
|
48 |
+
}
|
49 |
+
}
|
50 |
+
|
51 |
+
/**
|
52 |
+
* 日本語表記の日付をタイムスタンプに変換する
|
53 |
+
*
|
54 |
+
* @param string $jpdate yyyy年mm月
|
55 |
+
* @return string|false
|
56 |
+
*/
|
57 |
+
public function convert_jpdate_to_timestamp( $jpdate ) {
|
58 |
+
if ( preg_match( '/^(\d+)年(\d{1,2})月$/', $jpdate, $reg ) ) {
|
59 |
+
$date = sprintf( '%d-%d', $reg[1], $reg[2] );
|
60 |
+
return strtotime( $date );
|
61 |
+
}
|
62 |
+
return false;
|
63 |
+
}
|
64 |
+
|
65 |
+
/**
|
66 |
+
* 設定パネルに追加
|
67 |
+
*
|
68 |
+
* @param numeric $key バリデーションルールセットの識別番号
|
69 |
+
* @param array $value バリデーションルールセットの内容
|
70 |
+
*/
|
71 |
+
public function admin( $key, $value ) {
|
72 |
+
?>
|
73 |
+
<label><input type="checkbox" <?php checked( $value[$this->getName()], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][<?php echo esc_attr( $this->getName() ); ?>]" value="1" /><?php esc_html_e( 'Date(Year/Month)', 'mw-wp-form' ); ?></label>
|
74 |
+
<?php
|
75 |
+
}
|
76 |
+
}
|
js/jquery-ui-month-picker/MonthPicker.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.month-picker{display:inline-block;position:absolute;z-index:9999}.month-picker table{border-collapse:separate;border-spacing:2px 2px}.month-picker td{padding:0}.month-picker .ui-button-text{padding:.4em 0}.month-picker-header{margin:3px 3px 0}.month-picker-year-table{width:100%;-ms-user-select:none;-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none}.month-picker-year-table a{border:1px solid transparent}.month-picker-year-table .ui-button{font-size:1.1em;width:1.5em;height:1.5em;cursor:default;margin:0}.month-picker-year-table .month-picker-title{text-align:center}.month-picker-year-table .month-picker-title .ui-button{font-size:1em;padding:.1em 0;width:100%;font-weight:700}.month-picker-year-table .ui-button-text{padding:0}.month-picker-month-table td{height:35px;text-align:center}.month-picker-month-table .ui-button{width:4.2em;margin:.2em}.month-picker-open-button{height:20px;width:20px;vertical-align:bottom}.month-picker-invalid-message{display:none;background-color:#ff0}.month-picker-disabled{background-color:#e1e1e1}
|
js/jquery-ui-month-picker/MonthPicker.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(a,b,c,d){"use strict";function e(a){return a.getMonth()+12*a.getFullYear()}function f(a){return Math.floor(a/12)}function g(){a(this).addClass(z)}function h(a,b){return a[b?"on":"off"]("mousenter mouseout",g).toggleClass(z,b)}function i(a,b,c){return(!b||a>=b)&&(!c||c>=a)}function j(b,c){if(null===c)return c;if(c instanceof d)return e(c);if(a.isNumeric(c))return e(new d)+parseInt(c,10);var f=b._parseMonth(c);return f?e(f):l(c)}function k(a,b){return L(b.options[a]||K,b.element[0])}function l(b,c){var f=a.trim(b);f=f.replace(/y/i,'":"y"'),f=f.replace(/m/i,'":"m"');try{var g=JSON.parse('{"'+f.replace(/ /g,',"')+"}"),h={};for(var i in g)h[g[i]]=i;var j=e(new d);return j+=parseInt(h.m,10)||0,j+12*(parseInt(h.y,10)||0)}catch(k){return!1}}function m(b){return a('<span id="MonthPicker_Button_'+this.id+'" class="month-picker-open-button">'+b.i18n.buttonText+"</span>").jqueryUIButton({text:!1,icons:{primary:b.ButtonIcon}})}function n(a,b){a.jqueryUIButton("option",{icons:{primary:"ui-icon-circle-triangle-"+(b?"w":"e")}})}function o(a){return!a.is("input")}function p(b,c){function d(){j=setTimeout(e,175)}function e(){j=null,l=a("span",b).animate({opacity:.45},k,f)}function f(){i=l.text(),l.animate({opacity:1},k).text(c)}function g(){j?clearTimeout(j):l=a("span",b).animate({opacity:.45},k,h)}function h(){l.text(i).animate({opacity:1},k)}var i,j,k=125,l=a();b.on("mouseenter"+t+"h",d),b.on("mouseleave"+t+"h",g),b.data(v,function(){clearTimeout(j),l.stop().css({opacity:1}),b.off(t+"h")})}function q(a,b){var c=a.data("ui-button");c.option("disabled")!==b&&c.option("disabled",b)}var r="MonthPicker Error: ";if(!(a&&a.ui&&a.ui.button&&a.ui.datepicker))return void alert(r+"The jQuery UI button and datepicker plug-ins must be loaded.");a.widget.bridge("jqueryUIButton",a.ui.button);var s=a.fx.speeds,t=".MonthPicker",u="month-year-input",v="month-picker-clear-hint",w=".ui-button-icon-primary",x="month-picker-disabled",y="ui-state-highlight",z="ui-state-active",A="ui-state-default",B={my:"left top+1",at:"left bottom"},C={my:"right top+1",at:"right bottom"},D=r+"The jQuery UI position plug-in must be loaded.",E=r+"Unsupported % option value, supported values are: ",F=r+'"_" is not a valid %Month value.',G=null,H=!!a.ui.position,I={Animation:["slideToggle","fadeToggle","none"],ShowAnim:["fadeIn","slideDown","none"],HideAnim:["fadeOut","slideUp","none"]},J={ValidationErrorMessage:"_createValidationMessage",Disabled:"_setDisabledState",ShowIcon:"_updateButton",Button:"_updateButton",ShowOn:"_updateFieldEvents",IsRTL:"_setRTL",AltFormat:"_updateAlt",AltField:"_updateAlt",StartYear:"_setPickerYear",MinMonth:"_setMinMonth",MaxMonth:"_setMaxMonth",SelectedMonth:"_setSelectedMonth"},K=a.noop,L=a.proxy,M=a.datepicker,N="click"+t;a.MonthPicker={VERSION:"3.0.4",i18n:{year:"Year",prevYear:"Previous Year",nextYear:"Next Year",next12Years:"Jump Forward 12 Years",prev12Years:"Jump Back 12 Years",nextLabel:"Next",prevLabel:"Prev",buttonText:"Open Month Chooser",jumpYears:"Jump Years",backTo:"Back to",months:["Jan.","Feb.","Mar.","Apr.","May","June","July","Aug.","Sep.","Oct.","Nov.","Dec."]}};var O='<div class="ui-widget-header month-picker-header ui-corner-all"><table class="month-picker-year-table"><tr><td class="month-picker-previous"><a /></td><td class="month-picker-title"><a /></td><td class="month-picker-next"><a /></td></tr></table></div><div><table class="month-picker-month-table" /></div>';a.widget("KidSysco.MonthPicker",{options:{i18n:{},IsRTL:!1,Position:null,StartYear:null,ShowIcon:!0,UseInputMask:!1,ValidationErrorMessage:null,Disabled:!1,MonthFormat:"mm/yy",Animation:"fadeToggle",ShowAnim:null,HideAnim:null,ShowOn:null,MinMonth:null,MaxMonth:null,Duration:"normal",Button:m,ButtonIcon:"ui-icon-calculator"},_monthPickerButton:a(),_validationMessage:a(),_selectedBtn:a(),_destroy:function(){var b=this.element;a.mask&&this.options.UseInputMask&&(b.unmask(),this.GetSelectedDate()||b.val("")),b.removeClass(u).off(t),a(c).off(t+this.uuid),this._monthPickerMenu.remove();var d=this._monthPickerButton.off(N);this._removeOldBtn&&d.remove(),this._validationMessage.remove(),G===this&&(G=null)},_setOption:function(b,c){switch(b){case"i18n":c=a.extend({},c);break;case"Position":if(!H)return void alert(D);break;case"MonthFormat":var d=this.GetSelectedDate();d&&this.element.val(this.FormatMonth(d,c))}return b in I&&-1===a.inArray(c,I[b])?void alert(E.replace(/%/,b)+I[b]):(this._super(b,c),void(J[b]?this[J[b]](c):0))},_create:function(){var b=this.element,e=this.options,g=b.attr("type");if(!b.is("input,div,span")||"text"!==g&&"month"!==g&&void 0!==g){var h=r+"MonthPicker can only be called on text or month inputs.";return alert(h+" \n\nSee (developer tools) for more details."),console.error(h+"\n Caused by:"),console.log(b[0]),!1}if(!a.mask&&e.UseInputMask)return alert(r+"The UseInputMask option requires the Input Mask Plugin. Get it from digitalbush.com"),!1;if(null!==e.Position&&!H)return alert(D),!1;for(var i in I)if(null!==e[i]&&-1===a.inArray(e[i],I[i]))return alert(E.replace(/%/,i)+I[i]),!1;this._isMonthInputType="month"===b.attr("type"),this._isMonthInputType&&(this.options.MonthFormat=this.MonthInputFormat,b.css("width","auto"));var k=this._monthPickerMenu=a('<div id="MonthPicker_'+b[0].id+'" class="month-picker ui-widget ui-widget-content ui-corner-all"></div>').hide(),l=o(b);a(O).appendTo(k),k.appendTo(l?b:c.body),this._titleButton=a(".month-picker-title",k).click(L(this._showYearsClickHandler,this)).find("a").jqueryUIButton().removeClass(A),this._applyJumpYearsHint(),this._createValidationMessage(),this._prevButton=a(".month-picker-previous>a",k).jqueryUIButton({text:!1}).removeClass(A),this._nextButton=a(".month-picker-next>a",k).jqueryUIButton({text:!1}).removeClass(A),this._setRTL(e.IsRTL),a(w,this._nextButton).text(this._i18n("nextLabel")),a(w,this._prevButton).text(this._i18n("prevLabel"));for(var m=a(".month-picker-month-table",k),n=0;12>n;n++){var p=n%3?p:a("<tr />").appendTo(m);p.append('<td><a class="button-'+(n+1)+'" /></td>')}this._buttons=a("a",m).jqueryUIButton(),k.on("mousedown"+t,function(a){a.preventDefault()});var q=this,s="Month";a.each(["Min","Max"],function(a,b){q["_set"+b+s]=function(a){(q["_"+b+s]=j(q,a))===!1&&alert(F.replace(/%/,b).replace(/_/,a))},q._setOption(b+s,q.options[b+s])});var v=e.SelectedMonth;if(void 0!==v){var x=j(this,v);b.val(this._formatMonth(new d(f(x),x%12,1)))}this._updateAlt(),this._setUseInputMask(),this._setDisabledState(),this.Destroy=this.destroy,l?this.Open():(b.addClass(u),b.change(L(this._updateAlt,this)))},GetSelectedDate:function(){return this._parseMonth()},GetSelectedYear:function(){var a=this.GetSelectedDate();return a?a.getFullYear():NaN},GetSelectedMonth:function(){var a=this.GetSelectedDate();return a?a.getMonth()+1:NaN},Validate:function(){var a=this.GetSelectedDate();return null===this.options.ValidationErrorMessage||this.options.Disabled||this._validationMessage.toggle(!a),a},GetSelectedMonthYear:function(){var a=this.Validate();return a?a.getMonth()+1+"/"+a.getFullYear():null},Disable:function(){this._setOption("Disabled",!0)},Enable:function(){this._setOption("Disabled",!1)},ClearAllCallbacks:function(){for(var a in this.options)0===a.indexOf("On")&&(this.options[a]=K)},Clear:function(){this.element.val(""),a(this.options.AltField).val(""),this._validationMessage.hide()},Toggle:function(a){return this._visible?this.Close(a):this.Open(a)},Open:function(b){var d=this.element,e=this.options;if(!e.Disabled&&!this._visible){if(b=b||a.Event(),k("OnBeforeMenuOpen",this)(b)===!1||b.isDefaultPrevented())return;this._visible=!0,this._ajustYear(e);var f=this._monthPickerMenu;if(this._showMonths(),o(d))f.css("position","static").show(),k("OnAfterMenuOpen",this)();else{G&&G.Close(b),G=this,a(c).on("mousedown"+t+this.uuid,L(this.Close,this)).on("keydown"+t+this.uuid,L(this._keyDown,this)),d.off("blur"+t).focus();var g=e.ShowAnim||e.Animation,h="none"===g;f[h?"fadeIn":g]({duration:h?0:this._duration(),start:L(this._position,this,f),complete:k("OnAfterMenuOpen",this)})}}},Close:function(b){var d=this.element;if(!o(d)&&this._visible){var e=this._monthPickerMenu,f=this.options;if(b=b||a.Event(),k("OnBeforeMenuClose",this)(b)===!1||b.isDefaultPrevented())return;this._backToYear&&(this._applyJumpYearsHint(),this._backToYear=0),this._visible=!1,G=null,a(c).off("keydown"+t+this.uuid).off("mousedown"+t+this.uuid),this.Validate(),d.on("blur"+t,L(this.Validate,this));var g=k("OnAfterMenuClose",this),h=f.HideAnim||f.Animation;"none"===h?e.hide(0,g):e[h](this._duration(),g)}},MonthInputFormat:"yy-mm",ParseMonth:function(a,b){try{return M.parseDate("dd"+b,"01"+a)}catch(c){return null}},FormatMonth:function(a,b){try{return M.formatDate(b,a)||null}catch(c){return null}},_setSelectedMonth:function(a){var b=j(this,a),c=this.element;if(b){var e=new d(f(b),b%12,1);c.val(this._formatMonth(e)),this._updateAlt(0,e),this._validationMessage.hide()}else this.Clear();this._ajustYear(this.options),this._showMonths()},_applyJumpYearsHint:function(){p(this._titleButton,this._i18n("jumpYears"))},_i18n:function(b){var c=this.options.i18n[b];return"undefined"==typeof c?a.MonthPicker.i18n[b]:c},_parseMonth:function(a,b){return this.ParseMonth(a||this.element.val(),b||this.options.MonthFormat)},_formatMonth:function(a,b){return this.FormatMonth(a||this._parseMonth(),b||this.options.MonthFormat)},_updateButton:function(){var a=this.options.Disabled;this._createButton();var b=this._monthPickerButton;try{b.jqueryUIButton("option","disabled",a)}catch(c){b.filter("button,input").prop("disabled",a)}this._updateFieldEvents()},_createButton:function(){var b=this.element,d=this.options;if(!o(b)){var e=this._monthPickerButton.off(t),f=d.ShowIcon?d.Button:!1;if(a.isFunction(f)){var g=a.extend(!0,{i18n:a.extend(!0,{},a.MonthPicker.i18n)},this.options);f=f.call(b[0],g)}var h=!1;this._monthPickerButton=(f instanceof a?f:a(f)).each(function(){a.contains(c.body,this)||(h=!0,a(this).insertAfter(b))}).on(N,L(this.Toggle,this)).on("mousedown"+t,function(a){a.preventDefault()}),this._removeOldBtn&&e.remove(),this._removeOldBtn=h}},_updateFieldEvents:function(){var a=N+" focus"+t;this.element.off(a),"both"!==this.options.ShowOn&&this._monthPickerButton.length||this.element.on(a,L(this.Open,this))},_createValidationMessage:function(){var b=this.options.ValidationErrorMessage,c=this.element;if(-1===a.inArray(b,[null,""])){var d=a('<span id="MonthPicker_Validation_'+c[0].id+'" class="month-picker-invalid-message">'+b+"</span>"),e=this._monthPickerButton;this._validationMessage=d.insertAfter(e.length?e:c),c.on("blur"+t,L(this.Validate,this))}else this._validationMessage.remove()},_setRTL:function(a){n(this._prevButton.css("float",a?"right":"left"),!a),n(this._nextButton.css("float",a?"left":"right"),a)},_keyDown:function(a){switch(a.keyCode){case 13:this.element.val()||this._chooseMonth((new d).getMonth()+1),this.Close(a);break;case 27:case 9:this.Close(a)}},_duration:function(){var b=this.options.Duration;return a.isNumeric(b)?b:b in s?s[b]:s._default},_position:H?function(b){var c=this.options.IsRTL?C:B,d=a.extend(c,this.options.Position);return b.position(a.extend({of:this.element},d))}:function(a){var b=this.element,c={top:b.offset().top+b.height()+7+"px"};return this.options.IsRTL?c.left=b.offset().left-a.width()+b.width()+7+"px":c.left=b.offset().left+"px",a.css(c)},_setUseInputMask:function(){if(!this._isMonthInputType)try{this.options.UseInputMask?this.element.mask(this._formatMonth(new d).replace(/\d/g,9)):this.element.unmask()}catch(a){}},_setDisabledState:function(){var a=this.options.Disabled,b=this.element;b[0].disabled=a,b.toggleClass(x,a),a&&this._validationMessage.hide(),this.Close(),this._updateButton(),k("OnAfterSetDisabled",this)(a)},_getPickerYear:function(){return this._pickerYear},_setPickerYear:function(a){this._pickerYear=a||(new d).getFullYear(),this._titleButton.jqueryUIButton({label:this._i18n("year")+" "+this._pickerYear})},_updateAlt:function(b,c){var d=a(this.options.AltField);d.length&&d.val(this._formatMonth(c,this.options.AltFormat))},_chooseMonth:function(b){var c=this._getPickerYear(),e=new d(c,b-1);this.element.val(this._formatMonth(e)).blur(),this._updateAlt(0,e),h(this._selectedBtn,!1),this._selectedBtn=h(a(this._buttons[b-1]),!0),k("OnAfterChooseMonth",this)(e)},_chooseYear:function(a){this._backToYear=0,this._setPickerYear(a),this._buttons.removeClass(y),this._showMonths(),this._applyJumpYearsHint(),k("OnAfterChooseYear",this)()},_showMonths:function(){var b=this._i18n("months");this._prevButton.attr("title",this._i18n("prevYear")).off(N).on(N,L(this._addToYear,this,-1)),this._nextButton.attr("title",this._i18n("nextYear")).off(N).on(N,L(this._addToYear,this,1)),this._buttons.off(t);var c=this,d=L(c._onMonthClick,c);a.each(b,function(b,e){a(c._buttons[b]).on(N,{month:b+1},d).jqueryUIButton("option","label",e)}),this._decorateButtons()},_showYearsClickHandler:function(){if(this._buttons.removeClass(y),this._backToYear)this._setPickerYear(this._backToYear),this._applyJumpYearsHint(),this._showMonths(),this._backToYear=0;else{this._backToYear=this._getPickerYear(),this._showYears();var a=this._i18n("backTo")+" "+this._getPickerYear();this._titleButton.jqueryUIButton({label:a}).data(v)(),k("OnAfterChooseYears",this)()}},_showYears:function(){var b=this._getPickerYear(),c=-4,e=b+c,g=12,j=(new d).getFullYear(),k=this._MinMonth,l=this._MaxMonth,m=k?f(k):0,n=l?f(l):0;this._prevButton.attr("title",this._i18n("prev12Years")).off(N).on(N,L(this._addToYears,this,-g)),this._nextButton.attr("title",this._i18n("next12Years")).off(N).on(N,L(this._addToYears,this,g)),q(this._prevButton,m&&m>e-1),q(this._nextButton,n&&e+12-1>n),this._buttons.off(t),h(this._selectedBtn,!1);for(var o=this.GetSelectedYear(),p=L(this._onYearClick,this),r=i(j,m,n),s=i(o,m,n),u=0;12>u;u++){var v=b+c,w=a(this._buttons[u]).jqueryUIButton({disabled:!i(v,m,n),label:v}).toggleClass(y,v===j&&r).on(N,{year:v},p);s&&o&&o===v&&(this._selectedBtn=h(w,!0)),c++}},_onMonthClick:function(a){this._chooseMonth(a.data.month),this.Close(a)},_onYearClick:function(a){this._chooseYear(a.data.year)},_addToYear:function(a){this._setPickerYear(this._getPickerYear()+a),this.element.focus(),this._decorateButtons(),k("OnAfter"+(a>0?"Next":"Previous")+"Year",this)()},_addToYears:function(a){this._pickerYear=this._getPickerYear()+a,this._showYears(),this.element.focus(),k("OnAfter"+(a>0?"Next":"Previous")+"Years",this)()},_ajustYear:function(a){var b=a.StartYear||this.GetSelectedYear()||(new d).getFullYear();null!==this._MinMonth&&(b=Math.max(f(this._MinMonth),b)),null!==this._MaxMonth&&(b=Math.min(f(this._MaxMonth),b)),this._setPickerYear(b)},_decorateButtons:function(){var b=this._getPickerYear(),c=e(new d),g=this._MinMonth,j=this._MaxMonth;h(this._selectedBtn,!1);var k=this.GetSelectedDate(),l=i(k?e(k):null,g,j);k&&k.getFullYear()===b&&(this._selectedBtn=h(a(this._buttons[k.getMonth()]),l)),q(this._prevButton,g&&b==f(g)),q(this._nextButton,j&&b==f(j));for(var m=0;12>m;m++){var n=12*b+m,o=i(n,g,j);a(this._buttons[m]).jqueryUIButton({disabled:!o}).toggleClass(y,o&&n==c)}}})}(jQuery,window,document,Date);
|
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
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mw-wp-form\n"
|
7 |
-
"POT-Creation-Date: 2017-
|
8 |
-
"PO-Revision-Date: 2017-
|
9 |
"Last-Translator: inc2734 <inc@2inc.org>\n"
|
10 |
"Language-Team: Takashi Kitajima <inc@2inc.org>\n"
|
11 |
"Language: ja\n"
|
@@ -202,9 +202,10 @@ msgid ""
|
|
202 |
msgstr "選択肢を「:」で送信値と表示値に分割したとき、送信値をメールで送信"
|
203 |
|
204 |
#: classes/form-fields/class.checkbox.php:141
|
205 |
-
#: classes/form-fields/class.datepicker.php:
|
206 |
#: classes/form-fields/class.email.php:127
|
207 |
#: classes/form-fields/class.hidden.php:84
|
|
|
208 |
#: classes/form-fields/class.password.php:119
|
209 |
#: classes/form-fields/class.radio.php:137
|
210 |
#: classes/form-fields/class.select.php:133
|
@@ -229,10 +230,11 @@ msgid "Arranged vertically."
|
|
229 |
msgstr "垂直に配置する"
|
230 |
|
231 |
#: classes/form-fields/class.checkbox.php:156
|
232 |
-
#: classes/form-fields/class.datepicker.php:
|
233 |
#: classes/form-fields/class.email.php:137
|
234 |
#: classes/form-fields/class.file.php:123
|
235 |
#: classes/form-fields/class.image.php:126
|
|
|
236 |
#: classes/form-fields/class.number.php:133
|
237 |
#: classes/form-fields/class.password.php:129
|
238 |
#: classes/form-fields/class.radio.php:147
|
@@ -245,10 +247,11 @@ msgid "Dsiplay error"
|
|
245 |
msgstr "エラー表示"
|
246 |
|
247 |
#: classes/form-fields/class.checkbox.php:158
|
248 |
-
#: classes/form-fields/class.datepicker.php:
|
249 |
#: classes/form-fields/class.email.php:139
|
250 |
#: classes/form-fields/class.file.php:125
|
251 |
#: classes/form-fields/class.image.php:128
|
|
|
252 |
#: classes/form-fields/class.number.php:135
|
253 |
#: classes/form-fields/class.password.php:131
|
254 |
#: classes/form-fields/class.radio.php:149
|
@@ -312,6 +315,10 @@ msgstr "hiddenの値を表示"
|
|
312 |
msgid "Image"
|
313 |
msgstr "画像フィールド"
|
314 |
|
|
|
|
|
|
|
|
|
315 |
#: classes/form-fields/class.number.php:30
|
316 |
msgid "Number"
|
317 |
msgstr "Number フィールド"
|
@@ -527,6 +534,14 @@ msgstr "文字数が足りません。"
|
|
527 |
msgid "The number of the minimum characters"
|
528 |
msgstr "最小文字数"
|
529 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
530 |
#: classes/validation-rules/class.noempty.php:32
|
531 |
#: classes/validation-rules/class.nofalse.php:32
|
532 |
msgid "Please enter."
|
@@ -569,11 +584,11 @@ msgstr "URL"
|
|
569 |
msgid "This is not the format of a zip code."
|
570 |
msgstr "郵便番号の形式ではありません。"
|
571 |
|
572 |
-
#: mw-wp-form.php:
|
573 |
msgid "Chart"
|
574 |
msgstr "グラフ"
|
575 |
|
576 |
-
#: mw-wp-form.php:
|
577 |
#: templates/stores-inquiry-data-form-list/index.php:2
|
578 |
msgid "Inquiry data"
|
579 |
msgstr "問い合わせデータ"
|
@@ -711,11 +726,11 @@ msgid ""
|
|
711 |
"unnecessary."
|
712 |
msgstr "自動返信メールに使用する項目のキーを入力してください。{ }は不要です。"
|
713 |
|
714 |
-
#: templates/admin/settings.php:
|
715 |
msgid "Activate Query string of post"
|
716 |
msgstr "URL引数を有効にする"
|
717 |
|
718 |
-
#: templates/admin/settings.php:
|
719 |
msgid ""
|
720 |
"If this field is active, MW WP Form get query string. And get post data from "
|
721 |
"query string \"post_id\". You can use $post's property in editor."
|
@@ -724,31 +739,31 @@ msgstr ""
|
|
724 |
"とに投稿を取得します。その投稿($post) のプロパティを使用できるようになりま"
|
725 |
"す。"
|
726 |
|
727 |
-
#: templates/admin/settings.php:
|
728 |
msgid "Example: {ID}, {post_title}, {post_meta} etc..."
|
729 |
msgstr "例:{ID}、{post_title}、{post_meta}など…"
|
730 |
|
731 |
-
#: templates/admin/settings.php:
|
732 |
msgid "Saving inquiry data in database"
|
733 |
msgstr "問い合わせデータをデータベースに保存"
|
734 |
|
735 |
-
#: templates/admin/settings.php:
|
736 |
msgid "Enable scrolling of screen transition."
|
737 |
msgstr "画面変遷時のスクロールを有効にする"
|
738 |
|
739 |
-
#: templates/admin/settings.php:
|
740 |
msgid "Next Tracking Number"
|
741 |
msgstr "次の問い合わせ番号"
|
742 |
|
743 |
-
#: templates/admin/settings.php:
|
744 |
msgid "I want to change."
|
745 |
msgstr "変更する"
|
746 |
|
747 |
-
#: templates/admin/settings.php:
|
748 |
msgid "Akismet Setting"
|
749 |
msgstr "Akismet 設定"
|
750 |
|
751 |
-
#: templates/admin/settings.php:
|
752 |
msgid "Input the key to use Akismet."
|
753 |
msgstr "Akismetを使用する項目のキーを入力してください。"
|
754 |
|
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 3.1.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mw-wp-form\n"
|
7 |
+
"POT-Creation-Date: 2017-03-25 21:29+0900\n"
|
8 |
+
"PO-Revision-Date: 2017-03-25 21:30+0900\n"
|
9 |
"Last-Translator: inc2734 <inc@2inc.org>\n"
|
10 |
"Language-Team: Takashi Kitajima <inc@2inc.org>\n"
|
11 |
"Language: ja\n"
|
202 |
msgstr "選択肢を「:」で送信値と表示値に分割したとき、送信値をメールで送信"
|
203 |
|
204 |
#: classes/form-fields/class.checkbox.php:141
|
205 |
+
#: classes/form-fields/class.datepicker.php:155
|
206 |
#: classes/form-fields/class.email.php:127
|
207 |
#: classes/form-fields/class.hidden.php:84
|
208 |
+
#: classes/form-fields/class.monthpicker.php:166
|
209 |
#: classes/form-fields/class.password.php:119
|
210 |
#: classes/form-fields/class.radio.php:137
|
211 |
#: classes/form-fields/class.select.php:133
|
230 |
msgstr "垂直に配置する"
|
231 |
|
232 |
#: classes/form-fields/class.checkbox.php:156
|
233 |
+
#: classes/form-fields/class.datepicker.php:165
|
234 |
#: classes/form-fields/class.email.php:137
|
235 |
#: classes/form-fields/class.file.php:123
|
236 |
#: classes/form-fields/class.image.php:126
|
237 |
+
#: classes/form-fields/class.monthpicker.php:176
|
238 |
#: classes/form-fields/class.number.php:133
|
239 |
#: classes/form-fields/class.password.php:129
|
240 |
#: classes/form-fields/class.radio.php:147
|
247 |
msgstr "エラー表示"
|
248 |
|
249 |
#: classes/form-fields/class.checkbox.php:158
|
250 |
+
#: classes/form-fields/class.datepicker.php:167
|
251 |
#: classes/form-fields/class.email.php:139
|
252 |
#: classes/form-fields/class.file.php:125
|
253 |
#: classes/form-fields/class.image.php:128
|
254 |
+
#: classes/form-fields/class.monthpicker.php:178
|
255 |
#: classes/form-fields/class.number.php:135
|
256 |
#: classes/form-fields/class.password.php:131
|
257 |
#: classes/form-fields/class.radio.php:149
|
315 |
msgid "Image"
|
316 |
msgstr "画像フィールド"
|
317 |
|
318 |
+
#: classes/form-fields/class.monthpicker.php:30
|
319 |
+
msgid "Monthpicker"
|
320 |
+
msgstr "年月"
|
321 |
+
|
322 |
#: classes/form-fields/class.number.php:30
|
323 |
msgid "Number"
|
324 |
msgstr "Number フィールド"
|
534 |
msgid "The number of the minimum characters"
|
535 |
msgstr "最小文字数"
|
536 |
|
537 |
+
#: classes/validation-rules/class.month.php:32
|
538 |
+
msgid "This is not the format of a date (Year/Month)."
|
539 |
+
msgstr "日付(年月)の形式ではありません。"
|
540 |
+
|
541 |
+
#: classes/validation-rules/class.month.php:73
|
542 |
+
msgid "Date(Year/Month)"
|
543 |
+
msgstr "日付(年月)"
|
544 |
+
|
545 |
#: classes/validation-rules/class.noempty.php:32
|
546 |
#: classes/validation-rules/class.nofalse.php:32
|
547 |
msgid "Please enter."
|
584 |
msgid "This is not the format of a zip code."
|
585 |
msgstr "郵便番号の形式ではありません。"
|
586 |
|
587 |
+
#: mw-wp-form.php:169 mw-wp-form.php:170 templates/chart/index.php:4
|
588 |
msgid "Chart"
|
589 |
msgstr "グラフ"
|
590 |
|
591 |
+
#: mw-wp-form.php:198 mw-wp-form.php:199
|
592 |
#: templates/stores-inquiry-data-form-list/index.php:2
|
593 |
msgid "Inquiry data"
|
594 |
msgstr "問い合わせデータ"
|
726 |
"unnecessary."
|
727 |
msgstr "自動返信メールに使用する項目のキーを入力してください。{ }は不要です。"
|
728 |
|
729 |
+
#: templates/admin/settings.php:9
|
730 |
msgid "Activate Query string of post"
|
731 |
msgstr "URL引数を有効にする"
|
732 |
|
733 |
+
#: templates/admin/settings.php:13
|
734 |
msgid ""
|
735 |
"If this field is active, MW WP Form get query string. And get post data from "
|
736 |
"query string \"post_id\". You can use $post's property in editor."
|
739 |
"とに投稿を取得します。その投稿($post) のプロパティを使用できるようになりま"
|
740 |
"す。"
|
741 |
|
742 |
+
#: templates/admin/settings.php:15
|
743 |
msgid "Example: {ID}, {post_title}, {post_meta} etc..."
|
744 |
msgstr "例:{ID}、{post_title}、{post_meta}など…"
|
745 |
|
746 |
+
#: templates/admin/settings.php:27
|
747 |
msgid "Saving inquiry data in database"
|
748 |
msgstr "問い合わせデータをデータベースに保存"
|
749 |
|
750 |
+
#: templates/admin/settings.php:39
|
751 |
msgid "Enable scrolling of screen transition."
|
752 |
msgstr "画面変遷時のスクロールを有効にする"
|
753 |
|
754 |
+
#: templates/admin/settings.php:44
|
755 |
msgid "Next Tracking Number"
|
756 |
msgstr "次の問い合わせ番号"
|
757 |
|
758 |
+
#: templates/admin/settings.php:57
|
759 |
msgid "I want to change."
|
760 |
msgstr "変更する"
|
761 |
|
762 |
+
#: templates/admin/settings.php:63
|
763 |
msgid "Akismet Setting"
|
764 |
msgstr "Akismet 設定"
|
765 |
|
766 |
+
#: templates/admin/settings.php:78
|
767 |
msgid "Input the key to use Akismet."
|
768 |
msgstr "Akismetを使用する項目のキーを入力してください。"
|
769 |
|
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
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mw-wp-form\n"
|
7 |
-
"POT-Creation-Date: 2017-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -190,9 +190,10 @@ msgid "Send post value when you split the post value and display value by \":\"
|
|
190 |
msgstr ""
|
191 |
|
192 |
#: classes/form-fields/class.checkbox.php:141
|
193 |
-
#: classes/form-fields/class.datepicker.php:
|
194 |
#: classes/form-fields/class.email.php:127
|
195 |
#: classes/form-fields/class.hidden.php:84
|
|
|
196 |
#: classes/form-fields/class.password.php:119
|
197 |
#: classes/form-fields/class.radio.php:137
|
198 |
#: classes/form-fields/class.select.php:133
|
@@ -217,10 +218,11 @@ msgid "Arranged vertically."
|
|
217 |
msgstr ""
|
218 |
|
219 |
#: classes/form-fields/class.checkbox.php:156
|
220 |
-
#: classes/form-fields/class.datepicker.php:
|
221 |
#: classes/form-fields/class.email.php:137
|
222 |
#: classes/form-fields/class.file.php:123
|
223 |
#: classes/form-fields/class.image.php:126
|
|
|
224 |
#: classes/form-fields/class.number.php:133
|
225 |
#: classes/form-fields/class.password.php:129
|
226 |
#: classes/form-fields/class.radio.php:147
|
@@ -233,10 +235,11 @@ msgid "Dsiplay error"
|
|
233 |
msgstr ""
|
234 |
|
235 |
#: classes/form-fields/class.checkbox.php:158
|
236 |
-
#: classes/form-fields/class.datepicker.php:
|
237 |
#: classes/form-fields/class.email.php:139
|
238 |
#: classes/form-fields/class.file.php:125
|
239 |
#: classes/form-fields/class.image.php:128
|
|
|
240 |
#: classes/form-fields/class.number.php:135
|
241 |
#: classes/form-fields/class.password.php:131
|
242 |
#: classes/form-fields/class.radio.php:149
|
@@ -300,6 +303,10 @@ msgstr ""
|
|
300 |
msgid "Image"
|
301 |
msgstr ""
|
302 |
|
|
|
|
|
|
|
|
|
303 |
#: classes/form-fields/class.number.php:30
|
304 |
msgid "Number"
|
305 |
msgstr ""
|
@@ -515,6 +522,14 @@ msgstr ""
|
|
515 |
msgid "The number of the minimum characters"
|
516 |
msgstr ""
|
517 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
518 |
#: classes/validation-rules/class.noempty.php:32
|
519 |
#: classes/validation-rules/class.nofalse.php:32
|
520 |
msgid "Please enter."
|
@@ -557,11 +572,11 @@ msgstr ""
|
|
557 |
msgid "This is not the format of a zip code."
|
558 |
msgstr ""
|
559 |
|
560 |
-
#: mw-wp-form.php:
|
561 |
msgid "Chart"
|
562 |
msgstr ""
|
563 |
|
564 |
-
#: mw-wp-form.php:
|
565 |
#: templates/stores-inquiry-data-form-list/index.php:2
|
566 |
msgid "Inquiry data"
|
567 |
msgstr ""
|
@@ -693,39 +708,39 @@ msgstr ""
|
|
693 |
msgid "Input the key to use as transmission to automatic reply email. {} is unnecessary."
|
694 |
msgstr ""
|
695 |
|
696 |
-
#: templates/admin/settings.php:
|
697 |
msgid "Activate Query string of post"
|
698 |
msgstr ""
|
699 |
|
700 |
-
#: templates/admin/settings.php:
|
701 |
msgid "If this field is active, MW WP Form get query string. And get post data from query string \"post_id\". You can use $post's property in editor."
|
702 |
msgstr ""
|
703 |
|
704 |
-
#: templates/admin/settings.php:
|
705 |
msgid "Example: {ID}, {post_title}, {post_meta} etc..."
|
706 |
msgstr ""
|
707 |
|
708 |
-
#: templates/admin/settings.php:
|
709 |
msgid "Saving inquiry data in database"
|
710 |
msgstr ""
|
711 |
|
712 |
-
#: templates/admin/settings.php:
|
713 |
msgid "Enable scrolling of screen transition."
|
714 |
msgstr ""
|
715 |
|
716 |
-
#: templates/admin/settings.php:
|
717 |
msgid "Next Tracking Number"
|
718 |
msgstr ""
|
719 |
|
720 |
-
#: templates/admin/settings.php:
|
721 |
msgid "I want to change."
|
722 |
msgstr ""
|
723 |
|
724 |
-
#: templates/admin/settings.php:
|
725 |
msgid "Akismet Setting"
|
726 |
msgstr ""
|
727 |
|
728 |
-
#: templates/admin/settings.php:
|
729 |
msgid "Input the key to use Akismet."
|
730 |
msgstr ""
|
731 |
|
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 3.1.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mw-wp-form\n"
|
7 |
+
"POT-Creation-Date: 2017-03-25 12:29:04+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
190 |
msgstr ""
|
191 |
|
192 |
#: classes/form-fields/class.checkbox.php:141
|
193 |
+
#: classes/form-fields/class.datepicker.php:155
|
194 |
#: classes/form-fields/class.email.php:127
|
195 |
#: classes/form-fields/class.hidden.php:84
|
196 |
+
#: classes/form-fields/class.monthpicker.php:166
|
197 |
#: classes/form-fields/class.password.php:119
|
198 |
#: classes/form-fields/class.radio.php:137
|
199 |
#: classes/form-fields/class.select.php:133
|
218 |
msgstr ""
|
219 |
|
220 |
#: classes/form-fields/class.checkbox.php:156
|
221 |
+
#: classes/form-fields/class.datepicker.php:165
|
222 |
#: classes/form-fields/class.email.php:137
|
223 |
#: classes/form-fields/class.file.php:123
|
224 |
#: classes/form-fields/class.image.php:126
|
225 |
+
#: classes/form-fields/class.monthpicker.php:176
|
226 |
#: classes/form-fields/class.number.php:133
|
227 |
#: classes/form-fields/class.password.php:129
|
228 |
#: classes/form-fields/class.radio.php:147
|
235 |
msgstr ""
|
236 |
|
237 |
#: classes/form-fields/class.checkbox.php:158
|
238 |
+
#: classes/form-fields/class.datepicker.php:167
|
239 |
#: classes/form-fields/class.email.php:139
|
240 |
#: classes/form-fields/class.file.php:125
|
241 |
#: classes/form-fields/class.image.php:128
|
242 |
+
#: classes/form-fields/class.monthpicker.php:178
|
243 |
#: classes/form-fields/class.number.php:135
|
244 |
#: classes/form-fields/class.password.php:131
|
245 |
#: classes/form-fields/class.radio.php:149
|
303 |
msgid "Image"
|
304 |
msgstr ""
|
305 |
|
306 |
+
#: classes/form-fields/class.monthpicker.php:30
|
307 |
+
msgid "Monthpicker"
|
308 |
+
msgstr ""
|
309 |
+
|
310 |
#: classes/form-fields/class.number.php:30
|
311 |
msgid "Number"
|
312 |
msgstr ""
|
522 |
msgid "The number of the minimum characters"
|
523 |
msgstr ""
|
524 |
|
525 |
+
#: classes/validation-rules/class.month.php:32
|
526 |
+
msgid "This is not the format of a date (Year/Month)."
|
527 |
+
msgstr ""
|
528 |
+
|
529 |
+
#: classes/validation-rules/class.month.php:73
|
530 |
+
msgid "Date(Year/Month)"
|
531 |
+
msgstr ""
|
532 |
+
|
533 |
#: classes/validation-rules/class.noempty.php:32
|
534 |
#: classes/validation-rules/class.nofalse.php:32
|
535 |
msgid "Please enter."
|
572 |
msgid "This is not the format of a zip code."
|
573 |
msgstr ""
|
574 |
|
575 |
+
#: mw-wp-form.php:169 mw-wp-form.php:170 templates/chart/index.php:4
|
576 |
msgid "Chart"
|
577 |
msgstr ""
|
578 |
|
579 |
+
#: mw-wp-form.php:198 mw-wp-form.php:199
|
580 |
#: templates/stores-inquiry-data-form-list/index.php:2
|
581 |
msgid "Inquiry data"
|
582 |
msgstr ""
|
708 |
msgid "Input the key to use as transmission to automatic reply email. {} is unnecessary."
|
709 |
msgstr ""
|
710 |
|
711 |
+
#: templates/admin/settings.php:9
|
712 |
msgid "Activate Query string of post"
|
713 |
msgstr ""
|
714 |
|
715 |
+
#: templates/admin/settings.php:13
|
716 |
msgid "If this field is active, MW WP Form get query string. And get post data from query string \"post_id\". You can use $post's property in editor."
|
717 |
msgstr ""
|
718 |
|
719 |
+
#: templates/admin/settings.php:15
|
720 |
msgid "Example: {ID}, {post_title}, {post_meta} etc..."
|
721 |
msgstr ""
|
722 |
|
723 |
+
#: templates/admin/settings.php:27
|
724 |
msgid "Saving inquiry data in database"
|
725 |
msgstr ""
|
726 |
|
727 |
+
#: templates/admin/settings.php:39
|
728 |
msgid "Enable scrolling of screen transition."
|
729 |
msgstr ""
|
730 |
|
731 |
+
#: templates/admin/settings.php:44
|
732 |
msgid "Next Tracking Number"
|
733 |
msgstr ""
|
734 |
|
735 |
+
#: templates/admin/settings.php:57
|
736 |
msgid "I want to change."
|
737 |
msgstr ""
|
738 |
|
739 |
+
#: templates/admin/settings.php:63
|
740 |
msgid "Akismet Setting"
|
741 |
msgstr ""
|
742 |
|
743 |
+
#: templates/admin/settings.php:78
|
744 |
msgid "Input the key to use Akismet."
|
745 |
msgstr ""
|
746 |
|
mw-wp-form.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Plugin Name: MW WP Form
|
4 |
* Plugin URI: http://plugins.2inc.org/mw-wp-form/
|
5 |
* Description: MW WP Form is shortcode base contact form plugin. This plugin have many feature. For example you can use many validation rules, contact data saving, and chart aggregation using saved contact data.
|
6 |
-
* Version: 3.0
|
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 or later
|
@@ -42,6 +42,7 @@ class MW_WP_Form {
|
|
42 |
'tel' => '',
|
43 |
'mail' => '',
|
44 |
'date' => '',
|
|
|
45 |
'url' => '',
|
46 |
'eq' => '',
|
47 |
'between' => '',
|
3 |
* Plugin Name: MW WP Form
|
4 |
* Plugin URI: http://plugins.2inc.org/mw-wp-form/
|
5 |
* Description: MW WP Form is shortcode base contact form plugin. This plugin have many feature. For example you can use many validation rules, contact data saving, and chart aggregation using saved contact data.
|
6 |
+
* Version: 3.1.0
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : September 25, 2012
|
10 |
+
* Modified: March 9, 2017
|
11 |
* Text Domain: mw-wp-form
|
12 |
* Domain Path: /languages/
|
13 |
* License: GPLv2 or later
|
42 |
'tel' => '',
|
43 |
'mail' => '',
|
44 |
'date' => '',
|
45 |
+
'month' => '',
|
46 |
'url' => '',
|
47 |
'eq' => '',
|
48 |
'between' => '',
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: inc2734, ryu263, tomothumb, nanniku, mt8.biz, NExt-Season, kuck1u,
|
|
3 |
Donate link: http://www.amazon.co.jp/registry/wishlist/39ANKRNSTNW40
|
4 |
Tags: plugin, form, confirm, preview, shortcode, mail, chart, graph, html, contact form, form creation, form creator, form manager, form builder, custom form
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 4.7.
|
7 |
-
Stable tag: 3.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -80,6 +80,9 @@ Do you have questions or issues with MW WP Form? Use these support channels appr
|
|
80 |
|
81 |
== Changelog ==
|
82 |
|
|
|
|
|
|
|
83 |
= 3.0.1 =
|
84 |
* Bugfix : Fixed a bug of action hook mwform_contact_data_save-mwf_xxx
|
85 |
|
3 |
Donate link: http://www.amazon.co.jp/registry/wishlist/39ANKRNSTNW40
|
4 |
Tags: plugin, form, confirm, preview, shortcode, mail, chart, graph, html, contact form, form creation, form creator, form manager, form builder, custom form
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 4.7.2
|
7 |
+
Stable tag: 3.1.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
80 |
|
81 |
== Changelog ==
|
82 |
|
83 |
+
= 3.1.0 =
|
84 |
+
* Added : Added the month picker field.
|
85 |
+
|
86 |
= 3.0.1 =
|
87 |
* Bugfix : Fixed a bug of action hook mwform_contact_data_save-mwf_xxx
|
88 |
|