Advanced Ads - Version 1.7.3

Version Description

  • allow ad injection with just one click after ad was published
  • fix for unset ad type breaks saving the ad
  • fix for ads injected into main content which use document.write with closing tags
  • fixed pro placements not visible when adblocker is enabled
  • forces ad type metabox to stay open for new ads
Download this release

Release Info

Developer webzunft
Plugin Icon 128x128 Advanced Ads
Version 1.7.3
Comparing to
See all releases

Code changes from version 1.7.2.1 to 1.7.3

admin/assets/css/admin.css CHANGED
@@ -27,13 +27,19 @@ h2.hndle .advads-hndlelinks { display: inline-block; margin-left: 1em; }
27
  h2.hndle .advads-hndlelinks a { text-decoration: none; }
28
  h2.hndle .advads-hndlelinks a + a { margin-left: 1em; }
29
  .advads-video-link-container { text-align: center; }
30
- #advads-ad-info-top { position: relative; top: 0; left: 0; padding: 3em; background: #fff; }
31
- #advads-ad-info-close { position: absolute; top: 1em; right: 1em; font-size: 2em; color: #666; }
32
- #advads-ad-info-close:hover { cursor: pointer; color: #000; }
33
- #advads-ad-info-top h2 { font-weight: bold; color: #0074a2; }
34
- #advads-ad-info-top div pre input { width: 30em; }
35
- #advads-ad-info-top .ui-accordion .ui-accordion-header { margin-top: 0; border-radius: 0; }
36
- #advads-ad-info-top .ui-accordion .ui-accordion-content { border-radius: 0; }
 
 
 
 
 
 
37
 
38
  #advads-ad-info { overflow: hidden; margin-bottom: 1em; }
39
  #advads-ad-info > * { float: left; margin: 0; line-height: 2em; }
@@ -165,12 +171,11 @@ select + .advads-conditions-single { display: inline-block; }
165
  /**
166
  AD PLACEMENTS
167
  */
