MW WP Form - Version 3.0.0

Version Description

  • Added : Added method MWF_Functions::get_form_id_from_form_key( $form_key );
  • Added : Added action hook mwform_after_exec_shortcode
  • Added : Added action hook mwform_before_load_content_mw-wp-form-xxx
  • Added : Added action hook mwform_after_load_content_mw-wp-form-xxx
  • Added : Added action hook mwform_before_redirect_mw-wp-form-xxx
  • Added : Added filter hook mwform_redirect_url_mw-wp-form-xxx
  • Added : Added filter hook mwform_complete_content_raw_mw-wp-form-xxx
  • Added : Added action hook mwform_settings_meta_box
  • Added : Added action hook mwform_settings_save_mw-wp-form-xxx
  • Added : Added action hook mwform_contact_data_save-mwf_xxx
Download this release

Release Info

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

Code changes from version 2.14.2 to 3.0.0

classes/controllers/class.main.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MW WP Form Main Controller
4
  * Description: フロントエンドにおいて、適切な画面にリダイレクトさせる
5
- * Version : 1.4.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 23, 2014
9
- * Modified : December 27, 2016
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -139,7 +139,6 @@ class MW_WP_Form_Main_Controller {
139
  $post_condition,
140
  $this->Setting->get( 'querystring' )
141
  );
142
- $url = $this->Redirected->get_url();
143
  $view_flg = $this->Redirected->get_view_flg();
144
  $this->Data->set_view_flg( $view_flg );
145
 
@@ -163,6 +162,9 @@ class MW_WP_Form_Main_Controller {
163
  $this->Data->clear_values();
164
  }
165
  }
 
 
 
166
  $this->redirect( $url );
167
 
168
  // スクロール用スクリプトのロード
2
  /**
3
  * Name : MW WP Form Main Controller
4
  * Description: フロントエンドにおいて、適切な画面にリダイレクトさせる
5
+ * Version : 1.5.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 23, 2014
9
+ * Modified : January 30, 2017
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
139
  $post_condition,
140
  $this->Setting->get( 'querystring' )
141
  );
 
142
  $view_flg = $this->Redirected->get_view_flg();
143
  $this->Data->set_view_flg( $view_flg );
144
 
162
  $this->Data->clear_values();
163
  }
164
  }
165
+
166
+ do_action( 'mwform_before_redirect_' . $form_key );
167
+ $url = apply_filters( 'mwform_redirect_url_' . $form_key, $this->Redirected->get_url(), $this->Data );
168
  $this->redirect( $url );
169
 
170
  // スクロール用スクリプトのロード
classes/functions.php CHANGED
@@ -2,11 +2,11 @@
2
  /**
3
  * Name : MWF Functions
4
  * Description: 関数
5
- * Version : 1.5.4
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : May 29, 2013
9
- * Modified : January 7, 2017
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -376,6 +376,16 @@ class MWF_Functions {
376
  return $form_key;
377
  }
378
 
 
 
 
 
 
 
 
 
 
 
379
  /**
380
  * フォームの投稿 ID を問い合わせデータの投稿タイプに変換
381
  *
2
  /**
3
  * Name : MWF Functions
4
  * Description: 関数
5
+ * Version : 1.6.0
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : May 29, 2013
9
+ * Modified : January 30, 2017
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
376
  return $form_key;
377
  }
378
 
379
+ /**
380
+ * フォーム識別子をフォームの投稿 ID に変換
381
+ *
382
+ * @param string $form_key
383
+ * @return int
384
+ */
385
+ public static function get_form_id_from_form_key( $form_key ) {
386
+ return preg_replace( '/^' . MWF_Config::NAME . '-(\d+)$/', '$1', $form_key );
387
+ }
388
+
389
  /**
390
  * フォームの投稿 ID を問い合わせデータの投稿タイプに変換
391
  *
classes/models/class.contact-data-setting.php CHANGED
@@ -164,9 +164,9 @@ class MW_WP_Form_Contact_Data_Setting {
164
  /**
165
  * 保存
166
  *
167
- * @param bool $non_permit_keys_save_flg permit_keys以外のメタデータも更新する
168
  */
