Ad Inserter – WordPress Ads Management with AdSense Header Integration - Version 2.2.12

Version Description

  • Fix for code block styles when block class name was not set
Download this release

Release Info

Developer spacetime
Plugin Icon 128x128 Ad Inserter – WordPress Ads Management with AdSense Header Integration
Version 2.2.12
Comparing to
See all releases

Code changes from version 2.2.11 to 2.2.12

Files changed (5) hide show
  1. ad-inserter.php +7 -2
  2. constants.php +1 -1
  3. css/ad-inserter.css +1 -1
  4. js/ad-inserter.js +1 -1
  5. readme.txt +7 -1
ad-inserter.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Ad Inserter
4
- Version: 2.2.11
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.11 - 2017-12-25
16
  - Code block styles moved to classes
17
  - Code block list moved to the sidebar
@@ -3009,7 +3012,9 @@ function get_viewport_css () {
3009
  function get_alignment_css () {
3010
  global $ai_db_options;
3011
 
3012
- if (!isset ($ai_db_options [AI_OPTION_GLOBAL]['ALIGNMENT_CSS'])) $ai_db_options [AI_OPTION_GLOBAL]['ALIGNMENT_CSS'] = generate_alignment_css ();
 
 
3013
 
3014
  return ($ai_db_options [AI_OPTION_GLOBAL]['ALIGNMENT_CSS']);
3015
  }
1
  <?php
2
  /*
3
  Plugin Name: Ad Inserter
4
+ Version: 2.2.12
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.12 - 2017-12-25
16
+ - Fix for code block styles when block class name was not set
17
+
18
  Ad Inserter 2.2.11 - 2017-12-25
19
  - Code block styles moved to classes
20
  - Code block list moved to the sidebar
3012
  function get_alignment_css () {
3013
  global $ai_db_options;
3014
 
3015
+ if (!isset ($ai_db_options [AI_OPTION_GLOBAL]['ALIGNMENT_CSS']) ||
3016
+ isset ($ai_db_options [AI_OPTION_GLOBAL]['VERSION']) && $ai_db_options [AI_OPTION_GLOBAL]['VERSION'] < '020211'
3017
+ ) $ai_db_options [AI_OPTION_GLOBAL]['ALIGNMENT_CSS'] = generate_alignment_css ();
3018
 
3019
  return ($ai_db_options [AI_OPTION_GLOBAL]['ALIGNMENT_CSS']);
3020
  }
constants.php CHANGED
@@ -20,7 +20,7 @@ if (!defined( 'AD_INSERTER_NAME'))
20
  define ('AD_INSERTER_NAME', 'Ad Inserter');
21
 
22
  if (!defined( 'AD_INSERTER_VERSION'))
23
- define ('AD_INSERTER_VERSION', '2.2.11');
24
 
25
  if (!defined ('AD_INSERTER_PLUGIN_BASENAME'))
26
  define ('AD_INSERTER_PLUGIN_BASENAME', plugin_basename (__FILE__));
20
  define ('AD_INSERTER_NAME', 'Ad Inserter');
21
 
22
  if (!defined( 'AD_INSERTER_VERSION'))
23
+ define ('AD_INSERTER_VERSION', '2.2.12');
24
 
25
  if (!defined ('AD_INSERTER_PLUGIN_BASENAME'))
26
  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.11"; /* Used for version number of the file */
3
  }
4
 
5
  #blocked-warning {
1
  #ai-data {
2
+ font-family: "2.2.12"; /* 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.11";
2
  var ignore_key = true;
3
  var start = 1;
4
  var end = 16;
1
+ var javascript_version = "2.2.12";
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.2.4
9
- Stable tag: 2.2.10
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
@@ -756,6 +756,9 @@ AD CODE RIGHT
756
 
757
  == Changelog ==
758
 
 
 
 
759
  = 2.2.11 =
760
  - Code block styles moved to classes
761
  - Code block list moved to the sidebar
@@ -916,6 +919,9 @@ AD CODE RIGHT
916
 
917
  == Upgrade Notice ==
918
 
 
 
 
919
  = 2.2.11 =
920
  Code block styles moved to classes;
921
  Code block list moved to the sidebar;
6
  Requires at least: 4.0
7
  Tested up to: 4.9
8
  Requires PHP: 5.2.4
9
+ Stable tag: 2.2.11
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
756
 
757
  == Changelog ==
758
 
759
+ = 2.2.12 =
760
+ - Fix for code block styles when block class name was not set
761
+
762
  = 2.2.11 =
763
  - Code block styles moved to classes
764
  - Code block list moved to the sidebar
919
 
920
  == Upgrade Notice ==
921
 
922
+ = 2.2.12 =
923
+ Fix for code block styles when block class name was not set
924
+
925
  = 2.2.11 =
926
  Code block styles moved to classes;
927
  Code block list moved to the sidebar;