168
- .advads-new-placement-types { background: #ccc; overflow: hidden; }
169
  .advads-placement-description { display: none; }
170
  .advads-placements-new-form .advads-placement-type { position: relative; top: 0; left: 0; float: left; }
171
  .advads-placements-new-form .advads-placement-type .ui-button { background: none; border-radius: 0; height: auto; }
172
- .advads-placements-new-form .advads-placement-type .ui-button-text { padding: 0; }
173
- .advads-placements-new-form .advads-placement-type .ui-button-text img { margin-top: 10px; max-width: 100%; pointer-events: none; }
174
  .advads-placements-new-form .advads-placement-type label { display: inline-block; width: 140px; text-align: center; border: 0; padding: 10px; }
175
  .advads-placements-new-form .advads-placement-type label .description { padding: 10px; }
176
  .advads-placements-new-form .advads-error-message { display: none; }
27
  h2.hndle .advads-hndlelinks a { text-decoration: none; }
28
  h2.hndle .advads-hndlelinks a + a { margin-left: 1em; }
29
  .advads-video-link-container { text-align: center; }
30
+ #advads-ad-injection-box { position: relative; top: 0; left: 0; padding: 3em; background: #fff; }
31
+ #advads-ad-injection-box h2 { font-weight: bold; color: #0074a2; font-size: 1.6em; margin: 0 0 2em; }
32
+ #advads-ad-injection-box hr { clear: both; }
33
+ #advads-ad-injection-box div pre input { width: 30em; }
34
+ #advads-ad-injection-box .ui-accordion .ui-accordion-header { margin-top: 0; border-radius: 0; }
35
+ #advads-ad-injection-box .ui-accordion .ui-accordion-content { border-radius: 0; }
36
+ #advads-ad-injection-box .button-primary { float: left; margin-right: 10px; padding: 10px; width: 140px; height: 105px; background-size: 140px 105px; font-size: 2em; text-indent: -9999px; border: solid 1px #0085ba; }
37
+ #advads-ad-injection-box .button-primary { box-shadow: 0px 0px 2px #0085ba; }
38
+ #advads-ad-injection-box button:hover { background: #0085ba !important; color: #fff; text-indent: 0; white-space: normal; cursor: pointer; }
39
+ #advads-ad-injection-box input[type="number"] { width: 4em; }
40
+ #advads-ad-injection-shortcode { width: 130px; border: none; background: #ededed; }
41
+ #advads-ad-injection-message-placement-created { font-size: 1.5em; }
42
+ .advads-pro-link { opacity: 0.5; }
43
 
44
  #advads-ad-info { overflow: hidden; margin-bottom: 1em; }
45
  #advads-ad-info > * { float: left; margin: 0; line-height: 2em; }
171
  /**
172
  AD PLACEMENTS
173
  */
 
174
  .advads-placement-description { display: none; }
175
  .advads-placements-new-form .advads-placement-type { position: relative; top: 0; left: 0; float: left; }
176
  .advads-placements-new-form .advads-placement-type .ui-button { background: none; border-radius: 0; height: auto; }
177
+ .advads-placements-new-form .advads-placement-type .ui-button-text { padding: 0; width: 140px; height: 105px; border: solid 1px #0085ba; border-radius: 3px; box-shadow: 0px 0px 2px #0085ba; overflow: hidden; }
178
+ .advads-placements-new-form .advads-placement-type .ui-button-text img { max-width: 100%; pointer-events: none; }
179
  .advads-placements-new-form .advads-placement-type label { display: inline-block; width: 140px; text-align: center; border: 0; padding: 10px; }
180
  .advads-placements-new-form .advads-placement-type label .description { padding: 10px; }
181
  .advads-placements-new-form .advads-error-message { display: none; }
admin/assets/img/placements/content-random.png ADDED
Binary file
admin/assets/img/placements/layer.png ADDED
Binary file
admin/assets/img/placements/sticky-sidebar-left.png ADDED
Binary file
admin/assets/js/admin.js CHANGED
@@ -28,14 +28,51 @@ jQuery( document ).ready(function ($) {
28
  }).always( function ( MLHttpRequest, textStatus, errorThrown ) {
29
  jQuery( '#advanced-ad-type input').prop( 'disabled', false );
30
  });;
31
- }
32
- ;
33
 
34
  $( document ).on('change', '#advanced-ad-type input', function () {
35
  var ad_type = $( this ).val()
36
  advads_load_ad_type_parameter_metabox( ad_type );
37
  });
38
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  // activate general buttons
40
  if ( $.fn.buttonset ) {
41
  $( '.advads-buttonset' ).buttonset();
@@ -151,56 +188,36 @@ jQuery( document ).ready(function ($) {
151
  }
152
  });
153
 
154
- // display ad groups form
155
- $( '#advads-ad-group-list a.edit, #advads-ad-group-list a.row-title' ).click(function(e){
156
- e.preventDefault();
157
- var advadsgroupformrow = $( this ).parents( '.advads-group-row' ).next( '.advads-ad-group-form' );
158
- if(advadsgroupformrow.is( ':visible' )){
159
- advadsgroupformrow.hide();
160
- } else {
161
- advadsgroupformrow.show();
162
- }
163
- });
164
- // display ad groups usage
165
- $( '#advads-ad-group-list a.usage' ).click(function(e){
166
- e.preventDefault();
167
- var usagediv = $( this ).parents( '.advads-group-row' ).find( '.advads-usage' );
168
- if(usagediv.is( ':visible' )){
169
- usagediv.hide();
170
- } else {
171
- usagediv.show();
172
- }
173
- });
174
- // display ad groups usage
175
- $( '.advads-placements-table .usage-link' ).click(function(e){
176
- e.preventDefault();
177
- var usagediv = $( this ).next( '.advads-usage' );
178
- if(usagediv.is( ':visible' )){
179
- usagediv.hide();
180
- } else {
181
- usagediv.show();
182
- }
183
- });
184
- // menu tabs
185
- $( '#advads-tabs' ).find( 'a' ).click(function () {
186
- $( '#advads-tabs' ).find( 'a' ).removeClass( 'nav-tab-active' );
187
- $( '.advads-tab' ).removeClass( 'active' );
188
-
189
- var id = jQuery( this ).attr( 'id' ).replace( '-tab', '' );
190
- jQuery( '#' + id ).addClass( 'active' );
191
- jQuery( this ).addClass( 'nav-tab-active' );
192
- });
193
-
194
- // activate specific or first tab
195
- var active_tab = window.location.hash.replace( '#top#', '' );
196
- if (active_tab == '' || active_tab == '#_=_') {
197
- active_tab = $( '.advads-tab' ).attr( 'id' );
198
  }
199
- $( '#' + active_tab ).addClass( 'active' );
200
- $( '#' + active_tab + '-tab' ).addClass( 'nav-tab-active' );
201
- $( '.nav-tab-active' ).click();
202
- // set all tab urls
203
- advads_set_tab_hashes();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
204
 
205
  /**
206
  * SETTINGS PAGE
28
  }).always( function ( MLHttpRequest, textStatus, errorThrown ) {
29
  jQuery( '#advanced-ad-type input').prop( 'disabled', false );
30
  });;
31
+ };
 
32
 
33
  $( document ).on('change', '#advanced-ad-type input', function () {
34
  var ad_type = $( this ).val()
35
  advads_load_ad_type_parameter_metabox( ad_type );
36
  });
37
 
38
+ // trigger for ad injection after ad creation
39
+ $( '#advads-ad-injection-box .advads-ad-injection-button' ).click( function(){
40
+ var placement_type = this.dataset.type;
41
+ if( ! placement_type ){ return; }
42
+ var options = {};
43
+ // for content injection
44
+ if( 'post_content' === placement_type ){
45
+ var paragraph = prompt( advadstxt.after_paragraph_promt, 1);
46
+ if ( paragraph !== null ) {
47
+ options.index = parseInt( paragraph );
48
+ }
49
+ }
50
+ // $( '#advads-ad-injection-box' ).html( '<span class="spinner advads-ad-parameters-spinner advads-spinner"></span>' );
51
+ $.ajax({
52
+ type: 'POST',
53
+ url: ajaxurl,
54
+ data: {
55
+ action: 'advads-ad-injection-content',
56
+ placement_type: placement_type,
57
+ ad_id: $( '#post_ID' ).val(),
58
+ options: options
59
+ },
60
+ success: function (r, textStatus, XMLHttpRequest) {
61
+ if( r ){
62
+ $( '#advads-ad-injection-box *' ).hide();
63
+ // append anchor to placement message
64
+ $( '#advads-ad-injection-message-placement-created a' ).attr( 'href', $( '#advads-ad-injection-message-placement-created a' ).attr( 'href' ) + r );
65
+ $( '#advads-ad-injection-message-placement-created, #advads-ad-injection-message-placement-created *' ).show();
66
+ }
67
+ },
68
+ error: function (MLHttpRequest, textStatus, errorThrown) {
69
+ $( '#advads-ad-injection-box' ).html( errorThrown );
70
+ }
71
+ }).always( function ( MLHttpRequest, textStatus, errorThrown ) {
72
+ // jQuery( '#advanced-ad-type input').prop( 'disabled', false );
73
+ });;
74
+ });
75
+
76
  // activate general buttons
77
  if ( $.fn.buttonset ) {
78
  $( '.advads-buttonset' ).buttonset();
188
  }
189
  });
190
 
191
+ // display ad groups form
192
+ $( '#advads-ad-group-list a.edit, #advads-ad-group-list a.row-title' ).click(function(e){
193
+ e.preventDefault();
194
+ var advadsgroupformrow = $( this ).parents( '.advads-group-row' ).next( '.advads-ad-group-form' );
195
+ if(advadsgroupformrow.is( ':visible' )){
196
+ advadsgroupformrow.hide();
197
+ } else {
198
+ advadsgroupformrow.show();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
199
  }
200
+ });
201
+ // display ad groups usage
202
+ $( '#advads-ad-group-list a.usage' ).click(function(e){
203
+ e.preventDefault();
204
+ var usagediv = $( this ).parents( '.advads-group-row' ).find( '.advads-usage' );
205
+ if(usagediv.is( ':visible' )){
206
+ usagediv.hide();
207
+ } else {
208
+ usagediv.show();
209
+ }
210
+ });
211
+ // display ad groups usage
212
+ $( '.advads-placements-table .usage-link' ).click(function(e){
213
+ e.preventDefault();
214
+ var usagediv = $( this ).next( '.advads-usage' );
215
+ if(usagediv.is( ':visible' )){
216
+ usagediv.hide();
217
+ } else {
218
+ usagediv.show();
219
+ }
220
+ });
221
 
222
  /**
223
  * SETTINGS PAGE
admin/class-advanced-ads-admin.php CHANGED
@@ -211,6 +211,7 @@ class Advanced_Ads_Admin {
211
  $translation_array = array(
212
  'condition_or' => __( 'or', 'advanced-ads' ),
213
  'condition_and' => __( 'and', 'advanced-ads' ),
 
214
  );
215
  wp_localize_script( $this->plugin_slug . '-admin-script', 'advadstxt', $translation_array );
216
 
@@ -563,7 +564,7 @@ class Advanced_Ads_Admin {
563
  return;
564
  }
565
  $ad = new Advanced_Ads_Ad( $post->ID );
566
-
567
  include ADVADS_BASE_PATH . 'admin/views/ad-info-top.php';
568
  }
569
 
@@ -621,6 +622,8 @@ class Advanced_Ads_Admin {
621
  if( !in_array( 'closed', $classes ) ){
622
  $classes[] = 'closed';
623
  }
 
 
624
  }
625
  return $classes;
626
  }
211
  $translation_array = array(
212
  'condition_or' => __( 'or', 'advanced-ads' ),
213
  'condition_and' => __( 'and', 'advanced-ads' ),
214
+ 'after_paragraph_promt' => __( 'After which paragraph?', 'advanced-ads' ),
215
  );
216
  wp_localize_script( $this->plugin_slug . '-admin-script', 'advadstxt', $translation_array );
217
 
564
  return;
565
  }
566
  $ad = new Advanced_Ads_Ad( $post->ID );
567
+
568
  include ADVADS_BASE_PATH . 'admin/views/ad-info-top.php';
569
  }
570
 
622
  if( !in_array( 'closed', $classes ) ){
623
  $classes[] = 'closed';
624
  }
625
+ } else {
626
+ $classes = array();
627
  }
628
  return $classes;
629
  }
admin/views/ad-info-top.php CHANGED
@@ -1,53 +1,23 @@
1
  <?php if( isset( $_GET['message'] ) && 6 === $_GET['message'] ) : ?>
2
- <div id="advads-ad-info-top">
3
- <span id='advads-ad-info-close'>x</span>
4
- <h2>&#128077; <?php _e( 'Cool, you just published an ad. What now?', 'advanced-ads' ); ?></h2>
5
- <h3><?php _e( 'Display the ad in …', 'advanced-ads' ); ?></h3>
6
- <div class="advads-accordion">
7
- <h3><?php _e( ' every post or page', 'advanced-ads' ); ?></h3>
8
- <div>
9
- <p><?php _e( 'Use placements to inject the ad automatically into posts and pages.', 'advanced-ads' ); ?></p>
10
- <a href="<?php echo admin_url( 'admin.php?action=edit&page=advanced-ads-placements' ); ?>" class="button button-primary"><?php _e( 'Configure Placements', 'advanced-ads' ); ?></a>
11
- </div>
12
- <h3><?php _e( '… Sidebar or Widget Area', 'advanced-ads' ); ?></h3>
13
- <div>
14
- <p><?php _e( 'Use the <em>Advanced Ads</em> Widget to display ads in your sidebars.', 'advanced-ads' ); ?></p>
15
- <a href="<?php echo admin_url('widgets.php'); ?>" class="button button-primary"><?php _e( 'Configure a Widget', 'advanced-ads' ); ?></a>
16
- </div>
17
- <h3><?php _e( '… a few hand selected posts or pages', 'advanced-ads' ); ?></h3>
18
- <div>
19
- <p><?php _e( 'Use the shortcode below to manually place the ad in the content editor of posts and pages.', 'advanced-ads' ); ?></p>
20
- <pre><input type="text" onclick="this.select();" value='[the_ad id="<?php echo $post->ID; ?>"]'/></pre>
21
- </div>
22
- <h3><?php _e( '… in a custom position in your theme', 'advanced-ads' ); ?></h3>
23
- <div>
24
- <p><?php _e( 'Use the function below to manually place the ad into your template files. This method is needed for more advanced placements like in the header of your theme.', 'advanced-ads' ); ?></p>
25
- <pre><input type="text" onclick="this.select();" value="&lt;?php if( function_exists('the_ad') ) the_ad(<?php echo $post->ID; ?>); ?&gt;"/></pre>
26
- </div>
27
- <h3><?php _e( '… in an anchor ad or pop-up', 'advanced-ads' ); ?></h3>
28
- <div>
29
- <?php if( ! defined( 'AASADS_SLUG' ) ) : ?>
30
- <p><?php _e( 'Fix ads to the browser while users are scrolling and create best performing anchor ads.', 'advanced-ads' ); ?></p>
31
- <a class="button button-primary" href="<?php echo ADVADS_URL; ?>add-ons/sticky-ads/#utm_source=advanced-ads&utm_medium=link&utm_campaign=edit-created" target="_blank"><?php
32
- _e( 'Get the Sticky add-on', 'advanced-ads' ); ?></a>
33
- <?php else : ?>
34
- <p><?php _e( 'You find the settings for the Sticky Ads below.', 'advanced-ads' ); ?></p>
35
- <?php endif; ?>
36
- <?php if( ! defined( 'AAPLDS_SLUG' ) ) : ?>
37
- <p><?php _e( 'Display content and ads in layers and popups on custom events.', 'advanced-ads' ); ?></p>
38
- <a class="button button-primary" href="<?php echo ADVADS_URL; ?>add-ons/popup-and-layer-ads/#utm_source=advanced-ads&utm_medium=link&utm_campaign=edit-created" target="_blank"><?php
39
- _e( 'Get the PopUp and Layer add-on', 'advanced-ads' ); ?></a>
40
- <?php else : ?>
41
- <p><?php _e( 'You find the settings for the Layer and PopUp effects below.', 'advanced-ads' ); ?></p>
42
- <?php endif; ?>
43
- </div>
44
- </div>
45
-
46
- <p><?php printf( __( 'Learn more about your choices to display an ad in the <a href="%s" target="_blank">manual</a>', 'advanced-ads' ), ADVADS_URL . 'manual/display-ads/#utm_source=advanced-ads&utm_medium=link&utm_campaign=edit-created' ); ?></p>
47
  </div>
48
- <script>
49
- jQuery('#advads-ad-info-close').click(function(){
50
- jQuery('#advads-ad-info-top').fadeOut();
51
- });
52
- </script>
53
  <?php endif;
1
  <?php if( isset( $_GET['message'] ) && 6 === $_GET['message'] ) : ?>
2
+ <div id="advads-ad-injection-box" class="postbox">
3
+ <p id="advads-ad-injection-message-placement-created" class="hidden"><?php printf(__( 'Congratulations! Your ad is now visible in the frontend. You can adjust the placement options <a href="%s">here</a>.', 'advanced-ads' ), admin_url( 'admin.php?page=advanced-ads-placements#single-placement-' ) ); ?></p>
4
+ <h2><?php _e( 'Where do you want to display the ad?', 'advanced-ads' ); ?></h2>
5
+ <button type="button" class="advads-ad-injection-button button-primary" data-type="post_top" style="background-image: url(<?php echo ADVADS_BASE_URL . 'admin/assets/img/placements/content-before.png'; ?>)"><?php _e( 'Before Content', 'advanced-ads'); ?></button>
6
+ <button type="button" class="advads-ad-injection-button button-primary" data-type="post_content" style="background-image: url(<?php echo ADVADS_BASE_URL . 'admin/assets/img/placements/content-within.png'; ?>)"><?php _e( 'Content', 'advanced-ads'); ?></button>
7
+ <button type="button" class="advads-ad-injection-button button-primary" data-type="post_bottom" style="background-image: url(<?php echo ADVADS_BASE_URL . 'admin/assets/img/placements/content-after.png'; ?>)"><?php _e( 'After Content', 'advanced-ads'); ?></button>
8
+ <a href="<?php echo admin_url( 'widgets.php' ); ?>"><button type="button" class="advads-ad-injection-button button-primary" style="background-image: url(<?php echo ADVADS_BASE_URL . 'admin/assets/img/placements/widget.png'; ?>)"><?php _e( 'Manage Sidebar', 'advanced-ads'); ?></button></a>
9
+ <?php if( ! defined( 'AAP_VERSION' ) ) :
10
+ ?><a href="<?php echo ADVADS_URL . 'add-ons/advanced-ads-pro/#utm_source=advanced-ads&utm_medium=link&utm_campaign=edit-created-injection-pro' ?>" target="_blank"><button type="button" class="advads-ad-injection-button button-primary advads-pro-link" style="background-image: url(<?php echo ADVADS_BASE_URL . 'admin/assets/img/placements/content-random.png'; ?>)"><?php _e( 'Show Pro Places', 'advanced-ads'); ?></button></a><?php
11
+ endif;
12
+ if( ! defined( 'AASADS_VERSION' ) ) :
13
+ ?><a href="<?php echo ADVADS_URL . 'add-ons/sticky-ads/#utm_source=advanced-ads&utm_medium=link&utm_campaign=edit-created-injection-sticky' ?>" target="_blank"><button type="button" class="advads-ad-injection-button button-primary advads-pro-link" style="background-image: url(<?php echo ADVADS_BASE_URL . 'admin/assets/img/placements/sticky-sidebar-left.png'; ?>)"><?php _e( 'Show Sticky Places', 'advanced-ads'); ?></button></a><?php
14
+ endif;
15
+ if( ! defined( 'AAPLDS_VERSION' ) ) :
16
+ ?><a href="<?php echo ADVADS_URL . 'add-ons/popup-and-layer-ads/#utm_source=advanced-ads&utm_medium=link&utm_campaign=edit-created-injection-layer' ?>" target="_blank"><button type="button" class="advads-ad-injection-button button-primary advads-pro-link" style="background-image: url(<?php echo ADVADS_BASE_URL . 'admin/assets/img/placements/layer.png'; ?>)"><?php _e( 'Show PopUp', 'advanced-ads'); ?></button></a><?php
17
+ endif;
18
+ ?><div class="clear"></div>
19
+ <br/>
20
+ <p><?php printf( __( 'Or use the shortcode %s to insert the ad into the content manually.', 'advanced-ads'), '<input id="advads-ad-injection-shortcode" onclick="this.select();" value="[the_ad id=\'' . $post->ID . '\']"/>' ); ?>
21
+ <?php printf( __( 'Learn more about your choices to display an ad in the <a href="%s" target="_blank">manual</a>.', 'advanced-ads' ), ADVADS_URL . 'manual/display-ads/#utm_source=advanced-ads&utm_medium=link&utm_campaign=edit-created' ); ?></p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  </div>
 
 
 
 
 
23
  <?php endif;
admin/views/placements.php CHANGED
@@ -36,14 +36,15 @@
36
  $_placement['type'] = 'default';
37
  $type_missing = true;
38
  }
39
- ?><tr>
40
  <td><?php
41
  if( $type_missing ) : // type is not given
42
  ?><p class="advads-error-message"><?php printf(__( 'Placement type "%s" is missing and was reset to "default".<br/>Please check if the responsible add-on is activated.', 'advanced-ads' ), $missed_type ); ?></p><?php
43
  elseif( isset($_placement['type'] )) :
44
  if( isset( $placement_types[$_placement['type']]['image'] )) :
45
  ?><img src="<?php echo $placement_types[$_placement['type']]['image'];
46
- ?>" title="<?php echo $placement_types[$_placement['type']]['title']; ?>"/><?php
 
47
  else :
48
  echo $placement_types[$_placement['type']]['title'];
49
  endif;
@@ -152,7 +153,7 @@ endif;
152
  if ( is_array( $placement_types ) ) {
153
  foreach ( $placement_types as $_key => $_place ) :
154
  if( isset( $_place['image'] )) :
155
- $image = '<img src="' . $_place['image'] . '"/>';
156
  else :
157
  $image = '<strong>' . $_place['title'] . '</strong><br/><p class="description">' . $_place['description'] . '</p>';
158
  endif;
36
  $_placement['type'] = 'default';
37
  $type_missing = true;
38
  }
39
+ ?><tr id="single-placement-<?php echo $_placement_slug; ?>">
40
  <td><?php
41
  if( $type_missing ) : // type is not given
42
  ?><p class="advads-error-message"><?php printf(__( 'Placement type "%s" is missing and was reset to "default".<br/>Please check if the responsible add-on is activated.', 'advanced-ads' ), $missed_type ); ?></p><?php
43
  elseif( isset($_placement['type'] )) :
44
  if( isset( $placement_types[$_placement['type']]['image'] )) :
45
  ?><img src="<?php echo $placement_types[$_placement['type']]['image'];
46
+ ?>" title="<?php echo $placement_types[$_placement['type']]['title'];
47
+ ?>" alt="<?php echo $placement_types[$_placement['type']]['title']; ?>"/><?php
48
  else :
49
  echo $placement_types[$_placement['type']]['title'];
50
  endif;
153
  if ( is_array( $placement_types ) ) {
154
  foreach ( $placement_types as $_key => $_place ) :
155
  if( isset( $_place['image'] )) :
156
+ $image = '<img src="' . $_place['image'] . '" alt="' . $_place['title'] . '"/>';
157
  else :
158
  $image = '<strong>' . $_place['title'] . '</strong><br/><p class="description">' . $_place['description'] . '</p>';
159
  endif;
admin/views/settings.php CHANGED
@@ -51,3 +51,26 @@ $setting_tabs = apply_filters('advanced-ads-setting-tabs', array(
51
  </ul>
52
 
53
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  </ul>
52
 
53
  </div>
54
+ <script>
55
+ // menu tabs
56
+ jQuery( '#advads-tabs' ).find( 'a' ).click(function () {
57
+ jQuery( '#advads-tabs' ).find( 'a' ).removeClass( 'nav-tab-active' );
58
+ jQuery( '.advads-tab' ).removeClass( 'active' );
59
+
60
+ var id = jQuery( this ).attr( 'id' ).replace( '-tab', '' );
61
+ jQuery( '#' + id ).addClass( 'active' );
62
+ jQuery( this ).addClass( 'nav-tab-active' );
63
+ });
64
+
65
+ // activate specific or first tab
66
+
67
+ var active_tab = window.location.hash.replace( '#top#', '' );
68
+ if (active_tab == '' || active_tab == '#_=_') {
69
+ active_tab = jQuery( '.advads-tab' ).attr( 'id' );
70
+ }
71
+ jQuery( '#' + active_tab ).addClass( 'active' );
72
+ jQuery( '#' + active_tab + '-tab' ).addClass( 'nav-tab-active' );
73
+ jQuery( '.nav-tab-active' ).click();
74
+ // set all tab urls
75
+ advads_set_tab_hashes();
76
+ </script>
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.2.1
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.2.1' );
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.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.3' );
43
 
44
  /*----------------------------------------------------------------------------*
45
  * Autoloading, modules and functions
classes/ad-model.php CHANGED
@@ -37,8 +37,8 @@ class Advanced_Ads_Model {
37
  public function __construct(wpdb $wpdb)
38
  {
39
  $this->db = $wpdb;
40
- }
41
-
42
  /**
43
  *
44
  * @return array
37
  public function __construct(wpdb $wpdb)
38
  {
39
  $this->db = $wpdb;
40
+ }
41
+
42
  /**
43
  *
44
  * @return array
classes/ad.php CHANGED
@@ -456,7 +456,10 @@ class Advanced_Ads_Ad {
456
  $content = $this->content;
457
 
458
  // load ad type specific parameter filter
459
- $content = $this->type_obj->sanitize_content( $content );
 
 
 
460
  // apply a custom filter by ad type
461
  $content = apply_filters( 'advanced-ads-pre-ad-save-' . $this->type, $content );
462
 
456
  $content = $this->content;
457
 
458
  // load ad type specific parameter filter
459
+ // @todo this is just a hotfix for type_obj not set, yet the cause is still unknown
460
+ if(is_object( $this->type_obj )){
461
+ $content = $this->type_obj->sanitize_content( $content );
462
+ }
463
  // apply a custom filter by ad type
464
  $content = apply_filters( 'advanced-ads-pre-ad-save-' . $this->type, $content );
465
 
classes/ad_ajax_callbacks.php CHANGED
@@ -32,6 +32,7 @@ class Advanced_Ads_Ad_Ajax_Callbacks {
32
  add_action( 'wp_ajax_advads-deactivate-license', array( $this, 'deactivate_license' ) );
33
  add_action( 'wp_ajax_advads-adblock-rebuild-assets', array( $this, 'adblock_rebuild_assets' ) );
34
  add_action( 'wp_ajax_advads-post-search', array( $this, 'post_search' ) );
 
35
 
36
  }
37
 
@@ -48,7 +49,7 @@ class Advanced_Ads_Ad_Ajax_Callbacks {
48
  $types = Advanced_Ads::get_instance()->ad_types;
49
  $type = $_REQUEST['ad_type'];
50
  $ad_id = absint( $_REQUEST['ad_id'] );
51
- if ( empty($ad_id) ) { wp_die(); }
52
 
53
  $ad = new Advanced_Ads_Ad( $ad_id );
54
 
@@ -58,7 +59,7 @@ class Advanced_Ads_Ad_Ajax_Callbacks {
58
  include ADVADS_BASE_PATH . 'admin/views/ad-parameters-size.php';
59
  }
60
 
61
- wp_die();
62
 
63
  }
64
 
@@ -135,7 +136,7 @@ class Advanced_Ads_Ad_Ajax_Callbacks {
135
  $taxonomy = $_POST['tax'];
136
  $args = array('hide_empty' => false, 'number' => 20);
137
 
138
- if ( !isset( $_POST['search'] ) || $_POST['search'] === '' ) { wp_die(); }
139
 
140
  // if search is an id, search for the term id, else do a full text search
141
  if(0 !== absint($_POST['search'])){
@@ -148,7 +149,7 @@ class Advanced_Ads_Ad_Ajax_Callbacks {
148
  // $results = _WP_Editors::wp_link_query( $args );
149
  echo wp_json_encode( $results );
150
  echo "\n";
151
- wp_die();
152
  }
153
 
154
  /**
@@ -233,7 +234,7 @@ class Advanced_Ads_Ad_Ajax_Callbacks {
233
  }
234
 
235
  Advanced_Ads_Ad_Blocker_Admin::get_instance()->add_asset_rebuild_form();
236
- exit();
237
  }
238
 
239
  /**
@@ -249,7 +250,68 @@ class Advanced_Ads_Ad_Ajax_Callbacks {
249
  add_filter( 'posts_search', array( 'Advanced_Ads_Display_Conditions', 'modify_post_search_sql' ) );
250
 
251
  wp_ajax_wp_link_ajax();
252
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
253
  }
254
 
255
  }
32
  add_action( 'wp_ajax_advads-deactivate-license', array( $this, 'deactivate_license' ) );
33
  add_action( 'wp_ajax_advads-adblock-rebuild-assets', array( $this, 'adblock_rebuild_assets' ) );
34
  add_action( 'wp_ajax_advads-post-search', array( $this, 'post_search' ) );
35
+ add_action( 'wp_ajax_advads-ad-injection-content', array( $this, 'inject_placement' ) );
36
 
37
  }
38
 
49
  $types = Advanced_Ads::get_instance()->ad_types;
50
  $type = $_REQUEST['ad_type'];
51
  $ad_id = absint( $_REQUEST['ad_id'] );
52
+ if ( empty($ad_id) ) { die(); }
53
 
54
  $ad = new Advanced_Ads_Ad( $ad_id );
55
 
59
  include ADVADS_BASE_PATH . 'admin/views/ad-parameters-size.php';
60
  }
61
 
62
+ die();
63
 
64
  }
65
 
136
  $taxonomy = $_POST['tax'];
137
  $args = array('hide_empty' => false, 'number' => 20);
138
 
139
+ if ( !isset( $_POST['search'] ) || $_POST['search'] === '' ) { die(); }
140
 
141
  // if search is an id, search for the term id, else do a full text search
142
  if(0 !== absint($_POST['search'])){
149
  // $results = _WP_Editors::wp_link_query( $args );
150
  echo wp_json_encode( $results );
151
  echo "\n";
152
+ die();
153
  }
154
 
155
  /**
234
  }
235
 
236
  Advanced_Ads_Ad_Blocker_Admin::get_instance()->add_asset_rebuild_form();
237
+ die();
238
  }
239
 
240
  /**
250
  add_filter( 'posts_search', array( 'Advanced_Ads_Display_Conditions', 'modify_post_search_sql' ) );
251
 
252
  wp_ajax_wp_link_ajax();
253
+ }
254
+
255
+ /**
256
+ * inject an ad and a placement
257
+ *
258
+ * @since 1.7.3
259
+ */
260
+ public function inject_placement(){
261
+ if ( ! current_user_can( Advanced_Ads_Plugin::user_cap( 'advanced_ads_edit_ads') ) ) {
262
+ return;
263
+ }
264
+
265
+ $placements = Advanced_Ads::get_instance()->get_model()->get_ad_placements_array();
266
+
267
+ $type = esc_attr( $_REQUEST['placement_type'] );
268
+ $ad_id = absint( $_REQUEST['ad_id'] );
269
+ if ( empty($ad_id) ) { die(); }
270
+
271
+ $item = 'ad_' . $ad_id;
272
+
273
+ $options = array();
274
+
275
+ // check type
276
+ $placement_types = Advanced_Ads_Placements::get_placement_types();
277
+ if( ! isset( $placement_types[ $type ] ) ){
278
+ die();
279
+ }
280
+
281
+ $title = $placement_types[ $type ]['title'];
282
+
283
+ $new_placement = array(
284
+ 'type' => $type,
285
+ 'item' => $item,
286
+ 'name' => $title,
287
+ );
288
+
289
+ // set content specific options
290
+ if( 'post_content' === $type ){
291
+ $index = isset( $_REQUEST['options']['index'] ) ? absint( $_REQUEST['options']['index'] ) : 1;
292
+ $new_placement['options'] = array(
293
+ 'position' => 'after',
294
+ 'index' => $index,
295
+ 'tag' => 'p'
296
+ );
297
+ }
298
+
299
+ $i = 1;
300
+ // try to save placement until we found an empty slug
301
+ do {
302
+ $slug = Advanced_Ads_Placements::save_new_placement( $new_placement );
303
+ $new_placement['name'] = $title . ' ' . $i;
304
+ $i ++;
305
+ if( $i === 100 ){ // prevent endless loop, just in case
306
+ Advanced_Ads::log( 'endless loop when injecting placement' );
307
+ break;
308
+ }
309
+ } while ( ! $slug );
310
+
311
+ // return potential slug
312
+ echo $slug;
313
+
314
+ die();
315
  }
316
 
317
  }
