Version Description
Download this release
Release Info
Developer | kurudrive |
Plugin | VK All in One Expansion Unit |
Version | 2.2.5 |
Comparing to | |
See all releases |
Code changes from version 2.2.4 to 2.2.5
- plugins/call_to_action/class.call_to_action.php +1 -1
- plugins/insert_ads.php +5 -7
- readme.txt +1 -1
- vkExUnit.php +1 -1
plugins/call_to_action/class.call_to_action.php
CHANGED
@@ -5,7 +5,7 @@ class vExUnit_call_responce {
|
|
5 |
|
6 |
public static $posttype_name = 'cta';
|
7 |
|
8 |
-
public $content_number =
|
9 |
|
10 |
public static function instance() {
|
11 |
if ( isset( self::$instance ) )
|
5 |
|
6 |
public static $posttype_name = 'cta';
|
7 |
|
8 |
+
public $content_number = 100;
|
9 |
|
10 |
public static function instance() {
|
11 |
if ( isset( self::$instance ) )
|
plugins/insert_ads.php
CHANGED
@@ -28,9 +28,7 @@ class vExUnit_Ads {
|
|
28 |
|
29 |
protected function run_init() {
|
30 |
add_action('admin_init', array($this, 'option_init' ));
|
31 |
-
|
32 |
-
add_filter('the_content', array($this, 'set_content' ), 1);
|
33 |
-
}
|
34 |
add_shortcode('vkExUnit_ad', array($this, 'shortcode') );
|
35 |
}
|
36 |
|
@@ -46,10 +44,10 @@ class vExUnit_Ads {
|
|
46 |
|
47 |
public function set_content($content){
|
48 |
$option = $this->get_option();
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
|
54 |
return $content;
|
55 |
}
|
28 |
|
29 |
protected function run_init() {
|
30 |
add_action('admin_init', array($this, 'option_init' ));
|
31 |
+
add_filter('the_content', array($this, 'set_content' ), 10,1);
|
|
|
|
|
32 |
add_shortcode('vkExUnit_ad', array($this, 'shortcode') );
|
33 |
}
|
34 |
|
44 |
|
45 |
public function set_content($content){
|
46 |
$option = $this->get_option();
|
47 |
+
if( get_post_type() == 'post' ){
|
48 |
+
$content = preg_replace('/(<span id="more-[0-9]+"><\/span>)/', '$1'.'[vkExUnit_ad area=more]' , $content);
|
49 |
+
$content .= '[vkExUnit_ad area=after]';
|
50 |
+
}
|
51 |
|
52 |
return $content;
|
53 |
}
|
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.2
|
7 |
-
Stable tag: 2.2.
|
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.2
|
7 |
+
Stable tag: 2.2.5
|
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: https://github.com/kurudrive/VK-All-in-one-Expansion-Unit
|
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: 2.2.
|
7 |
Author: Vektor,Inc.
|
8 |
Author URI: http://vektor-inc.co.jp
|
9 |
License: GPL2
|
3 |
Plugin Name: VK All in One Expansion Unit
|
4 |
Plugin URI: https://github.com/kurudrive/VK-All-in-one-Expansion-Unit
|
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: 2.2.5
|
7 |
Author: Vektor,Inc.
|
8 |
Author URI: http://vektor-inc.co.jp
|
9 |
License: GPL2
|