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

Version Description

  • Fixed issue for responsive ads not displayed when using Left, Center or Right alignment
Download this release

Release Info

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

Code changes from version 2.0.13 to 2.0.14

Files changed (6) hide show
  1. ad-inserter.php +5 -2
  2. class.php +9 -6
  3. constants.php +1 -1
  4. css/ad-inserter.css +1 -1
  5. js/ad-inserter.js +1 -1
  6. readme.txt +7 -1
ad-inserter.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Ad Inserter
4
- Version: 2.0.13
5
  Description: Insert any ad or code into Wordpress. Perfect for all kinds of ads. Simply enter any ad or HTML/Javascript/PHP code and select where and how you want to display it.
6
  Author: Igor Funa
7
  Author URI: http://igorfuna.com/
@@ -11,7 +11,10 @@ Plugin URI: http://adinserter.pro/documentation
11
  /*
12
  Change Log
13
 
14
- Ad Inserter 2.1.0 - 1 February 2017
 
 
 
15
  - Added icons for Automatic insertion and alignment
16
  - Automatic insertion None changed to Disabled
17
  - Alignment None changed to Default
1
  <?php
2
  /*
3
  Plugin Name: Ad Inserter
4
+ Version: 2.0.14
5
  Description: Insert any ad or code into Wordpress. Perfect for all kinds of ads. Simply enter any ad or HTML/Javascript/PHP code and select where and how you want to display it.
6
  Author: Igor Funa
7
  Author URI: http://igorfuna.com/
11
  /*
12
  Change Log
13
 
14
+ Ad Inserter 2.0.14 - 2 February 2017
15
+ - Fixed issue for responsive ads not displayed when using Left, Center or Right alignment
16
+
17
+ Ad Inserter 2.0.13 - 1 February 2017
18
  - Added icons for Automatic insertion and alignment
19
  - Automatic insertion None changed to Disabled
20
  - Alignment None changed to Default
class.php CHANGED
@@ -533,16 +533,19 @@ abstract class ai_CodeBlock extends ai_BaseCodeBlock {
533
  $style = "margin: ".$margin."px 0px;";
534
  }
535
  elseif ($alignment_type == AI_ALIGNMENT_LEFT) {
536
- // $style = "text-align: left; display: table; margin: ".$margin."px auto ".$margin."px 0;";
537
- $style = "text-align: left; display: flex; justify-content: flex-start; margin: ".$margin."px 0;";
 
538
  }
539
  elseif ($alignment_type == AI_ALIGNMENT_RIGHT) {
540
- // $style = "text-align: right; display: table; margin: ".$margin."px 0 ".$margin."px auto;";
541
- $style = "text-align: right; display: flex; justify-content: flex-end; margin: ".$margin."px 0;";
 
542
  }
543
  elseif ($alignment_type == AI_ALIGNMENT_CENTER) {
544
- // $style = "text-align: center; display: table; margin: ".$margin."px auto;";
545
- $style = "text-align: center; display: flex; justify-content: center; margin: ".$margin."px 0;";
 
546
  }
547
  elseif ($alignment_type == AI_ALIGNMENT_FLOAT_LEFT) {
548
  $style = "float: left; margin: ".$margin."px ".$margin."px ".$margin."px 0;";
533
  $style = "margin: ".$margin."px 0px;";
534
  }
535
  elseif ($alignment_type == AI_ALIGNMENT_LEFT) {
536
+ $style = "text-align: left; margin: ".$margin."px 0px;";
537
+ // $style = "text-align: left; display: table; margin: ".$margin."px auto ".$margin."px 0; width: 100%;";
538
+ // $style = "text-align: left; display: flex; justify-content: flex-start; margin: ".$margin."px 0;";
539
  }
540
  elseif ($alignment_type == AI_ALIGNMENT_RIGHT) {
541
+ $style = "text-align: right; margin: ".$margin."px 0px;";
542
+ // $style = "text-align: right; display: table; margin: ".$margin."px 0 ".$margin."px auto; width: 100%;";
543
+ // $style = "text-align: right; display: flex; justify-content: flex-end; margin: ".$margin."px 0;";
544
  }
545
  elseif ($alignment_type == AI_ALIGNMENT_CENTER) {
546
+ $style = "text-align: center; margin: ".$margin."px auto;";
547
+ // $style = "text-align: center; display: table; margin: ".$margin."px auto; width: 100%;";
548
+ // $style = "text-align: center; display: flex; justify-content: center; margin: ".$margin."px 0;";
549
  }
550
  elseif ($alignment_type == AI_ALIGNMENT_FLOAT_LEFT) {
551
  $style = "float: left; margin: ".$margin."px ".$margin."px ".$margin."px 0;";
constants.php CHANGED
@@ -11,7 +11,7 @@ if (!defined( 'AD_INSERTER_NAME'))
11
  define ('AD_INSERTER_NAME', 'Ad Inserter');
12
 
13
  if (!defined( 'AD_INSERTER_VERSION'))
14
- define ('AD_INSERTER_VERSION', '2.0.13');
15
 
16
  if (!defined ('AD_INSERTER_PLUGIN_BASENAME'))
17
  define ('AD_INSERTER_PLUGIN_BASENAME', plugin_basename (__FILE__));
11
  define ('AD_INSERTER_NAME', 'Ad Inserter');
12
 
13
  if (!defined( 'AD_INSERTER_VERSION'))
14
+ define ('AD_INSERTER_VERSION', '2.0.14');
15
 
16
  if (!defined ('AD_INSERTER_PLUGIN_BASENAME'))
17
  define ('AD_INSERTER_PLUGIN_BASENAME', plugin_basename (__FILE__));
css/ad-inserter.css CHANGED
@@ -1,5 +1,5 @@
1
  #data {
2
- font-family: "2.0.13"; /* Used for version number of the file */
3
  }