classes/ad_group.php CHANGED
@@ -251,7 +251,7 @@ class Advanced_Ads_Group {
251
  $ordered_ad_ids = $this->shuffle_ads($ads, $weights);
252
  }
253
 
254
- return apply_filters( 'advanced-ads-group-output-ad-ids', $ordered_ad_ids, $this->type, $ads, $weights );
255
  }
256
 
257
  /**
@@ -336,7 +336,7 @@ class Advanced_Ads_Group {
336
  * @param arr $weights ad weights
337
  * @return arr $shuffled_ads shuffled array with ad ids
338
  */
339
- private function shuffle_ads($ads = array(), $weights) {
340
 
341
  // get a random ad for every ad there is
342
  $shuffled_ads = array();
251
  $ordered_ad_ids = $this->shuffle_ads($ads, $weights);
252
  }
253
 
254
+ return apply_filters( 'advanced-ads-group-output-ad-ids', $ordered_ad_ids, $this->type, $ads, $weights, $this );
255
  }
256
 
257
  /**
336
  * @param arr $weights ad weights
337
  * @return arr $shuffled_ads shuffled array with ad ids
338
  */
339
+ public function shuffle_ads($ads = array(), $weights) {
340
 
341
  // get a random ad for every ad there is
342
  $shuffled_ads = array();
classes/ad_placements.php CHANGED
@@ -97,7 +97,7 @@ class Advanced_Ads_Placements {
97
  *
98
  * @since 1.1.0
99
  * @param array $new_placement
100
- * @return mixed true if saved; error message if not
101
  */
102
  public static function save_new_placement($new_placement) {
103
  // load placements // -TODO use model
@@ -123,11 +123,18 @@ class Advanced_Ads_Placements {
123
  'name' => $new_placement['name'],
124
  'item' => $new_placement['item']
125
  );
 
 
 
 
 
 
 
126
 
127
  // save array
128
  update_option( 'advads-ads-placements', $placements );
129
 
130
- return true;
131
  }
132
 
133
  /**
@@ -409,9 +416,11 @@ class Advanced_Ads_Placements {
409
  // convert HTML to XML!
410
  $adDom = new DOMDocument('1.0', $wpCharset);
411
  libxml_use_internal_errors(true);
412
- // replace `</sc` in ad content when placed within `document.write()` to prevent code from breaking
413
  // source for this regex: http://stackoverflow.com/questions/17852537/preg-replace-only-specific-part-of-string
414
- $adContent = preg_replace('#(document.write[^<^)]+)</sc(.*)#', '$1<\/sc$2', $adContent);
 
 
415
  $adDom->loadHtml('<!DOCTYPE html><html><meta http-equiv="Content-Type" content="text/html; charset=' . $wpCharset . '" /><body>' . $adContent);
416
  // log errors
417
  if( libxml_get_last_error() instanceof LibXMLError ){
97
  *
98
  * @since 1.1.0
99
  * @param array $new_placement
100
+ * @return mixed slug if saved; false if not
101
  */
102
  public static function save_new_placement($new_placement) {
103
  // load placements // -TODO use model
123
  'name' => $new_placement['name'],
124
  'item' => $new_placement['item']
125
  );
126
+
127
+ // add index options
128
+ if ( isset($new_placement['options']) ){
129
+ $placements[$new_placement['slug']]['options'] = $new_placement['options'];
130
+ if ( isset($placements[$new_placement['slug']]['options']['index']) ) {
131
+ $placements[$new_placement['slug']]['options']['index'] = absint( $placements[$new_placement['slug']]['options']['index'] ); }
132
+ }
133
 
134
  // save array
135
  update_option( 'advads-ads-placements', $placements );
136
 
137
+ return $new_placement['slug'];
138
  }
139
 
140
  /**
416
  // convert HTML to XML!
417
  $adDom = new DOMDocument('1.0', $wpCharset);
418
  libxml_use_internal_errors(true);
419
+ // replace `</` with `<\/` in ad content when placed within `document.write()` to prevent code from breaking
420
  // source for this regex: http://stackoverflow.com/questions/17852537/preg-replace-only-specific-part-of-string
421
+ $adContent = preg_replace('#(document.write.+)</(.*)#', '$1<\/$2', $adContent); // escapes all closing html tags
422
+ // $adContent = preg_replace('#(document.write.+)</sc(.*)#', '$1<\/sc$2', $adContent); // only escapes closing </script> tags
423
+ // $adContent = preg_replace('#(document.write[^<^)]+)</sc(.*)#', '$1<\/sc$2', $adContent); // too restrict, doesn’t work when beginning <script> tag is in the same line
424
  $adDom->loadHtml('<!DOCTYPE html><html><meta http-equiv="Content-Type" content="text/html; charset=' . $wpCharset . '" /><body>' . $adContent);
425
  // log errors
426
  if( libxml_get_last_error() instanceof LibXMLError ){
languages/advanced-ads-de_DE.po CHANGED
@@ -1332,7 +1332,7 @@ msgstr "Sie finden die Einstellungen für Layer und Pop-Ups unten."
1332
  #, php-format
1333
  msgid ""
1334
  "Learn more about your choices to display an ad in the <a href=\"%s\" "
1335
- "target=\"_blank\">manual</a>"
1336
  msgstr ""
1337
  "Erfahren Sie mehr über die Möglichkeiten zur Einbindung von Anzeigen in der "
1338
  "<a href=\"%s\" target=\"_blank\">Anleitung (engl.)</a>."
1332
  #, php-format
1333
  msgid ""
1334
  "Learn more about your choices to display an ad in the <a href=\"%s\" "
1335
+ "target=\"_blank\">manual</a>."
1336
  msgstr ""
1337
  "Erfahren Sie mehr über die Möglichkeiten zur Einbindung von Anzeigen in der "
1338
  "<a href=\"%s\" target=\"_blank\">Anleitung (engl.)</a>."
languages/advanced-ads-es_ES.po CHANGED
@@ -1415,10 +1415,10 @@ msgstr ""
1415
  #, php-format
1416
  msgid ""
1417
  "Learn more about your choices to display an ad in the <a href=\"%s\" "
1418
- "target=\"_blank\">manual</a>"
1419
  msgstr ""
1420
  "Aprender más acerca de tus opciones para mostrar un anuncio en el <a "
1421
- "href=\"%s\" target=\"_blank\">manual</a>"
1422
 
1423
  #: ../admin/views/ad-info.php:2
1424
  #, php-format
1415
  #, php-format
1416
  msgid ""
1417
  "Learn more about your choices to display an ad in the <a href=\"%s\" "
1418
+ "target=\"_blank\">manual</a>."
1419
  msgstr ""
1420
  "Aprender más acerca de tus opciones para mostrar un anuncio en el <a "
1421
+ "href=\"%s\" target=\"_blank\">manual</a>."
1422
 
1423
  #: ../admin/views/ad-info.php:2
1424
  #, php-format
languages/advanced-ads-fr_FR.po CHANGED
@@ -1365,10 +1365,10 @@ msgstr ""
1365
  #, php-format
1366
  msgid ""
1367
  "Learn more about your choices to display an ad in the <a href=\"%s\" "
1368
- "target=\"_blank\">manual</a>"
1369
  msgstr ""
1370
  "En savoir plus sur les choix pour afficher une pub dans le <a href=\"%s\" "
1371
- "target=\"_blank\">Manuel</a>"
1372
 
1373
  #: ../admin/views/ad-info.php:2
1374
  #, php-format
1365
  #, php-format
1366
  msgid ""
1367
  "Learn more about your choices to display an ad in the <a href=\"%s\" "
1368
+ "target=\"_blank\">manual</a>."
1369
  msgstr ""
1370
  "En savoir plus sur les choix pour afficher une pub dans le <a href=\"%s\" "
1371
+ "target=\"_blank\">Manuel</a>."
1372
 
1373
  #: ../admin/views/ad-info.php:2
1374
  #, php-format
languages/advanced-ads-it_IT.po CHANGED
@@ -918,7 +918,7 @@ msgstr ""
918
  #, php-format
919
  msgid ""
920
  "Learn more about your choices to display an ad in the <a href=\"%s\" "
921
- "target=\"_blank\">manual</a>"
922
  msgstr ""
923
 
924
  #: ../admin/views/ad-info.php:5
918
  #, php-format
919
  msgid ""
920
  "Learn more about your choices to display an ad in the <a href=\"%s\" "
921
+ "target=\"_blank\">manual</a>."
922
  msgstr ""
923
 
924
  #: ../admin/views/ad-info.php:5
languages/advanced-ads-nl_NL.po CHANGED
@@ -1756,7 +1756,7 @@ msgstr "U vind de instellingen voor de Laag en Pop-up effecten hieronder."
1756
  #, php-format
1757
  msgid ""
1758
  "Learn more about your choices to display an ad in the <a href=\"%s\" "
1759
- "target=\"_blank\">manual</a>"
1760
  msgstr ""
1761
  "Om meer te weten te komen over de mogelijkheden om uw advertenties te tonen "
1762
  "kunt u de <a href=\"%s\" target=\"_blank\">handleiding</a> raadplegen."
1756
  #, php-format
1757
  msgid ""
1758
  "Learn more about your choices to display an ad in the <a href=\"%s\" "
1759
+ "target=\"_blank\">manual</a>."
1760
  msgstr ""
1761
  "Om meer te weten te komen over de mogelijkheden om uw advertenties te tonen "
1762
  "kunt u de <a href=\"%s\" target=\"_blank\">handleiding</a> raadplegen."
languages/advanced-ads-pt_BR.po CHANGED
@@ -901,7 +901,7 @@ msgstr ""
901
  #, php-format
902
  msgid ""
903
  "Learn more about your choices to display an ad in the <a href=\"%s\" "
904
- "target=\"_blank\">manual</a>"
905
  msgstr ""
906
 
907
  #: ../admin/views/ad-info.php:5
901
  #, php-format
902
  msgid ""
903
  "Learn more about your choices to display an ad in the <a href=\"%s\" "
904
+ "target=\"_blank\">manual</a>."
905
  msgstr ""
906
 
907
  #: ../admin/views/ad-info.php:5
languages/advanced-ads.po CHANGED
@@ -1147,7 +1147,7 @@ msgstr ""
1147
  #, php-format
1148
  msgid ""
1149
  "Learn more about your choices to display an ad in the <a href=\"%s\" "
1150
- "target=\"_blank\">manual</a>"
1151
  msgstr ""
1152
 
1153
  #: ../admin/views/ad-info.php:2
1147
  #, php-format
1148
  msgid ""
1149
  "Learn more about your choices to display an ad in the <a href=\"%s\" "
1150
+ "target=\"_blank\">manual</a>."
1151
  msgstr ""
1152
 
1153
  #: ../admin/views/ad-info.php:2
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: Tue Apr 26 2016 18:43:26 GMT+0200 (CEST)\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"
@@ -55,273 +55,291 @@ msgstr ""
55
  msgid "and"
56
  msgstr ""
57
 
58
- #: ../admin/class-advanced-ads-admin.php:278
 
 
 
 
59
  msgid "Overview"
60
  msgstr ""
61
 
62
- #: ../admin/class-advanced-ads-admin.php:282 ../admin/class-advanced-ads-admin.
63
- #: php:282 ../admin/includes/class-shortcode-creator.php:77 ../admin/views/ad-
64
  #: group-list-form-row.php:28 ../admin/views/ad-group-list-header.php:5 ..
65
- #: /admin/views/placements.php:80 ../admin/views/placements.php:184 ..
66
- #: /classes/widget.php:89 ../public/class-advanced-ads.php:588
67
  msgid "Ads"
68
  msgstr ""
69
 
70
- #: ../admin/class-advanced-ads-admin.php:288 ../public/class-advanced-ads.php:591
71
  msgid "Add New Ad"
72
  msgstr ""
73
 
74
- #: ../admin/class-advanced-ads-admin.php:288 ../public/class-advanced-ads.php:590
75
- #: ../public/class-advanced-ads.php:594
76
  msgid "New Ad"
77
  msgstr ""
78
 
79
- #: ../admin/class-advanced-ads-admin.php:293 ../admin/includes/class-shortcode-
80
- #: creator.php:84 ../admin/views/placements.php:73 ../admin/views/placements.php:
81
- #: 177 ../classes/widget.php:82
82
  msgid "Ad Groups"
83
  msgstr ""
84
 
85
- #: ../admin/class-advanced-ads-admin.php:293 ../public/class-advanced-ads.php:561
86
  msgid "Groups"
87
  msgstr ""
88
 
89
- #: ../admin/class-advanced-ads-admin.php:298
90
  msgid "Ad Placements"
91
  msgstr ""
92
 
93
- #: ../admin/class-advanced-ads-admin.php:298 ../admin/includes/class-shortcode-
94
  #: creator.php:91 ../admin/views/placements.php:18 ../classes/widget.php:75
95
  msgid "Placements"
96
  msgstr ""
97
 
98
- #: ../admin/class-advanced-ads-admin.php:302
99
  msgid "Advanced Ads Settings"
100
  msgstr ""
101
 
102
- #: ../admin/class-advanced-ads-admin.php:302 ../admin/class-advanced-ads-admin.
103
- #: php:550 ../admin/views/debug.php:10
104
  msgid "Settings"
105
  msgstr ""
106
 
107
- #: ../admin/class-advanced-ads-admin.php:305
108
  msgid "Advanced Ads Debugging"
109
  msgstr ""
110
 
111
- #: ../admin/class-advanced-ads-admin.php:305
112
  msgid "Debug"
113
  msgstr ""
114
 
115
- #: ../admin/class-advanced-ads-admin.php:309 ../admin/class-advanced-ads-admin.
116
- #: php:309
117
  msgid "Advanced Ads Intro"
118
  msgstr ""
119
 
120
- #: ../admin/class-advanced-ads-admin.php:313 ../admin/class-advanced-ads-admin.
121
- #: php:313 ../admin/class-advanced-ads-admin.php:1987
122
  msgid "Support"
123
  msgstr ""
124
 
125
- #: ../admin/class-advanced-ads-admin.php:425
126
  msgid "Please enter a message"
127
  msgstr ""
128
 
129
- #: ../admin/class-advanced-ads-admin.php:435
130
  #, php-format
131
  msgid "Email could NOT be sent. Please contact us directly at %s."
132
  msgstr ""
133
 
134
- #: ../admin/class-advanced-ads-admin.php:438
135
  msgid "Please enter a valid email address"
136
  msgstr ""
137
 
138
- #: ../admin/class-advanced-ads-admin.php:464 ../admin/class-advanced-ads-admin.
139
- #: php:491
140
  msgid "Sorry, you are not allowed to access this feature."
141
  msgstr ""
142
 
143
- #: ../admin/class-advanced-ads-admin.php:477
144
  msgid ""
145
  "You attempted to edit an ad group that doesn&#8217;t exist. Perhaps it was "
146
  "deleted?"
147
  msgstr ""
148
 
149
- #: ../admin/class-advanced-ads-admin.php:592
150
  msgid "Ad Type"
151
  msgstr ""
152
 
153
- #: ../admin/class-advanced-ads-admin.php:595
154
  msgid "Ad Parameters"
155
  msgstr ""
156
 
157
- #: ../admin/class-advanced-ads-admin.php:598
158
  msgid "Layout / Output"
159
  msgstr ""
160
 
161
- #: ../admin/class-advanced-ads-admin.php:601
162
  msgid "Display Conditions"
163
  msgstr ""
164
 
165
- #: ../admin/class-advanced-ads-admin.php:604
166
  msgid "Visitor Conditions"
167
  msgstr ""
168
 
169
- #: ../admin/class-advanced-ads-admin.php:829 ../admin/class-advanced-ads-admin.
170
- #: php:830
 
 
 
 
 
 
 
 
 
 
171
  msgid "Ad updated."
172
  msgstr ""
173
 
174
  #. translators: %s: date and time of the revision
175
- #: ../admin/class-advanced-ads-admin.php:832
176
  #, php-format
177
  msgid "Ad restored to revision from %s"
178
  msgstr ""
179
 
180
- #: ../admin/class-advanced-ads-admin.php:833
181
  msgid "Ad published."
182
  msgstr ""
183
 
184
- #: ../admin/class-advanced-ads-admin.php:834
185
  msgid "Ad saved."
186
  msgstr ""
187
 
188
- #: ../admin/class-advanced-ads-admin.php:835
189
  msgid "Ad submitted."
190
  msgstr ""
191
 
192
- #: ../admin/class-advanced-ads-admin.php:837
193
  #, php-format
194
  msgid "Ad scheduled for: <strong>%1$s</strong>."
195
  msgstr ""
196
 
197
  #. translators: Publish box date format, see http://php.net/date
198
- #: ../admin/class-advanced-ads-admin.php:839
199
  msgid "M j, Y @ G:i"
200
  msgstr ""
201
 
202
- #: ../admin/class-advanced-ads-admin.php:841
203
  msgid "Ad draft updated."
204
  msgstr ""
205
 
206
- #: ../admin/class-advanced-ads-admin.php:860
207
  #, php-format
208
  msgid "%s ad updated."
209
  msgid_plural "%s ads updated."
210
  msgstr[0] ""
211
  msgstr[1] ""
212
 
213
- #: ../admin/class-advanced-ads-admin.php:861
214
  #, php-format
215
  msgid "%s ad not updated, somebody is editing it."
216
  msgid_plural "%s ads not updated, somebody is editing them."
217
  msgstr[0] ""
218
  msgstr[1] ""
219
 
220
- #: ../admin/class-advanced-ads-admin.php:862
221
  #, php-format
222
  msgid "%s ad permanently deleted."
223
  msgid_plural "%s ads permanently deleted."
224
  msgstr[0] ""
225
  msgstr[1] ""
226
 
227
- #: ../admin/class-advanced-ads-admin.php:863
228
  #, php-format
229
  msgid "%s ad moved to the Trash."
230
  msgid_plural "%s ads moved to the Trash."
231
  msgstr[0] ""
232
  msgstr[1] ""
233
 
234
- #: ../admin/class-advanced-ads-admin.php:864
235
  #, php-format
236
  msgid "%s ad restored from the Trash."
237
  msgid_plural "%s ads restored from the Trash."
238
  msgstr[0] ""
239
  msgstr[1] ""
240
 
241
- #: ../admin/class-advanced-ads-admin.php:899 ../admin/views/settings.php:12
242
  msgid "General"
243
  msgstr ""
244
 
245
- #: ../admin/class-advanced-ads-admin.php:911 ../admin/class-advanced-ads-admin.
246
- #: php:1015
247
  msgid "Licenses"
248
  msgstr ""
249
 
250
- #: ../admin/class-advanced-ads-admin.php:922
251
  msgid "Disable ads"
252
  msgstr ""
253
 
254
- #: ../admin/class-advanced-ads-admin.php:930
255
  msgid "Hide ads for logged in users"
256
  msgstr ""
257
 
258
- #: ../admin/class-advanced-ads-admin.php:938
259
  msgid "Use advanced JavaScript"
260
  msgstr ""
261
 
262
- #: ../admin/class-advanced-ads-admin.php:946
263
  msgid "Unlimited ad injection"
264
  msgstr ""
265
 
266
- #: ../admin/class-advanced-ads-admin.php:954
267
  msgid "Priority of content injection filter"
268
  msgstr ""
269
 
270
- #: ../admin/class-advanced-ads-admin.php:962
271
  msgid "Hide ads from bots"
272
  msgstr ""
273
 
274
- #: ../admin/class-advanced-ads-admin.php:970
275
  msgid "Disable notices"
276
  msgstr ""
277
 
278
- #: ../admin/class-advanced-ads-admin.php:978
279
  msgid "ID prefix"
280
  msgstr ""
281
 
282
- #: ../admin/class-advanced-ads-admin.php:986
283
  msgid "Remove Widget ID"
284
  msgstr ""
285
 
286
- #: ../admin/class-advanced-ads-admin.php:994
287
  msgid "Allow editors to manage ads"
288
  msgstr ""
289
 
290
- #: ../admin/class-advanced-ads-admin.php:1071
 
 
 
 
291
  msgid "(display to all)"
292
  msgstr ""
293
 
294
- #: ../admin/class-advanced-ads-admin.php:1072
295
  msgid "Subscriber"
296
  msgstr ""
297
 
298
- #: ../admin/class-advanced-ads-admin.php:1073
299
  msgid "Contributor"
300
  msgstr ""
301
 
302
- #: ../admin/class-advanced-ads-admin.php:1074
303
  msgid "Author"
304
  msgstr ""
305
 
306
- #: ../admin/class-advanced-ads-admin.php:1075
307
  msgid "Editor"
308
  msgstr ""
309
 
310
- #: ../admin/class-advanced-ads-admin.php:1076
311
  msgid "Admin"
312
  msgstr ""
313
 
314
- #: ../admin/class-advanced-ads-admin.php:1084
315
  msgid "Choose the lowest role a user must have in order to not see any ads."
316
  msgstr ""
317
 
318
- #: ../admin/class-advanced-ads-admin.php:1098
319
  msgid ""
320
  "<strong>notice: </strong>the file is currently enabled by an add-on that "
321
  "needs it."
322
  msgstr ""
323
 
324
- #: ../admin/class-advanced-ads-admin.php:1101
325
  #, php-format
326
  msgid ""
327
  "Enable advanced JavaScript functions (<a href=\"%s\" target=\"_blank\">here</a>)."
@@ -329,7 +347,7 @@ msgid ""
329
  "from this file."
330
  msgstr ""
331
 
332
- #: ../admin/class-advanced-ads-admin.php:1114
333
  msgid ""
334
  "Some plugins and themes trigger ad injection where it shouldn’t happen. "
335
  "Therefore, Advanced Ads ignores injected placements on non-singular pages "
@@ -338,19 +356,19 @@ msgid ""
338
  "on archive pages AT YOUR OWN RISK."
339
  msgstr ""
340
 
341
- #: ../admin/class-advanced-ads-admin.php:1130
342
  msgid ""
343
  "Please check your post content. A priority of 10 and below might cause "
344
  "issues (wpautop function might run twice)."
345
  msgstr ""
346
 
347
- #: ../admin/class-advanced-ads-admin.php:1132
348
  msgid ""
349
  "Play with this value in order to change the priority of the injected ads "
350
  "compared to other auto injected elements in the post content."
351
  msgstr ""
352
 
353
- #: ../admin/class-advanced-ads-admin.php:1146
354
  #, php-format
355
  msgid ""
356
  "Hide ads from crawlers, bots and empty user agents. Also prevents counting "
@@ -358,135 +376,144 @@ msgid ""
358
  "Add-On</a>."
359
  msgstr ""
360
 
361
- #: ../admin/class-advanced-ads-admin.php:1147
362
  msgid ""
363
  "Disabling this option only makes sense if your ads contain content you want "
364
  "to display to bots (like search engines) or your site is cached and bots "
365
  "could create a cached version without the ads."
366
  msgstr ""
367
 
368
- #: ../admin/class-advanced-ads-admin.php:1160
369
  msgid ""
370
  "Disable internal notices like tips, tutorials, email newsletters and update "
371
  "notices. Disabling notices is recommended if you run multiple blogs with "
372
  "Advanced Ads already."
373
  msgstr ""
374
 
375
- #: ../admin/class-advanced-ads-admin.php:1177
376
  msgid ""
377
  "Prefix of class or id attributes in the frontend. Change it if you don’t "
378
  "want <strong>ad blockers</strong> to mark these blocks as ads.<br/>You might "
379
  "need to <strong>rewrite css rules afterwards</strong>."
380
  msgstr ""
381
 
382
- #: ../admin/class-advanced-ads-admin.php:1198
383
  msgid ""
384
  "Remove the ID attribute from widgets in order to not make them an easy "
385
  "target of ad blockers."
386
  msgstr ""
387
 
388
- #: ../admin/class-advanced-ads-admin.php:1201
389
  msgid ""
390
  "If checked, the Advanced Ads Widget will not work with the fixed option of "
391
  "the <strong>Q2W3 Fixed Widget</strong> plugin."
392
  msgstr ""
393
 
394
- #: ../admin/class-advanced-ads-admin.php:1223
395
  msgid "Allow editors to also manage and publish ads."
396
  msgstr ""
397
 
398
- #: ../admin/class-advanced-ads-admin.php:1224
399
  #, php-format
400
  msgid ""
401
  "You can assign different ad-related roles on a user basis with <a href=\"%s\" "
402
  "target=\"_blank\">Advanced Ads Pro</a>."
403
  msgstr ""
404
 
405
- #: ../admin/class-advanced-ads-admin.php:1281
 
 
 
 
 
 
 
 
 
406
  msgid "Ad Details"
407
  msgstr ""
408
 
409
- #: ../admin/class-advanced-ads-admin.php:1282
410
  msgid "Ad Planning"
411
  msgstr ""
412
 
413
- #: ../admin/class-advanced-ads-admin.php:1417
414
  msgid "Ad Settings"
415
  msgstr ""
416
 
417
- #: ../admin/class-advanced-ads-admin.php:1496 ../admin/views/overview.php:23
418
  msgid "Ads Dashboard"
419
  msgstr ""
420
 
421
- #: ../admin/class-advanced-ads-admin.php:1508
422
  msgid "From the ad optimization universe"
423
  msgstr ""
424
 
425
- #: ../admin/class-advanced-ads-admin.php:1517
426
  msgid "Advanced Ads Tutorials"
427
  msgstr ""
428
 
429
- #: ../admin/class-advanced-ads-admin.php:1528
430
  #, php-format
431
  msgid "%d ads – <a href=\"%s\">manage</a> - <a href=\"%s\">new</a>"
432
  msgstr ""
433
 
434
- #: ../admin/class-advanced-ads-admin.php:1539
435
  msgid "plugin manual and homepage"
436
  msgstr ""
437
 
438
- #: ../admin/class-advanced-ads-admin.php:1546
439
  msgid "Get the tutorial via email"
440
  msgstr ""
441
 
442
- #: ../admin/class-advanced-ads-admin.php:1553
443
  msgid "Get AdSense tips via email"
444
  msgstr ""
445
 
446
- #: ../admin/class-advanced-ads-admin.php:1643
447
  #, php-format
448
  msgid "time of %s"
449
  msgstr ""
450
 
451
- #: ../admin/class-advanced-ads-admin.php:1679
452
  msgid "Error while trying to register the license. Please contact support."
453
  msgstr ""
454
 
455
- #: ../admin/class-advanced-ads-admin.php:1684 ../admin/views/setting-license.php:37
456
  msgid "Please enter a valid license key"
457
  msgstr ""
458
 
459
- #: ../admin/class-advanced-ads-admin.php:1710
460
  msgid "License couldn’t be activated. Please try again later."
461
  msgstr ""
462
 
463
- #: ../admin/class-advanced-ads-admin.php:1722
464
  msgid "This is the bundle license key."
465
  msgstr ""
466
 
467
- #: ../admin/class-advanced-ads-admin.php:1723
468
  msgid "This is not the correct key for this add-on."
469
  msgstr ""
470
 
471
- #: ../admin/class-advanced-ads-admin.php:1724
472
  msgid "There are no activations left."
473
  msgstr ""
474
 
475
- #: ../admin/class-advanced-ads-admin.php:1733
476
  #, php-format
477
  msgid "License is invalid. Reason: %s"
478
  msgstr ""
479
 
480
- #: ../admin/class-advanced-ads-admin.php:1787
481
  msgid "Error while trying to disable the license. Please contact support."
482
  msgstr ""
483
 
484
- #: ../admin/class-advanced-ads-admin.php:1810 ../admin/class-advanced-ads-admin.
485
- #: php:1827
486
  msgid "License couldn’t be deactivated. Please try again later."
487
  msgstr ""
488
 
489
- #: ../admin/class-advanced-ads-admin.php:1991
490
  msgid "Add-Ons"
491
  msgstr ""
492
 
@@ -543,7 +570,7 @@ msgid "Display ads with the highest ad weight first"
543
  msgstr ""
544
 
545
  #: ../admin/includes/class-ad-groups-list.php:275 ../public/class-advanced-ads.
546
- #: php:592
547
  msgid "Edit"
548
  msgstr ""
549
 
@@ -781,8 +808,7 @@ msgstr ""
781
  msgid "Get the Geo Targeting add-on"
782
  msgstr ""
783
 
784
- #: ../admin/includes/class-overview-widgets.php:221 ../admin/views/ad-info-top.
785
- #: php:30
786
  msgid ""
787
  "Fix ads to the browser while users are scrolling and create best performing "
788
  "anchor ads."
@@ -796,13 +822,11 @@ msgstr ""
796
  msgid "build anchor ads not only on mobile devices"
797
  msgstr ""
798
 
799
- #: ../admin/includes/class-overview-widgets.php:225 ../admin/views/ad-info-top.
800
- #: php:32
801
  msgid "Get the Sticky add-on"
802
  msgstr ""
803
 
804
- #: ../admin/includes/class-overview-widgets.php:233 ../admin/views/ad-info-top.
805
- #: php:37
806
  msgid "Display content and ads in layers and popups on custom events."
807
  msgstr ""
808
 
@@ -818,8 +842,7 @@ msgstr ""
818
  msgid "allow users to close the popup"
819
  msgstr ""
820
 
821
- #: ../admin/includes/class-overview-widgets.php:238 ../admin/views/ad-info-top.
822
- #: php:39
823
  msgid "Get the PopUp and Layer add-on"
824
  msgstr ""
825
 
@@ -935,11 +958,6 @@ msgstr ""
935
  msgid "Set Display Conditions to allow or hide the ad on specific pages."
936
  msgstr ""
937
 
938
- #: ../admin/views/ad-display-metabox.php:6 ../admin/views/ad-output-metabox.php:
939
- #: 46 ../admin/views/ad-visitor-metabox.php:4
940
- msgid "Manual"
941
- msgstr ""
942
-
943
  #: ../admin/views/ad-display-metabox.php:8 ../admin/views/notices/jqueryui_error.
944
  #: php:2
945
  #, php-format
@@ -1025,7 +1043,7 @@ msgid "Number of ads that are visible at the same time"
1025
  msgstr ""
1026
 
1027
  #: ../admin/views/ad-group-list-form-row.php:31 ../public/class-advanced-ads.php:
1028
- #: 589
1029
  msgid "Ad"
1030
  msgstr ""
1031
 
@@ -1042,12 +1060,12 @@ msgid "Details"
1042
  msgstr ""
1043
 
1044
  #: ../admin/views/ad-group-list-row.php:8 ../admin/views/ad-group.php:63 ..
1045
- #: /admin/views/ad-info.php:3 ../admin/views/placements.php:58
1046
  msgid "shortcode"
1047
  msgstr ""
1048
 
1049
  #: ../admin/views/ad-group-list-row.php:11 ../admin/views/ad-group.php:66 ..
1050
- #: /admin/views/placements.php:61
1051
  msgid "template"
1052
  msgstr ""
1053
 
@@ -1106,76 +1124,55 @@ msgstr ""
1106
  msgid "Update Groups"
1107
  msgstr ""
1108
 
1109
- #: ../admin/views/ad-info-top.php:4
1110
- msgid "Cool, you just published an ad. What now?"
1111
- msgstr ""
1112
-
1113
- #: ../admin/views/ad-info-top.php:5
1114
- msgid "Display the ad in …"
1115
- msgstr ""
1116
-
1117
- #: ../admin/views/ad-info-top.php:7
1118
- msgid "… every post or page"
1119
- msgstr ""
1120
-
1121
- #: ../admin/views/ad-info-top.php:9
1122
- msgid "Use placements to inject the ad automatically into posts and pages."
1123
- msgstr ""
1124
-
1125
- #: ../admin/views/ad-info-top.php:10
1126
- msgid "Configure Placements"
1127
- msgstr ""
1128
-
1129
- #: ../admin/views/ad-info-top.php:12
1130
- msgid "… Sidebar or Widget Area"
1131
  msgstr ""
1132
 
1133
- #: ../admin/views/ad-info-top.php:14
1134
- msgid "Use the <em>Advanced Ads</em> Widget to display ads in your sidebars."
1135
  msgstr ""
1136
 
1137
- #: ../admin/views/ad-info-top.php:15
1138
- msgid "Configure a Widget"
1139
  msgstr ""
1140
 
1141
- #: ../admin/views/ad-info-top.php:17
1142
- msgid "… a few hand selected posts or pages"
1143
  msgstr ""
1144
 
1145
- #: ../admin/views/ad-info-top.php:19
1146
- msgid ""
1147
- "Use the shortcode below to manually place the ad in the content editor of "
1148
- "posts and pages."
1149
  msgstr ""
1150
 
1151
- #: ../admin/views/ad-info-top.php:22
1152
- msgid " in a custom position in your theme"
1153
  msgstr ""
1154
 
1155
- #: ../admin/views/ad-info-top.php:24
1156
- msgid ""
1157
- "Use the function below to manually place the ad into your template files. "
1158
- "This method is needed for more advanced placements like in the header of "
1159
- "your theme."
1160
  msgstr ""
1161
 
1162
- #: ../admin/views/ad-info-top.php:27
1163
- msgid " in an anchor ad or pop-up"
1164
  msgstr ""
1165
 
1166
- #: ../admin/views/ad-info-top.php:34
1167
- msgid "You find the settings for the Sticky Ads below."
1168
  msgstr ""
1169
 
1170
- #: ../admin/views/ad-info-top.php:41
1171
- msgid "You find the settings for the Layer and PopUp effects below."
 
1172
  msgstr ""
1173
 
1174
- #: ../admin/views/ad-info-top.php:46
1175
  #, php-format
1176
  msgid ""
1177
  "Learn more about your choices to display an ad in the <a href=\"%s\" "
1178
- "target=\"_blank\">manual</a>"
1179
  msgstr ""
1180
 
1181
  #: ../admin/views/ad-info.php:2
@@ -1248,7 +1245,7 @@ msgstr ""
1248
  msgid "- default -"
1249
  msgstr ""
1250
 
1251
- #: ../admin/views/ad-output-metabox.php:7 ../admin/views/placements.php:51
1252
  msgid "default"
1253
  msgstr ""
1254
 
@@ -1583,108 +1580,108 @@ msgid ""
1583
  "if the responsible add-on is activated."
1584
  msgstr ""
1585
 
1586
- #: ../admin/views/placements.php:57
1587
  msgid "show usage"
1588
  msgstr ""
1589
 
1590
- #: ../admin/views/placements.php:69
1591
  msgid "Item"
1592
  msgstr ""
1593
 
1594
- #: ../admin/views/placements.php:71 ../admin/views/placements.php:175
1595
  msgid "--not selected--"
1596
  msgstr ""
1597
 
1598
- #: ../admin/views/placements.php:91
1599
  msgid "Inject"
1600
  msgstr ""
1601
 
1602
- #: ../admin/views/placements.php:92
1603
  msgid "after"
1604
  msgstr ""
1605
 
1606
- #: ../admin/views/placements.php:92
1607
  msgid "before"
1608
  msgstr ""
1609
 
1610
- #: ../admin/views/placements.php:112
1611
  msgid "start counting from bottom"
1612
  msgstr ""
1613
 
1614
- #: ../admin/views/placements.php:115
1615
  msgid "Important Notice"
1616
  msgstr ""
1617
 
1618
- #: ../admin/views/placements.php:115
1619
  msgid ""
1620
  "Your server is missing an extension. This might break the content injection."
1621
  "<br/>Ignore this warning if everything works fine or else ask your hosting "
1622
  "provider to enable <em>mbstring</em>."
1623
  msgstr ""
1624
 
1625
- #: ../admin/views/placements.php:125
1626
  msgid "advanced options"
1627
  msgstr ""
1628
 
1629
- #: ../admin/views/placements.php:133
1630
  msgctxt "checkbox to remove placement"
1631
  msgid "delete"
1632
  msgstr ""
1633
 
1634
- #: ../admin/views/placements.php:139
1635
  msgid "Save Placements"
1636
  msgstr ""
1637
 
1638
- #: ../admin/views/placements.php:141
1639
  msgid "Create a new placement"
1640
  msgstr ""
1641
 
1642
- #: ../admin/views/placements.php:142
1643
  msgid "New Placement"
1644
  msgstr ""
1645
 
1646
- #: ../admin/views/placements.php:148
1647
  msgid "Choose a placement type"
1648
  msgstr ""
1649
 
1650
- #: ../admin/views/placements.php:149
1651
  #, php-format
1652
  msgid ""
1653
  "Placement types define where the ad is going to be displayed. Learn more "
1654
  "about the different types from the <a href=\"%s\">manual</a>"
1655
  msgstr ""
1656
 
1657
- #: ../admin/views/placements.php:166
1658
  msgid "Please select a placement type."
1659
  msgstr ""
1660
 
1661
- #: ../admin/views/placements.php:168
1662
  msgid "Choose a Name"
1663
  msgstr ""
1664
 
1665
- #: ../admin/views/placements.php:169
1666
  msgid ""
1667
  "The name of the placement is only visible to you. Tip: choose a descriptive "
1668
  "one, e.g. <em>Below Post Headline</em>."
1669
  msgstr ""
1670
 
1671
- #: ../admin/views/placements.php:170
1672
  msgid "Placement Name"
1673
  msgstr ""
1674
 
1675
- #: ../admin/views/placements.php:171
1676
  msgid "Please enter a name for your placement."
1677
  msgstr ""
1678
 
1679
- #: ../admin/views/placements.php:172
1680
  msgid "Choose the Ad or Group"
1681
  msgstr ""
1682
 
1683
- #: ../admin/views/placements.php:173
1684
  msgid "The ad or group that should be displayed."
1685
  msgstr ""
1686
 
1687
- #: ../admin/views/placements.php:192
1688
  msgid "Save New Placement"
1689
  msgstr ""
1690
 
@@ -1923,18 +1920,10 @@ msgstr ""
1923
  msgid "Injected in Footer (before closing &lt;/body&gt; Tag)."
1924
  msgstr ""
1925
 
1926
- #: ../classes/ad_placements.php:46
1927
- msgid "Before Content"
1928
- msgstr ""
1929
-
1930
  #: ../classes/ad_placements.php:47
1931
  msgid "Injected before the post content."
1932
  msgstr ""
1933
 
1934
- #: ../classes/ad_placements.php:51
1935
- msgid "After Content"
1936
- msgstr ""
1937
-
1938
  #: ../classes/ad_placements.php:52
1939
  msgid "Injected after the post content."
1940
  msgstr ""
@@ -1959,27 +1948,27 @@ msgid ""
1959
  "widget."
1960
  msgstr ""
1961
 
1962
- #: ../classes/ad_placements.php:203
1963
  #, php-format
1964
  msgid "paragraph (%s)"
1965
  msgstr ""
1966
 
1967
- #: ../classes/ad_placements.php:204
1968
  #, php-format
1969
  msgid "paragraph without image (%s)"
1970
  msgstr ""
1971
 
1972
- #: ../classes/ad_placements.php:205
1973
  #, php-format
1974
  msgid "headline 2 (%s)"
1975
  msgstr ""
1976
 
1977
- #: ../classes/ad_placements.php:206
1978
  #, php-format
1979
  msgid "headline 3 (%s)"
1980
  msgstr ""
1981
 
1982
- #: ../classes/ad_placements.php:207
1983
  #, php-format
1984
  msgid "headline 4 (%s)"
1985
  msgstr ""
@@ -2000,7 +1989,7 @@ msgid ""
2000
  "display and visitor conditions to all ads in that group."
2001
  msgstr ""
2002
 
2003
- #: ../classes/ad_type_group.php:60
2004
  msgid "ad group"
2005
  msgstr ""
2006
 
@@ -2568,85 +2557,85 @@ msgstr ""
2568
  msgid "Auto"
2569
  msgstr ""
2570
 
2571
- #: ../public/class-advanced-ads.php:307
2572
  msgid "Advanced Ads Error following:"
2573
  msgstr ""
2574
 
2575
- #: ../public/class-advanced-ads.php:310
2576
  #, php-format
2577
  msgid "Advanced Ads Error: %s"
2578
  msgstr ""
2579
 
2580
- #: ../public/class-advanced-ads.php:551
2581
  msgctxt "ad group general name"
2582
  msgid "Ad Groups"
2583
  msgstr ""
2584
 
2585
- #: ../public/class-advanced-ads.php:552
2586
  msgctxt "ad group singular name"
2587
  msgid "Ad Group"
2588
  msgstr ""
2589
 
2590
- #: ../public/class-advanced-ads.php:553
2591
  msgid "Search Ad Groups"
2592
  msgstr ""
2593
 
2594
- #: ../public/class-advanced-ads.php:554
2595
  msgid "All Ad Groups"
2596
  msgstr ""
2597
 
2598
- #: ../public/class-advanced-ads.php:555
2599
  msgid "Parent Ad Groups"
2600
  msgstr ""
2601
 
2602
- #: ../public/class-advanced-ads.php:556
2603
  msgid "Parent Ad Groups:"
2604
  msgstr ""
2605
 
2606
- #: ../public/class-advanced-ads.php:557
2607
  msgid "Edit Ad Group"
2608
  msgstr ""
2609
 
2610
- #: ../public/class-advanced-ads.php:558
2611
  msgid "Update Ad Group"
2612
  msgstr ""
2613
 
2614
- #: ../public/class-advanced-ads.php:559
2615
  msgid "Add New Ad Group"
2616
  msgstr ""
2617
 
2618
- #: ../public/class-advanced-ads.php:560
2619
  msgid "New Ad Groups Name"
2620
  msgstr ""
2621
 
2622
- #: ../public/class-advanced-ads.php:562
2623
  msgid "No Ad Group found"
2624
  msgstr ""
2625
 
2626
- #: ../public/class-advanced-ads.php:593
2627
  msgid "Edit Ad"
2628
  msgstr ""
2629
 
2630
- #: ../public/class-advanced-ads.php:595
2631
  msgid "View"
2632
  msgstr ""
2633
 
2634
- #: ../public/class-advanced-ads.php:596
2635
  msgid "View the Ad"
2636
  msgstr ""
2637
 
2638
- #: ../public/class-advanced-ads.php:597
2639
  msgid "Search Ads"
2640
  msgstr ""
2641
 
2642
- #: ../public/class-advanced-ads.php:598
2643
  msgid "No Ads found"
2644
  msgstr ""
2645
 
2646
- #: ../public/class-advanced-ads.php:599
2647
  msgid "No Ads found in Trash"
2648
  msgstr ""
2649
 
2650
- #: ../public/class-advanced-ads.php:600
2651
  msgid "Parent Ad"
2652
  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: Tue May 10 2016 21:23:25 GMT+0200 (CEST)\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"
55
  msgid "and"
56
  msgstr ""
57
 
58
+ #: ../admin/class-advanced-ads-admin.php:214
59
+ msgid "After which paragraph?"
60
+ msgstr ""
61
+
62
+ #: ../admin/class-advanced-ads-admin.php:279
63
  msgid "Overview"
64
  msgstr ""
65
 
66
+ #: ../admin/class-advanced-ads-admin.php:283 ../admin/class-advanced-ads-admin.
67
+ #: php:283 ../admin/includes/class-shortcode-creator.php:77 ../admin/views/ad-
68
  #: group-list-form-row.php:28 ../admin/views/ad-group-list-header.php:5 ..
69
+ #: /admin/views/placements.php:81 ../admin/views/placements.php:185 ..
70
+ #: /classes/widget.php:89 ../public/class-advanced-ads.php:590
71
  msgid "Ads"
72
  msgstr ""
73
 
74
+ #: ../admin/class-advanced-ads-admin.php:289 ../public/class-advanced-ads.php:593
75
  msgid "Add New Ad"
76
  msgstr ""
77
 
78
+ #: ../admin/class-advanced-ads-admin.php:289 ../public/class-advanced-ads.php:592
79
+ #: ../public/class-advanced-ads.php:596
80
  msgid "New Ad"
81
  msgstr ""
82
 
83
+ #: ../admin/class-advanced-ads-admin.php:294 ../admin/includes/class-shortcode-
84
+ #: creator.php:84 ../admin/views/placements.php:74 ../admin/views/placements.php:
85
+ #: 178 ../classes/widget.php:82
86
  msgid "Ad Groups"
87
  msgstr ""
88
 
89
+ #: ../admin/class-advanced-ads-admin.php:294 ../public/class-advanced-ads.php:563
90
  msgid "Groups"
91
  msgstr ""
92
 
93
+ #: ../admin/class-advanced-ads-admin.php:299
94
  msgid "Ad Placements"
95
  msgstr ""
96
 
97
+ #: ../admin/class-advanced-ads-admin.php:299 ../admin/includes/class-shortcode-
98
  #: creator.php:91 ../admin/views/placements.php:18 ../classes/widget.php:75
99
  msgid "Placements"
100
  msgstr ""
101
 
102
+ #: ../admin/class-advanced-ads-admin.php:303
103
  msgid "Advanced Ads Settings"
104
  msgstr ""
105
 
106
+ #: ../admin/class-advanced-ads-admin.php:303 ../admin/class-advanced-ads-admin.
107
+ #: php:551 ../admin/views/debug.php:10
108
  msgid "Settings"
109
  msgstr ""
110
 
111
+ #: ../admin/class-advanced-ads-admin.php:306
112
  msgid "Advanced Ads Debugging"
113
  msgstr ""
114
 
115
+ #: ../admin/class-advanced-ads-admin.php:306
116
  msgid "Debug"
117
  msgstr ""
118
 
119
+ #: ../admin/class-advanced-ads-admin.php:310 ../admin/class-advanced-ads-admin.
120
+ #: php:310
121
  msgid "Advanced Ads Intro"
122
  msgstr ""
123
 
124
+ #: ../admin/class-advanced-ads-admin.php:314 ../admin/class-advanced-ads-admin.
125
+ #: php:314 ../admin/class-advanced-ads-admin.php:2051
126
  msgid "Support"
127
  msgstr ""
128
 
129
+ #: ../admin/class-advanced-ads-admin.php:426
130
  msgid "Please enter a message"
131
  msgstr ""
132
 
133
+ #: ../admin/class-advanced-ads-admin.php:436
134
  #, php-format
135
  msgid "Email could NOT be sent. Please contact us directly at %s."
136
  msgstr ""
137
 
138
+ #: ../admin/class-advanced-ads-admin.php:439
139
  msgid "Please enter a valid email address"
140
  msgstr ""
141
 
142
+ #: ../admin/class-advanced-ads-admin.php:465 ../admin/class-advanced-ads-admin.
143
+ #: php:492
144
  msgid "Sorry, you are not allowed to access this feature."
145
  msgstr ""
146
 
147
+ #: ../admin/class-advanced-ads-admin.php:478
148
  msgid ""
149
  "You attempted to edit an ad group that doesn&#8217;t exist. Perhaps it was "
150
  "deleted?"
151
  msgstr ""
152
 
153
+ #: ../admin/class-advanced-ads-admin.php:593
154
  msgid "Ad Type"
155
  msgstr ""
156
 
157
+ #: ../admin/class-advanced-ads-admin.php:599
158
  msgid "Ad Parameters"
159
  msgstr ""
160
 
161
+ #: ../admin/class-advanced-ads-admin.php:602
162
  msgid "Layout / Output"
163
  msgstr ""
164
 
165
+ #: ../admin/class-advanced-ads-admin.php:605
166
  msgid "Display Conditions"
167
  msgstr ""
168
 
169
+ #: ../admin/class-advanced-ads-admin.php:608
170
  msgid "Visitor Conditions"
171
  msgstr ""
172
 
173
+ #: ../admin/class-advanced-ads-admin.php:677 ../admin/class-advanced-ads-admin.
174
+ #: php:688 ../admin/class-advanced-ads-admin.php:693 ../admin/views/ad-output-
175
+ #: metabox.php:46
176
+ msgid "Manual"
177
+ msgstr ""
178
+
179
+ #: ../admin/class-advanced-ads-admin.php:687
180
+ msgid "Video"
181
+ msgstr ""
182
+
183
+ #: ../admin/class-advanced-ads-admin.php:865 ../admin/class-advanced-ads-admin.
184
+ #: php:866
185
  msgid "Ad updated."
186
  msgstr ""
187
 
188
  #. translators: %s: date and time of the revision
189
+ #: ../admin/class-advanced-ads-admin.php:868
190
  #, php-format
191
  msgid "Ad restored to revision from %s"
192
  msgstr ""
193
 
194
+ #: ../admin/class-advanced-ads-admin.php:869
195
  msgid "Ad published."
196
  msgstr ""
197
 
198
+ #: ../admin/class-advanced-ads-admin.php:870
199
  msgid "Ad saved."
200
  msgstr ""
201
 
202
+ #: ../admin/class-advanced-ads-admin.php:871
203
  msgid "Ad submitted."
204
  msgstr ""
205
 
206
+ #: ../admin/class-advanced-ads-admin.php:873
207
  #, php-format
208
  msgid "Ad scheduled for: <strong>%1$s</strong>."
209
  msgstr ""
210
 
211
  #. translators: Publish box date format, see http://php.net/date
212
+ #: ../admin/class-advanced-ads-admin.php:875
213
  msgid "M j, Y @ G:i"
214
  msgstr ""
215
 
216
+ #: ../admin/class-advanced-ads-admin.php:877
217
  msgid "Ad draft updated."
218
  msgstr ""
219
 
220
+ #: ../admin/class-advanced-ads-admin.php:896
221
  #, php-format
222
  msgid "%s ad updated."
223
  msgid_plural "%s ads updated."
224
  msgstr[0] ""
225
  msgstr[1] ""
226
 
227
+ #: ../admin/class-advanced-ads-admin.php:897
228
  #, php-format
229
  msgid "%s ad not updated, somebody is editing it."
230
  msgid_plural "%s ads not updated, somebody is editing them."
231
  msgstr[0] ""
232
  msgstr[1] ""
233
 
234
+ #: ../admin/class-advanced-ads-admin.php:898
235
  #, php-format
236
  msgid "%s ad permanently deleted."
237
  msgid_plural "%s ads permanently deleted."
238
  msgstr[0] ""
239
  msgstr[1] ""
240
 
241
+ #: ../admin/class-advanced-ads-admin.php:899
242
  #, php-format
243
  msgid "%s ad moved to the Trash."
244
  msgid_plural "%s ads moved to the Trash."
245
  msgstr[0] ""
246
  msgstr[1] ""
247
 
248
+ #: ../admin/class-advanced-ads-admin.php:900
249
  #, php-format
250
  msgid "%s ad restored from the Trash."
251
  msgid_plural "%s ads restored from the Trash."
252
  msgstr[0] ""
253
  msgstr[1] ""
254
 
255
+ #: ../admin/class-advanced-ads-admin.php:935 ../admin/views/settings.php:12
256
  msgid "General"
257
  msgstr ""
258
 
259
+ #: ../admin/class-advanced-ads-admin.php:947 ../admin/class-advanced-ads-admin.
260
+ #: php:1059
261
  msgid "Licenses"
262
  msgstr ""
263
 
264
+ #: ../admin/class-advanced-ads-admin.php:958
265
  msgid "Disable ads"
266
  msgstr ""
267
 
268
+ #: ../admin/class-advanced-ads-admin.php:966
269
  msgid "Hide ads for logged in users"
270
  msgstr ""
271
 
272
+ #: ../admin/class-advanced-ads-admin.php:974
273
  msgid "Use advanced JavaScript"
274
  msgstr ""
275
 
276
+ #: ../admin/class-advanced-ads-admin.php:982
277
  msgid "Unlimited ad injection"
278
  msgstr ""
279
 
280
+ #: ../admin/class-advanced-ads-admin.php:990
281
  msgid "Priority of content injection filter"
282
  msgstr ""
283
 
284
+ #: ../admin/class-advanced-ads-admin.php:998
285
  msgid "Hide ads from bots"
286
  msgstr ""
287
 
288
+ #: ../admin/class-advanced-ads-admin.php:1006
289
  msgid "Disable notices"
290
  msgstr ""
291
 
292
+ #: ../admin/class-advanced-ads-admin.php:1014
293
  msgid "ID prefix"
294
  msgstr ""
295
 
296
+ #: ../admin/class-advanced-ads-admin.php:1022
297
  msgid "Remove Widget ID"
298
  msgstr ""
299
 
300
+ #: ../admin/class-advanced-ads-admin.php:1030
301
  msgid "Allow editors to manage ads"
302
  msgstr ""
303
 
304
+ #: ../admin/class-advanced-ads-admin.php:1038
305
+ msgid "Ad label"
306
+ msgstr ""
307
+
308
+ #: ../admin/class-advanced-ads-admin.php:1115
309
  msgid "(display to all)"
310
  msgstr ""
311
 
312
+ #: ../admin/class-advanced-ads-admin.php:1116
313
  msgid "Subscriber"
314
  msgstr ""
315
 
316
+ #: ../admin/class-advanced-ads-admin.php:1117
317
  msgid "Contributor"
318
  msgstr ""
319
 
320
+ #: ../admin/class-advanced-ads-admin.php:1118
321
  msgid "Author"
322
  msgstr ""
323
 
324
+ #: ../admin/class-advanced-ads-admin.php:1119
325
  msgid "Editor"
326
  msgstr ""
327
 
328
+ #: ../admin/class-advanced-ads-admin.php:1120
329
  msgid "Admin"
330
  msgstr ""
331
 
332
+ #: ../admin/class-advanced-ads-admin.php:1128
333
  msgid "Choose the lowest role a user must have in order to not see any ads."
334
  msgstr ""
335
 
336
+ #: ../admin/class-advanced-ads-admin.php:1142
337
  msgid ""
338
  "<strong>notice: </strong>the file is currently enabled by an add-on that "
339
  "needs it."
340
  msgstr ""
341
 
342
+ #: ../admin/class-advanced-ads-admin.php:1145
343
  #, php-format
344
  msgid ""
345
  "Enable advanced JavaScript functions (<a href=\"%s\" target=\"_blank\">here</a>)."
347
  "from this file."
348
  msgstr ""
349
 
350
+ #: ../admin/class-advanced-ads-admin.php:1158
351
  msgid ""
352
  "Some plugins and themes trigger ad injection where it shouldn’t happen. "
353
  "Therefore, Advanced Ads ignores injected placements on non-singular pages "
356
  "on archive pages AT YOUR OWN RISK."
357
  msgstr ""
358
 
359
+ #: ../admin/class-advanced-ads-admin.php:1174
360
  msgid ""
361
  "Please check your post content. A priority of 10 and below might cause "
362
  "issues (wpautop function might run twice)."
363
  msgstr ""
364
 
365
+ #: ../admin/class-advanced-ads-admin.php:1176
366
  msgid ""
367
  "Play with this value in order to change the priority of the injected ads "
368
  "compared to other auto injected elements in the post content."
369
  msgstr ""
370
 
371
+ #: ../admin/class-advanced-ads-admin.php:1190
372
  #, php-format
373
  msgid ""
374
  "Hide ads from crawlers, bots and empty user agents. Also prevents counting "
376
  "Add-On</a>."
377
  msgstr ""
378
 
379
+ #: ../admin/class-advanced-ads-admin.php:1191
380
  msgid ""
381
  "Disabling this option only makes sense if your ads contain content you want "
382
  "to display to bots (like search engines) or your site is cached and bots "
383
  "could create a cached version without the ads."
384
  msgstr ""
385
 
386
+ #: ../admin/class-advanced-ads-admin.php:1204
387
  msgid ""
388
  "Disable internal notices like tips, tutorials, email newsletters and update "
389
  "notices. Disabling notices is recommended if you run multiple blogs with "
390
  "Advanced Ads already."
391
  msgstr ""
392
 
393
+ #: ../admin/class-advanced-ads-admin.php:1221
394
  msgid ""
395
  "Prefix of class or id attributes in the frontend. Change it if you don’t "
396
  "want <strong>ad blockers</strong> to mark these blocks as ads.<br/>You might "
397
  "need to <strong>rewrite css rules afterwards</strong>."
398
  msgstr ""
399
 
400
+ #: ../admin/class-advanced-ads-admin.php:1242
401
  msgid ""
402
  "Remove the ID attribute from widgets in order to not make them an easy "
403
  "target of ad blockers."
404
  msgstr ""
405
 
406
+ #: ../admin/class-advanced-ads-admin.php:1245
407
  msgid ""
408
  "If checked, the Advanced Ads Widget will not work with the fixed option of "
409
  "the <strong>Q2W3 Fixed Widget</strong> plugin."
410
  msgstr ""
411
 
412
+ #: ../admin/class-advanced-ads-admin.php:1267
413
  msgid "Allow editors to also manage and publish ads."
414
  msgstr ""
415
 
416
+ #: ../admin/class-advanced-ads-admin.php:1268
417
  #, php-format
418
  msgid ""
419
  "You can assign different ad-related roles on a user basis with <a href=\"%s\" "
420
  "target=\"_blank\">Advanced Ads Pro</a>."
421
  msgstr ""
422
 
423
+ #: ../admin/class-advanced-ads-admin.php:1280 ../public/class-advanced-ads.php:711
424
+ msgctxt "label before ads"
425
+ msgid "Advertisements"
426
+ msgstr ""
427
+
428
+ #: ../admin/class-advanced-ads-admin.php:1287
429
+ msgid "Displayed above ads."
430
+ msgstr ""
431
+
432
+ #: ../admin/class-advanced-ads-admin.php:1345
433
  msgid "Ad Details"
434
  msgstr ""
435
 
436
+ #: ../admin/class-advanced-ads-admin.php:1346
437
  msgid "Ad Planning"
438
  msgstr ""
439
 
440
+ #: ../admin/class-advanced-ads-admin.php:1481
441
  msgid "Ad Settings"
442
  msgstr ""
443
 
444
+ #: ../admin/class-advanced-ads-admin.php:1560 ../admin/views/overview.php:23
445
  msgid "Ads Dashboard"
446
  msgstr ""
447
 
448
+ #: ../admin/class-advanced-ads-admin.php:1572
449
  msgid "From the ad optimization universe"
450
  msgstr ""
451
 
452
+ #: ../admin/class-advanced-ads-admin.php:1581
453
  msgid "Advanced Ads Tutorials"
454
  msgstr ""
455
 
456
+ #: ../admin/class-advanced-ads-admin.php:1592
457
  #, php-format
458
  msgid "%d ads – <a href=\"%s\">manage</a> - <a href=\"%s\">new</a>"
459
  msgstr ""
460
 
461
+ #: ../admin/class-advanced-ads-admin.php:1603
462
  msgid "plugin manual and homepage"
463
  msgstr ""
464
 
465
+ #: ../admin/class-advanced-ads-admin.php:1610
466
  msgid "Get the tutorial via email"
467
  msgstr ""
468
 
469
+ #: ../admin/class-advanced-ads-admin.php:1617
470
  msgid "Get AdSense tips via email"
471
  msgstr ""
472
 
473
+ #: ../admin/class-advanced-ads-admin.php:1707
474
  #, php-format
475
  msgid "time of %s"
476
  msgstr ""
477
 
478
+ #: ../admin/class-advanced-ads-admin.php:1743
479
  msgid "Error while trying to register the license. Please contact support."
480
  msgstr ""
481
 
482
+ #: ../admin/class-advanced-ads-admin.php:1748 ../admin/views/setting-license.php:37
483
  msgid "Please enter a valid license key"
484
  msgstr ""
485
 
486
+ #: ../admin/class-advanced-ads-admin.php:1774
487
  msgid "License couldn’t be activated. Please try again later."
488
  msgstr ""
489
 
490
+ #: ../admin/class-advanced-ads-admin.php:1786
491
  msgid "This is the bundle license key."
492
  msgstr ""
493
 
494
+ #: ../admin/class-advanced-ads-admin.php:1787
495
  msgid "This is not the correct key for this add-on."
496
  msgstr ""
497
 
498
+ #: ../admin/class-advanced-ads-admin.php:1788
499
  msgid "There are no activations left."
500
  msgstr ""
501
 
502
+ #: ../admin/class-advanced-ads-admin.php:1797
503
  #, php-format
504
  msgid "License is invalid. Reason: %s"
505
  msgstr ""
506
 
507
+ #: ../admin/class-advanced-ads-admin.php:1851
508
  msgid "Error while trying to disable the license. Please contact support."
509
  msgstr ""
510
 
511
+ #: ../admin/class-advanced-ads-admin.php:1874 ../admin/class-advanced-ads-admin.
512
+ #: php:1891
513
  msgid "License couldn’t be deactivated. Please try again later."
514
  msgstr ""
515
 
516
+ #: ../admin/class-advanced-ads-admin.php:2055
517
  msgid "Add-Ons"
518
  msgstr ""
519
 
570
  msgstr ""
571
 
572
  #: ../admin/includes/class-ad-groups-list.php:275 ../public/class-advanced-ads.
573
+ #: php:594
574
  msgid "Edit"
575
  msgstr ""
576
 
808
  msgid "Get the Geo Targeting add-on"
809
  msgstr ""
810
 
811
+ #: ../admin/includes/class-overview-widgets.php:221
 
812
  msgid ""
813
  "Fix ads to the browser while users are scrolling and create best performing "
814
  "anchor ads."
822
  msgid "build anchor ads not only on mobile devices"
823
  msgstr ""
824
 
825
+ #: ../admin/includes/class-overview-widgets.php:225
 
826
  msgid "Get the Sticky add-on"
827
  msgstr ""
828
 
829
+ #: ../admin/includes/class-overview-widgets.php:233
 
830
  msgid "Display content and ads in layers and popups on custom events."
831
  msgstr ""
832
 
842
  msgid "allow users to close the popup"
843
  msgstr ""
844
 
845
+ #: ../admin/includes/class-overview-widgets.php:238
 
846
  msgid "Get the PopUp and Layer add-on"
847
  msgstr ""
848
 
958
  msgid "Set Display Conditions to allow or hide the ad on specific pages."
959
  msgstr ""
960
 
 
 
 
 
 
961
  #: ../admin/views/ad-display-metabox.php:8 ../admin/views/notices/jqueryui_error.
962
  #: php:2
963
  #, php-format
1043
  msgstr ""
1044
 
1045
  #: ../admin/views/ad-group-list-form-row.php:31 ../public/class-advanced-ads.php:
1046
+ #: 591
1047
  msgid "Ad"
1048
  msgstr ""
1049
 
1060
  msgstr ""
1061
 
1062
  #: ../admin/views/ad-group-list-row.php:8 ../admin/views/ad-group.php:63 ..
1063
+ #: /admin/views/ad-info.php:3 ../admin/views/placements.php:59
1064
  msgid "shortcode"
1065
  msgstr ""
1066
 
1067
  #: ../admin/views/ad-group-list-row.php:11 ../admin/views/ad-group.php:66 ..
1068
+ #: /admin/views/placements.php:62
1069
  msgid "template"
1070
  msgstr ""
1071
 
1124
  msgid "Update Groups"
1125
  msgstr ""
1126
 
1127
+ #: ../admin/views/ad-info-top.php:3
1128
+ #, php-format
1129
+ msgid ""
1130
+ "Congratulations! Your ad is now visible in the frontend. You can adjust the "
1131
+ "placement options <a href=\"%s\">here</a>."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1132
  msgstr ""
1133
 
1134
+ #: ../admin/views/ad-info-top.php:4
1135
+ msgid "Where do you want to display the ad?"
1136
  msgstr ""
1137
 
1138
+ #: ../admin/views/ad-info-top.php:5 ../classes/ad_placements.php:46
1139
+ msgid "Before Content"
1140
  msgstr ""
1141
 
1142
+ #: ../admin/views/ad-info-top.php:6
1143
+ msgid "Content"
1144
  msgstr ""
1145
 
1146
+ #: ../admin/views/ad-info-top.php:7 ../classes/ad_placements.php:51
1147
+ msgid "After Content"
 
 
1148
  msgstr ""
1149
 
1150
+ #: ../admin/views/ad-info-top.php:8
1151
+ msgid "Manage Sidebar"
1152
  msgstr ""
1153
 
1154
+ #: ../admin/views/ad-info-top.php:10
1155
+ msgid "Show Pro Places"
 
 
 
1156
  msgstr ""
1157
 
1158
+ #: ../admin/views/ad-info-top.php:13
1159
+ msgid "Show Sticky Places"
1160
  msgstr ""
1161
 
1162
+ #: ../admin/views/ad-info-top.php:16
1163
+ msgid "Show PopUp"
1164
  msgstr ""
1165
 
1166
+ #: ../admin/views/ad-info-top.php:20
1167
+ #, php-format
1168
+ msgid "Or use the shortcode %s to insert the ad into the content manually."
1169
  msgstr ""
1170
 
1171
+ #: ../admin/views/ad-info-top.php:21
1172
  #, php-format
1173
  msgid ""
1174
  "Learn more about your choices to display an ad in the <a href=\"%s\" "
1175
+ "target=\"_blank\">manual</a>."
1176
  msgstr ""
1177
 
1178
  #: ../admin/views/ad-info.php:2
1245
  msgid "- default -"
1246
  msgstr ""
1247
 
1248
+ #: ../admin/views/ad-output-metabox.php:7 ../admin/views/placements.php:52
1249
  msgid "default"
1250
  msgstr ""
1251
 
1580
  "if the responsible add-on is activated."
1581
  msgstr ""
1582
 
1583
+ #: ../admin/views/placements.php:58
1584
  msgid "show usage"
1585
  msgstr ""
1586
 
1587
+ #: ../admin/views/placements.php:70
1588
  msgid "Item"
1589
  msgstr ""
1590
 
1591
+ #: ../admin/views/placements.php:72 ../admin/views/placements.php:176
1592
  msgid "--not selected--"
1593
  msgstr ""
1594
 
1595
+ #: ../admin/views/placements.php:92
1596
  msgid "Inject"
1597
  msgstr ""
1598
 
1599
+ #: ../admin/views/placements.php:93
1600
  msgid "after"
1601
  msgstr ""
1602
 
1603
+ #: ../admin/views/placements.php:93
1604
  msgid "before"
1605
  msgstr ""
1606
 
1607
+ #: ../admin/views/placements.php:113
1608
  msgid "start counting from bottom"
1609
  msgstr ""
1610
 
1611
+ #: ../admin/views/placements.php:116
1612
  msgid "Important Notice"
1613
  msgstr ""
1614
 
1615
+ #: ../admin/views/placements.php:116
1616
  msgid ""
1617
  "Your server is missing an extension. This might break the content injection."
1618
  "<br/>Ignore this warning if everything works fine or else ask your hosting "
1619
  "provider to enable <em>mbstring</em>."
1620
  msgstr ""
1621
 
1622
+ #: ../admin/views/placements.php:126
1623
  msgid "advanced options"
1624
  msgstr ""
1625
 
1626
+ #: ../admin/views/placements.php:134
1627
  msgctxt "checkbox to remove placement"
1628
  msgid "delete"
1629
  msgstr ""
1630
 
1631
+ #: ../admin/views/placements.php:140
1632
  msgid "Save Placements"
1633
  msgstr ""
1634
 
1635
+ #: ../admin/views/placements.php:142
1636
  msgid "Create a new placement"
1637
  msgstr ""
1638
 
1639
+ #: ../admin/views/placements.php:143
1640
  msgid "New Placement"
1641
  msgstr ""
1642
 
1643
+ #: ../admin/views/placements.php:149
1644
  msgid "Choose a placement type"
1645
  msgstr ""
1646
 
1647
+ #: ../admin/views/placements.php:150
1648
  #, php-format
1649
  msgid ""
1650
  "Placement types define where the ad is going to be displayed. Learn more "
1651
  "about the different types from the <a href=\"%s\">manual</a>"
1652
  msgstr ""
1653
 
1654
+ #: ../admin/views/placements.php:167
1655
  msgid "Please select a placement type."
1656
  msgstr ""
1657
 
1658
+ #: ../admin/views/placements.php:169
1659
  msgid "Choose a Name"
1660
  msgstr ""
1661
 
1662
+ #: ../admin/views/placements.php:170
1663
  msgid ""
1664
  "The name of the placement is only visible to you. Tip: choose a descriptive "
1665
  "one, e.g. <em>Below Post Headline</em>."
1666
  msgstr ""
1667
 
1668
+ #: ../admin/views/placements.php:171
1669
  msgid "Placement Name"
1670
  msgstr ""
1671
 
1672
+ #: ../admin/views/placements.php:172
1673
  msgid "Please enter a name for your placement."
1674
  msgstr ""
1675
 
1676
+ #: ../admin/views/placements.php:173
1677
  msgid "Choose the Ad or Group"
1678
  msgstr ""
1679
 
1680
+ #: ../admin/views/placements.php:174
1681
  msgid "The ad or group that should be displayed."
1682
  msgstr ""
1683
 
1684
+ #: ../admin/views/placements.php:193
1685
  msgid "Save New Placement"
1686
  msgstr ""
1687
 
1920
  msgid "Injected in Footer (before closing &lt;/body&gt; Tag)."
1921
  msgstr ""
1922
 
 
 
 
 
1923
  #: ../classes/ad_placements.php:47
1924
  msgid "Injected before the post content."
1925
  msgstr ""
1926
 
 
 
 
 
1927
  #: ../classes/ad_placements.php:52
1928
  msgid "Injected after the post content."
1929
  msgstr ""
1948
  "widget."
1949
  msgstr ""
1950
 
1951
+ #: ../classes/ad_placements.php:210
1952
  #, php-format
1953
  msgid "paragraph (%s)"
1954
  msgstr ""
1955
 
1956
+ #: ../classes/ad_placements.php:211
1957
  #, php-format
1958
  msgid "paragraph without image (%s)"
1959
  msgstr ""
1960
 
1961
+ #: ../classes/ad_placements.php:212
1962
  #, php-format
1963
  msgid "headline 2 (%s)"
1964
  msgstr ""
1965
 
1966
+ #: ../classes/ad_placements.php:213
1967
  #, php-format
1968
  msgid "headline 3 (%s)"
1969
  msgstr ""
1970
 
1971
+ #: ../classes/ad_placements.php:214
1972
  #, php-format
1973
  msgid "headline 4 (%s)"
1974
  msgstr ""
1989
  "display and visitor conditions to all ads in that group."
1990
  msgstr ""
1991
 
1992
+ #: ../classes/ad_type_group.php:84
1993
  msgid "ad group"
1994
  msgstr ""
1995
 
2557
  msgid "Auto"
2558
  msgstr ""
2559
 
2560
+ #: ../public/class-advanced-ads.php:309
2561
  msgid "Advanced Ads Error following:"
2562
  msgstr ""
2563
 
2564
+ #: ../public/class-advanced-ads.php:312
2565
  #, php-format
2566
  msgid "Advanced Ads Error: %s"
2567
  msgstr ""
2568
 
2569
+ #: ../public/class-advanced-ads.php:553
2570
  msgctxt "ad group general name"
2571
  msgid "Ad Groups"
2572
  msgstr ""
2573
 
2574
+ #: ../public/class-advanced-ads.php:554
2575
  msgctxt "ad group singular name"
2576
  msgid "Ad Group"
2577
  msgstr ""
2578
 
2579
+ #: ../public/class-advanced-ads.php:555
2580
  msgid "Search Ad Groups"
2581
  msgstr ""
2582
 
2583
+ #: ../public/class-advanced-ads.php:556
2584
  msgid "All Ad Groups"
2585
  msgstr ""
2586
 
2587
+ #: ../public/class-advanced-ads.php:557
2588
  msgid "Parent Ad Groups"
2589
  msgstr ""
2590
 
2591
+ #: ../public/class-advanced-ads.php:558
2592
  msgid "Parent Ad Groups:"
2593
  msgstr ""
2594
 
2595
+ #: ../public/class-advanced-ads.php:559
2596
  msgid "Edit Ad Group"
2597
  msgstr ""
2598
 
2599
+ #: ../public/class-advanced-ads.php:560
2600
  msgid "Update Ad Group"
2601
  msgstr ""
2602
 
2603
+ #: ../public/class-advanced-ads.php:561
2604
  msgid "Add New Ad Group"
2605
  msgstr ""
2606
 
2607
+ #: ../public/class-advanced-ads.php:562
2608
  msgid "New Ad Groups Name"
2609
  msgstr ""
2610
 
2611
+ #: ../public/class-advanced-ads.php:564
2612
  msgid "No Ad Group found"
2613
  msgstr ""
2614
 
2615
+ #: ../public/class-advanced-ads.php:595
2616
  msgid "Edit Ad"
2617
  msgstr ""
2618
 
2619
+ #: ../public/class-advanced-ads.php:597
2620
  msgid "View"
2621
  msgstr ""
2622
 
2623
+ #: ../public/class-advanced-ads.php:598
2624
  msgid "View the Ad"
2625
  msgstr ""
2626
 
2627
+ #: ../public/class-advanced-ads.php:599
2628
  msgid "Search Ads"
2629
  msgstr ""
2630
 
2631
+ #: ../public/class-advanced-ads.php:600
2632
  msgid "No Ads found"
2633
  msgstr ""
2634
 
2635
+ #: ../public/class-advanced-ads.php:601
2636
  msgid "No Ads found in Trash"
2637
  msgstr ""
2638
 
2639
+ #: ../public/class-advanced-ads.php:602
2640
  msgid "Parent Ad"
2641
  msgstr ""
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: webzunft
3
  Donate link:https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5RRRCEBGN3UT2
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.5.1
7
- Stable tag: 1.7.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -200,6 +200,14 @@ There is no revenue share. Advanced Ads doesn’t alter your ad codes in a way t
200
 
201
  == Changelog ==
202
 
 
 
 
 
 
 
 
 
203
  = version 1.7.2.1 =
204
 
205
  * fix for missing index with newly created ads
3
  Donate link:https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5RRRCEBGN3UT2
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.5.2
7
+ Stable tag: 1.7.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
200
 
201
  == Changelog ==
202
 
203
+ = 1.7.3 =
204
+
205
+ * allow ad injection with just one click after ad was published
206
+ * fix for unset ad type breaks saving the ad
207
+ * fix for ads injected into main content which use document.write with closing tags
208
+ * fixed pro placements not visible when adblocker is enabled
209
+ * forces ad type metabox to stay open for new ads
210
+
211
  = version 1.7.2.1 =
212
 
213
  * fix for missing index with newly created ads