Version Description
- Added : Added form key in list of MW WP Form page.
- Bug fix : Fixed a bug that "add form tag button" is displayed in complete message area.
Download this release
Release Info
Developer | inc2734 |
Plugin | MW WP Form |
Version | 2.1.2 |
Comparing to | |
See all releases |
Code changes from version 2.1.1 to 2.1.2
- css/admin.css +21 -0
- mw-wp-form.php +2 -2
- readme.txt +5 -1
- system/mw_wp_form_admin_page.php +38 -3
css/admin.css
CHANGED
@@ -401,3 +401,24 @@ span#formkey_field {
|
|
401 |
.mwform-chart-wrapper .mwform-legend .mwform-legend-value {
|
402 |
margin-left: 10px;
|
403 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
401 |
.mwform-chart-wrapper .mwform-legend .mwform-legend-value {
|
402 |
margin-left: 10px;
|
403 |
}
|
404 |
+
|
405 |
+
/**
|
406 |
+
* .column-mwform_form_key
|
407 |
+
*/
|
408 |
+
.fixed .column-title {
|
409 |
+
width: 40%;
|
410 |
+
}
|
411 |
+
.fixed .column-mwform_form_key {
|
412 |
+
width: 30%;
|
413 |
+
}
|
414 |
+
.fixed .column-date {
|
415 |
+
width: 20%;
|
416 |
+
}
|
417 |
+
@media screen and (max-width: 782px) {
|
418 |
+
.fixed .column-title {
|
419 |
+
width: auto;
|
420 |
+
}
|
421 |
+
.fixed .column-mwform_form_key {
|
422 |
+
display: none;
|
423 |
+
}
|
424 |
+
}
|
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 can create mail form with a confirmation screen.
|
6 |
-
* Version: 2.1.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : September 25, 2012
|
10 |
-
* Modified: November
|
11 |
* Text Domain: mw-wp-form
|
12 |
* Domain Path: /languages/
|
13 |
* License: GPLv2
|
3 |
* Plugin Name: MW WP Form
|
4 |
* Plugin URI: http://plugins.2inc.org/mw-wp-form/
|
5 |
* Description: MW WP Form can create mail form with a confirmation screen.
|
6 |
+
* Version: 2.1.2
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created : September 25, 2012
|
10 |
+
* Modified: November 26, 2014
|
11 |
* Text Domain: mw-wp-form
|
12 |
* Domain Path: /languages/
|
13 |
* License: GPLv2
|
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
|
5 |
Requires at least: 3.7
|
6 |
Tested up to: 4.0
|
7 |
-
Stable tag: 2.1.
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -71,6 +71,10 @@ Do you have questions or issues with MW WP Form? Use these support channels appr
|
|
71 |
|
72 |
== Changelog ==
|
73 |
|
|
|
|
|
|
|
|
|
74 |
= 2.1.1 =
|
75 |
* Added : Added CSV Download option.
|
76 |
* Added : Added an option to vertically display in Radio and Checkbox.
|
4 |
Tags: plugin, form, confirm, preview, shortcode, mail, chart, graph
|
5 |
Requires at least: 3.7
|
6 |
Tested up to: 4.0
|
7 |
+
Stable tag: 2.1.2
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
71 |
|
72 |
== Changelog ==
|
73 |
|
74 |
+
= 2.1.2 =
|
75 |
+
* Added : Added form key in list of MW WP Form page.
|
76 |
+
* Bug fix : Fixed a bug that "add form tag button" is displayed in complete message area.
|
77 |
+
|
78 |
= 2.1.1 =
|
79 |
* Added : Added CSV Download option.
|
80 |
* Added : Added an option to vertically display in Radio and Checkbox.
|
system/mw_wp_form_admin_page.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
/**
|
3 |
* Name: MW WP Form Admin Page
|
4 |
* Description: 管理画面クラス
|
5 |
-
* Version: 1.12.
|
6 |
* Author: Takashi Kitajima
|
7 |
* Author URI: http://2inc.org
|
8 |
* Created : February 21, 2013
|
9 |
-
* Modified: November
|
10 |
* License: GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
@@ -39,6 +39,8 @@ class MW_WP_Form_Admin_Page {
|
|
39 |
add_action( 'current_screen', array( $this, 'current_screen' ) );
|
40 |
add_filter( 'default_content', array( $this, 'default_content' ) );
|
41 |
add_action( 'media_buttons', array( $this, 'add_tag_generator' ) );
|
|
|
|
|
42 |
}
|
43 |
|
44 |
/**
|
@@ -577,11 +579,14 @@ class MW_WP_Form_Admin_Page {
|
|
577 |
/**
|
578 |
* add_tag_generator
|
579 |
* タグジェネレータを出力
|
|
|
580 |
*/
|
581 |
-
public function add_tag_generator() {
|
582 |
$post_type = get_post_type();
|
583 |
if ( $post_type !== MWF_Config::NAME )
|
584 |
return;
|
|
|
|
|
585 |
do_action( 'mwform_tag_generator_dialog' );
|
586 |
?>
|
587 |
<div class="add-mwform-btn">
|
@@ -607,4 +612,34 @@ class MW_WP_Form_Admin_Page {
|
|
607 |
</div>
|
608 |
<?php
|
609 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
610 |
}
|
2 |
/**
|
3 |
* Name: MW WP Form Admin Page
|
4 |
* Description: 管理画面クラス
|
5 |
+
* Version: 1.12.2
|
6 |
* Author: Takashi Kitajima
|
7 |
* Author URI: http://2inc.org
|
8 |
* Created : February 21, 2013
|
9 |
+
* Modified: November 26, 2014
|
10 |
* License: GPLv2
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
39 |
add_action( 'current_screen', array( $this, 'current_screen' ) );
|
40 |
add_filter( 'default_content', array( $this, 'default_content' ) );
|
41 |
add_action( 'media_buttons', array( $this, 'add_tag_generator' ) );
|
42 |
+
add_filter( 'manage_posts_columns', array( $this, 'manage_posts_columns' ) );
|
43 |
+
add_action( 'manage_posts_custom_column', array( $this, 'manage_posts_custom_column' ), 10, 2 );
|
44 |
}
|
45 |
|
46 |
/**
|
579 |
/**
|
580 |
* add_tag_generator
|
581 |
* タグジェネレータを出力
|
582 |
+
* @param string $editor_id
|
583 |
*/
|
584 |
+
public function add_tag_generator( $editor_id ) {
|
585 |
$post_type = get_post_type();
|
586 |
if ( $post_type !== MWF_Config::NAME )
|
587 |
return;
|
588 |
+
if ( $editor_id !== 'content' )
|
589 |
+
return;
|
590 |
do_action( 'mwform_tag_generator_dialog' );
|
591 |
?>
|
592 |
<div class="add-mwform-btn">
|
612 |
</div>
|
613 |
<?php
|
614 |
}
|
615 |
+
|
616 |
+
/**
|
617 |
+
* manage_posts_columns
|
618 |
+
* @param array $columns
|
619 |
+
* @return array $columns
|
620 |
+
*/
|
621 |
+
public function manage_posts_columns( $columns ) {
|
622 |
+
$post_type = get_post_type();
|
623 |
+
if ( $post_type !== MWF_Config::NAME )
|
624 |
+
return $columns;
|
625 |
+
$date = $columns['date'];
|
626 |
+
unset( $columns['date'] );
|
627 |
+
$columns['mwform_form_key'] = __( 'Form Key', MWF_Config::DOMAIN );
|
628 |
+
$columns['date'] = $date;
|
629 |
+
return $columns;
|
630 |
+
}
|
631 |
+
|
632 |
+
/**
|
633 |
+
* manage_posts_custom_column
|
634 |
+
* @param string $column_name
|
635 |
+
* @param int $post_id
|
636 |
+
*/
|
637 |
+
public function manage_posts_custom_column( $column_name, $post_id ) {
|
638 |
+
if ( $column_name === 'mwform_form_key' ) {
|
639 |
+
printf(
|
640 |
+
'<span id="formkey_field">[mwform_formkey key="%d"]</span>',
|
641 |
+
get_the_ID()
|
642 |
+
);
|
643 |
+
}
|
644 |
+
}
|
645 |
}
|