Version Description
- added debug mode for ads, see manual
- skip check for general conditions if all are on (allows ad injection also in iframes and new wp instances)
- display jQuery issue notice in display conditions
- lifted the restriction to choose each display condition only once
- add notice when ad block folder needs to be rebuild
- hide an ad with a tag condition in posts that dont have a tag at all
- prevent broken custom queries to interfere with display conditions
Download this release
Release Info
Developer | webzunft |
Plugin | Advanced Ads |
Version | 1.7.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.7.0.2 to 1.7.0.3
- admin/assets/js/admin.js +1 -1
- admin/includes/class-notices.php +30 -0
- admin/includes/notices.php +9 -1
- admin/views/ad-display-metabox.php +1 -18
- admin/views/ad-output-metabox.php +5 -0
- admin/views/notices/jqueryui_error.php +1 -1
- advanced-ads.php +2 -2
- classes/ad.php +100 -1
- classes/display-conditions.php +39 -5
- languages/advanced-ads.pot +164 -149
- modules/ad-blocker/admin/admin.php +1 -0
- public/views/ad-debug.php +9 -0
- readme.txt +11 -1
admin/assets/js/admin.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
jQuery( document ).ready(function ($) {
|
2 |
if ( ! $.fn.buttonset || ! $.fn.accordion || ! $.fn.tooltip ) {
|
3 |
-
$( '
|
4 |
}
|
5 |
|
6 |
function advads_load_ad_type_parameter_metabox(ad_type) {
|
1 |
jQuery( document ).ready(function ($) {
|
2 |
if ( ! $.fn.buttonset || ! $.fn.accordion || ! $.fn.tooltip ) {
|
3 |
+
$( '.advads-jqueryui-error').show();
|
4 |
}
|
5 |
|
6 |
function advads_load_ad_type_parameter_metabox(ad_type) {
|
admin/includes/class-notices.php
CHANGED
@@ -86,6 +86,8 @@ class Advanced_Ads_Admin_Notices {
|
|
86 |
|
87 |
// check license notices
|
88 |
$this->register_license_notices();
|
|
|
|
|
89 |
|
90 |
// don’t check non-critical notices if they are disabled
|
91 |
if ( ! isset($plugin_options['disable-notices']) ) {
|
@@ -203,6 +205,34 @@ class Advanced_Ads_Admin_Notices {
|
|
203 |
}
|
204 |
}
|
205 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
206 |
/**
|
207 |
* add update notices to the queue of all notices that still needs to be closed
|
208 |
*
|
86 |
|
87 |
// check license notices
|
88 |
$this->register_license_notices();
|
89 |
+
// notice for Adblocker module
|
90 |
+
$this->check_assets_expired();
|
91 |
|
92 |
// don’t check non-critical notices if they are disabled
|
93 |
if ( ! isset($plugin_options['disable-notices']) ) {
|
205 |
}
|
206 |
}
|
207 |
|
208 |
+
/**
|
209 |
+
* Notice for Adblocker module
|
210 |
+
*/
|
211 |
+
public function check_assets_expired() {
|
212 |
+
$plugin_options = $this->plugin->options();
|
213 |
+
$options = $this->options();
|
214 |
+
|
215 |
+
if ( empty ( $plugin_options['use-adblocker'] ) ) {
|
216 |
+
// check if assets expired, but user disabled Adblocker module
|
217 |
+
$key = array_search( 'assets_expired', $this->notices );
|
218 |
+
if ( $key !== false ) {
|
219 |
+
$this->remove_from_queue( 'assets_expired' );
|
220 |
+
unset( $this->notices[ $key] );
|
221 |
+
}
|
222 |
+
|
223 |
+
return;
|
224 |
+
}
|
225 |
+
|
226 |
+
$adblocker_options = Advanced_Ads_Ad_Blocker::get_instance()->options();
|
227 |
+
|
228 |
+
if ( ! in_array( 'assets_expired', $this->notices ) &&
|
229 |
+
( empty ( $adblocker_options['active_plugins_hash'] ) ||
|
230 |
+
$adblocker_options['active_plugins_hash'] !== Advanced_Ads_Ad_Blocker_Admin::get_instance()->generate_plugins_hash() )
|
231 |
+
) {
|
232 |
+
$this->notices[] = 'assets_expired';
|
233 |
+
}
|
234 |
+
}
|
235 |
+
|
236 |
/**
|
237 |
* add update notices to the queue of all notices that still needs to be closed
|
238 |
*
|
admin/includes/notices.php
CHANGED
@@ -79,4 +79,12 @@ $advanced_ads_admin_notices = array(
|
|
79 |
'text' => sprintf( __( '<img src="%3$s" alt="Thomas" width="80" height="115" class="advads-review-image"/>You are using <strong>Advanced Ads</strong> for some time now. Thank you! If you need my help then please visit the <a href="%1$s" target="_blank">Support page</a> to get free help.</p><h3>Thanks for your Review</h3><p>If you share my passion and find Advanced Ads useful then please <a href="%2$s" target="_blank">leave a 5-star review on wordpress.org</a>.</p><p><em>Thomas</em>', 'advanced-ads' ), ADVADS_URL . 'support/#utm_source=advanced-ads&utm_medium=link&utm_campaign=notice-review', 'https://wordpress.org/support/view/plugin-reviews/advanced-ads#postform', ADVADS_BASE_URL . 'admin/assets/img/thomas.png' ),
|
80 |
'global' => false
|
81 |
),
|
82 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
'text' => sprintf( __( '<img src="%3$s" alt="Thomas" width="80" height="115" class="advads-review-image"/>You are using <strong>Advanced Ads</strong> for some time now. Thank you! If you need my help then please visit the <a href="%1$s" target="_blank">Support page</a> to get free help.</p><h3>Thanks for your Review</h3><p>If you share my passion and find Advanced Ads useful then please <a href="%2$s" target="_blank">leave a 5-star review on wordpress.org</a>.</p><p><em>Thomas</em>', 'advanced-ads' ), ADVADS_URL . 'support/#utm_source=advanced-ads&utm_medium=link&utm_campaign=notice-review', 'https://wordpress.org/support/view/plugin-reviews/advanced-ads#postform', ADVADS_BASE_URL . 'admin/assets/img/thomas.png' ),
|
80 |
'global' => false
|
81 |
),
|
82 |
+
// adblocker assets expired
|
83 |
+
'assets_expired' => array(
|
84 |
+
'type' => 'update',
|
85 |
+
'text' => sprintf( __('Some assets were changed. Please <strong>rebuild the asset folder</strong> in the <a href="%s">Advanced Ads settings</a> to update the ad blocker disguise.', 'advanced-ads' ), admin_url( 'admin.php?page=advanced-ads-settings' ) ),
|
86 |
+
'global' => true
|
87 |
+
),
|
88 |
+
|
89 |
+
);
|
90 |
+
|
admin/views/ad-display-metabox.php
CHANGED
@@ -5,6 +5,7 @@ $options = $ad->options('conditions');
|
|
5 |
// error_log(print_r($options, true));
|
6 |
?><p class="description"><?php _e('Set Display Conditions to allow or hide the ad on specific pages.', 'advanced-ads'); ?> <a href="<?php echo ADVADS_URL . 'manual/display-conditions#utm_source=advanced-ads&utm_medium=link&utm_campaign=edit-display'; ?>" target="_blank"><?php _e('Manual', 'advanced-ads'); ?></a></p>
|
7 |
<div id="advads-display-conditions">
|
|
|
8 |
<table id="advads-display-condition-table"><tbody><?php
|
9 |
// add general conditions by default
|
10 |
if( !is_array( $options ) || !count( $options )){
|
@@ -77,7 +78,6 @@ endif;
|
|
77 |
// increase count
|
78 |
display_condition_index++;
|
79 |
$('#advads-display-conditions-index').val(display_condition_index);
|
80 |
-
advads_prevent_duplicate_conditions(); // update condition selector
|
81 |
// reset select
|
82 |
$('#advads-display-conditions-new select')[0].selectedIndex = 0;
|
83 |
}
|
@@ -94,24 +94,7 @@ endif;
|
|
94 |
$(document).on('click', '.advads-display-conditions-remove', function () {
|
95 |
var row = $(this).parents('#advads-display-conditions table tr');
|
96 |
row.remove();
|
97 |
-
advads_prevent_duplicate_conditions(); // update condition selector
|
98 |
});
|
99 |
-
// prevent listing of display conditions that are already in use
|
100 |
-
function advads_prevent_duplicate_conditions(){
|
101 |
-
// show all options
|
102 |
-
$('#advads-display-conditions-new select option').show();
|
103 |
-
// get all selected options
|
104 |
-
$('.advads-conditions-type').each( function(){
|
105 |
-
// show each type
|
106 |
-
// console.log( this.dataset.conditionType );
|
107 |
-
this.dataset.conditionType;
|
108 |
-
// search the option with this type and hide it
|
109 |
-
$('#advads-display-conditions-new select option[value="'+ this.dataset.conditionType +'"]').hide();
|
110 |
-
})
|
111 |
-
} // activate on load
|
112 |
-
if( $('#advads-display-conditions-new').length ){
|
113 |
-
advads_prevent_duplicate_conditions();
|
114 |
-
}
|
115 |
});
|
116 |
</script>
|
117 |
<?php
|
5 |
// error_log(print_r($options, true));
|
6 |
?><p class="description"><?php _e('Set Display Conditions to allow or hide the ad on specific pages.', 'advanced-ads'); ?> <a href="<?php echo ADVADS_URL . 'manual/display-conditions#utm_source=advanced-ads&utm_medium=link&utm_campaign=edit-display'; ?>" target="_blank"><?php _e('Manual', 'advanced-ads'); ?></a></p>
|
7 |
<div id="advads-display-conditions">
|
8 |
+
<p class="advads-jqueryui-error advads-error-message hidden"><?php printf(__( 'There might be a problem with layouts and scripts in your dashboard. Please check <a href="%s" target="_blank">this article to learn more</a>.', 'advanced-ads' ), ADVADS_URL . 'manual/jquery-problem-in-dashboard/#utm_source=advanced-ads&utm_medium=link&utm_campaign=notice-jquery-error' ); ?></p>
|
9 |
<table id="advads-display-condition-table"><tbody><?php
|
10 |
// add general conditions by default
|
11 |
if( !is_array( $options ) || !count( $options )){
|
78 |
// increase count
|
79 |
display_condition_index++;
|
80 |
$('#advads-display-conditions-index').val(display_condition_index);
|
|
|
81 |
// reset select
|
82 |
$('#advads-display-conditions-new select')[0].selectedIndex = 0;
|
83 |
}
|
94 |
$(document).on('click', '.advads-display-conditions-remove', function () {
|
95 |
var row = $(this).parents('#advads-display-conditions table tr');
|
96 |
row.remove();
|
|
|
97 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
});
|
99 |
</script>
|
100 |
<?php
|
admin/views/ad-output-metabox.php
CHANGED
@@ -40,4 +40,9 @@
|
|
40 |
?></label></p><p class="description"><?php
|
41 |
_e( 'Specify one or more classes for the container. Separate multiple classes with a space', 'advanced-ads.' );
|
42 |
?></p>
|
|
|
|
|
|
|
|
|
|
|
43 |
</div>
|
40 |
?></label></p><p class="description"><?php
|
41 |
_e( 'Specify one or more classes for the container. Separate multiple classes with a space', 'advanced-ads.' );
|
42 |
?></p>
|
43 |
+
<p><label><input type="checkbox" name="advanced_ad[output][debugmode]" value="1"<?php if ( isset($options['debugmode']) ) { checked( $options['debugmode'], 1 ); } ?>/><?php
|
44 |
+
_e( 'Enable debug mode.', 'advanced-ads' );
|
45 |
+
?> <?php
|
46 |
+
?><a href="<?php echo ADVADS_URL; ?>manual/ad-debug-mode/#utm_source=advanced-ads&utm_medium=link&utm_campaign=ad-debug-mode" target="_blank"><?php _e( 'Manual', 'advanced-ads' ); ?></a>
|
47 |
+
</label></p>
|
48 |
</div>
|
admin/views/notices/jqueryui_error.php
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
<div
|
2 |
<p><?php printf(__( 'There might be a problem with layouts and scripts in your dashboard. Please check <a href="%s" target="_blank">this article to learn more</a>.', 'advanced-ads' ), ADVADS_URL . 'manual/jquery-problem-in-dashboard/#utm_source=advanced-ads&utm_medium=link&utm_campaign=notice-jquery-error' ); ?></p>
|
3 |
</div>
|
1 |
+
<div class="advads-jqueryui-error message error" style="display: none;">
|
2 |
<p><?php printf(__( 'There might be a problem with layouts and scripts in your dashboard. Please check <a href="%s" target="_blank">this article to learn more</a>.', 'advanced-ads' ), ADVADS_URL . 'manual/jquery-problem-in-dashboard/#utm_source=advanced-ads&utm_medium=link&utm_campaign=notice-jquery-error' ); ?></p>
|
3 |
</div>
|
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.7.0.
|
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.7.0.
|
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.7.0.3
|
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.7.0.3' );
|
43 |
|
44 |
/*----------------------------------------------------------------------------*
|
45 |
* Autoloading, modules and functions
|
classes/ad.php
CHANGED
@@ -259,7 +259,12 @@ class Advanced_Ads_Ad {
|
|
259 |
|
260 |
$output_options = wp_parse_args( $output_options, array( 'global_output' => true ) );
|
261 |
|
262 |
-
|
|
|
|
|
|
|
|
|
|
|
263 |
|
264 |
if ( $output_options['global_output'] ) {
|
265 |
// add the ad to the global output array
|
@@ -283,6 +288,11 @@ class Advanced_Ads_Ad {
|
|
283 |
public function can_display( $check_options = array() ) {
|
284 |
$check_options = wp_parse_args( $check_options, array( 'passive_cache_busting' => false ) );
|
285 |
|
|
|
|
|
|
|
|
|
|
|
286 |
// prevent ad to show up through wp_head, if this is not a header placement
|
287 |
if( doing_action( 'wp_head' ) && isset( $this->options['placement_type'] ) && 'header' !== $this->options['placement_type'] ){
|
288 |
return false;
|
@@ -495,6 +505,95 @@ class Advanced_Ads_Ad {
|
|
495 |
|
496 |
return $output;
|
497 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
498 |
|
499 |
/**
|
500 |
* sanitize ad display conditions when saving the ad
|
259 |
|
260 |
$output_options = wp_parse_args( $output_options, array( 'global_output' => true ) );
|
261 |
|
262 |
+
// switch between normal and debug mode
|
263 |
+
if( isset( $this->output['debugmode'] ) ){
|
264 |
+
$output = $this->prepare_debug_output();
|
265 |
+
} else {
|
266 |
+
$output = $this->prepare_frontend_output();
|
267 |
+
}
|
268 |
|
269 |
if ( $output_options['global_output'] ) {
|
270 |
// add the ad to the global output array
|
288 |
public function can_display( $check_options = array() ) {
|
289 |
$check_options = wp_parse_args( $check_options, array( 'passive_cache_busting' => false ) );
|
290 |
|
291 |
+
// force ad display if debug mode is enabled
|
292 |
+
if( isset( $this->output['debugmode'] )){
|
293 |
+
return true;
|
294 |
+
}
|
295 |
+
|
296 |
// prevent ad to show up through wp_head, if this is not a header placement
|
297 |
if( doing_action( 'wp_head' ) && isset( $this->options['placement_type'] ) && 'header' !== $this->options['placement_type'] ){
|
298 |
return false;
|
505 |
|
506 |
return $output;
|
507 |
}
|
508 |
+
|
509 |
+
/**
|
510 |
+
* prepare debug mode output
|
511 |
+
*
|
512 |
+
* @since 1.7.0.3
|
513 |
+
*/
|
514 |
+
public function prepare_debug_output() {
|
515 |
+
|
516 |
+
global $post, $wp_query;
|
517 |
+
|
518 |
+
// set size
|
519 |
+
if( $this->width && $this->height ){
|
520 |
+
$width = $this->width;
|
521 |
+
$height = $this->height;
|
522 |
+
} else {
|
523 |
+
$width = 300;
|
524 |
+
$height = 250;
|
525 |
+
}
|
526 |
+
|
527 |
+
$style = "width:{$width}px;height:{$height}px;background-color:#ddd;overflow:scroll;";
|
528 |
+
|
529 |
+
$prefix = Advanced_Ads_Plugin::get_instance()->get_frontend_prefix();
|
530 |
+
|
531 |
+
$content = array();
|
532 |
+
|
533 |
+
// display notice that debug doesn’t work with cache-busting
|
534 |
+
if( class_exists( 'Advanced_Ads_Pro_Module_Cache_Busting', false ) && isset ( $this->args['cache-busting'] ) && 'off' !== $this->args['cache-busting'] ){
|
535 |
+
$content[] = '<span style="color: red;">Debug mode does not work properly with cache-busting enabled for this ad.</span>';
|
536 |
+
}
|
537 |
+
|
538 |
+
// compare current wp_query with global wp_main_query
|
539 |
+
if( ! $wp_query->is_main_query() ){
|
540 |
+
$content[] = '<span style="color: red;">Current query is not identical to main query.</span>';
|
541 |
+
// output differences
|
542 |
+
$content[] = $this->build_query_diff_table();
|
543 |
+
}
|
544 |
+
|
545 |
+
// compare current post with global post
|
546 |
+
if( $wp_query->post !== $post ){
|
547 |
+
$error = '<span style="color: red;">Current post is not identical to main post.</span>';
|
548 |
+
// output differences
|
549 |
+
if( isset( $post->post_title ) && $post->ID ){
|
550 |
+
$error .= '<br/>current post: ' . $post->post_title . ', ID: ' . $post->ID;
|
551 |
+
}
|
552 |
+
if( isset( $wp_query->post->post_title ) && $wp_query->post->ID ){
|
553 |
+
$error .= '<br/>main post: ' . $wp_query->post->post_title . ', ID: ' . $wp_query->post->ID;
|
554 |
+
}
|
555 |
+
$content[] = $error;
|
556 |
+
}
|
557 |
+
|
558 |
+
ob_start();
|
559 |
+
|
560 |
+
include( ADVADS_BASE_PATH . '/public/views/ad-debug.php' );
|
561 |
+
|
562 |
+
$output = ob_get_clean();
|
563 |
+
|
564 |
+
// apply a custom filter by ad type
|
565 |
+
$output = apply_filters( 'advanced-ads-ad-output-debug', $output, $this );
|
566 |
+
|
567 |
+
return $output;
|
568 |
+
|
569 |
+
}
|
570 |
+
|
571 |
+
/**
|
572 |
+
* build table with differences between current and main query
|
573 |
+
*
|
574 |
+
* @since 1.7.0.3
|
575 |
+
*/
|
576 |
+
private function build_query_diff_table(){
|
577 |
+
|
578 |
+
global $wp_query, $wp_the_query;
|
579 |
+
|
580 |
+
$diff_current = array_diff_assoc( $wp_query->query_vars, $wp_the_query->query_vars );
|
581 |
+
$diff_main = array_diff_assoc( $wp_the_query->query_vars, $wp_query->query_vars );
|
582 |
+
|
583 |
+
if( ! is_array( $diff_current ) || ! is_array( $diff_main ) ){
|
584 |
+
return '';
|
585 |
+
}
|
586 |
+
|
587 |
+
ob_start();
|
588 |
+
|
589 |
+
?><table><thead><tr><th></th><th>current query</th><th>main query</th></tr></thead><?php
|
590 |
+
foreach( $diff_current as $_key => $_value ){
|
591 |
+
?><tr><td><?php echo $_key; ?></td><td><?php echo $_value; ?></td><td><?php if( isset( $diff_main[$_key] ) ) echo $diff_main[$_key]; ?></td></tr><?php
|
592 |
+
}
|
593 |
+
?></table><?php
|
594 |
+
|
595 |
+
return ob_get_clean();
|
596 |
+
}
|
597 |
|
598 |
/**
|
599 |
* sanitize ad display conditions when saving the ad
|
classes/display-conditions.php
CHANGED
@@ -34,6 +34,17 @@ class Advanced_Ads_Display_Conditions {
|
|
34 |
'is_singular',
|
35 |
'is_front_page',
|
36 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
public function __construct() {
|
39 |
|
@@ -526,11 +537,14 @@ class Advanced_Ads_Display_Conditions {
|
|
526 |
$taxonomy = $type_options[$options['type']]['taxonomy'];
|
527 |
|
528 |
$terms = get_the_terms($post_id, $taxonomy);
|
529 |
-
|
530 |
-
if (
|
531 |
foreach ($terms as $term) {
|
532 |
$term_ids[] = $term->term_id;
|
533 |
}
|
|
|
|
|
|
|
534 |
} else {
|
535 |
return true;
|
536 |
}
|
@@ -611,6 +625,11 @@ class Advanced_Ads_Display_Conditions {
|
|
611 |
return true;
|
612 |
}
|
613 |
|
|
|
|
|
|
|
|
|
|
|
614 |
// get plugin options
|
615 |
$plugin_options = Advanced_Ads_Plugin::get_instance()->options();
|
616 |
|
@@ -741,13 +760,28 @@ class Advanced_Ads_Display_Conditions {
|
|
741 |
$args['post'] = array();
|
742 |
}
|
743 |
if (!isset($args['post']['id'])) {
|
744 |
-
|
|
|
|
|
|
|
|
|
|
|
745 |
}
|
746 |
if (!isset($args['post']['author'])) {
|
747 |
-
|
|
|
|
|
|
|
|
|
|
|
748 |
}
|
749 |
if (!isset($args['post']['post_type'])) {
|
750 |
-
|
|
|
|
|
|
|
|
|
|
|
751 |
}
|
752 |
}
|
753 |
|
34 |
'is_singular',
|
35 |
'is_front_page',
|
36 |
);
|
37 |
+
|
38 |
+
// this is how the general conditions should look like by default
|
39 |
+
protected static $default_general_keys = array(
|
40 |
+
'is_front_page',
|
41 |
+
'is_singular',
|
42 |
+
'is_archive',
|
43 |
+
'is_search',
|
44 |
+
'is_404',
|
45 |
+
'is_attachment',
|
46 |
+
'is_main_query'
|
47 |
+
);
|
48 |
|
49 |
public function __construct() {
|
50 |
|
537 |
$taxonomy = $type_options[$options['type']]['taxonomy'];
|
538 |
|
539 |
$terms = get_the_terms($post_id, $taxonomy);
|
540 |
+
|
541 |
+
if ( is_array($terms) ) {
|
542 |
foreach ($terms as $term) {
|
543 |
$term_ids[] = $term->term_id;
|
544 |
}
|
545 |
+
} elseif( false === $terms && 'is' === $operator ) {
|
546 |
+
// don’t show if should show only for a specific tag
|
547 |
+
return false;
|
548 |
} else {
|
549 |
return true;
|
550 |
}
|
625 |
return true;
|
626 |
}
|
627 |
|
628 |
+
// skip checks, if general conditions are unchanged
|
629 |
+
if( self::$default_general_keys === $options['value'] ){
|
630 |
+
return true;
|
631 |
+
}
|
632 |
+
|
633 |
// get plugin options
|
634 |
$plugin_options = Advanced_Ads_Plugin::get_instance()->options();
|
635 |
|
760 |
$args['post'] = array();
|
761 |
}
|
762 |
if (!isset($args['post']['id'])) {
|
763 |
+
// if currently on a single site, use the main query information just in case a custom query is broken
|
764 |
+
if( isset( $wp_the_query->post->ID ) && $wp_the_query->is_single() ){
|
765 |
+
$args['post']['id'] = $wp_the_query->post->ID;
|
766 |
+
} else {
|
767 |
+
$args['post']['id'] = $post->ID;
|
768 |
+
}
|
769 |
}
|
770 |
if (!isset($args['post']['author'])) {
|
771 |
+
// if currently on a single site, use the main query information just in case a custom query is broken
|
772 |
+
if( isset( $wp_the_query->post->post_author ) && $wp_the_query->is_single() ){
|
773 |
+
$args['post']['author'] = $wp_the_query->post->post_author;
|
774 |
+
} else {
|
775 |
+
$args['post']['author'] = $post->post_author;
|
776 |
+
}
|
777 |
}
|
778 |
if (!isset($args['post']['post_type'])) {
|
779 |
+
// if currently on a single site, use the main query information just in case a custom query is broken
|
780 |
+
if( isset( $wp_the_query->post->post_type ) && $wp_the_query->is_single() ){
|
781 |
+
$args['post']['post_type'] = $wp_the_query->post->post_type;
|
782 |
+
} else {
|
783 |
+
$args['post']['post_type'] = $post->post_type;
|
784 |
+
}
|
785 |
}
|
786 |
}
|
787 |
|
languages/advanced-ads.pot
CHANGED
@@ -5,7 +5,7 @@ msgstr ""
|
|
5 |
"Project-Id-Version: Advanved Ads\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/plugins/plugin-name\n"
|
7 |
"POT-Creation-Date: 2015-01-27 16:47+0100\n"
|
8 |
-
"POT-Revision-Date:
|
9 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
10 |
"Last-Translator: Thomas Maier <post@webzunft.de>\n"
|
11 |
"Language-Team: webgilde <thomas.maier@webgilde.com>\n"
|
@@ -44,264 +44,264 @@ msgstr ""
|
|
44 |
msgid "http://webgilde.com"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: ../admin/class-advanced-ads-admin.php:
|
48 |
msgid "Overview"
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: ../admin/class-advanced-ads-admin.php:
|
52 |
-
#: php:
|
53 |
#: group-list-form-row.php:28 ../admin/views/ad-group-list-header.php:5 ..
|
54 |
-
#: admin/views/placements.php:80 ../admin/views/placements.php:184 ..
|
55 |
-
#: classes/widget.php:89 ../public/class-advanced-ads.php:563
|
56 |
msgid "Ads"
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: ../admin/class-advanced-ads-admin.php:
|
60 |
#: creator.php:84 ../admin/views/placements.php:73 ../admin/views/placements.php:
|
61 |
#: 177 ../classes/widget.php:82
|
62 |
msgid "Ad Groups"
|
63 |
msgstr ""
|
64 |
|
65 |
-
#: ../admin/class-advanced-ads-admin.php:
|
66 |
msgid "Groups"
|
67 |
msgstr ""
|
68 |
|
69 |
-
#: ../admin/class-advanced-ads-admin.php:
|
70 |
msgid "Ad Placements"
|
71 |
msgstr ""
|
72 |
|
73 |
-
#: ../admin/class-advanced-ads-admin.php:
|
74 |
#: creator.php:91 ../admin/views/placements.php:18 ../classes/widget.php:75
|
75 |
msgid "Placements"
|
76 |
msgstr ""
|
77 |
|
78 |
-
#: ../admin/class-advanced-ads-admin.php:
|
79 |
msgid "Advanced Ads Settings"
|
80 |
msgstr ""
|
81 |
|
82 |
-
#: ../admin/class-advanced-ads-admin.php:
|
83 |
-
#: php:
|
84 |
msgid "Settings"
|
85 |
msgstr ""
|
86 |
|
87 |
-
#: ../admin/class-advanced-ads-admin.php:
|
88 |
msgid "Advanced Ads Debugging"
|
89 |
msgstr ""
|
90 |
|
91 |
-
#: ../admin/class-advanced-ads-admin.php:
|
92 |
msgid "Debug"
|
93 |
msgstr ""
|
94 |
|
95 |
-
#: ../admin/class-advanced-ads-admin.php:
|
96 |
-
#: php:
|
97 |
msgid "Advanced Ads Intro"
|
98 |
msgstr ""
|
99 |
|
100 |
-
#: ../admin/class-advanced-ads-admin.php:
|
101 |
-
#: php:
|
102 |
msgid "Support"
|
103 |
msgstr ""
|
104 |
|
105 |
-
#: ../admin/class-advanced-ads-admin.php:
|
106 |
msgid "Please enter a message"
|
107 |
msgstr ""
|
108 |
|
109 |
-
#: ../admin/class-advanced-ads-admin.php:
|
110 |
#, php-format
|
111 |
msgid "Email could NOT be sent. Please contact us directly at %s."
|
112 |
msgstr ""
|
113 |
|
114 |
-
#: ../admin/class-advanced-ads-admin.php:
|
115 |
msgid "Please enter a valid email address"
|
116 |
msgstr ""
|
117 |
|
118 |
-
#: ../admin/class-advanced-ads-admin.php:
|
119 |
-
#: php:
|
120 |
msgid "Sorry, you are not allowed to access this feature."
|
121 |
msgstr ""
|
122 |
|
123 |
-
#: ../admin/class-advanced-ads-admin.php:
|
124 |
msgid ""
|
125 |
"You attempted to edit an ad group that doesn’t exist. Perhaps it was "
|
126 |
"deleted?"
|
127 |
msgstr ""
|
128 |
|
129 |
-
#: ../admin/class-advanced-ads-admin.php:
|
130 |
msgid "Ad Type"
|
131 |
msgstr ""
|
132 |
|
133 |
-
#: ../admin/class-advanced-ads-admin.php:
|
134 |
msgid "Ad Parameters"
|
135 |
msgstr ""
|
136 |
|
137 |
-
#: ../admin/class-advanced-ads-admin.php:
|
138 |
msgid "Layout / Output"
|
139 |
msgstr ""
|
140 |
|
141 |
-
#: ../admin/class-advanced-ads-admin.php:
|
142 |
msgid "Display Conditions"
|
143 |
msgstr ""
|
144 |
|
145 |
-
#: ../admin/class-advanced-ads-admin.php:
|
146 |
msgid "Visitor Conditions"
|
147 |
msgstr ""
|
148 |
|
149 |
-
#: ../admin/class-advanced-ads-admin.php:
|
150 |
-
#: php:
|
151 |
msgid "Ad updated."
|
152 |
msgstr ""
|
153 |
|
154 |
#. translators: %s: date and time of the revision
|
155 |
-
#: ../admin/class-advanced-ads-admin.php:
|
156 |
#, php-format
|
157 |
msgid "Ad restored to revision from %s"
|
158 |
msgstr ""
|
159 |
|
160 |
-
#: ../admin/class-advanced-ads-admin.php:
|
161 |
msgid "Ad published."
|
162 |
msgstr ""
|
163 |
|
164 |
-
#: ../admin/class-advanced-ads-admin.php:
|
165 |
msgid "Ad saved."
|
166 |
msgstr ""
|
167 |
|
168 |
-
#: ../admin/class-advanced-ads-admin.php:
|
169 |
msgid "Ad submitted."
|
170 |
msgstr ""
|
171 |
|
172 |
-
#: ../admin/class-advanced-ads-admin.php:
|
173 |
#, php-format
|
174 |
msgid "Ad scheduled for: <strong>%1$s</strong>."
|
175 |
msgstr ""
|
176 |
|
177 |
#. translators: Publish box date format, see http://php.net/date
|
178 |
-
#: ../admin/class-advanced-ads-admin.php:
|
179 |
msgid "M j, Y @ G:i"
|
180 |
msgstr ""
|
181 |
|
182 |
-
#: ../admin/class-advanced-ads-admin.php:
|
183 |
msgid "Ad draft updated."
|
184 |
msgstr ""
|
185 |
|
186 |
-
#: ../admin/class-advanced-ads-admin.php:
|
187 |
#, php-format
|
188 |
msgid "%s ad updated."
|
189 |
msgid_plural "%s ads updated."
|
190 |
msgstr[0] ""
|
191 |
msgstr[1] ""
|
192 |
|
193 |
-
#: ../admin/class-advanced-ads-admin.php:
|
194 |
#, php-format
|
195 |
msgid "%s ad not updated, somebody is editing it."
|
196 |
msgid_plural "%s ads not updated, somebody is editing them."
|
197 |
msgstr[0] ""
|
198 |
msgstr[1] ""
|
199 |
|
200 |
-
#: ../admin/class-advanced-ads-admin.php:
|
201 |
#, php-format
|
202 |
msgid "%s ad permanently deleted."
|
203 |
msgid_plural "%s ads permanently deleted."
|
204 |
msgstr[0] ""
|
205 |
msgstr[1] ""
|
206 |
|
207 |
-
#: ../admin/class-advanced-ads-admin.php:
|
208 |
#, php-format
|
209 |
msgid "%s ad moved to the Trash."
|
210 |
msgid_plural "%s ads moved to the Trash."
|
211 |
msgstr[0] ""
|
212 |
msgstr[1] ""
|
213 |
|
214 |
-
#: ../admin/class-advanced-ads-admin.php:
|
215 |
#, php-format
|
216 |
msgid "%s ad restored from the Trash."
|
217 |
msgid_plural "%s ads restored from the Trash."
|
218 |
msgstr[0] ""
|
219 |
msgstr[1] ""
|
220 |
|
221 |
-
#: ../admin/class-advanced-ads-admin.php:
|
222 |
msgid "General"
|
223 |
msgstr ""
|
224 |
|
225 |
-
#: ../admin/class-advanced-ads-admin.php:
|
226 |
-
#: php:
|
227 |
msgid "Licenses"
|
228 |
msgstr ""
|
229 |
|
230 |
-
#: ../admin/class-advanced-ads-admin.php:
|
231 |
msgid "Disable ads"
|
232 |
msgstr ""
|
233 |
|
234 |
-
#: ../admin/class-advanced-ads-admin.php:
|
235 |
msgid "Hide ads for logged in users"
|
236 |
msgstr ""
|
237 |
|
238 |
-
#: ../admin/class-advanced-ads-admin.php:
|
239 |
msgid "Use advanced JavaScript"
|
240 |
msgstr ""
|
241 |
|
242 |
-
#: ../admin/class-advanced-ads-admin.php:
|
243 |
msgid "Unlimited ad injection"
|
244 |
msgstr ""
|
245 |
|
246 |
-
#: ../admin/class-advanced-ads-admin.php:
|
247 |
msgid "Priority of content injection filter"
|
248 |
msgstr ""
|
249 |
|
250 |
-
#: ../admin/class-advanced-ads-admin.php:
|
251 |
msgid "Hide ads from bots"
|
252 |
msgstr ""
|
253 |
|
254 |
-
#: ../admin/class-advanced-ads-admin.php:
|
255 |
msgid "Disable notices"
|
256 |
msgstr ""
|
257 |
|
258 |
-
#: ../admin/class-advanced-ads-admin.php:
|
259 |
msgid "ID prefix"
|
260 |
msgstr ""
|
261 |
|
262 |
-
#: ../admin/class-advanced-ads-admin.php:
|
263 |
msgid "Remove Widget ID"
|
264 |
msgstr ""
|
265 |
|
266 |
-
#: ../admin/class-advanced-ads-admin.php:
|
267 |
msgid "Allow editors to manage ads"
|
268 |
msgstr ""
|
269 |
|
270 |
-
#: ../admin/class-advanced-ads-admin.php:
|
271 |
msgid "(display to all)"
|
272 |
msgstr ""
|
273 |
|
274 |
-
#: ../admin/class-advanced-ads-admin.php:
|
275 |
msgid "Subscriber"
|
276 |
msgstr ""
|
277 |
|
278 |
-
#: ../admin/class-advanced-ads-admin.php:
|
279 |
msgid "Contributor"
|
280 |
msgstr ""
|
281 |
|
282 |
-
#: ../admin/class-advanced-ads-admin.php:
|
283 |
msgid "Author"
|
284 |
msgstr ""
|
285 |
|
286 |
-
#: ../admin/class-advanced-ads-admin.php:
|
287 |
msgid "Editor"
|
288 |
msgstr ""
|
289 |
|
290 |
-
#: ../admin/class-advanced-ads-admin.php:
|
291 |
msgid "Admin"
|
292 |
msgstr ""
|
293 |
|
294 |
-
#: ../admin/class-advanced-ads-admin.php:
|
295 |
msgid "Choose the lowest role a user must have in order to not see any ads."
|
296 |
msgstr ""
|
297 |
|
298 |
-
#: ../admin/class-advanced-ads-admin.php:
|
299 |
msgid ""
|
300 |
"<strong>notice: </strong>the file is currently enabled by an add-on that "
|
301 |
"needs it."
|
302 |
msgstr ""
|
303 |
|
304 |
-
#: ../admin/class-advanced-ads-admin.php:
|
305 |
#, php-format
|
306 |
msgid ""
|
307 |
"Enable advanced JavaScript functions (<a href=\"%s\" target=\"_blank\">here</a>)."
|
@@ -309,7 +309,7 @@ msgid ""
|
|
309 |
"from this file."
|
310 |
msgstr ""
|
311 |
|
312 |
-
#: ../admin/class-advanced-ads-admin.php:
|
313 |
msgid ""
|
314 |
"Some plugins and themes trigger ad injection where it shouldn’t happen. "
|
315 |
"Therefore, Advanced Ads ignores injected placements on non-singular pages "
|
@@ -318,19 +318,19 @@ msgid ""
|
|
318 |
"on archive pages AT YOUR OWN RISK."
|
319 |
msgstr ""
|
320 |
|
321 |
-
#: ../admin/class-advanced-ads-admin.php:
|
322 |
msgid ""
|
323 |
"Please check your post content. A priority of 10 and below might cause "
|
324 |
"issues (wpautop function might run twice)."
|
325 |
msgstr ""
|
326 |
|
327 |
-
#: ../admin/class-advanced-ads-admin.php:
|
328 |
msgid ""
|
329 |
"Play with this value in order to change the priority of the injected ads "
|
330 |
"compared to other auto injected elements in the post content."
|
331 |
msgstr ""
|
332 |
|
333 |
-
#: ../admin/class-advanced-ads-admin.php:
|
334 |
#, php-format
|
335 |
msgid ""
|
336 |
"Hide ads from crawlers, bots and empty user agents. Also prevents counting "
|
@@ -338,126 +338,126 @@ msgid ""
|
|
338 |
"Add-On</a>."
|
339 |
msgstr ""
|
340 |
|
341 |
-
#: ../admin/class-advanced-ads-admin.php:
|
342 |
msgid ""
|
343 |
"Disabling this option only makes sense if your ads contain content you want "
|
344 |
"to display to bots (like search engines) or your site is cached and bots "
|
345 |
"could create a cached version without the ads."
|
346 |
msgstr ""
|
347 |
|
348 |
-
#: ../admin/class-advanced-ads-admin.php:
|
349 |
msgid ""
|
350 |
"Disable internal notices like tips, tutorials, email newsletters and update "
|
351 |
"notices. Disabling notices is recommended if you run multiple blogs with "
|
352 |
"Advanced Ads already."
|
353 |
msgstr ""
|
354 |
|
355 |
-
#: ../admin/class-advanced-ads-admin.php:
|
356 |
msgid ""
|
357 |
"Prefix of class or id attributes in the frontend. Change it if you don’t "
|
358 |
"want <strong>ad blockers</strong> to mark these blocks as ads.<br/>You might "
|
359 |
"need to <strong>rewrite css rules afterwards</strong>."
|
360 |
msgstr ""
|
361 |
|
362 |
-
#: ../admin/class-advanced-ads-admin.php:
|
363 |
msgid ""
|
364 |
"Remove the ID attribute from widgets in order to not make them an easy "
|
365 |
"target of ad blockers."
|
366 |
msgstr ""
|
367 |
|
368 |
-
#: ../admin/class-advanced-ads-admin.php:
|
369 |
msgid ""
|
370 |
"If checked, the Advanced Ads Widget will not work with the fixed option of "
|
371 |
"the <strong>Q2W3 Fixed Widget</strong> plugin."
|
372 |
msgstr ""
|
373 |
|
374 |
-
#: ../admin/class-advanced-ads-admin.php:
|
375 |
msgid "Allow editors to also manage and publish ads."
|
376 |
msgstr ""
|
377 |
|
378 |
-
#: ../admin/class-advanced-ads-admin.php:
|
379 |
#, php-format
|
380 |
msgid ""
|
381 |
"You can assign different ad-related roles on a user basis with <a href=\"%s\" "
|
382 |
"target=\"_blank\">Advanced Ads Pro</a>."
|
383 |
msgstr ""
|
384 |
|
385 |
-
#: ../admin/class-advanced-ads-admin.php:
|
386 |
msgid "Ad Details"
|
387 |
msgstr ""
|
388 |
|
389 |
-
#: ../admin/class-advanced-ads-admin.php:
|
390 |
msgid "Ad Planning"
|
391 |
msgstr ""
|
392 |
|
393 |
-
#: ../admin/class-advanced-ads-admin.php:
|
394 |
msgid "Ad Settings"
|
395 |
msgstr ""
|
396 |
|
397 |
-
#: ../admin/class-advanced-ads-admin.php:
|
398 |
msgid "Ads Dashboard"
|
399 |
msgstr ""
|
400 |
|
401 |
-
#: ../admin/class-advanced-ads-admin.php:
|
402 |
msgid "From the ad optimization universe"
|
403 |
msgstr ""
|
404 |
|
405 |
-
#: ../admin/class-advanced-ads-admin.php:
|
406 |
msgid "Advanced Ads Tutorials"
|
407 |
msgstr ""
|
408 |
|
409 |
-
#: ../admin/class-advanced-ads-admin.php:
|
410 |
#, php-format
|
411 |
msgid "%d ads – <a href=\"%s\">manage</a> - <a href=\"%s\">new</a>"
|
412 |
msgstr ""
|
413 |
|
414 |
-
#: ../admin/class-advanced-ads-admin.php:
|
415 |
msgid "plugin manual and homepage"
|
416 |
msgstr ""
|
417 |
|
418 |
-
#: ../admin/class-advanced-ads-admin.php:
|
419 |
msgid "Get the tutorial via email"
|
420 |
msgstr ""
|
421 |
|
422 |
-
#: ../admin/class-advanced-ads-admin.php:
|
423 |
msgid "Get AdSense tips via email"
|
424 |
msgstr ""
|
425 |
|
426 |
-
#: ../admin/class-advanced-ads-admin.php:
|
427 |
#, php-format
|
428 |
msgid "time of %s"
|
429 |
msgstr ""
|
430 |
|
431 |
-
#: ../admin/class-advanced-ads-admin.php:
|
432 |
msgid "Error while trying to register the license. Please contact support."
|
433 |
msgstr ""
|
434 |
|
435 |
-
#: ../admin/class-advanced-ads-admin.php:
|
436 |
msgid "Please enter and save a valid license key first."
|
437 |
msgstr ""
|
438 |
|
439 |
-
#: ../admin/class-advanced-ads-admin.php:
|
440 |
msgid "This is the bundle license key."
|
441 |
msgstr ""
|
442 |
|
443 |
-
#: ../admin/class-advanced-ads-admin.php:
|
444 |
msgid "This is not the correct key for this add-on."
|
445 |
msgstr ""
|
446 |
|
447 |
-
#: ../admin/class-advanced-ads-admin.php:
|
448 |
#, php-format
|
449 |
msgid "License is invalid. Reason: %s"
|
450 |
msgstr ""
|
451 |
|
452 |
-
#: ../admin/class-advanced-ads-admin.php:
|
453 |
msgid "Error while trying to disable the license. Please contact support."
|
454 |
msgstr ""
|
455 |
|
456 |
-
#: ../admin/class-advanced-ads-admin.php:
|
457 |
msgid "License couldn’t be deactivated. Please try again later or contact support."
|
458 |
msgstr ""
|
459 |
|
460 |
-
#: ../admin/class-advanced-ads-admin.php:
|
461 |
msgid "Add-Ons"
|
462 |
msgstr ""
|
463 |
|
@@ -534,18 +534,18 @@ msgstr ""
|
|
534 |
msgid "You don’t have permission to change the ad groups"
|
535 |
msgstr ""
|
536 |
|
537 |
-
#: ../admin/includes/class-notices.php:
|
538 |
#, php-format
|
539 |
msgid ""
|
540 |
"You don’t seem to have an email address. Please use <a href=\"%s\" "
|
541 |
"target=\"_blank\">this form</a> to sign up."
|
542 |
msgstr ""
|
543 |
|
544 |
-
#: ../admin/includes/class-notices.php:
|
545 |
msgid "How embarrassing. The email server seems to be down. Please try again later."
|
546 |
msgstr ""
|
547 |
|
548 |
-
#: ../admin/includes/class-notices.php:
|
549 |
#, php-format
|
550 |
msgid ""
|
551 |
"Please check your email (%s) for the confirmation message. If you didn’t "
|
@@ -609,7 +609,7 @@ msgstr ""
|
|
609 |
|
610 |
#: ../admin/includes/class-overview-widgets.php:92 ../admin/includes/notices.php:
|
611 |
#: 35 ../admin/views/intro.php:73 ../admin/views/notices/inline.php:3 ..
|
612 |
-
#: admin/views/notices/subscribe.php:3
|
613 |
msgid "Subscribe me now"
|
614 |
msgstr ""
|
615 |
|
@@ -879,6 +879,14 @@ msgid ""
|
|
879 |
"org</a>.</p><p><em>Thomas</em>"
|
880 |
msgstr ""
|
881 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
882 |
#: ../admin/includes/shortcode-creator-l10n.php:10
|
883 |
msgctxt "shortcode creator"
|
884 |
msgid "Add an ad"
|
@@ -902,21 +910,29 @@ msgstr ""
|
|
902 |
msgid "Manual"
|
903 |
msgstr ""
|
904 |
|
905 |
-
#: ../admin/views/ad-display-metabox.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
906 |
msgid "If you want to display the ad everywhere, don't do anything here. "
|
907 |
msgstr ""
|
908 |
|
909 |
-
#: ../admin/views/ad-display-metabox.php:
|
910 |
#: 34
|
911 |
msgid "New condition"
|
912 |
msgstr ""
|
913 |
|
914 |
-
#: ../admin/views/ad-display-metabox.php:
|
915 |
#: 41
|
916 |
msgid "-- choose a condition --"
|
917 |
msgstr ""
|
918 |
|
919 |
-
#: ../admin/views/ad-display-metabox.php:
|
920 |
#: 46
|
921 |
msgid "add"
|
922 |
msgstr ""
|
@@ -961,7 +977,7 @@ msgid "Description"
|
|
961 |
msgstr ""
|
962 |
|
963 |
#: ../admin/views/ad-group-list-form-row.php:7 ../admin/views/placements.php:23 ..
|
964 |
-
#: modules/gadsense/admin/views/adsense-ad-parameters.php:48
|
965 |
msgid "Type"
|
966 |
msgstr ""
|
967 |
|
@@ -996,12 +1012,12 @@ msgid "Details"
|
|
996 |
msgstr ""
|
997 |
|
998 |
#: ../admin/views/ad-group-list-row.php:8 ../admin/views/ad-group.php:63 ..
|
999 |
-
#: admin/views/ad-info.php:3 ../admin/views/placements.php:58
|
1000 |
msgid "shortcode"
|
1001 |
msgstr ""
|
1002 |
|
1003 |
#: ../admin/views/ad-group-list-row.php:11 ../admin/views/ad-group.php:66 ..
|
1004 |
-
#: admin/views/placements.php:61
|
1005 |
msgid "template"
|
1006 |
msgstr ""
|
1007 |
|
@@ -1865,13 +1881,6 @@ msgid ""
|
|
1865 |
"ad setup."
|
1866 |
msgstr ""
|
1867 |
|
1868 |
-
#: ../admin/views/notices/jqueryui_error.php:2
|
1869 |
-
#, php-format
|
1870 |
-
msgid ""
|
1871 |
-
"There might be a problem with layouts and scripts in your dashboard. Please "
|
1872 |
-
"check <a href=\"%s\" target=\"_blank\">this article to learn more</a>."
|
1873 |
-
msgstr ""
|
1874 |
-
|
1875 |
#: ../classes/ad_placements.php:31
|
1876 |
msgid "Manual Placement"
|
1877 |
msgstr ""
|
@@ -2024,117 +2033,123 @@ msgid ""
|
|
2024 |
"misfortunate formats in forms, but should not damage features."
|
2025 |
msgstr ""
|
2026 |
|
2027 |
-
#: ../classes/display-conditions.php:
|
2028 |
msgid "post type"
|
2029 |
msgstr ""
|
2030 |
|
2031 |
-
#: ../classes/display-conditions.php:
|
2032 |
msgid "Choose the public post types on which to display the ad."
|
2033 |
msgstr ""
|
2034 |
|
2035 |
-
#: ../classes/display-conditions.php:
|
2036 |
msgid "specific pages"
|
2037 |
msgstr ""
|
2038 |
|
2039 |
-
#: ../classes/display-conditions.php:
|
2040 |
msgid ""
|
2041 |
"Choose on which individual posts, pages and public post type pages you want "
|
2042 |
"to display or hide ads."
|
2043 |
msgstr ""
|
2044 |
|
2045 |
-
#: ../classes/display-conditions.php:
|
2046 |
msgid "general conditions"
|
2047 |
msgstr ""
|
2048 |
|
2049 |
-
#: ../classes/display-conditions.php:
|
2050 |
msgid "author"
|
2051 |
msgstr ""
|
2052 |
|
2053 |
-
#: ../classes/display-conditions.php:
|
2054 |
#, php-format
|
2055 |
msgid "archive: %s"
|
2056 |
msgstr ""
|
2057 |
|
2058 |
-
#: ../classes/display-conditions.php:
|
2059 |
-
#: classes/display-conditions.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
2060 |
msgid "show"
|
2061 |
msgstr ""
|
2062 |
|
2063 |
-
#: ../classes/display-conditions.php:
|
2064 |
-
#: classes/display-conditions.php:
|
2065 |
msgid "hide"
|
2066 |
msgstr ""
|
2067 |
|
2068 |
-
#: ../classes/display-conditions.php:
|
2069 |
msgctxt "display the terms search field on ad edit page"
|
2070 |
msgid "add more terms"
|
2071 |
msgstr ""
|
2072 |
|
2073 |
-
#: ../classes/display-conditions.php:
|
2074 |
msgid "add more terms"
|
2075 |
msgstr ""
|
2076 |
|
2077 |
-
#: ../classes/display-conditions.php:
|
2078 |
msgid "term name or id"
|
2079 |
msgstr ""
|
2080 |
|
2081 |
-
#: ../classes/display-conditions.php:
|
2082 |
msgid "post or page title"
|
2083 |
msgstr ""
|
2084 |
|
2085 |
-
#: ../classes/display-conditions.php:
|
2086 |
msgid "Home Page"
|
2087 |
msgstr ""
|
2088 |
|
2089 |
-
#: ../classes/display-conditions.php:
|
2090 |
msgid "show on Home page"
|
2091 |
msgstr ""
|
2092 |
|
2093 |
-
#: ../classes/display-conditions.php:
|
2094 |
msgid "Singular Pages"
|
2095 |
msgstr ""
|
2096 |
|
2097 |
-
#: ../classes/display-conditions.php:
|
2098 |
msgid "show on singular pages/posts"
|
2099 |
msgstr ""
|
2100 |
|
2101 |
-
#: ../classes/display-conditions.php:
|
2102 |
msgid "Archive Pages"
|
2103 |
msgstr ""
|
2104 |
|
2105 |
-
#: ../classes/display-conditions.php:
|
2106 |
msgid "show on any type of archive page (category, tag, author and date)"
|
2107 |
msgstr ""
|
2108 |
|
2109 |
-
#: ../classes/display-conditions.php:
|
2110 |
msgid "Search Results"
|
2111 |
msgstr ""
|
2112 |
|
2113 |
-
#: ../classes/display-conditions.php:
|
2114 |
msgid "show on search result pages"
|
2115 |
msgstr ""
|
2116 |
|
2117 |
-
#: ../classes/display-conditions.php:
|
2118 |
msgid "404 Page"
|
2119 |
msgstr ""
|
2120 |
|
2121 |
-
#: ../classes/display-conditions.php:
|
2122 |
msgid "show on 404 error page"
|
2123 |
msgstr ""
|
2124 |
|
2125 |
-
#: ../classes/display-conditions.php:
|
2126 |
msgid "Attachment Pages"
|
2127 |
msgstr ""
|
2128 |
|
2129 |
-
#: ../classes/display-conditions.php:
|
2130 |
msgid "show on attachment pages"
|
2131 |
msgstr ""
|
2132 |
|
2133 |
-
#: ../classes/display-conditions.php:
|
2134 |
msgid "Secondary Queries"
|
2135 |
msgstr ""
|
2136 |
|
2137 |
-
#: ../classes/display-conditions.php:
|
2138 |
msgid "allow ads in secondary queries"
|
2139 |
msgstr ""
|
2140 |
|
@@ -2305,29 +2320,29 @@ msgstr ""
|
|
2305 |
msgid "Unable to copy assets to the \"%s\" directory"
|
2306 |
msgstr ""
|
2307 |
|
2308 |
-
#: ../modules/ad-blocker/admin/admin.php:
|
2309 |
-
#: php:
|
2310 |
#, php-format
|
2311 |
msgid "We do not have direct write access to the \"%s\" directory"
|
2312 |
msgstr ""
|
2313 |
|
2314 |
-
#: ../modules/ad-blocker/admin/admin.php:
|
2315 |
msgid "There are no assets to copy"
|
2316 |
msgstr ""
|
2317 |
|
2318 |
-
#: ../modules/ad-blocker/admin/admin.php:
|
2319 |
#, php-format
|
2320 |
msgid ""
|
2321 |
"Unable to create \"%s\" directory. Is its parent directory writable by the "
|
2322 |
"server?"
|
2323 |
msgstr ""
|
2324 |
|
2325 |
-
#: ../modules/ad-blocker/admin/admin.php:
|
2326 |
#, php-format
|
2327 |
msgid "Unable to copy files to %s"
|
2328 |
msgstr ""
|
2329 |
|
2330 |
-
#: ../modules/ad-blocker/admin/admin.php:
|
2331 |
msgid ""
|
2332 |
"Prevents ad block software from breaking your website when blocking asset "
|
2333 |
"files (.js, .css)."
|
5 |
"Project-Id-Version: Advanved Ads\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/plugins/plugin-name\n"
|
7 |
"POT-Creation-Date: 2015-01-27 16:47+0100\n"
|
8 |
+
"POT-Revision-Date: Fri Mar 18 2016 09:47:39 GMT+0100 (CET)\n"
|
9 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
10 |
"Last-Translator: Thomas Maier <post@webzunft.de>\n"
|
11 |
"Language-Team: webgilde <thomas.maier@webgilde.com>\n"
|
44 |
msgid "http://webgilde.com"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: ../admin/class-advanced-ads-admin.php:269
|
48 |
msgid "Overview"
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: ../admin/class-advanced-ads-admin.php:273 ../admin/class-advanced-ads-admin.
|
52 |
+
#: php:273 ../admin/includes/class-shortcode-creator.php:77 ../admin/views/ad-
|
53 |
#: group-list-form-row.php:28 ../admin/views/ad-group-list-header.php:5 ..
|
54 |
+
#: /admin/views/placements.php:80 ../admin/views/placements.php:184 ..
|
55 |
+
#: /classes/widget.php:89 ../public/class-advanced-ads.php:563
|
56 |
msgid "Ads"
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: ../admin/class-advanced-ads-admin.php:277 ../admin/includes/class-shortcode-
|
60 |
#: creator.php:84 ../admin/views/placements.php:73 ../admin/views/placements.php:
|
61 |
#: 177 ../classes/widget.php:82
|
62 |
msgid "Ad Groups"
|
63 |
msgstr ""
|
64 |
|
65 |
+
#: ../admin/class-advanced-ads-admin.php:277 ../public/class-advanced-ads.php:536
|
66 |
msgid "Groups"
|
67 |
msgstr ""
|
68 |
|
69 |
+
#: ../admin/class-advanced-ads-admin.php:282 ../admin/views/debug.php:14
|
70 |
msgid "Ad Placements"
|
71 |
msgstr ""
|
72 |
|
73 |
+
#: ../admin/class-advanced-ads-admin.php:282 ../admin/includes/class-shortcode-
|
74 |
#: creator.php:91 ../admin/views/placements.php:18 ../classes/widget.php:75
|
75 |
msgid "Placements"
|
76 |
msgstr ""
|
77 |
|
78 |
+
#: ../admin/class-advanced-ads-admin.php:286
|
79 |
msgid "Advanced Ads Settings"
|
80 |
msgstr ""
|
81 |
|
82 |
+
#: ../admin/class-advanced-ads-admin.php:286 ../admin/class-advanced-ads-admin.
|
83 |
+
#: php:535 ../admin/views/debug.php:11
|
84 |
msgid "Settings"
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: ../admin/class-advanced-ads-admin.php:289
|
88 |
msgid "Advanced Ads Debugging"
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: ../admin/class-advanced-ads-admin.php:289
|
92 |
msgid "Debug"
|
93 |
msgstr ""
|
94 |
|
95 |
+
#: ../admin/class-advanced-ads-admin.php:293 ../admin/class-advanced-ads-admin.
|
96 |
+
#: php:293
|
97 |
msgid "Advanced Ads Intro"
|
98 |
msgstr ""
|
99 |
|
100 |
+
#: ../admin/class-advanced-ads-admin.php:297 ../admin/class-advanced-ads-admin.
|
101 |
+
#: php:297 ../admin/class-advanced-ads-admin.php:1955
|
102 |
msgid "Support"
|
103 |
msgstr ""
|
104 |
|
105 |
+
#: ../admin/class-advanced-ads-admin.php:410
|
106 |
msgid "Please enter a message"
|
107 |
msgstr ""
|
108 |
|
109 |
+
#: ../admin/class-advanced-ads-admin.php:420
|
110 |
#, php-format
|
111 |
msgid "Email could NOT be sent. Please contact us directly at %s."
|
112 |
msgstr ""
|
113 |
|
114 |
+
#: ../admin/class-advanced-ads-admin.php:423
|
115 |
msgid "Please enter a valid email address"
|
116 |
msgstr ""
|
117 |
|
118 |
+
#: ../admin/class-advanced-ads-admin.php:449 ../admin/class-advanced-ads-admin.
|
119 |
+
#: php:476
|
120 |
msgid "Sorry, you are not allowed to access this feature."
|
121 |
msgstr ""
|
122 |
|
123 |
+
#: ../admin/class-advanced-ads-admin.php:462
|
124 |
msgid ""
|
125 |
"You attempted to edit an ad group that doesn’t exist. Perhaps it was "
|
126 |
"deleted?"
|
127 |
msgstr ""
|
128 |
|
129 |
+
#: ../admin/class-advanced-ads-admin.php:577
|
130 |
msgid "Ad Type"
|
131 |
msgstr ""
|
132 |
|
133 |
+
#: ../admin/class-advanced-ads-admin.php:580
|
134 |
msgid "Ad Parameters"
|
135 |
msgstr ""
|
136 |
|
137 |
+
#: ../admin/class-advanced-ads-admin.php:583
|
138 |
msgid "Layout / Output"
|
139 |
msgstr ""
|
140 |
|
141 |
+
#: ../admin/class-advanced-ads-admin.php:586
|
142 |
msgid "Display Conditions"
|
143 |
msgstr ""
|
144 |
|
145 |
+
#: ../admin/class-advanced-ads-admin.php:589
|
146 |
msgid "Visitor Conditions"
|
147 |
msgstr ""
|
148 |
|
149 |
+
#: ../admin/class-advanced-ads-admin.php:814 ../admin/class-advanced-ads-admin.
|
150 |
+
#: php:815
|
151 |
msgid "Ad updated."
|
152 |
msgstr ""
|
153 |
|
154 |
#. translators: %s: date and time of the revision
|
155 |
+
#: ../admin/class-advanced-ads-admin.php:817
|
156 |
#, php-format
|
157 |
msgid "Ad restored to revision from %s"
|
158 |
msgstr ""
|
159 |
|
160 |
+
#: ../admin/class-advanced-ads-admin.php:818
|
161 |
msgid "Ad published."
|
162 |
msgstr ""
|
163 |
|
164 |
+
#: ../admin/class-advanced-ads-admin.php:819
|
165 |
msgid "Ad saved."
|
166 |
msgstr ""
|
167 |
|
168 |
+
#: ../admin/class-advanced-ads-admin.php:820
|
169 |
msgid "Ad submitted."
|
170 |
msgstr ""
|
171 |
|
172 |
+
#: ../admin/class-advanced-ads-admin.php:822
|
173 |
#, php-format
|
174 |
msgid "Ad scheduled for: <strong>%1$s</strong>."
|
175 |
msgstr ""
|
176 |
|
177 |
#. translators: Publish box date format, see http://php.net/date
|
178 |
+
#: ../admin/class-advanced-ads-admin.php:824
|
179 |
msgid "M j, Y @ G:i"
|
180 |
msgstr ""
|
181 |
|
182 |
+
#: ../admin/class-advanced-ads-admin.php:826
|
183 |
msgid "Ad draft updated."
|
184 |
msgstr ""
|
185 |
|
186 |
+
#: ../admin/class-advanced-ads-admin.php:845
|
187 |
#, php-format
|
188 |
msgid "%s ad updated."
|
189 |
msgid_plural "%s ads updated."
|
190 |
msgstr[0] ""
|
191 |
msgstr[1] ""
|
192 |
|
193 |
+
#: ../admin/class-advanced-ads-admin.php:846
|
194 |
#, php-format
|
195 |
msgid "%s ad not updated, somebody is editing it."
|
196 |
msgid_plural "%s ads not updated, somebody is editing them."
|
197 |
msgstr[0] ""
|
198 |
msgstr[1] ""
|
199 |
|
200 |
+
#: ../admin/class-advanced-ads-admin.php:847
|
201 |
#, php-format
|
202 |
msgid "%s ad permanently deleted."
|
203 |
msgid_plural "%s ads permanently deleted."
|
204 |
msgstr[0] ""
|
205 |
msgstr[1] ""
|
206 |
|
207 |
+
#: ../admin/class-advanced-ads-admin.php:848
|
208 |
#, php-format
|
209 |
msgid "%s ad moved to the Trash."
|
210 |
msgid_plural "%s ads moved to the Trash."
|
211 |
msgstr[0] ""
|
212 |
msgstr[1] ""
|
213 |
|
214 |
+
#: ../admin/class-advanced-ads-admin.php:849
|
215 |
#, php-format
|
216 |
msgid "%s ad restored from the Trash."
|
217 |
msgid_plural "%s ads restored from the Trash."
|
218 |
msgstr[0] ""
|
219 |
msgstr[1] ""
|
220 |
|
221 |
+
#: ../admin/class-advanced-ads-admin.php:884 ../admin/views/settings.php:12
|
222 |
msgid "General"
|
223 |
msgstr ""
|
224 |
|
225 |
+
#: ../admin/class-advanced-ads-admin.php:896 ../admin/class-advanced-ads-admin.
|
226 |
+
#: php:1000
|
227 |
msgid "Licenses"
|
228 |
msgstr ""
|
229 |
|
230 |
+
#: ../admin/class-advanced-ads-admin.php:907
|
231 |
msgid "Disable ads"
|
232 |
msgstr ""
|
233 |
|
234 |
+
#: ../admin/class-advanced-ads-admin.php:915
|
235 |
msgid "Hide ads for logged in users"
|
236 |
msgstr ""
|
237 |
|
238 |
+
#: ../admin/class-advanced-ads-admin.php:923
|
239 |
msgid "Use advanced JavaScript"
|
240 |
msgstr ""
|
241 |
|
242 |
+
#: ../admin/class-advanced-ads-admin.php:931
|
243 |
msgid "Unlimited ad injection"
|
244 |
msgstr ""
|
245 |
|
246 |
+
#: ../admin/class-advanced-ads-admin.php:939
|
247 |
msgid "Priority of content injection filter"
|
248 |
msgstr ""
|
249 |
|
250 |
+
#: ../admin/class-advanced-ads-admin.php:947
|
251 |
msgid "Hide ads from bots"
|
252 |
msgstr ""
|
253 |
|
254 |
+
#: ../admin/class-advanced-ads-admin.php:955
|
255 |
msgid "Disable notices"
|
256 |
msgstr ""
|
257 |
|
258 |
+
#: ../admin/class-advanced-ads-admin.php:963
|
259 |
msgid "ID prefix"
|
260 |
msgstr ""
|
261 |
|
262 |
+
#: ../admin/class-advanced-ads-admin.php:971
|
263 |
msgid "Remove Widget ID"
|
264 |
msgstr ""
|
265 |
|
266 |
+
#: ../admin/class-advanced-ads-admin.php:979
|
267 |
msgid "Allow editors to manage ads"
|
268 |
msgstr ""
|
269 |
|
270 |
+
#: ../admin/class-advanced-ads-admin.php:1054
|
271 |
msgid "(display to all)"
|
272 |
msgstr ""
|
273 |
|
274 |
+
#: ../admin/class-advanced-ads-admin.php:1055
|
275 |
msgid "Subscriber"
|
276 |
msgstr ""
|
277 |
|
278 |
+
#: ../admin/class-advanced-ads-admin.php:1056
|
279 |
msgid "Contributor"
|
280 |
msgstr ""
|
281 |
|
282 |
+
#: ../admin/class-advanced-ads-admin.php:1057
|
283 |
msgid "Author"
|
284 |
msgstr ""
|
285 |
|
286 |
+
#: ../admin/class-advanced-ads-admin.php:1058
|
287 |
msgid "Editor"
|
288 |
msgstr ""
|
289 |
|
290 |
+
#: ../admin/class-advanced-ads-admin.php:1059
|
291 |
msgid "Admin"
|
292 |
msgstr ""
|
293 |
|
294 |
+
#: ../admin/class-advanced-ads-admin.php:1067
|
295 |
msgid "Choose the lowest role a user must have in order to not see any ads."
|
296 |
msgstr ""
|
297 |
|
298 |
+
#: ../admin/class-advanced-ads-admin.php:1081
|
299 |
msgid ""
|
300 |
"<strong>notice: </strong>the file is currently enabled by an add-on that "
|
301 |
"needs it."
|
302 |
msgstr ""
|
303 |
|
304 |
+
#: ../admin/class-advanced-ads-admin.php:1084
|
305 |
#, php-format
|
306 |
msgid ""
|
307 |
"Enable advanced JavaScript functions (<a href=\"%s\" target=\"_blank\">here</a>)."
|
309 |
"from this file."
|
310 |
msgstr ""
|
311 |
|
312 |
+
#: ../admin/class-advanced-ads-admin.php:1097
|
313 |
msgid ""
|
314 |
"Some plugins and themes trigger ad injection where it shouldn’t happen. "
|
315 |
"Therefore, Advanced Ads ignores injected placements on non-singular pages "
|
318 |
"on archive pages AT YOUR OWN RISK."
|
319 |
msgstr ""
|
320 |
|
321 |
+
#: ../admin/class-advanced-ads-admin.php:1113
|
322 |
msgid ""
|
323 |
"Please check your post content. A priority of 10 and below might cause "
|
324 |
"issues (wpautop function might run twice)."
|
325 |
msgstr ""
|
326 |
|
327 |
+
#: ../admin/class-advanced-ads-admin.php:1115
|
328 |
msgid ""
|
329 |
"Play with this value in order to change the priority of the injected ads "
|
330 |
"compared to other auto injected elements in the post content."
|
331 |
msgstr ""
|
332 |
|
333 |
+
#: ../admin/class-advanced-ads-admin.php:1129
|
334 |
#, php-format
|
335 |
msgid ""
|
336 |
"Hide ads from crawlers, bots and empty user agents. Also prevents counting "
|
338 |
"Add-On</a>."
|
339 |
msgstr ""
|
340 |
|
341 |
+
#: ../admin/class-advanced-ads-admin.php:1130
|
342 |
msgid ""
|
343 |
"Disabling this option only makes sense if your ads contain content you want "
|
344 |
"to display to bots (like search engines) or your site is cached and bots "
|
345 |
"could create a cached version without the ads."
|
346 |
msgstr ""
|
347 |
|
348 |
+
#: ../admin/class-advanced-ads-admin.php:1143
|
349 |
msgid ""
|
350 |
"Disable internal notices like tips, tutorials, email newsletters and update "
|
351 |
"notices. Disabling notices is recommended if you run multiple blogs with "
|
352 |
"Advanced Ads already."
|
353 |
msgstr ""
|
354 |
|
355 |
+
#: ../admin/class-advanced-ads-admin.php:1165
|
356 |
msgid ""
|
357 |
"Prefix of class or id attributes in the frontend. Change it if you don’t "
|
358 |
"want <strong>ad blockers</strong> to mark these blocks as ads.<br/>You might "
|
359 |
"need to <strong>rewrite css rules afterwards</strong>."
|
360 |
msgstr ""
|
361 |
|
362 |
+
#: ../admin/class-advanced-ads-admin.php:1186
|
363 |
msgid ""
|
364 |
"Remove the ID attribute from widgets in order to not make them an easy "
|
365 |
"target of ad blockers."
|
366 |
msgstr ""
|
367 |
|
368 |
+
#: ../admin/class-advanced-ads-admin.php:1189
|
369 |
msgid ""
|
370 |
"If checked, the Advanced Ads Widget will not work with the fixed option of "
|
371 |
"the <strong>Q2W3 Fixed Widget</strong> plugin."
|
372 |
msgstr ""
|
373 |
|
374 |
+
#: ../admin/class-advanced-ads-admin.php:1211
|
375 |
msgid "Allow editors to also manage and publish ads."
|
376 |
msgstr ""
|
377 |
|
378 |
+
#: ../admin/class-advanced-ads-admin.php:1212
|
379 |
#, php-format
|
380 |
msgid ""
|
381 |
"You can assign different ad-related roles on a user basis with <a href=\"%s\" "
|
382 |
"target=\"_blank\">Advanced Ads Pro</a>."
|
383 |
msgstr ""
|
384 |
|
385 |
+
#: ../admin/class-advanced-ads-admin.php:1302
|
386 |
msgid "Ad Details"
|
387 |
msgstr ""
|
388 |
|
389 |
+
#: ../admin/class-advanced-ads-admin.php:1303
|
390 |
msgid "Ad Planning"
|
391 |
msgstr ""
|
392 |
|
393 |
+
#: ../admin/class-advanced-ads-admin.php:1438
|
394 |
msgid "Ad Settings"
|
395 |
msgstr ""
|
396 |
|
397 |
+
#: ../admin/class-advanced-ads-admin.php:1517 ../admin/views/overview.php:23
|
398 |
msgid "Ads Dashboard"
|
399 |
msgstr ""
|
400 |
|
401 |
+
#: ../admin/class-advanced-ads-admin.php:1529
|
402 |
msgid "From the ad optimization universe"
|
403 |
msgstr ""
|
404 |
|
405 |
+
#: ../admin/class-advanced-ads-admin.php:1538
|
406 |
msgid "Advanced Ads Tutorials"
|
407 |
msgstr ""
|
408 |
|
409 |
+
#: ../admin/class-advanced-ads-admin.php:1549
|
410 |
#, php-format
|
411 |
msgid "%d ads – <a href=\"%s\">manage</a> - <a href=\"%s\">new</a>"
|
412 |
msgstr ""
|
413 |
|
414 |
+
#: ../admin/class-advanced-ads-admin.php:1560
|
415 |
msgid "plugin manual and homepage"
|
416 |
msgstr ""
|
417 |
|
418 |
+
#: ../admin/class-advanced-ads-admin.php:1567
|
419 |
msgid "Get the tutorial via email"
|
420 |
msgstr ""
|
421 |
|
422 |
+
#: ../admin/class-advanced-ads-admin.php:1574
|
423 |
msgid "Get AdSense tips via email"
|
424 |
msgstr ""
|
425 |
|
426 |
+
#: ../admin/class-advanced-ads-admin.php:1664
|
427 |
#, php-format
|
428 |
msgid "time of %s"
|
429 |
msgstr ""
|
430 |
|
431 |
+
#: ../admin/class-advanced-ads-admin.php:1699
|
432 |
msgid "Error while trying to register the license. Please contact support."
|
433 |
msgstr ""
|
434 |
|
435 |
+
#: ../admin/class-advanced-ads-admin.php:1705
|
436 |
msgid "Please enter and save a valid license key first."
|
437 |
msgstr ""
|
438 |
|
439 |
+
#: ../admin/class-advanced-ads-admin.php:1733
|
440 |
msgid "This is the bundle license key."
|
441 |
msgstr ""
|
442 |
|
443 |
+
#: ../admin/class-advanced-ads-admin.php:1734
|
444 |
msgid "This is not the correct key for this add-on."
|
445 |
msgstr ""
|
446 |
|
447 |
+
#: ../admin/class-advanced-ads-admin.php:1737
|
448 |
#, php-format
|
449 |
msgid "License is invalid. Reason: %s"
|
450 |
msgstr ""
|
451 |
|
452 |
+
#: ../admin/class-advanced-ads-admin.php:1781
|
453 |
msgid "Error while trying to disable the license. Please contact support."
|
454 |
msgstr ""
|
455 |
|
456 |
+
#: ../admin/class-advanced-ads-admin.php:1812
|
457 |
msgid "License couldn’t be deactivated. Please try again later or contact support."
|
458 |
msgstr ""
|
459 |
|
460 |
+
#: ../admin/class-advanced-ads-admin.php:1959
|
461 |
msgid "Add-Ons"
|
462 |
msgstr ""
|
463 |
|
534 |
msgid "You don’t have permission to change the ad groups"
|
535 |
msgstr ""
|
536 |
|
537 |
+
#: ../admin/includes/class-notices.php:397
|
538 |
#, php-format
|
539 |
msgid ""
|
540 |
"You don’t seem to have an email address. Please use <a href=\"%s\" "
|
541 |
"target=\"_blank\">this form</a> to sign up."
|
542 |
msgstr ""
|
543 |
|
544 |
+
#: ../admin/includes/class-notices.php:415
|
545 |
msgid "How embarrassing. The email server seems to be down. Please try again later."
|
546 |
msgstr ""
|
547 |
|
548 |
+
#: ../admin/includes/class-notices.php:420
|
549 |
#, php-format
|
550 |
msgid ""
|
551 |
"Please check your email (%s) for the confirmation message. If you didn’t "
|
609 |
|
610 |
#: ../admin/includes/class-overview-widgets.php:92 ../admin/includes/notices.php:
|
611 |
#: 35 ../admin/views/intro.php:73 ../admin/views/notices/inline.php:3 ..
|
612 |
+
#: /admin/views/notices/subscribe.php:3
|
613 |
msgid "Subscribe me now"
|
614 |
msgstr ""
|
615 |
|
879 |
"org</a>.</p><p><em>Thomas</em>"
|
880 |
msgstr ""
|
881 |
|
882 |
+
#: ../admin/includes/notices.php:85
|
883 |
+
#, php-format
|
884 |
+
msgid ""
|
885 |
+
"Some assets were changed. Please <strong>rebuild the asset folder</strong> "
|
886 |
+
"in the <a href=\"%s\">Advanced Ads settings</a> to update the ad blocker "
|
887 |
+
"disguise."
|
888 |
+
msgstr ""
|
889 |
+
|
890 |
#: ../admin/includes/shortcode-creator-l10n.php:10
|
891 |
msgctxt "shortcode creator"
|
892 |
msgid "Add an ad"
|
910 |
msgid "Manual"
|
911 |
msgstr ""
|
912 |
|
913 |
+
#: ../admin/views/ad-display-metabox.php:8 ../admin/views/notices/jqueryui_error.
|
914 |
+
#: php:2
|
915 |
+
#, php-format
|
916 |
+
msgid ""
|
917 |
+
"There might be a problem with layouts and scripts in your dashboard. Please "
|
918 |
+
"check <a href=\"%s\" target=\"_blank\">this article to learn more</a>."
|
919 |
+
msgstr ""
|
920 |
+
|
921 |
+
#: ../admin/views/ad-display-metabox.php:38
|
922 |
msgid "If you want to display the ad everywhere, don't do anything here. "
|
923 |
msgstr ""
|
924 |
|
925 |
+
#: ../admin/views/ad-display-metabox.php:41 ../admin/views/ad-visitor-metabox.php:
|
926 |
#: 34
|
927 |
msgid "New condition"
|
928 |
msgstr ""
|
929 |
|
930 |
+
#: ../admin/views/ad-display-metabox.php:44 ../admin/views/ad-visitor-metabox.php:
|
931 |
#: 41
|
932 |
msgid "-- choose a condition --"
|
933 |
msgstr ""
|
934 |
|
935 |
+
#: ../admin/views/ad-display-metabox.php:49 ../admin/views/ad-visitor-metabox.php:
|
936 |
#: 46
|
937 |
msgid "add"
|
938 |
msgstr ""
|
977 |
msgstr ""
|
978 |
|
979 |
#: ../admin/views/ad-group-list-form-row.php:7 ../admin/views/placements.php:23 ..
|
980 |
+
#: /modules/gadsense/admin/views/adsense-ad-parameters.php:48
|
981 |
msgid "Type"
|
982 |
msgstr ""
|
983 |
|
1012 |
msgstr ""
|
1013 |
|
1014 |
#: ../admin/views/ad-group-list-row.php:8 ../admin/views/ad-group.php:63 ..
|
1015 |
+
#: /admin/views/ad-info.php:3 ../admin/views/placements.php:58
|
1016 |
msgid "shortcode"
|
1017 |
msgstr ""
|
1018 |
|
1019 |
#: ../admin/views/ad-group-list-row.php:11 ../admin/views/ad-group.php:66 ..
|
1020 |
+
#: /admin/views/placements.php:61
|
1021 |
msgid "template"
|
1022 |
msgstr ""
|
1023 |
|
1881 |
"ad setup."
|
1882 |
msgstr ""
|
1883 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1884 |
#: ../classes/ad_placements.php:31
|
1885 |
msgid "Manual Placement"
|
1886 |
msgstr ""
|
2033 |
"misfortunate formats in forms, but should not damage features."
|
2034 |
msgstr ""
|
2035 |
|
2036 |
+
#: ../classes/display-conditions.php:58
|
2037 |
msgid "post type"
|
2038 |
msgstr ""
|
2039 |
|
2040 |
+
#: ../classes/display-conditions.php:59 ../includes/array_ad_conditions.php:40
|
2041 |
msgid "Choose the public post types on which to display the ad."
|
2042 |
msgstr ""
|
2043 |
|
2044 |
+
#: ../classes/display-conditions.php:65
|
2045 |
msgid "specific pages"
|
2046 |
msgstr ""
|
2047 |
|
2048 |
+
#: ../classes/display-conditions.php:66 ../includes/array_ad_conditions.php:58
|
2049 |
msgid ""
|
2050 |
"Choose on which individual posts, pages and public post type pages you want "
|
2051 |
"to display or hide ads."
|
2052 |
msgstr ""
|
2053 |
|
2054 |
+
#: ../classes/display-conditions.php:71
|
2055 |
msgid "general conditions"
|
2056 |
msgstr ""
|
2057 |
|
2058 |
+
#: ../classes/display-conditions.php:77
|
2059 |
msgid "author"
|
2060 |
msgstr ""
|
2061 |
|
2062 |
+
#: ../classes/display-conditions.php:102
|
2063 |
#, php-format
|
2064 |
msgid "archive: %s"
|
2065 |
msgstr ""
|
2066 |
|
2067 |
+
#: ../classes/display-conditions.php:187 ../classes/display-conditions.php:231 ..
|
2068 |
+
#: /classes/display-conditions.php:319
|
2069 |
+
msgctxt "Error message shown when no display condition term is selected"
|
2070 |
+
msgid "Please select some items."
|
2071 |
+
msgstr ""
|
2072 |
+
|
2073 |
+
#: ../classes/display-conditions.php:216 ../classes/display-conditions.php:269 ..
|
2074 |
+
#: /classes/display-conditions.php:344
|
2075 |
msgid "show"
|
2076 |
msgstr ""
|
2077 |
|
2078 |
+
#: ../classes/display-conditions.php:217 ../classes/display-conditions.php:270 ..
|
2079 |
+
#: /classes/display-conditions.php:345
|
2080 |
msgid "hide"
|
2081 |
msgstr ""
|
2082 |
|
2083 |
+
#: ../classes/display-conditions.php:309
|
2084 |
msgctxt "display the terms search field on ad edit page"
|
2085 |
msgid "add more terms"
|
2086 |
msgstr ""
|
2087 |
|
2088 |
+
#: ../classes/display-conditions.php:310
|
2089 |
msgid "add more terms"
|
2090 |
msgstr ""
|
2091 |
|
2092 |
+
#: ../classes/display-conditions.php:312
|
2093 |
msgid "term name or id"
|
2094 |
msgstr ""
|
2095 |
|
2096 |
+
#: ../classes/display-conditions.php:373
|
2097 |
msgid "post or page title"
|
2098 |
msgstr ""
|
2099 |
|
2100 |
+
#: ../classes/display-conditions.php:418 ../includes/array_ad_conditions.php:63
|
2101 |
msgid "Home Page"
|
2102 |
msgstr ""
|
2103 |
|
2104 |
+
#: ../classes/display-conditions.php:419 ../includes/array_ad_conditions.php:64
|
2105 |
msgid "show on Home page"
|
2106 |
msgstr ""
|
2107 |
|
2108 |
+
#: ../classes/display-conditions.php:423 ../includes/array_ad_conditions.php:68
|
2109 |
msgid "Singular Pages"
|
2110 |
msgstr ""
|
2111 |
|
2112 |
+
#: ../classes/display-conditions.php:424 ../includes/array_ad_conditions.php:69
|
2113 |
msgid "show on singular pages/posts"
|
2114 |
msgstr ""
|
2115 |
|
2116 |
+
#: ../classes/display-conditions.php:428 ../includes/array_ad_conditions.php:73
|
2117 |
msgid "Archive Pages"
|
2118 |
msgstr ""
|
2119 |
|
2120 |
+
#: ../classes/display-conditions.php:429 ../includes/array_ad_conditions.php:74
|
2121 |
msgid "show on any type of archive page (category, tag, author and date)"
|
2122 |
msgstr ""
|
2123 |
|
2124 |
+
#: ../classes/display-conditions.php:433 ../includes/array_ad_conditions.php:78
|
2125 |
msgid "Search Results"
|
2126 |
msgstr ""
|
2127 |
|
2128 |
+
#: ../classes/display-conditions.php:434 ../includes/array_ad_conditions.php:79
|
2129 |
msgid "show on search result pages"
|
2130 |
msgstr ""
|
2131 |
|
2132 |
+
#: ../classes/display-conditions.php:438 ../includes/array_ad_conditions.php:83
|
2133 |
msgid "404 Page"
|
2134 |
msgstr ""
|
2135 |
|
2136 |
+
#: ../classes/display-conditions.php:439 ../includes/array_ad_conditions.php:84
|
2137 |
msgid "show on 404 error page"
|
2138 |
msgstr ""
|
2139 |
|
2140 |
+
#: ../classes/display-conditions.php:443 ../includes/array_ad_conditions.php:88
|
2141 |
msgid "Attachment Pages"
|
2142 |
msgstr ""
|
2143 |
|
2144 |
+
#: ../classes/display-conditions.php:444 ../includes/array_ad_conditions.php:89
|
2145 |
msgid "show on attachment pages"
|
2146 |
msgstr ""
|
2147 |
|
2148 |
+
#: ../classes/display-conditions.php:448 ../includes/array_ad_conditions.php:93
|
2149 |
msgid "Secondary Queries"
|
2150 |
msgstr ""
|
2151 |
|
2152 |
+
#: ../classes/display-conditions.php:449 ../includes/array_ad_conditions.php:94
|
2153 |
msgid "allow ads in secondary queries"
|
2154 |
msgstr ""
|
2155 |
|
2320 |
msgid "Unable to copy assets to the \"%s\" directory"
|
2321 |
msgstr ""
|
2322 |
|
2323 |
+
#: ../modules/ad-blocker/admin/admin.php:393 ../modules/ad-blocker/admin/admin.
|
2324 |
+
#: php:402
|
2325 |
#, php-format
|
2326 |
msgid "We do not have direct write access to the \"%s\" directory"
|
2327 |
msgstr ""
|
2328 |
|
2329 |
+
#: ../modules/ad-blocker/admin/admin.php:411
|
2330 |
msgid "There are no assets to copy"
|
2331 |
msgstr ""
|
2332 |
|
2333 |
+
#: ../modules/ad-blocker/admin/admin.php:467
|
2334 |
#, php-format
|
2335 |
msgid ""
|
2336 |
"Unable to create \"%s\" directory. Is its parent directory writable by the "
|
2337 |
"server?"
|
2338 |
msgstr ""
|
2339 |
|
2340 |
+
#: ../modules/ad-blocker/admin/admin.php:478
|
2341 |
#, php-format
|
2342 |
msgid "Unable to copy files to %s"
|
2343 |
msgstr ""
|
2344 |
|
2345 |
+
#: ../modules/ad-blocker/admin/admin.php:545
|
2346 |
msgid ""
|
2347 |
"Prevents ad block software from breaking your website when blocking asset "
|
2348 |
"files (.js, .css)."
|
modules/ad-blocker/admin/admin.php
CHANGED
@@ -369,6 +369,7 @@ class Advanced_Ads_Ad_Blocker_Admin
|
|
369 |
}
|
370 |
// successful result, save options and rewrite previous error options
|
371 |
update_option( ADVADS_AB_SLUG, $new_options);
|
|
|
372 |
}
|
373 |
|
374 |
/**
|
369 |
}
|
370 |
// successful result, save options and rewrite previous error options
|
371 |
update_option( ADVADS_AB_SLUG, $new_options);
|
372 |
+
Advanced_Ads_Admin_Notices::get_instance()->remove_from_queue('assets_expired');
|
373 |
}
|
374 |
|
375 |
/**
|
public/views/ad-debug.php
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="<?php echo $prefix; ?>addebug" style="<?php echo $style; ?>">
|
2 |
+
<strong>ad debug output</strong>
|
3 |
+
<?php if( $content === array() ) : ?>
|
4 |
+
<p style="color: green;">no errors found</p>
|
5 |
+
<?php else : ?>
|
6 |
+
<p><?php echo implode( '</p><p>', $content ); ?></p>
|
7 |
+
<p><a style="color: green;" href="<?php echo ADVADS_URL; ?>manual/ad-debug-mode/#utm_source=advanced-ads&utm_medium=link&utm_campaign=ad-debug-mode" target="_blank">Find solutions in the manual</a></p>
|
8 |
+
<?php endif; ?>
|
9 |
+
</div>
|
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: WP 4.2, PHP 5.3
|
6 |
Tested up to: 4.4.2
|
7 |
-
Stable tag: 1.7.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -196,6 +196,16 @@ There is no revenue share. Advanced Ads doesn’t alter your ad codes in a way t
|
|
196 |
|
197 |
== Changelog ==
|
198 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
199 |
= 1.7.0.2 =
|
200 |
|
201 |
* hide ad if no term is selected for taxonomy display conditions
|
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: WP 4.2, PHP 5.3
|
6 |
Tested up to: 4.4.2
|
7 |
+
Stable tag: 1.7.0.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
196 |
|
197 |
== Changelog ==
|
198 |
|
199 |
+
= 1.7.0.3 =
|
200 |
+
|
201 |
+
* added debug mode for ads, see [manual](https://wpadvancedads.com/manual/ad-debug-mode/)
|
202 |
+
* skip check for general conditions if all are on (allows ad injection also in iframes and new wp instances)
|
203 |
+
* display jQuery issue notice in display conditions
|
204 |
+
* lifted the restriction to choose each display condition only once
|
205 |
+
* add notice when ad block folder needs to be rebuild
|
206 |
+
* hide an ad with a tag condition in posts that don’t have a tag at all
|
207 |
+
* prevent broken custom queries to interfere with display conditions
|
208 |
+
|
209 |
= 1.7.0.2 =
|
210 |
|
211 |
* hide ad if no term is selected for taxonomy display conditions
|