VK All in One Expansion Unit - Version 4.4.1

Version Description

Download this release

Release Info

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

Code changes from version 4.4.0 to 4.4.1

plugins/call_to_action/class.call_to_action.php CHANGED
@@ -41,7 +41,7 @@ class vExUnit_call_responce {
41
 
42
  public function option_init() {
43
  vkExUnit_register_setting(
44
- 'Call To Action', // tab label.
45
  'vkExUnit_cta_settings', // name attr
46
  array( $this, 'sanitize_config' ), // sanitaise function name
47
  array( $this, 'render_configPage' ) // setting_page function name
@@ -328,6 +328,7 @@ jQuery(document).ready(function($){
328
 
329
  public function content_filter( $content ) {
330
  if ( self::is_pagewidget() ) { return $content; }
 
331
  if ( vkExUnit_is_excerpt() ) { return $content; }
332
  $content .= self::render_cta_content( $this->is_cta_id() );
333
  return $content;
@@ -336,9 +337,13 @@ jQuery(document).ready(function($){
336
 
337
  public static function is_pagewidget() {
338
  global $is_pagewidget;
339
- return ($is_pagewidget)? true : false;
340
  }
341
 
 
 
 
 
342
 
343
  public function sanitize_config( $input ) {
344
  $posttypes = array_merge( array( 'post' => 'post', 'page' => 'page' ), get_post_types( array( 'public' => true, '_builtin' => false ), 'names' ) );
41
 
42
  public function option_init() {
43
  vkExUnit_register_setting(
44
+ 'Call To Action', // tab label.
45
  'vkExUnit_cta_settings', // name attr
46
  array( $this, 'sanitize_config' ), // sanitaise function name
47
  array( $this, 'render_configPage' ) // setting_page function name
328
 
329
  public function content_filter( $content ) {
330
  if ( self::is_pagewidget() ) { return $content; }
331
+ if ( self::is_contentsarea_posts_widget() ) { return $content; }
332
  if ( vkExUnit_is_excerpt() ) { return $content; }
333
  $content .= self::render_cta_content( $this->is_cta_id() );
334
  return $content;
337
 
338
  public static function is_pagewidget() {
339
  global $is_pagewidget;
340
+ return ( $is_pagewidget )? true : false;
341
  }
342
 
343
+ public static function is_contentsarea_posts_widget() {
344
+ global $is_contentsarea_posts_widget;
345
+ return ( $is_contentsarea_posts_widget ) ? true : false;
346
+ }
347
 
348
  public function sanitize_config( $input ) {
349
  $posttypes = array_merge( array( 'post' => 'post', 'page' => 'page' ), get_post_types( array( 'public' => true, '_builtin' => false ), 'names' ) );
plugins/insert_ads.php CHANGED
@@ -47,12 +47,17 @@ class vExUnit_Ads {
47
  global $is_pagewidget;
48
  if ( $is_pagewidget ) { return $content; }
49
  $option = $this->get_option();
50
- if ( get_post_type() == 'post' ) {
51
- $content = preg_replace( '/(<span id="more-[0-9]+"><\/span>)/', '$1'.'[vkExUnit_ad area=more]' , $content );
52
- $content = '[vkExUnit_ad area=before]'.$content;
53
- $content .= '[vkExUnit_ad area=after]';
 
 
 
 
54
  }
55
 
 
56
  return $content;
57
  }
58
 
47
  global $is_pagewidget;
48
  if ( $is_pagewidget ) { return $content; }
49
  $option = $this->get_option();
50
+ $post_types = array('post');
51
+ $post_types = apply_filters( 'veu_add_ad',$post_types );
52
+ foreach ($post_types as $key => $post_type) {
53
+ if ( get_post_type() == $post_type ) {
54
+ $content = preg_replace( '/(<span id="more-[0-9]+"><\/span>)/', '$1'.'[vkExUnit_ad area=more]' , $content );
55
+ $content = '[vkExUnit_ad area=before]'.$content;
56
+ $content .= '[vkExUnit_ad area=after]';
57
+ }
58
  }
59
 
60
+
61
  return $content;
62
  }
63
 
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.6
7
- Stable tag: 4.4.0
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.6
7
+ Stable tag: 4.4.1
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: 4.4.0
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: 4.4.1
7
  * Author: Vektor,Inc.
8
  * Text Domain: vkExUnit
9
  * Domain Path: /languages