169
- public function save( $non_permit_keys_save_flg = false ) {
170
  $permit_keys = $this->get_permit_keys();
171
  $permit_values = array();
172
  foreach ( $permit_keys as $key ) {
@@ -174,7 +174,10 @@ class MW_WP_Form_Contact_Data_Setting {
174
  }
175
  update_post_meta( $this->post_id, MWF_config::CONTACT_DATA_NAME, $permit_values );
176
 
177
- if ( $non_permit_keys_save_flg !== true ) {
 
 
 
178
  return;
179
  }
180
 
164
  /**
165
  * 保存
166
  *
167
+ * @param bool $is_save_no_permit_value permit_keys以外のメタデータも更新する
168
  */
169
+ public function save( $is_save_no_permit_value = false ) {
170
  $permit_keys = $this->get_permit_keys();
171
  $permit_values = array();
172
  foreach ( $permit_keys as $key ) {
174
  }
175
  update_post_meta( $this->post_id, MWF_config::CONTACT_DATA_NAME, $permit_values );
176
 
177
+ $contact_data_post_type = MWF_Functions::get_contact_data_post_type_from_form_id( $this->post_id );
178
+ do_action( 'mwform_contact_data_save-' . $contact_data_post_type, $this->post_id );
179
+
180
+ if ( $is_save_no_permit_value !== true ) {
181
  return;
182
  }
183
 
classes/models/class.setting.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
  /**
3
  * Name : MW WP Form Setting
4
- * Version : 1.2.0
5
  * Author : Takashi Kitajima
6
  * Author URI : http://2inc.org
7
  * Created : December 31, 2014
8
- * Modified : August 22, 2016
9
  * License : GPLv2 or later
10
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
  */
@@ -236,6 +236,8 @@ class MW_WP_Form_Setting {
236
  $new_values[$key] = $value;
237
  }
238
  update_post_meta( $this->post_id, MWF_Config::NAME, $new_values );
 
 
239
  }
240
 
241
  /**
1
  <?php
2
  /**
3
  * Name : MW WP Form Setting
4
+ * Version : 1.3.0
5
  * Author : Takashi Kitajima
6
  * Author URI : http://2inc.org
7
  * Created : December 31, 2014
8
+ * Modified : January 30, 2017
9
  * License : GPLv2 or later
10
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
  */
236
  $new_values[$key] = $value;
237
  }
238
  update_post_meta( $this->post_id, MWF_Config::NAME, $new_values );
239
+ $form_key = MWF_Functions::get_form_key_from_form_id( $this->post_id );
240
+ do_action( 'mwform_settings_save_' . $form_key, $this->post_id );
241
  }
242
 
243
  /**
classes/services/class.exec-shortcode.php CHANGED
@@ -1,12 +1,12 @@
1
  <?php
2
  /**
3
  * Name : MW WP Form Exec Shortcode
4
- * Version : 1.2.0
5
  * Description: ExecShortcode(mwform、mwform_formkey)の存在有無のチェックとそれらの抽象化レイヤー
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 31, 2014
9
- * Modified : March 10, 2016
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
@@ -81,6 +81,8 @@ class MW_WP_Form_Exec_Shortcode {
81
  do_shortcode( $exec_shortcode );
82
  }
83
 
 
 
84
  remove_shortcode( 'mwform' );
85
  remove_shortcode( 'mwform_formkey' );
86
  }
@@ -294,15 +296,18 @@ class MW_WP_Form_Exec_Shortcode {
294
  */
