MW WP Form - Version 1.2.2

Version Description

  • Added :
Download this release

Release Info

Developer inc2734
Plugin Icon wp plugin MW WP Form
Version 1.2.2
Comparing to
See all releases

Code changes from version 1.2.1 to 1.2.2

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.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)
@@ -28,9 +28,21 @@
28
  class mw_form_field_akismet_error extends mw_form_field {
29
 
30
  /**
31
- * String $short_code_name
32
  */
33
- protected $short_code_name = 'mwform_akismet_error';
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  /**
36
  * setDefaults
@@ -57,17 +69,4 @@ class mw_form_field_akismet_error extends mw_form_field {
57
  */
58
  protected function confirmPage() {
59
  }
60
-
61
- /**
62
- * add_qtags
63
- * QTags.addButton を出力
64
- */
65
- protected function add_qtags() {
66
- ?>
67
- '<?php echo $this->short_code_name; ?>',
68
- '<?php _e( 'Akismet Error', MWF_Config::DOMAIN ); ?>',
69
- '[<?php echo $this->short_code_name; ?>]',
70
- ''
71
- <?php
72
- }
73
  }
3
  * Name: MW Form Field Akismet Error
4
  * URI: http://2inc.org
5
  * Description: Akismetのエラーを出力。
6
+ * Version: 1.1.3
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : June 21, 2013
10
+ * Modified: December 22, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
28
  class mw_form_field_akismet_error extends mw_form_field {
29
 
30
  /**
31
+ * String $shortcode_name
32
  */
33
+ protected $shortcode_name = 'mwform_akismet_error';
34
+
35
+ /**
36
+ * __construct
37
+ */
38
+ public function __construct() {
39
+ parent::__construct();
40
+ $this->set_qtags(
41
+ $this->shortcode_name,
42
+ 'Akismet Error',
43
+ $this->shortcode_name
44
+ );
45
+ }
46
 
47
  /**
48
  * setDefaults
69
  */
70
  protected function confirmPage() {
71
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  }
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.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)
@@ -28,9 +28,21 @@
28
  class mw_form_field_back_button extends mw_form_field {
29
 
30
  /**
31
- * String $short_code_name
32
  */
33
- protected $short_code_name = 'mwform_backButton';
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  /**
36
  * setDefaults
@@ -59,17 +71,4 @@ 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
-
63
- /**
64
- * add_qtags
65
- * QTags.addButton を出力
66
- */
67
- protected function add_qtags() {
68
- ?>
69
- '<?php echo $this->short_code_name; ?>',
70
- '<?php _e( 'Back', MWF_Config::DOMAIN ); ?>',
71
- '[<?php echo $this->short_code_name; ?>]',
72
- ''
73
- <?php
74
- }
75
  }
3
  * Name: MW Form Field Back Button
4
  * URI: http://2inc.org
5
  * Description: 戻るボタンを出力。
6
+ * Version: 1.2.3
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : December 14, 2012
10
+ * Modified: December 22, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
28
  class mw_form_field_back_button extends mw_form_field {
29
 
30
  /**
31
+ * String $shortcode_name
32
  */
33
+ protected $shortcode_name = 'mwform_backButton';
34
+
35
+ /**
36
+ * __construct
37
+ */
38
+ public function __construct() {
39
+ parent::__construct();
40
+ $this->set_qtags(
41
+ $this->shortcode_name,
42
+ 'Back',
43
+ $this->shortcode_name
44
+ );
45
+ }
46
 
47
  /**
48
  * setDefaults
71
  protected function confirmPage() {
72
  return $this->Form->submit( $this->Form->getBackButtonName(), $this->atts['value'] );
73
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  }
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.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)
@@ -28,9 +28,21 @@
28
  class mw_form_field_button extends mw_form_field {
29
 
30
  /**
31
- * String $short_code_name
32
  */
33
- protected $short_code_name = 'mwform_button';
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  /**
36
  * setDefaults
@@ -61,17 +73,4 @@ class mw_form_field_button extends mw_form_field {
61
  protected function confirmPage() {
62
  return $this->inputPage();
63
  }
64
-
65
- /**
66
- * add_qtags
67
- * QTags.addButton を出力
68
- */
69
- protected function add_qtags() {
70
- ?>
71
- '<?php echo $this->short_code_name; ?>',
72
- '<?php _e( 'Button', MWF_Config::DOMAIN ); ?>',
73
- '[<?php echo $this->short_code_name; ?> name=""]',
74
- ''
75
- <?php
76
- }
77
  }
3
  * Name: MW Form Field Button
4
  * URI: http://2inc.org
5
  * Description: ボタンを出力。
6
+ * Version: 1.2.3
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : December 14, 2012
10
+ * Modified: December 22, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
28
  class mw_form_field_button extends mw_form_field {
29
 
30
  /**
31
+ * String $shortcode_name
32
  */
33
+ protected $shortcode_name = 'mwform_button';
34
+
35
+ /**
36
+ * __construct
37
+ */
38
+ public function __construct() {
39
+ parent::__construct();
40
+ $this->set_qtags(
41
+ $this->shortcode_name,
42
+ 'Button',
43
+ $this->shortcode_name . ' name=""'
44
+ );
45
+ }
46
 
47
  /**
48
  * setDefaults
73
  protected function confirmPage() {
74
  return $this->inputPage();
75
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  }
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.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)
@@ -28,9 +28,21 @@
28
  class mw_form_field_checkbox extends mw_form_field {
29
 
30
  /**
31
- * String $short_code_name
32
  */
33
- protected $short_code_name = 'mwform_checkbox';
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  /**
36
  * setDefaults
@@ -75,17 +87,4 @@ class mw_form_field_checkbox extends mw_form_field {
75
  $_ret .= $this->Form->separator( $this->atts['name'] );
76
  return $_ret;
77
  }
78
-
79
- /**
80
- * add_qtags
81
- * QTags.addButton を出力
82
- */
83
- protected function add_qtags() {
84
- ?>
85
- '<?php echo $this->short_code_name; ?>',
86
- '<?php _e( 'Checkbox', MWF_Config::DOMAIN ); ?>',
87
- '[<?php echo $this->short_code_name; ?> name="" children=""]',
88
- ''
89
- <?php
90
- }
91
  }
3
  * Name: MW Form Field Checkbox
4
  * URI: http://2inc.org
5
  * Description: チェックボックスを出力。
6
+ * Version: 1.2.3
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : December 14, 2012
10
+ * Modified: December 22, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
28
  class mw_form_field_checkbox extends mw_form_field {
29
 
30
  /**
31
+ * String $shortcode_name
32
  */
33
+ protected $shortcode_name = 'mwform_checkbox';
34
+
35
+ /**
36
+ * __construct
37
+ */
38
+ public function __construct() {
39
+ parent::__construct();
40
+ $this->set_qtags(
41
+ $this->shortcode_name,
42
+ 'Checkbox',
43
+ $this->shortcode_name . ' name="" children=""'
44
+ );
45
+ }
46
 
47
  /**
48
  * setDefaults
87
  $_ret .= $this->Form->separator( $this->atts['name'] );
88
  return $_ret;
89
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  }
form_fields/mw_form_field_confirm_button.php CHANGED
@@ -3,11 +3,11 @@
3
  * Name: MW Form Field Confirm 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)
@@ -28,9 +28,21 @@
28
  class mw_form_field_confirm_button extends mw_form_field {
29
 
30
  /**
31
- * String $short_code_name
32
  */
33
- protected $short_code_name = 'mwform_confirmButton';
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  /**
36
  * setDefaults
@@ -59,17 +71,4 @@ class mw_form_field_confirm_button extends mw_form_field {
59
  */
60
  protected function confirmPage() {
61
  }
62
-
63
- /**
64
- * add_qtags
65
- * QTags.addButton を出力
66
- */
67
- protected function add_qtags() {
68
- ?>
69
- '<?php echo $this->short_code_name; ?>',
70
- '<?php _e( 'Confirm Button', MWF_Config::DOMAIN ); ?>',
71
- '[<?php echo $this->short_code_name; ?>]',
72
- ''
73
- <?php
74
- }
75
  }
3
  * Name: MW Form Field Confirm 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 22, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
