Version Description
- Fix for insertion on AMP pages
Download this release
Release Info
Developer | spacetime |
Plugin | Ad Inserter – WordPress Ads Management with AdSense Header Integration |
Version | 2.3.15 |
Comparing to | |
See all releases |
Code changes from version 2.3.14 to 2.3.15
- ad-inserter.php +10 -6
- constants.php +1 -1
- css/ad-inserter.css +1 -1
- js/ad-inserter.js +1 -1
- readme.txt +11 -1
ad-inserter.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
/*
|
4 |
Plugin Name: Ad Inserter
|
5 |
-
Version: 2.3.
|
6 |
Description: Ad management plugin with advanced advertising options to automatically insert ad codes on your website
|
7 |
Author: Igor Funa
|
8 |
Author URI: http://igorfuna.com/
|
@@ -13,6 +13,9 @@ Plugin URI: http://adinserter.pro/documentation
|
|
13 |
|
14 |
Change Log
|
15 |
|
|
|
|
|
|
|
16 |
Ad Inserter 2.3.14 - 2018-07-14
|
17 |
- Simplified AdSense integration
|
18 |
- Added setting to define maximum number of blocks (ads) per page
|
@@ -4779,12 +4782,12 @@ function generate_debug_css () {
|
|
4779 |
.ai-debug-tags {font-weight: bold; color: white; padding: 2px;}
|
4780 |
.ai-debug-positions {clear: both; text-align: center; padding: 10px 0; font-family: arial; font-weight: bold; border: 1px solid blue; color: blue; background: #eef;}
|
4781 |
.ai-debug-page-type {text-align: center; padding: 10px 0; font-family: arial; font-weight: bold; border: 1px solid green; color: green; background: #efe;}
|
4782 |
-
.ai-debug-status {clear: both; text-align: center; padding: 10px 0; font-weight: bold; border: 1px solid red; color: red; background: #fee;}
|
4783 |
.ai-debug-adb {opacity: 0.85; cursor: pointer;}
|
4784 |
.ai-debug-widget {margin: 0; padding: 0 5px; font-size: 10px; white-space: pre; overflow-x: auto; overflow-y: hidden;}
|
4785 |
-
a.ai-debug-left {float: left; font-size: 10px; text-decoration: none; color: transparent; padding: 0px 10px 0 0; box-shadow: none;}
|
4786 |
-
a.ai-debug-right {float: right; font-size: 10px; text-decoration: none; color: #88f; padding: 0px 10px 0 0; box-shadow: none;}
|
4787 |
-
a.ai-debug-center {text-align: center; font-size: 10px; text-decoration: none; color: white; padding: 0px 10px 0 0; box-shadow: none;}
|
4788 |
.ai-debug-invisible {display: none;}
|
4789 |
.ai-debug-content-hook-positions {color: blue;}
|
4790 |
.ai-debug-removed-html-tags {color: red;}
|
@@ -5382,7 +5385,8 @@ function ai_content_hook ($content = '') {
|
|
5382 |
|
5383 |
// Process content hook only if in_the_loop or filter is set
|
5384 |
$filter_type = $obj->get_filter_type ();
|
5385 |
-
$process_content = in_the_loop () || (($filter_type == AI_FILTER_AUTO || $filter_type == AI_FILTER_CONTENT_PROCESSING) && trim ($obj->get_call_filter()) != '');
|
|
|
5386 |
|
5387 |
if ($process_content) {
|
5388 |
if (($ai_wp_data [AI_WP_DEBUGGING] & AI_DEBUG_POSITIONS) != 0 && !$positions_inserted && $ai_wp_data [AI_WP_DEBUG_BLOCK] <= $block) {
|
2 |
|
3 |
/*
|
4 |
Plugin Name: Ad Inserter
|
5 |
+
Version: 2.3.15
|
6 |
Description: Ad management plugin with advanced advertising options to automatically insert ad codes on your website
|
7 |
Author: Igor Funa
|
8 |
Author URI: http://igorfuna.com/
|
13 |
|
14 |
Change Log
|
15 |
|
16 |
+
Ad Inserter 2.3.15 - 2018-07-18
|
17 |
+
- Fix for insertion on AMP pages
|
18 |
+
|
19 |
Ad Inserter 2.3.14 - 2018-07-14
|
20 |
- Simplified AdSense integration
|
21 |
- Added setting to define maximum number of blocks (ads) per page
|
4782 |
.ai-debug-tags {font-weight: bold; color: white; padding: 2px;}
|
4783 |
.ai-debug-positions {clear: both; text-align: center; padding: 10px 0; font-family: arial; font-weight: bold; border: 1px solid blue; color: blue; background: #eef;}
|
4784 |
.ai-debug-page-type {text-align: center; padding: 10px 0; font-family: arial; font-weight: bold; border: 1px solid green; color: green; background: #efe;}
|
4785 |
+
.ai-debug-status {clear: both; text-align: center; padding: 10px 0; font-family: arial; font-weight: bold; border: 1px solid red; color: red; background: #fee;}
|
4786 |
.ai-debug-adb {opacity: 0.85; cursor: pointer;}
|
4787 |
.ai-debug-widget {margin: 0; padding: 0 5px; font-size: 10px; white-space: pre; overflow-x: auto; overflow-y: hidden;}
|
4788 |
+
a.ai-debug-left {float: left; font-size: 10px; text-decoration: none; color: transparent; padding: 0px 10px 0 0; border: 0; box-shadow: none;}
|
4789 |
+
a.ai-debug-right {float: right; font-size: 10px; text-decoration: none; color: #88f; padding: 0px 10px 0 0; border: 0; box-shadow: none;}
|
4790 |
+
a.ai-debug-center {text-align: center; font-size: 10px; text-decoration: none; color: white; padding: 0px 10px 0 0; border: 0; box-shadow: none;}
|
4791 |
.ai-debug-invisible {display: none;}
|
4792 |
.ai-debug-content-hook-positions {color: blue;}
|
4793 |
.ai-debug-removed-html-tags {color: red;}
|
5385 |
|
5386 |
// Process content hook only if in_the_loop or filter is set
|
5387 |
$filter_type = $obj->get_filter_type ();
|
5388 |
+
// $process_content = $ai_wp_data [AI_WP_AMP_PAGE] || in_the_loop () || (($filter_type == AI_FILTER_AUTO || $filter_type == AI_FILTER_CONTENT_PROCESSING) && trim ($obj->get_call_filter()) != '');
|
5389 |
+
$process_content = true;
|
5390 |
|
5391 |
if ($process_content) {
|
5392 |
if (($ai_wp_data [AI_WP_DEBUGGING] & AI_DEBUG_POSITIONS) != 0 && !$positions_inserted && $ai_wp_data [AI_WP_DEBUG_BLOCK] <= $block) {
|
constants.php
CHANGED
@@ -26,7 +26,7 @@ if (!defined( 'AD_INSERTER_NAME'))
|
|
26 |
define ('AD_INSERTER_NAME', 'Ad Inserter');
|
27 |
|
28 |
if (!defined( 'AD_INSERTER_VERSION'))
|
29 |
-
define ('AD_INSERTER_VERSION', '2.3.
|
30 |
|
31 |
if (!defined ('AD_INSERTER_PLUGIN_BASENAME'))
|
32 |
define ('AD_INSERTER_PLUGIN_BASENAME', plugin_basename (__FILE__));
|
26 |
define ('AD_INSERTER_NAME', 'Ad Inserter');
|
27 |
|
28 |
if (!defined( 'AD_INSERTER_VERSION'))
|
29 |
+
define ('AD_INSERTER_VERSION', '2.3.15');
|
30 |
|
31 |
if (!defined ('AD_INSERTER_PLUGIN_BASENAME'))
|
32 |
define ('AD_INSERTER_PLUGIN_BASENAME', plugin_basename (__FILE__));
|
css/ad-inserter.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
#ai-data {
|
2 |
-
font-family: "2.3.
|
3 |
}
|
4 |
|
5 |
#blocked-warning {
|
1 |
#ai-data {
|
2 |
+
font-family: "2.3.15"; /* Used for version number of the file */
|
3 |
}
|
4 |
|
5 |
#blocked-warning {
|
js/ad-inserter.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
var javascript_version = "2.3.
|
2 |
var ignore_key = true;
|
3 |
var start = 1;
|
4 |
var end = 16;
|
1 |
+
var javascript_version = "2.3.15";
|
2 |
var ignore_key = true;
|
3 |
var start = 1;
|
4 |
var end = 16;
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Tags: ads, adsense, header footer code, ad management, sticky fixed widgets, adv
|
|
6 |
Requires at least: 4.0
|
7 |
Tested up to: 4.9
|
8 |
Requires PHP: 5.6
|
9 |
-
Stable tag: 2.3.
|
10 |
License: GPLv3
|
11 |
|
12 |
Insert and manage ads: Amazon, Google AdSense ads, banner rotation, sticky widget ads, AMP, PHP, HTML, CSS, Javascript, tracking, footer, header code
|
@@ -101,6 +101,10 @@ Average Rating: 5 out of 5 stars - check <a href="https://wordpress.org/support/
|
|
101 |
|
102 |
> The Best WordPress Ad Management Plugin?
|
103 |
|
|
|
|
|
|
|
|
|
104 |
**Endorsed by Google**
|
105 |
|
106 |
Google lists Ad Inserter plugin as possible solution to place code for AdSense ads into your WordPress site.
|
@@ -672,6 +676,9 @@ AD CODE RIGHT
|
|
672 |
|
673 |
== Changelog ==
|
674 |
|
|
|
|
|
|
|
675 |
= 2.3.14 =
|
676 |
- Simplified AdSense integration
|
677 |
- Added setting to define maximum number of blocks (ads) per page
|
@@ -766,6 +773,9 @@ For the changelog of earlier versions, please refer to the separate changelog.tx
|
|
766 |
|
767 |
== Upgrade Notice ==
|
768 |
|
|
|
|
|
|
|
769 |
= 2.3.14 =
|
770 |
Simplified AdSense integration;
|
771 |
Added setting to define maximum number of blocks (ads) per page;
|
6 |
Requires at least: 4.0
|
7 |
Tested up to: 4.9
|
8 |
Requires PHP: 5.6
|
9 |
+
Stable tag: 2.3.14
|
10 |
License: GPLv3
|
11 |
|
12 |
Insert and manage ads: Amazon, Google AdSense ads, banner rotation, sticky widget ads, AMP, PHP, HTML, CSS, Javascript, tracking, footer, header code
|
101 |
|
102 |
> The Best WordPress Ad Management Plugin?
|
103 |
|
104 |
+
[Ad Inserter review](https://www.shoutmeloud.com/ad-inserter-review.html) on ShoutMeLoud
|
105 |
+
|
106 |
+
> Both Google and Amazon recommend this plugin for inserting ads, which is a testament to its quality
|
107 |
+
|
108 |
**Endorsed by Google**
|
109 |
|
110 |
Google lists Ad Inserter plugin as possible solution to place code for AdSense ads into your WordPress site.
|
676 |
|
677 |
== Changelog ==
|
678 |
|
679 |
+
= 2.3.15 =
|
680 |
+
- Fix for insertion on AMP pages
|
681 |
+
|
682 |
= 2.3.14 =
|
683 |
- Simplified AdSense integration
|
684 |
- Added setting to define maximum number of blocks (ads) per page
|
773 |
|
774 |
== Upgrade Notice ==
|
775 |
|
776 |
+
= 2.3.15 =
|
777 |
+
Fix for insertion on AMP pages
|
778 |
+
|
779 |
= 2.3.14 =
|
780 |
Simplified AdSense integration;
|
781 |
Added setting to define maximum number of blocks (ads) per page;
|