4
 
5
  #blocked-warning {
1
  #data {
2
+ font-family: "2.0.14"; /* 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.0.13";
2
  var ignore_key = true;
3
  var start = 1;
4
  var end = 16;
1
+ var javascript_version = "2.0.14";
2
  var ignore_key = true;
3
  var start = 1;
4
  var end = 16;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: adsense, amazon, advertising, ad, advert, html, javascript, php, code, widget, sidebar, responsive, viewport, rotating, banner, ad rotation, geo targeting, multisite, contextual, shortcodes, widgets, header, footer, mobile, desktop, phone, tablet, custom css, category, tag, filter, url, caching support
5
  Requires at least: 4.0
6
  Tested up to: 4.7.2
7
- Stable tag: 2.0.12
8
  License: GPLv3
9
 
10
  Insert any advert or code into Wordpress. Perfect for all kinds of banners and ads including AdSense and Amazon. Powerful features, simple use.
@@ -671,6 +671,9 @@ AD CODE RIGHT
671
 
672
  == Changelog ==
673
 
 
 
 
674
  = 2.0.13 =
675
  - Added icons for Automatic insertion and alignment
676
  - Automatic insertion None changed to Disabled
@@ -984,6 +987,9 @@ AD CODE RIGHT
984
 
985
  == Upgrade Notice ==
986
 
 
 
 
987
  = 2.0.13 =
988
  Added icons for Automatic insertion and alignment; Changed database option data for Automatic insertion and Alignment settings;
989
  Improved CSS 3 code for Left, Center and Right alignment; Few minor bug fixes and cosmetic changes;
4
  Tags: adsense, amazon, advertising, ad, advert, html, javascript, php, code, widget, sidebar, responsive, viewport, rotating, banner, ad rotation, geo targeting, multisite, contextual, shortcodes, widgets, header, footer, mobile, desktop, phone, tablet, custom css, category, tag, filter, url, caching support
5
  Requires at least: 4.0
6
  Tested up to: 4.7.2
7
+ Stable tag: 2.0.13
8
  License: GPLv3
9
 
10
  Insert any advert or code into Wordpress. Perfect for all kinds of banners and ads including AdSense and Amazon. Powerful features, simple use.
671
 
672
  == Changelog ==
673
 
674
+ = 2.0.14 =
675
+ - Fixed issue for responsive ads not displayed when using Left, Center or Right alignment
676
+
677
  = 2.0.13 =
678
  - Added icons for Automatic insertion and alignment
679
  - Automatic insertion None changed to Disabled
987
 
988
  == Upgrade Notice ==
989
 
990
+ = 2.0.14 =
991
+ Fixed issue for responsive ads not displayed when using Left, Center or Right alignment
992
+
993
  = 2.0.13 =
994
  Added icons for Automatic insertion and alignment; Changed database option data for Automatic insertion and Alignment settings;
995
  Improved CSS 3 code for Left, Center and Right alignment; Few minor bug fixes and cosmetic changes;