Version Description
- disabled empty css file in frontend
- removed older changelog from readme
- fixed saving new ad conditions type "other" into global array
Download this release
Release Info
Developer | webzunft |
Plugin | Advanced Ads |
Version | 1.3.9 |
Comparing to | |
See all releases |
Code changes from version 1.3.8 to 1.3.9
- advanced-ads.php +1 -1
- classes/ad.php +2 -0
- includes/array_ad_conditions.php +6 -0
- public/class-advanced-ads.php +2 -2
- readme.txt +7 -81
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.9
|
16 |
* Author: Thomas Maier
|
17 |
* Author URI: http://webgilde.com
|
18 |
* Text Domain: advanced-ads
|
classes/ad.php
CHANGED
@@ -752,6 +752,8 @@ class Advads_Ad {
|
|
752 |
elseif($_condition == 0)
|
753 |
$ads_by_conditions[$_condition_key]['exclude'][] = $this->id;
|
754 |
break;
|
|
|
|
|
755 |
} // switch
|
756 |
} // forearch
|
757 |
|
752 |
elseif($_condition == 0)
|
753 |
$ads_by_conditions[$_condition_key]['exclude'][] = $this->id;
|
754 |
break;
|
755 |
+
case 'other' :
|
756 |
+
$ads_by_conditions[$_condition_key][$this->id] = $_condition;
|
757 |
} // switch
|
758 |
} // forearch
|
759 |
|
includes/array_ad_conditions.php
CHANGED
@@ -23,6 +23,12 @@
|
|
23 |
$advanced_ads_slug = Advanced_Ads::get_instance()->get_plugin_slug();
|
24 |
|
25 |
$advanced_ads_ad_conditions = array(
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
'posttypes' => array(
|
27 |
'label' => __('Post Types', $advanced_ads_slug),
|
28 |
'description' => __('Choose the public post types on which to display the ad.', $advanced_ads_slug),
|
23 |
$advanced_ads_slug = Advanced_Ads::get_instance()->get_plugin_slug();
|
24 |
|
25 |
$advanced_ads_ad_conditions = array(
|
26 |
+
'enabled' => array( // dummy, to let the validation of the general ad conditions past
|
27 |
+
// 'label' => __('Post Types', $advanced_ads_slug),
|
28 |
+
// 'description' => __('Choose the public post types on which to display the ad.', $advanced_ads_slug),
|
29 |
+
'type' => 'other',
|
30 |
+
// 'callback' => array('AdvAds_Display_Condition_Callbacks', 'post_types')
|
31 |
+
),
|
32 |
'posttypes' => array(
|
33 |
'label' => __('Post Types', $advanced_ads_slug),
|
34 |
'description' => __('Choose the public post types on which to display the ad.', $advanced_ads_slug),
|
public/class-advanced-ads.php
CHANGED
@@ -299,7 +299,7 @@ class Advanced_Ads {
|
|
299 |
* @since 1.0.0
|
300 |
*/
|
301 |
public function enqueue_styles() {
|
302 |
-
wp_enqueue_style($this->plugin_slug . '-plugin-styles', plugins_url('assets/css/public.css', __FILE__), array(), self::VERSION);
|
303 |
}
|
304 |
|
305 |
/**
|
@@ -685,7 +685,7 @@ class Advanced_Ads {
|
|
685 |
$placements = get_option('advads-ads-placements', array());
|
686 |
foreach($placements as $_placement_id => $_placement){
|
687 |
if(empty($_placement['item'])) continue;
|
688 |
-
|
689 |
if(isset($_placement['type']) && $_placement['type'] == 'post_top'){
|
690 |
$content = Advads_Ad_Placements::output($_placement_id) . $content;
|
691 |
}
|
299 |
* @since 1.0.0
|
300 |
*/
|
301 |
public function enqueue_styles() {
|
302 |
+
// wp_enqueue_style($this->plugin_slug . '-plugin-styles', plugins_url('assets/css/public.css', __FILE__), array(), self::VERSION);
|
303 |
}
|
304 |
|
305 |
/**
|
685 |
$placements = get_option('advads-ads-placements', array());
|
686 |
foreach($placements as $_placement_id => $_placement){
|
687 |
if(empty($_placement['item'])) continue;
|
688 |
+
|
689 |
if(isset($_placement['type']) && $_placement['type'] == 'post_top'){
|
690 |
$content = Advads_Ad_Placements::output($_placement_id) . $content;
|
691 |
}
|
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 |
|
@@ -147,6 +147,12 @@ There is no revenue share. Advanced Ads doesn’t alter your ad codes in a way t
|
|
147 |
|
148 |
== Changelog ==
|
149 |
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
= 1.3.8 =
|
151 |
|
152 |
* fixed empty content placements still being parsed
|
@@ -200,86 +206,6 @@ There is no revenue share. Advanced Ads doesn’t alter your ad codes in a way t
|
|
200 |
* added partial German translation
|
201 |
* added Italien translation (thanks to sangkavr)
|
202 |
|
203 |
-
= 1.2.7 =
|
204 |
-
|
205 |
-
* fixed translation files (thanks to sangkavr)
|
206 |
-
* fixed inconsistent text domains
|
207 |
-
* started with German translation
|
208 |
-
|
209 |
-
= 1.2.6 =
|
210 |
-
|
211 |
-
* layout updates to display condition box
|
212 |
-
* moved single post display condition to new layout
|
213 |
-
* individual post ids display condition is now only checked on singular pages
|
214 |
-
* added quick action buttons to overview page
|
215 |
-
* added debug output for display conditions (if WP_DEBUG is true)
|
216 |
-
* fixed bug with trashed ads still showing
|
217 |
-
* fixed admin notices appearing on overview page on the wrong place
|
218 |
-
* fixed display conditions for category of post and category archives interfered with each other
|
219 |
-
|
220 |
-
IMPORTANT: It is no longer possible to use the single post display condition to select individual posts where the ad is displayed and where it is hidden at the same time. This didn’t made sense before and is prevented now completely.
|
221 |
-
|
222 |
-
= 1.2.5 =
|
223 |
-
|
224 |
-
* fixed wrong links on overview page
|
225 |
-
* consider the "all" option for display conditions
|
226 |
-
* moved category archive ids display condition to new layout
|
227 |
-
* extended category archive ids to all category archive pages
|
228 |
-
* prevent a display condition option to be included and excluded at the same time
|
229 |
-
* optimized layout of overview page
|
230 |
-
* fix for php prior to 5.3
|
231 |
-
|
232 |
-
= 1.2.4 =
|
233 |
-
|
234 |
-
* fixed wrong links for ad groups and debug page
|
235 |
-
* display ad groups in ad list
|
236 |
-
|
237 |
-
= 1.2.3 =
|
238 |
-
|
239 |
-
major changes:
|
240 |
-
|
241 |
-
* added advanced js functions ([see some examples](http://wpadvancedads.com/javascript-functions/))
|
242 |
-
* moved taxonomies display condition to new layout
|
243 |
-
* rearranged the menu to fix its occasional disappearance
|
244 |
-
* added donation link – donations are very welcome :)
|
245 |
-
|
246 |
-
= 1.2.2 =
|
247 |
-
|
248 |
-
major changes:
|
249 |
-
|
250 |
-
* added overview page
|
251 |
-
* new layout for display condition check for post types
|
252 |
-
* added ad width and height values
|
253 |
-
|
254 |
-
fixes:
|
255 |
-
|
256 |
-
* don’t display ads that are not published or visible to logged in users only
|
257 |
-
|
258 |
-
= 1.2.1 =
|
259 |
-
|
260 |
-
major changes:
|
261 |
-
|
262 |
-
* moved auto injections from ads to placements [PLEASE MOVE YOUR INJECTIONS THERE]
|
263 |
-
* added post content injections
|
264 |
-
* reading suggestion: [My test of AdSense Responsive Ads](http://webgilde.com/en/adsense-responsive-ad/)
|
265 |
-
|
266 |
-
other fixes:
|
267 |
-
|
268 |
-
* fix bugs with ad weights throwing issues when not set
|
269 |
-
* removed public ad groups query
|
270 |
-
* updated arrays displayed on debug page
|
271 |
-
* ad groups are now displayed before ads in placements and ad widget
|
272 |
-
* added title to widget
|
273 |
-
|
274 |
-
= 1.2 =
|
275 |
-
|
276 |
-
* added widget for ads or ad groups
|
277 |
-
* added information on how to display ads, ad groups and ad placements
|
278 |
-
* tested with WordPress 4.0
|
279 |
-
* added filters and function to dynamically create a wrapper around the ad
|
280 |
-
* ! ad injection works on posts and pages now
|
281 |
-
* fixed excluded post types for ads
|
282 |
-
|
283 |
== Upgrade Notice ==
|
284 |
|
285 |
= 1.3.2 =
|
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.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
147 |
|
148 |
== Changelog ==
|
149 |
|
150 |
+
= 1.3.9 =
|
151 |
+
|
152 |
+
* disabled empty css file in frontend
|
153 |
+
* removed older changelog from readme
|
154 |
+
* fixed saving new ad conditions type "other" into global array
|
155 |
+
|
156 |
= 1.3.8 =
|
157 |
|
158 |
* fixed empty content placements still being parsed
|
206 |
* added partial German translation
|
207 |
* added Italien translation (thanks to sangkavr)
|
208 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
209 |
== Upgrade Notice ==
|
210 |
|
211 |
= 1.3.2 =
|