VK All in One Expansion Unit - Version 5.2.7

Version Description

Download this release

Release Info

Developer kurudrive
Plugin Icon 128x128 VK All in One Expansion Unit
Version 5.2.7
Comparing to
See all releases

Code changes from version 5.2.6 to 5.2.7

Files changed (3) hide show
  1. plugins/contact_section.php +20 -6
  2. readme.txt +1 -1
  3. vkExUnit.php +1 -1
plugins/contact_section.php CHANGED
@@ -219,14 +219,28 @@ class vExUnit_Contact {
219
 
220
  public static function is_my_turn()
221
  {
 
222
  global $is_pagewidget;
223
- if ( $is_pagewidget ) { return false; }
224
- if ( vkExUnit_is_excerpt() ) { return false; }
225
- if ( ! is_page() ) { return false; }
226
- if ( get_post_meta( get_the_id(), 'vkExUnit_contact_enable', true ) ) { return true; }
227
- return false;
228
- }
 
 
229
 
 
 
 
 
 
 
 
 
 
 
 
230
 
231
  public function set_content( $content )
232
  {
219
 
220
  public static function is_my_turn()
221
  {
222
+ // 固定ページウィジェットの場合出力しない
223
  global $is_pagewidget;
224
+ if ( $is_pagewidget ) {
225
+ return false;
226
+ }
227
+
228
+ // 抜粋では表示しない
229
+ if ( vkExUnit_is_excerpt() ) {
230
+ return false;
231
+ }
232
 
233
+ // 固定ページ以外では表示しない
234
+ if ( get_post_type() == 'page' ) {
235
+ // 固定ページで問い合わせ先情報にチェックが入っている時
236
+ if ( get_post_meta( get_the_id(), 'vkExUnit_contact_enable', true ) ) {
237
+ return true;
238
+ }
239
+ } else {
240
+ return false;
241
+ }
242
+
243
+ }
244
 
245
  public function set_content( $content )
246
  {
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.7.2
7
- Stable tag: 5.2.6
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.7.2
7
+ Stable tag: 5.2.7
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.2.6
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.2.7
7
  * Author: Vektor,Inc.
8
  * Text Domain: vkExUnit
9
  * Domain Path: /languages