28
  class mw_form_field_confirm_button extends mw_form_field {
29
 
30
  /**
31
+ * String $shortcode_name
32
  */
33
+ protected $shortcode_name = 'mwform_confirmButton';
34
+
35
+ /**
36
+ * __construct
37
+ */
38
+ public function __construct() {
39
+ parent::__construct();
40
+ $this->set_qtags(
41
+ $this->shortcode_name,
42
+ 'Confirm Button',
43
+ $this->shortcode_name
44
+ );
45
+ }
46
 
47
  /**
48
  * setDefaults
71
  */
72
  protected function confirmPage() {
73
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  }
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.3
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : December 14, 2012
10
- * Modified: December 20, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
@@ -28,9 +28,21 @@
28
  class mw_form_field_datepicker extends mw_form_field {
29
 
30
  /**
31
- * String $short_code_name
32
  */
33
- protected $short_code_name = 'mwform_datepicker';
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  /**
36
  * setDefaults
@@ -97,17 +109,4 @@ class mw_form_field_datepicker extends mw_form_field {
97
  $_ret .= $this->Form->hidden( $this->atts['name'], $value );
98
  return $_ret;
99
  }
100
-
101
- /**
102
- * add_qtags
103
- * QTags.addButton を出力
104
- */
105
- protected function add_qtags() {
106
- ?>
107
- '<?php echo $this->short_code_name; ?>',
108
- '<?php _e( 'Datepicker', MWF_Config::DOMAIN ); ?>',
109
- '[<?php echo $this->short_code_name; ?> name=""]',
110
- ''
111
- <?php
112
- }
113
  }
3
  * Name: MW Form Field Datepicker
4
  * URI: http://2inc.org
5
  * Description: datepickerを出力。
6
+ * Version: 1.2.4
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : December 14, 2012
10
+ * Modified: December 22, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
28
  class mw_form_field_datepicker extends mw_form_field {
29
 
30
  /**
31
+ * String $shortcode_name
32
  */
33
+ protected $shortcode_name = 'mwform_datepicker';
34
+
35
+ /**
36
+ * __construct
37
+ */
38
+ public function __construct() {
39
+ parent::__construct();
40
+ $this->set_qtags(
41
+ $this->shortcode_name,
42
+ 'Datepicker',
43
+ $this->shortcode_name . ' name=""'
44
+ );
45
+ }
46
 
47
  /**
48
  * setDefaults
109
  $_ret .= $this->Form->hidden( $this->atts['name'], $value );
110
  return $_ret;
111
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  }
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.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)
@@ -28,9 +28,21 @@
28
  class mw_form_field_error extends mw_form_field {
29
 
30
  /**
31
- * String $short_code_name
32
  */
33
- protected $short_code_name = 'mwform_error';
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  /**
36
  * setDefaults
@@ -64,17 +76,4 @@ class mw_form_field_error extends mw_form_field {
64
  */
65
  protected function confirmPage() {
66
  }
67
-
68
- /**
69
- * add_qtags
70
- * QTags.addButton を出力
71
- */
72
- protected function add_qtags() {
73
- ?>
74
- '<?php echo $this->short_code_name; ?>',
75
- '<?php _e( 'Error Message', MWF_Config::DOMAIN ); ?>',
76
- '[<?php echo $this->short_code_name; ?> keys=""]',
77
- ''
78
- <?php
79
- }
80
  }
3
  * Name: MW Form Field Error
4
  * URI: http://2inc.org
5
  * Description: エラーを出力。
6
+ * Version: 1.2.3
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : December 14, 2012
10
+ * Modified: December 22, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
28
  class mw_form_field_error extends mw_form_field {
29
 
30
  /**
31
+ * String $shortcode_name
32
  */
33
+ protected $shortcode_name = 'mwform_error';
34
+
35
+ /**
36
+ * __construct
37
+ */
38
+ public function __construct() {
39
+ parent::__construct();
40
+ $this->set_qtags(
41
+ $this->shortcode_name,
42
+ 'Error Message',
43
+ $this->shortcode_name . ' keys=""'
44
+ );
45
+ }
46
 
47
  /**
48
  * setDefaults
76
  */
77
  protected function confirmPage() {
78
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
79
  }
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.3
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : May 17, 2013
10
- * Modified: December 19, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
@@ -28,9 +28,21 @@
28
  class mw_form_field_file extends mw_form_field {
29
 
30
  /**
31
- * String $short_code_name
32
  */
33
- protected $short_code_name = 'mwform_file';
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  /**
36
  * setDefaults
@@ -88,17 +100,4 @@ class mw_form_field_file extends mw_form_field {
88
  }
89
  }
90
  }
91
-
92
- /**
93
- * add_qtags
94
- * QTags.addButton を出力
95
- */
96
- protected function add_qtags() {
97
- ?>
98
- '<?php echo $this->short_code_name; ?>',
99
- '<?php _e( 'File', MWF_Config::DOMAIN ); ?>',
100
- '[<?php echo $this->short_code_name; ?> name=""]',
101
- ''
102
- <?php
103
- }
104
  }
3
  * Name: MW Form Field File
4
  * URI: http://2inc.org
5
  * Description: 画像アップロードフィールドを出力。
6
+ * Version: 1.2.4
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : May 17, 2013
10
+ * Modified: December 22, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
28
  class mw_form_field_file extends mw_form_field {
29
 
30
  /**
31
+ * String $shortcode_name
32
  */
33
+ protected $shortcode_name = 'mwform_file';
34
+
35
+ /**
36
+ * __construct
37
+ */
38
+ public function __construct() {
39
+ parent::__construct();
40
+ $this->set_qtags(
41
+ $this->shortcode_name,
42
+ 'File',
43
+ $this->shortcode_name . ' name=""'
44
+ );
45
+ }
46
 
47
  /**
48
  * setDefaults
100
  }
101
  }
102
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  }
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.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)
@@ -28,9 +28,21 @@
28
  class mw_form_field_hidden extends mw_form_field {
29
 
30
  /**
31
- * String $short_code_name
32
  */
33
- protected $short_code_name = 'mwform_hidden';
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  /**
36
  * setDefaults
@@ -71,17 +83,4 @@ class mw_form_field_hidden extends mw_form_field {
71
  }
72
  return $echo_value . $this->Form->hidden( $this->atts['name'], $value );
73
  }
74
-
75
- /**
76
- * add_qtags
77
- * QTags.addButton を出力
78
- */
79
- protected function add_qtags() {
80
- ?>
81
- '<?php echo $this->short_code_name; ?>',
82
- '<?php _e( 'Hidden', MWF_Config::DOMAIN ); ?>',
83
- '[<?php echo $this->short_code_name; ?> name=""]',
84
- ''
85
- <?php
86
- }
87
  }
3
  * Name: MW Form Field Hidden
4
  * URI: http://2inc.org
5
  * Description: hiddenフィールドを出力。
6
+ * Version: 1.3.3
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : December 14, 2012
10
+ * Modified: December 22, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
28
  class mw_form_field_hidden extends mw_form_field {
29
 
30
  /**
31
+ * String $shortcode_name
32
  */
33
+ protected $shortcode_name = 'mwform_hidden';
34
+
35
+ /**
36
+ * __construct
37
+ */
38
+ public function __construct() {
39
+ parent::__construct();
40
+ $this->set_qtags(
41
+ $this->shortcode_name,
42
+ 'Hidden',
43
+ $this->shortcode_name . ' name=""'
44
+ );
45
+ }
46
 
47
  /**
48
  * setDefaults
83
  }
84
  return $echo_value . $this->Form->hidden( $this->atts['name'], $value );
85
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
86
  }
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.3
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : May 17, 2013
10
- * Modified: December 19, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
@@ -28,9 +28,21 @@
28
  class mw_form_field_image extends mw_form_field {
29
 
30
  /**
31
- * String $short_code_name
32
  */
33
- protected $short_code_name = 'mwform_image';
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  /**
36
  * setDefaults
@@ -89,17 +101,4 @@ class mw_form_field_image extends mw_form_field {
89
  }
90
  }
91
  }
92
-
93
- /**
94
- * add_qtags
95
- * QTags.addButton を出力
96
- */
97
- protected function add_qtags() {
98
- ?>
99
- '<?php echo $this->short_code_name; ?>',
100
- '<?php _e( 'Image', MWF_Config::DOMAIN ); ?>',
101
- '[<?php echo $this->short_code_name; ?> name=""]',
102
- ''
103
- <?php
104
- }
105
  }
3
  * Name: MW Form Field Image
4
  * URI: http://2inc.org
5
  * Description: 画像アップロードフィールドを出力。
6
+ * Version: 1.2.4
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : May 17, 2013
10
+ * Modified: December 22, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
28
  class mw_form_field_image extends mw_form_field {
29
 
30
  /**
31
+ * String $shortcode_name
32
  */
33
+ protected $shortcode_name = 'mwform_image';
34
+
35
+ /**
36
+ * __construct
37
+ */
38
+ public function __construct() {
39
+ parent::__construct();
40
+ $this->set_qtags(
41
+ $this->shortcode_name,
42
+ 'Image',
43
+ $this->shortcode_name . ' name=""'
44
+ );
45
+ }
46
 
47
  /**
48
  * setDefaults
101
  }
102
  }
103
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
104
  }
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.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)
@@ -28,9 +28,21 @@
28
  class mw_form_field_password extends mw_form_field {
29
 
30
  /**
31
- * String $short_code_name
32
  */
33
- protected $short_code_name = 'mwform_password';
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  /**
36
  * setDefaults
@@ -72,17 +84,4 @@ 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
-
76
- /**
77
- * add_qtags
78
- * QTags.addButton を出力
79
- */
80
- protected function add_qtags() {
81
- ?>
82
- '<?php echo $this->short_code_name; ?>',
83
- '<?php _e( 'Password', MWF_Config::DOMAIN ); ?>',
84
- '[<?php echo $this->short_code_name; ?> name=""]',
85
- ''
86
- <?php
87
- }
88
  }
3
  * Name: MW Form Field Password
4
  * URI: http://2inc.org
5
  * Description: パスワードフィールドを出力。
6
+ * Version: 1.2.3
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : December 14, 2012
10
+ * Modified: December 22, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
28
  class mw_form_field_password extends mw_form_field {
29
 
30
  /**
31
+ * String $shortcode_name
32
  */
33
+ protected $shortcode_name = 'mwform_password';
34
+
35
+ /**
36
+ * __construct
37
+ */
38
+ public function __construct() {
39
+ parent::__construct();
40
+ $this->set_qtags(
41
+ $this->shortcode_name,
42
+ 'Password',
43
+ $this->shortcode_name . ' name=""'
44
+ );
45
+ }
46
 
47
  /**
48
  * setDefaults
84
  $value = $this->Form->getValue( $this->atts['name'] );
85
  return '*****' . $this->Form->hidden( $this->atts['name'], $value );
86
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
87
  }
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.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)
@@ -28,9 +28,21 @@
28
  class mw_form_field_radio extends mw_form_field {
29
 
30
  /**
31
- * String $short_code_name
32
  */
33
- protected $short_code_name = 'mwform_radio';
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  /**
36
  * setDefaults
@@ -73,17 +85,4 @@ class mw_form_field_radio extends mw_form_field {
73
  $_ret .= $this->Form->hidden( $this->atts['name'], $value );
74
  return $_ret;
75
  }
76
-
77
- /**
78
- * add_qtags
79
- * QTags.addButton を出力
80
- */
81
- protected function add_qtags() {
82
- ?>
83
- '<?php echo $this->short_code_name; ?>',
84
- '<?php _e( 'Radio', MWF_Config::DOMAIN ); ?>',
85
- '[<?php echo $this->short_code_name; ?> name="" children=""]',
86
- ''
87
- <?php
88
- }
89
  }
3
  * Name: MW Form Field Radio
4
  * URI: http://2inc.org
5
  * Description: ラジオボタンを出力。
6
+ * Version: 1.2.3
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : December 14, 2012
10
+ * Modified: December 22, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
28
  class mw_form_field_radio extends mw_form_field {
29
 
30
  /**
31
+ * String $shortcode_name
32
  */
33
+ protected $shortcode_name = 'mwform_radio';
34
+
35
+ /**
36
+ * __construct
37
+ */
38
+ public function __construct() {
39
+ parent::__construct();
40
+ $this->set_qtags(
41
+ $this->shortcode_name,
42
+ 'Radio',
43
+ $this->shortcode_name . ' name="" children=""'
44
+ );
45
+ }
46
 
47
  /**
48
  * setDefaults
85
  $_ret .= $this->Form->hidden( $this->atts['name'], $value );
86
  return $_ret;
87
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
88
  }
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,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)
@@ -28,9 +28,21 @@
28
  class mw_form_field_select extends mw_form_field {
29
 
30
  /**
31
- * String $short_code_name
32
  */
33
- protected $short_code_name = 'mwform_select';
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  /**
36
  * setDefaults
@@ -73,17 +85,4 @@ class mw_form_field_select extends mw_form_field {
73
  $_ret .= $this->Form->hidden( $this->atts['name'], $value );
74
  return $_ret;
75
  }
76
-
77
- /**
78
- * add_qtags
79
- * QTags.addButton を出力
80
- */
81
- protected function add_qtags() {
82
- ?>
83
- '<?php echo $this->short_code_name; ?>',
84
- '<?php _e( 'Select', MWF_Config::DOMAIN ); ?>',
85
- '[<?php echo $this->short_code_name; ?> name="" children=""]',
86
- ''
87
- <?php
88
- }
89
  }
3
  * Name: MW Form Field Select
4
  * URI: http://2inc.org
5
  * Description: セレクトボックスを出力。
6
+ * Version: 1.2,3
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : December 14, 2012
10
+ * Modified: December 22, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
28
  class mw_form_field_select extends mw_form_field {
29
 
30
  /**
31
+ * String $shortcode_name
32
  */
33
+ protected $shortcode_name = 'mwform_select';
34
+
35
+ /**
36
+ * __construct
37
+ */
38
+ public function __construct() {
39
+ parent::__construct();
40
+ $this->set_qtags(
41
+ $this->shortcode_name,
42
+ 'Select',
43
+ $this->shortcode_name . ' name="" children=""'
44
+ );
45
+ }
46
 
47
  /**
48
  * setDefaults
85
  $_ret .= $this->Form->hidden( $this->atts['name'], $value );
86
  return $_ret;
87
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
88
  }
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.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)
@@ -28,9 +28,21 @@
28
  class mw_form_field_submit extends mw_form_field {
29
 
30
  /**
31
- * String $short_code_name
32
  */
33
- protected $short_code_name = 'mwform_submit';
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  /**
36
  * setDefaults
@@ -61,17 +73,4 @@ class mw_form_field_submit extends mw_form_field {
61
  protected function confirmPage() {
62
  return $this->inputPage( $this->atts );
63
  }
64
-
65
- /**
66
- * add_qtags
67
- * QTags.addButton を出力
68
- */
69
- protected function add_qtags() {
70
- ?>
71
- '<?php echo $this->short_code_name; ?>',
72
- '<?php _e( 'Submit Button', MWF_Config::DOMAIN ); ?>',
73
- '[<?php echo $this->short_code_name; ?> name="submit"]',
74
- ''
75
- <?php
76
- }
77
  }
3
  * Name: MW Form Field Submit Button
4
  * URI: http://2inc.org
5
  * Description: 送信ボタンを出力。
6
+ * Version: 1.2.3
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : December 14, 2012
10
+ * Modified: December 22, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
28
  class mw_form_field_submit extends mw_form_field {
29
 
30
  /**
31
+ * String $shortcode_name
32
  */
33
+ protected $shortcode_name = 'mwform_submit';
34
+
35
+ /**
36
+ * __construct
37
+ */
38
+ public function __construct() {
39
+ parent::__construct();
40
+ $this->set_qtags(
41
+ $this->shortcode_name,
42
+ 'Submit Button',
43
+ $this->shortcode_name .' name="submit"'
44
+ );
45
+ }
46
 
47
  /**
48
  * setDefaults
73
  protected function confirmPage() {
74
  return $this->inputPage( $this->atts );
75
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  }
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.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)
@@ -29,9 +29,21 @@
29
  class mw_form_field_submit_button extends mw_form_field {
30
 
31
  /**
32
- * String $short_code_name
33
  */
34
- protected $short_code_name = 'mwform_submitButton';
 
 
 
 
 
 
 
 
 
 
 
 
35
 
36
  /**
37
  * setDefaults
@@ -66,17 +78,4 @@ class mw_form_field_submit_button extends mw_form_field {
66
  protected function confirmPage() {
67
  return $this->Form->submit( $this->atts['name'], $this->atts['submit_value'] );
68
  }
69
-
70
- /**
71
- * add_qtags
72
- * QTags.addButton を出力
73
- */
74
- protected function add_qtags() {
75
- ?>
76
- '<?php echo $this->short_code_name; ?>',
77
- '<?php _e( 'Confirm &amp; Submit', MWF_Config::DOMAIN ); ?>',
78
- '[<?php echo $this->short_code_name; ?>]',
79
- ''
80
- <?php
81
- }
82
  }
4
  * URI: http://2inc.org
5
  * Description: サブミットボタンを出力。
6
  * Description: 確認ボタンと送信ボタンを自動出力。
7
+ * Version: 1.2.3
8
  * Author: Takashi Kitajima
9
  * Author URI: http://2inc.org
10
  * Created : December 14, 2012
11
+ * Modified: December 22, 2013
12
  * License: GPL2
13
  *
14
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
29
  class mw_form_field_submit_button extends mw_form_field {
30
 
31
  /**
32
+ * String $shortcode_name
33
  */
34
+ protected $shortcode_name = 'mwform_submitButton';
35
+
36
+ /**
37
+ * __construct
38
+ */
39
+ public function __construct() {
40
+ parent::__construct();
41
+ $this->set_qtags(
42
+ $this->shortcode_name,
43
+ 'Confirm &amp; Submit',
44
+ $this->shortcode_name
45
+ );
46
+ }
47
 
48
  /**
49
  * setDefaults
78
  protected function confirmPage() {
79
  return $this->Form->submit( $this->atts['name'], $this->atts['submit_value'] );
80
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  }
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.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)
@@ -28,9 +28,21 @@
28
  class mw_form_field_tel extends mw_form_field {
29
 
30
  /**
31
- * String $short_code_name
32
  */
33
- protected $short_code_name = 'mwform_tel';
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  /**
36
  * setDefaults
@@ -73,17 +85,4 @@ class mw_form_field_tel extends mw_form_field {
73
  $_ret .= $this->Form->separator( $this->atts['name'] );
74
  return $_ret;
75
  }
76
-
77
- /**
78
- * add_qtags
79
- * QTags.addButton を出力
80
- */
81
- protected function add_qtags() {
82
- ?>
83
- '<?php echo $this->short_code_name; ?>',
84
- '<?php _e( 'Tel', MWF_Config::DOMAIN ); ?>',
85
- '[<?php echo $this->short_code_name; ?> name=""]',
86
- ''
87
- <?php
88
- }
89
  }
3
  * Name: MW Form Field Tel
4
  * URI: http://2inc.org
5
  * Description: 電話番号フィールドを出力。
6
+ * Version: 1.2.3
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : December 14, 2012
10
+ * Modified: December 22, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
28
  class mw_form_field_tel extends mw_form_field {
29
 
30
  /**
31
+ * string $shortcode_name
32
  */
33
+ protected $shortcode_name = 'mwform_tel';
34
+
35
+ /**
36
+ * __construct
37
+ */
38
+ public function __construct() {
39
+ parent::__construct();
40
+ $this->set_qtags(
41
+ $this->shortcode_name,
42
+ 'Tel',
43
+ $this->shortcode_name .' name=""'
44
+ );
45
+ }
46
 
47
  /**
48
  * setDefaults
85
  $_ret .= $this->Form->separator( $this->atts['name'] );
86
  return $_ret;
87
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
88
  }
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.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)
@@ -28,9 +28,21 @@
28
  class mw_form_field_text extends mw_form_field {
29
 
30
  /**
31
- * String $short_code_name
32
  */
33
- protected $short_code_name = 'mwform_text';
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  /**
36
  * setDefaults
@@ -76,17 +88,4 @@ class mw_form_field_text extends mw_form_field {
76
  $_ret .= $this->Form->hidden( $this->atts['name'], $value );
77
  return $_ret;
78
  }
79
-
80
- /**
81
- * add_qtags
82
- * QTags.addButton を出力
83
- */
84
- protected function add_qtags() {
85
- ?>
86
- '<?php echo $this->short_code_name; ?>',
87
- '<?php _e( 'Text', MWF_Config::DOMAIN ); ?>',
88
- '[<?php echo $this->short_code_name; ?> name=""]',
89
- ''
90
- <?php
91
- }
92
  }
3
  * Name: MW Form Field Text
4
  * URI: http://2inc.org
5
  * Description: テキストフィールドを出力。
6
+ * Version: 1.2.3
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : December 14, 2012
10
+ * Modified: December 22, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
28
  class mw_form_field_text extends mw_form_field {
29
 
30
  /**
31
+ * String $shortcode_name
32
  */
33
+ protected $shortcode_name = 'mwform_text';
34
+
35
+ /**
36
+ * __construct
37
+ */
38
+ public function __construct() {
39
+ parent::__construct();
40
+ $this->set_qtags(
41
+ $this->shortcode_name,
42
+ 'Text',
43
+ $this->shortcode_name . ' name=""'
44
+ );
45
+ }
46
 
47
  /**
48
  * setDefaults
88
  $_ret .= $this->Form->hidden( $this->atts['name'], $value );
89
  return $_ret;
90
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
91
  }
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.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)
@@ -28,9 +28,21 @@
28
  class mw_form_field_textarea extends mw_form_field {
29
 
30
  /**
31
- * String $short_code_name
32
  */
33
- protected $short_code_name = 'mwform_textarea';
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  /**
36
  * setDefaults
@@ -76,17 +88,4 @@ class mw_form_field_textarea extends mw_form_field {
76
  $_ret .= $this->Form->hidden( $this->atts['name'], $value );
77
  return $_ret;
78
  }
79
-
80
- /**
81
- * add_qtags
82
- * QTags.addButton を出力
83
- */
84
- protected function add_qtags() {
85
- ?>
86
- '<?php echo $this->short_code_name; ?>',
87
- '<?php _e( 'Textarea', MWF_Config::DOMAIN ); ?>',
88
- '[<?php echo $this->short_code_name; ?> name=""]',
89
- ''
90
- <?php
91
- }
92
  }
3
  * Name: MW Form Field TextArea
4
  * URI: http://2inc.org
5
  * Description: テキストエリアを出力。
6
+ * Version: 1.2.3
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : December 14, 2012
10
+ * Modified: December 22, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
28
  class mw_form_field_textarea extends mw_form_field {
29
 
30
  /**
31
+ * String $shortcode_name
32
  */
33
+ protected $shortcode_name = 'mwform_textarea';
34
+
35
+ /**
36
+ * __construct
37
+ */
38
+ public function __construct() {
39
+ parent::__construct();
40
+ $this->set_qtags(
41
+ $this->shortcode_name,
42
+ 'Textarea',
43
+ $this->shortcode_name . ' name=""'
44
+ );
45
+ }
46
 
47
  /**
48
  * setDefaults
88
  $_ret .= $this->Form->hidden( $this->atts['name'], $value );
89
  return $_ret;
90
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
91
  }
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.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)
@@ -28,9 +28,21 @@
28
  class mw_form_field_zip extends mw_form_field {
29
 
30
  /**
31
- * String $short_code_name
32
  */
33
- protected $short_code_name = 'mwform_zip';
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  /**
36
  * setDefaults
@@ -73,17 +85,4 @@ class mw_form_field_zip extends mw_form_field {
73
  $_ret .= $this->Form->separator( $this->atts['name'] );
74
  return $_ret;
75
  }
76
-
77
- /**
78
- * add_qtags
79
- * QTags.addButton を出力
80
- */
81
- protected function add_qtags() {
82
- ?>
83
- '<?php echo $this->short_code_name; ?>',
84
- '<?php _e( 'Zip Code', MWF_Config::DOMAIN ); ?>',
85
- '[<?php echo $this->short_code_name; ?> name=""]',
86
- ''
87
- <?php
88
- }
89
  }
3
  * Name: MW Form Field Zip
4
  * URI: http://2inc.org
5
  * Description: 郵便番号フィールドを出力。
6
+ * Version: 1.2.3
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : December 14, 2012
10
+ * Modified: December 22, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
28
  class mw_form_field_zip extends mw_form_field {
29
 
30
  /**
31
+ * String $shortcode_name
32
  */
33
+ protected $shortcode_name = 'mwform_zip';
34
+
35
+ /**
36
+ * __construct
37
+ */
38
+ public function __construct() {
39
+ parent::__construct();
40
+ $this->set_qtags(
41
+ $this->shortcode_name,
42
+ 'Zip Code',
43
+ $this->shortcode_name .' name=""'
44
+ );
45
+ }
46
 
47
  /**
48
  * setDefaults
85
  $_ret .= $this->Form->separator( $this->atts['name'] );
86
  return $_ret;
87
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
88
  }
js/editor_plugin.js.php ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ require_once('../../../../wp-load.php');
3
+ require_once('../../../../wp-admin/includes/admin.php');
4
+ do_action( 'admin_init' );
5
+
6
+ if ( !is_user_logged_in() ) {
7
+ exit( 'You must be logged in to access this script.' );
8
+ }
9
+ header( 'Content-Type: text/javascript' );
10
+ ?>
11
+ ( function() {
12
+ tinymce.create( 'tinymce.plugins.<?php echo MW_WP_Form_Admin_Page::SHORTCODE_BUTTON_NAME; ?>', {
13
+
14
+ init: function( ed, url ) {
15
+ },
16
+
17
+ createControl: function( n, cm ) {
18
+ if ( n == '<?php echo MW_WP_Form_Admin_Page::SHORTCODE_BUTTON_NAME; ?>' ) {
19
+ var mlb = cm.createListBox( '<?php echo MW_WP_Form_Admin_Page::SHORTCODE_BUTTON_NAME; ?>List', {
20
+ title: '<?php _e( 'Shortcodes' ); ?>',
21
+ onselect: function( v ) {
22
+ tinyMCE.activeEditor.selection.setContent( '[' + v + ']' );
23
+ }
24
+ });
25
+
26
+ // Add some values to the list box
27
+ <?php
28
+ global $wp_filter;
29
+ foreach ( $wp_filter['mwform_add_shortcode'][10] as $functions ) {
30
+ foreach ( $functions as $function ) {
31
+ if ( method_exists( $function[0], 'get_qtags' ) ) {
32
+ $qtags = $function[0]->get_qtags();
33
+ ?>
34
+ mlb.add(
35
+ '<?php echo $qtags['display']; ?>',
36
+ '<?php echo $qtags['arg1'] . $qtags['arg2']; ?>'
37
+ );
38
+ <?
39
+ }
40
+ }
41
+ }
42
+ ?>
43
+ return mlb;
44
+ }
45
+ return null;
46
+ },
47
+
48
+ getInfo: function() {
49
+ return {
50
+ longname : 'MW WP Form Shortcode Selector',
51
+ author: 'Takashi Kitajima',
52
+ authorurl : 'http://2inc.org',
53
+ infourl: 'http://plugins.2inc.org/mw-wp-form/',
54
+ version: "1.0.0"
55
+ };
56
+ }
57
+ });
58
+
59
+ tinymce.PluginManager.add(
60
+ '<?php echo MW_WP_Form_Admin_Page::SHORTCODE_BUTTON_NAME; ?>',
61
+ tinymce.plugins.<?php echo MW_WP_Form_Admin_Page::SHORTCODE_BUTTON_NAME; ?>
62
+ );
63
+ } )();
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.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"
@@ -19,110 +19,41 @@ msgstr ""
19
  "X-Poedit-KeywordsList: __;_e;_x\n"
20
  "X-Poedit-SearchPath-0: ..\n"
21
 
22
- #: form_fields/mw_form_field_akismet_error.php:68
23
- msgid "Akismet Error"
24
- msgstr "Akismetエラー"
25
-
26
- #: form_fields/mw_form_field_back_button.php:42
27
- #: form_fields/mw_form_field_back_button.php:70
28
  msgid "Back"
29
  msgstr "戻る"
30
 
31
- #: form_fields/mw_form_field_button.php:72
32
- msgid "Button"
33
- msgstr "ボタン"
34
-
35
- #: form_fields/mw_form_field_checkbox.php:86
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 "日付"
51
-
52
- #: form_fields/mw_form_field_error.php:75
53
- msgid "Error Message"
54
- msgstr "エラーメッセージ"
55
-
56
- #: form_fields/mw_form_field_file.php:61 form_fields/mw_form_field_file.php:79
57
  msgid "Uploaded."
58
  msgstr "アップロードしました。"
59
 
60
- #: form_fields/mw_form_field_file.php:93
61
- msgid "File"
62
- msgstr "ファイルフィールド"
63
-
64
- #: form_fields/mw_form_field_hidden.php:82
65
- msgid "Hidden"
66
- msgstr "hiddenフィールド"
67
-
68
- #: form_fields/mw_form_field_image.php:93
69
- msgid "Image"
70
- msgstr "画像フィールド"
71
-
72
- #: form_fields/mw_form_field_password.php:83
73
- msgid "Password"
74
- msgstr "パスワードフィールド"
75
-
76
- #: form_fields/mw_form_field_radio.php:84
77
- msgid "Radio"
78
- msgstr "ラジオボタン"
79
-
80
- #: form_fields/mw_form_field_select.php:84
81
- msgid "Select"
82
- msgstr "セレクトボックス"
83
-
84
- #: form_fields/mw_form_field_submit.php:43
85
- #: form_fields/mw_form_field_submit_button.php:45
86
  msgid "Send"
87
  msgstr "送信する"
88
 
89
- #: form_fields/mw_form_field_submit.php:72
90
- msgid "Submit Button"
91
- msgstr "送信ボタン"
92
 
93
- #: form_fields/mw_form_field_submit_button.php:77
94
- msgid "Confirm &amp; 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
-
101
- #: form_fields/mw_form_field_text.php:85
102
- msgid "Text"
103
- msgstr "テキストフィールド"
104
-
105
- #: form_fields/mw_form_field_textarea.php:85
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
 
117
- #: system/mw_validation.php:74
118
  msgid "This is required."
119
  msgstr "必須項目です。"
120
 
121
- #: system/mw_validation.php:94 system/mw_validation.php:114
122
  msgid "Please enter."
123
  msgstr "未入力です。"
124
 
125
- #: system/mw_validation.php:138
126
  msgid "Please enter with a half-width alphabetic character."
127
  msgstr "半角英字で入力してください。"
128
 
@@ -130,19 +61,19 @@ msgstr "半角英字で入力してください。"
130
  msgid "Please enter with a half-width number."
131
  msgstr "半角数字で入力してください。"
132
 
133
- #: system/mw_validation.php:182
134
  msgid "Please enter with a half-width alphanumeric character."
135
  msgstr "半角英数字で入力してください。"
136
 
137
- #: system/mw_validation.php:204
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
 
@@ -154,7 +85,7 @@ msgstr "電話番号の形式ではありません。"
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
 
@@ -166,107 +97,107 @@ msgstr "一致しません。"
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."
@@ -275,57 +206,57 @@ msgstr ""
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,95 +264,107 @@ msgstr ""
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
 
@@ -457,7 +400,7 @@ msgstr "カスタムフィールド"
457
  msgid "Registed Date"
458
  msgstr "登録日時"
459
 
460
- #: system/mw_wp_form_contact_data_page.php:329
461
  msgid "Memo"
462
  msgstr "メモ"
463
 
@@ -486,6 +429,54 @@ msgstr ""
486
  msgid "http://2inc.org"
487
  msgstr ""
488
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
489
  #~ msgid "If empty: Using admin E-mail address."
490
  #~ msgstr "未入力の場合:管理者のE-mailアドレスを使用します。"
491
 
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.2\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
7
+ "POT-Creation-Date: 2013-12-22 05:38:38+00:00\n"
8
+ "PO-Revision-Date: 2013-12-22 14:40+0900\n"
9
  "Last-Translator: Takashi Kitajima <inc@2inc.org>\n"
10
  "Language-Team: Takashi Kitajima <inc@2inc.org>\n"
11
  "Language: ja\n"
19
  "X-Poedit-KeywordsList: __;_e;_x\n"
20
  "X-Poedit-SearchPath-0: ..\n"
21
 
22
+ #: form_fields/mw_form_field_back_button.php:54
 
 
 
 
 
23
  msgid "Back"
24
  msgstr "戻る"
25
 
26
+ #: form_fields/mw_form_field_confirm_button.php:54
27
+ #: form_fields/mw_form_field_submit_button.php:56
 
 
 
 
 
 
 
 
28
  msgid "Confirm"
29
  msgstr "確認画面へ"
30
 
31
+ #: form_fields/mw_form_field_file.php:75 form_fields/mw_form_field_file.php:96
 
 
 
 
 
 
 
 
 
 
 
 
32
  msgid "Uploaded."
33
  msgstr "アップロードしました。"
34
 
35
+ #: form_fields/mw_form_field_submit.php:55
36
+ #: form_fields/mw_form_field_submit_button.php:57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  msgid "Send"
38
  msgstr "送信する"
39
 
40
+ #: js/editor_plugin.js.php:20
41
+ msgid "Shortcodes"
42
+ msgstr "ショートコード"
43
 
44
+ #: mw-wp-form.php:424
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  msgid "Validation Object is not a MW Validation Class."
46
  msgstr ""
47
 
48
+ #: system/mw_validation.php:80
49
  msgid "This is required."
50
  msgstr "必須項目です。"
51
 
52
+ #: system/mw_validation.php:97 system/mw_validation.php:115
53
  msgid "Please enter."
54
  msgstr "未入力です。"
55
 
56
+ #: system/mw_validation.php:137
57
  msgid "Please enter with a half-width alphabetic character."
58
  msgstr "半角英字で入力してください。"
59
 
61
  msgid "Please enter with a half-width number."
62
  msgstr "半角数字で入力してください。"
63
 
64
+ #: system/mw_validation.php:183
65
  msgid "Please enter with a half-width alphanumeric character."
66
  msgstr "半角英数字で入力してください。"
67
 
68
+ #: system/mw_validation.php:206
69
  msgid "Please enter with a Japanese Katakana."
70
  msgstr "カタカナで入力してください。"
71
 
72
+ #: system/mw_validation.php:229
73
  msgid "Please enter with a Japanese Hiragana."
74
  msgstr "ひらがなで入力してください。"
75
 
76
+ #: system/mw_validation.php:248
77
  msgid "This is not the format of a zip code."
78
  msgstr "郵便番号の形式ではありません。"
79
 
85
  msgid "This is not the format of a mail address."
86
  msgstr "メールアドレスの形式ではありません。"
87
 
88
+ #: system/mw_validation.php:326
89
  msgid "This is not the format of a url."
90
  msgstr "URLの形式ではありません。"
91
 
97
  msgid "The number of characters is invalid."
98
  msgstr "文字数が正しくありません。"
99
 
100
+ #: system/mw_validation.php:409
101
  msgid "The number of characters is a few."
102
  msgstr "文字数が足りません。"
103
 
104
+ #: system/mw_validation.php:434
105
  msgid "This value is invalid."
106
  msgstr "値が不正です。"
107
 
108
+ #: system/mw_validation.php:457
109
  msgid "This is not the format of a date."
110
  msgstr "日付の形式ではありません。"
111
 
112
+ #: system/mw_validation.php:486
113
  msgid "This file is invalid."
114
  msgstr "許可されたファイルではありません。"
115
 
116
+ #: system/mw_validation.php:515
117
  msgid "This file size is too big."
118
  msgstr "ファイルサイズが大きすぎます。"
119
 
120
+ #: system/mw_validation.php:534
121
  msgid "The contents which you input were judged with spam."
122
  msgstr "あなたの入力した内容はスパムと判定されました。"
123
 
124
+ #: system/mw_wp_form_admin_page.php:85
125
  msgid "Your contribution is needed for making this plugin better."
126
  msgstr "あなたの貢献があればこのプラグインをもっと良くすることができます。"
127
 
128
+ #: system/mw_wp_form_admin_page.php:85
129
  msgid "Donate"
130
  msgstr "寄付する"
131
 
132
+ #: system/mw_wp_form_admin_page.php:127
133
  msgid "Add New Form"
134
  msgstr "フォームを追加"
135
 
136
+ #: system/mw_wp_form_admin_page.php:128
137
  msgid "Edit Form"
138
  msgstr "フォームを編集"
139
 
140
+ #: system/mw_wp_form_admin_page.php:129
141
  msgid "New Form"
142
  msgstr "新しいフォーム"
143
 
144
+ #: system/mw_wp_form_admin_page.php:130
145
  msgid "View Form"
146
  msgstr "フォームを表示"
147
 
148
+ #: system/mw_wp_form_admin_page.php:131
149
  msgid "Search Forms"
150
  msgstr "フォームを検索"
151
 
152
+ #: system/mw_wp_form_admin_page.php:132
153
  msgid "No Forms found"
154
  msgstr "フォームがありません"
155
 
156
+ #: system/mw_wp_form_admin_page.php:133
157
  msgid "No Forms found in Trash"
158
  msgstr "ゴミ箱にフォームはありません"
159
 
160
+ #: system/mw_wp_form_admin_page.php:153
161
  msgid "Complete Message"
162
  msgstr "完了画面メッセージ"
163
 
164
+ #: system/mw_wp_form_admin_page.php:160
165
  msgid "URL Options"
166
  msgstr "URL設定"
167
 
168
+ #: system/mw_wp_form_admin_page.php:167
169
  msgid "Validation Rule"
170
  msgstr "バリデーションルール"
171
 
172
+ #: system/mw_wp_form_admin_page.php:174
173
  msgid "Form Key"
174
  msgstr "フォーム識別子"
175
 
176
+ #: system/mw_wp_form_admin_page.php:181
177
  msgid "Automatic Reply Email Options"
178
  msgstr "自動返信メール設定"
179
 
180
+ #: system/mw_wp_form_admin_page.php:188
181
  msgid "Admin Email Options"
182
  msgstr "管理者宛メール設定"
183
 
184
+ #: system/mw_wp_form_admin_page.php:195
185
  msgid "settings"
186
  msgstr "設定"
187
 
188
+ #: system/mw_wp_form_admin_page.php:314
189
  msgid "Copy and Paste this shortcode."
190
  msgstr "このショートコードをコピー&ペーストしてください。"
191
 
192
+ #: system/mw_wp_form_admin_page.php:315
193
  msgid "The key to use with hook is "
194
  msgstr "各フックで使用する修飾子は"
195
 
196
+ #: system/mw_wp_form_admin_page.php:329
197
  msgid "Activate Query string of post"
198
  msgstr "URL引数を有効にする"
199
 
200
+ #: system/mw_wp_form_admin_page.php:330
201
  msgid ""
202
  "If this field is active, MW WP Form get query string. And get post data from "
203
  "query string \"post_id\". You can use $post's property in editor."
206
  "とに投稿を取得します。その投稿($post) のプロパティを使用できるようになりま"
207
  "す。"
208
 
209
+ #: system/mw_wp_form_admin_page.php:331
210
  msgid "Example: {ID}, {post_title}, {post_meta} etc..."
211
  msgstr "例:{ID}、{post_title}、{post_meta}など…"
212
 
213
+ #: system/mw_wp_form_admin_page.php:334
214
  msgid "Saving contact data in database"
215
  msgstr "問い合わせデータをデータベースに保存"
216
 
217
+ #: system/mw_wp_form_admin_page.php:338
218
  msgid "Akismet Setting"
219
  msgstr "Akismet 設定"
220
 
221
+ #: system/mw_wp_form_admin_page.php:353
222
  msgid "Input the key to use Akismet."
223
  msgstr "Akismetを使用する項目のキーを入力してください。"
224
 
225
+ #: system/mw_wp_form_admin_page.php:378 system/mw_wp_form_admin_page.php:420
226
  msgid "Subject"
227
  msgstr "件名"
228
 
229
+ #: system/mw_wp_form_admin_page.php:382 system/mw_wp_form_admin_page.php:424
230
  msgid "Sender"
231
  msgstr "送信者"
232
 
233
+ #: system/mw_wp_form_admin_page.php:384 system/mw_wp_form_admin_page.php:389
234
+ #: system/mw_wp_form_admin_page.php:417 system/mw_wp_form_admin_page.php:426
235
+ #: system/mw_wp_form_admin_page.php:431
236
  msgid "If empty:"
237
  msgstr "未入力の場合:"
238
 
239
+ #: system/mw_wp_form_admin_page.php:387 system/mw_wp_form_admin_page.php:429
240
  msgid "From ( E-mail address )"
241
  msgstr "送信元(E-mailアドレス)"
242
 
243
+ #: system/mw_wp_form_admin_page.php:392 system/mw_wp_form_admin_page.php:434
244
  msgid "Ccontent"
245
  msgstr "本文"
246
 
247
+ #: system/mw_wp_form_admin_page.php:394 system/mw_wp_form_admin_page.php:436
248
  msgid "{key} is converted form data."
249
  msgstr "{キー}でそのフォーム項目に変換されます。"
250
 
251
+ #: system/mw_wp_form_admin_page.php:397
252
  msgid "Automatic reply email"
253
  msgstr "自動返信メール"
254
 
255
+ #: system/mw_wp_form_admin_page.php:399
256
  msgid "Input the key to use as transmission to automatic reply email."
257
  msgstr "自動返信メールに使用する項目のキーを入力してください。"
258
 
259
+ #: system/mw_wp_form_admin_page.php:412
260
  msgid ""
261
  "If Admin Email Options is a blank, Automatic Replay Email Options is used as "
262
  "Admin Email Options."
264
  "管理者宛メール設定が空のときは自動返信メール設定が管理者宛メール設定が使用さ"
265
  "れます。"
266
 
267
+ #: system/mw_wp_form_admin_page.php:415
268
  msgid "To ( E-mail address )"
269
  msgstr "送信先(E-mailアドレス)"
270
 
271
+ #: system/mw_wp_form_admin_page.php:451
272
  msgid "Input Page URL"
273
  msgstr "入力画面URL"
274
 
275
+ #: system/mw_wp_form_admin_page.php:457
276
  msgid "Confirmation Page URL"
277
  msgstr "確認画面URL"
278
 
279
+ #: system/mw_wp_form_admin_page.php:463
280
  msgid "Complete Page URL"
281
  msgstr "完了画面URL"
282
 
283
+ #: system/mw_wp_form_admin_page.php:469
284
  msgid "Validation Error Page URL"
285
  msgstr "エラー画面URL"
286
 
287
+ #: system/mw_wp_form_admin_page.php:509
288
  msgid "Add Validation rule"
289
  msgstr "バリデーションルールを追加"
290
 
291
+ #: system/mw_wp_form_admin_page.php:515
292
  msgid "The key which applies validation"
293
  msgstr "バリデーションを適用する項目"
294
 
295
+ #: system/mw_wp_form_admin_page.php:519
296
  msgid "No empty"
297
  msgstr "必須項目"
298
 
299
+ #: system/mw_wp_form_admin_page.php:520
300
  msgid "No empty( with checkbox )"
301
  msgstr "必須項目(チェックボックス)"
302
 
303
+ #: system/mw_wp_form_admin_page.php:521
304
  msgid "Numeric"
305
  msgstr "半角数字"
306
 
307
+ #: system/mw_wp_form_admin_page.php:522
308
  msgid "Alphabet"
309
  msgstr "半角英字"
310
 
311
+ #: system/mw_wp_form_admin_page.php:523
312
  msgid "Alphabet and Numeric"
313
  msgstr "半角英数字"
314
 
315
+ #: system/mw_wp_form_admin_page.php:524
316
  msgid "Japanese Katakana"
317
  msgstr "カタカナ"
318
 
319
+ #: system/mw_wp_form_admin_page.php:525
320
  msgid "Japanese Hiragana"
321
  msgstr "ひらがな"
322
 
323
+ #: system/mw_wp_form_admin_page.php:526
324
+ msgid "Zip Code"
325
+ msgstr "郵便番号"
326
+
327
+ #: system/mw_wp_form_admin_page.php:527
328
+ msgid "Tel"
329
+ msgstr "電話番号"
330
+
331
+ #: system/mw_wp_form_admin_page.php:528
332
  msgid "E-mail"
333
  msgstr "メールアドレス"
334
 
335
+ #: system/mw_wp_form_admin_page.php:529
336
+ msgid "URL"
337
+ msgstr ""
338
+
339
+ #: system/mw_wp_form_admin_page.php:530
340
  msgid "Date"
341
  msgstr "日付"
342
 
343
+ #: system/mw_wp_form_admin_page.php:534
344
  msgid "The key at same value"
345
  msgstr "一致する項目"
346
 
347
+ #: system/mw_wp_form_admin_page.php:538
348
  msgid "The range of the number of characters"
349
  msgstr "文字数の範囲"
350
 
351
+ #: system/mw_wp_form_admin_page.php:546
352
  msgid "The number of the minimum characters"
353
  msgstr "最小文字数"
354
 
355
+ #: system/mw_wp_form_admin_page.php:550
356
  msgid "Permitted Extension"
357
  msgstr "拡張子制限"
358
 
359
+ #: system/mw_wp_form_admin_page.php:551
360
  msgid "Example:jpg or jpg,txt,…"
361
  msgstr "例:jpg もしくは jpg,txt…"
362
 
363
+ #: system/mw_wp_form_admin_page.php:554
364
  msgid "Permitted file size"
365
  msgstr "サイズ制限"
366
 
367
+ #: system/mw_wp_form_admin_page.php:555
368
  msgid "bytes"
369
  msgstr ""
370
 
400
  msgid "Registed Date"
401
  msgstr "登録日時"
402
 
403
+ #: system/mw_wp_form_contact_data_page.php:340
404
  msgid "Memo"
405
  msgstr "メモ"
406
 
429
  msgid "http://2inc.org"
430
  msgstr ""
431
 
432
+ #~ msgid "Akismet Error"
433
+ #~ msgstr "Akismetエラー"
434
+
435
+ #~ msgid "Button"
436
+ #~ msgstr "ボタン"
437
+
438
+ #~ msgid "Checkbox"
439
+ #~ msgstr "チェックボックス"
440
+
441
+ #~ msgid "Confirm Button"
442
+ #~ msgstr "確認ボタン"
443
+
444
+ #~ msgid "Datepicker"
445
+ #~ msgstr "日付"
446
+
447
+ #~ msgid "Error Message"
448
+ #~ msgstr "エラーメッセージ"
449
+
450
+ #~ msgid "File"
451
+ #~ msgstr "ファイルフィールド"
452
+
453
+ #~ msgid "Hidden"
454
+ #~ msgstr "hiddenフィールド"
455
+
456
+ #~ msgid "Image"
457
+ #~ msgstr "画像フィールド"
458
+
459
+ #~ msgid "Password"
460
+ #~ msgstr "パスワードフィールド"
461
+
462
+ #~ msgid "Radio"
463
+ #~ msgstr "ラジオボタン"
464
+
465
+ #~ msgid "Select"
466
+ #~ msgstr "セレクトボックス"
467
+
468
+ #~ msgid "Submit Button"
469
+ #~ msgstr "送信ボタン"
470
+
471
+ #~ msgid "Confirm &amp; Submit"
472
+ #~ msgstr "確認・送信"
473
+
474
+ #~ msgid "Text"
475
+ #~ msgstr "テキストフィールド"
476
+
477
+ #~ msgid "Textarea"
478
+ #~ msgstr "テキストエリア"
479
+
480
  #~ msgid "If empty: Using admin E-mail address."
481
  #~ msgstr "未入力の場合:管理者のE-mailアドレスを使用します。"
482
 
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.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"
@@ -18,110 +18,41 @@ msgstr ""
18
  "X-Poedit-KeywordsList: __;_e\n"
19
  "X-Poedit-SearchPath-0: ..\n"
20
 
21
- #: form_fields/mw_form_field_akismet_error.php:68
22
- msgid "Akismet Error"
23
- msgstr ""
24
-
25
- #: form_fields/mw_form_field_back_button.php:42
26
- #: form_fields/mw_form_field_back_button.php:70
27
  msgid "Back"
28
  msgstr ""
29
 
30
- #: form_fields/mw_form_field_button.php:72
31
- msgid "Button"
32
- msgstr ""
33
-
34
- #: form_fields/mw_form_field_checkbox.php:86
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 ""
50
-
51
- #: form_fields/mw_form_field_error.php:75
52
- msgid "Error Message"
53
- msgstr ""
54
-
55
- #: form_fields/mw_form_field_file.php:61 form_fields/mw_form_field_file.php:79
56
  msgid "Uploaded."
57
  msgstr ""
58
 
59
- #: form_fields/mw_form_field_file.php:93
60
- msgid "File"
61
- msgstr ""
62
-
63
- #: form_fields/mw_form_field_hidden.php:82
64
- msgid "Hidden"
65
- msgstr ""
66
-
67
- #: form_fields/mw_form_field_image.php:93
68
- msgid "Image"
69
- msgstr ""
70
-
71
- #: form_fields/mw_form_field_password.php:83
72
- msgid "Password"
73
- msgstr ""
74
-
75
- #: form_fields/mw_form_field_radio.php:84
76
- msgid "Radio"
77
- msgstr ""
78
-
79
- #: form_fields/mw_form_field_select.php:84
80
- msgid "Select"
81
- msgstr ""
82
-
83
- #: form_fields/mw_form_field_submit.php:43
84
- #: form_fields/mw_form_field_submit_button.php:45
85
  msgid "Send"
86
  msgstr ""
87
 
88
- #: form_fields/mw_form_field_submit.php:72
89
- msgid "Submit Button"
90
- msgstr ""
91
-
92
- #: form_fields/mw_form_field_submit_button.php:77
93
- msgid "Confirm &amp; 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
 
100
- #: form_fields/mw_form_field_text.php:85
101
- msgid "Text"
102
- msgstr ""
103
-
104
- #: form_fields/mw_form_field_textarea.php:85
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
 
116
- #: system/mw_validation.php:74
117
  msgid "This is required."
118
  msgstr ""
119
 
120
- #: system/mw_validation.php:94 system/mw_validation.php:114
121
  msgid "Please enter."
122
  msgstr ""
123
 
124
- #: system/mw_validation.php:138
125
  msgid "Please enter with a half-width alphabetic character."
126
  msgstr ""
127
 
@@ -129,19 +60,19 @@ msgstr ""
129
  msgid "Please enter with a half-width number."
130
  msgstr ""
131
 
132
- #: system/mw_validation.php:182
133
  msgid "Please enter with a half-width alphanumeric character."
134
  msgstr ""
135
 
136
- #: system/mw_validation.php:204
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
 
@@ -153,7 +84,7 @@ msgstr ""
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
 
@@ -165,257 +96,269 @@ msgstr ""
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
 
@@ -451,7 +394,7 @@ msgstr ""
451
  msgid "Registed Date"
452
  msgstr ""
453
 
454
- #: system/mw_wp_form_contact_data_page.php:329
455
  msgid "Memo"
456
  msgstr ""
457
 
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.2\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/mw-wp-form\n"
7
+ "POT-Creation-Date: 2013-12-22 05:38:38+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
18
  "X-Poedit-KeywordsList: __;_e\n"
19
  "X-Poedit-SearchPath-0: ..\n"
20
 
21
+ #: form_fields/mw_form_field_back_button.php:54
 
 
 
 
 
22
  msgid "Back"
23
  msgstr ""
24
 
25
+ #: form_fields/mw_form_field_confirm_button.php:54
26
+ #: form_fields/mw_form_field_submit_button.php:56
 
 
 
 
 
 
 
 
27
  msgid "Confirm"
28
  msgstr ""
29
 
30
+ #: form_fields/mw_form_field_file.php:75 form_fields/mw_form_field_file.php:96
 
 
 
 
 
 
 
 
 
 
 
 
31
  msgid "Uploaded."
32
  msgstr ""
33
 
34
+ #: form_fields/mw_form_field_submit.php:55
35
+ #: form_fields/mw_form_field_submit_button.php:57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  msgid "Send"
37
  msgstr ""
38
 
39
+ #: js/editor_plugin.js.php:20
40
+ msgid "Shortcodes"
 
 
 
 
 
 
 
 
41
  msgstr ""
42
 
43
+ #: mw-wp-form.php:424
 
 
 
 
 
 
 
 
 
 
 
 
44
  msgid "Validation Object is not a MW Validation Class."
45
  msgstr ""
46
 
47
+ #: system/mw_validation.php:80
48
  msgid "This is required."
49
  msgstr ""
50
 
51
+ #: system/mw_validation.php:97 system/mw_validation.php:115
52
  msgid "Please enter."
53
  msgstr ""
54
 
55
+ #: system/mw_validation.php:137
56
  msgid "Please enter with a half-width alphabetic character."
57
  msgstr ""
58
 
60
  msgid "Please enter with a half-width number."
61
  msgstr ""
62
 
63
+ #: system/mw_validation.php:183
64
  msgid "Please enter with a half-width alphanumeric character."
65
  msgstr ""
66
 
67
+ #: system/mw_validation.php:206
68
  msgid "Please enter with a Japanese Katakana."
69
  msgstr ""
70
 
71
+ #: system/mw_validation.php:229
72
  msgid "Please enter with a Japanese Hiragana."
73
  msgstr ""
74
 
75
+ #: system/mw_validation.php:248
76
  msgid "This is not the format of a zip code."
77
  msgstr ""
78
 
84
  msgid "This is not the format of a mail address."
85
  msgstr ""
86
 
87
+ #: system/mw_validation.php:326
88
  msgid "This is not the format of a url."
89
  msgstr ""
90
 
96
  msgid "The number of characters is invalid."
97
  msgstr ""
98
 
99
+ #: system/mw_validation.php:409
100
  msgid "The number of characters is a few."
101
  msgstr ""
102
 
103
+ #: system/mw_validation.php:434
104
  msgid "This value is invalid."
105
  msgstr ""
106
 
107
+ #: system/mw_validation.php:457
108
  msgid "This is not the format of a date."
109
  msgstr ""
110
 
111
+ #: system/mw_validation.php:486
112
  msgid "This file is invalid."
113
  msgstr ""
114
 
115
+ #: system/mw_validation.php:515
116
  msgid "This file size is too big."
117
  msgstr ""
118
 
119
+ #: system/mw_validation.php:534
120
  msgid "The contents which you input were judged with spam."
121
  msgstr ""
122
 
123
+ #: system/mw_wp_form_admin_page.php:85
124
  msgid "Your contribution is needed for making this plugin better."
125
  msgstr ""
126
 
127
+ #: system/mw_wp_form_admin_page.php:85
128
  msgid "Donate"
129
  msgstr ""
130
 
131
+ #: system/mw_wp_form_admin_page.php:127
132
  msgid "Add New Form"
133
  msgstr ""
134
 
135
+ #: system/mw_wp_form_admin_page.php:128
136
  msgid "Edit Form"
137
  msgstr ""
138
 
139
+ #: system/mw_wp_form_admin_page.php:129
140
  msgid "New Form"
141
  msgstr ""
142
 
143
+ #: system/mw_wp_form_admin_page.php:130
144
  msgid "View Form"
145
  msgstr ""
146
 
147
+ #: system/mw_wp_form_admin_page.php:131
148
  msgid "Search Forms"
149
  msgstr ""
150
 
151
+ #: system/mw_wp_form_admin_page.php:132
152
  msgid "No Forms found"
153
  msgstr ""
154
 
155
+ #: system/mw_wp_form_admin_page.php:133
156
  msgid "No Forms found in Trash"
157
  msgstr ""
158
 
159
+ #: system/mw_wp_form_admin_page.php:153
160
  msgid "Complete Message"
161
  msgstr ""
162
 
163
+ #: system/mw_wp_form_admin_page.php:160
164
  msgid "URL Options"
165
  msgstr ""
166
 
167
+ #: system/mw_wp_form_admin_page.php:167
168
  msgid "Validation Rule"
169
  msgstr ""
170
 
171
+ #: system/mw_wp_form_admin_page.php:174
172
  msgid "Form Key"
173
  msgstr ""
174
 
175
+ #: system/mw_wp_form_admin_page.php:181
176
  msgid "Automatic Reply Email Options"
177
  msgstr ""
178
 
179
+ #: system/mw_wp_form_admin_page.php:188
180
  msgid "Admin Email Options"
181
  msgstr ""
182
 
183
+ #: system/mw_wp_form_admin_page.php:195
184
  msgid "settings"
185
  msgstr ""
186
 
187
+ #: system/mw_wp_form_admin_page.php:314
188
  msgid "Copy and Paste this shortcode."
189
  msgstr ""
190
 
191
+ #: system/mw_wp_form_admin_page.php:315
192
  msgid "The key to use with hook is "
193
  msgstr ""
194
 
195
+ #: system/mw_wp_form_admin_page.php:329
196
  msgid "Activate Query string of post"
197
  msgstr ""
198
 
199
+ #: system/mw_wp_form_admin_page.php:330
200
  msgid ""
201
  "If this field is active, MW WP Form get query string. And get post data from "
202
  "query string \"post_id\". You can use $post's property in editor."
203
  msgstr ""
204
 
205
+ #: system/mw_wp_form_admin_page.php:331
206
  msgid "Example: {ID}, {post_title}, {post_meta} etc..."
207
  msgstr ""
208
 
209
+ #: system/mw_wp_form_admin_page.php:334
210
  msgid "Saving contact data in database"
211
  msgstr ""
212
 
213
+ #: system/mw_wp_form_admin_page.php:338
214
  msgid "Akismet Setting"
215
  msgstr ""
216
 
217
+ #: system/mw_wp_form_admin_page.php:353
218
  msgid "Input the key to use Akismet."
219
  msgstr ""
220
 
221
+ #: system/mw_wp_form_admin_page.php:378 system/mw_wp_form_admin_page.php:420
222
  msgid "Subject"
223
  msgstr ""
224
 
225
+ #: system/mw_wp_form_admin_page.php:382 system/mw_wp_form_admin_page.php:424
226
  msgid "Sender"
227
  msgstr ""
228
 
229
+ #: system/mw_wp_form_admin_page.php:384 system/mw_wp_form_admin_page.php:389
230
+ #: system/mw_wp_form_admin_page.php:417 system/mw_wp_form_admin_page.php:426
231
+ #: system/mw_wp_form_admin_page.php:431
232
  msgid "If empty:"
233
  msgstr ""
234
 
235
+ #: system/mw_wp_form_admin_page.php:387 system/mw_wp_form_admin_page.php:429
236
  msgid "From ( E-mail address )"
237
  msgstr ""
238
 
239
+ #: system/mw_wp_form_admin_page.php:392 system/mw_wp_form_admin_page.php:434
240
  msgid "Ccontent"
241
  msgstr ""
242
 
243
+ #: system/mw_wp_form_admin_page.php:394 system/mw_wp_form_admin_page.php:436
244
  msgid "{key} is converted form data."
245
  msgstr ""
246
 
247
+ #: system/mw_wp_form_admin_page.php:397
248
  msgid "Automatic reply email"
249
  msgstr ""
250
 
251
+ #: system/mw_wp_form_admin_page.php:399
252
  msgid "Input the key to use as transmission to automatic reply email."
253
  msgstr ""
254
 
255
+ #: system/mw_wp_form_admin_page.php:412
256
  msgid ""
257
  "If Admin Email Options is a blank, Automatic Replay Email Options is used as "
258
  "Admin Email Options."
259
  msgstr ""
260
 
261
+ #: system/mw_wp_form_admin_page.php:415
262
  msgid "To ( E-mail address )"
263
  msgstr ""
264
 
265
+ #: system/mw_wp_form_admin_page.php:451
266
  msgid "Input Page URL"
267
  msgstr ""
268
 
269
+ #: system/mw_wp_form_admin_page.php:457
270
  msgid "Confirmation Page URL"
271
  msgstr ""
272
 
273
+ #: system/mw_wp_form_admin_page.php:463
274
  msgid "Complete Page URL"
275
  msgstr ""
276
 
277
+ #: system/mw_wp_form_admin_page.php:469
278
  msgid "Validation Error Page URL"
279
  msgstr ""
280
 
281
+ #: system/mw_wp_form_admin_page.php:509
282
  msgid "Add Validation rule"
283
  msgstr ""
284
 
285
+ #: system/mw_wp_form_admin_page.php:515
286
  msgid "The key which applies validation"
287
  msgstr ""
288
 
289
+ #: system/mw_wp_form_admin_page.php:519
290
  msgid "No empty"
291
  msgstr ""
292
 
293
+ #: system/mw_wp_form_admin_page.php:520
294
  msgid "No empty( with checkbox )"
295
  msgstr ""
296
 
297
+ #: system/mw_wp_form_admin_page.php:521
298
  msgid "Numeric"
299
  msgstr ""
300
 
301
+ #: system/mw_wp_form_admin_page.php:522
302
  msgid "Alphabet"
303
  msgstr ""
304
 
305
+ #: system/mw_wp_form_admin_page.php:523
306
  msgid "Alphabet and Numeric"
307
  msgstr ""
308
 
309
+ #: system/mw_wp_form_admin_page.php:524
310
  msgid "Japanese Katakana"
311
  msgstr ""
312
 
313
+ #: system/mw_wp_form_admin_page.php:525
314
  msgid "Japanese Hiragana"
315
  msgstr ""
316
 
317
+ #: system/mw_wp_form_admin_page.php:526
318
+ msgid "Zip Code"
319
+ msgstr ""
320
+
321
+ #: system/mw_wp_form_admin_page.php:527
322
+ msgid "Tel"
323
+ msgstr ""
324
+
325
+ #: system/mw_wp_form_admin_page.php:528
326
  msgid "E-mail"
327
  msgstr ""
328
 
329
+ #: system/mw_wp_form_admin_page.php:529
330
+ msgid "URL"
331
+ msgstr ""
332
+
333
+ #: system/mw_wp_form_admin_page.php:530
334
  msgid "Date"
335
  msgstr ""
336
 
337
+ #: system/mw_wp_form_admin_page.php:534
338
  msgid "The key at same value"
339
  msgstr ""
340
 
341
+ #: system/mw_wp_form_admin_page.php:538
342
  msgid "The range of the number of characters"
343
  msgstr ""
344
 
345
+ #: system/mw_wp_form_admin_page.php:546
346
  msgid "The number of the minimum characters"
347
  msgstr ""
348
 
349
+ #: system/mw_wp_form_admin_page.php:550
350
  msgid "Permitted Extension"
351
  msgstr ""
352
 
353
+ #: system/mw_wp_form_admin_page.php:551
354
  msgid "Example:jpg or jpg,txt,…"
355
  msgstr ""
356
 
357
+ #: system/mw_wp_form_admin_page.php:554
358
  msgid "Permitted file size"
359
  msgstr ""
360
 
361
+ #: system/mw_wp_form_admin_page.php:555
362
  msgid "bytes"
363
  msgstr ""
364
 
394
  msgid "Registed Date"
395
  msgstr ""
396
 
397
+ #: system/mw_wp_form_contact_data_page.php:340
398
  msgid "Memo"
399
  msgstr ""
400
 
mw-wp-form.php CHANGED
@@ -3,11 +3,11 @@
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.1
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : September 25, 2012
10
- * Modified: December 19, 2013
11
  * Text Domain: mw-wp-form
12
  * Domain Path: /languages/
13
  * License: GPL2
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.2
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : September 25, 2012
10
+ * Modified: December 22, 2013
11
  * Text Domain: mw-wp-form
12
  * Domain Path: /languages/
13
  * License: GPL2
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.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -47,6 +47,9 @@ Do you have questions or issues with MW WP Form? Use these support channels appr
47
 
48
  == Changelog ==
49
 
 
 
 
50
  = 1.2.1 =
51
  * Bug fix : 管理者宛メール本文入力欄のサイズ
52
  * Bug fix : WM_Form::zip, WM_Form::tel
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.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
47
 
48
  == Changelog ==
49
 
50
+ = 1.2.2 =
51
+ * Added : ビジュアルエディタにショートコード挿入ボタンを追加
52
+
53
  = 1.2.1 =
54
  * Bug fix : 管理者宛メール本文入力欄のサイズ
55
  * Bug fix : WM_Form::zip, WM_Form::tel
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.3
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : December 14, 2012
10
- * Modified: December 20, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
@@ -28,9 +28,9 @@
28
  abstract class mw_form_field {
29
 
30
  /**
31
- * String $short_code_name
32
  */
33
- protected $short_code_name;
34
 
35
  /**
36
  * Form $Form
@@ -38,25 +38,35 @@ abstract class mw_form_field {
38
  protected $Form;
39
 
40
  /**
41
- * Array $defaults 属性値等初期値
42
  */
43
  protected $defaults = array();
44
 
45
  /**
46
- * Array $atts 属性値
47
  */
48
  protected $atts = array();
49
 
50
  /**
51
- * Error $Error エラーオブジェクト
52
  */
53
  protected $Error;
54
 
55
  /**
56
- * key $key フォーム識別子
57
  */
58
  protected $key;
59
 
 
 
 
 
 
 
 
 
 
 
60
  /**
61
  * __construct
62
  */
@@ -66,6 +76,30 @@ abstract class mw_form_field {
66
  add_action( 'mwform_add_qtags', array( $this, '_add_qtags' ) );
67
  }
68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  /**
70
  * getError
71
  * @param String フォーム項目名
@@ -126,16 +160,16 @@ abstract class mw_form_field {
126
  * String $key
127
  */
128
  public function add_shortcode( mw_form $Form, $viewFlg, mw_error $Error, $key ) {
129
- if ( !empty( $this->short_code_name ) ) {
130
  $this->Form = $Form;
131
  $this->Error = $Error;
132
  $this->key = $key;
133
  switch( $viewFlg ) {
134
  case 'input' :
135
- add_shortcode( $this->short_code_name, array( $this, '_inputPage' ) );
136
  break;
137
  case 'confirm' :
138
- add_shortcode( $this->short_code_name, array( $this, '_confirmPage' ) );
139
  break;
140
  default :
141
  exit( '$viewFlg is not right value.' );
@@ -166,14 +200,16 @@ abstract class mw_form_field {
166
  }
167
 
168
  /**
169
- * add_qtags
170
  * QTags.addButton を出力
171
  */
172
- abstract protected function add_qtags();
173
  public function _add_qtags() {
174
  ?>
175
  QTags.addButton(
176
- <?php $this->add_qtags(); ?>
 
 
 
177
  );
178
  <?php
179
  }
3
  * Name: MW Form Field
4
  * URI: http://2inc.org
5
  * Description: フォームフィールドの抽象クラス
6
+ * Version: 1.3.4
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : December 14, 2012
10
+ * Modified: December 22, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
28
  abstract class mw_form_field {
29
 
30
  /**
31
+ * string $shortcode_name
32
  */
33
+ protected $shortcode_name;
34
 
35
  /**
36
  * Form $Form
38
  protected $Form;
39
 
40
  /**
41
+ * array $defaults 属性値等初期値
42
  */
43
  protected $defaults = array();
44
 
45
  /**
46
+ * array $atts 属性値
47
  */
48
  protected $atts = array();
49
 
50
  /**
51
+ * Error $Error エラーオブジェクト
52
  */
53
  protected $Error;
54
 
55
  /**
56
+ * string $key フォーム識別子
57
  */
58
  protected $key;
59
 
60
+ /**
61
+ * array $qtags qtagsの引数
62
+ */
63
+ protected $qtags = array(
64
+ 'id' => '',
65
+ 'display' => '',
66
+ 'arg1' => '',
67
+ 'arg2' => '',
68
+ );
69
+
70
  /**
71
  * __construct
72
  */
76
  add_action( 'mwform_add_qtags', array( $this, '_add_qtags' ) );
77
  }
78
 
79
+ /**
80
+ * get_qtags
81
+ * @return array $qtags
82
+ */
83
+ public function get_qtags() {
84
+ return $this->qtags;
85
+ }
86
+
87
+ /**
88
+ * set_qtags
89
+ * @param string $id
90
+ * @param string $display
91
+ * @param string $arg1 開始タグ(ショートコード)
92
+ * @param string $arg2 終了タグ(ショートコード)
93
+ */
94
+ protected function set_qtags( $id, $display, $arg1, $arg2 = '' ) {
95
+ $this->qtags = array(
96
+ 'id' => $id,
97
+ 'display' => __( $display, MWF_Config::DOMAIN ),
98
+ 'arg1' => $arg1,
99
+ 'arg2' => $arg2,
100
+ );
101
+ }
102
+
103
  /**
104
  * getError
105
  * @param String フォーム項目名
160
  * String $key
161
  */
162
  public function add_shortcode( mw_form $Form, $viewFlg, mw_error $Error, $key ) {
163
+ if ( !empty( $this->shortcode_name ) ) {
164
  $this->Form = $Form;
165
  $this->Error = $Error;
166
  $this->key = $key;
167
  switch( $viewFlg ) {
168
  case 'input' :
169
+ add_shortcode( $this->shortcode_name, array( $this, '_inputPage' ) );
170
  break;
171
  case 'confirm' :
172
+ add_shortcode( $this->shortcode_name, array( $this, '_confirmPage' ) );
173
  break;
174
  default :
175
  exit( '$viewFlg is not right value.' );
200
  }
201
 
202
  /**
203
+ * _add_qtags
204
  * QTags.addButton を出力
205
  */
 
206
  public function _add_qtags() {
207
  ?>
208
  QTags.addButton(
209
+ '<?php echo $this->qtags['id']; ?>',
210
+ '<?php echo $this->qtags['display']; ?>',
211
+ '[<?php echo $this->qtags['arg1']; ?>]',
212
+ '<?php echo $this->qtags['arg2']; ?>'
213
  );
214
  <?php
215
  }
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.2
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : February 21, 2013
10
- * Modified: December 20, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
@@ -28,6 +28,7 @@
28
  class MW_WP_Form_Admin_Page {
29
 
30
  private $postdata;
 
31
 
32
  /**
33
  * __construct
@@ -36,12 +37,42 @@ class MW_WP_Form_Admin_Page {
36
  add_action( 'admin_print_styles', array( $this, 'admin_style' ) );
37
  add_action( 'admin_print_scripts', array( $this, 'admin_scripts' ) );
38
  add_action( 'admin_head', array( $this, 'add_meta_box' ) );
 
39
  add_action( 'save_post', array( $this, 'save_post' ) );
40
  add_action( 'admin_print_footer_scripts', array( $this, 'add_quicktag' ) );
41
  add_action( 'current_screen', array( $this, 'current_screen' ) );
42
  add_filter( 'default_content', array( $this, 'default_content' ) );
43
  }
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  /**
46
  * current_screen
47
  * 寄付リンクを表示
3
  * Name: MW WP Form Admin Page
4
  * URI: http://2inc.org
5
  * Description: 管理画面クラス
6
+ * Version: 1.7.3
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : February 21, 2013
10
+ * Modified: December 22, 2013
11
  * License: GPL2
12
  *
13
  * Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
28
  class MW_WP_Form_Admin_Page {
29
 
30
  private $postdata;
31
+ const SHORTCODE_BUTTON_NAME = 'mw_wp_form_button';
32
 
33
  /**
34
  * __construct
37
  add_action( 'admin_print_styles', array( $this, 'admin_style' ) );
38
  add_action( 'admin_print_scripts', array( $this, 'admin_scripts' ) );
39
  add_action( 'admin_head', array( $this, 'add_meta_box' ) );
40
+ add_action( 'admin_head', array( $this, 'add_tinymce' ) );
41
  add_action( 'save_post', array( $this, 'save_post' ) );
42
  add_action( 'admin_print_footer_scripts', array( $this, 'add_quicktag' ) );
43
  add_action( 'current_screen', array( $this, 'current_screen' ) );
44
  add_filter( 'default_content', array( $this, 'default_content' ) );
45
  }
46
 
47
+ /**
48
+ * add_tinymce
49
+ */
50
+ public function add_tinymce() {
51
+ if ( get_user_option( 'rich_editing' ) == 'true' ) {
52
+ add_filter( 'mce_external_plugins', array( $this, 'add_tinymce_plugin' ) );
53
+ add_filter( 'mce_buttons', array( $this, 'add_tinymce_button' ) );
54
+ }
55
+ }
56
+
57
+ /**
58
+ * add_tinymce_plugin
59
+ * tinymceプラグインの読み込み
60
+ * @return array $plugin tinymceプラグインのURL
61
+ */
62
+ public function add_tinymce_plugin() {
63
+ $plugin[self::SHORTCODE_BUTTON_NAME] = plugins_url( '', __FILE__ ) . '/../js/editor_plugin.js.php';
64
+ return $plugin;
65
+ }
66
+
67
+ /**
68
+ * add_tinymce_button
69
+ * @return array $buttons
70
+ */
71
+ public function add_tinymce_button( $buttons ) {
72
+ array_push( $buttons, 'separator', self::SHORTCODE_BUTTON_NAME );
73
+ return $buttons;
74
+ }
75
+
76
  /**
77
  * current_screen
78
  * 寄付リンクを表示