Version Description
- Bug fix:
- Bug fix:
- Cahged :
Download this release
Release Info
Developer | inc2734 |
Plugin | MW WP Form |
Version | 0.9.1 |
Comparing to | |
See all releases |
Code changes from version 0.9 to 0.9.1
- form_fields/mw_form_field_file.php +10 -8
- form_fields/mw_form_field_image.php +10 -8
- mw-wp-form.php +11 -4
- readme.txt +6 -1
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.1
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created: May 17, 2013
|
10 |
-
* Modified:
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
@@ -58,7 +58,7 @@ class mw_form_field_file extends mw_form_field {
|
|
58 |
$value = $this->Form->getValue( $atts['name'] );
|
59 |
$upload_file_keys = $this->Form->getValue( MWF_Config::UPLOAD_FILE_KEYS );
|
60 |
if ( !empty( $value ) && is_array( $upload_file_keys ) && in_array( $atts['name'], $upload_file_keys ) ) {
|
61 |
-
$_ret .= '<div class="
|
62 |
$_ret .= '<a href="' . esc_attr( $value ) . '" target="_blank">' . __( 'Uploaded.', MWF_Config::DOMAIN ) . '</a>';
|
63 |
$_ret .= $this->Form->hidden( $atts['name'], $value );
|
64 |
$_ret .= '</div>';
|
@@ -76,11 +76,13 @@ class mw_form_field_file extends mw_form_field {
|
|
76 |
*/
|
77 |
protected function previewPage( $atts ) {
|
78 |
$value = $this->Form->getValue( $atts['name'] );
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
|
|
|
|
84 |
}
|
85 |
|
86 |
/**
|
3 |
* Name: MW Form Field File
|
4 |
* URI: http://2inc.org
|
5 |
* Description: 画像アップロードフィールドを出力。
|
6 |
+
* Version: 1.1.1
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created: May 17, 2013
|
10 |
+
* Modified: July 10, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
58 |
$value = $this->Form->getValue( $atts['name'] );
|
59 |
$upload_file_keys = $this->Form->getValue( MWF_Config::UPLOAD_FILE_KEYS );
|
60 |
if ( !empty( $value ) && is_array( $upload_file_keys ) && in_array( $atts['name'], $upload_file_keys ) ) {
|
61 |
+
$_ret .= '<div class="' . MWF_Config::NAME . '_file">';
|
62 |
$_ret .= '<a href="' . esc_attr( $value ) . '" target="_blank">' . __( 'Uploaded.', MWF_Config::DOMAIN ) . '</a>';
|
63 |
$_ret .= $this->Form->hidden( $atts['name'], $value );
|
64 |
$_ret .= '</div>';
|
76 |
*/
|
77 |
protected function previewPage( $atts ) {
|
78 |
$value = $this->Form->getValue( $atts['name'] );
|
79 |
+
if ( $value ) {
|
80 |
+
$_ret = '<div class="' . MWF_Config::NAME . '_file">';
|
81 |
+
$_ret .= '<a href="' . esc_attr( $value ) . '" target="_blank">' . __( 'Uploaded.', MWF_Config::DOMAIN ) . '</a>';
|
82 |
+
$_ret .= '</div>';
|
83 |
+
$_ret .= $this->Form->hidden( $atts['name'], $value );
|
84 |
+
return $_ret;
|
85 |
+
}
|
86 |
}
|
87 |
|
88 |
/**
|
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.1
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created: May 17, 2013
|
10 |
-
* Modified:
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
@@ -58,7 +58,7 @@ class mw_form_field_image extends mw_form_field {
|
|
58 |
$value = $this->Form->getValue( $atts['name'] );
|
59 |
$upload_file_keys = $this->Form->getValue( MWF_Config::UPLOAD_FILE_KEYS );
|
60 |
if ( !empty( $value ) && is_array( $upload_file_keys ) && in_array( $atts['name'], $upload_file_keys ) ) {
|
61 |
-
$_ret .= '<div class="
|
62 |
$_ret .= '<img src="' . esc_attr( $value ) . '" alt="" />';
|
63 |
$_ret .= $this->Form->hidden( $atts['name'], $value );
|
64 |
$_ret .= '</div>';
|
@@ -76,11 +76,13 @@ class mw_form_field_image extends mw_form_field {
|
|
76 |
*/
|
77 |
protected function previewPage( $atts ) {
|
78 |
$value = $this->Form->getValue( $atts['name'] );
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
|
|
|
|
84 |
}
|
85 |
|
86 |
/**
|
3 |
* Name: MW Form Field Image
|
4 |
* URI: http://2inc.org
|
5 |
* Description: 画像アップロードフィールドを出力。
|
6 |
+
* Version: 1.1.1
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created: May 17, 2013
|
10 |
+
* Modified: July 10, 2013
|
11 |
* License: GPL2
|
12 |
*
|
13 |
* Copyright 2013 Takashi Kitajima (email : inc@2inc.org)
|
58 |
$value = $this->Form->getValue( $atts['name'] );
|
59 |
$upload_file_keys = $this->Form->getValue( MWF_Config::UPLOAD_FILE_KEYS );
|
60 |
if ( !empty( $value ) && is_array( $upload_file_keys ) && in_array( $atts['name'], $upload_file_keys ) ) {
|
61 |
+
$_ret .= '<div class="' . MWF_Config::NAME . '_image">';
|
62 |
$_ret .= '<img src="' . esc_attr( $value ) . '" alt="" />';
|
63 |
$_ret .= $this->Form->hidden( $atts['name'], $value );
|
64 |
$_ret .= '</div>';
|
76 |
*/
|
77 |
protected function previewPage( $atts ) {
|
78 |
$value = $this->Form->getValue( $atts['name'] );
|
79 |
+
if ( $value ) {
|
80 |
+
$_ret = '<div class="' . MWF_Config::NAME . '_image">';
|
81 |
+
$_ret .= '<img src="' . esc_attr( $value ) . '" alt="" />';
|
82 |
+
$_ret .= $this->Form->hidden( $atts['name'], $value );
|
83 |
+
$_ret .= '</div>';
|
84 |
+
return $_ret;
|
85 |
+
}
|
86 |
}
|
87 |
|
88 |
/**
|
mw-wp-form.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Plugin Name: MW WP Form
|
4 |
* Plugin URI: http://2inc.org/blog/category/products/wordpress_plugins/mw-wp-form/
|
5 |
* Description: MW WP Form can create mail form with a confirmation screen.
|
6 |
-
* Version: 0.9
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created: September 25, 2012
|
10 |
-
* Modified:
|
11 |
* Text Domain: mw-wp-form
|
12 |
* Domain Path: /languages/
|
13 |
* License: GPL2
|
@@ -49,8 +49,7 @@ class mw_wp_form {
|
|
49 |
* __construct
|
50 |
*/
|
51 |
public function __construct() {
|
52 |
-
|
53 |
-
|
54 |
// 有効化した時の処理
|
55 |
register_activation_hook( __FILE__, array( __CLASS__, 'activation' ) );
|
56 |
// アンインストールした時の処理
|
@@ -223,6 +222,14 @@ class mw_wp_form {
|
|
223 |
add_shortcode( 'mwform_complete_message', array( $this, '_mwform_complete_message' ) );
|
224 |
}
|
225 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
226 |
/**
|
227 |
* is_management_different_url
|
228 |
* 管理画面作成・個別URLのときtrueを返す
|
3 |
* Plugin Name: MW WP Form
|
4 |
* Plugin URI: http://2inc.org/blog/category/products/wordpress_plugins/mw-wp-form/
|
5 |
* Description: MW WP Form can create mail form with a confirmation screen.
|
6 |
+
* Version: 0.9.1
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created: September 25, 2012
|
10 |
+
* Modified: July 10, 2013
|
11 |
* Text Domain: mw-wp-form
|
12 |
* Domain Path: /languages/
|
13 |
* License: GPL2
|
49 |
* __construct
|
50 |
*/
|
51 |
public function __construct() {
|
52 |
+
add_action( 'plugins_loaded', array( $this, 'load_plugin_textdomain' ) );
|
|
|
53 |
// 有効化した時の処理
|
54 |
register_activation_hook( __FILE__, array( __CLASS__, 'activation' ) );
|
55 |
// アンインストールした時の処理
|
222 |
add_shortcode( 'mwform_complete_message', array( $this, '_mwform_complete_message' ) );
|
223 |
}
|
224 |
|
225 |
+
/**
|
226 |
+
* load_plugin_textdomain
|
227 |
+
* 言語ファイルの読み込み
|
228 |
+
*/
|
229 |
+
public function load_plugin_textdomain() {
|
230 |
+
load_plugin_textdomain( MWF_Config::DOMAIN, false, basename( dirname( __FILE__ ) ) . '/languages' );
|
231 |
+
}
|
232 |
+
|
233 |
/**
|
234 |
* is_management_different_url
|
235 |
* 管理画面作成・個別URLのときtrueを返す
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:
|
|
4 |
Tags: plugin, form, confirm, preview
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 3.5
|
7 |
-
Stable tag: 0.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -36,6 +36,11 @@ http://2inc.org/blog/category/products/wordpress_plugins/mw-wp-form/
|
|
36 |
|
37 |
== Changelog ==
|
38 |
|
|
|
|
|
|
|
|
|
|
|
39 |
= 0.9 =
|
40 |
* Added : Akismet設定を追加
|
41 |
|
4 |
Tags: plugin, form, confirm, preview
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 3.5
|
7 |
+
Stable tag: 0.9.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
36 |
|
37 |
== Changelog ==
|
38 |
|
39 |
+
= 0.9.1 =
|
40 |
+
* Bug fix: 画像・ファイルアップロードフィールドのクラス名が正しく設定されていないのを修正
|
41 |
+
* Bug fix: 画像・ファイルアップロードフィールドで未アップロード時でも確認画面に項目が表示されてしまうのを修正
|
42 |
+
* Cahged : 言語ファイルの読み込みタイミングを変更
|
43 |
+
|
44 |
= 0.9 =
|
45 |
* Added : Akismet設定を追加
|
46 |
|