Version Description
- Fix for responsive AMP ads using center alignment
Download this release
Release Info
Developer | spacetime |
Plugin | Ad Inserter – WordPress Ads Management with AdSense Header Integration |
Version | 2.2.15 |
Comparing to | |
See all releases |
Code changes from version 2.2.14 to 2.2.15
- ad-inserter.php +7 -4
- class.php +13 -13
- constants.php +1 -1
- css/ad-inserter.css +1 -1
- js/ad-inserter.js +1 -1
- readme.txt +73 -68
ad-inserter.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Ad Inserter
|
4 |
-
Version: 2.2.
|
5 |
Description: Ad management plugin with advanced advertising options to automatically insert ad codes on your website
|
6 |
Author: Igor Funa
|
7 |
Author URI: http://igorfuna.com/
|
@@ -12,6 +12,9 @@ Plugin URI: http://adinserter.pro/documentation
|
|
12 |
|
13 |
Change Log
|
14 |
|
|
|
|
|
|
|
15 |
Ad Inserter 2.2.14 - 2018-01-04
|
16 |
- Added code generator for placeholders
|
17 |
- Added option to disable caching (works with WP Super Cache, W3 Total Cache and WP Rocket)
|
@@ -2269,9 +2272,9 @@ function ai_amp_css_hook () {
|
|
2269 |
echo get_alignment_css ();
|
2270 |
|
2271 |
// Temp fix for alignment on AMP pages
|
2272 |
-
echo ".ai-amp-left {" . AI_ALIGNMENT_CSS_AMP_LEFT . "}\n";
|
2273 |
-
echo ".ai-amp-right {" . AI_ALIGNMENT_CSS_AMP_RIGHT . "}\n";
|
2274 |
-
echo ".ai-amp-center {" . AI_ALIGNMENT_CSS_AMP_CENTER . "}\n";
|
2275 |
}
|
2276 |
|
2277 |
if ($ai_wp_data [AI_WP_DEBUGGING] != 0) generate_debug_css ();
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Ad Inserter
|
4 |
+
Version: 2.2.15
|
5 |
Description: Ad management plugin with advanced advertising options to automatically insert ad codes on your website
|
6 |
Author: Igor Funa
|
7 |
Author URI: http://igorfuna.com/
|
12 |
|
13 |
Change Log
|
14 |
|
15 |
+
Ad Inserter 2.2.15 - 2018-01-04
|
16 |
+
- Fix for responsive AMP ads using center alignment
|
17 |
+
|
18 |
Ad Inserter 2.2.14 - 2018-01-04
|
19 |
- Added code generator for placeholders
|
20 |
- Added option to disable caching (works with WP Super Cache, W3 Total Cache and WP Rocket)
|
2272 |
echo get_alignment_css ();
|
2273 |
|
2274 |
// Temp fix for alignment on AMP pages
|
2275 |
+
// echo ".ai-amp-left {" . AI_ALIGNMENT_CSS_AMP_LEFT . "}\n";
|
2276 |
+
// echo ".ai-amp-right {" . AI_ALIGNMENT_CSS_AMP_RIGHT . "}\n";
|
2277 |
+
// echo ".ai-amp-center {" . AI_ALIGNMENT_CSS_AMP_CENTER . "}\n";
|
2278 |
}
|
2279 |
|
2280 |
if ($ai_wp_data [AI_WP_DEBUGGING] != 0) generate_debug_css ();
|
class.php
CHANGED
@@ -1394,19 +1394,19 @@ abstract class ai_CodeBlock extends ai_BaseCodeBlock {
|
|
1394 |
$alignment_class = $this->get_alignment_class ();
|
1395 |
|
1396 |
// Temp fix for alignment on AMP pages
|
1397 |
-
if ($ai_wp_data [AI_WP_AMP_PAGE] && $alignment_class != '' && defined ('AI_AMP_HEADER_STYLES') && AI_AMP_HEADER_STYLES) {
|
1398 |
-
switch ($this->get_alignment_type()) {
|
1399 |
-
case AI_ALIGNMENT_LEFT:
|
1400 |
-
$alignment_class .= ' ai-amp-left';
|
1401 |
-
break;
|
1402 |
-
case AI_ALIGNMENT_RIGHT:
|
1403 |
-
$alignment_class .= ' ai-amp-right';
|
1404 |
-
break;
|
1405 |
-
case AI_ALIGNMENT_CENTER:
|
1406 |
-
$alignment_class .= ' ai-amp-center';
|
1407 |
-
break;
|
1408 |
-
}
|
1409 |
-
}
|
1410 |
|
1411 |
$hidden_viewports = '';
|
1412 |
if (($ai_wp_data [AI_WP_DEBUGGING] & AI_DEBUG_BLOCKS) != 0 && $this->get_detection_client_side()) {
|
1394 |
$alignment_class = $this->get_alignment_class ();
|
1395 |
|
1396 |
// Temp fix for alignment on AMP pages
|
1397 |
+
// if ($ai_wp_data [AI_WP_AMP_PAGE] && $alignment_class != '' && defined ('AI_AMP_HEADER_STYLES') && AI_AMP_HEADER_STYLES) {
|
1398 |
+
// switch ($this->get_alignment_type()) {
|
1399 |
+
// case AI_ALIGNMENT_LEFT:
|
1400 |
+
// $alignment_class .= ' ai-amp-left';
|
1401 |
+
// break;
|
1402 |
+
// case AI_ALIGNMENT_RIGHT:
|
1403 |
+
// $alignment_class .= ' ai-amp-right';
|
1404 |
+
// break;
|
1405 |
+
// case AI_ALIGNMENT_CENTER:
|
1406 |
+
// $alignment_class .= ' ai-amp-center';
|
1407 |
+
// break;
|
1408 |
+
// }
|
1409 |
+
// }
|
1410 |
|
1411 |
$hidden_viewports = '';
|
1412 |
if (($ai_wp_data [AI_WP_DEBUGGING] & AI_DEBUG_BLOCKS) != 0 && $this->get_detection_client_side()) {
|
constants.php
CHANGED
@@ -23,7 +23,7 @@ if (!defined( 'AD_INSERTER_NAME'))
|
|
23 |
define ('AD_INSERTER_NAME', 'Ad Inserter');
|
24 |
|
25 |
if (!defined( 'AD_INSERTER_VERSION'))
|
26 |
-
define ('AD_INSERTER_VERSION', '2.2.
|
27 |
|
28 |
if (!defined ('AD_INSERTER_PLUGIN_BASENAME'))
|
29 |
define ('AD_INSERTER_PLUGIN_BASENAME', plugin_basename (__FILE__));
|
23 |
define ('AD_INSERTER_NAME', 'Ad Inserter');
|
24 |
|
25 |
if (!defined( 'AD_INSERTER_VERSION'))
|
26 |
+
define ('AD_INSERTER_VERSION', '2.2.15');
|
27 |
|
28 |
if (!defined ('AD_INSERTER_PLUGIN_BASENAME'))
|
29 |
define ('AD_INSERTER_PLUGIN_BASENAME', plugin_basename (__FILE__));
|
css/ad-inserter.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
#ai-data {
|
2 |
-
font-family: "2.2.
|
3 |
}
|
4 |
|
5 |
#blocked-warning {
|
1 |
#ai-data {
|
2 |
+
font-family: "2.2.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.2.
|
2 |
var ignore_key = true;
|
3 |
var start = 1;
|
4 |
var end = 16;
|
1 |
+
var javascript_version = "2.2.15";
|
2 |
var ignore_key = true;
|
3 |
var start = 1;
|
4 |
var end = 16;
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Tags: ads, adsense, ad management, advertising manager, advanced contextual ads,
|
|
6 |
Requires at least: 4.0
|
7 |
Tested up to: 4.9
|
8 |
Requires PHP: 5.3
|
9 |
-
Stable tag: 2.2.
|
10 |
License: GPLv3
|
11 |
|
12 |
Insert and manage ads: AdSense, Amazon, banners, ad rotation, sticky ad widgets, shortcodes, AMP, PHP, HTML, CSS, form, tracking, header, footer code
|
@@ -17,77 +17,77 @@ Ad management plugin with many advanced advertising features. **Supports all kin
|
|
17 |
|
18 |
Ad Inserter is more than just ad manager plugin. It provides many advanced options to insert any Javascript, CSS, HTML, PHP or advert code anywhere on the page.
|
19 |
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
|
68 |
And Ad Inserter Pro - all-in-one <a href="http://adinserter.pro/" target="_blank">WordPress ad management plugin</a> has even more advanced features:
|
69 |
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
|
87 |
Ad Inserter Wordpress plugin is an advanced advertising manager - it has many features and options to automate ad insertion and to optimally monetize your website on desktop, tablet and phone displays. It provides many simple ways to insert any Javascript, HTML, PHP or advert code anywhere on the page. For best ad placement and to use optimal advertising positions please read the user manual to get the most of the plugin.
|
88 |
|
89 |
-
|
90 |
-
|
91 |
|
92 |
**Endorsed by Amazon**
|
93 |
|
@@ -95,8 +95,7 @@ Amazon suggests to use Ad Inserter to add Native Shopping Ads to Wordpress posts
|
|
95 |
|
96 |
> Native Shopping Ads provide highly relevant and dynamic product recommendations in a stylishly designed and responsive ad unit that can be placed at the end of your content or within your content to create a more compelling visitor experience and shopping opportunity.
|
97 |
>
|
98 |
-
>
|
99 |
-
> * Ad Inserter supports advanced contextual ads: check settings for <a href="https://adinserter.pro/settings#amazon">contextual Native Shopping Ads</a> that show items related to the post content (using post tags)
|
100 |
|
101 |
**Ad Inserter Ad Manager - One Plugin - Many Functions**
|
102 |
|
@@ -760,6 +759,9 @@ AD CODE RIGHT
|
|
760 |
|
761 |
== Changelog ==
|
762 |
|
|
|
|
|
|
|
763 |
= 2.2.14 =
|
764 |
- Added code generator for placeholders
|
765 |
- Added option to disable caching (works with WP Super Cache, W3 Total Cache and WP Rocket)
|
@@ -937,6 +939,9 @@ AD CODE RIGHT
|
|
937 |
|
938 |
== Upgrade Notice ==
|
939 |
|
|
|
|
|
|
|
940 |
= 2.2.14 =
|
941 |
Added code generator for placeholders;
|
942 |
Added option to disable caching (works with WP Super Cache, W3 Total Cache and WP Rocket);
|
6 |
Requires at least: 4.0
|
7 |
Tested up to: 4.9
|
8 |
Requires PHP: 5.3
|
9 |
+
Stable tag: 2.2.14
|
10 |
License: GPLv3
|
11 |
|
12 |
Insert and manage ads: AdSense, Amazon, banners, ad rotation, sticky ad widgets, shortcodes, AMP, PHP, HTML, CSS, form, tracking, header, footer code
|
17 |
|
18 |
Ad Inserter is more than just ad manager plugin. It provides many advanced options to insert any Javascript, CSS, HTML, PHP or advert code anywhere on the page.
|
19 |
|
20 |
+
**Features**
|
21 |
+
|
22 |
+
* 16 code (ad) blocks
|
23 |
+
* Syntax highlighting editor
|
24 |
+
* Code preview with visual CSS editor
|
25 |
+
* Automatically inserts ads in posts and pages
|
26 |
+
* Insert before or after post
|
27 |
+
* Insert before or after content
|
28 |
+
* Insert before or after paragraph
|
29 |
+
* Insert before or after random paragraph
|
30 |
+
* Insert before or after multiple paragraphs
|
31 |
+
* Insert before or after comments
|
32 |
+
* Insert before or after excerpt
|
33 |
+
* Insert before or after any HTML element in post
|
34 |
+
* Insert above header (after `<body>` tag, needs Output buffering enabled)
|
35 |
+
* Insert in footer (before `</body>` tag)
|
36 |
+
* Insert at relative position in posts
|
37 |
+
* Insert between posts on blog pages (in-feed AdSense ads)
|
38 |
+
* Insert between excerpts on blog pages
|
39 |
+
* Insert between comments
|
40 |
+
* Insert at custom hook positions (`do_action ()` WP function in themes)
|
41 |
+
* Clearance options to avoid insertion near images or headers
|
42 |
+
* Insertion exceptions for posts and pages
|
43 |
+
* Insert header (`<head>` section) and footer code
|
44 |
+
* Insert raw HTTP response header lines
|
45 |
+
* Insert Google Analytics, Piwik or any other web analytics code
|
46 |
+
* Insert HTML, CSS, Javascript or PHP code
|
47 |
+
* Code generator for banners and placeholders
|
48 |
+
* Visual ad editor
|
49 |
+
* Banner code generator
|
50 |
+
* Manual insertion: widgets, shortcodes, PHP function call
|
51 |
+
* Sticky (fixed) widgets (sticky sidebar - the sidebar does not move when the page is scrolled)
|
52 |
+
* Custom block alignments and styles
|
53 |
+
* Insert (different) ads on AMP pages
|
54 |
+
* Custom CSS class name for wrapping divs to avoid ad blockers
|
55 |
+
* Use shortcodes from other plugins
|
56 |
+
* Use custom fields as defined in posts
|
57 |
+
* PHP code processing
|
58 |
+
* Ad rotation (server-side and client-side - works with caching)
|
59 |
+
* Ad blocking detection - popup message, page redirection
|
60 |
+
* Desktop/mobile device detection (server-side and client-side - works with caching)
|
61 |
+
* Black/White-list categories, tags, taxonomies, post IDs, urls, url query parameters, cookies, referers
|
62 |
+
* Clipboard support to easily copy code blocks or settings
|
63 |
+
* Simple troubleshooting with many debugging functions
|
64 |
+
* Function to visualize inserted code blocks
|
65 |
+
* Function to visualize available insertion positions
|
66 |
+
* Function to visualize HTML tags
|
67 |
|
68 |
And Ad Inserter Pro - all-in-one <a href="http://adinserter.pro/" target="_blank">WordPress ad management plugin</a> has even more advanced features:
|
69 |
|
70 |
+
* 64 code (ad) blocks
|
71 |
+
* Geolocation using Webnet77 or <a href="http://www.maxmind.com/" target="_blank">MaxMind</a> databases (works also with caching)
|
72 |
+
* Black/White-list IP addresses or countries (works also with caching)
|
73 |
+
* Ad impression and click tracking (works also with `<iframe>` Javascript ads like Google AdSense)
|
74 |
+
* External tracking via Google Analytics or Piwik
|
75 |
+
* A/B testing
|
76 |
+
* Sticky ad positions with optional close button (left, top, right, bottom)
|
77 |
+
* Scheduling with fallback option
|
78 |
+
* Ad blocking detection - ad replacement, content protection
|
79 |
+
* Ad blocking statistics
|
80 |
+
* Multisite options to limit settings on the sites
|
81 |
+
* Post/page exception management
|
82 |
+
* more custom viewports for client-side desktop/mobile device detection
|
83 |
+
* more custom hooks for custom theme insertions
|
84 |
+
* Export and import of settings
|
85 |
+
* Support via email
|
86 |
|
87 |
Ad Inserter Wordpress plugin is an advanced advertising manager - it has many features and options to automate ad insertion and to optimally monetize your website on desktop, tablet and phone displays. It provides many simple ways to insert any Javascript, HTML, PHP or advert code anywhere on the page. For best ad placement and to use optimal advertising positions please read the user manual to get the most of the plugin.
|
88 |
|
89 |
+
* Check <a href="http://adinserter.pro/documentation" target="_blank">Ad Inserter documentation page</a> for detailed description of all the features and some <a href="http://adinserter.pro/settings" target="_blank">common settings</a> for quick start
|
90 |
+
* Download **PDF user guide** for Ad Inserter: go to <a href="http://adinserter.pro/" target="_blank">Ad Inserter Pro plugin</a> page and below you can find button for free download of Ad Inserter User Guide
|
91 |
|
92 |
**Endorsed by Amazon**
|
93 |
|
95 |
|
96 |
> Native Shopping Ads provide highly relevant and dynamic product recommendations in a stylishly designed and responsive ad unit that can be placed at the end of your content or within your content to create a more compelling visitor experience and shopping opportunity.
|
97 |
>
|
98 |
+
> Check <a href="https://affiliate-program.amazon.com/help/topic/t405" target="_blank">Wordpress Integration Guide for Native Shopping Ads</a>. Ad Inserter also supports advanced contextual ads: check settings for <a href="https://adinserter.pro/settings#amazon">contextual Native Shopping Ads</a> that show items related to the post content (using post tags).
|
|
|
99 |
|
100 |
**Ad Inserter Ad Manager - One Plugin - Many Functions**
|
101 |
|
759 |
|
760 |
== Changelog ==
|
761 |
|
762 |
+
= 2.2.15 =
|
763 |
+
- Fix for responsive AMP ads using center alignment
|
764 |
+
|
765 |
= 2.2.14 =
|
766 |
- Added code generator for placeholders
|
767 |
- Added option to disable caching (works with WP Super Cache, W3 Total Cache and WP Rocket)
|
939 |
|
940 |
== Upgrade Notice ==
|
941 |
|
942 |
+
= 2.2.15 =
|
943 |
+
Fix for responsive AMP ads using center alignment
|
944 |
+
|
945 |
= 2.2.14 =
|
946 |
Added code generator for placeholders;
|
947 |
Added option to disable caching (works with WP Super Cache, W3 Total Cache and WP Rocket);
|