Version Description
- Added : ->
- Added : mwform_error_message_
- Added :
- Added : [mwform_formkey]
- Added : Support placeholder in input, textarea
- Changed : MW_Form::previewPage() -> MW_Form::confirmPage()
- Changed : [mwform_submitButton preview_value=""] -> [mwform_submitButton confirm_value=""]
- Changed : [mwform preview=""] -> [mwform confirm=""]
- Changed : [mwform_previewButton] -> [mwform_confirmButton]
- Changed : URL URLURL
- Bug fix : posthidden
Download this release
Release Info
Developer | inc2734 |
Plugin | MW WP Form |
Version | 1.2.0 |
Comparing to | |
See all releases |
Code changes from version 1.1.5 to 1.2.0
- form_fields/mw_form_field_akismet_error.php +2 -5
- form_fields/mw_form_field_back_button.php +2 -5
- form_fields/mw_form_field_button.php +2 -5
- form_fields/mw_form_field_checkbox.php +2 -5
- form_fields/mw_form_field_datepicker.php +2 -5
- form_fields/mw_form_field_error.php +2 -5
- form_fields/mw_form_field_file.php +2 -5
- form_fields/mw_form_field_hidden.php +2 -5
- form_fields/mw_form_field_image.php +2 -5
- form_fields/mw_form_field_password.php +2 -5
- form_fields/mw_form_field_preview_button.php +0 -78
- form_fields/mw_form_field_radio.php +2 -5
- form_fields/mw_form_field_select.php +2 -5
- form_fields/mw_form_field_submit.php +2 -5
- form_fields/mw_form_field_submit_button.php +2 -8
- form_fields/mw_form_field_tel.php +8 -6
- form_fields/mw_form_field_text.php +11 -12
- form_fields/mw_form_field_textarea.php +11 -12
- form_fields/mw_form_field_zip.php +8 -6
- js/form.js +12 -0
- languages/mw-wp-form-ja.mo +0 -0
- languages/mw-wp-form-ja.po +100 -90
- languages/mw-wp-form.pot +95 -87
- mw-wp-form.php +37 -23
- readme.txt +16 -3
- system/mw_error.php +15 -13
- system/mw_form.php +103 -34
- system/mw_form_field.php +6 -7
- system/mw_validation.php +26 -4
- system/mw_wp_form_admin_page.php +6 -4
- system/mw_wp_form_file.php +3 -3
form_fields/mw_form_field_akismet_error.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Name: MW Form Field Akismet Error
|
4 |
* URI: http://2inc.org
|
5 |
* Description: Akismetのエラーを出力。
|
6 |
-
* Version: 1.1.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : June 21, 2013
|
10 |
-
* Modified:
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
@@ -57,9 +57,6 @@ class mw_form_field_akismet_error extends mw_form_field {
|
|
57 |
*/
|
58 |
protected function confirmPage() {
|
59 |
}
|
60 |
-
protected function previewPage() {
|
61 |
-
$this->confirmPage();
|
62 |
-
}
|
63 |
|
64 |
/**
|
65 |
* add_qtags
|
3 |
* Name: MW Form Field Akismet Error
|
4 |
* URI: http://2inc.org
|
5 |
* Description: Akismetのエラーを出力。
|
6 |
+
* Version: 1.1.2
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : June 21, 2013
|
10 |
+
* Modified: December 3, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
57 |
*/
|
58 |
protected function confirmPage() {
|
59 |
}
|
|
|
|
|
|
|
60 |
|
61 |
/**
|
62 |
* add_qtags
|
form_fields/mw_form_field_back_button.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Name: MW Form Field Back Button
|
4 |
* URI: http://2inc.org
|
5 |
* Description: 戻るボタンを出力。
|
6 |
-
* Version: 1.2.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
-
* Modified:
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
@@ -59,9 +59,6 @@ class mw_form_field_back_button extends mw_form_field {
|
|
59 |
protected function confirmPage() {
|
60 |
return $this->Form->submit( $this->Form->getBackButtonName(), $this->atts['value'] );
|
61 |
}
|
62 |
-
protected function previewPage() {
|
63 |
-
return $this->confirmPage();
|
64 |
-
}
|
65 |
|
66 |
/**
|
67 |
* add_qtags
|
3 |
* Name: MW Form Field Back Button
|
4 |
* URI: http://2inc.org
|
5 |
* Description: 戻るボタンを出力。
|
6 |
+
* Version: 1.2.2
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
+
* Modified: December 3, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
59 |
protected function confirmPage() {
|
60 |
return $this->Form->submit( $this->Form->getBackButtonName(), $this->atts['value'] );
|
61 |
}
|
|
|
|
|
|
|
62 |
|
63 |
/**
|
64 |
* add_qtags
|
form_fields/mw_form_field_button.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Name: MW Form Field Button
|
4 |
* URI: http://2inc.org
|
5 |
* Description: ボタンを出力。
|
6 |
-
* Version: 1.2.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
-
* Modified:
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
@@ -61,9 +61,6 @@ class mw_form_field_button extends mw_form_field {
|
|
61 |
protected function confirmPage() {
|
62 |
return $this->inputPage();
|
63 |
}
|
64 |
-
protected function previewPage() {
|
65 |
-
return $this->confirmPage();
|
66 |
-
}
|
67 |
|
68 |
/**
|
69 |
* add_qtags
|
3 |
* Name: MW Form Field Button
|
4 |
* URI: http://2inc.org
|
5 |
* Description: ボタンを出力。
|
6 |
+
* Version: 1.2.2
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
+
* Modified: December 3, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
61 |
protected function confirmPage() {
|
62 |
return $this->inputPage();
|
63 |
}
|
|
|
|
|
|
|
64 |
|
65 |
/**
|
66 |
* add_qtags
|
form_fields/mw_form_field_checkbox.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Name: MW Form Field Checkbox
|
4 |
* URI: http://2inc.org
|
5 |
* Description: チェックボックスを出力。
|
6 |
-
* Version: 1.2.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
-
* Modified:
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
@@ -75,9 +75,6 @@ class mw_form_field_checkbox extends mw_form_field {
|
|
75 |
$_ret .= $this->Form->separator( $this->atts['name'] );
|
76 |
return $_ret;
|
77 |
}
|
78 |
-
protected function previewPage() {
|
79 |
-
return $this->confirmPage();
|
80 |
-
}
|
81 |
|
82 |
/**
|
83 |
* add_qtags
|
3 |
* Name: MW Form Field Checkbox
|
4 |
* URI: http://2inc.org
|
5 |
* Description: チェックボックスを出力。
|
6 |
+
* Version: 1.2.2
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
+
* Modified: December 3, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
75 |
$_ret .= $this->Form->separator( $this->atts['name'] );
|
76 |
return $_ret;
|
77 |
}
|
|
|
|
|
|
|
78 |
|
79 |
/**
|
80 |
* add_qtags
|
form_fields/mw_form_field_datepicker.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Name: MW Form Field Datepicker
|
4 |
* URI: http://2inc.org
|
5 |
* Description: datepickerを出力。
|
6 |
-
* Version: 1.2.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
-
* Modified:
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
@@ -95,9 +95,6 @@ class mw_form_field_datepicker extends mw_form_field {
|
|
95 |
$_ret .= $this->Form->hidden( $this->atts['name'], $value );
|
96 |
return $_ret;
|
97 |
}
|
98 |
-
protected function previewPage() {
|
99 |
-
return $this->confirmPage();
|
100 |
-
}
|
101 |
|
102 |
/**
|
103 |
* add_qtags
|
3 |
* Name: MW Form Field Datepicker
|
4 |
* URI: http://2inc.org
|
5 |
* Description: datepickerを出力。
|
6 |
+
* Version: 1.2.2
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
+
* Modified: December 3, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
95 |
$_ret .= $this->Form->hidden( $this->atts['name'], $value );
|
96 |
return $_ret;
|
97 |
}
|
|
|
|
|
|
|
98 |
|
99 |
/**
|
100 |
* add_qtags
|
form_fields/mw_form_field_error.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Name: MW Form Field Error
|
4 |
* URI: http://2inc.org
|
5 |
* Description: エラーを出力。
|
6 |
-
* Version: 1.2.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
-
* Modified:
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
@@ -64,9 +64,6 @@ class mw_form_field_error extends mw_form_field {
|
|
64 |
*/
|
65 |
protected function confirmPage() {
|
66 |
}
|
67 |
-
protected function previewPage() {
|
68 |
-
$this->confirmPage();
|
69 |
-
}
|
70 |
|
71 |
/**
|
72 |
* add_qtags
|
3 |
* Name: MW Form Field Error
|
4 |
* URI: http://2inc.org
|
5 |
* Description: エラーを出力。
|
6 |
+
* Version: 1.2.2
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
+
* Modified: December 3, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
64 |
*/
|
65 |
protected function confirmPage() {
|
66 |
}
|
|
|
|
|
|
|
67 |
|
68 |
/**
|
69 |
* add_qtags
|
form_fields/mw_form_field_file.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Name: MW Form Field File
|
4 |
* URI: http://2inc.org
|
5 |
* Description: 画像アップロードフィールドを出力。
|
6 |
-
* Version: 1.2.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : May 17, 2013
|
10 |
-
* Modified:
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
@@ -82,9 +82,6 @@ class mw_form_field_file extends mw_form_field {
|
|
82 |
return $_ret;
|
83 |
}
|
84 |
}
|
85 |
-
protected function previewPage() {
|
86 |
-
return $this->confirmPage();
|
87 |
-
}
|
88 |
|
89 |
/**
|
90 |
* add_qtags
|
3 |
* Name: MW Form Field File
|
4 |
* URI: http://2inc.org
|
5 |
* Description: 画像アップロードフィールドを出力。
|
6 |
+
* Version: 1.2.2
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : May 17, 2013
|
10 |
+
* Modified: December 3, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
82 |
return $_ret;
|
83 |
}
|
84 |
}
|
|
|
|
|
|
|
85 |
|
86 |
/**
|
87 |
* add_qtags
|
form_fields/mw_form_field_hidden.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Name: MW Form Field Hidden
|
4 |
* URI: http://2inc.org
|
5 |
* Description: hiddenフィールドを出力。
|
6 |
-
* Version: 1.3.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
-
* Modified:
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
@@ -71,9 +71,6 @@ class mw_form_field_hidden extends mw_form_field {
|
|
71 |
}
|
72 |
return $echo_value . $this->Form->hidden( $this->atts['name'], $value );
|
73 |
}
|
74 |
-
protected function previewPage() {
|
75 |
-
return $this->confirmPage();
|
76 |
-
}
|
77 |
|
78 |
/**
|
79 |
* add_qtags
|
3 |
* Name: MW Form Field Hidden
|
4 |
* URI: http://2inc.org
|
5 |
* Description: hiddenフィールドを出力。
|
6 |
+
* Version: 1.3.2
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
+
* Modified: December 3, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
71 |
}
|
72 |
return $echo_value . $this->Form->hidden( $this->atts['name'], $value );
|
73 |
}
|
|
|
|
|
|
|
74 |
|
75 |
/**
|
76 |
* add_qtags
|
form_fields/mw_form_field_image.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Name: MW Form Field Image
|
4 |
* URI: http://2inc.org
|
5 |
* Description: 画像アップロードフィールドを出力。
|
6 |
-
* Version: 1.2.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : May 17, 2013
|
10 |
-
* Modified:
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
@@ -82,9 +82,6 @@ class mw_form_field_image extends mw_form_field {
|
|
82 |
return $_ret;
|
83 |
}
|
84 |
}
|
85 |
-
protected function previewPage() {
|
86 |
-
return $this->confirmPage();
|
87 |
-
}
|
88 |
|
89 |
/**
|
90 |
* add_qtags
|
3 |
* Name: MW Form Field Image
|
4 |
* URI: http://2inc.org
|
5 |
* Description: 画像アップロードフィールドを出力。
|
6 |
+
* Version: 1.2.2
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : May 17, 2013
|
10 |
+
* Modified: December 3, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
82 |
return $_ret;
|
83 |
}
|
84 |
}
|
|
|
|
|
|
|
85 |
|
86 |
/**
|
87 |
* add_qtags
|
form_fields/mw_form_field_password.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Name: MW Form Field Password
|
4 |
* URI: http://2inc.org
|
5 |
* Description: パスワードフィールドを出力。
|
6 |
-
* Version: 1.2.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
-
* Modified:
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
@@ -72,9 +72,6 @@ class mw_form_field_password extends mw_form_field {
|
|
72 |
$value = $this->Form->getValue( $this->atts['name'] );
|
73 |
return '*****' . $this->Form->hidden( $this->atts['name'], $value );
|
74 |
}
|
75 |
-
protected function previewPage() {
|
76 |
-
return $this->confirmPage();
|
77 |
-
}
|
78 |
|
79 |
/**
|
80 |
* add_qtags
|
3 |
* Name: MW Form Field Password
|
4 |
* URI: http://2inc.org
|
5 |
* Description: パスワードフィールドを出力。
|
6 |
+
* Version: 1.2.2
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
+
* Modified: December 3, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
72 |
$value = $this->Form->getValue( $this->atts['name'] );
|
73 |
return '*****' . $this->Form->hidden( $this->atts['name'], $value );
|
74 |
}
|
|
|
|
|
|
|
75 |
|
76 |
/**
|
77 |
* add_qtags
|
form_fields/mw_form_field_preview_button.php
DELETED
@@ -1,78 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Name: MW Form Field Preview Button
|
4 |
-
* URI: http://2inc.org
|
5 |
-
* Description: 確認ボタンを出力。
|
6 |
-
* Version: 1.2.1
|
7 |
-
* Author: Takashi Kitajima
|
8 |
-
* Author URI: http://2inc.org
|
9 |
-
* Created : December 14, 2012
|
10 |
-
* Modified: December 26, 2013
|
11 |
-
* License: GPL2
|
12 |
-
*
|
13 |
-
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
14 |
-
*
|
15 |
-
* This program is free software; you can redistribute it and/or modify
|
16 |
-
* it under the terms of the GNU General Public License, version 2, as
|
17 |
-
* published by the Free Software Foundation.
|
18 |
-
*
|
19 |
-
* This program is distributed in the hope that it will be useful,
|
20 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
21 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
22 |
-
* GNU General Public License for more details.
|
23 |
-
*
|
24 |
-
* You should have received a copy of the GNU General Public License
|
25 |
-
* along with this program; if not, write to the Free Software
|
26 |
-
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
27 |
-
*/
|
28 |
-
class mw_form_field_preview_button extends mw_form_field {
|
29 |
-
|
30 |
-
/**
|
31 |
-
* String $short_code_name
|
32 |
-
*/
|
33 |
-
protected $short_code_name = 'mwform_previewButton';
|
34 |
-
|
35 |
-
/**
|
36 |
-
* setDefaults
|
37 |
-
* $this->defaultsを設定し返す
|
38 |
-
* @return Array defaults
|
39 |
-
*/
|
40 |
-
protected function setDefaults() {
|
41 |
-
return array(
|
42 |
-
'value' => __( 'Confirm', MWF_Config::DOMAIN ),
|
43 |
-
);
|
44 |
-
}
|
45 |
-
|
46 |
-
/**
|
47 |
-
* inputPage
|
48 |
-
* 入力ページでのフォーム項目を返す
|
49 |
-
* @return String HTML
|
50 |
-
*/
|
51 |
-
protected function inputPage() {
|
52 |
-
return $this->Form->submit( $this->Form->getConfirmButtonName(), $this->atts['value'] );
|
53 |
-
}
|
54 |
-
|
55 |
-
/**
|
56 |
-
* confirmPage
|
57 |
-
* 確認ページでのフォーム項目を返す
|
58 |
-
* @return String HTML
|
59 |
-
*/
|
60 |
-
protected function confirmPage() {
|
61 |
-
}
|
62 |
-
protected function previewPage() {
|
63 |
-
return $this->confirmPage();
|
64 |
-
}
|
65 |
-
|
66 |
-
/**
|
67 |
-
* add_qtags
|
68 |
-
* QTags.addButton を出力
|
69 |
-
*/
|
70 |
-
protected function add_qtags() {
|
71 |
-
?>
|
72 |
-
'<?php echo $this->short_code_name; ?>',
|
73 |
-
'<?php _e( 'Confirm Button', MWF_Config::DOMAIN ); ?>',
|
74 |
-
'[<?php echo $this->short_code_name; ?>]',
|
75 |
-
''
|
76 |
-
<?php
|
77 |
-
}
|
78 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
form_fields/mw_form_field_radio.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Name: MW Form Field Radio
|
4 |
* URI: http://2inc.org
|
5 |
* Description: ラジオボタンを出力。
|
6 |
-
* Version: 1.2.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
-
* Modified:
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
@@ -73,9 +73,6 @@ class mw_form_field_radio extends mw_form_field {
|
|
73 |
$_ret .= $this->Form->hidden( $this->atts['name'], $value );
|
74 |
return $_ret;
|
75 |
}
|
76 |
-
protected function previewPage() {
|
77 |
-
return $this->confirmPage();
|
78 |
-
}
|
79 |
|
80 |
/**
|
81 |
* add_qtags
|
3 |
* Name: MW Form Field Radio
|
4 |
* URI: http://2inc.org
|
5 |
* Description: ラジオボタンを出力。
|
6 |
+
* Version: 1.2.2
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
+
* Modified: December 3, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
73 |
$_ret .= $this->Form->hidden( $this->atts['name'], $value );
|
74 |
return $_ret;
|
75 |
}
|
|
|
|
|
|
|
76 |
|
77 |
/**
|
78 |
* add_qtags
|
form_fields/mw_form_field_select.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Name: MW Form Field Select
|
4 |
* URI: http://2inc.org
|
5 |
* Description: セレクトボックスを出力。
|
6 |
-
* Version: 1.2,
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
-
* Modified:
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
@@ -73,9 +73,6 @@ class mw_form_field_select extends mw_form_field {
|
|
73 |
$_ret .= $this->Form->hidden( $this->atts['name'], $value );
|
74 |
return $_ret;
|
75 |
}
|
76 |
-
protected function previewPage() {
|
77 |
-
return $this->confirmPage();
|
78 |
-
}
|
79 |
|
80 |
/**
|
81 |
* add_qtags
|
3 |
* Name: MW Form Field Select
|
4 |
* URI: http://2inc.org
|
5 |
* Description: セレクトボックスを出力。
|
6 |
+
* Version: 1.2,2
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
+
* Modified: December 3, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
73 |
$_ret .= $this->Form->hidden( $this->atts['name'], $value );
|
74 |
return $_ret;
|
75 |
}
|
|
|
|
|
|
|
76 |
|
77 |
/**
|
78 |
* add_qtags
|
form_fields/mw_form_field_submit.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Name: MW Form Field Submit Button
|
4 |
* URI: http://2inc.org
|
5 |
* Description: 送信ボタンを出力。
|
6 |
-
* Version: 1.2.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
-
* Modified:
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
@@ -61,9 +61,6 @@ class mw_form_field_submit extends mw_form_field {
|
|
61 |
protected function confirmPage() {
|
62 |
return $this->inputPage( $this->atts );
|
63 |
}
|
64 |
-
protected function previewPage() {
|
65 |
-
return $this->confirmPage();
|
66 |
-
}
|
67 |
|
68 |
/**
|
69 |
* add_qtags
|
3 |
* Name: MW Form Field Submit Button
|
4 |
* URI: http://2inc.org
|
5 |
* Description: 送信ボタンを出力。
|
6 |
+
* Version: 1.2.2
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
+
* Modified: December 3, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
61 |
protected function confirmPage() {
|
62 |
return $this->inputPage( $this->atts );
|
63 |
}
|
|
|
|
|
|
|
64 |
|
65 |
/**
|
66 |
* add_qtags
|
form_fields/mw_form_field_submit_button.php
CHANGED
@@ -4,11 +4,11 @@
|
|
4 |
* URI: http://2inc.org
|
5 |
* Description: サブミットボタンを出力。
|
6 |
* Description: 確認ボタンと送信ボタンを自動出力。
|
7 |
-
* Version: 1.2.
|
8 |
* Author: Takashi Kitajima
|
9 |
* Author URI: http://2inc.org
|
10 |
* Created : December 14, 2012
|
11 |
-
* Modified:
|
12 |
* License: GPL2
|
13 |
*
|
14 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
@@ -41,7 +41,6 @@ class mw_form_field_submit_button extends mw_form_field {
|
|
41 |
protected function setDefaults() {
|
42 |
return array(
|
43 |
'name' => '',
|
44 |
-
'preview_value' => __( 'Confirm', MWF_Config::DOMAIN ),
|
45 |
'confirm_value' => __( 'Confirm', MWF_Config::DOMAIN ),
|
46 |
'submit_value' => __( 'Send', MWF_Config::DOMAIN ),
|
47 |
);
|
@@ -55,8 +54,6 @@ class mw_form_field_submit_button extends mw_form_field {
|
|
55 |
protected function inputPage() {
|
56 |
if ( !empty( $this->atts['confirm_value'] ) ) {
|
57 |
return $this->Form->submit( $this->Form->getConfirmButtonName(), $this->atts['confirm_value'] );
|
58 |
-
} elseif ( !empty( $this->atts['preview_value'] ) ) {
|
59 |
-
return $this->Form->submit( $this->Form->getConfirmButtonName(), $this->atts['preview_value'] );
|
60 |
}
|
61 |
return $this->Form->submit( $this->atts['name'], $this->atts['submit_value'] );
|
62 |
}
|
@@ -69,9 +66,6 @@ class mw_form_field_submit_button extends mw_form_field {
|
|
69 |
protected function confirmPage() {
|
70 |
return $this->Form->submit( $this->atts['name'], $this->atts['submit_value'] );
|
71 |
}
|
72 |
-
protected function previewPage() {
|
73 |
-
return $this->confirmPage();
|
74 |
-
}
|
75 |
|
76 |
/**
|
77 |
* add_qtags
|
4 |
* URI: http://2inc.org
|
5 |
* Description: サブミットボタンを出力。
|
6 |
* Description: 確認ボタンと送信ボタンを自動出力。
|
7 |
+
* Version: 1.2.2
|
8 |
* Author: Takashi Kitajima
|
9 |
* Author URI: http://2inc.org
|
10 |
* Created : December 14, 2012
|
11 |
+
* Modified: December 3, 2013
|
12 |
* License: GPL2
|
13 |
*
|
14 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
41 |
protected function setDefaults() {
|
42 |
return array(
|
43 |
'name' => '',
|
|
|
44 |
'confirm_value' => __( 'Confirm', MWF_Config::DOMAIN ),
|
45 |
'submit_value' => __( 'Send', MWF_Config::DOMAIN ),
|
46 |
);
|
54 |
protected function inputPage() {
|
55 |
if ( !empty( $this->atts['confirm_value'] ) ) {
|
56 |
return $this->Form->submit( $this->Form->getConfirmButtonName(), $this->atts['confirm_value'] );
|
|
|
|
|
57 |
}
|
58 |
return $this->Form->submit( $this->atts['name'], $this->atts['submit_value'] );
|
59 |
}
|
66 |
protected function confirmPage() {
|
67 |
return $this->Form->submit( $this->atts['name'], $this->atts['submit_value'] );
|
68 |
}
|
|
|
|
|
|
|
69 |
|
70 |
/**
|
71 |
* add_qtags
|
form_fields/mw_form_field_tel.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Name: MW Form Field Tel
|
4 |
* URI: http://2inc.org
|
5 |
* Description: 電話番号フィールドを出力。
|
6 |
-
* Version: 1.2.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
-
* Modified:
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
@@ -41,6 +41,7 @@ class mw_form_field_tel extends mw_form_field {
|
|
41 |
return array(
|
42 |
'name' => '',
|
43 |
'show_error' => 'true',
|
|
|
44 |
);
|
45 |
}
|
46 |
|
@@ -50,7 +51,11 @@ class mw_form_field_tel extends mw_form_field {
|
|
50 |
* @return String HTML
|
51 |
*/
|
52 |
protected function inputPage() {
|
53 |
-
$
|
|
|
|
|
|
|
|
|
54 |
if ( $this->atts['show_error'] !== 'false' )
|
55 |
$_ret .= $this->getError( $this->atts['name'] );
|
56 |
return $_ret;
|
@@ -68,9 +73,6 @@ class mw_form_field_tel extends mw_form_field {
|
|
68 |
$_ret .= $this->Form->separator( $this->atts['name'] );
|
69 |
return $_ret;
|
70 |
}
|
71 |
-
protected function previewPage() {
|
72 |
-
return $this->confirmPage();
|
73 |
-
}
|
74 |
|
75 |
/**
|
76 |
* add_qtags
|
3 |
* Name: MW Form Field Tel
|
4 |
* URI: http://2inc.org
|
5 |
* Description: 電話番号フィールドを出力。
|
6 |
+
* Version: 1.2.2
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
+
* Modified: December 3, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
41 |
return array(
|
42 |
'name' => '',
|
43 |
'show_error' => 'true',
|
44 |
+
'conv_half_alphanumeric' => 'true',
|
45 |
);
|
46 |
}
|
47 |
|
51 |
* @return String HTML
|
52 |
*/
|
53 |
protected function inputPage() {
|
54 |
+
$conv_half_alphanumeric = false;
|
55 |
+
if ( $this->atts['conv_half_alphanumeric'] === 'true' ) {
|
56 |
+
$conv_half_alphanumeric = true;
|
57 |
+
}
|
58 |
+
$_ret = $this->Form->tel( $this->atts['name'], array( 'conv-half-alphanumeric' => $conv_half_alphanumeric ) );
|
59 |
if ( $this->atts['show_error'] !== 'false' )
|
60 |
$_ret .= $this->getError( $this->atts['name'] );
|
61 |
return $_ret;
|
73 |
$_ret .= $this->Form->separator( $this->atts['name'] );
|
74 |
return $_ret;
|
75 |
}
|
|
|
|
|
|
|
76 |
|
77 |
/**
|
78 |
* add_qtags
|
form_fields/mw_form_field_text.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Name: MW Form Field Text
|
4 |
* URI: http://2inc.org
|
5 |
* Description: テキストフィールドを出力。
|
6 |
-
* Version: 1.2.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
-
* Modified:
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
@@ -35,28 +35,30 @@ class mw_form_field_text extends mw_form_field {
|
|
35 |
/**
|
36 |
* setDefaults
|
37 |
* $this->defaultsを設定し返す
|
38 |
-
* @return
|
39 |
*/
|
40 |
protected function setDefaults() {
|
41 |
return array(
|
42 |
-
'name'
|
43 |
-
'size'
|
44 |
-
'maxlength'
|
45 |
-
'value'
|
46 |
-
'
|
|
|
47 |
);
|
48 |
}
|
49 |
|
50 |
/**
|
51 |
* inputPage
|
52 |
* 入力ページでのフォーム項目を返す
|
53 |
-
* @return
|
54 |
*/
|
55 |
protected function inputPage() {
|
56 |
$_ret = $this->Form->text( $this->atts['name'], array(
|
57 |
'size' => $this->atts['size'],
|
58 |
'maxlength' => $this->atts['maxlength'],
|
59 |
'value' => $this->atts['value'],
|
|
|
60 |
) );
|
61 |
if ( $this->atts['show_error'] !== 'false' )
|
62 |
$_ret .= $this->getError( $this->atts['name'] );
|
@@ -74,9 +76,6 @@ class mw_form_field_text extends mw_form_field {
|
|
74 |
$_ret .= $this->Form->hidden( $this->atts['name'], $value );
|
75 |
return $_ret;
|
76 |
}
|
77 |
-
protected function previewPage() {
|
78 |
-
return $this->confirmPage();
|
79 |
-
}
|
80 |
|
81 |
/**
|
82 |
* add_qtags
|
3 |
* Name: MW Form Field Text
|
4 |
* URI: http://2inc.org
|
5 |
* Description: テキストフィールドを出力。
|
6 |
+
* Version: 1.2.2
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
+
* Modified: December 3, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
35 |
/**
|
36 |
* setDefaults
|
37 |
* $this->defaultsを設定し返す
|
38 |
+
* @return array
|
39 |
*/
|
40 |
protected function setDefaults() {
|
41 |
return array(
|
42 |
+
'name' => '',
|
43 |
+
'size' => 60,
|
44 |
+
'maxlength' => 255,
|
45 |
+
'value' => '',
|
46 |
+
'placeholder' => '',
|
47 |
+
'show_error' => 'true',
|
48 |
);
|
49 |
}
|
50 |
|
51 |
/**
|
52 |
* inputPage
|
53 |
* 入力ページでのフォーム項目を返す
|
54 |
+
* @return string html
|
55 |
*/
|
56 |
protected function inputPage() {
|
57 |
$_ret = $this->Form->text( $this->atts['name'], array(
|
58 |
'size' => $this->atts['size'],
|
59 |
'maxlength' => $this->atts['maxlength'],
|
60 |
'value' => $this->atts['value'],
|
61 |
+
'placeholder' => $this->atts['placeholder'],
|
62 |
) );
|
63 |
if ( $this->atts['show_error'] !== 'false' )
|
64 |
$_ret .= $this->getError( $this->atts['name'] );
|
76 |
$_ret .= $this->Form->hidden( $this->atts['name'], $value );
|
77 |
return $_ret;
|
78 |
}
|
|
|
|
|
|
|
79 |
|
80 |
/**
|
81 |
* add_qtags
|
form_fields/mw_form_field_textarea.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Name: MW Form Field TextArea
|
4 |
* URI: http://2inc.org
|
5 |
* Description: テキストエリアを出力。
|
6 |
-
* Version: 1.2.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
-
* Modified:
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
@@ -35,28 +35,30 @@ class mw_form_field_textarea extends mw_form_field {
|
|
35 |
/**
|
36 |
* setDefaults
|
37 |
* $this->defaultsを設定し返す
|
38 |
-
* @return
|
39 |
*/
|
40 |
protected function setDefaults() {
|
41 |
return array(
|
42 |
-
'name'
|
43 |
-
'cols'
|
44 |
-
'rows'
|
45 |
-
'value'
|
46 |
-
'
|
|
|
47 |
);
|
48 |
}
|
49 |
|
50 |
/**
|
51 |
* inputPage
|
52 |
* 入力ページでのフォーム項目を返す
|
53 |
-
* @return
|
54 |
*/
|
55 |
protected function inputPage() {
|
56 |
$_ret = $this->Form->textarea( $this->atts['name'], array(
|
57 |
'cols' => $this->atts['cols'],
|
58 |
'rows' => $this->atts['rows'],
|
59 |
'value' => $this->atts['value'],
|
|
|
60 |
) );
|
61 |
if ( $this->atts['show_error'] !== 'false' )
|
62 |
$_ret .= $this->getError( $this->atts['name'] );
|
@@ -74,9 +76,6 @@ class mw_form_field_textarea extends mw_form_field {
|
|
74 |
$_ret .= $this->Form->hidden( $this->atts['name'], $value );
|
75 |
return $_ret;
|
76 |
}
|
77 |
-
protected function previewPage() {
|
78 |
-
return $this->confirmPage();
|
79 |
-
}
|
80 |
|
81 |
/**
|
82 |
* add_qtags
|
3 |
* Name: MW Form Field TextArea
|
4 |
* URI: http://2inc.org
|
5 |
* Description: テキストエリアを出力。
|
6 |
+
* Version: 1.2.2
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
+
* Modified: December 3, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
35 |
/**
|
36 |
* setDefaults
|
37 |
* $this->defaultsを設定し返す
|
38 |
+
* @return array
|
39 |
*/
|
40 |
protected function setDefaults() {
|
41 |
return array(
|
42 |
+
'name' => '',
|
43 |
+
'cols' => 50,
|
44 |
+
'rows' => 5,
|
45 |
+
'value' => '',
|
46 |
+
'placeholder' => '',
|
47 |
+
'show_error' => 'true',
|
48 |
);
|
49 |
}
|
50 |
|
51 |
/**
|
52 |
* inputPage
|
53 |
* 入力ページでのフォーム項目を返す
|
54 |
+
* @return string html
|
55 |
*/
|
56 |
protected function inputPage() {
|
57 |
$_ret = $this->Form->textarea( $this->atts['name'], array(
|
58 |
'cols' => $this->atts['cols'],
|
59 |
'rows' => $this->atts['rows'],
|
60 |
'value' => $this->atts['value'],
|
61 |
+
'placeholder' => $this->atts['placeholder'],
|
62 |
) );
|
63 |
if ( $this->atts['show_error'] !== 'false' )
|
64 |
$_ret .= $this->getError( $this->atts['name'] );
|
76 |
$_ret .= $this->Form->hidden( $this->atts['name'], $value );
|
77 |
return $_ret;
|
78 |
}
|
|
|
|
|
|
|
79 |
|
80 |
/**
|
81 |
* add_qtags
|
form_fields/mw_form_field_zip.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Name: MW Form Field Zip
|
4 |
* URI: http://2inc.org
|
5 |
* Description: 郵便番号フィールドを出力。
|
6 |
-
* Version: 1.2.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
-
* Modified:
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
@@ -41,6 +41,7 @@ class mw_form_field_zip extends mw_form_field {
|
|
41 |
return array(
|
42 |
'name' => '',
|
43 |
'show_error' => 'true',
|
|
|
44 |
);
|
45 |
}
|
46 |
|
@@ -50,7 +51,11 @@ class mw_form_field_zip extends mw_form_field {
|
|
50 |
* @return String HTML
|
51 |
*/
|
52 |
protected function inputPage() {
|
53 |
-
$
|
|
|
|
|
|
|
|
|
54 |
if ( $this->atts['show_error'] !== 'false' )
|
55 |
$_ret .= $this->getError( $this->atts['name'] );
|
56 |
return $_ret;
|
@@ -68,9 +73,6 @@ class mw_form_field_zip extends mw_form_field {
|
|
68 |
$_ret .= $this->Form->separator( $this->atts['name'] );
|
69 |
return $_ret;
|
70 |
}
|
71 |
-
protected function previewPage() {
|
72 |
-
return $this->confirmPage();
|
73 |
-
}
|
74 |
|
75 |
/**
|
76 |
* add_qtags
|
3 |
* Name: MW Form Field Zip
|
4 |
* URI: http://2inc.org
|
5 |
* Description: 郵便番号フィールドを出力。
|
6 |
+
* Version: 1.2.2
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
+
* Modified: December 3, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
41 |
return array(
|
42 |
'name' => '',
|
43 |
'show_error' => 'true',
|
44 |
+
'conv_half_alphanumeric' => 'true',
|
45 |
);
|
46 |
}
|
47 |
|
51 |
* @return String HTML
|
52 |
*/
|
53 |
protected function inputPage() {
|
54 |
+
$conv_half_alphanumeric = false;
|
55 |
+
if ( $this->atts['conv_half_alphanumeric'] === 'true' ) {
|
56 |
+
$conv_half_alphanumeric = true;
|
57 |
+
}
|
58 |
+
$_ret = $this->Form->zip( $this->atts['name'], array( 'conv-half-alphanumeric' => $conv_half_alphanumeric ) );
|
59 |
if ( $this->atts['show_error'] !== 'false' )
|
60 |
$_ret .= $this->getError( $this->atts['name'] );
|
61 |
return $_ret;
|
73 |
$_ret .= $this->Form->separator( $this->atts['name'] );
|
74 |
return $_ret;
|
75 |
}
|
|
|
|
|
|
|
76 |
|
77 |
/**
|
78 |
* add_qtags
|
js/form.js
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery( function( $ ) {
|
2 |
+
|
3 |
+
$( '.mw_wp_form input[data-conv-half-alphanumeric="true"]' ).change( function() {
|
4 |
+
var txt = $( this ).val();
|
5 |
+
var half = txt.replace( /[A-Za-z0-9]/g, function( s ) {
|
6 |
+
return String.fromCharCode( s.charCodeAt( 0 ) - 0xFEE0 )
|
7 |
+
} );
|
8 |
+
$( this ).val( half );
|
9 |
+
} );
|
10 |
+
|
11 |
+
} );
|
12 |
+
|
languages/mw-wp-form-ja.mo
CHANGED
Binary file
|
languages/mw-wp-form-ja.po
CHANGED
@@ -2,19 +2,20 @@
|
|
2 |
# This file is distributed under the same license as the MW WP Form package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: MW WP Form 1.
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
|
7 |
-
"POT-Creation-Date: 2013-11
|
8 |
-
"PO-Revision-Date: 2013-11
|
9 |
"Last-Translator: Takashi Kitajima <inc@2inc.org>\n"
|
10 |
"Language-Team: Takashi Kitajima <inc@2inc.org>\n"
|
|
|
11 |
"MIME-Version: 1.0\n"
|
12 |
"Content-Type: text/plain; charset=UTF-8\n"
|
13 |
"Content-Transfer-Encoding: 8bit\n"
|
14 |
"Plural-Forms: nplurals=1; plural=0;\n"
|
15 |
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
"X-Poedit-Basepath: .\n"
|
17 |
-
"X-Generator: Poedit 1.
|
18 |
"X-Poedit-KeywordsList: __;_e;_x\n"
|
19 |
"X-Poedit-SearchPath-0: ..\n"
|
20 |
|
@@ -35,6 +36,15 @@ msgstr "ボタン"
|
|
35 |
msgid "Checkbox"
|
36 |
msgstr "チェックボックス"
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
#: form_fields/mw_form_field_datepicker.php:106
|
39 |
msgid "Datepicker"
|
40 |
msgstr "日付"
|
@@ -63,15 +73,6 @@ msgstr "画像フィールド"
|
|
63 |
msgid "Password"
|
64 |
msgstr "パスワードフィールド"
|
65 |
|
66 |
-
#: form_fields/mw_form_field_preview_button.php:42
|
67 |
-
#: form_fields/mw_form_field_submit_button.php:44
|
68 |
-
msgid "Confirm"
|
69 |
-
msgstr "確認画面へ"
|
70 |
-
|
71 |
-
#: form_fields/mw_form_field_preview_button.php:70
|
72 |
-
msgid "Confirm Button"
|
73 |
-
msgstr "確認ボタン"
|
74 |
-
|
75 |
#: form_fields/mw_form_field_radio.php:84
|
76 |
msgid "Radio"
|
77 |
msgstr "ラジオボタン"
|
@@ -93,7 +94,7 @@ msgstr "送信ボタン"
|
|
93 |
msgid "Confirm & Submit"
|
94 |
msgstr "確認・送信"
|
95 |
|
96 |
-
#: form_fields/mw_form_field_tel.php:
|
97 |
msgid "Tel"
|
98 |
msgstr "電話番号"
|
99 |
|
@@ -105,11 +106,11 @@ msgstr "テキストフィールド"
|
|
105 |
msgid "Textarea"
|
106 |
msgstr "テキストエリア"
|
107 |
|
108 |
-
#: form_fields/mw_form_field_zip.php:
|
109 |
msgid "Zip Code"
|
110 |
msgstr "郵便番号"
|
111 |
|
112 |
-
#: mw-wp-form.php:
|
113 |
msgid "Validation Object is not a MW Validation Class."
|
114 |
msgstr ""
|
115 |
|
@@ -137,189 +138,194 @@ msgstr "半角英数字で入力してください。"
|
|
137 |
msgid "Please enter with a Japanese Katakana."
|
138 |
msgstr "カタカナで入力してください。"
|
139 |
|
140 |
-
#: system/mw_validation.php:
|
|
|
|
|
|
|
|
|
141 |
msgid "This is not the format of a zip code."
|
142 |
msgstr "郵便番号の形式ではありません。"
|
143 |
|
144 |
-
#: system/mw_validation.php:
|
145 |
msgid "This is not the format of a tel number."
|
146 |
msgstr "電話番号の形式ではありません。"
|
147 |
|
148 |
-
#: system/mw_validation.php:
|
149 |
msgid "This is not the format of a mail address."
|
150 |
msgstr "メールアドレスの形式ではありません。"
|
151 |
|
152 |
-
#: system/mw_validation.php:
|
153 |
msgid "This is not the format of a url."
|
154 |
msgstr "URLの形式ではありません。"
|
155 |
|
156 |
-
#: system/mw_validation.php:
|
157 |
msgid "This is not in agreement."
|
158 |
msgstr "一致しません。"
|
159 |
|
160 |
-
#: system/mw_validation.php:
|
161 |
msgid "The number of characters is invalid."
|
162 |
msgstr "文字数が正しくありません。"
|
163 |
|
164 |
-
#: system/mw_validation.php:
|
165 |
msgid "The number of characters is a few."
|
166 |
msgstr "文字数が足りません。"
|
167 |
|
168 |
-
#: system/mw_validation.php:
|
169 |
msgid "This value is invalid."
|
170 |
msgstr "値が不正です。"
|
171 |
|
172 |
-
#: system/mw_validation.php:
|
173 |
msgid "This is not the format of a date."
|
174 |
msgstr "日付の形式ではありません。"
|
175 |
|
176 |
-
#: system/mw_validation.php:
|
177 |
msgid "This file is invalid."
|
178 |
msgstr "許可されたファイルではありません。"
|
179 |
|
180 |
-
#: system/mw_validation.php:
|
181 |
msgid "This file size is too big."
|
182 |
msgstr "ファイルサイズが大きすぎます。"
|
183 |
|
184 |
-
#: system/mw_validation.php:
|
185 |
msgid "The contents which you input were judged with spam."
|
186 |
msgstr "あなたの入力した内容はスパムと判定されました。"
|
187 |
|
188 |
-
#: system/mw_wp_form_admin_page.php:
|
189 |
msgid "Your contribution is needed for making this plugin better."
|
190 |
msgstr "あなたの貢献があればこのプラグインをもっと良くすることができます。"
|
191 |
|
192 |
-
#: system/mw_wp_form_admin_page.php:
|
193 |
msgid "Donate"
|
194 |
msgstr "寄付する"
|
195 |
|
196 |
-
#: system/mw_wp_form_admin_page.php:
|
197 |
msgid "Add New Form"
|
198 |
msgstr "フォームを追加"
|
199 |
|
200 |
-
#: system/mw_wp_form_admin_page.php:
|
201 |
msgid "Edit Form"
|
202 |
msgstr "フォームを編集"
|
203 |
|
204 |
-
#: system/mw_wp_form_admin_page.php:
|
205 |
msgid "New Form"
|
206 |
msgstr "新しいフォーム"
|
207 |
|
208 |
-
#: system/mw_wp_form_admin_page.php:
|
209 |
msgid "View Form"
|
210 |
msgstr "フォームを表示"
|
211 |
|
212 |
-
#: system/mw_wp_form_admin_page.php:
|
213 |
msgid "Search Forms"
|
214 |
msgstr "フォームを検索"
|
215 |
|
216 |
-
#: system/mw_wp_form_admin_page.php:
|
217 |
msgid "No Forms found"
|
218 |
msgstr "フォームがありません"
|
219 |
|
220 |
-
#: system/mw_wp_form_admin_page.php:
|
221 |
msgid "No Forms found in Trash"
|
222 |
msgstr "ゴミ箱にフォームはありません"
|
223 |
|
224 |
-
#: system/mw_wp_form_admin_page.php:
|
225 |
msgid "Complete Message"
|
226 |
msgstr "完了画面メッセージ"
|
227 |
|
228 |
-
#: system/mw_wp_form_admin_page.php:
|
229 |
msgid "URL Options"
|
230 |
msgstr "URL設定"
|
231 |
|
232 |
-
#: system/mw_wp_form_admin_page.php:
|
233 |
msgid "Validation Rule"
|
234 |
msgstr "バリデーションルール"
|
235 |
|
236 |
-
#: system/mw_wp_form_admin_page.php:
|
237 |
msgid "Form Key"
|
238 |
msgstr "フォーム識別子"
|
239 |
|
240 |
-
#: system/mw_wp_form_admin_page.php:
|
241 |
msgid "Automatic Reply Email Options"
|
242 |
msgstr "自動返信メール設定"
|
243 |
|
244 |
-
#: system/mw_wp_form_admin_page.php:
|
245 |
msgid "Admin Email Options"
|
246 |
msgstr "管理者宛メール設定"
|
247 |
|
248 |
-
#: system/mw_wp_form_admin_page.php:
|
249 |
msgid "settings"
|
250 |
msgstr "設定"
|
251 |
|
252 |
-
#: system/mw_wp_form_admin_page.php:
|
253 |
msgid "Copy and Paste this shortcode."
|
254 |
msgstr "このショートコードをコピー&ペーストしてください。"
|
255 |
|
256 |
-
#: system/mw_wp_form_admin_page.php:
|
257 |
msgid "The key to use with hook is "
|
258 |
msgstr "各フックで使用する修飾子は"
|
259 |
|
260 |
-
#: system/mw_wp_form_admin_page.php:
|
261 |
msgid "Activate Query string of post"
|
262 |
msgstr "URL引数を有効にする"
|
263 |
|
264 |
-
#: system/mw_wp_form_admin_page.php:
|
265 |
msgid ""
|
266 |
-
"If this field is active, MW WP Form get
|
267 |
-
"
|
268 |
msgstr ""
|
269 |
-
"有効にした場合、MW WP FormはURL引数 ”post_id
|
270 |
-
"
|
|
|
271 |
|
272 |
-
#: system/mw_wp_form_admin_page.php:
|
273 |
msgid "Example: {ID}, {post_title}, {post_meta} etc..."
|
274 |
msgstr "例:{ID}、{post_title}、{post_meta}など…"
|
275 |
|
276 |
-
#: system/mw_wp_form_admin_page.php:
|
277 |
msgid "Saving contact data in database"
|
278 |
msgstr "問い合わせデータをデータベースに保存"
|
279 |
|
280 |
-
#: system/mw_wp_form_admin_page.php:
|
281 |
msgid "Akismet Setting"
|
282 |
msgstr "Akismet 設定"
|
283 |
|
284 |
-
#: system/mw_wp_form_admin_page.php:
|
285 |
msgid "Input the key to use Akismet."
|
286 |
msgstr "Akismetを使用する項目のキーを入力してください。"
|
287 |
|
288 |
-
#: system/mw_wp_form_admin_page.php:
|
289 |
msgid "Subject"
|
290 |
msgstr "件名"
|
291 |
|
292 |
-
#: system/mw_wp_form_admin_page.php:
|
293 |
msgid "Sender"
|
294 |
msgstr "送信者"
|
295 |
|
296 |
-
#: system/mw_wp_form_admin_page.php:
|
297 |
-
#: system/mw_wp_form_admin_page.php:
|
298 |
-
#: system/mw_wp_form_admin_page.php:
|
299 |
msgid "If empty:"
|
300 |
msgstr "未入力の場合:"
|
301 |
|
302 |
-
#: system/mw_wp_form_admin_page.php:
|
303 |
msgid "From ( E-mail address )"
|
304 |
msgstr "送信元(E-mailアドレス)"
|
305 |
|
306 |
-
#: system/mw_wp_form_admin_page.php:
|
307 |
msgid "Ccontent"
|
308 |
msgstr "本文"
|
309 |
|
310 |
-
#: system/mw_wp_form_admin_page.php:
|
311 |
msgid "{key} is converted form data."
|
312 |
msgstr "{キー}でそのフォーム項目に変換されます。"
|
313 |
|
314 |
-
#: system/mw_wp_form_admin_page.php:
|
315 |
msgid "Automatic reply email"
|
316 |
msgstr "自動返信メール"
|
317 |
|
318 |
-
#: system/mw_wp_form_admin_page.php:
|
319 |
msgid "Input the key to use as transmission to automatic reply email."
|
320 |
msgstr "自動返信メールに使用する項目のキーを入力してください。"
|
321 |
|
322 |
-
#: system/mw_wp_form_admin_page.php:
|
323 |
msgid ""
|
324 |
"If Admin Email Options is a blank, Automatic Replay Email Options is used as "
|
325 |
"Admin Email Options."
|
@@ -327,91 +333,95 @@ msgstr ""
|
|
327 |
"管理者宛メール設定が空のときは自動返信メール設定が管理者宛メール設定が使用さ"
|
328 |
"れます。"
|
329 |
|
330 |
-
#: system/mw_wp_form_admin_page.php:
|
331 |
msgid "To ( E-mail address )"
|
332 |
msgstr "送信先(E-mailアドレス)"
|
333 |
|
334 |
-
#: system/mw_wp_form_admin_page.php:
|
335 |
msgid "Input Page URL"
|
336 |
msgstr "入力画面URL"
|
337 |
|
338 |
-
#: system/mw_wp_form_admin_page.php:
|
339 |
msgid "Confirmation Page URL"
|
340 |
msgstr "確認画面URL"
|
341 |
|
342 |
-
#: system/mw_wp_form_admin_page.php:
|
343 |
msgid "Complete Page URL"
|
344 |
msgstr "完了画面URL"
|
345 |
|
346 |
-
#: system/mw_wp_form_admin_page.php:
|
347 |
msgid "Validation Error Page URL"
|
348 |
msgstr "エラー画面URL"
|
349 |
|
350 |
-
#: system/mw_wp_form_admin_page.php:
|
351 |
msgid "Add Validation rule"
|
352 |
msgstr "バリデーションルールを追加"
|
353 |
|
354 |
-
#: system/mw_wp_form_admin_page.php:
|
355 |
msgid "The key which applies validation"
|
356 |
msgstr "バリデーションを適用する項目"
|
357 |
|
358 |
-
#: system/mw_wp_form_admin_page.php:
|
359 |
msgid "No empty"
|
360 |
msgstr "必須項目"
|
361 |
|
362 |
-
#: system/mw_wp_form_admin_page.php:
|
363 |
msgid "No empty( with checkbox )"
|
364 |
msgstr "必須項目(チェックボックス)"
|
365 |
|
366 |
-
#: system/mw_wp_form_admin_page.php:
|
367 |
msgid "Numeric"
|
368 |
msgstr "半角数字"
|
369 |
|
370 |
-
#: system/mw_wp_form_admin_page.php:
|
371 |
msgid "Alphabet"
|
372 |
msgstr "半角英字"
|
373 |
|
374 |
-
#: system/mw_wp_form_admin_page.php:
|
375 |
msgid "Alphabet and Numeric"
|
376 |
msgstr "半角英数字"
|
377 |
|
378 |
-
#: system/mw_wp_form_admin_page.php:
|
379 |
msgid "Japanese Katakana"
|
380 |
msgstr "カタカナ"
|
381 |
|
382 |
-
#: system/mw_wp_form_admin_page.php:
|
|
|
|
|
|
|
|
|
383 |
msgid "E-mail"
|
384 |
msgstr "メールアドレス"
|
385 |
|
386 |
-
#: system/mw_wp_form_admin_page.php:
|
387 |
msgid "Date"
|
388 |
msgstr "日付"
|
389 |
|
390 |
-
#: system/mw_wp_form_admin_page.php:
|
391 |
msgid "The key at same value"
|
392 |
msgstr "一致する項目"
|
393 |
|
394 |
-
#: system/mw_wp_form_admin_page.php:
|
395 |
msgid "The range of the number of characters"
|
396 |
msgstr "文字数の範囲"
|
397 |
|
398 |
-
#: system/mw_wp_form_admin_page.php:
|
399 |
msgid "The number of the minimum characters"
|
400 |
msgstr "最小文字数"
|
401 |
|
402 |
-
#: system/mw_wp_form_admin_page.php:
|
403 |
msgid "Permitted Extension"
|
404 |
msgstr "拡張子制限"
|
405 |
|
406 |
-
#: system/mw_wp_form_admin_page.php:
|
407 |
msgid "Example:jpg or jpg,txt,…"
|
408 |
msgstr "例:jpg もしくは jpg,txt…"
|
409 |
|
410 |
-
#: system/mw_wp_form_admin_page.php:
|
411 |
msgid "Permitted file size"
|
412 |
msgstr "サイズ制限"
|
413 |
|
414 |
-
#: system/mw_wp_form_admin_page.php:
|
415 |
msgid "bytes"
|
416 |
msgstr ""
|
417 |
|
@@ -460,7 +470,7 @@ msgid "MW WP Form"
|
|
460 |
msgstr ""
|
461 |
|
462 |
#. Plugin URI of the plugin/theme
|
463 |
-
msgid "http://2inc.org/
|
464 |
msgstr ""
|
465 |
|
466 |
#. Description of the plugin/theme
|
2 |
# This file is distributed under the same license as the MW WP Form package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: MW WP Form 1.2.0\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
|
7 |
+
"POT-Creation-Date: 2013-12-11 03:57:57+00:00\n"
|
8 |
+
"PO-Revision-Date: 2013-12-11 13:03+0900\n"
|
9 |
"Last-Translator: Takashi Kitajima <inc@2inc.org>\n"
|
10 |
"Language-Team: Takashi Kitajima <inc@2inc.org>\n"
|
11 |
+
"Language: ja\n"
|
12 |
"MIME-Version: 1.0\n"
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\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.2\n"
|
19 |
"X-Poedit-KeywordsList: __;_e;_x\n"
|
20 |
"X-Poedit-SearchPath-0: ..\n"
|
21 |
|
36 |
msgid "Checkbox"
|
37 |
msgstr "チェックボックス"
|
38 |
|
39 |
+
#: form_fields/mw_form_field_confirm_button.php:42
|
40 |
+
#: form_fields/mw_form_field_submit_button.php:44
|
41 |
+
msgid "Confirm"
|
42 |
+
msgstr "確認画面へ"
|
43 |
+
|
44 |
+
#: form_fields/mw_form_field_confirm_button.php:70
|
45 |
+
msgid "Confirm Button"
|
46 |
+
msgstr "確認ボタン"
|
47 |
+
|
48 |
#: form_fields/mw_form_field_datepicker.php:106
|
49 |
msgid "Datepicker"
|
50 |
msgstr "日付"
|
73 |
msgid "Password"
|
74 |
msgstr "パスワードフィールド"
|
75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
#: form_fields/mw_form_field_radio.php:84
|
77 |
msgid "Radio"
|
78 |
msgstr "ラジオボタン"
|
94 |
msgid "Confirm & Submit"
|
95 |
msgstr "確認・送信"
|
96 |
|
97 |
+
#: form_fields/mw_form_field_tel.php:84 system/mw_wp_form_admin_page.php:495
|
98 |
msgid "Tel"
|
99 |
msgstr "電話番号"
|
100 |
|
106 |
msgid "Textarea"
|
107 |
msgstr "テキストエリア"
|
108 |
|
109 |
+
#: form_fields/mw_form_field_zip.php:84 system/mw_wp_form_admin_page.php:494
|
110 |
msgid "Zip Code"
|
111 |
msgstr "郵便番号"
|
112 |
|
113 |
+
#: mw-wp-form.php:413
|
114 |
msgid "Validation Object is not a MW Validation Class."
|
115 |
msgstr ""
|
116 |
|
138 |
msgid "Please enter with a Japanese Katakana."
|
139 |
msgstr "カタカナで入力してください。"
|
140 |
|
141 |
+
#: system/mw_validation.php:226
|
142 |
+
msgid "Please enter with a Japanese Hiragana."
|
143 |
+
msgstr "ひらがなで入力してください。"
|
144 |
+
|
145 |
+
#: system/mw_validation.php:246
|
146 |
msgid "This is not the format of a zip code."
|
147 |
msgstr "郵便番号の形式ではありません。"
|
148 |
|
149 |
+
#: system/mw_validation.php:271
|
150 |
msgid "This is not the format of a tel number."
|
151 |
msgstr "電話番号の形式ではありません。"
|
152 |
|
153 |
+
#: system/mw_validation.php:303
|
154 |
msgid "This is not the format of a mail address."
|
155 |
msgstr "メールアドレスの形式ではありません。"
|
156 |
|
157 |
+
#: system/mw_validation.php:325
|
158 |
msgid "This is not the format of a url."
|
159 |
msgstr "URLの形式ではありません。"
|
160 |
|
161 |
+
#: system/mw_validation.php:346
|
162 |
msgid "This is not in agreement."
|
163 |
msgstr "一致しません。"
|
164 |
|
165 |
+
#: system/mw_validation.php:372
|
166 |
msgid "The number of characters is invalid."
|
167 |
msgstr "文字数が正しくありません。"
|
168 |
|
169 |
+
#: system/mw_validation.php:410
|
170 |
msgid "The number of characters is a few."
|
171 |
msgstr "文字数が足りません。"
|
172 |
|
173 |
+
#: system/mw_validation.php:436
|
174 |
msgid "This value is invalid."
|
175 |
msgstr "値が不正です。"
|
176 |
|
177 |
+
#: system/mw_validation.php:460
|
178 |
msgid "This is not the format of a date."
|
179 |
msgstr "日付の形式ではありません。"
|
180 |
|
181 |
+
#: system/mw_validation.php:490
|
182 |
msgid "This file is invalid."
|
183 |
msgstr "許可されたファイルではありません。"
|
184 |
|
185 |
+
#: system/mw_validation.php:520
|
186 |
msgid "This file size is too big."
|
187 |
msgstr "ファイルサイズが大きすぎます。"
|
188 |
|
189 |
+
#: system/mw_validation.php:540
|
190 |
msgid "The contents which you input were judged with spam."
|
191 |
msgstr "あなたの入力した内容はスパムと判定されました。"
|
192 |
|
193 |
+
#: system/mw_wp_form_admin_page.php:54
|
194 |
msgid "Your contribution is needed for making this plugin better."
|
195 |
msgstr "あなたの貢献があればこのプラグインをもっと良くすることができます。"
|
196 |
|
197 |
+
#: system/mw_wp_form_admin_page.php:54
|
198 |
msgid "Donate"
|
199 |
msgstr "寄付する"
|
200 |
|
201 |
+
#: system/mw_wp_form_admin_page.php:96
|
202 |
msgid "Add New Form"
|
203 |
msgstr "フォームを追加"
|
204 |
|
205 |
+
#: system/mw_wp_form_admin_page.php:97
|
206 |
msgid "Edit Form"
|
207 |
msgstr "フォームを編集"
|
208 |
|
209 |
+
#: system/mw_wp_form_admin_page.php:98
|
210 |
msgid "New Form"
|
211 |
msgstr "新しいフォーム"
|
212 |
|
213 |
+
#: system/mw_wp_form_admin_page.php:99
|
214 |
msgid "View Form"
|
215 |
msgstr "フォームを表示"
|
216 |
|
217 |
+
#: system/mw_wp_form_admin_page.php:100
|
218 |
msgid "Search Forms"
|
219 |
msgstr "フォームを検索"
|
220 |
|
221 |
+
#: system/mw_wp_form_admin_page.php:101
|
222 |
msgid "No Forms found"
|
223 |
msgstr "フォームがありません"
|
224 |
|
225 |
+
#: system/mw_wp_form_admin_page.php:102
|
226 |
msgid "No Forms found in Trash"
|
227 |
msgstr "ゴミ箱にフォームはありません"
|
228 |
|
229 |
+
#: system/mw_wp_form_admin_page.php:122
|
230 |
msgid "Complete Message"
|
231 |
msgstr "完了画面メッセージ"
|
232 |
|
233 |
+
#: system/mw_wp_form_admin_page.php:129
|
234 |
msgid "URL Options"
|
235 |
msgstr "URL設定"
|
236 |
|
237 |
+
#: system/mw_wp_form_admin_page.php:136
|
238 |
msgid "Validation Rule"
|
239 |
msgstr "バリデーションルール"
|
240 |
|
241 |
+
#: system/mw_wp_form_admin_page.php:143
|
242 |
msgid "Form Key"
|
243 |
msgstr "フォーム識別子"
|
244 |
|
245 |
+
#: system/mw_wp_form_admin_page.php:150
|
246 |
msgid "Automatic Reply Email Options"
|
247 |
msgstr "自動返信メール設定"
|
248 |
|
249 |
+
#: system/mw_wp_form_admin_page.php:157
|
250 |
msgid "Admin Email Options"
|
251 |
msgstr "管理者宛メール設定"
|
252 |
|
253 |
+
#: system/mw_wp_form_admin_page.php:164
|
254 |
msgid "settings"
|
255 |
msgstr "設定"
|
256 |
|
257 |
+
#: system/mw_wp_form_admin_page.php:283
|
258 |
msgid "Copy and Paste this shortcode."
|
259 |
msgstr "このショートコードをコピー&ペーストしてください。"
|
260 |
|
261 |
+
#: system/mw_wp_form_admin_page.php:284
|
262 |
msgid "The key to use with hook is "
|
263 |
msgstr "各フックで使用する修飾子は"
|
264 |
|
265 |
+
#: system/mw_wp_form_admin_page.php:298
|
266 |
msgid "Activate Query string of post"
|
267 |
msgstr "URL引数を有効にする"
|
268 |
|
269 |
+
#: system/mw_wp_form_admin_page.php:299
|
270 |
msgid ""
|
271 |
+
"If this field is active, MW WP Form get query string. And get post data from "
|
272 |
+
"query string \"post_id\". You can use $post's property in editor."
|
273 |
msgstr ""
|
274 |
+
"有効にした場合、MW WP FormはURL引数を取得します。また、URL引数 ”post_id” をも"
|
275 |
+
"とに投稿を取得します。その投稿($post) のプロパティを使用できるようになりま"
|
276 |
+
"す。"
|
277 |
|
278 |
+
#: system/mw_wp_form_admin_page.php:300
|
279 |
msgid "Example: {ID}, {post_title}, {post_meta} etc..."
|
280 |
msgstr "例:{ID}、{post_title}、{post_meta}など…"
|
281 |
|
282 |
+
#: system/mw_wp_form_admin_page.php:303
|
283 |
msgid "Saving contact data in database"
|
284 |
msgstr "問い合わせデータをデータベースに保存"
|
285 |
|
286 |
+
#: system/mw_wp_form_admin_page.php:307
|
287 |
msgid "Akismet Setting"
|
288 |
msgstr "Akismet 設定"
|
289 |
|
290 |
+
#: system/mw_wp_form_admin_page.php:322
|
291 |
msgid "Input the key to use Akismet."
|
292 |
msgstr "Akismetを使用する項目のキーを入力してください。"
|
293 |
|
294 |
+
#: system/mw_wp_form_admin_page.php:347 system/mw_wp_form_admin_page.php:389
|
295 |
msgid "Subject"
|
296 |
msgstr "件名"
|
297 |
|
298 |
+
#: system/mw_wp_form_admin_page.php:351 system/mw_wp_form_admin_page.php:393
|
299 |
msgid "Sender"
|
300 |
msgstr "送信者"
|
301 |
|
302 |
+
#: system/mw_wp_form_admin_page.php:353 system/mw_wp_form_admin_page.php:358
|
303 |
+
#: system/mw_wp_form_admin_page.php:386 system/mw_wp_form_admin_page.php:395
|
304 |
+
#: system/mw_wp_form_admin_page.php:400
|
305 |
msgid "If empty:"
|
306 |
msgstr "未入力の場合:"
|
307 |
|
308 |
+
#: system/mw_wp_form_admin_page.php:356 system/mw_wp_form_admin_page.php:398
|
309 |
msgid "From ( E-mail address )"
|
310 |
msgstr "送信元(E-mailアドレス)"
|
311 |
|
312 |
+
#: system/mw_wp_form_admin_page.php:361 system/mw_wp_form_admin_page.php:403
|
313 |
msgid "Ccontent"
|
314 |
msgstr "本文"
|
315 |
|
316 |
+
#: system/mw_wp_form_admin_page.php:363 system/mw_wp_form_admin_page.php:405
|
317 |
msgid "{key} is converted form data."
|
318 |
msgstr "{キー}でそのフォーム項目に変換されます。"
|
319 |
|
320 |
+
#: system/mw_wp_form_admin_page.php:366
|
321 |
msgid "Automatic reply email"
|
322 |
msgstr "自動返信メール"
|
323 |
|
324 |
+
#: system/mw_wp_form_admin_page.php:368
|
325 |
msgid "Input the key to use as transmission to automatic reply email."
|
326 |
msgstr "自動返信メールに使用する項目のキーを入力してください。"
|
327 |
|
328 |
+
#: system/mw_wp_form_admin_page.php:381
|
329 |
msgid ""
|
330 |
"If Admin Email Options is a blank, Automatic Replay Email Options is used as "
|
331 |
"Admin Email Options."
|
333 |
"管理者宛メール設定が空のときは自動返信メール設定が管理者宛メール設定が使用さ"
|
334 |
"れます。"
|
335 |
|
336 |
+
#: system/mw_wp_form_admin_page.php:384
|
337 |
msgid "To ( E-mail address )"
|
338 |
msgstr "送信先(E-mailアドレス)"
|
339 |
|
340 |
+
#: system/mw_wp_form_admin_page.php:420
|
341 |
msgid "Input Page URL"
|
342 |
msgstr "入力画面URL"
|
343 |
|
344 |
+
#: system/mw_wp_form_admin_page.php:426
|
345 |
msgid "Confirmation Page URL"
|
346 |
msgstr "確認画面URL"
|
347 |
|
348 |
+
#: system/mw_wp_form_admin_page.php:432
|
349 |
msgid "Complete Page URL"
|
350 |
msgstr "完了画面URL"
|
351 |
|
352 |
+
#: system/mw_wp_form_admin_page.php:438
|
353 |
msgid "Validation Error Page URL"
|
354 |
msgstr "エラー画面URL"
|
355 |
|
356 |
+
#: system/mw_wp_form_admin_page.php:477
|
357 |
msgid "Add Validation rule"
|
358 |
msgstr "バリデーションルールを追加"
|
359 |
|
360 |
+
#: system/mw_wp_form_admin_page.php:483
|
361 |
msgid "The key which applies validation"
|
362 |
msgstr "バリデーションを適用する項目"
|
363 |
|
364 |
+
#: system/mw_wp_form_admin_page.php:487
|
365 |
msgid "No empty"
|
366 |
msgstr "必須項目"
|
367 |
|
368 |
+
#: system/mw_wp_form_admin_page.php:488
|
369 |
msgid "No empty( with checkbox )"
|
370 |
msgstr "必須項目(チェックボックス)"
|
371 |
|
372 |
+
#: system/mw_wp_form_admin_page.php:489
|
373 |
msgid "Numeric"
|
374 |
msgstr "半角数字"
|
375 |
|
376 |
+
#: system/mw_wp_form_admin_page.php:490
|
377 |
msgid "Alphabet"
|
378 |
msgstr "半角英字"
|
379 |
|
380 |
+
#: system/mw_wp_form_admin_page.php:491
|
381 |
msgid "Alphabet and Numeric"
|
382 |
msgstr "半角英数字"
|
383 |
|
384 |
+
#: system/mw_wp_form_admin_page.php:492
|
385 |
msgid "Japanese Katakana"
|
386 |
msgstr "カタカナ"
|
387 |
|
388 |
+
#: system/mw_wp_form_admin_page.php:493
|
389 |
+
msgid "Japanese Hiragana"
|
390 |
+
msgstr "ひらがな"
|
391 |
+
|
392 |
+
#: system/mw_wp_form_admin_page.php:496
|
393 |
msgid "E-mail"
|
394 |
msgstr "メールアドレス"
|
395 |
|
396 |
+
#: system/mw_wp_form_admin_page.php:497
|
397 |
msgid "Date"
|
398 |
msgstr "日付"
|
399 |
|
400 |
+
#: system/mw_wp_form_admin_page.php:501
|
401 |
msgid "The key at same value"
|
402 |
msgstr "一致する項目"
|
403 |
|
404 |
+
#: system/mw_wp_form_admin_page.php:505
|
405 |
msgid "The range of the number of characters"
|
406 |
msgstr "文字数の範囲"
|
407 |
|
408 |
+
#: system/mw_wp_form_admin_page.php:513
|
409 |
msgid "The number of the minimum characters"
|
410 |
msgstr "最小文字数"
|
411 |
|
412 |
+
#: system/mw_wp_form_admin_page.php:517
|
413 |
msgid "Permitted Extension"
|
414 |
msgstr "拡張子制限"
|
415 |
|
416 |
+
#: system/mw_wp_form_admin_page.php:518
|
417 |
msgid "Example:jpg or jpg,txt,…"
|
418 |
msgstr "例:jpg もしくは jpg,txt…"
|
419 |
|
420 |
+
#: system/mw_wp_form_admin_page.php:521
|
421 |
msgid "Permitted file size"
|
422 |
msgstr "サイズ制限"
|
423 |
|
424 |
+
#: system/mw_wp_form_admin_page.php:522
|
425 |
msgid "bytes"
|
426 |
msgstr ""
|
427 |
|
470 |
msgstr ""
|
471 |
|
472 |
#. Plugin URI of the plugin/theme
|
473 |
+
msgid "http://2inc.org/manual-mw-wp-form/"
|
474 |
msgstr ""
|
475 |
|
476 |
#. Description of the plugin/theme
|
languages/mw-wp-form.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the MW WP Form package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: MW WP Form 1.
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
|
7 |
-
"POT-Creation-Date: 2013-11
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -14,7 +14,7 @@ msgstr ""
|
|
14 |
"Plural-Forms: nplurals=1; plural=0;\n"
|
15 |
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
"X-Poedit-Basepath: .\n"
|
17 |
-
"X-Generator: Poedit 1.5.
|
18 |
"X-Poedit-KeywordsList: __;_e\n"
|
19 |
"X-Poedit-SearchPath-0: ..\n"
|
20 |
|
@@ -35,6 +35,15 @@ msgstr ""
|
|
35 |
msgid "Checkbox"
|
36 |
msgstr ""
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
#: form_fields/mw_form_field_datepicker.php:106
|
39 |
msgid "Datepicker"
|
40 |
msgstr ""
|
@@ -63,15 +72,6 @@ msgstr ""
|
|
63 |
msgid "Password"
|
64 |
msgstr ""
|
65 |
|
66 |
-
#: form_fields/mw_form_field_preview_button.php:42
|
67 |
-
#: form_fields/mw_form_field_submit_button.php:44
|
68 |
-
msgid "Confirm"
|
69 |
-
msgstr ""
|
70 |
-
|
71 |
-
#: form_fields/mw_form_field_preview_button.php:70
|
72 |
-
msgid "Confirm Button"
|
73 |
-
msgstr ""
|
74 |
-
|
75 |
#: form_fields/mw_form_field_radio.php:84
|
76 |
msgid "Radio"
|
77 |
msgstr ""
|
@@ -93,7 +93,7 @@ msgstr ""
|
|
93 |
msgid "Confirm & Submit"
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: form_fields/mw_form_field_tel.php:
|
97 |
msgid "Tel"
|
98 |
msgstr ""
|
99 |
|
@@ -105,11 +105,11 @@ msgstr ""
|
|
105 |
msgid "Textarea"
|
106 |
msgstr ""
|
107 |
|
108 |
-
#: form_fields/mw_form_field_zip.php:
|
109 |
msgid "Zip Code"
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: mw-wp-form.php:
|
113 |
msgid "Validation Object is not a MW Validation Class."
|
114 |
msgstr ""
|
115 |
|
@@ -137,277 +137,285 @@ msgstr ""
|
|
137 |
msgid "Please enter with a Japanese Katakana."
|
138 |
msgstr ""
|
139 |
|
140 |
-
#: system/mw_validation.php:
|
|
|
|
|
|
|
|
|
141 |
msgid "This is not the format of a zip code."
|
142 |
msgstr ""
|
143 |
|
144 |
-
#: system/mw_validation.php:
|
145 |
msgid "This is not the format of a tel number."
|
146 |
msgstr ""
|
147 |
|
148 |
-
#: system/mw_validation.php:
|
149 |
msgid "This is not the format of a mail address."
|
150 |
msgstr ""
|
151 |
|
152 |
-
#: system/mw_validation.php:
|
153 |
msgid "This is not the format of a url."
|
154 |
msgstr ""
|
155 |
|
156 |
-
#: system/mw_validation.php:
|
157 |
msgid "This is not in agreement."
|
158 |
msgstr ""
|
159 |
|
160 |
-
#: system/mw_validation.php:
|
161 |
msgid "The number of characters is invalid."
|
162 |
msgstr ""
|
163 |
|
164 |
-
#: system/mw_validation.php:
|
165 |
msgid "The number of characters is a few."
|
166 |
msgstr ""
|
167 |
|
168 |
-
#: system/mw_validation.php:
|
169 |
msgid "This value is invalid."
|
170 |
msgstr ""
|
171 |
|
172 |
-
#: system/mw_validation.php:
|
173 |
msgid "This is not the format of a date."
|
174 |
msgstr ""
|
175 |
|
176 |
-
#: system/mw_validation.php:
|
177 |
msgid "This file is invalid."
|
178 |
msgstr ""
|
179 |
|
180 |
-
#: system/mw_validation.php:
|
181 |
msgid "This file size is too big."
|
182 |
msgstr ""
|
183 |
|
184 |
-
#: system/mw_validation.php:
|
185 |
msgid "The contents which you input were judged with spam."
|
186 |
msgstr ""
|
187 |
|
188 |
-
#: system/mw_wp_form_admin_page.php:
|
189 |
msgid "Your contribution is needed for making this plugin better."
|
190 |
msgstr ""
|
191 |
|
192 |
-
#: system/mw_wp_form_admin_page.php:
|
193 |
msgid "Donate"
|
194 |
msgstr ""
|
195 |
|
196 |
-
#: system/mw_wp_form_admin_page.php:
|
197 |
msgid "Add New Form"
|
198 |
msgstr ""
|
199 |
|
200 |
-
#: system/mw_wp_form_admin_page.php:
|
201 |
msgid "Edit Form"
|
202 |
msgstr ""
|
203 |
|
204 |
-
#: system/mw_wp_form_admin_page.php:
|
205 |
msgid "New Form"
|
206 |
msgstr ""
|
207 |
|
208 |
-
#: system/mw_wp_form_admin_page.php:
|
209 |
msgid "View Form"
|
210 |
msgstr ""
|
211 |
|
212 |
-
#: system/mw_wp_form_admin_page.php:
|
213 |
msgid "Search Forms"
|
214 |
msgstr ""
|
215 |
|
216 |
-
#: system/mw_wp_form_admin_page.php:
|
217 |
msgid "No Forms found"
|
218 |
msgstr ""
|
219 |
|
220 |
-
#: system/mw_wp_form_admin_page.php:
|
221 |
msgid "No Forms found in Trash"
|
222 |
msgstr ""
|
223 |
|
224 |
-
#: system/mw_wp_form_admin_page.php:
|
225 |
msgid "Complete Message"
|
226 |
msgstr ""
|
227 |
|
228 |
-
#: system/mw_wp_form_admin_page.php:
|
229 |
msgid "URL Options"
|
230 |
msgstr ""
|
231 |
|
232 |
-
#: system/mw_wp_form_admin_page.php:
|
233 |
msgid "Validation Rule"
|
234 |
msgstr ""
|
235 |
|
236 |
-
#: system/mw_wp_form_admin_page.php:
|
237 |
msgid "Form Key"
|
238 |
msgstr ""
|
239 |
|
240 |
-
#: system/mw_wp_form_admin_page.php:
|
241 |
msgid "Automatic Reply Email Options"
|
242 |
msgstr ""
|
243 |
|
244 |
-
#: system/mw_wp_form_admin_page.php:
|
245 |
msgid "Admin Email Options"
|
246 |
msgstr ""
|
247 |
|
248 |
-
#: system/mw_wp_form_admin_page.php:
|
249 |
msgid "settings"
|
250 |
msgstr ""
|
251 |
|
252 |
-
#: system/mw_wp_form_admin_page.php:
|
253 |
msgid "Copy and Paste this shortcode."
|
254 |
msgstr ""
|
255 |
|
256 |
-
#: system/mw_wp_form_admin_page.php:
|
257 |
msgid "The key to use with hook is "
|
258 |
msgstr ""
|
259 |
|
260 |
-
#: system/mw_wp_form_admin_page.php:
|
261 |
msgid "Activate Query string of post"
|
262 |
msgstr ""
|
263 |
|
264 |
-
#: system/mw_wp_form_admin_page.php:
|
265 |
msgid ""
|
266 |
-
"If this field is active, MW WP Form get
|
267 |
-
"
|
268 |
msgstr ""
|
269 |
|
270 |
-
#: system/mw_wp_form_admin_page.php:
|
271 |
msgid "Example: {ID}, {post_title}, {post_meta} etc..."
|
272 |
msgstr ""
|
273 |
|
274 |
-
#: system/mw_wp_form_admin_page.php:
|
275 |
msgid "Saving contact data in database"
|
276 |
msgstr ""
|
277 |
|
278 |
-
#: system/mw_wp_form_admin_page.php:
|
279 |
msgid "Akismet Setting"
|
280 |
msgstr ""
|
281 |
|
282 |
-
#: system/mw_wp_form_admin_page.php:
|
283 |
msgid "Input the key to use Akismet."
|
284 |
msgstr ""
|
285 |
|
286 |
-
#: system/mw_wp_form_admin_page.php:
|
287 |
msgid "Subject"
|
288 |
msgstr ""
|
289 |
|
290 |
-
#: system/mw_wp_form_admin_page.php:
|
291 |
msgid "Sender"
|
292 |
msgstr ""
|
293 |
|
294 |
-
#: system/mw_wp_form_admin_page.php:
|
295 |
-
#: system/mw_wp_form_admin_page.php:
|
296 |
-
#: system/mw_wp_form_admin_page.php:
|
297 |
msgid "If empty:"
|
298 |
msgstr ""
|
299 |
|
300 |
-
#: system/mw_wp_form_admin_page.php:
|
301 |
msgid "From ( E-mail address )"
|
302 |
msgstr ""
|
303 |
|
304 |
-
#: system/mw_wp_form_admin_page.php:
|
305 |
msgid "Ccontent"
|
306 |
msgstr ""
|
307 |
|
308 |
-
#: system/mw_wp_form_admin_page.php:
|
309 |
msgid "{key} is converted form data."
|
310 |
msgstr ""
|
311 |
|
312 |
-
#: system/mw_wp_form_admin_page.php:
|
313 |
msgid "Automatic reply email"
|
314 |
msgstr ""
|
315 |
|
316 |
-
#: system/mw_wp_form_admin_page.php:
|
317 |
msgid "Input the key to use as transmission to automatic reply email."
|
318 |
msgstr ""
|
319 |
|
320 |
-
#: system/mw_wp_form_admin_page.php:
|
321 |
msgid ""
|
322 |
"If Admin Email Options is a blank, Automatic Replay Email Options is used as "
|
323 |
"Admin Email Options."
|
324 |
msgstr ""
|
325 |
|
326 |
-
#: system/mw_wp_form_admin_page.php:
|
327 |
msgid "To ( E-mail address )"
|
328 |
msgstr ""
|
329 |
|
330 |
-
#: system/mw_wp_form_admin_page.php:
|
331 |
msgid "Input Page URL"
|
332 |
msgstr ""
|
333 |
|
334 |
-
#: system/mw_wp_form_admin_page.php:
|
335 |
msgid "Confirmation Page URL"
|
336 |
msgstr ""
|
337 |
|
338 |
-
#: system/mw_wp_form_admin_page.php:
|
339 |
msgid "Complete Page URL"
|
340 |
msgstr ""
|
341 |
|
342 |
-
#: system/mw_wp_form_admin_page.php:
|
343 |
msgid "Validation Error Page URL"
|
344 |
msgstr ""
|
345 |
|
346 |
-
#: system/mw_wp_form_admin_page.php:
|
347 |
msgid "Add Validation rule"
|
348 |
msgstr ""
|
349 |
|
350 |
-
#: system/mw_wp_form_admin_page.php:
|
351 |
msgid "The key which applies validation"
|
352 |
msgstr ""
|
353 |
|
354 |
-
#: system/mw_wp_form_admin_page.php:
|
355 |
msgid "No empty"
|
356 |
msgstr ""
|
357 |
|
358 |
-
#: system/mw_wp_form_admin_page.php:
|
359 |
msgid "No empty( with checkbox )"
|
360 |
msgstr ""
|
361 |
|
362 |
-
#: system/mw_wp_form_admin_page.php:
|
363 |
msgid "Numeric"
|
364 |
msgstr ""
|
365 |
|
366 |
-
#: system/mw_wp_form_admin_page.php:
|
367 |
msgid "Alphabet"
|
368 |
msgstr ""
|
369 |
|
370 |
-
#: system/mw_wp_form_admin_page.php:
|
371 |
msgid "Alphabet and Numeric"
|
372 |
msgstr ""
|
373 |
|
374 |
-
#: system/mw_wp_form_admin_page.php:
|
375 |
msgid "Japanese Katakana"
|
376 |
msgstr ""
|
377 |
|
378 |
-
#: system/mw_wp_form_admin_page.php:
|
|
|
|
|
|
|
|
|
379 |
msgid "E-mail"
|
380 |
msgstr ""
|
381 |
|
382 |
-
#: system/mw_wp_form_admin_page.php:
|
383 |
msgid "Date"
|
384 |
msgstr ""
|
385 |
|
386 |
-
#: system/mw_wp_form_admin_page.php:
|
387 |
msgid "The key at same value"
|
388 |
msgstr ""
|
389 |
|
390 |
-
#: system/mw_wp_form_admin_page.php:
|
391 |
msgid "The range of the number of characters"
|
392 |
msgstr ""
|
393 |
|
394 |
-
#: system/mw_wp_form_admin_page.php:
|
395 |
msgid "The number of the minimum characters"
|
396 |
msgstr ""
|
397 |
|
398 |
-
#: system/mw_wp_form_admin_page.php:
|
399 |
msgid "Permitted Extension"
|
400 |
msgstr ""
|
401 |
|
402 |
-
#: system/mw_wp_form_admin_page.php:
|
403 |
msgid "Example:jpg or jpg,txt,…"
|
404 |
msgstr ""
|
405 |
|
406 |
-
#: system/mw_wp_form_admin_page.php:
|
407 |
msgid "Permitted file size"
|
408 |
msgstr ""
|
409 |
|
410 |
-
#: system/mw_wp_form_admin_page.php:
|
411 |
msgid "bytes"
|
412 |
msgstr ""
|
413 |
|
@@ -456,7 +464,7 @@ msgid "MW WP Form"
|
|
456 |
msgstr ""
|
457 |
|
458 |
#. Plugin URI of the plugin/theme
|
459 |
-
msgid "http://2inc.org/
|
460 |
msgstr ""
|
461 |
|
462 |
#. Description of the plugin/theme
|
2 |
# This file is distributed under the same license as the MW WP Form package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: MW WP Form 1.2.0\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
|
7 |
+
"POT-Creation-Date: 2013-12-11 03:57:57+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
14 |
"Plural-Forms: nplurals=1; plural=0;\n"
|
15 |
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
"X-Poedit-Basepath: .\n"
|
17 |
+
"X-Generator: Poedit 1.5.7\n"
|
18 |
"X-Poedit-KeywordsList: __;_e\n"
|
19 |
"X-Poedit-SearchPath-0: ..\n"
|
20 |
|
35 |
msgid "Checkbox"
|
36 |
msgstr ""
|
37 |
|
38 |
+
#: form_fields/mw_form_field_confirm_button.php:42
|
39 |
+
#: form_fields/mw_form_field_submit_button.php:44
|
40 |
+
msgid "Confirm"
|
41 |
+
msgstr ""
|
42 |
+
|
43 |
+
#: form_fields/mw_form_field_confirm_button.php:70
|
44 |
+
msgid "Confirm Button"
|
45 |
+
msgstr ""
|
46 |
+
|
47 |
#: form_fields/mw_form_field_datepicker.php:106
|
48 |
msgid "Datepicker"
|
49 |
msgstr ""
|
72 |
msgid "Password"
|
73 |
msgstr ""
|
74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
#: form_fields/mw_form_field_radio.php:84
|
76 |
msgid "Radio"
|
77 |
msgstr ""
|
93 |
msgid "Confirm & Submit"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: form_fields/mw_form_field_tel.php:84 system/mw_wp_form_admin_page.php:495
|
97 |
msgid "Tel"
|
98 |
msgstr ""
|
99 |
|
105 |
msgid "Textarea"
|
106 |
msgstr ""
|
107 |
|
108 |
+
#: form_fields/mw_form_field_zip.php:84 system/mw_wp_form_admin_page.php:494
|
109 |
msgid "Zip Code"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: mw-wp-form.php:413
|
113 |
msgid "Validation Object is not a MW Validation Class."
|
114 |
msgstr ""
|
115 |
|
137 |
msgid "Please enter with a Japanese Katakana."
|
138 |
msgstr ""
|
139 |
|
140 |
+
#: system/mw_validation.php:226
|
141 |
+
msgid "Please enter with a Japanese Hiragana."
|
142 |
+
msgstr ""
|
143 |
+
|
144 |
+
#: system/mw_validation.php:246
|
145 |
msgid "This is not the format of a zip code."
|
146 |
msgstr ""
|
147 |
|
148 |
+
#: system/mw_validation.php:271
|
149 |
msgid "This is not the format of a tel number."
|
150 |
msgstr ""
|
151 |
|
152 |
+
#: system/mw_validation.php:303
|
153 |
msgid "This is not the format of a mail address."
|
154 |
msgstr ""
|
155 |
|
156 |
+
#: system/mw_validation.php:325
|
157 |
msgid "This is not the format of a url."
|
158 |
msgstr ""
|
159 |
|
160 |
+
#: system/mw_validation.php:346
|
161 |
msgid "This is not in agreement."
|
162 |
msgstr ""
|
163 |
|
164 |
+
#: system/mw_validation.php:372
|
165 |
msgid "The number of characters is invalid."
|
166 |
msgstr ""
|
167 |
|
168 |
+
#: system/mw_validation.php:410
|
169 |
msgid "The number of characters is a few."
|
170 |
msgstr ""
|
171 |
|
172 |
+
#: system/mw_validation.php:436
|
173 |
msgid "This value is invalid."
|
174 |
msgstr ""
|
175 |
|
176 |
+
#: system/mw_validation.php:460
|
177 |
msgid "This is not the format of a date."
|
178 |
msgstr ""
|
179 |
|
180 |
+
#: system/mw_validation.php:490
|
181 |
msgid "This file is invalid."
|
182 |
msgstr ""
|
183 |
|
184 |
+
#: system/mw_validation.php:520
|
185 |
msgid "This file size is too big."
|
186 |
msgstr ""
|
187 |
|
188 |
+
#: system/mw_validation.php:540
|
189 |
msgid "The contents which you input were judged with spam."
|
190 |
msgstr ""
|
191 |
|
192 |
+
#: system/mw_wp_form_admin_page.php:54
|
193 |
msgid "Your contribution is needed for making this plugin better."
|
194 |
msgstr ""
|
195 |
|
196 |
+
#: system/mw_wp_form_admin_page.php:54
|
197 |
msgid "Donate"
|
198 |
msgstr ""
|
199 |
|
200 |
+
#: system/mw_wp_form_admin_page.php:96
|
201 |
msgid "Add New Form"
|
202 |
msgstr ""
|
203 |
|
204 |
+
#: system/mw_wp_form_admin_page.php:97
|
205 |
msgid "Edit Form"
|
206 |
msgstr ""
|
207 |
|
208 |
+
#: system/mw_wp_form_admin_page.php:98
|
209 |
msgid "New Form"
|
210 |
msgstr ""
|
211 |
|
212 |
+
#: system/mw_wp_form_admin_page.php:99
|
213 |
msgid "View Form"
|
214 |
msgstr ""
|
215 |
|
216 |
+
#: system/mw_wp_form_admin_page.php:100
|
217 |
msgid "Search Forms"
|
218 |
msgstr ""
|
219 |
|
220 |
+
#: system/mw_wp_form_admin_page.php:101
|
221 |
msgid "No Forms found"
|
222 |
msgstr ""
|
223 |
|
224 |
+
#: system/mw_wp_form_admin_page.php:102
|
225 |
msgid "No Forms found in Trash"
|
226 |
msgstr ""
|
227 |
|
228 |
+
#: system/mw_wp_form_admin_page.php:122
|
229 |
msgid "Complete Message"
|
230 |
msgstr ""
|
231 |
|
232 |
+
#: system/mw_wp_form_admin_page.php:129
|
233 |
msgid "URL Options"
|
234 |
msgstr ""
|
235 |
|
236 |
+
#: system/mw_wp_form_admin_page.php:136
|
237 |
msgid "Validation Rule"
|
238 |
msgstr ""
|
239 |
|
240 |
+
#: system/mw_wp_form_admin_page.php:143
|
241 |
msgid "Form Key"
|
242 |
msgstr ""
|
243 |
|
244 |
+
#: system/mw_wp_form_admin_page.php:150
|
245 |
msgid "Automatic Reply Email Options"
|
246 |
msgstr ""
|
247 |
|
248 |
+
#: system/mw_wp_form_admin_page.php:157
|
249 |
msgid "Admin Email Options"
|
250 |
msgstr ""
|
251 |
|
252 |
+
#: system/mw_wp_form_admin_page.php:164
|
253 |
msgid "settings"
|
254 |
msgstr ""
|
255 |
|
256 |
+
#: system/mw_wp_form_admin_page.php:283
|
257 |
msgid "Copy and Paste this shortcode."
|
258 |
msgstr ""
|
259 |
|
260 |
+
#: system/mw_wp_form_admin_page.php:284
|
261 |
msgid "The key to use with hook is "
|
262 |
msgstr ""
|
263 |
|
264 |
+
#: system/mw_wp_form_admin_page.php:298
|
265 |
msgid "Activate Query string of post"
|
266 |
msgstr ""
|
267 |
|
268 |
+
#: system/mw_wp_form_admin_page.php:299
|
269 |
msgid ""
|
270 |
+
"If this field is active, MW WP Form get query string. And get post data from "
|
271 |
+
"query string \"post_id\". You can use $post's property in editor."
|
272 |
msgstr ""
|
273 |
|
274 |
+
#: system/mw_wp_form_admin_page.php:300
|
275 |
msgid "Example: {ID}, {post_title}, {post_meta} etc..."
|
276 |
msgstr ""
|
277 |
|
278 |
+
#: system/mw_wp_form_admin_page.php:303
|
279 |
msgid "Saving contact data in database"
|
280 |
msgstr ""
|
281 |
|
282 |
+
#: system/mw_wp_form_admin_page.php:307
|
283 |
msgid "Akismet Setting"
|
284 |
msgstr ""
|
285 |
|
286 |
+
#: system/mw_wp_form_admin_page.php:322
|
287 |
msgid "Input the key to use Akismet."
|
288 |
msgstr ""
|
289 |
|
290 |
+
#: system/mw_wp_form_admin_page.php:347 system/mw_wp_form_admin_page.php:389
|
291 |
msgid "Subject"
|
292 |
msgstr ""
|
293 |
|
294 |
+
#: system/mw_wp_form_admin_page.php:351 system/mw_wp_form_admin_page.php:393
|
295 |
msgid "Sender"
|
296 |
msgstr ""
|
297 |
|
298 |
+
#: system/mw_wp_form_admin_page.php:353 system/mw_wp_form_admin_page.php:358
|
299 |
+
#: system/mw_wp_form_admin_page.php:386 system/mw_wp_form_admin_page.php:395
|
300 |
+
#: system/mw_wp_form_admin_page.php:400
|
301 |
msgid "If empty:"
|
302 |
msgstr ""
|
303 |
|
304 |
+
#: system/mw_wp_form_admin_page.php:356 system/mw_wp_form_admin_page.php:398
|
305 |
msgid "From ( E-mail address )"
|
306 |
msgstr ""
|
307 |
|
308 |
+
#: system/mw_wp_form_admin_page.php:361 system/mw_wp_form_admin_page.php:403
|
309 |
msgid "Ccontent"
|
310 |
msgstr ""
|
311 |
|
312 |
+
#: system/mw_wp_form_admin_page.php:363 system/mw_wp_form_admin_page.php:405
|
313 |
msgid "{key} is converted form data."
|
314 |
msgstr ""
|
315 |
|
316 |
+
#: system/mw_wp_form_admin_page.php:366
|
317 |
msgid "Automatic reply email"
|
318 |
msgstr ""
|
319 |
|
320 |
+
#: system/mw_wp_form_admin_page.php:368
|
321 |
msgid "Input the key to use as transmission to automatic reply email."
|
322 |
msgstr ""
|
323 |
|
324 |
+
#: system/mw_wp_form_admin_page.php:381
|
325 |
msgid ""
|
326 |
"If Admin Email Options is a blank, Automatic Replay Email Options is used as "
|
327 |
"Admin Email Options."
|
328 |
msgstr ""
|
329 |
|
330 |
+
#: system/mw_wp_form_admin_page.php:384
|
331 |
msgid "To ( E-mail address )"
|
332 |
msgstr ""
|
333 |
|
334 |
+
#: system/mw_wp_form_admin_page.php:420
|
335 |
msgid "Input Page URL"
|
336 |
msgstr ""
|
337 |
|
338 |
+
#: system/mw_wp_form_admin_page.php:426
|
339 |
msgid "Confirmation Page URL"
|
340 |
msgstr ""
|
341 |
|
342 |
+
#: system/mw_wp_form_admin_page.php:432
|
343 |
msgid "Complete Page URL"
|
344 |
msgstr ""
|
345 |
|
346 |
+
#: system/mw_wp_form_admin_page.php:438
|
347 |
msgid "Validation Error Page URL"
|
348 |
msgstr ""
|
349 |
|
350 |
+
#: system/mw_wp_form_admin_page.php:477
|
351 |
msgid "Add Validation rule"
|
352 |
msgstr ""
|
353 |
|
354 |
+
#: system/mw_wp_form_admin_page.php:483
|
355 |
msgid "The key which applies validation"
|
356 |
msgstr ""
|
357 |
|
358 |
+
#: system/mw_wp_form_admin_page.php:487
|
359 |
msgid "No empty"
|
360 |
msgstr ""
|
361 |
|
362 |
+
#: system/mw_wp_form_admin_page.php:488
|
363 |
msgid "No empty( with checkbox )"
|
364 |
msgstr ""
|
365 |
|
366 |
+
#: system/mw_wp_form_admin_page.php:489
|
367 |
msgid "Numeric"
|
368 |
msgstr ""
|
369 |
|
370 |
+
#: system/mw_wp_form_admin_page.php:490
|
371 |
msgid "Alphabet"
|
372 |
msgstr ""
|
373 |
|
374 |
+
#: system/mw_wp_form_admin_page.php:491
|
375 |
msgid "Alphabet and Numeric"
|
376 |
msgstr ""
|
377 |
|
378 |
+
#: system/mw_wp_form_admin_page.php:492
|
379 |
msgid "Japanese Katakana"
|
380 |
msgstr ""
|
381 |
|
382 |
+
#: system/mw_wp_form_admin_page.php:493
|
383 |
+
msgid "Japanese Hiragana"
|
384 |
+
msgstr ""
|
385 |
+
|
386 |
+
#: system/mw_wp_form_admin_page.php:496
|
387 |
msgid "E-mail"
|
388 |
msgstr ""
|
389 |
|
390 |
+
#: system/mw_wp_form_admin_page.php:497
|
391 |
msgid "Date"
|
392 |
msgstr ""
|
393 |
|
394 |
+
#: system/mw_wp_form_admin_page.php:501
|
395 |
msgid "The key at same value"
|
396 |
msgstr ""
|
397 |
|
398 |
+
#: system/mw_wp_form_admin_page.php:505
|
399 |
msgid "The range of the number of characters"
|
400 |
msgstr ""
|
401 |
|
402 |
+
#: system/mw_wp_form_admin_page.php:513
|
403 |
msgid "The number of the minimum characters"
|
404 |
msgstr ""
|
405 |
|
406 |
+
#: system/mw_wp_form_admin_page.php:517
|
407 |
msgid "Permitted Extension"
|
408 |
msgstr ""
|
409 |
|
410 |
+
#: system/mw_wp_form_admin_page.php:518
|
411 |
msgid "Example:jpg or jpg,txt,…"
|
412 |
msgstr ""
|
413 |
|
414 |
+
#: system/mw_wp_form_admin_page.php:521
|
415 |
msgid "Permitted file size"
|
416 |
msgstr ""
|
417 |
|
418 |
+
#: system/mw_wp_form_admin_page.php:522
|
419 |
msgid "bytes"
|
420 |
msgstr ""
|
421 |
|
464 |
msgstr ""
|
465 |
|
466 |
#. Plugin URI of the plugin/theme
|
467 |
+
msgid "http://2inc.org/manual-mw-wp-form/"
|
468 |
msgstr ""
|
469 |
|
470 |
#. Description of the plugin/theme
|
mw-wp-form.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: MW WP Form
|
4 |
-
* Plugin URI: http://2inc.org/
|
5 |
* Description: MW WP Form can create mail form with a confirmation screen.
|
6 |
-
* Version: 1.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : September 25, 2012
|
@@ -69,6 +69,7 @@ class mw_wp_form {
|
|
69 |
'complete_url' => '',
|
70 |
'validation_error_url' => '',
|
71 |
'validation' => array(),
|
|
|
72 |
);
|
73 |
|
74 |
/**
|
@@ -115,16 +116,17 @@ class mw_wp_form {
|
|
115 |
include_once( plugin_dir_path( __FILE__ ) . 'system/mw_validation.php' );
|
116 |
include_once( plugin_dir_path( __FILE__ ) . 'system/mw_wp_form_data.php' );
|
117 |
include_once( plugin_dir_path( __FILE__ ) . 'system/mw_wp_form_file.php' );
|
118 |
-
add_action( '
|
119 |
add_action( 'wp_print_styles', array( $this, 'original_style' ) );
|
120 |
-
add_action( '
|
|
|
121 |
}
|
122 |
|
123 |
/**
|
124 |
-
*
|
125 |
* WordPressへのリクエストに含まれている、$_POSTの値を削除
|
126 |
*/
|
127 |
-
public function
|
128 |
if ( strtolower( $_SERVER['REQUEST_METHOD'] ) === 'post' && isset( $_POST['token'] ) ) {
|
129 |
foreach ( $_POST as $key => $value ) {
|
130 |
if ( $key == 'token' )
|
@@ -190,24 +192,39 @@ class mw_wp_form {
|
|
190 |
*/
|
191 |
public function original_style() {
|
192 |
$url = plugin_dir_url( __FILE__ );
|
193 |
-
wp_register_style( MWF_Config::DOMAIN, $url.'css/style.css' );
|
194 |
wp_enqueue_style( MWF_Config::DOMAIN );
|
195 |
}
|
196 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
/**
|
198 |
* main
|
199 |
* 表示画面でのプラグインの処理等。
|
200 |
*/
|
201 |
public function main() {
|
202 |
-
global $post;
|
203 |
-
if ( !is_singular() ) return;
|
204 |
-
if ( empty( $post->ID ) ) return;
|
205 |
|
206 |
// URL設定を取得
|
207 |
add_shortcode( 'mwform', array( $this, '_meta_mwform' ) );
|
208 |
// formkeyでのフォーム生成の場合はそれをもとに設定を取得
|
209 |
add_shortcode( 'mwform_formkey', array( $this, '_meta_mwform_formkey' ) );
|
210 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
211 |
if ( !empty( $matches ) ) {
|
212 |
foreach ( $matches as $shortcode ) {
|
213 |
if ( in_array( $shortcode[2], array( 'mwform', 'mwform_formkey' ) ) ) {
|
@@ -307,7 +324,7 @@ class mw_wp_form {
|
|
307 |
/**
|
308 |
* _meta_mwform
|
309 |
* [mwform〜]を解析し、プロパティを設定
|
310 |
-
* @param Array ( input,
|
311 |
* @example
|
312 |
* 同一画面変遷の場合
|
313 |
* [mwform key="hoge"]〜[/mwform]
|
@@ -321,7 +338,6 @@ class mw_wp_form {
|
|
321 |
public function _meta_mwform( $atts ) {
|
322 |
$atts = shortcode_atts( array(
|
323 |
'input' => '',
|
324 |
-
'preview' => '',
|
325 |
'confirm' => '',
|
326 |
'complete' => '',
|
327 |
'validation_error' => '',
|
@@ -331,8 +347,6 @@ class mw_wp_form {
|
|
331 |
$this->input = $this->parse_url( $atts['input'] );
|
332 |
if ( $atts['confirm'] ) {
|
333 |
$this->confirm = $this->parse_url( $atts['confirm'] );
|
334 |
-
} elseif ( $atts['preview'] ) {
|
335 |
-
$this->confirm = $this->parse_url( $atts['preview'] );
|
336 |
} else {
|
337 |
$this->confirm = $this->parse_url( $atts['confirm'] );
|
338 |
}
|
@@ -716,15 +730,15 @@ class mw_wp_form {
|
|
716 |
}
|
717 |
$url = preg_replace( '/([^:])\/+/', '$1/', $url );
|
718 |
|
719 |
-
//
|
720 |
-
//
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
$query_string['post_id'] = $_GET['post_id'];
|
727 |
}
|
|
|
728 |
if ( !empty( $query_string ) )
|
729 |
$url = $url . '?' . http_build_query( $query_string, null, '&' );
|
730 |
return $url;
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: MW WP Form
|
4 |
+
* Plugin URI: http://2inc.org/manual-mw-wp-form/
|
5 |
* Description: MW WP Form can create mail form with a confirmation screen.
|
6 |
+
* Version: 1.2.0
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : September 25, 2012
|
69 |
'complete_url' => '',
|
70 |
'validation_error_url' => '',
|
71 |
'validation' => array(),
|
72 |
+
'use_template' => null,
|
73 |
);
|
74 |
|
75 |
/**
|
116 |
include_once( plugin_dir_path( __FILE__ ) . 'system/mw_validation.php' );
|
117 |
include_once( plugin_dir_path( __FILE__ ) . 'system/mw_wp_form_data.php' );
|
118 |
include_once( plugin_dir_path( __FILE__ ) . 'system/mw_wp_form_file.php' );
|
119 |
+
add_action( 'get_header', array( $this, 'main' ) );
|
120 |
add_action( 'wp_print_styles', array( $this, 'original_style' ) );
|
121 |
+
add_action( 'wp_print_scripts', array( $this, 'original_script' ) );
|
122 |
+
add_action( 'parse_request', array( $this, 'remove_query_vars_from_post' ) );
|
123 |
}
|
124 |
|
125 |
/**
|
126 |
+
* remove_query_vars_from_post
|
127 |
* WordPressへのリクエストに含まれている、$_POSTの値を削除
|
128 |
*/
|
129 |
+
public function remove_query_vars_from_post( $query ) {
|
130 |
if ( strtolower( $_SERVER['REQUEST_METHOD'] ) === 'post' && isset( $_POST['token'] ) ) {
|
131 |
foreach ( $_POST as $key => $value ) {
|
132 |
if ( $key == 'token' )
|
192 |
*/
|
193 |
public function original_style() {
|
194 |
$url = plugin_dir_url( __FILE__ );
|
195 |
+
wp_register_style( MWF_Config::DOMAIN, $url . 'css/style.css' );
|
196 |
wp_enqueue_style( MWF_Config::DOMAIN );
|
197 |
}
|
198 |
|
199 |
+
/**
|
200 |
+
* original_script
|
201 |
+
* CSS適用
|
202 |
+
*/
|
203 |
+
public function original_script() {
|
204 |
+
$url = plugin_dir_url( __FILE__ );
|
205 |
+
wp_register_script( MWF_Config::DOMAIN, $url . 'js/form.js', array( 'jquery' ), false, true );
|
206 |
+
wp_enqueue_script( MWF_Config::DOMAIN );
|
207 |
+
}
|
208 |
+
|
209 |
/**
|
210 |
* main
|
211 |
* 表示画面でのプラグインの処理等。
|
212 |
*/
|
213 |
public function main() {
|
214 |
+
global $post, $template;
|
|
|
|
|
215 |
|
216 |
// URL設定を取得
|
217 |
add_shortcode( 'mwform', array( $this, '_meta_mwform' ) );
|
218 |
// formkeyでのフォーム生成の場合はそれをもとに設定を取得
|
219 |
add_shortcode( 'mwform_formkey', array( $this, '_meta_mwform_formkey' ) );
|
220 |
+
|
221 |
+
if ( is_singular() && !empty( $post->ID ) ) {
|
222 |
+
preg_match_all( '/' . get_shortcode_regex() . '/s', $post->post_content, $matches, PREG_SET_ORDER );
|
223 |
+
}
|
224 |
+
if ( empty( $matches ) && !( defined( 'MWFORM_NOT_USE_TEMPLATE' ) && MWFORM_NOT_USE_TEMPLATE === true ) ) {
|
225 |
+
$template_data = @file_get_contents( $template );
|
226 |
+
preg_match_all( '/' . get_shortcode_regex() . '/s', $template_data, $matches, PREG_SET_ORDER );
|
227 |
+
}
|
228 |
if ( !empty( $matches ) ) {
|
229 |
foreach ( $matches as $shortcode ) {
|
230 |
if ( in_array( $shortcode[2], array( 'mwform', 'mwform_formkey' ) ) ) {
|
324 |
/**
|
325 |
* _meta_mwform
|
326 |
* [mwform〜]を解析し、プロパティを設定
|
327 |
+
* @param Array ( input, confirm complete, key )
|
328 |
* @example
|
329 |
* 同一画面変遷の場合
|
330 |
* [mwform key="hoge"]〜[/mwform]
|
338 |
public function _meta_mwform( $atts ) {
|
339 |
$atts = shortcode_atts( array(
|
340 |
'input' => '',
|
|
|
341 |
'confirm' => '',
|
342 |
'complete' => '',
|
343 |
'validation_error' => '',
|
347 |
$this->input = $this->parse_url( $atts['input'] );
|
348 |
if ( $atts['confirm'] ) {
|
349 |
$this->confirm = $this->parse_url( $atts['confirm'] );
|
|
|
|
|
350 |
} else {
|
351 |
$this->confirm = $this->parse_url( $atts['confirm'] );
|
352 |
}
|
730 |
}
|
731 |
$url = preg_replace( '/([^:])\/+/', '$1/', $url );
|
732 |
|
733 |
+
// URL設定でURL引数が使用されている場合はそれを使う。
|
734 |
+
// 「URL引数を有効にする」が有効の場合は $_GET を利用する(重複するURL引数はURL設定のものが優先される ※post_id除く)
|
735 |
+
if ( !empty( $this->options_by_formkey['querystring'] ) ) {
|
736 |
+
$query_string = array_merge( $_GET, $query_string );
|
737 |
+
if ( isset( $_GET['post_id'] ) && MWF_Functions::is_numeric( $_GET['post_id'] ) ) {
|
738 |
+
$query_string['post_id'] = $_GET['post_id'];
|
739 |
+
}
|
|
|
740 |
}
|
741 |
+
|
742 |
if ( !empty( $query_string ) )
|
743 |
$url = $url . '?' . http_build_query( $query_string, null, '&' );
|
744 |
return $url;
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: inc2734
|
|
3 |
Donate link: http://www.amazon.co.jp/registry/wishlist/39ANKRNSTNW40
|
4 |
Tags: plugin, form, confirm, preview, shortcode
|
5 |
Requires at least: 3.4
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -26,7 +26,7 @@ MW WP Form はショートコードを使って確認画面付きのメールフ
|
|
26 |
* 同一URL・個別URLでの画面変遷が可能
|
27 |
* 豊富なバリデーションルール
|
28 |
|
29 |
-
http://2inc.org/
|
30 |
http://2inc.org/blog/category/products/wordpress_plugins/mw-wp-form/
|
31 |
|
32 |
== Installation ==
|
@@ -37,6 +37,19 @@ http://2inc.org/blog/category/products/wordpress_plugins/mw-wp-form/
|
|
37 |
|
38 |
== Changelog ==
|
39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
= 1.1.5 =
|
41 |
* Bug fix : $MW_Mail->createBody()のバグ修正
|
42 |
|
3 |
Donate link: http://www.amazon.co.jp/registry/wishlist/39ANKRNSTNW40
|
4 |
Tags: plugin, form, confirm, preview, shortcode
|
5 |
Requires at least: 3.4
|
6 |
+
Tested up to: 3.8.0
|
7 |
+
Stable tag: 1.2.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
26 |
* 同一URL・個別URLでの画面変遷が可能
|
27 |
* 豊富なバリデーションルール
|
28 |
|
29 |
+
http://plugins.2inc.org/mw-wp-form/
|
30 |
http://2inc.org/blog/category/products/wordpress_plugins/mw-wp-form/
|
31 |
|
32 |
== Installation ==
|
37 |
|
38 |
== Changelog ==
|
39 |
|
40 |
+
= 1.2.0 =
|
41 |
+
* Added : 電話番号、郵便番号フィールドはデフォルトで全角 -> 半角置換
|
42 |
+
* Added : mwform_error_message_識別子 フィルターフック追加
|
43 |
+
* Added : ひらがな バリデーション項目を追加
|
44 |
+
* Added : テンプレートでもショートコード [mwform_formkey] を実行可能に
|
45 |
+
* Added : Support placeholder in input, textarea
|
46 |
+
* Changed : MW_Form::previewPage() -> MW_Form::confirmPage()
|
47 |
+
* Changed : [mwform_submitButton preview_value=""] -> [mwform_submitButton confirm_value=""]
|
48 |
+
* Changed : [mwform preview=""] -> [mwform confirm=""]
|
49 |
+
* Changed : [mwform_previewButton] -> [mwform_confirmButton]
|
50 |
+
* Changed : URL引数を有効にする の場合のみURL引数が利用されるように変更(URL設定で利用されているものは除く)
|
51 |
+
* Bug fix : 入力画面にpostしたときにhiddenフィールドの値がリセットされる(引き継がれない)バグを修正
|
52 |
+
|
53 |
= 1.1.5 =
|
54 |
* Bug fix : $MW_Mail->createBody()のバグ修正
|
55 |
|
system/mw_error.php
CHANGED
@@ -3,23 +3,24 @@
|
|
3 |
* Name: MW Error
|
4 |
* URI: http://2inc.org
|
5 |
* Description: エラークラス
|
6 |
-
* Version: 1.0
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
-
* Created: July 17, 2012
|
|
|
10 |
* License: GPL2
|
11 |
*
|
12 |
-
* Copyright
|
13 |
-
*
|
14 |
* This program is free software; you can redistribute it and/or modify
|
15 |
* it under the terms of the GNU General Public License, version 2, as
|
16 |
* published by the Free Software Foundation.
|
17 |
-
*
|
18 |
* This program is distributed in the hope that it will be useful,
|
19 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
21 |
* GNU General Public License for more details.
|
22 |
-
*
|
23 |
* You should have received a copy of the GNU General Public License
|
24 |
* along with this program; if not, write to the Free Software
|
25 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
@@ -31,19 +32,20 @@ class MW_Error {
|
|
31 |
/**
|
32 |
* setError
|
33 |
* エラーメッセージをセット
|
34 |
-
* @param
|
35 |
-
*
|
|
|
36 |
*/
|
37 |
-
public function setError( $key, $message ) {
|
38 |
if ( !is_string( $message ) ) exit( 'The Validate error message must be string!');
|
39 |
-
$this->errors[$key][] = $message;
|
40 |
}
|
41 |
|
42 |
/**
|
43 |
* getError
|
44 |
* エラーメッセージを返す
|
45 |
-
* @param
|
46 |
-
* @return
|
47 |
*/
|
48 |
public function getError( $key ) {
|
49 |
if ( isset( $this->errors[$key] ) ) {
|
@@ -55,7 +57,7 @@ class MW_Error {
|
|
55 |
/**
|
56 |
* getErrors
|
57 |
* 全てのエラーメッセージを返す
|
58 |
-
* @return
|
59 |
*/
|
60 |
public function getErrors() {
|
61 |
return $this->errors;
|
3 |
* Name: MW Error
|
4 |
* URI: http://2inc.org
|
5 |
* Description: エラークラス
|
6 |
+
* Version: 1.0.1
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
+
* Created : July 17, 2012
|
10 |
+
* Modified: December 14, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
+
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
14 |
+
*
|
15 |
* This program is free software; you can redistribute it and/or modify
|
16 |
* it under the terms of the GNU General Public License, version 2, as
|
17 |
* published by the Free Software Foundation.
|
18 |
+
*
|
19 |
* This program is distributed in the hope that it will be useful,
|
20 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
21 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
22 |
* GNU General Public License for more details.
|
23 |
+
*
|
24 |
* You should have received a copy of the GNU General Public License
|
25 |
* along with this program; if not, write to the Free Software
|
26 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
32 |
/**
|
33 |
* setError
|
34 |
* エラーメッセージをセット
|
35 |
+
* @param string $key name属性
|
36 |
+
* @param string $rule
|
37 |
+
* @param string $message
|
38 |
*/
|
39 |
+
public function setError( $key, $rule, $message ) {
|
40 |
if ( !is_string( $message ) ) exit( 'The Validate error message must be string!');
|
41 |
+
$this->errors[$key][$rule] = $message;
|
42 |
}
|
43 |
|
44 |
/**
|
45 |
* getError
|
46 |
* エラーメッセージを返す
|
47 |
+
* @param string $key name属性
|
48 |
+
* @return array
|
49 |
*/
|
50 |
public function getError( $key ) {
|
51 |
if ( isset( $this->errors[$key] ) ) {
|
57 |
/**
|
58 |
* getErrors
|
59 |
* 全てのエラーメッセージを返す
|
60 |
+
* @return array
|
61 |
*/
|
62 |
public function getErrors() {
|
63 |
return $this->errors;
|
system/mw_form.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Name: MW Form
|
4 |
* URI: http://2inc.org
|
5 |
* Description: フォームクラス
|
6 |
-
* Version: 1.3.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : September 25, 2012
|
10 |
-
* Modified: December
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
@@ -33,7 +33,6 @@ class MW_Form {
|
|
33 |
protected $data; // データ
|
34 |
protected $Session; // sessionオブジェクト
|
35 |
protected $confirmButton = 'submitConfirm'; // 確認ボタンの名前
|
36 |
-
protected $previewButton = 'submitPreview'; // 確認ボタンの名前
|
37 |
protected $backButton = 'submitBack'; // 戻るボタンの名前
|
38 |
protected $modeCheck = 'input';
|
39 |
protected $method = 'post';
|
@@ -112,8 +111,6 @@ class MW_Form {
|
|
112 |
$backButton = $this->data[$this->backButton];
|
113 |
} elseif ( isset( $this->data[$this->confirmButton] ) ) {
|
114 |
$confirmButton = $this->data[$this->confirmButton];
|
115 |
-
} elseif ( isset( $this->data[$this->previewButton] ) ) {
|
116 |
-
$confirmButton = $this->data[$this->previewButton];
|
117 |
}
|
118 |
$_ret = 'input';
|
119 |
if ( isset( $backButton ) ) {
|
@@ -324,20 +321,32 @@ class MW_Form {
|
|
324 |
/**
|
325 |
* text
|
326 |
* input[type=text]タグ生成
|
327 |
-
* @param
|
328 |
-
*
|
329 |
-
* @return
|
330 |
*/
|
331 |
public function text( $name, $options = array() ) {
|
332 |
$defaults = array(
|
333 |
'size' => 60,
|
334 |
'maxlength' => 255,
|
335 |
'value' => '',
|
|
|
|
|
336 |
);
|
337 |
$options = array_merge( $defaults, $options );
|
338 |
-
$value = ( isset( $this->data[$name] ) )? $this->data[$name] : $options['value'];
|
339 |
-
$
|
340 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
341 |
);
|
342 |
return $_ret;
|
343 |
}
|
@@ -350,7 +359,7 @@ class MW_Form {
|
|
350 |
* @return String htmlタグ
|
351 |
*/
|
352 |
public function hidden( $name, $value ) {
|
353 |
-
|
354 |
if ( is_array( $value ) )
|
355 |
$value = $this->getZipValue( $name );
|
356 |
$_ret = sprintf( '<input type="hidden" name="%s" value="%s" />', esc_attr( $name ), esc_attr( $value ) );
|
@@ -382,9 +391,16 @@ class MW_Form {
|
|
382 |
* zip
|
383 |
* 郵便番号フィールド生成
|
384 |
* @param String name属性
|
|
|
385 |
* @return String htmlタグ
|
386 |
*/
|
387 |
-
public function zip( $name ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
388 |
$separator = '-';
|
389 |
if ( isset( $this->data[$name]['data'] ) ) {
|
390 |
if ( is_array( $this->data[$name]['data'] ) ) {
|
@@ -393,12 +409,30 @@ class MW_Form {
|
|
393 |
$value = explode( $separator, $this->data[$name]['data'] );
|
394 |
}
|
395 |
}
|
396 |
-
|
397 |
-
$
|
398 |
-
$
|
399 |
-
|
400 |
-
|
401 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
402 |
$_ret .= $this->separator( $name, $separator );
|
403 |
return $_ret;
|
404 |
}
|
@@ -407,9 +441,16 @@ class MW_Form {
|
|
407 |
* tel
|
408 |
* 電話番号フィールド生成
|
409 |
* @param String name属性
|
|
|
410 |
* @return String htmlタグ
|
411 |
*/
|
412 |
-
public function tel( $name ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
413 |
$separator = '-';
|
414 |
if ( isset( $this->data[$name]['data'] ) ) {
|
415 |
if ( is_array( $this->data[$name]['data'] ) ) {
|
@@ -418,15 +459,37 @@ class MW_Form {
|
|
418 |
$value = explode( $separator, $this->data[$name]['data'] );
|
419 |
}
|
420 |
}
|
421 |
-
|
422 |
-
$
|
423 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
424 |
$_ret = '';
|
425 |
-
$_ret .= $this->text( $name.'[data][0]', array(
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
430 |
$_ret .= $this->separator( $name, $separator );
|
431 |
return $_ret;
|
432 |
}
|
@@ -434,20 +497,26 @@ class MW_Form {
|
|
434 |
/**
|
435 |
* textarea
|
436 |
* textareaタグ生成
|
437 |
-
* @param
|
438 |
-
*
|
439 |
-
* @return
|
440 |
*/
|
441 |
public function textarea( $name, $options = array() ) {
|
442 |
$defaults = array(
|
443 |
'cols' => 50,
|
444 |
'rows' => 5,
|
445 |
-
'value' => ''
|
|
|
446 |
);
|
447 |
$options = array_merge( $defaults, $options );
|
448 |
$value = ( isset( $this->data[$name] ) )? $this->data[$name] : $options['value'];
|
449 |
-
$
|
450 |
-
|
|
|
|
|
|
|
|
|
|
|
451 |
);
|
452 |
return $_ret;
|
453 |
}
|
3 |
* Name: MW Form
|
4 |
* URI: http://2inc.org
|
5 |
* Description: フォームクラス
|
6 |
+
* Version: 1.3.8
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : September 25, 2012
|
10 |
+
* Modified: December 3, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
33 |
protected $data; // データ
|
34 |
protected $Session; // sessionオブジェクト
|
35 |
protected $confirmButton = 'submitConfirm'; // 確認ボタンの名前
|
|
|
36 |
protected $backButton = 'submitBack'; // 戻るボタンの名前
|
37 |
protected $modeCheck = 'input';
|
38 |
protected $method = 'post';
|
111 |
$backButton = $this->data[$this->backButton];
|
112 |
} elseif ( isset( $this->data[$this->confirmButton] ) ) {
|
113 |
$confirmButton = $this->data[$this->confirmButton];
|
|
|
|
|
114 |
}
|
115 |
$_ret = 'input';
|
116 |
if ( isset( $backButton ) ) {
|
321 |
/**
|
322 |
* text
|
323 |
* input[type=text]タグ生成
|
324 |
+
* @param string $name name属性
|
325 |
+
* @param array
|
326 |
+
* @return string html
|
327 |
*/
|
328 |
public function text( $name, $options = array() ) {
|
329 |
$defaults = array(
|
330 |
'size' => 60,
|
331 |
'maxlength' => 255,
|
332 |
'value' => '',
|
333 |
+
'conv-half-alphanumeric' => false,
|
334 |
+
'placeholder' => '',
|
335 |
);
|
336 |
$options = array_merge( $defaults, $options );
|
337 |
+
$value = ( isset( $this->data[$name] ) ) ? $this->data[$name] : $options['value'];
|
338 |
+
$placeholder = ( !empty( $options['placeholder'] ) ) ? 'placeholder="' . esc_attr( $options['placeholder'] ) . '"' : '';
|
339 |
+
$dataConvHalfAlphanumeric = null;
|
340 |
+
if ( $options['conv-half-alphanumeric'] === true ) {
|
341 |
+
$dataConvHalfAlphanumeric = 'data-conv-half-alphanumeric="true"';
|
342 |
+
}
|
343 |
+
$_ret = sprintf( '<input type="text" name="%s" value="%s" size="%d" maxlength="%d" %s %s />',
|
344 |
+
esc_attr( $name ),
|
345 |
+
esc_attr( $value ),
|
346 |
+
esc_attr( $options['size'] ),
|
347 |
+
esc_attr( $options['maxlength'] ),
|
348 |
+
$placeholder,
|
349 |
+
$dataConvHalfAlphanumeric
|
350 |
);
|
351 |
return $_ret;
|
352 |
}
|
359 |
* @return String htmlタグ
|
360 |
*/
|
361 |
public function hidden( $name, $value ) {
|
362 |
+
$value = ( isset( $this->data[$name] ) )? $this->data[$name] : $value;
|
363 |
if ( is_array( $value ) )
|
364 |
$value = $this->getZipValue( $name );
|
365 |
$_ret = sprintf( '<input type="hidden" name="%s" value="%s" />', esc_attr( $name ), esc_attr( $value ) );
|
391 |
* zip
|
392 |
* 郵便番号フィールド生成
|
393 |
* @param String name属性
|
394 |
+
* @param Array $options
|
395 |
* @return String htmlタグ
|
396 |
*/
|
397 |
+
public function zip( $name, $options = array() ) {
|
398 |
+
$defaults = array(
|
399 |
+
'conv-half-alphanumeric' => false,
|
400 |
+
);
|
401 |
+
$options = array_merge( $defaults, $options );
|
402 |
+
|
403 |
+
$value = '';
|
404 |
$separator = '-';
|
405 |
if ( isset( $this->data[$name]['data'] ) ) {
|
406 |
if ( is_array( $this->data[$name]['data'] ) ) {
|
409 |
$value = explode( $separator, $this->data[$name]['data'] );
|
410 |
}
|
411 |
}
|
412 |
+
|
413 |
+
$values = array( '', '' );
|
414 |
+
if ( is_array( $value ) ) {
|
415 |
+
foreach ( $value as $key => $val ) {
|
416 |
+
if ( $key === 0 || $key === 1 ) {
|
417 |
+
$values[$key] = $val;
|
418 |
+
}
|
419 |
+
}
|
420 |
+
}
|
421 |
+
|
422 |
+
$_ret = '〒';
|
423 |
+
$_ret .= $this->text( $name . '[data][0]', array(
|
424 |
+
'size' => 4,
|
425 |
+
'maxlength' => 3,
|
426 |
+
'value' => $values[0],
|
427 |
+
'conv-half-alphanumeric' => $options['conv-half-alphanumeric'],
|
428 |
+
) );
|
429 |
+
$_ret .= ' ' . $separator . ' ';
|
430 |
+
$_ret .= $this->text( $name . '[data][1]', array(
|
431 |
+
'size' => 5,
|
432 |
+
'maxlength' => 4,
|
433 |
+
'value' => $values[1],
|
434 |
+
'conv-half-alphanumeric' => $options['conv-half-alphanumeric'],
|
435 |
+
) );
|
436 |
$_ret .= $this->separator( $name, $separator );
|
437 |
return $_ret;
|
438 |
}
|
441 |
* tel
|
442 |
* 電話番号フィールド生成
|
443 |
* @param String name属性
|
444 |
+
* @param Array $options
|
445 |
* @return String htmlタグ
|
446 |
*/
|
447 |
+
public function tel( $name, $options = array() ) {
|
448 |
+
$defaults = array(
|
449 |
+
'conv-half-alphanumeric' => false,
|
450 |
+
);
|
451 |
+
$options = array_merge( $defaults, $options );
|
452 |
+
|
453 |
+
$value = '';
|
454 |
$separator = '-';
|
455 |
if ( isset( $this->data[$name]['data'] ) ) {
|
456 |
if ( is_array( $this->data[$name]['data'] ) ) {
|
459 |
$value = explode( $separator, $this->data[$name]['data'] );
|
460 |
}
|
461 |
}
|
462 |
+
|
463 |
+
$values = array( '', '', '' );
|
464 |
+
if ( is_array( $value ) ) {
|
465 |
+
foreach ( $value as $key => $val ) {
|
466 |
+
if ( $key === 0 || $key === 1 || $key === 2 ) {
|
467 |
+
$values[$key] = $val;
|
468 |
+
}
|
469 |
+
}
|
470 |
+
}
|
471 |
+
|
472 |
$_ret = '';
|
473 |
+
$_ret .= $this->text( $name . '[data][0]', array(
|
474 |
+
'size' => 6,
|
475 |
+
'maxlength' => 5,
|
476 |
+
'value' => $values[0],
|
477 |
+
'conv-half-alphanumeric' => $options['conv-half-alphanumeric'],
|
478 |
+
) );
|
479 |
+
$_ret .= ' ' . $separator . ' ';
|
480 |
+
$_ret .= $this->text( $name . '[data][1]', array(
|
481 |
+
'size' => 5,
|
482 |
+
'maxlength' => 4,
|
483 |
+
'value' => $values[1],
|
484 |
+
'conv-half-alphanumeric' => $options['conv-half-alphanumeric'],
|
485 |
+
) );
|
486 |
+
$_ret .= ' ' . $separator . ' ';
|
487 |
+
$_ret .= $this->text( $name . '[data][2]', array(
|
488 |
+
'size' => 5,
|
489 |
+
'maxlength' => 4,
|
490 |
+
'value' => $values[2],
|
491 |
+
'conv-half-alphanumeric' => $options['conv-half-alphanumeric'],
|
492 |
+
) );
|
493 |
$_ret .= $this->separator( $name, $separator );
|
494 |
return $_ret;
|
495 |
}
|
497 |
/**
|
498 |
* textarea
|
499 |
* textareaタグ生成
|
500 |
+
* @param string $name name属性
|
501 |
+
* @param array $options
|
502 |
+
* @return string html
|
503 |
*/
|
504 |
public function textarea( $name, $options = array() ) {
|
505 |
$defaults = array(
|
506 |
'cols' => 50,
|
507 |
'rows' => 5,
|
508 |
+
'value' => '',
|
509 |
+
'placeholder' => '',
|
510 |
);
|
511 |
$options = array_merge( $defaults, $options );
|
512 |
$value = ( isset( $this->data[$name] ) )? $this->data[$name] : $options['value'];
|
513 |
+
$placeholder = ( !empty( $options['placeholder'] ) ) ? 'placeholder="' . esc_attr( $options['placeholder'] ) . '"' : '';
|
514 |
+
$_ret = sprintf( '<textarea name="%s" cols="%d" rows="%d" %s>%s</textarea>',
|
515 |
+
esc_attr( $name ),
|
516 |
+
esc_attr( $options['cols'] ),
|
517 |
+
esc_attr( $options['rows'] ),
|
518 |
+
$placeholder,
|
519 |
+
esc_html( $value )
|
520 |
);
|
521 |
return $_ret;
|
522 |
}
|
system/mw_form_field.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Name: MW Form Field
|
4 |
* URI: http://2inc.org
|
5 |
* Description: フォームフィールドの抽象クラス
|
6 |
-
* Version: 1.3.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
-
* Modified: December
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
@@ -74,8 +74,10 @@ abstract class mw_form_field {
|
|
74 |
protected function getError( $key ) {
|
75 |
$_ret = '';
|
76 |
if ( is_array( $this->Error->getError( $key ) ) ) {
|
77 |
-
foreach ( $this->Error->getError( $key ) as $error ) {
|
78 |
-
$_ret .= sprintf( '<span class="error">%s</span>',
|
|
|
|
|
79 |
}
|
80 |
}
|
81 |
return $_ret;
|
@@ -114,9 +116,6 @@ abstract class mw_form_field {
|
|
114 |
$this->atts = shortcode_atts( $this->defaults, $atts );
|
115 |
return $this->confirmPage();
|
116 |
}
|
117 |
-
protected function previewPage() {
|
118 |
-
return $this->confirmPage();
|
119 |
-
}
|
120 |
|
121 |
/**
|
122 |
* add_short_code
|
3 |
* Name: MW Form Field
|
4 |
* URI: http://2inc.org
|
5 |
* Description: フォームフィールドの抽象クラス
|
6 |
+
* Version: 1.3.2
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
+
* Modified: December 3, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
74 |
protected function getError( $key ) {
|
75 |
$_ret = '';
|
76 |
if ( is_array( $this->Error->getError( $key ) ) ) {
|
77 |
+
foreach ( $this->Error->getError( $key ) as $rule => $error ) {
|
78 |
+
$_ret .= sprintf( '<span class="error">%s</span>',
|
79 |
+
esc_html( apply_filters( 'mwform_error_message_' . $this->key, $error, $key, $rule ) )
|
80 |
+
);
|
81 |
}
|
82 |
}
|
83 |
return $_ret;
|
116 |
$this->atts = shortcode_atts( $this->defaults, $atts );
|
117 |
return $this->confirmPage();
|
118 |
}
|
|
|
|
|
|
|
119 |
|
120 |
/**
|
121 |
* add_short_code
|
system/mw_validation.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Name: MW Validation
|
4 |
* URI: http://2inc.org
|
5 |
* Description: バリデーションクラス
|
6 |
-
* Version: 1.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : July 20, 2012
|
10 |
-
* Modified: December
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
@@ -199,7 +199,7 @@ class MW_Validation {
|
|
199 |
$value = $this->getValue( $key );
|
200 |
if ( is_array( $value ) )
|
201 |
$value = implode( $this->getSeparatorValue( $key ), $value );
|
202 |
-
if ( isset( $value ) && !preg_match( '
|
203 |
$defaults = array(
|
204 |
'message' => __( 'Please enter with a Japanese Katakana.', MWF_Config::DOMAIN )
|
205 |
);
|
@@ -209,6 +209,28 @@ class MW_Validation {
|
|
209 |
return $_ret;
|
210 |
}
|
211 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
/**
|
213 |
* zip
|
214 |
* 値が郵便番号
|
@@ -578,7 +600,7 @@ class MW_Validation {
|
|
578 |
if ( method_exists( $this, $rule ) ) {
|
579 |
$message = $this->$rule( $key, $options );
|
580 |
if ( !empty( $message ) ) {
|
581 |
-
$this->Error->setError( $key, $
|
582 |
}
|
583 |
}
|
584 |
}
|
3 |
* Name: MW Validation
|
4 |
* URI: http://2inc.org
|
5 |
* Description: バリデーションクラス
|
6 |
+
* Version: 1.6.0
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : July 20, 2012
|
10 |
+
* Modified: December 14, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
199 |
$value = $this->getValue( $key );
|
200 |
if ( is_array( $value ) )
|
201 |
$value = implode( $this->getSeparatorValue( $key ), $value );
|
202 |
+
if ( isset( $value ) && !preg_match( '/^[ァ-ヾ]+$/u', $value ) && !$this->isEmpty( $value ) ) {
|
203 |
$defaults = array(
|
204 |
'message' => __( 'Please enter with a Japanese Katakana.', MWF_Config::DOMAIN )
|
205 |
);
|
209 |
return $_ret;
|
210 |
}
|
211 |
|
212 |
+
/**
|
213 |
+
* hiragana
|
214 |
+
* 値がひらがな
|
215 |
+
* @param atring $key name属性
|
216 |
+
* @param array
|
217 |
+
* @return string エラーメッセージ
|
218 |
+
*/
|
219 |
+
public function hiragana( $key, $options = array() ) {
|
220 |
+
$_ret = '';
|
221 |
+
$value = $this->getValue( $key );
|
222 |
+
if ( is_array( $value ) )
|
223 |
+
$value = implode( $this->getSeparatorValue( $key ), $value );
|
224 |
+
if ( isset( $value ) && !preg_match( '/^[ぁ-ゞ]+$/u', $value ) && !$this->isEmpty( $value ) ) {
|
225 |
+
$defaults = array(
|
226 |
+
'message' => __( 'Please enter with a Japanese Hiragana.', MWF_Config::DOMAIN )
|
227 |
+
);
|
228 |
+
$options = array_merge( $defaults, $options );
|
229 |
+
$_ret = $options['message'];
|
230 |
+
}
|
231 |
+
return $_ret;
|
232 |
+
}
|
233 |
+
|
234 |
/**
|
235 |
* zip
|
236 |
* 値が郵便番号
|
600 |
if ( method_exists( $this, $rule ) ) {
|
601 |
$message = $this->$rule( $key, $options );
|
602 |
if ( !empty( $message ) ) {
|
603 |
+
$this->Error->setError( $key, $rule, $message );
|
604 |
}
|
605 |
}
|
606 |
}
|
system/mw_wp_form_admin_page.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Name: MW WP Form Admin Page
|
4 |
* URI: http://2inc.org
|
5 |
* Description: 管理画面クラス
|
6 |
-
* Version: 1.7.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : February 21, 2013
|
10 |
-
* Modified:
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
@@ -189,7 +189,7 @@ class MW_WP_Form_Admin_Page {
|
|
189 |
*/
|
190 |
public function admin_style() {
|
191 |
$post_type = get_post_type();
|
192 |
-
if ( MWF_Config::NAME == $post_type ) {
|
193 |
$url = plugin_dir_url( __FILE__ );
|
194 |
wp_register_style( MWF_Config::DOMAIN . '-admin', $url . '../css/admin.css' );
|
195 |
wp_enqueue_style( MWF_Config::DOMAIN . '-admin' );
|
@@ -296,7 +296,7 @@ class MW_WP_Form_Admin_Page {
|
|
296 |
?>
|
297 |
<p>
|
298 |
<label><input type="checkbox" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[querystring]" value="1" <?php checked( $this->get_post_data( 'querystring' ), 1 ); ?> /> <?php _e( 'Activate Query string of post', MWF_Config::DOMAIN ); ?></label><br />
|
299 |
-
<span class="mwf_note"><?php _e( 'If this field is active, MW WP Form get
|
300 |
<?php _e( 'Example: {ID}, {post_title}, {post_meta} etc...', MWF_Config::DOMAIN ); ?></span>
|
301 |
</p>
|
302 |
<p>
|
@@ -460,6 +460,7 @@ class MW_WP_Form_Admin_Page {
|
|
460 |
'alpha' => '',
|
461 |
'alphanumeric' => '',
|
462 |
'katakana' => '',
|
|
|
463 |
'zip' => '',
|
464 |
'tel' => '',
|
465 |
'mail' => '',
|
@@ -489,6 +490,7 @@ class MW_WP_Form_Admin_Page {
|
|
489 |
<label><input type="checkbox" <?php checked( $value['alpha'], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][alpha]" value="1" /><?php _e( 'Alphabet', MWF_Config::DOMAIN ); ?></label>
|
490 |
<label><input type="checkbox" <?php checked( $value['alphanumeric'], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][alphanumeric]" value="1" /><?php _e( 'Alphabet and Numeric', MWF_Config::DOMAIN ); ?></label>
|
491 |
<label><input type="checkbox" <?php checked( $value['katakana'], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][katakana]" value="1" /><?php _e( 'Japanese Katakana', MWF_Config::DOMAIN ); ?></label>
|
|
|
492 |
<label><input type="checkbox" <?php checked( $value['zip'], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][zip]" value="1" /><?php _e( 'Zip Code', MWF_Config::DOMAIN ); ?></label>
|
493 |
<label><input type="checkbox" <?php checked( $value['tel'], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][tel]" value="1" /><?php _e( 'Tel', MWF_Config::DOMAIN ); ?></label>
|
494 |
<label><input type="checkbox" <?php checked( $value['mail'], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][mail]" value="1" /><?php _e( 'E-mail', MWF_Config::DOMAIN ); ?></label>
|
3 |
* Name: MW WP Form Admin Page
|
4 |
* URI: http://2inc.org
|
5 |
* Description: 管理画面クラス
|
6 |
+
* Version: 1.7.1
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : February 21, 2013
|
10 |
+
* Modified: December 3, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
189 |
*/
|
190 |
public function admin_style() {
|
191 |
$post_type = get_post_type();
|
192 |
+
if ( isset( $_GET['post_type'] ) && MWF_Config::NAME === $_GET['post_type'] || MWF_Config::NAME == $post_type ) {
|
193 |
$url = plugin_dir_url( __FILE__ );
|
194 |
wp_register_style( MWF_Config::DOMAIN . '-admin', $url . '../css/admin.css' );
|
195 |
wp_enqueue_style( MWF_Config::DOMAIN . '-admin' );
|
296 |
?>
|
297 |
<p>
|
298 |
<label><input type="checkbox" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[querystring]" value="1" <?php checked( $this->get_post_data( 'querystring' ), 1 ); ?> /> <?php _e( 'Activate Query string of post', MWF_Config::DOMAIN ); ?></label><br />
|
299 |
+
<span class="mwf_note"><?php _e( 'If this field is active, MW WP Form get query string. And get post data from query string "post_id". You can use $post\'s property in editor.', MWF_Config::DOMAIN ); ?><br />
|
300 |
<?php _e( 'Example: {ID}, {post_title}, {post_meta} etc...', MWF_Config::DOMAIN ); ?></span>
|
301 |
</p>
|
302 |
<p>
|
460 |
'alpha' => '',
|
461 |
'alphanumeric' => '',
|
462 |
'katakana' => '',
|
463 |
+
'hiragana' => '',
|
464 |
'zip' => '',
|
465 |
'tel' => '',
|
466 |
'mail' => '',
|
490 |
<label><input type="checkbox" <?php checked( $value['alpha'], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][alpha]" value="1" /><?php _e( 'Alphabet', MWF_Config::DOMAIN ); ?></label>
|
491 |
<label><input type="checkbox" <?php checked( $value['alphanumeric'], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][alphanumeric]" value="1" /><?php _e( 'Alphabet and Numeric', MWF_Config::DOMAIN ); ?></label>
|
492 |
<label><input type="checkbox" <?php checked( $value['katakana'], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][katakana]" value="1" /><?php _e( 'Japanese Katakana', MWF_Config::DOMAIN ); ?></label>
|
493 |
+
<label><input type="checkbox" <?php checked( $value['hiragana'], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][hiragana]" value="1" /><?php _e( 'Japanese Hiragana', MWF_Config::DOMAIN ); ?></label>
|
494 |
<label><input type="checkbox" <?php checked( $value['zip'], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][zip]" value="1" /><?php _e( 'Zip Code', MWF_Config::DOMAIN ); ?></label>
|
495 |
<label><input type="checkbox" <?php checked( $value['tel'], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][tel]" value="1" /><?php _e( 'Tel', MWF_Config::DOMAIN ); ?></label>
|
496 |
<label><input type="checkbox" <?php checked( $value['mail'], 1 ); ?> name="<?php echo MWF_Config::NAME; ?>[validation][<?php echo $key; ?>][mail]" value="1" /><?php _e( 'E-mail', MWF_Config::DOMAIN ); ?></label>
|
system/mw_wp_form_file.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Name: MW WP Form File
|
4 |
* URI: http://2inc.org
|
5 |
* Description: Tempディレクトリ、ファイルアップロードの処理を行うクラス
|
6 |
-
* Version: 1.0.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : October 10, 2013
|
10 |
-
* Modified:
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
@@ -208,7 +208,7 @@ class MW_WP_Form_File {
|
|
208 |
$_ret = false;
|
209 |
$temp_dir = $this->getTempDir();
|
210 |
$temp_dir = $temp_dir['dir'];
|
211 |
-
if ( !file_exists( $temp_dir ) ) {
|
212 |
$_ret = wp_mkdir_p( trailingslashit( $temp_dir ) );
|
213 |
@chmod( $temp_dir, 0733 );
|
214 |
return $_ret;
|
3 |
* Name: MW WP Form File
|
4 |
* URI: http://2inc.org
|
5 |
* Description: Tempディレクトリ、ファイルアップロードの処理を行うクラス
|
6 |
+
* Version: 1.0.3
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : October 10, 2013
|
10 |
+
* Modified: December 11, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
208 |
$_ret = false;
|
209 |
$temp_dir = $this->getTempDir();
|
210 |
$temp_dir = $temp_dir['dir'];
|
211 |
+
if ( !file_exists( $temp_dir ) && !is_writable( $temp_dir ) ) {
|
212 |
$_ret = wp_mkdir_p( trailingslashit( $temp_dir ) );
|
213 |
@chmod( $temp_dir, 0733 );
|
214 |
return $_ret;
|