295
  public function mwform_formkey( $attributes ) {
296
  $view_flg = $this->view_flg;
297
- $post_id = $this->get_form_id_by_mwform_formkey( $attributes );
 
 
 
298
 
299
  // 入力画面
300
  if ( $view_flg === 'input' ) {
301
- $content = $this->get_input_page_content( $post_id );
302
  }
303
  // 確認画面
304
  elseif ( $view_flg == 'confirm' ) {
305
- $content = $this->get_confirm_page_content( $post_id );
306
  }
307
  // 完了画面
308
  elseif ( $view_flg === 'complete' ) {
@@ -310,19 +315,22 @@ class MW_WP_Form_Exec_Shortcode {
310
  } else {
311
  $content = '';
312
  }
 
 
 
313
  return do_shortcode( $content );
314
  }
315
 
316
  /**
317
  * 入力画面を表示
318
  *
319
- * @param int $post_id
320
  * @return string $content
321
  */
322
- protected function get_input_page_content( $post_id ) {
323
  global $post;
324
  $form_key = $this->get( 'key' );
325
- $post = get_post( $post_id );
326
  setup_postdata( $post );
327
  $content = apply_filters( 'mwform_post_content_raw_' . $form_key, get_the_content(), $this->Data );
328
 
@@ -351,11 +359,11 @@ class MW_WP_Form_Exec_Shortcode {
351
  /**
352
  * 確認画面を表示
353
  *
354
- * @param int $post_id
355
  * @return string $content
356
  */
357
- protected function get_confirm_page_content( $post_id ) {
358
- return $this->get_input_page_content( $post_id );
359
  }
360
 
361
  /**
@@ -366,7 +374,7 @@ class MW_WP_Form_Exec_Shortcode {
366
  protected function get_complete_page_content() {
367
  $form_key = $this->get( 'key' );
368
  $Setting = $this->Setting;
369
- $content = $Setting->get( 'complete_message' );
370
 
371
  $has_wpautop = false;
372
  if ( has_filter( 'the_content', 'wpautop' ) ) {
1
  <?php
2
  /**
3
  * Name : MW WP Form Exec Shortcode
4
+ * Version : 1.3.0
5
  * Description: ExecShortcode(mwform、mwform_formkey)の存在有無のチェックとそれらの抽象化レイヤー
6
  * Author : Takashi Kitajima
7
  * Author URI : http://2inc.org
8
  * Created : December 31, 2014
9
+ * Modified : January 30, 2017
10
  * License : GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  */
81
  do_shortcode( $exec_shortcode );
82
  }
83
 
84
+ do_action( 'mwform_after_exec_shortcode', $this->get( 'key' ) );
85
+
86
  remove_shortcode( 'mwform' );
87
  remove_shortcode( 'mwform_formkey' );
88
  }
296
  */
297
  public function mwform_formkey( $attributes ) {
298
  $view_flg = $this->view_flg;
299
+ $form_id = $this->get_form_id_by_mwform_formkey( $attributes );
300
+ $form_key = MWF_Functions::get_form_key_from_form_id( $form_id );
301
+
302
+ do_action( 'mwform_before_load_content_' . $form_key );
303
 
304
  // 入力画面
305
  if ( $view_flg === 'input' ) {
306
+ $content = $this->get_input_page_content( $form_id );
307
  }
308
  // 確認画面
309
  elseif ( $view_flg == 'confirm' ) {
310
+ $content = $this->get_confirm_page_content( $form_id );
311
  }
312
  // 完了画面
313
  elseif ( $view_flg === 'complete' ) {
315
  } else {
316
  $content = '';
317
  }
318
+
319
+ do_action( 'mwform_after_load_content_' . $form_key );
320
+
321
  return do_shortcode( $content );
322
  }
323
 
324
  /**
325
  * 入力画面を表示
326
  *
327
+ * @param int $form_id
328
  * @return string $content
329
  */
330
+ protected function get_input_page_content( $form_id ) {
331
  global $post;
332
  $form_key = $this->get( 'key' );
333
+ $post = get_post( $form_id );
334
  setup_postdata( $post );
335
  $content = apply_filters( 'mwform_post_content_raw_' . $form_key, get_the_content(), $this->Data );
336
 
359
  /**
360
  * 確認画面を表示
361
  *
362
+ * @param int $form_id
363
  * @return string $content
364
  */
365
+ protected function get_confirm_page_content( $form_id ) {
366
+ return $this->get_input_page_content( $form_id );
367
  }
368
 
369
  /**
374
  protected function get_complete_page_content() {
375
  $form_key = $this->get( 'key' );
376
  $Setting = $this->Setting;
377
+ $content = apply_filters( 'mwform_complete_content_raw_' . $form_key, $Setting->get( 'complete_message' ), $this->Data );
378
 
379
  $has_wpautop = false;
380
  if ( has_filter( 'the_content', 'wpautop' ) ) {
css/admin.css CHANGED
@@ -94,12 +94,18 @@ span#formkey_field {
94
  /**
95
  * 設定
96
  */
97
- #mw-wp-form_settings p {
98
  border-bottom: #dfdfdf solid 1px;
99
  margin: 0 0 15px;
100
  padding: 0 0 15px;
101
  }
 
 
 
 
 
102
  #mw-wp-form_settings table {
 
103
  font-size: 100%;
104
  }
