Version Description
- fixed Content Age condition
- fixed group options not changing correctly when switching types
Download this release
Release Info
Developer | webzunft |
Plugin | Advanced Ads |
Version | 1.8.2 |
Comparing to | |
See all releases |
Code changes from version 1.8.1 to 1.8.2
- admin/assets/css/admin.css +14 -4
- admin/assets/js/admin.js +1 -1
- admin/views/setting-license.php +1 -1
- advanced-ads.php +2 -2
- classes/display-conditions.php +2 -2
- readme.txt +6 -1
admin/assets/css/admin.css
CHANGED
@@ -42,7 +42,7 @@ h2.hndle .advads-hndlelinks a + a { margin-left: 1em; }
|
|
42 |
#advads-ad-injection-box .button-primary { display: block; margin-bottom: 10px; padding: 0px; width: 100%; height: 75px; background-size: 100px 75px; font-size: 1.5em; text-indent: -9999px; border: solid 1px #0085ba; }
|
43 |
#advads-ad-injection-box .button-primary { box-shadow: 0px 0px 2px #0085ba; }
|
44 |
#advads-ad-injection-box button:hover { background: #0085ba !important; color: #fff; text-indent: 0; white-space: normal; cursor: pointer; }
|
45 |
-
#advads-ad-injection-box input[type="number"] { width:
|
46 |
|
47 |
#advads-ad-injection-shortcode { width: 130px; border: none; background: #ededed; }
|
48 |
#advads-ad-injection-message-placement-created { font-size: 1.5em; }
|
@@ -138,10 +138,10 @@ select + .advads-conditions-single { display: inline-block; }
|
|
138 |
.advads-conditions-terms-search { display: none; }
|
139 |
.post-type-advanced_ads #ad-parameters-box .advads-ad-parameters-spinner { display: block; float: none; }
|
140 |
.post-type-advanced_ads #advanced-ads-ad-parameters-size label + label { margin-left: 1em; }
|
141 |
-
.post-type-advanced_ads #advanced-ads-ad-parameters-size input[type="number"] { width:
|
142 |
.post-type-advanced_ads #advanced-ad-output-position label + label { margin-left: 1em; }
|
143 |
.post-type-advanced_ads #advanced-ad-output-position img { border: 1px solid #ddd; padding: 2px; }
|
144 |
-
.post-type-advanced_ads #advanced-ad-output-margin input[type="number"] { width:
|
145 |
.post-type-advanced_ads #advanced-ad-output-margin label + label { margin-left: 1em; }
|
146 |
|
147 |
/* option lists */
|
@@ -254,7 +254,7 @@ fieldset.advads-group-add-ad { margin-top: 1em; }
|
|
254 |
.advads-placements-table .advads-usage { margin-bottom: 20px; }
|
255 |
.advads-placements-table .advads-usage input { width: 100%; }
|
256 |
.advads-placements-table-options { text-align: right; }
|
257 |
-
.advads-placements-table-options input[type="number"] { width:
|
258 |
.advads-placements-table ol { margin: 0.5em 0; list-style-position: inside; }
|
259 |
|
260 |
/**
|
@@ -355,3 +355,13 @@ tr:hover .on-hover { display: block; }
|
|
355 |
|
356 |
/* Filesystem */
|
357 |
#advanced-ads-rfc-dialog .cancel-button { display: inline; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
#advads-ad-injection-box .button-primary { display: block; margin-bottom: 10px; padding: 0px; width: 100%; height: 75px; background-size: 100px 75px; font-size: 1.5em; text-indent: -9999px; border: solid 1px #0085ba; }
|
43 |
#advads-ad-injection-box .button-primary { box-shadow: 0px 0px 2px #0085ba; }
|
44 |
#advads-ad-injection-box button:hover { background: #0085ba !important; color: #fff; text-indent: 0; white-space: normal; cursor: pointer; }
|
45 |
+
#advads-ad-injection-box input[type="number"] { width: 4.5em; }
|
46 |
|
47 |
#advads-ad-injection-shortcode { width: 130px; border: none; background: #ededed; }
|
48 |
#advads-ad-injection-message-placement-created { font-size: 1.5em; }
|
138 |
.advads-conditions-terms-search { display: none; }
|
139 |
.post-type-advanced_ads #ad-parameters-box .advads-ad-parameters-spinner { display: block; float: none; }
|
140 |
.post-type-advanced_ads #advanced-ads-ad-parameters-size label + label { margin-left: 1em; }
|
141 |
+
.post-type-advanced_ads #advanced-ads-ad-parameters-size input[type="number"] { width: 4.5em; margin-left: .5em; }
|
142 |
.post-type-advanced_ads #advanced-ad-output-position label + label { margin-left: 1em; }
|
143 |
.post-type-advanced_ads #advanced-ad-output-position img { border: 1px solid #ddd; padding: 2px; }
|
144 |
+
.post-type-advanced_ads #advanced-ad-output-margin input[type="number"] { width: 4.5em; }
|
145 |
.post-type-advanced_ads #advanced-ad-output-margin label + label { margin-left: 1em; }
|
146 |
|
147 |
/* option lists */
|
254 |
.advads-placements-table .advads-usage { margin-bottom: 20px; }
|
255 |
.advads-placements-table .advads-usage input { width: 100%; }
|
256 |
.advads-placements-table-options { text-align: right; }
|
257 |
+
.advads-placements-table-options input[type="number"] { width: 4.5em; }
|
258 |
.advads-placements-table ol { margin: 0.5em 0; list-style-position: inside; }
|
259 |
|
260 |
/**
|
355 |
|
356 |
/* Filesystem */
|
357 |
#advanced-ads-rfc-dialog .cancel-button { display: inline; }
|
358 |
+
|
359 |
+
/* Fix Safari autofill: https://stackoverflow.com/questions/38663578/how-to-hide-autofill-safari-icon-in-input-field */
|
360 |
+
input::-webkit-contacts-auto-fill-button {
|
361 |
+
visibility: hidden;
|
362 |
+
display: none !important;
|
363 |
+
pointer-events: none;
|
364 |
+
height: 0;
|
365 |
+
width: 0;
|
366 |
+
margin: 0;
|
367 |
+
}
|
admin/assets/js/admin.js
CHANGED
@@ -285,7 +285,7 @@ jQuery( document ).ready(function ($) {
|
|
285 |
var current_type = el.val();
|
286 |
|
287 |
// now, show only the ones corresponding with the group type
|
288 |
-
|
289 |
}
|
290 |
advads_show_group_options( $( '.advads-ad-group-type input:checked' ) );
|
291 |
// group page: hide ads if more than 4 – than only show 3
|
285 |
var current_type = el.val();
|
286 |
|
287 |
// now, show only the ones corresponding with the group type
|
288 |
+
el.parents('.advads-ad-group-form').find( '.advads-group-type-' + current_type ).show();
|
289 |
}
|
290 |
advads_show_group_options( $( '.advads-ad-group-type input:checked' ) );
|
291 |
// group page: hide ads if more than 4 – than only show 3
|
admin/views/setting-license.php
CHANGED
@@ -9,7 +9,7 @@ ob_start();
|
|
9 |
data-addon="<?php echo $index; ?>"
|
10 |
data-pluginname="<?php echo $plugin_name; ?>"
|
11 |
data-optionslug="<?php echo $options_slug; ?>"
|
12 |
-
name="advads_license_activate"><?php _e('Update expiry date'); ?></button><?php
|
13 |
$update_button = ob_get_clean();
|
14 |
|
15 |
$expired_error .= $expired_renew_link = ' ' . sprintf(__( 'Click on %2$s if you renewed it or have a subscription or <a href="%1$s" target="_blank">renew your license with a discount</a>.', 'advanced-ads' ), ADVADS_URL . 'checkout/?edd_license_key=' . esc_attr($license_key) . '#utm_source=advanced-ads&utm_medium=link&utm_campaign=settings-licenses', $update_button );
|
9 |
data-addon="<?php echo $index; ?>"
|
10 |
data-pluginname="<?php echo $plugin_name; ?>"
|
11 |
data-optionslug="<?php echo $options_slug; ?>"
|
12 |
+
name="advads_license_activate"><?php _e( 'Update expiry date', 'advanced-ads' ); ?></button><?php
|
13 |
$update_button = ob_get_clean();
|
14 |
|
15 |
$expired_error .= $expired_renew_link = ' ' . sprintf(__( 'Click on %2$s if you renewed it or have a subscription or <a href="%1$s" target="_blank">renew your license with a discount</a>.', 'advanced-ads' ), ADVADS_URL . 'checkout/?edd_license_key=' . esc_attr($license_key) . '#utm_source=advanced-ads&utm_medium=link&utm_campaign=settings-licenses', $update_button );
|
advanced-ads.php
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
* Plugin Name: Advanced Ads
|
13 |
* Plugin URI: https://wpadvancedads.com
|
14 |
* Description: Manage and optimize your ads in WordPress
|
15 |
-
* Version: 1.8.
|
16 |
* Author: Thomas Maier
|
17 |
* Author URI: http://webgilde.com
|
18 |
* Text Domain: advanced-ads
|
@@ -39,7 +39,7 @@ define( 'ADVADS_BASE_DIR', dirname( ADVADS_BASE ) ); // directory of the plugin
|
|
39 |
// general and global slug, e.g. to store options in WP, textdomain
|
40 |
define( 'ADVADS_SLUG', 'advanced-ads' );
|
41 |
define( 'ADVADS_URL', 'https://wpadvancedads.com/' );
|
42 |
-
define( 'ADVADS_VERSION', '1.8.
|
43 |
|
44 |
/*----------------------------------------------------------------------------*
|
45 |
* Autoloading, modules and functions
|
12 |
* Plugin Name: Advanced Ads
|
13 |
* Plugin URI: https://wpadvancedads.com
|
14 |
* Description: Manage and optimize your ads in WordPress
|
15 |
+
* Version: 1.8.2
|
16 |
* Author: Thomas Maier
|
17 |
* Author URI: http://webgilde.com
|
18 |
* Text Domain: advanced-ads
|
39 |
// general and global slug, e.g. to store options in WP, textdomain
|
40 |
define( 'ADVADS_SLUG', 'advanced-ads' );
|
41 |
define( 'ADVADS_URL', 'https://wpadvancedads.com/' );
|
42 |
+
define( 'ADVADS_VERSION', '1.8.2' );
|
43 |
|
44 |
/*----------------------------------------------------------------------------*
|
45 |
* Autoloading, modules and functions
|
classes/display-conditions.php
CHANGED
@@ -96,8 +96,8 @@ class Advanced_Ads_Display_Conditions {
|
|
96 |
'content_age' => array(
|
97 |
'label' => __( 'content age', 'advanced-ads-pro' ),
|
98 |
'description' => __( 'Display ads based on age of the page.', 'advanced-ads-pro' ),
|
99 |
-
'metabox' => array( '
|
100 |
-
'check' => array( '
|
101 |
),
|
102 |
);
|
103 |
|
96 |
'content_age' => array(
|
97 |
'label' => __( 'content age', 'advanced-ads-pro' ),
|
98 |
'description' => __( 'Display ads based on age of the page.', 'advanced-ads-pro' ),
|
99 |
+
'metabox' => array( 'Advanced_Ads_Display_Conditions', 'metabox_content_age' ), // callback to generate the metabox
|
100 |
+
'check' => array( 'Advanced_Ads_Display_Conditions', 'check_content_age' ) // callback for frontend check
|
101 |
),
|
102 |
);
|
103 |
|
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, ad inserter, ad injection, ad manager, ads manager, ad widget, adrotate, adsense, advertise, advertisements, advertising, adverts, advert, amazon, banner, banners, buysellads, chitika, clickbank, dfp, doubleclick, geotarget, geolocation, geo location, google dfp, monetization, widget
|
5 |
Requires at least: 4.2
|
6 |
Tested up to: 4.8
|
7 |
-
Stable tag: 1.8.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -211,6 +211,11 @@ There is no revenue share. Advanced Ads doesn’t alter your ad codes in a way t
|
|
211 |
|
212 |
== Changelog ==
|
213 |
|
|
|
|
|
|
|
|
|
|
|
214 |
= 1.8.1 =
|
215 |
|
216 |
* added support for new AdSense InFeed and InArticle ad codes
|
4 |
Tags: ads, ad, ad inserter, ad injection, ad manager, ads manager, ad widget, adrotate, adsense, advertise, advertisements, advertising, adverts, advert, amazon, banner, banners, buysellads, chitika, clickbank, dfp, doubleclick, geotarget, geolocation, geo location, google dfp, monetization, widget
|
5 |
Requires at least: 4.2
|
6 |
Tested up to: 4.8
|
7 |
+
Stable tag: 1.8.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
211 |
|
212 |
== Changelog ==
|
213 |
|
214 |
+
= 1.8.2 =
|
215 |
+
|
216 |
+
* fixed Content Age condition
|
217 |
+
* fixed group options not changing correctly when switching types
|
218 |
+
|
219 |
= 1.8.1 =
|
220 |
|
221 |
* added support for new AdSense InFeed and InArticle ad codes
|