Version Description
- Added : Support attribute id in text, textarea, radio, checkbox, select, datepicker, file, image, password shortcode.
- Added : Support attribute placeholder in password shortcode.
- Changed : Change dmin page sentence.
Download this release
Release Info
Developer | inc2734 |
Plugin | MW WP Form |
Version | 1.3.1 |
Comparing to | |
See all releases |
Code changes from version 1.3.0 to 1.3.1
- form_fields/mw_form_field_checkbox.php +6 -4
- form_fields/mw_form_field_datepicker.php +5 -3
- form_fields/mw_form_field_file.php +5 -3
- form_fields/mw_form_field_image.php +5 -3
- form_fields/mw_form_field_password.php +7 -3
- form_fields/mw_form_field_radio.php +6 -4
- form_fields/mw_form_field_select.php +6 -4
- form_fields/mw_form_field_text.php +5 -3
- form_fields/mw_form_field_textarea.php +5 -3
- languages/mw-wp-form-ja.mo +0 -0
- languages/mw-wp-form-ja.po +54 -52
- languages/mw-wp-form.pot +52 -50
- mw-wp-form.php +2 -2
- readme.txt +6 -1
- system/mw_form.php +106 -25
- system/mw_wp_form_admin_page.php +12 -8
form_fields/mw_form_field_checkbox.php
CHANGED
@@ -3,14 +3,14 @@
|
|
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
|
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
|
@@ -52,6 +52,7 @@ class mw_form_field_checkbox extends mw_form_field {
|
|
52 |
protected function setDefaults() {
|
53 |
return array(
|
54 |
'name' => '',
|
|
|
55 |
'children' => '',
|
56 |
'value' => '',
|
57 |
'show_error' => 'true',
|
@@ -62,11 +63,12 @@ class mw_form_field_checkbox extends mw_form_field {
|
|
62 |
/**
|
63 |
* inputPage
|
64 |
* 入力ページでのフォーム項目を返す
|
65 |
-
* @return
|
66 |
*/
|
67 |
protected function inputPage() {
|
68 |
$children = $this->getChildren( $this->atts['children'] );
|
69 |
$_ret = $this->Form->checkbox( $this->atts['name'], $children, array(
|
|
|
70 |
'value' => $this->atts['value'],
|
71 |
), $this->atts['separator'] );
|
72 |
if ( $this->atts['show_error'] !== 'false' )
|
3 |
* Name: MW Form Field Checkbox
|
4 |
* URI: http://2inc.org
|
5 |
* Description: チェックボックスを出力。
|
6 |
+
* Version: 1.2.5
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
+
* Modified: January 15, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
+
* Copyright 2014 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
|
52 |
protected function setDefaults() {
|
53 |
return array(
|
54 |
'name' => '',
|
55 |
+
'id' => '',
|
56 |
'children' => '',
|
57 |
'value' => '',
|
58 |
'show_error' => 'true',
|
63 |
/**
|
64 |
* inputPage
|
65 |
* 入力ページでのフォーム項目を返す
|
66 |
+
* @return string HTML
|
67 |
*/
|
68 |
protected function inputPage() {
|
69 |
$children = $this->getChildren( $this->atts['children'] );
|
70 |
$_ret = $this->Form->checkbox( $this->atts['name'], $children, array(
|
71 |
+
'id' => $this->atts['id'],
|
72 |
'value' => $this->atts['value'],
|
73 |
), $this->atts['separator'] );
|
74 |
if ( $this->atts['show_error'] !== 'false' )
|
form_fields/mw_form_field_datepicker.php
CHANGED
@@ -3,14 +3,14 @@
|
|
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
|
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
|
@@ -52,6 +52,7 @@ class mw_form_field_datepicker extends mw_form_field {
|
|
52 |
protected function setDefaults() {
|
53 |
return array(
|
54 |
'name' => '',
|
|
|
55 |
'size' => 30,
|
56 |
'js' => '',
|
57 |
'value' => '',
|
@@ -89,6 +90,7 @@ class mw_form_field_datepicker extends mw_form_field {
|
|
89 |
}
|
90 |
$_ret = '';
|
91 |
$_ret .= $this->Form->datepicker( $this->atts['name'], array(
|
|
|
92 |
'size' => $this->atts['size'],
|
93 |
'js' => $this->atts['js'],
|
94 |
'value' => $this->atts['value'],
|
3 |
* Name: MW Form Field Datepicker
|
4 |
* URI: http://2inc.org
|
5 |
* Description: datepickerを出力。
|
6 |
+
* Version: 1.2.6
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
+
* Modified: January 15, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
+
* Copyright 2014 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
|
52 |
protected function setDefaults() {
|
53 |
return array(
|
54 |
'name' => '',
|
55 |
+
'id' => '',
|
56 |
'size' => 30,
|
57 |
'js' => '',
|
58 |
'value' => '',
|
90 |
}
|
91 |
$_ret = '';
|
92 |
$_ret .= $this->Form->datepicker( $this->atts['name'], array(
|
93 |
+
'id' => $this->atts['id'],
|
94 |
'size' => $this->atts['size'],
|
95 |
'js' => $this->atts['js'],
|
96 |
'value' => $this->atts['value'],
|
form_fields/mw_form_field_file.php
CHANGED
@@ -3,14 +3,14 @@
|
|
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
|
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
|
@@ -52,6 +52,7 @@ class mw_form_field_file extends mw_form_field {
|
|
52 |
protected function setDefaults() {
|
53 |
return array(
|
54 |
'name' => '',
|
|
|
55 |
'size' => 60,
|
56 |
'show_error' => 'true',
|
57 |
);
|
@@ -64,6 +65,7 @@ class mw_form_field_file extends mw_form_field {
|
|
64 |
*/
|
65 |
protected function inputPage() {
|
66 |
$_ret = $this->Form->file( $this->atts['name'], array(
|
|
|
67 |
'size' => $this->atts['size'],
|
68 |
) );
|
69 |
$value = $this->Form->getValue( $this->atts['name'] );
|
3 |
* Name: MW Form Field File
|
4 |
* URI: http://2inc.org
|
5 |
* Description: 画像アップロードフィールドを出力。
|
6 |
+
* Version: 1.2.6
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : May 17, 2013
|
10 |
+
* Modified: January 15, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
+
* Copyright 2014 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
|
52 |
protected function setDefaults() {
|
53 |
return array(
|
54 |
'name' => '',
|
55 |
+
'id' => '',
|
56 |
'size' => 60,
|
57 |
'show_error' => 'true',
|
58 |
);
|
65 |
*/
|
66 |
protected function inputPage() {
|
67 |
$_ret = $this->Form->file( $this->atts['name'], array(
|
68 |
+
'id' => $this->atts['id'],
|
69 |
'size' => $this->atts['size'],
|
70 |
) );
|
71 |
$value = $this->Form->getValue( $this->atts['name'] );
|
form_fields/mw_form_field_image.php
CHANGED
@@ -3,14 +3,14 @@
|
|
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
|
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
|
@@ -52,6 +52,7 @@ class mw_form_field_image extends mw_form_field {
|
|
52 |
protected function setDefaults() {
|
53 |
return array(
|
54 |
'name' => '',
|
|
|
55 |
'size' => 60,
|
56 |
'show_error' => 'true',
|
57 |
);
|
@@ -64,6 +65,7 @@ class mw_form_field_image extends mw_form_field {
|
|
64 |
*/
|
65 |
protected function inputPage() {
|
66 |
$_ret = $this->Form->file( $this->atts['name'], array(
|
|
|
67 |
'size' => $this->atts['size'],
|
68 |
) );
|
69 |
$value = $this->Form->getValue( $this->atts['name'] );
|
3 |
* Name: MW Form Field Image
|
4 |
* URI: http://2inc.org
|
5 |
* Description: 画像アップロードフィールドを出力。
|
6 |
+
* Version: 1.2.6
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : May 17, 2013
|
10 |
+
* Modified: January 15, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
+
* Copyright 2014 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
|
52 |
protected function setDefaults() {
|
53 |
return array(
|
54 |
'name' => '',
|
55 |
+
'id' => '',
|
56 |
'size' => 60,
|
57 |
'show_error' => 'true',
|
58 |
);
|
65 |
*/
|
66 |
protected function inputPage() {
|
67 |
$_ret = $this->Form->file( $this->atts['name'], array(
|
68 |
+
'id' => $this->atts['id'],
|
69 |
'size' => $this->atts['size'],
|
70 |
) );
|
71 |
$value = $this->Form->getValue( $this->atts['name'] );
|
form_fields/mw_form_field_password.php
CHANGED
@@ -3,14 +3,14 @@
|
|
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
|
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
|
@@ -52,9 +52,11 @@ class mw_form_field_password extends mw_form_field {
|
|
52 |
protected function setDefaults() {
|
53 |
return array(
|
54 |
'name' => '',
|
|
|
55 |
'size' => 60,
|
56 |
'maxlength' => 255,
|
57 |
'value' => '',
|
|
|
58 |
'show_error' => 'true',
|
59 |
);
|
60 |
}
|
@@ -66,9 +68,11 @@ class mw_form_field_password extends mw_form_field {
|
|
66 |
*/
|
67 |
protected function inputPage() {
|
68 |
$_ret = $this->Form->password( $this->atts['name'], array(
|
|
|
69 |
'size' => $this->atts['size'],
|
70 |
'maxlength' => $this->atts['maxlength'],
|
71 |
'value' => $this->atts['value'],
|
|
|
72 |
) );
|
73 |
if ( $this->atts['show_error'] !== 'false' )
|
74 |
$_ret .= $this->getError( $this->atts['name'] );
|
3 |
* Name: MW Form Field Password
|
4 |
* URI: http://2inc.org
|
5 |
* Description: パスワードフィールドを出力。
|
6 |
+
* Version: 1.2.5
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
+
* Modified: January 15, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
+
* Copyright 2014 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
|
52 |
protected function setDefaults() {
|
53 |
return array(
|
54 |
'name' => '',
|
55 |
+
'id' => '',
|
56 |
'size' => 60,
|
57 |
'maxlength' => 255,
|
58 |
'value' => '',
|
59 |
+
'placeholder' => '',
|
60 |
'show_error' => 'true',
|
61 |
);
|
62 |
}
|
68 |
*/
|
69 |
protected function inputPage() {
|
70 |
$_ret = $this->Form->password( $this->atts['name'], array(
|
71 |
+
'id' => $this->atts['id'],
|
72 |
'size' => $this->atts['size'],
|
73 |
'maxlength' => $this->atts['maxlength'],
|
74 |
'value' => $this->atts['value'],
|
75 |
+
'placeholder' => $this->atts['placeholder'],
|
76 |
) );
|
77 |
if ( $this->atts['show_error'] !== 'false' )
|
78 |
$_ret .= $this->getError( $this->atts['name'] );
|
form_fields/mw_form_field_radio.php
CHANGED
@@ -3,14 +3,14 @@
|
|
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
|
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
|
@@ -52,6 +52,7 @@ class mw_form_field_radio extends mw_form_field {
|
|
52 |
protected function setDefaults() {
|
53 |
return array(
|
54 |
'name' => '',
|
|
|
55 |
'children' => '',
|
56 |
'value' => '',
|
57 |
'show_error' => 'true',
|
@@ -61,11 +62,12 @@ class mw_form_field_radio extends mw_form_field {
|
|
61 |
/**
|
62 |
* inputPage
|
63 |
* 入力ページでのフォーム項目を返す
|
64 |
-
* @return
|
65 |
*/
|
66 |
protected function inputPage() {
|
67 |
$children = $this->getChildren( $this->atts['children'] );
|
68 |
$_ret = $this->Form->radio( $this->atts['name'], $children, array(
|
|
|
69 |
'value' => $this->atts['value'],
|
70 |
) );
|
71 |
if ( $this->atts['show_error'] !== 'false' )
|
3 |
* Name: MW Form Field Radio
|
4 |
* URI: http://2inc.org
|
5 |
* Description: ラジオボタンを出力。
|
6 |
+
* Version: 1.2.5
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
+
* Modified: January 15, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
+
* Copyright 2014 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
|
52 |
protected function setDefaults() {
|
53 |
return array(
|
54 |
'name' => '',
|
55 |
+
'id' => '',
|
56 |
'children' => '',
|
57 |
'value' => '',
|
58 |
'show_error' => 'true',
|
62 |
/**
|
63 |
* inputPage
|
64 |
* 入力ページでのフォーム項目を返す
|
65 |
+
* @return string html
|
66 |
*/
|
67 |
protected function inputPage() {
|
68 |
$children = $this->getChildren( $this->atts['children'] );
|
69 |
$_ret = $this->Form->radio( $this->atts['name'], $children, array(
|
70 |
+
'id' => $this->atts['id'],
|
71 |
'value' => $this->atts['value'],
|
72 |
) );
|
73 |
if ( $this->atts['show_error'] !== 'false' )
|
form_fields/mw_form_field_select.php
CHANGED
@@ -3,14 +3,14 @@
|
|
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
|
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
|
@@ -52,6 +52,7 @@ class mw_form_field_select extends mw_form_field {
|
|
52 |
protected function setDefaults() {
|
53 |
return array(
|
54 |
'name' => '',
|
|
|
55 |
'children' => '',
|
56 |
'value' => '',
|
57 |
'show_error' => 'true',
|
@@ -61,11 +62,12 @@ class mw_form_field_select extends mw_form_field {
|
|
61 |
/**
|
62 |
* inputPage
|
63 |
* 入力ページでのフォーム項目を返す
|
64 |
-
* @return
|
65 |
*/
|
66 |
protected function inputPage() {
|
67 |
$children = $this->getChildren( $this->atts['children'] );
|
68 |
$_ret = $this->Form->select( $this->atts['name'], $children, array(
|
|
|
69 |
'value' => $this->atts['value'],
|
70 |
) );
|
71 |
if ( $this->atts['show_error'] !== 'false' )
|
3 |
* Name: MW Form Field Select
|
4 |
* URI: http://2inc.org
|
5 |
* Description: セレクトボックスを出力。
|
6 |
+
* Version: 1.2.5
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
+
* Modified: January 15, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
+
* Copyright 2014 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
|
52 |
protected function setDefaults() {
|
53 |
return array(
|
54 |
'name' => '',
|
55 |
+
'id' => '',
|
56 |
'children' => '',
|
57 |
'value' => '',
|
58 |
'show_error' => 'true',
|
62 |
/**
|
63 |
* inputPage
|
64 |
* 入力ページでのフォーム項目を返す
|
65 |
+
* @return string html
|
66 |
*/
|
67 |
protected function inputPage() {
|
68 |
$children = $this->getChildren( $this->atts['children'] );
|
69 |
$_ret = $this->Form->select( $this->atts['name'], $children, array(
|
70 |
+
'id' => $this->atts['id'],
|
71 |
'value' => $this->atts['value'],
|
72 |
) );
|
73 |
if ( $this->atts['show_error'] !== 'false' )
|
form_fields/mw_form_field_text.php
CHANGED
@@ -3,14 +3,14 @@
|
|
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
|
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
|
@@ -52,6 +52,7 @@ class mw_form_field_text extends mw_form_field {
|
|
52 |
protected function setDefaults() {
|
53 |
return array(
|
54 |
'name' => '',
|
|
|
55 |
'size' => 60,
|
56 |
'maxlength' => 255,
|
57 |
'value' => '',
|
@@ -67,6 +68,7 @@ class mw_form_field_text extends mw_form_field {
|
|
67 |
*/
|
68 |
protected function inputPage() {
|
69 |
$_ret = $this->Form->text( $this->atts['name'], array(
|
|
|
70 |
'size' => $this->atts['size'],
|
71 |
'maxlength' => $this->atts['maxlength'],
|
72 |
'value' => $this->atts['value'],
|
3 |
* Name: MW Form Field Text
|
4 |
* URI: http://2inc.org
|
5 |
* Description: テキストフィールドを出力。
|
6 |
+
* Version: 1.2.5
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
+
* Modified: January 15, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
+
* Copyright 2014 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
|
52 |
protected function setDefaults() {
|
53 |
return array(
|
54 |
'name' => '',
|
55 |
+
'id' => '',
|
56 |
'size' => 60,
|
57 |
'maxlength' => 255,
|
58 |
'value' => '',
|
68 |
*/
|
69 |
protected function inputPage() {
|
70 |
$_ret = $this->Form->text( $this->atts['name'], array(
|
71 |
+
'id' => $this->atts['id'],
|
72 |
'size' => $this->atts['size'],
|
73 |
'maxlength' => $this->atts['maxlength'],
|
74 |
'value' => $this->atts['value'],
|
form_fields/mw_form_field_textarea.php
CHANGED
@@ -3,14 +3,14 @@
|
|
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
|
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
|
@@ -52,6 +52,7 @@ class mw_form_field_textarea extends mw_form_field {
|
|
52 |
protected function setDefaults() {
|
53 |
return array(
|
54 |
'name' => '',
|
|
|
55 |
'cols' => 50,
|
56 |
'rows' => 5,
|
57 |
'value' => '',
|
@@ -67,6 +68,7 @@ class mw_form_field_textarea extends mw_form_field {
|
|
67 |
*/
|
68 |
protected function inputPage() {
|
69 |
$_ret = $this->Form->textarea( $this->atts['name'], array(
|
|
|
70 |
'cols' => $this->atts['cols'],
|
71 |
'rows' => $this->atts['rows'],
|
72 |
'value' => $this->atts['value'],
|
3 |
* Name: MW Form Field TextArea
|
4 |
* URI: http://2inc.org
|
5 |
* Description: テキストエリアを出力。
|
6 |
+
* Version: 1.2.5
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : December 14, 2012
|
10 |
+
* Modified: January 15, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
+
* Copyright 2014 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
|
52 |
protected function setDefaults() {
|
53 |
return array(
|
54 |
'name' => '',
|
55 |
+
'id' => '',
|
56 |
'cols' => 50,
|
57 |
'rows' => 5,
|
58 |
'value' => '',
|
68 |
*/
|
69 |
protected function inputPage() {
|
70 |
$_ret = $this->Form->textarea( $this->atts['name'], array(
|
71 |
+
'id' => $this->atts['id'],
|
72 |
'cols' => $this->atts['cols'],
|
73 |
'rows' => $this->atts['rows'],
|
74 |
'value' => $this->atts['value'],
|
languages/mw-wp-form-ja.mo
CHANGED
Binary file
|
languages/mw-wp-form-ja.po
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
# This file is distributed under the same license as the MW WP Form package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: MW WP Form 1.
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
|
7 |
-
"POT-Creation-Date:
|
8 |
-
"PO-Revision-Date:
|
9 |
"Last-Translator: Takashi Kitajima <inc@2inc.org>\n"
|
10 |
"Language-Team: Takashi Kitajima <inc@2inc.org>\n"
|
11 |
"Language: ja\n"
|
@@ -15,7 +15,7 @@ msgstr ""
|
|
15 |
"Plural-Forms: nplurals=1; plural=0;\n"
|
16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
17 |
"X-Poedit-Basepath: .\n"
|
18 |
-
"X-Generator: Poedit 1.6
|
19 |
"X-Poedit-KeywordsList: __;_e;_x\n"
|
20 |
"X-Poedit-SearchPath-0: ..\n"
|
21 |
|
@@ -57,7 +57,7 @@ msgstr "エラーメッセージ"
|
|
57 |
msgid "File"
|
58 |
msgstr "ファイルフィールド"
|
59 |
|
60 |
-
#: form_fields/mw_form_field_file.php:
|
61 |
msgid "Uploaded."
|
62 |
msgstr "アップロードしました。"
|
63 |
|
@@ -94,7 +94,7 @@ msgstr "送信する"
|
|
94 |
msgid "Confirm & Submit"
|
95 |
msgstr "確認・送信"
|
96 |
|
97 |
-
#: form_fields/mw_form_field_tel.php:42 system/mw_wp_form_admin_page.php:
|
98 |
msgid "Tel"
|
99 |
msgstr "電話番号"
|
100 |
|
@@ -106,7 +106,7 @@ msgstr "テキストフィールド"
|
|
106 |
msgid "Textarea"
|
107 |
msgstr "テキストエリア"
|
108 |
|
109 |
-
#: form_fields/mw_form_field_zip.php:42 system/mw_wp_form_admin_page.php:
|
110 |
msgid "Zip Code"
|
111 |
msgstr "郵便番号"
|
112 |
|
@@ -114,7 +114,7 @@ msgstr "郵便番号"
|
|
114 |
msgid "Shortcodes"
|
115 |
msgstr "ショートコード"
|
116 |
|
117 |
-
#: mw-wp-form.php:
|
118 |
msgid "Validation Object is not a MW Validation Class."
|
119 |
msgstr ""
|
120 |
|
@@ -299,145 +299,147 @@ msgstr "Akismet 設定"
|
|
299 |
msgid "Input the key to use Akismet."
|
300 |
msgstr "Akismetを使用する項目のキーを入力してください。"
|
301 |
|
302 |
-
#: system/mw_wp_form_admin_page.php:389 system/mw_wp_form_admin_page.php:
|
|
|
|
|
|
|
|
|
303 |
msgid "Subject"
|
304 |
msgstr "件名"
|
305 |
|
306 |
-
#: system/mw_wp_form_admin_page.php:
|
307 |
msgid "Sender"
|
308 |
msgstr "送信者"
|
309 |
|
310 |
-
#: system/mw_wp_form_admin_page.php:
|
311 |
-
#: system/mw_wp_form_admin_page.php:
|
312 |
-
#: system/mw_wp_form_admin_page.php:
|
313 |
msgid "If empty:"
|
314 |
msgstr "未入力の場合:"
|
315 |
|
316 |
-
#: system/mw_wp_form_admin_page.php:
|
317 |
msgid "From ( E-mail address )"
|
318 |
msgstr "送信元(E-mailアドレス)"
|
319 |
|
320 |
-
#: system/mw_wp_form_admin_page.php:
|
321 |
msgid "Ccontent"
|
322 |
msgstr "本文"
|
323 |
|
324 |
-
#: system/mw_wp_form_admin_page.php:
|
325 |
-
msgid "{key} is converted form data."
|
326 |
-
msgstr "{キー}でそのフォーム項目に変換されます。"
|
327 |
-
|
328 |
-
#: system/mw_wp_form_admin_page.php:408
|
329 |
msgid "Automatic reply email"
|
330 |
msgstr "自動返信メール"
|
331 |
|
332 |
-
#: system/mw_wp_form_admin_page.php:
|
333 |
-
msgid "
|
334 |
-
|
|
|
|
|
335 |
|
336 |
-
#: system/mw_wp_form_admin_page.php:
|
337 |
msgid ""
|
338 |
"If Admin Email Options is a blank, Automatic Replay Email Options is used as "
|
339 |
"Admin Email Options."
|
340 |
msgstr ""
|
341 |
-
"
|
342 |
"れます。"
|
343 |
|
344 |
-
#: system/mw_wp_form_admin_page.php:
|
345 |
msgid "To ( E-mail address )"
|
346 |
msgstr "送信先(E-mailアドレス)"
|
347 |
|
348 |
-
#: system/mw_wp_form_admin_page.php:
|
349 |
msgid "Input Page URL"
|
350 |
msgstr "入力画面URL"
|
351 |
|
352 |
-
#: system/mw_wp_form_admin_page.php:
|
353 |
msgid "Confirmation Page URL"
|
354 |
msgstr "確認画面URL"
|
355 |
|
356 |
-
#: system/mw_wp_form_admin_page.php:
|
357 |
msgid "Complete Page URL"
|
358 |
msgstr "完了画面URL"
|
359 |
|
360 |
-
#: system/mw_wp_form_admin_page.php:
|
361 |
msgid "Validation Error Page URL"
|
362 |
msgstr "エラー画面URL"
|
363 |
|
364 |
-
#: system/mw_wp_form_admin_page.php:
|
365 |
msgid "Add Validation rule"
|
366 |
msgstr "バリデーションルールを追加"
|
367 |
|
368 |
-
#: system/mw_wp_form_admin_page.php:
|
369 |
msgid "The key which applies validation"
|
370 |
msgstr "バリデーションを適用する項目"
|
371 |
|
372 |
-
#: system/mw_wp_form_admin_page.php:
|
373 |
msgid "No empty"
|
374 |
msgstr "必須項目"
|
375 |
|
376 |
-
#: system/mw_wp_form_admin_page.php:
|
377 |
msgid "No empty( with checkbox )"
|
378 |
msgstr "必須項目(チェックボックス)"
|
379 |
|
380 |
-
#: system/mw_wp_form_admin_page.php:
|
381 |
msgid "Numeric"
|
382 |
msgstr "半角数字"
|
383 |
|
384 |
-
#: system/mw_wp_form_admin_page.php:
|
385 |
msgid "Alphabet"
|
386 |
msgstr "半角英字"
|
387 |
|
388 |
-
#: system/mw_wp_form_admin_page.php:
|
389 |
msgid "Alphabet and Numeric"
|
390 |
msgstr "半角英数字"
|
391 |
|
392 |
-
#: system/mw_wp_form_admin_page.php:
|
393 |
msgid "Japanese Katakana"
|
394 |
msgstr "カタカナ"
|
395 |
|
396 |
-
#: system/mw_wp_form_admin_page.php:
|
397 |
msgid "Japanese Hiragana"
|
398 |
msgstr "ひらがな"
|
399 |
|
400 |
-
#: system/mw_wp_form_admin_page.php:
|
401 |
msgid "E-mail"
|
402 |
msgstr "メールアドレス"
|
403 |
|
404 |
-
#: system/mw_wp_form_admin_page.php:
|
405 |
msgid "URL"
|
406 |
msgstr ""
|
407 |
|
408 |
-
#: system/mw_wp_form_admin_page.php:
|
409 |
msgid "Date"
|
410 |
msgstr "日付"
|
411 |
|
412 |
-
#: system/mw_wp_form_admin_page.php:
|
413 |
msgid "The key at same value"
|
414 |
msgstr "一致する項目"
|
415 |
|
416 |
-
#: system/mw_wp_form_admin_page.php:
|
417 |
msgid "The range of the number of characters"
|
418 |
msgstr "文字数の範囲"
|
419 |
|
420 |
-
#: system/mw_wp_form_admin_page.php:
|
421 |
msgid "The number of the minimum characters"
|
422 |
msgstr "最小文字数"
|
423 |
|
424 |
-
#: system/mw_wp_form_admin_page.php:
|
425 |
msgid "Permitted Extension"
|
426 |
msgstr "拡張子制限"
|
427 |
|
428 |
-
#: system/mw_wp_form_admin_page.php:
|
429 |
msgid "Example:jpg or jpg,txt,…"
|
430 |
msgstr "例:jpg もしくは jpg,txt…"
|
431 |
|
432 |
-
#: system/mw_wp_form_admin_page.php:
|
433 |
msgid "Permitted file size"
|
434 |
msgstr "サイズ制限"
|
435 |
|
436 |
-
#: system/mw_wp_form_admin_page.php:
|
437 |
msgid "bytes"
|
438 |
msgstr ""
|
439 |
|
440 |
-
#: system/mw_wp_form_admin_page.php:
|
441 |
msgid "Select Style"
|
442 |
msgstr "スタイルを選択"
|
443 |
|
@@ -477,7 +479,7 @@ msgstr "登録日時"
|
|
477 |
msgid "Memo"
|
478 |
msgstr "メモ"
|
479 |
|
480 |
-
#: system/mw_wp_form_file.php:
|
481 |
msgid "Uploaded from "
|
482 |
msgstr ""
|
483 |
|
@@ -486,7 +488,7 @@ msgid "MW WP Form"
|
|
486 |
msgstr ""
|
487 |
|
488 |
#. Plugin URI of the plugin/theme
|
489 |
-
msgid "http://2inc.org/
|
490 |
msgstr ""
|
491 |
|
492 |
#. 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.3.1\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
|
7 |
+
"POT-Creation-Date: 2014-01-16 07:57:31+00:00\n"
|
8 |
+
"PO-Revision-Date: 2014-01-16 17:02+0900\n"
|
9 |
"Last-Translator: Takashi Kitajima <inc@2inc.org>\n"
|
10 |
"Language-Team: Takashi Kitajima <inc@2inc.org>\n"
|
11 |
"Language: ja\n"
|
15 |
"Plural-Forms: nplurals=1; plural=0;\n"
|
16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
17 |
"X-Poedit-Basepath: .\n"
|
18 |
+
"X-Generator: Poedit 1.5.6\n"
|
19 |
"X-Poedit-KeywordsList: __;_e;_x\n"
|
20 |
"X-Poedit-SearchPath-0: ..\n"
|
21 |
|
57 |
msgid "File"
|
58 |
msgstr "ファイルフィールド"
|
59 |
|
60 |
+
#: form_fields/mw_form_field_file.php:77 form_fields/mw_form_field_file.php:98
|
61 |
msgid "Uploaded."
|
62 |
msgstr "アップロードしました。"
|
63 |
|
94 |
msgid "Confirm & Submit"
|
95 |
msgstr "確認・送信"
|
96 |
|
97 |
+
#: form_fields/mw_form_field_tel.php:42 system/mw_wp_form_admin_page.php:542
|
98 |
msgid "Tel"
|
99 |
msgstr "電話番号"
|
100 |
|
106 |
msgid "Textarea"
|
107 |
msgstr "テキストエリア"
|
108 |
|
109 |
+
#: form_fields/mw_form_field_zip.php:42 system/mw_wp_form_admin_page.php:541
|
110 |
msgid "Zip Code"
|
111 |
msgstr "郵便番号"
|
112 |
|
114 |
msgid "Shortcodes"
|
115 |
msgstr "ショートコード"
|
116 |
|
117 |
+
#: mw-wp-form.php:436
|
118 |
msgid "Validation Object is not a MW Validation Class."
|
119 |
msgstr ""
|
120 |
|
299 |
msgid "Input the key to use Akismet."
|
300 |
msgstr "Akismetを使用する項目のキーを入力してください。"
|
301 |
|
302 |
+
#: system/mw_wp_form_admin_page.php:389 system/mw_wp_form_admin_page.php:425
|
303 |
+
msgid "{key} is converted form data."
|
304 |
+
msgstr "{キー}でそのフォーム項目に変換されます。"
|
305 |
+
|
306 |
+
#: system/mw_wp_form_admin_page.php:392 system/mw_wp_form_admin_page.php:436
|
307 |
msgid "Subject"
|
308 |
msgstr "件名"
|
309 |
|
310 |
+
#: system/mw_wp_form_admin_page.php:396 system/mw_wp_form_admin_page.php:440
|
311 |
msgid "Sender"
|
312 |
msgstr "送信者"
|
313 |
|
314 |
+
#: system/mw_wp_form_admin_page.php:398 system/mw_wp_form_admin_page.php:403
|
315 |
+
#: system/mw_wp_form_admin_page.php:433 system/mw_wp_form_admin_page.php:442
|
316 |
+
#: system/mw_wp_form_admin_page.php:447
|
317 |
msgid "If empty:"
|
318 |
msgstr "未入力の場合:"
|
319 |
|
320 |
+
#: system/mw_wp_form_admin_page.php:401 system/mw_wp_form_admin_page.php:445
|
321 |
msgid "From ( E-mail address )"
|
322 |
msgstr "送信元(E-mailアドレス)"
|
323 |
|
324 |
+
#: system/mw_wp_form_admin_page.php:406 system/mw_wp_form_admin_page.php:450
|
325 |
msgid "Ccontent"
|
326 |
msgstr "本文"
|
327 |
|
328 |
+
#: system/mw_wp_form_admin_page.php:410
|
|
|
|
|
|
|
|
|
329 |
msgid "Automatic reply email"
|
330 |
msgstr "自動返信メール"
|
331 |
|
332 |
+
#: system/mw_wp_form_admin_page.php:412
|
333 |
+
msgid ""
|
334 |
+
"Input the key to use as transmission to automatic reply email. {} is "
|
335 |
+
"unnecessary."
|
336 |
+
msgstr "自動返信メールに使用する項目のキーを入力してください。{ }は不要です。"
|
337 |
|
338 |
+
#: system/mw_wp_form_admin_page.php:428
|
339 |
msgid ""
|
340 |
"If Admin Email Options is a blank, Automatic Replay Email Options is used as "
|
341 |
"Admin Email Options."
|
342 |
msgstr ""
|
343 |
+
"管理者宛メール設定が空のときは自動返信メール設定に管理者宛メール設定が使用さ"
|
344 |
"れます。"
|
345 |
|
346 |
+
#: system/mw_wp_form_admin_page.php:431
|
347 |
msgid "To ( E-mail address )"
|
348 |
msgstr "送信先(E-mailアドレス)"
|
349 |
|
350 |
+
#: system/mw_wp_form_admin_page.php:466
|
351 |
msgid "Input Page URL"
|
352 |
msgstr "入力画面URL"
|
353 |
|
354 |
+
#: system/mw_wp_form_admin_page.php:472
|
355 |
msgid "Confirmation Page URL"
|
356 |
msgstr "確認画面URL"
|
357 |
|
358 |
+
#: system/mw_wp_form_admin_page.php:478
|
359 |
msgid "Complete Page URL"
|
360 |
msgstr "完了画面URL"
|
361 |
|
362 |
+
#: system/mw_wp_form_admin_page.php:484
|
363 |
msgid "Validation Error Page URL"
|
364 |
msgstr "エラー画面URL"
|
365 |
|
366 |
+
#: system/mw_wp_form_admin_page.php:524
|
367 |
msgid "Add Validation rule"
|
368 |
msgstr "バリデーションルールを追加"
|
369 |
|
370 |
+
#: system/mw_wp_form_admin_page.php:530
|
371 |
msgid "The key which applies validation"
|
372 |
msgstr "バリデーションを適用する項目"
|
373 |
|
374 |
+
#: system/mw_wp_form_admin_page.php:534
|
375 |
msgid "No empty"
|
376 |
msgstr "必須項目"
|
377 |
|
378 |
+
#: system/mw_wp_form_admin_page.php:535
|
379 |
msgid "No empty( with checkbox )"
|
380 |
msgstr "必須項目(チェックボックス)"
|
381 |
|
382 |
+
#: system/mw_wp_form_admin_page.php:536
|
383 |
msgid "Numeric"
|
384 |
msgstr "半角数字"
|
385 |
|
386 |
+
#: system/mw_wp_form_admin_page.php:537
|
387 |
msgid "Alphabet"
|
388 |
msgstr "半角英字"
|
389 |
|
390 |
+
#: system/mw_wp_form_admin_page.php:538
|
391 |
msgid "Alphabet and Numeric"
|
392 |
msgstr "半角英数字"
|
393 |
|
394 |
+
#: system/mw_wp_form_admin_page.php:539
|
395 |
msgid "Japanese Katakana"
|
396 |
msgstr "カタカナ"
|
397 |
|
398 |
+
#: system/mw_wp_form_admin_page.php:540
|
399 |
msgid "Japanese Hiragana"
|
400 |
msgstr "ひらがな"
|
401 |
|
402 |
+
#: system/mw_wp_form_admin_page.php:543
|
403 |
msgid "E-mail"
|
404 |
msgstr "メールアドレス"
|
405 |
|
406 |
+
#: system/mw_wp_form_admin_page.php:544
|
407 |
msgid "URL"
|
408 |
msgstr ""
|
409 |
|
410 |
+
#: system/mw_wp_form_admin_page.php:545
|
411 |
msgid "Date"
|
412 |
msgstr "日付"
|
413 |
|
414 |
+
#: system/mw_wp_form_admin_page.php:549
|
415 |
msgid "The key at same value"
|
416 |
msgstr "一致する項目"
|
417 |
|
418 |
+
#: system/mw_wp_form_admin_page.php:553
|
419 |
msgid "The range of the number of characters"
|
420 |
msgstr "文字数の範囲"
|
421 |
|
422 |
+
#: system/mw_wp_form_admin_page.php:561
|
423 |
msgid "The number of the minimum characters"
|
424 |
msgstr "最小文字数"
|
425 |
|
426 |
+
#: system/mw_wp_form_admin_page.php:565
|
427 |
msgid "Permitted Extension"
|
428 |
msgstr "拡張子制限"
|
429 |
|
430 |
+
#: system/mw_wp_form_admin_page.php:566
|
431 |
msgid "Example:jpg or jpg,txt,…"
|
432 |
msgstr "例:jpg もしくは jpg,txt…"
|
433 |
|
434 |
+
#: system/mw_wp_form_admin_page.php:569
|
435 |
msgid "Permitted file size"
|
436 |
msgstr "サイズ制限"
|
437 |
|
438 |
+
#: system/mw_wp_form_admin_page.php:570
|
439 |
msgid "bytes"
|
440 |
msgstr ""
|
441 |
|
442 |
+
#: system/mw_wp_form_admin_page.php:586
|
443 |
msgid "Select Style"
|
444 |
msgstr "スタイルを選択"
|
445 |
|
479 |
msgid "Memo"
|
480 |
msgstr "メモ"
|
481 |
|
482 |
+
#: system/mw_wp_form_file.php:152
|
483 |
msgid "Uploaded from "
|
484 |
msgstr ""
|
485 |
|
488 |
msgstr ""
|
489 |
|
490 |
#. Plugin URI of the plugin/theme
|
491 |
+
msgid "http://plugins.2inc.org/mw-wp-form/"
|
492 |
msgstr ""
|
493 |
|
494 |
#. Description of the plugin/theme
|
languages/mw-wp-form.pot
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
-
# Copyright (C)
|
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:
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"PO-Revision-Date:
|
12 |
"Last-Translator: Takashi Kitajima <inc@2inc.org>\n"
|
13 |
"Language-Team: Takashi Kitajima <inc@2inc.org>\n"
|
14 |
"Plural-Forms: nplurals=1; plural=0;\n"
|
@@ -56,7 +56,7 @@ msgstr ""
|
|
56 |
msgid "File"
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: form_fields/mw_form_field_file.php:
|
60 |
msgid "Uploaded."
|
61 |
msgstr ""
|
62 |
|
@@ -93,7 +93,7 @@ msgstr ""
|
|
93 |
msgid "Confirm & Submit"
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: form_fields/mw_form_field_tel.php:42 system/mw_wp_form_admin_page.php:
|
97 |
msgid "Tel"
|
98 |
msgstr ""
|
99 |
|
@@ -105,7 +105,7 @@ msgstr ""
|
|
105 |
msgid "Textarea"
|
106 |
msgstr ""
|
107 |
|
108 |
-
#: form_fields/mw_form_field_zip.php:42 system/mw_wp_form_admin_page.php:
|
109 |
msgid "Zip Code"
|
110 |
msgstr ""
|
111 |
|
@@ -113,7 +113,7 @@ msgstr ""
|
|
113 |
msgid "Shortcodes"
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: mw-wp-form.php:
|
117 |
msgid "Validation Object is not a MW Validation Class."
|
118 |
msgstr ""
|
119 |
|
@@ -295,143 +295,145 @@ msgstr ""
|
|
295 |
msgid "Input the key to use Akismet."
|
296 |
msgstr ""
|
297 |
|
298 |
-
#: system/mw_wp_form_admin_page.php:389 system/mw_wp_form_admin_page.php:
|
|
|
|
|
|
|
|
|
299 |
msgid "Subject"
|
300 |
msgstr ""
|
301 |
|
302 |
-
#: system/mw_wp_form_admin_page.php:
|
303 |
msgid "Sender"
|
304 |
msgstr ""
|
305 |
|
306 |
-
#: system/mw_wp_form_admin_page.php:
|
307 |
-
#: system/mw_wp_form_admin_page.php:
|
308 |
-
#: system/mw_wp_form_admin_page.php:
|
309 |
msgid "If empty:"
|
310 |
msgstr ""
|
311 |
|
312 |
-
#: system/mw_wp_form_admin_page.php:
|
313 |
msgid "From ( E-mail address )"
|
314 |
msgstr ""
|
315 |
|
316 |
-
#: system/mw_wp_form_admin_page.php:
|
317 |
msgid "Ccontent"
|
318 |
msgstr ""
|
319 |
|
320 |
-
#: system/mw_wp_form_admin_page.php:
|
321 |
-
msgid "{key} is converted form data."
|
322 |
-
msgstr ""
|
323 |
-
|
324 |
-
#: system/mw_wp_form_admin_page.php:408
|
325 |
msgid "Automatic reply email"
|
326 |
msgstr ""
|
327 |
|
328 |
-
#: system/mw_wp_form_admin_page.php:
|
329 |
-
msgid "
|
|
|
|
|
330 |
msgstr ""
|
331 |
|
332 |
-
#: system/mw_wp_form_admin_page.php:
|
333 |
msgid ""
|
334 |
"If Admin Email Options is a blank, Automatic Replay Email Options is used as "
|
335 |
"Admin Email Options."
|
336 |
msgstr ""
|
337 |
|
338 |
-
#: system/mw_wp_form_admin_page.php:
|
339 |
msgid "To ( E-mail address )"
|
340 |
msgstr ""
|
341 |
|
342 |
-
#: system/mw_wp_form_admin_page.php:
|
343 |
msgid "Input Page URL"
|
344 |
msgstr ""
|
345 |
|
346 |
-
#: system/mw_wp_form_admin_page.php:
|
347 |
msgid "Confirmation Page URL"
|
348 |
msgstr ""
|
349 |
|
350 |
-
#: system/mw_wp_form_admin_page.php:
|
351 |
msgid "Complete Page URL"
|
352 |
msgstr ""
|
353 |
|
354 |
-
#: system/mw_wp_form_admin_page.php:
|
355 |
msgid "Validation Error Page URL"
|
356 |
msgstr ""
|
357 |
|
358 |
-
#: system/mw_wp_form_admin_page.php:
|
359 |
msgid "Add Validation rule"
|
360 |
msgstr ""
|
361 |
|
362 |
-
#: system/mw_wp_form_admin_page.php:
|
363 |
msgid "The key which applies validation"
|
364 |
msgstr ""
|
365 |
|
366 |
-
#: system/mw_wp_form_admin_page.php:
|
367 |
msgid "No empty"
|
368 |
msgstr ""
|
369 |
|
370 |
-
#: system/mw_wp_form_admin_page.php:
|
371 |
msgid "No empty( with checkbox )"
|
372 |
msgstr ""
|
373 |
|
374 |
-
#: system/mw_wp_form_admin_page.php:
|
375 |
msgid "Numeric"
|
376 |
msgstr ""
|
377 |
|
378 |
-
#: system/mw_wp_form_admin_page.php:
|
379 |
msgid "Alphabet"
|
380 |
msgstr ""
|
381 |
|
382 |
-
#: system/mw_wp_form_admin_page.php:
|
383 |
msgid "Alphabet and Numeric"
|
384 |
msgstr ""
|
385 |
|
386 |
-
#: system/mw_wp_form_admin_page.php:
|
387 |
msgid "Japanese Katakana"
|
388 |
msgstr ""
|
389 |
|
390 |
-
#: system/mw_wp_form_admin_page.php:
|
391 |
msgid "Japanese Hiragana"
|
392 |
msgstr ""
|
393 |
|
394 |
-
#: system/mw_wp_form_admin_page.php:
|
395 |
msgid "E-mail"
|
396 |
msgstr ""
|
397 |
|
398 |
-
#: system/mw_wp_form_admin_page.php:
|
399 |
msgid "URL"
|
400 |
msgstr ""
|
401 |
|
402 |
-
#: system/mw_wp_form_admin_page.php:
|
403 |
msgid "Date"
|
404 |
msgstr ""
|
405 |
|
406 |
-
#: system/mw_wp_form_admin_page.php:
|
407 |
msgid "The key at same value"
|
408 |
msgstr ""
|
409 |
|
410 |
-
#: system/mw_wp_form_admin_page.php:
|
411 |
msgid "The range of the number of characters"
|
412 |
msgstr ""
|
413 |
|
414 |
-
#: system/mw_wp_form_admin_page.php:
|
415 |
msgid "The number of the minimum characters"
|
416 |
msgstr ""
|
417 |
|
418 |
-
#: system/mw_wp_form_admin_page.php:
|
419 |
msgid "Permitted Extension"
|
420 |
msgstr ""
|
421 |
|
422 |
-
#: system/mw_wp_form_admin_page.php:
|
423 |
msgid "Example:jpg or jpg,txt,…"
|
424 |
msgstr ""
|
425 |
|
426 |
-
#: system/mw_wp_form_admin_page.php:
|
427 |
msgid "Permitted file size"
|
428 |
msgstr ""
|
429 |
|
430 |
-
#: system/mw_wp_form_admin_page.php:
|
431 |
msgid "bytes"
|
432 |
msgstr ""
|
433 |
|
434 |
-
#: system/mw_wp_form_admin_page.php:
|
435 |
msgid "Select Style"
|
436 |
msgstr ""
|
437 |
|
@@ -471,7 +473,7 @@ msgstr ""
|
|
471 |
msgid "Memo"
|
472 |
msgstr ""
|
473 |
|
474 |
-
#: system/mw_wp_form_file.php:
|
475 |
msgid "Uploaded from "
|
476 |
msgstr ""
|
477 |
|
@@ -480,7 +482,7 @@ msgid "MW WP Form"
|
|
480 |
msgstr ""
|
481 |
|
482 |
#. Plugin URI of the plugin/theme
|
483 |
-
msgid "http://2inc.org/
|
484 |
msgstr ""
|
485 |
|
486 |
#. Description of the plugin/theme
|
1 |
+
# Copyright (C) 2014 MW WP Form
|
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.3.1\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
|
7 |
+
"POT-Creation-Date: 2014-01-16 07:57:31+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
|
12 |
"Last-Translator: Takashi Kitajima <inc@2inc.org>\n"
|
13 |
"Language-Team: Takashi Kitajima <inc@2inc.org>\n"
|
14 |
"Plural-Forms: nplurals=1; plural=0;\n"
|
56 |
msgid "File"
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: form_fields/mw_form_field_file.php:77 form_fields/mw_form_field_file.php:98
|
60 |
msgid "Uploaded."
|
61 |
msgstr ""
|
62 |
|
93 |
msgid "Confirm & Submit"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: form_fields/mw_form_field_tel.php:42 system/mw_wp_form_admin_page.php:542
|
97 |
msgid "Tel"
|
98 |
msgstr ""
|
99 |
|
105 |
msgid "Textarea"
|
106 |
msgstr ""
|
107 |
|
108 |
+
#: form_fields/mw_form_field_zip.php:42 system/mw_wp_form_admin_page.php:541
|
109 |
msgid "Zip Code"
|
110 |
msgstr ""
|
111 |
|
113 |
msgid "Shortcodes"
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: mw-wp-form.php:436
|
117 |
msgid "Validation Object is not a MW Validation Class."
|
118 |
msgstr ""
|
119 |
|
295 |
msgid "Input the key to use Akismet."
|
296 |
msgstr ""
|
297 |
|
298 |
+
#: system/mw_wp_form_admin_page.php:389 system/mw_wp_form_admin_page.php:425
|
299 |
+
msgid "{key} is converted form data."
|
300 |
+
msgstr ""
|
301 |
+
|
302 |
+
#: system/mw_wp_form_admin_page.php:392 system/mw_wp_form_admin_page.php:436
|
303 |
msgid "Subject"
|
304 |
msgstr ""
|
305 |
|
306 |
+
#: system/mw_wp_form_admin_page.php:396 system/mw_wp_form_admin_page.php:440
|
307 |
msgid "Sender"
|
308 |
msgstr ""
|
309 |
|
310 |
+
#: system/mw_wp_form_admin_page.php:398 system/mw_wp_form_admin_page.php:403
|
311 |
+
#: system/mw_wp_form_admin_page.php:433 system/mw_wp_form_admin_page.php:442
|
312 |
+
#: system/mw_wp_form_admin_page.php:447
|
313 |
msgid "If empty:"
|
314 |
msgstr ""
|
315 |
|
316 |
+
#: system/mw_wp_form_admin_page.php:401 system/mw_wp_form_admin_page.php:445
|
317 |
msgid "From ( E-mail address )"
|
318 |
msgstr ""
|
319 |
|
320 |
+
#: system/mw_wp_form_admin_page.php:406 system/mw_wp_form_admin_page.php:450
|
321 |
msgid "Ccontent"
|
322 |
msgstr ""
|
323 |
|
324 |
+
#: system/mw_wp_form_admin_page.php:410
|
|
|
|
|
|
|
|
|
325 |
msgid "Automatic reply email"
|
326 |
msgstr ""
|
327 |
|
328 |
+
#: system/mw_wp_form_admin_page.php:412
|
329 |
+
msgid ""
|
330 |
+
"Input the key to use as transmission to automatic reply email. {} is "
|
331 |
+
"unnecessary."
|
332 |
msgstr ""
|
333 |
|
334 |
+
#: system/mw_wp_form_admin_page.php:428
|
335 |
msgid ""
|
336 |
"If Admin Email Options is a blank, Automatic Replay Email Options is used as "
|
337 |
"Admin Email Options."
|
338 |
msgstr ""
|
339 |
|
340 |
+
#: system/mw_wp_form_admin_page.php:431
|
341 |
msgid "To ( E-mail address )"
|
342 |
msgstr ""
|
343 |
|
344 |
+
#: system/mw_wp_form_admin_page.php:466
|
345 |
msgid "Input Page URL"
|
346 |
msgstr ""
|
347 |
|
348 |
+
#: system/mw_wp_form_admin_page.php:472
|
349 |
msgid "Confirmation Page URL"
|
350 |
msgstr ""
|
351 |
|
352 |
+
#: system/mw_wp_form_admin_page.php:478
|
353 |
msgid "Complete Page URL"
|
354 |
msgstr ""
|
355 |
|
356 |
+
#: system/mw_wp_form_admin_page.php:484
|
357 |
msgid "Validation Error Page URL"
|
358 |
msgstr ""
|
359 |
|
360 |
+
#: system/mw_wp_form_admin_page.php:524
|
361 |
msgid "Add Validation rule"
|
362 |
msgstr ""
|
363 |
|
364 |
+
#: system/mw_wp_form_admin_page.php:530
|
365 |
msgid "The key which applies validation"
|
366 |
msgstr ""
|
367 |
|
368 |
+
#: system/mw_wp_form_admin_page.php:534
|
369 |
msgid "No empty"
|
370 |
msgstr ""
|
371 |
|
372 |
+
#: system/mw_wp_form_admin_page.php:535
|
373 |
msgid "No empty( with checkbox )"
|
374 |
msgstr ""
|
375 |
|
376 |
+
#: system/mw_wp_form_admin_page.php:536
|
377 |
msgid "Numeric"
|
378 |
msgstr ""
|
379 |
|
380 |
+
#: system/mw_wp_form_admin_page.php:537
|
381 |
msgid "Alphabet"
|
382 |
msgstr ""
|
383 |
|
384 |
+
#: system/mw_wp_form_admin_page.php:538
|
385 |
msgid "Alphabet and Numeric"
|
386 |
msgstr ""
|
387 |
|
388 |
+
#: system/mw_wp_form_admin_page.php:539
|
389 |
msgid "Japanese Katakana"
|
390 |
msgstr ""
|
391 |
|
392 |
+
#: system/mw_wp_form_admin_page.php:540
|
393 |
msgid "Japanese Hiragana"
|
394 |
msgstr ""
|
395 |
|
396 |
+
#: system/mw_wp_form_admin_page.php:543
|
397 |
msgid "E-mail"
|
398 |
msgstr ""
|
399 |
|
400 |
+
#: system/mw_wp_form_admin_page.php:544
|
401 |
msgid "URL"
|
402 |
msgstr ""
|
403 |
|
404 |
+
#: system/mw_wp_form_admin_page.php:545
|
405 |
msgid "Date"
|
406 |
msgstr ""
|
407 |
|
408 |
+
#: system/mw_wp_form_admin_page.php:549
|
409 |
msgid "The key at same value"
|
410 |
msgstr ""
|
411 |
|
412 |
+
#: system/mw_wp_form_admin_page.php:553
|
413 |
msgid "The range of the number of characters"
|
414 |
msgstr ""
|
415 |
|
416 |
+
#: system/mw_wp_form_admin_page.php:561
|
417 |
msgid "The number of the minimum characters"
|
418 |
msgstr ""
|
419 |
|
420 |
+
#: system/mw_wp_form_admin_page.php:565
|
421 |
msgid "Permitted Extension"
|
422 |
msgstr ""
|
423 |
|
424 |
+
#: system/mw_wp_form_admin_page.php:566
|
425 |
msgid "Example:jpg or jpg,txt,…"
|
426 |
msgstr ""
|
427 |
|
428 |
+
#: system/mw_wp_form_admin_page.php:569
|
429 |
msgid "Permitted file size"
|
430 |
msgstr ""
|
431 |
|
432 |
+
#: system/mw_wp_form_admin_page.php:570
|
433 |
msgid "bytes"
|
434 |
msgstr ""
|
435 |
|
436 |
+
#: system/mw_wp_form_admin_page.php:586
|
437 |
msgid "Select Style"
|
438 |
msgstr ""
|
439 |
|
473 |
msgid "Memo"
|
474 |
msgstr ""
|
475 |
|
476 |
+
#: system/mw_wp_form_file.php:152
|
477 |
msgid "Uploaded from "
|
478 |
msgstr ""
|
479 |
|
482 |
msgstr ""
|
483 |
|
484 |
#. Plugin URI of the plugin/theme
|
485 |
+
msgid "http://plugins.2inc.org/mw-wp-form/"
|
486 |
msgstr ""
|
487 |
|
488 |
#. 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.3.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : September 25, 2012
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: MW WP Form
|
4 |
+
* Plugin URI: http://plugins.2inc.org/mw-wp-form/
|
5 |
* Description: MW WP Form can create mail form with a confirmation screen.
|
6 |
+
* Version: 1.3.1
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : September 25, 2012
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -47,6 +47,11 @@ Do you have questions or issues with MW WP Form? Use these support channels appr
|
|
47 |
|
48 |
== Changelog ==
|
49 |
|
|
|
|
|
|
|
|
|
|
|
50 |
= 1.3.0 =
|
51 |
* Added : 自動返信メール設定、管理者宛メール設定で本文の以外の項目にも{キー}を使用可能に
|
52 |
|
4 |
Tags: plugin, form, confirm, preview, shortcode
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 3.8.0
|
7 |
+
Stable tag: 1.3.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
47 |
|
48 |
== Changelog ==
|
49 |
|
50 |
+
= 1.3.1 =
|
51 |
+
* Added : Support attribute id in text, textarea, radio, checkbox, select, datepicker, file, image, password shortcode.
|
52 |
+
* Added : Support attribute placeholder in password shortcode.
|
53 |
+
* Changed : Change dmin page sentence.
|
54 |
+
|
55 |
= 1.3.0 =
|
56 |
* Added : 自動返信メール設定、管理者宛メール設定で本文の以外の項目にも{キー}を使用可能に
|
57 |
|
system/mw_form.php
CHANGED
@@ -3,14 +3,14 @@
|
|
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:
|
11 |
* License: GPL2
|
12 |
*
|
13 |
-
* Copyright
|
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
|
@@ -346,6 +346,7 @@ class MW_Form {
|
|
346 |
*/
|
347 |
public function text( $name, $options = array() ) {
|
348 |
$defaults = array(
|
|
|
349 |
'size' => 60,
|
350 |
'maxlength' => 255,
|
351 |
'value' => '',
|
@@ -357,21 +358,20 @@ class MW_Form {
|
|
357 |
if ( is_null( $value ) ) {
|
358 |
$value = $options['value'];
|
359 |
}
|
360 |
-
$placeholder = '';
|
361 |
-
if ( !empty( $options['placeholder'] ) ) {
|
362 |
-
$placeholder = 'placeholder="' . esc_attr( $options['placeholder'] ) . '"';
|
363 |
-
}
|
364 |
$dataConvHalfAlphanumeric = null;
|
365 |
if ( $options['conv-half-alphanumeric'] === true ) {
|
366 |
$dataConvHalfAlphanumeric = 'data-conv-half-alphanumeric="true"';
|
367 |
}
|
368 |
-
|
|
|
369 |
esc_attr( $name ),
|
370 |
esc_attr( $value ),
|
371 |
esc_attr( $options['size'] ),
|
372 |
esc_attr( $options['maxlength'] ),
|
373 |
$placeholder,
|
374 |
-
$dataConvHalfAlphanumeric
|
|
|
375 |
);
|
376 |
}
|
377 |
|
@@ -402,17 +402,26 @@ class MW_Form {
|
|
402 |
*/
|
403 |
public function password( $name, $options = array() ) {
|
404 |
$defaults = array(
|
|
|
405 |
'size' => 60,
|
406 |
'maxlength' => 255,
|
407 |
'value' => '',
|
|
|
408 |
);
|
409 |
$options = array_merge( $defaults, $options );
|
410 |
$value = $this->getValue( $name );
|
411 |
if ( is_null( $value ) ) {
|
412 |
$value = $options['value'];
|
413 |
}
|
414 |
-
|
415 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
416 |
);
|
417 |
}
|
418 |
|
@@ -530,6 +539,7 @@ class MW_Form {
|
|
530 |
*/
|
531 |
public function textarea( $name, $options = array() ) {
|
532 |
$defaults = array(
|
|
|
533 |
'cols' => 50,
|
534 |
'rows' => 5,
|
535 |
'value' => '',
|
@@ -540,15 +550,14 @@ class MW_Form {
|
|
540 |
if ( is_null( $value ) ) {
|
541 |
$value = $options['value'];
|
542 |
}
|
543 |
-
$placeholder = '';
|
544 |
-
|
545 |
-
|
546 |
-
}
|
547 |
-
return sprintf( '<textarea name="%s" cols="%d" rows="%d" %s>%s</textarea>',
|
548 |
esc_attr( $name ),
|
549 |
esc_attr( $options['cols'] ),
|
550 |
esc_attr( $options['rows'] ),
|
551 |
$placeholder,
|
|
|
552 |
esc_html( $value )
|
553 |
);
|
554 |
}
|
@@ -563,6 +572,7 @@ class MW_Form {
|
|
563 |
*/
|
564 |
public function select( $name, $children = array(), $options = array() ) {
|
565 |
$defaults = array(
|
|
|
566 |
'value' => ''
|
567 |
);
|
568 |
$options = array_merge( $defaults, $options );
|
@@ -570,7 +580,8 @@ class MW_Form {
|
|
570 |
if ( is_null( $value ) ) {
|
571 |
$value = $options['value'];
|
572 |
}
|
573 |
-
$
|
|
|
574 |
foreach ( $children as $key => $_value ) {
|
575 |
$selected = ( $key == $value )? ' selected="selected"' : '';
|
576 |
$_ret .= sprintf( '<option value="%s"%s>%s</option>',
|
@@ -591,6 +602,7 @@ class MW_Form {
|
|
591 |
*/
|
592 |
public function radio( $name, $children = array(), $options = array() ) {
|
593 |
$defaults = array(
|
|
|
594 |
'value' => ''
|
595 |
);
|
596 |
$options = array_merge( $defaults, $options );
|
@@ -598,11 +610,21 @@ class MW_Form {
|
|
598 |
if ( is_null( $value ) ) {
|
599 |
$value = $options['value'];
|
600 |
}
|
|
|
|
|
601 |
$_ret = '';
|
602 |
foreach ( $children as $key => $_value ) {
|
|
|
|
|
|
|
603 |
$checked = ( $key == $value )? ' checked="checked"' : '';
|
604 |
-
$_ret .= sprintf( '<label><input type="radio" name="%s" value="%s"%s />%s</label>',
|
605 |
-
|
|
|
|
|
|
|
|
|
|
|
606 |
);
|
607 |
}
|
608 |
return $_ret;
|
@@ -619,6 +641,7 @@ class MW_Form {
|
|
619 |
*/
|
620 |
public function checkbox( $name, $children = array(), $options = array(), $separator = ',' ) {
|
621 |
$defaults = array(
|
|
|
622 |
'value' => array()
|
623 |
);
|
624 |
$options = array_merge( $defaults, $options );
|
@@ -632,11 +655,21 @@ class MW_Form {
|
|
632 |
if ( !is_array( $value ) ) {
|
633 |
$value = explode( $separator, $value );
|
634 |
}
|
|
|
|
|
635 |
$_ret = '';
|
636 |
foreach ( $children as $key => $_value ) {
|
|
|
|
|
|
|
637 |
$checked = ( is_array( $value ) && in_array( $key, $value ) )? ' checked="checked"' : '';
|
638 |
-
$_ret .= sprintf( '<label><input type="checkbox" name="%s" value="%s"%s />%s</label>',
|
639 |
-
|
|
|
|
|
|
|
|
|
|
|
640 |
);
|
641 |
}
|
642 |
$_ret .= $this->separator( $name, $separator );
|
@@ -674,6 +707,7 @@ class MW_Form {
|
|
674 |
*/
|
675 |
public function datepicker( $name, $options = array() ) {
|
676 |
$defaults = array(
|
|
|
677 |
'size' => 30,
|
678 |
'js' => '',
|
679 |
'value' => '',
|
@@ -683,8 +717,9 @@ class MW_Form {
|
|
683 |
if ( is_null( $value ) ) {
|
684 |
$value = $options['value'];
|
685 |
}
|
686 |
-
$
|
687 |
-
|
|
|
688 |
);
|
689 |
$_ret .= sprintf( '
|
690 |
<script type="text/javascript">
|
@@ -705,11 +740,57 @@ class MW_Form {
|
|
705 |
*/
|
706 |
public function file( $name, $options = array() ) {
|
707 |
$defaults = array(
|
|
|
708 |
'size' => 60,
|
709 |
);
|
|
|
710 |
$options = array_merge( $defaults, $options );
|
711 |
-
return sprintf( '<input type="file" name="%s" size="%d" />',
|
712 |
-
esc_attr( $name ), esc_attr( $options['size'] )
|
713 |
);
|
714 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
715 |
}
|
3 |
* Name: MW Form
|
4 |
* URI: http://2inc.org
|
5 |
* Description: フォームクラス
|
6 |
+
* Version: 1.3.10
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : September 25, 2012
|
10 |
+
* Modified: January 16, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
+
* Copyright 2014 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
|
346 |
*/
|
347 |
public function text( $name, $options = array() ) {
|
348 |
$defaults = array(
|
349 |
+
'id' => '',
|
350 |
'size' => 60,
|
351 |
'maxlength' => 255,
|
352 |
'value' => '',
|
358 |
if ( is_null( $value ) ) {
|
359 |
$value = $options['value'];
|
360 |
}
|
361 |
+
$placeholder = $this->get_attr_placeholder( $options['placeholder'] );
|
|
|
|
|
|
|
362 |
$dataConvHalfAlphanumeric = null;
|
363 |
if ( $options['conv-half-alphanumeric'] === true ) {
|
364 |
$dataConvHalfAlphanumeric = 'data-conv-half-alphanumeric="true"';
|
365 |
}
|
366 |
+
$id = $this->get_attr_id( $options['id'] );
|
367 |
+
return sprintf( '<input type="text" name="%s" value="%s" size="%d" maxlength="%d" %s %s %s />',
|
368 |
esc_attr( $name ),
|
369 |
esc_attr( $value ),
|
370 |
esc_attr( $options['size'] ),
|
371 |
esc_attr( $options['maxlength'] ),
|
372 |
$placeholder,
|
373 |
+
$dataConvHalfAlphanumeric,
|
374 |
+
$id
|
375 |
);
|
376 |
}
|
377 |
|
402 |
*/
|
403 |
public function password( $name, $options = array() ) {
|
404 |
$defaults = array(
|
405 |
+
'id' => '',
|
406 |
'size' => 60,
|
407 |
'maxlength' => 255,
|
408 |
'value' => '',
|
409 |
+
'placeholder' => '',
|
410 |
);
|
411 |
$options = array_merge( $defaults, $options );
|
412 |
$value = $this->getValue( $name );
|
413 |
if ( is_null( $value ) ) {
|
414 |
$value = $options['value'];
|
415 |
}
|
416 |
+
$placeholder = $this->get_attr_placeholder( $options['placeholder'] );
|
417 |
+
$id = $this->get_attr_id( $options['id'] );
|
418 |
+
return sprintf( '<input type="password" name="%s" value="%s" size="%d" maxlength="%d" %s %s />',
|
419 |
+
esc_attr( $name ),
|
420 |
+
esc_attr( $value ),
|
421 |
+
esc_attr( $options['size'] ),
|
422 |
+
esc_attr( $options['maxlength'] ),
|
423 |
+
$placeholder,
|
424 |
+
$id
|
425 |
);
|
426 |
}
|
427 |
|
539 |
*/
|
540 |
public function textarea( $name, $options = array() ) {
|
541 |
$defaults = array(
|
542 |
+
'id' => '',
|
543 |
'cols' => 50,
|
544 |
'rows' => 5,
|
545 |
'value' => '',
|
550 |
if ( is_null( $value ) ) {
|
551 |
$value = $options['value'];
|
552 |
}
|
553 |
+
$placeholder = $this->get_attr_placeholder( $options['placeholder'] );
|
554 |
+
$id = $this->get_attr_id( $options['id'] );
|
555 |
+
return sprintf( '<textarea name="%s" cols="%d" rows="%d" %s %s>%s</textarea>',
|
|
|
|
|
556 |
esc_attr( $name ),
|
557 |
esc_attr( $options['cols'] ),
|
558 |
esc_attr( $options['rows'] ),
|
559 |
$placeholder,
|
560 |
+
$id,
|
561 |
esc_html( $value )
|
562 |
);
|
563 |
}
|
572 |
*/
|
573 |
public function select( $name, $children = array(), $options = array() ) {
|
574 |
$defaults = array(
|
575 |
+
'id' => '',
|
576 |
'value' => ''
|
577 |
);
|
578 |
$options = array_merge( $defaults, $options );
|
580 |
if ( is_null( $value ) ) {
|
581 |
$value = $options['value'];
|
582 |
}
|
583 |
+
$id = $this->get_attr_id( $options['id'] );
|
584 |
+
$_ret = sprintf( '<select name="%s" %s>', esc_attr( $name ), $id );
|
585 |
foreach ( $children as $key => $_value ) {
|
586 |
$selected = ( $key == $value )? ' selected="selected"' : '';
|
587 |
$_ret .= sprintf( '<option value="%s"%s>%s</option>',
|
602 |
*/
|
603 |
public function radio( $name, $children = array(), $options = array() ) {
|
604 |
$defaults = array(
|
605 |
+
'id' => '',
|
606 |
'value' => ''
|
607 |
);
|
608 |
$options = array_merge( $defaults, $options );
|
610 |
if ( is_null( $value ) ) {
|
611 |
$value = $options['value'];
|
612 |
}
|
613 |
+
|
614 |
+
$i = 0;
|
615 |
$_ret = '';
|
616 |
foreach ( $children as $key => $_value ) {
|
617 |
+
$i ++;
|
618 |
+
$id = $this->get_attr_id( $options['id'], $i );
|
619 |
+
$for = $this->get_attr_for( $options['id'], $i );
|
620 |
$checked = ( $key == $value )? ' checked="checked"' : '';
|
621 |
+
$_ret .= sprintf( '<label %s><input type="radio" name="%s" value="%s"%s %s />%s</label>',
|
622 |
+
$for,
|
623 |
+
esc_attr( $name ),
|
624 |
+
esc_attr( $key ),
|
625 |
+
$checked,
|
626 |
+
$id,
|
627 |
+
esc_html( $_value )
|
628 |
);
|
629 |
}
|
630 |
return $_ret;
|
641 |
*/
|
642 |
public function checkbox( $name, $children = array(), $options = array(), $separator = ',' ) {
|
643 |
$defaults = array(
|
644 |
+
'id' => '',
|
645 |
'value' => array()
|
646 |
);
|
647 |
$options = array_merge( $defaults, $options );
|
655 |
if ( !is_array( $value ) ) {
|
656 |
$value = explode( $separator, $value );
|
657 |
}
|
658 |
+
|
659 |
+
$i = 0;
|
660 |
$_ret = '';
|
661 |
foreach ( $children as $key => $_value ) {
|
662 |
+
$i ++;
|
663 |
+
$id = $this->get_attr_id( $options['id'], $i );
|
664 |
+
$for = $this->get_attr_for( $options['id'], $i );
|
665 |
$checked = ( is_array( $value ) && in_array( $key, $value ) )? ' checked="checked"' : '';
|
666 |
+
$_ret .= sprintf( '<label %s><input type="checkbox" name="%s" value="%s"%s %s />%s</label>',
|
667 |
+
$for,
|
668 |
+
esc_attr( $name.'[data][]' ),
|
669 |
+
esc_attr( $key ),
|
670 |
+
$checked,
|
671 |
+
$id,
|
672 |
+
esc_html( $_value )
|
673 |
);
|
674 |
}
|
675 |
$_ret .= $this->separator( $name, $separator );
|
707 |
*/
|
708 |
public function datepicker( $name, $options = array() ) {
|
709 |
$defaults = array(
|
710 |
+
'id' => '',
|
711 |
'size' => 30,
|
712 |
'js' => '',
|
713 |
'value' => '',
|
717 |
if ( is_null( $value ) ) {
|
718 |
$value = $options['value'];
|
719 |
}
|
720 |
+
$id = $this->get_attr_id( $options['id'] );
|
721 |
+
$_ret = sprintf( '<input type="text" name="%s" value="%s" size="%d" %s />',
|
722 |
+
esc_attr( $name ), esc_attr( $value ), esc_attr( $options['size'] ), $id
|
723 |
);
|
724 |
$_ret .= sprintf( '
|
725 |
<script type="text/javascript">
|
740 |
*/
|
741 |
public function file( $name, $options = array() ) {
|
742 |
$defaults = array(
|
743 |
+
'id' => '',
|
744 |
'size' => 60,
|
745 |
);
|
746 |
+
$id = $this->get_attr_id( $options['id'] );
|
747 |
$options = array_merge( $defaults, $options );
|
748 |
+
return sprintf( '<input type="file" name="%s" size="%d" %s />',
|
749 |
+
esc_attr( $name ), esc_attr( $options['size'] ), $id
|
750 |
);
|
751 |
}
|
752 |
+
|
753 |
+
/**
|
754 |
+
* get_attr_id
|
755 |
+
* ID属性を返す
|
756 |
+
* @param string $id
|
757 |
+
* @param string $suffix
|
758 |
+
* @return string id="hoge"
|
759 |
+
*/
|
760 |
+
protected function get_attr_id( $id, $suffix = '' ) {
|
761 |
+
if ( !empty( $id ) ) {
|
762 |
+
if ( $suffix ) {
|
763 |
+
$id .= '-' . $suffix;
|
764 |
+
}
|
765 |
+
return 'id="' . esc_attr( $id ) . '"';
|
766 |
+
}
|
767 |
+
}
|
768 |
+
|
769 |
+
/**
|
770 |
+
* get_attr_for
|
771 |
+
* for属性を返す
|
772 |
+
* @param string $id
|
773 |
+
* @param string $suffix
|
774 |
+
* @return string for="hoge"
|
775 |
+
*/
|
776 |
+
protected function get_attr_for( $id, $suffix = '' ) {
|
777 |
+
if ( !empty( $id ) ) {
|
778 |
+
if ( $suffix ) {
|
779 |
+
$id .= '-' . $suffix;
|
780 |
+
}
|
781 |
+
return 'for="' . esc_attr( $id ) . '"';
|
782 |
+
}
|
783 |
+
}
|
784 |
+
|
785 |
+
/**
|
786 |
+
* get_attr_placeholder
|
787 |
+
* placeholder属性を返す
|
788 |
+
* @param string $placeholder
|
789 |
+
* @return string placeholder="hoge"
|
790 |
+
*/
|
791 |
+
protected function get_attr_placeholder( $placeholder ) {
|
792 |
+
if ( !empty( $placeholder ) ) {
|
793 |
+
return 'placeholder="' . esc_attr( $placeholder ) . '"';
|
794 |
+
}
|
795 |
+
}
|
796 |
}
|
system/mw_wp_form_admin_page.php
CHANGED
@@ -3,14 +3,14 @@
|
|
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
|
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
|
@@ -385,6 +385,9 @@ class MW_WP_Form_Admin_Page {
|
|
385 |
public function add_mail_options() {
|
386 |
global $post;
|
387 |
?>
|
|
|
|
|
|
|
388 |
<p>
|
389 |
<b><?php _e( 'Subject', MWF_Config::DOMAIN ); ?></b><br />
|
390 |
<input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[mail_subject]" value="<?php echo esc_attr( $this->get_post_data( 'mail_subject' ) ); ?>" />
|
@@ -401,13 +404,12 @@ class MW_WP_Form_Admin_Page {
|
|
401 |
</p>
|
402 |
<p>
|
403 |
<b><?php _e( 'Ccontent', MWF_Config::DOMAIN ); ?></b><br />
|
404 |
-
<textarea name="<?php echo esc_attr( MWF_Config::NAME ); ?>[mail_content]" cols="30" rows="10"><?php echo esc_attr( $this->get_post_data( 'mail_content' ) ); ?></textarea
|
405 |
-
<span class="mwf_note"><?php _e( '{key} is converted form data.', MWF_Config::DOMAIN ); ?></span>
|
406 |
</p>
|
407 |
<p>
|
408 |
<b><?php _e( 'Automatic reply email', MWF_Config::DOMAIN ); ?></b><br />
|
409 |
<input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[automatic_reply_email]" value="<?php echo esc_attr( $this->get_post_data( 'automatic_reply_email') ); ?>" /><br />
|
410 |
-
<span class="mwf_note"><?php _e( 'Input the key to use as transmission to automatic reply email.', MWF_Config::DOMAIN ); ?></span>
|
411 |
</p>
|
412 |
<?php
|
413 |
}
|
@@ -419,6 +421,9 @@ class MW_WP_Form_Admin_Page {
|
|
419 |
public function add_admin_mail_options() {
|
420 |
global $post;
|
421 |
?>
|
|
|
|
|
|
|
422 |
<p>
|
423 |
<?php _e( 'If Admin Email Options is a blank, Automatic Replay Email Options is used as Admin Email Options.', MWF_Config::DOMAIN ); ?>
|
424 |
</p>
|
@@ -443,8 +448,7 @@ class MW_WP_Form_Admin_Page {
|
|
443 |
</p>
|
444 |
<p>
|
445 |
<b><?php _e( 'Ccontent', MWF_Config::DOMAIN ); ?></b><br />
|
446 |
-
<textarea name="<?php echo esc_attr( MWF_Config::NAME ); ?>[admin_mail_content]" cols="30" rows="10"><?php echo esc_attr( $this->get_post_data( 'admin_mail_content' ) ); ?></textarea
|
447 |
-
<span class="mwf_note"><?php _e( '{key} is converted form data.', MWF_Config::DOMAIN ); ?></span>
|
448 |
</p>
|
449 |
<?php
|
450 |
}
|
3 |
* Name: MW WP Form Admin Page
|
4 |
* URI: http://2inc.org
|
5 |
* Description: 管理画面クラス
|
6 |
+
* Version: 1.7.6
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : February 21, 2013
|
10 |
+
* Modified: January 15, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
+
* Copyright 2014 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
|
385 |
public function add_mail_options() {
|
386 |
global $post;
|
387 |
?>
|
388 |
+
<p>
|
389 |
+
<?php _e( '{key} is converted form data.', MWF_Config::DOMAIN ); ?>
|
390 |
+
</p>
|
391 |
<p>
|
392 |
<b><?php _e( 'Subject', MWF_Config::DOMAIN ); ?></b><br />
|
393 |
<input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[mail_subject]" value="<?php echo esc_attr( $this->get_post_data( 'mail_subject' ) ); ?>" />
|
404 |
</p>
|
405 |
<p>
|
406 |
<b><?php _e( 'Ccontent', MWF_Config::DOMAIN ); ?></b><br />
|
407 |
+
<textarea name="<?php echo esc_attr( MWF_Config::NAME ); ?>[mail_content]" cols="30" rows="10"><?php echo esc_attr( $this->get_post_data( 'mail_content' ) ); ?></textarea>
|
|
|
408 |
</p>
|
409 |
<p>
|
410 |
<b><?php _e( 'Automatic reply email', MWF_Config::DOMAIN ); ?></b><br />
|
411 |
<input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[automatic_reply_email]" value="<?php echo esc_attr( $this->get_post_data( 'automatic_reply_email') ); ?>" /><br />
|
412 |
+
<span class="mwf_note"><?php _e( 'Input the key to use as transmission to automatic reply email. {} is unnecessary.', MWF_Config::DOMAIN ); ?></span>
|
413 |
</p>
|
414 |
<?php
|
415 |
}
|
421 |
public function add_admin_mail_options() {
|
422 |
global $post;
|
423 |
?>
|
424 |
+
<p>
|
425 |
+
<?php _e( '{key} is converted form data.', MWF_Config::DOMAIN ); ?>
|
426 |
+
</p>
|
427 |
<p>
|
428 |
<?php _e( 'If Admin Email Options is a blank, Automatic Replay Email Options is used as Admin Email Options.', MWF_Config::DOMAIN ); ?>
|
429 |
</p>
|
448 |
</p>
|
449 |
<p>
|
450 |
<b><?php _e( 'Ccontent', MWF_Config::DOMAIN ); ?></b><br />
|
451 |
+
<textarea name="<?php echo esc_attr( MWF_Config::NAME ); ?>[admin_mail_content]" cols="30" rows="10"><?php echo esc_attr( $this->get_post_data( 'admin_mail_content' ) ); ?></textarea>
|
|
|
452 |
</p>
|
453 |
<?php
|
454 |
}
|