105
  #mw-wp-form_settings table td {
94
  /**
95
  * 設定
96
  */
97
+ #mw-wp-form_settings .section {
98
  border-bottom: #dfdfdf solid 1px;
99
  margin: 0 0 15px;
100
  padding: 0 0 15px;
101
  }
102
+ #mw-wp-form_settings .section:last-child {
103
+ margin-bottom: 0;
104
+ border-bottom: none;
105
+ padding-bottom: 0;
106
+ }
107
  #mw-wp-form_settings table {
108
+ margin: 0;
109
  font-size: 100%;
110
  }
111
  #mw-wp-form_settings table td {
mw-wp-form.php CHANGED
@@ -3,11 +3,11 @@
3
  * Plugin Name: MW WP Form
4
  * Plugin URI: http://plugins.2inc.org/mw-wp-form/
5
  * Description: MW WP Form is shortcode base contact form plugin. This plugin have many feature. For example you can use many validation rules, contact data saving, and chart aggregation using saved contact data.
6
- * Version: 2.14.2
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : September 25, 2012
10
- * Modified: January 14, 2017
11
  * Text Domain: mw-wp-form
12
  * Domain Path: /languages/
13
  * License: GPLv2 or later
@@ -252,7 +252,6 @@ class MW_WP_Form {
252
  * @param WP_Screen $screen
253
  */
254
  public function current_screen( $screen ) {
255
- $contact_data_post_types = MW_WP_Form_Contact_Data_Setting::get_posts();
256
  if ( $screen->id === MWF_Config::NAME ) {
257
  $validation_rules = $this->get_validation_rules();
258
  $Controller = new MW_WP_Form_Admin_Controller( $validation_rules );
3
  * Plugin Name: MW WP Form
4
  * Plugin URI: http://plugins.2inc.org/mw-wp-form/
5
  * Description: MW WP Form is shortcode base contact form plugin. This plugin have many feature. For example you can use many validation rules, contact data saving, and chart aggregation using saved contact data.
6
+ * Version: 3.0.0
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created : September 25, 2012
10
+ * Modified: January 30, 2017
11
  * Text Domain: mw-wp-form
12
  * Domain Path: /languages/
13
  * License: GPLv2 or later
252
  * @param WP_Screen $screen
253
  */
254
  public function current_screen( $screen ) {
 
255
  if ( $screen->id === MWF_Config::NAME ) {
256
  $validation_rules = $this->get_validation_rules();
257
  $Controller = new MW_WP_Form_Admin_Controller( $validation_rules );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.amazon.co.jp/registry/wishlist/39ANKRNSTNW40
4
  Tags: plugin, form, confirm, preview, shortcode, mail, chart, graph, html, contact form, form creation, form creator, form manager, form builder, custom form
5
  Requires at least: 4.0
6
  Tested up to: 4.7.1
7
- Stable tag: 2.14.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -80,6 +80,18 @@ Do you have questions or issues with MW WP Form? Use these support channels appr
80
 
81
  == Changelog ==
82
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  = 2.14.2 =
84
  * Bugfix : Fixed type on japanese.
85
 
4
  Tags: plugin, form, confirm, preview, shortcode, mail, chart, graph, html, contact form, form creation, form creator, form manager, form builder, custom form
5
  Requires at least: 4.0
6
  Tested up to: 4.7.1
7
+ Stable tag: 3.0.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
80
 
81
  == Changelog ==
82
 
83
+ = 3.0.0 =
84
+ * Added : Added method MWF_Functions::get_form_id_from_form_key( $form_key );
85
+ * Added : Added action hook mwform_after_exec_shortcode
86
+ * Added : Added action hook mwform_before_load_content_mw-wp-form-xxx
87
+ * Added : Added action hook mwform_after_load_content_mw-wp-form-xxx
88
+ * Added : Added action hook mwform_before_redirect_mw-wp-form-xxx
89
+ * Added : Added filter hook mwform_redirect_url_mw-wp-form-xxx
90
+ * Added : Added filter hook mwform_complete_content_raw_mw-wp-form-xxx
91
+ * Added : Added action hook mwform_settings_meta_box
92
+ * Added : Added action hook mwform_settings_save_mw-wp-form-xxx
93
+ * Added : Added action hook mwform_contact_data_save-mwf_xxx
94
+
95
  = 2.14.2 =
96
  * Bugfix : Fixed type on japanese.
97
 
templates/admin/settings.php CHANGED
@@ -1,35 +1,82 @@
1
- <p>
2
- <label><input type="checkbox" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[querystring]" value="1" <?php checked( $querystring, 1 ); ?> /> <?php esc_html_e( 'Activate Query string of post', 'mw-wp-form' ); ?></label><br />
3
- <span class="mwf_note"><?php esc_html_e( 'If this field is active, MW WP Form get query string. And get post data from query string "post_id". You can use $post\'s property in editor.', 'mw-wp-form' ); ?><br />
4
- <?php esc_html_e( 'Example: {ID}, {post_title}, {post_meta} etc...', 'mw-wp-form' ); ?></span>
5
- </p>
6
- <p>
7
- <label><input type="checkbox" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[usedb]" value="1" <?php checked( $usedb, 1 ); ?> /> <?php esc_html_e( 'Saving inquiry data in database', 'mw-wp-form' ); ?></label>
8
- </p>
9
- <p>
10
- <label><input type="checkbox" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[scroll]" value="1" <?php checked( $scroll, 1 ); ?> /> <?php esc_html_e( 'Enable scrolling of screen transition.', 'mw-wp-form' ); ?></label>
11
- </p>
12
- <p>
13
- <?php esc_html_e( 'Next Tracking Number', 'mw-wp-form' ); ?><br />
14
- <input type="number" name="<?php echo esc_attr( MWF_Config::TRACKINGNUMBER ); ?>" id="tracking_number_field" value="<?php echo esc_attr( $tracking_number ); ?>" step="1" min="1" disabled="disabled" /><br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  <input type="checkbox" name="open_tracking_number_field" />
16
  <?php esc_html_e( 'I want to change.', 'mw-wp-form' ); ?>
17
- </p>
18
- <table border="0" cellpadding="0" cellspacing="0" class="akismet">
19
- <tr>
20
- <th colspan="2"><?php esc_html_e( 'Akismet Setting', 'mw-wp-form' ); ?></th>
21
- </tr>
22
- <tr>
23
- <td>author</td>
24
- <td><input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[akismet_author]" value="<?php echo esc_attr( $akismet_author ); ?>" /></td>
25
- </tr>
26
- <tr>
27
- <td>email</td>
28
- <td><input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[akismet_author_email]" value="<?php echo esc_attr( $akismet_author_email ); ?>" /></td>
29
- </tr>
30
- <tr>
31
- <td>url</td>
32
- <td><input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[akismet_author_url]" value="<?php echo esc_attr( $akismet_author_url ); ?>" /></td>
33
- </tr>
34
- </table>
35
- <span class="mwf_note"><?php esc_html_e( 'Input the key to use Akismet.', 'mw-wp-form' ); ?></span>
 
 
 
 
 
 
1
+ <div class="section">
2
+ <label>
3
+ <input
4
+ type="checkbox"
5
+ name="<?php echo esc_attr( MWF_Config::NAME ); ?>[querystring]"
6
+ value="1"
7
+ <?php checked( $querystring, 1 ); ?>
8
+ />
9
+ <?php esc_html_e( 'Activate Query string of post', 'mw-wp-form' ); ?>
10
+ </label>
11
+ <br />
12
+ <span class="mwf_note">
13
+ <?php esc_html_e( 'If this field is active, MW WP Form get query string. And get post data from query string "post_id". You can use $post\'s property in editor.', 'mw-wp-form' ); ?>
14
+ <br />
15
+ <?php esc_html_e( 'Example: {ID}, {post_title}, {post_meta} etc...', 'mw-wp-form' ); ?>
16
+ </span>
17
+ </div>
18
+
19
+ <div class="section">
20
+ <label>
21
+ <input
22
+ type="checkbox"
23
+ name="<?php echo esc_attr( MWF_Config::NAME ); ?>[usedb]"
24
+ value="1"
25
+ <?php checked( $usedb, 1 ); ?>
26
+ />
27
+ <?php esc_html_e( 'Saving inquiry data in database', 'mw-wp-form' ); ?>
28
+ </label>
29
+ </div>
30
+
31
+ <div class="section">
32
+ <label>
33
+ <input
34
+ type="checkbox"
35
+ name="<?php echo esc_attr( MWF_Config::NAME ); ?>[scroll]"
36
+ value="1"
37
+ <?php checked( $scroll, 1 ); ?>
38
+ />
39
+ <?php esc_html_e( 'Enable scrolling of screen transition.', 'mw-wp-form' ); ?>
40
+ </label>
41
+ </div>
42
+
43
+ <div class="section">
44
+ <?php esc_html_e( 'Next Tracking Number', 'mw-wp-form' ); ?>
45
+ <br />
46
+ <input
47
+ type="number"
48
+ name="<?php echo esc_attr( MWF_Config::TRACKINGNUMBER ); ?>"
49
+ id="tracking_number_field"
50
+ value="<?php echo esc_attr( $tracking_number ); ?>"
51
+ step="1"
52
+ min="1"
53
+ disabled="disabled"
54
+ />
55
+ <br />
56
  <input type="checkbox" name="open_tracking_number_field" />
57
  <?php esc_html_e( 'I want to change.', 'mw-wp-form' ); ?>
58
+ </div>
59
+
60
+ <div class="section">
61
+ <table border="0" cellpadding="0" cellspacing="0" class="akismet">
62
+ <tr>
63
+ <th colspan="2"><?php esc_html_e( 'Akismet Setting', 'mw-wp-form' ); ?></th>
64
+ </tr>
65
+ <tr>
66
+ <td>author</td>
67
+ <td><input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[akismet_author]" value="<?php echo esc_attr( $akismet_author ); ?>" /></td>
68
+ </tr>
69
+ <tr>
70
+ <td>email</td>
71
+ <td><input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[akismet_author_email]" value="<?php echo esc_attr( $akismet_author_email ); ?>" /></td>
72
+ </tr>
73
+ <tr>
74
+ <td>url</td>
75
+ <td><input type="text" name="<?php echo esc_attr( MWF_Config::NAME ); ?>[akismet_author_url]" value="<?php echo esc_attr( $akismet_author_url ); ?>" /></td>
76
+ </tr>
77
+ </table>
78
+ <span class="mwf_note"><?php esc_html_e( 'Input the key to use Akismet.', 'mw-wp-form' ); ?></span>
79
+ </div>
80
+
81
+ <?php
82
+ do_action( 'mwform_settings_meta_box' );