Version Description
- fixed ad wrapper class for Advanced Ads Layer add-on
Download this release
Release Info
Developer | webzunft |
Plugin | Advanced Ads |
Version | 1.3.14 |
Comparing to | |
See all releases |
Code changes from version 1.3.13 to 1.3.14
- advanced-ads.php +1 -1
- classes/ad.php +2 -2
- classes/ad_placements.php +1 -1
- readme.txt +5 -1
advanced-ads.php
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
* Plugin Name: Advanced Ads
|
13 |
* Plugin URI: http://wpadvancedads.com
|
14 |
* Description: Manage and optimize your ads in WordPress
|
15 |
-
* Version: 1.3.
|
16 |
* Author: Thomas Maier
|
17 |
* Author URI: http://webgilde.com
|
18 |
* Text Domain: advanced-ads
|
12 |
* Plugin Name: Advanced Ads
|
13 |
* Plugin URI: http://wpadvancedads.com
|
14 |
* Description: Manage and optimize your ads in WordPress
|
15 |
+
* Version: 1.3.14
|
16 |
* Author: Thomas Maier
|
17 |
* Author URI: http://webgilde.com
|
18 |
* Text Domain: advanced-ads
|
classes/ad.php
CHANGED
@@ -853,8 +853,8 @@ class Advads_Ad {
|
|
853 |
}
|
854 |
}
|
855 |
|
856 |
-
if(!empty($this->output['class']) &&
|
857 |
-
$wrapper['class'] =
|
858 |
}
|
859 |
|
860 |
if(!empty($this->output['margin']['top'])) {
|
853 |
}
|
854 |
}
|
855 |
|
856 |
+
if(!empty($this->output['class']) && is_array($this->output['class'])) {
|
857 |
+
$wrapper['class'] = $this->output['class'];
|
858 |
}
|
859 |
|
860 |
if(!empty($this->output['margin']['top'])) {
|
classes/ad_placements.php
CHANGED
@@ -198,7 +198,7 @@ class Advads_Ad_Placements {
|
|
198 |
|
199 |
// create class from placement id
|
200 |
$class = 'advads-' . $id;
|
201 |
-
return get_ad($_item_id, array('output' => array('class' => $class)));
|
202 |
|
203 |
} elseif ($_item[0] == 'group') {
|
204 |
// add the placement to the global output array
|
198 |
|
199 |
// create class from placement id
|
200 |
$class = 'advads-' . $id;
|
201 |
+
return get_ad($_item_id, array('output' => array('class' => array($class))));
|
202 |
|
203 |
} elseif ($_item[0] == 'group') {
|
204 |
// add the placement to the global output array
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id
|
|
4 |
Tags: ads, ad, adsense, display, banner, advertisements, adverts, advert, monetization
|
5 |
Requires at least: WP 3.5, PHP 5.3
|
6 |
Tested up to: 4.1.
|
7 |
-
Stable tag: 1.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -154,6 +154,10 @@ There is no revenue share. Advanced Ads doesn’t alter your ad codes in a way t
|
|
154 |
|
155 |
== Changelog ==
|
156 |
|
|
|
|
|
|
|
|
|
157 |
= 1.3.13 =
|
158 |
|
159 |
* fixed ad wrapper options disappearing for placements
|
4 |
Tags: ads, ad, adsense, display, banner, advertisements, adverts, advert, monetization
|
5 |
Requires at least: WP 3.5, PHP 5.3
|
6 |
Tested up to: 4.1.
|
7 |
+
Stable tag: 1.3.14
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
154 |
|
155 |
== Changelog ==
|
156 |
|
157 |
+
= 1.3.14 =
|
158 |
+
|
159 |
+
* fixed ad wrapper class for [Advanced Ads Layer add-on](http://wpadvancedads.com/layer-ads/)
|
160 |
+
|
161 |
= 1.3.13 =
|
162 |
|
163 |
* fixed ad wrapper options disappearing for placements
|