Version Description
Download this release
Release Info
Developer | kurudrive |
Plugin | VK All in One Expansion Unit |
Version | 5.4.4 |
Comparing to | |
See all releases |
Code changes from version 5.4.3 to 5.4.4
- plugins/other_widget/widget-page.php +30 -9
- readme.txt +1 -1
- vkExUnit.php +1 -1
plugins/other_widget/widget-page.php
CHANGED
@@ -38,7 +38,7 @@ class WP_Widget_vkExUnit_widget_page extends WP_Widget {
|
|
38 |
<?php //タイトル ?>
|
39 |
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label><br/>
|
40 |
<input type="text" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo esc_attr( $instance['title'] ); ?>" />
|
41 |
-
|
42 |
<br />
|
43 |
|
44 |
<?php /* タイトルの表示形式の選択 */ ?>
|
@@ -110,18 +110,39 @@ class WP_Widget_vkExUnit_widget_page extends WP_Widget {
|
|
110 |
$pageid = $instance['page_id'];
|
111 |
$page = get_page( $pageid );
|
112 |
|
113 |
-
|
114 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
$widget_title['display'] = true;
|
116 |
-
|
117 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
$widget_title['display'] = false;
|
|
|
|
|
119 |
}
|
120 |
-
|
121 |
-
|
|
|
|
|
|
|
|
|
122 |
$widget_title['display'] = false;
|
123 |
}
|
124 |
|
|
|
|
|
125 |
// ウィジェットタイトルを選択していて、タイトル入力欄に入力がある場合
|
126 |
if ( $instance['set_title'] == 'title-widget' && isset( $instance['title'] ) && $instance['title'] ) {
|
127 |
$widget_title['title'] = $instance['title'];
|
@@ -130,7 +151,7 @@ class WP_Widget_vkExUnit_widget_page extends WP_Widget {
|
|
130 |
} else if ( ( $instance['set_title'] === true ) || ( $instance['set_title'] == 'title-page' ) ){
|
131 |
$widget_title['title'] = $page->post_title;
|
132 |
} else {
|
133 |
-
$widget_title['title'] =
|
134 |
}
|
135 |
return $widget_title;
|
136 |
}
|
@@ -144,7 +165,7 @@ class WP_Widget_vkExUnit_widget_page extends WP_Widget {
|
|
144 |
$widget_title = $this->widget_title( $instance );
|
145 |
|
146 |
echo PHP_EOL.'<div id="widget-page-'.$pageid.'" class="widget_pageContent">' . PHP_EOL;
|
147 |
-
if ( $widget_title['
|
148 |
echo $args['before_title'] . $widget_title['title'] . $args['after_title'] . PHP_EOL;
|
149 |
}
|
150 |
echo apply_filters( 'the_content', $page->post_content );
|
38 |
<?php //タイトル ?>
|
39 |
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label><br/>
|
40 |
<input type="text" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo esc_attr( $instance['title'] ); ?>" />
|
41 |
+
<br />
|
42 |
<br />
|
43 |
|
44 |
<?php /* タイトルの表示形式の選択 */ ?>
|
110 |
$pageid = $instance['page_id'];
|
111 |
$page = get_page( $pageid );
|
112 |
|
113 |
+
// Set display
|
114 |
+
/*-------------------------------------------*/
|
115 |
+
// 5.3以前のユーザーで、タイトル表示にチェックしていなかった場合
|
116 |
+
if ( $instance['set_title'] == null ){
|
117 |
+
$widget_title['display'] = false;
|
118 |
+
|
119 |
+
// 5.3以前のユーザーで、タイトル表示にチェックがはいっていた場合
|
120 |
+
} else if ( $instance['set_title'] === true ){
|
121 |
$widget_title['display'] = true;
|
122 |
+
|
123 |
+
} else if ( $instance['set_title'] == 'title-hidden' ){
|
124 |
+
$widget_title['display'] = false;
|
125 |
+
|
126 |
+
// ウィジェットのタイトルが選択されている場合は
|
127 |
+
} else if ( $instance['set_title'] == 'title-widget' ){
|
128 |
+
|
129 |
+
// ウィジェットタイトルが未入力の場合
|
130 |
+
if ( empty( $instance['title'] ) ){
|
131 |
$widget_title['display'] = false;
|
132 |
+
} else {
|
133 |
+
$widget_title['display'] = true;
|
134 |
}
|
135 |
+
|
136 |
+
// 固定ページのタイトルが選択されている場合は
|
137 |
+
} else if ( $instance['set_title'] == 'title-page' ){
|
138 |
+
$widget_title['display'] = true;
|
139 |
+
|
140 |
+
} else {
|
141 |
$widget_title['display'] = false;
|
142 |
}
|
143 |
|
144 |
+
// Set title
|
145 |
+
/*-------------------------------------------*/
|
146 |
// ウィジェットタイトルを選択していて、タイトル入力欄に入力がある場合
|
147 |
if ( $instance['set_title'] == 'title-widget' && isset( $instance['title'] ) && $instance['title'] ) {
|
148 |
$widget_title['title'] = $instance['title'];
|
151 |
} else if ( ( $instance['set_title'] === true ) || ( $instance['set_title'] == 'title-page' ) ){
|
152 |
$widget_title['title'] = $page->post_title;
|
153 |
} else {
|
154 |
+
$widget_title['title'] = null;
|
155 |
}
|
156 |
return $widget_title;
|
157 |
}
|
165 |
$widget_title = $this->widget_title( $instance );
|
166 |
|
167 |
echo PHP_EOL.'<div id="widget-page-'.$pageid.'" class="widget_pageContent">' . PHP_EOL;
|
168 |
+
if ( $widget_title['display'] ) {
|
169 |
echo $args['before_title'] . $widget_title['title'] . $args['after_title'] . PHP_EOL;
|
170 |
}
|
171 |
echo apply_filters( 'the_content', $page->post_content );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:
|
|
4 |
Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
|
5 |
Requires at least: 4.2
|
6 |
Tested up to: 4.8.1
|
7 |
-
Stable tag: 5.4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
4 |
Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
|
5 |
Requires at least: 4.2
|
6 |
Tested up to: 4.8.1
|
7 |
+
Stable tag: 5.4.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
vkExUnit.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: VK All in One Expansion Unit
|
4 |
* Plugin URI: http://ex-unit.vektor-inc.co.jp
|
5 |
* Description: This plug-in is an integrated plug-in with a variety of features that make it powerful your web site. Many features can be stopped individually. Example Facebook Page Plugin,Social Bookmarks,Print OG Tags,Print Twitter Card Tags,Print Google Analytics tag,New post widget,Insert Related Posts and more!
|
6 |
-
* Version: 5.4.
|
7 |
* Author: Vektor,Inc.
|
8 |
* Text Domain: vkExUnit
|
9 |
* Domain Path: /languages
|
3 |
* Plugin Name: VK All in One Expansion Unit
|
4 |
* Plugin URI: http://ex-unit.vektor-inc.co.jp
|
5 |
* Description: This plug-in is an integrated plug-in with a variety of features that make it powerful your web site. Many features can be stopped individually. Example Facebook Page Plugin,Social Bookmarks,Print OG Tags,Print Twitter Card Tags,Print Google Analytics tag,New post widget,Insert Related Posts and more!
|
6 |
+
* Version: 5.4.4
|
7 |
* Author: Vektor,Inc.
|
8 |
* Text Domain: vkExUnit
|
9 |
* Domain Path: /languages
|