Advanced Ads - Version 1.6.11

Version Description

  • added icon to rich media editor to quickly add shortcodes
  • added widget placement type
  • added new column for ad planning
  • TinyMCE is now working when ad type is switched to content ad
  • enable license key deactivation
  • hide unnecessary fields for image ads in media gallery
  • loading jQuery ui styles only on Advanced Ads dashboard pages now
  • fixed AdSense ad not retrieving values due to slashes
  • fixed issue with licenses being activated twice
Download this release

Release Info

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

Code changes from version 1.6.10.2 to 1.6.11

admin/assets/css/admin.css CHANGED
@@ -225,4 +225,15 @@ tr:hover .on-hover { display: block; }
225
  /**
226
  - GENERAL
227
  -*/
228
- .advads-error-message { color: red !important; }
 
 
 
 
 
 
 
 
 
 
 
225
  /**
226
  - GENERAL
227
  -*/
228
+ .advads-error-message { color: red !important; }
229
+
230
+ /* Image Ad */
231
+ #advads_type_image_wp_media .media-sidebar .setting:not([data-setting="title"]):not([data-setting="alt"]),
232
+ /* fields added via the `attachment_fields_to_edit` filter */
233
+ #advads_type_image_wp_media .media-sidebar .compat-item { display: none; }
234
+
235
+ /* TinyMCE shortcode creator */
236
+ #advads-shortcode-modal-container-body .spinner { background: url(../../../../../../wp-admin/images/spinner.gif) no-repeat; -webkit-background-size: 20px 20px; background-size: 20px 20px; vertical-align: middle; width: 20px; height: 20px; }
237
+ #advads-select-for-shortcode { box-sizing: border-box; }
238
+ #advads-select-for-shortcode optgroup { font-weight: 700; font-family: Tahoma, sans-serif; }
239
+ #advads-select-for-shortcode optgroup option { padding-left: 20px; }
admin/assets/img/placements/widget.png ADDED
Binary file
admin/assets/img/tinymce-icon.png ADDED
Binary file
admin/assets/js/admin.js CHANGED
@@ -1,5 +1,7 @@
1
  jQuery( document ).ready(function ($) {
2
  function advads_load_ad_type_parameter_metabox(ad_type) {
 
 
3
  $( '#advanced-ads-ad-parameters' ).html( '<span class="spinner advads-ad-parameters-spinner advads-spinner"></span>' );
4
  $.ajax({
5
  type: 'POST',
@@ -13,12 +15,15 @@ jQuery( document ).ready(function ($) {
13
  // toggle main content field
14
  if (data) {
15
  $( '#advanced-ads-ad-parameters' ).html( data ).trigger( 'paramloaded' );
 
16
  }
17
  },
18
  error: function (MLHttpRequest, textStatus, errorThrown) {
19
  $( '#advanced-ads-ad-parameters' ).html( errorThrown );
20
  }
21
- });
 
 
22
  }
23
  ;
24
 
@@ -202,7 +207,11 @@ jQuery( document ).ready(function ($) {
202
  $('.advads-license-activate').click(function(){
203
 
204
  var button = $(this);
 
205
  if( ! this.dataset.addon ) { return }
 
 
 
206
 
207
  var query = {
208
  action: 'advads-activate-license',
@@ -229,6 +238,43 @@ jQuery( document ).ready(function ($) {
229
  }
230
  });
231
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
232
 
233
  /**
234
  * PLACEMENTS
@@ -261,17 +307,19 @@ jQuery( document ).ready(function ($) {
261
 
262
  // Create the media frame.
263
  file_frame = wp.media.frames.file_frame = wp.media( {
264
- frame: 'post',
265
- state: 'insert',
266
  title: button.data( 'uploaderTitle' ),
267
  button: {
268
  text: button.data( 'uploaderButtonText' )
269
  },
 
 
 
270
  multiple: false // only allow one file to be selected
271
  } );
272
 
273
  // When an image is selected, run a callback.
274
- file_frame.on( 'insert', function() {
275
 
276
  var selection = file_frame.state().get('selection');
277
  selection.each( function( attachment, index ) {
@@ -490,4 +538,43 @@ function advads_validate_placement_form(){
490
  jQuery('.advads-placement-name-error').hide();
491
  }
492
  return true;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
493
  }
1
  jQuery( document ).ready(function ($) {
2
  function advads_load_ad_type_parameter_metabox(ad_type) {
3
+ jQuery( '#advanced-ad-type input' ).prop( 'disabled', true );
4
+ $( '#advanced-ads-tinymce-wrapper' ).hide();
5
  $( '#advanced-ads-ad-parameters' ).html( '<span class="spinner advads-ad-parameters-spinner advads-spinner"></span>' );
6
  $.ajax({
7
  type: 'POST',
15
  // toggle main content field
16
  if (data) {
17
  $( '#advanced-ads-ad-parameters' ).html( data ).trigger( 'paramloaded' );
18
+ advads_maybe_textarea_to_tinymce( ad_type );
19
  }
20
  },
21
  error: function (MLHttpRequest, textStatus, errorThrown) {
22
  $( '#advanced-ads-ad-parameters' ).html( errorThrown );
23
  }
24
+ }).always( function ( MLHttpRequest, textStatus, errorThrown ) {
25
+ jQuery( '#advanced-ad-type input').prop( 'disabled', false );
26
+ });;
27
  }
28
  ;
29
 
207
  $('.advads-license-activate').click(function(){
208
 
209
  var button = $(this);
210
+
211
  if( ! this.dataset.addon ) { return }
212
+
213
+ // hide button to prevent issues with activation when people click twice
214
+ button.hide();
215
 
216
  var query = {
217
  action: 'advads-activate-license',
238
  }
239
  });
240
  });
241
+
242
+ // deactivate licenses
243
+ $('.advads-license-deactivate').click(function(){
244
+
245
+ var button = $(this);
246
+
247
+ if( ! this.dataset.addon ) { return }
248
+
249
+ // hide button to prevent issues with double clicking
250
+ button.hide();
251
+
252
+ var query = {
253
+ action: 'advads-deactivate-license',
254
+ addon: this.dataset.addon,
255
+ pluginname: this.dataset.pluginname,
256
+ optionslug: this.dataset.optionslug,
257
+ security: $('#advads-licenses-ajax-referrer').val()
258
+ };
259
+
260
+ // show loader
261
+ $( '<span class="spinner advads-spinner"></span>' ).insertAfter( button );
262
+
263
+ // send and close message
264
+ $.post(ajaxurl, query, function (r) {
265
+ // remove spinner
266
+ $('span.spinner').remove();
267
+
268
+ if( r === '1' ){
269
+ button.siblings('.advads-license-activate-error').hide();
270
+ button.siblings('.advads-license-activate-active').hide();
271
+ button.fadeOut();
272
+ } else {
273
+ button.next('.advads-license-activate-error').show().text( r );
274
+ button.siblings('.advads-license-activate-active').hide();
275
+ }
276
+ });
277
+ });
278
 
279
  /**
280
  * PLACEMENTS
307
 
308
  // Create the media frame.
309
  file_frame = wp.media.frames.file_frame = wp.media( {
310
+ id: 'advads_type_image_wp_media',
 
311
  title: button.data( 'uploaderTitle' ),
312
  button: {
313
  text: button.data( 'uploaderButtonText' )
314
  },
315
+ library: {
316
+ type: 'image'
317
+ },
318
  multiple: false // only allow one file to be selected
319
  } );
320
 
321
  // When an image is selected, run a callback.
322
+ file_frame.on( 'select', function() {
323
 
324
  var selection = file_frame.state().get('selection');
325
  selection.each( function( attachment, index ) {
538
  jQuery('.advads-placement-name-error').hide();
539
  }
540
  return true;
541
+ }
542
+
543
+ /**
544
+ * replace textarea with TinyMCE editor for Rich Content ad type
545
+ */
546
+ function advads_maybe_textarea_to_tinymce( ad_type ) {
547
+ var textarea = jQuery( '#advads-ad-content-plain' ),
548
+ textarea_html = textarea.val(),
549
+ tinymce_id = 'advanced-ads-tinymce',
550
+ tinymce_id_ws = jQuery( '#' + tinymce_id ),
551
+ tinymce_wrapper_div = jQuery ( '#advanced-ads-tinymce-wrapper' );
552
+
553
+ if ( ad_type !== 'content' ) {
554
+ tinymce_id_ws.prop('name', tinymce_id );
555
+ tinymce_wrapper_div.hide();
556
+ return false;
557
+ }
558
+
559
+ if ( typeof tinyMCE === 'object' && tinyMCE.get( tinymce_id ) !== null ) {
560
+ // visual mode
561
+ if ( textarea_html ) {
562
+ // see BeforeSetContent in the wp-includes\js\tinymce\plugins\wordpress\plugin.js
563
+ var wp = window.wp,
564
+ hasWpautop = ( wp && wp.editor && wp.editor.autop && tinyMCE.get( tinymce_id ).getParam( 'wpautop', true ) );
565
+ if ( hasWpautop ) {
566
+ textarea_html = wp.editor.autop( textarea_html );
567
+ }
568
+ tinyMCE.get( tinymce_id ).setContent( textarea_html );
569
+ }
570
+ textarea.remove();
571
+ tinymce_id_ws.prop('name', textarea.prop( 'name' ) );
572
+ tinymce_wrapper_div.show();
573
+ } else if ( tinymce_id_ws.length ) {
574
+ // text mode
575
+ tinymce_id_ws.val( textarea_html );
576
+ textarea.remove();
577
+ tinymce_id_ws.prop('name', textarea.prop( 'name' ) );
578
+ tinymce_wrapper_div.show();
579
+ }
580
  }
admin/assets/js/shortcode.js ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function() {
2
+ tinymce.create( 'tinymce.plugins.advads_shortcode', {
3
+ /**
4
+ * Initializes the plugin
5
+ *
6
+ * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
7
+ * @param {string} url Absolute URL to where the plugin is located.
8
+ */
9
+ init : function( ed, url ) {
10
+ ed.addButton( 'advads_shortcode_button', {
11
+ title: ed.getLang( 'advads_shortcode.title', 'Advanced ads shortcodes' ),
12
+ image : url + '/../img/tinymce-icon.png',
13
+ cmd: 'advads_shortcode_command'
14
+ });
15
+
16
+ ed.addCommand( 'advads_shortcode_command', function() {
17
+ ed.windowManager.open({
18
+ title: ed.getLang( 'advads_shortcode.title', 'Advanced Ads shortcodes' ),
19
+ inline: 1,
20
+ body: [{
21
+ id: 'advads-shortcode-modal-container',
22
+ type: 'container',
23
+ minWidth: 320,
24
+ html: '<span class="spinner advads-ad-parameters-spinner advads-spinner"></span>',
25
+ }],
26
+ buttons: [{
27
+ text: ed.getLang( 'advads_shortcode.ok', 'Add shortcode' ),
28
+ id: 'advads-shortcode-button-insert-wrap',
29
+
30
+ onclick: function( e ) {
31
+ if ( jQuery( '#advads-shortcode-modal-container-body #advads-select-for-shortcode' ).length > 0 ) {
32
+ var item = jQuery( '#advads-select-for-shortcode option:selected' ).val();
33
+ if ( item ) {
34
+ item = item.split( '_' );
35
+ if ( item.length !== 2 ) {
36
+ return;
37
+ }
38
+ if ( item[0] === "ad" ) {
39
+ ed.insertContent( '[the_ad id="' + item[1] + '"]' );
40
+ } else if ( item[0] === "group" ) {
41
+ ed.insertContent( '[the_ad_group id="' + item[1] + '"]' );
42
+ } else if ( item[0] === "placement" ) {
43
+ ed.insertContent( '[the_ad_placement id="' + item[1] + '"]' );
44
+ }
45
+ }
46
+ }
47
+ ed.windowManager.close();
48
+ },
49
+ },
50
+ {
51
+ text: ed.getLang( 'advads_shortcode.cancel', 'Cancel' ),
52
+ onclick: 'close'
53
+ }],
54
+
55
+ });
56
+
57
+ append_select_field();
58
+
59
+ });
60
+ },
61
+ });
62
+
63
+ // Register the plugin
64
+ tinymce.PluginManager.add( 'advads_shortcode', tinymce.plugins.advads_shortcode );
65
+
66
+ function append_select_field() {
67
+ var insert_button_wrap = jQuery( '#advads-shortcode-button-insert-wrap' ),
68
+ insert_button = jQuery( '#advads-shortcode-button-insert-wrap button' ),
69
+ container_body = jQuery( '#advads-shortcode-modal-container-body' );
70
+
71
+ insert_button_wrap.addClass( 'mce-disabled' );
72
+ insert_button.prop( 'disabled', true );
73
+
74
+ jQuery.ajax({
75
+ type: 'POST',
76
+ url: ajaxurl,
77
+ data: {
78
+ 'action': 'advads_content_for_shortcode_creator'
79
+ }
80
+ })
81
+ .done( function( data, textStatus, jqXHR ) {
82
+ container_body.html( data );
83
+
84
+ jQuery( '#advads-select-for-shortcode' ).on( 'change', function() {
85
+ if ( jQuery( this ).prop( 'selectedIndex' ) === 0 ) {
86
+ insert_button_wrap.addClass( 'mce-disabled' );
87
+ insert_button.prop( 'disabled', true );
88
+ } else {
89
+ insert_button_wrap.removeClass( 'mce-disabled' );
90
+ insert_button.prop( 'disabled', false );
91
+ }
92
+ });
93
+
94
+ })
95
+ .fail( function( jqXHR, textStatus, errorThrown ) {
96
+ container_body.html( errorThrown );
97
+ });
98
+ }
99
+ })();
admin/class-advanced-ads-admin.php CHANGED
@@ -79,9 +79,12 @@ class Advanced_Ads_Admin {
79
  } else {
80
  add_action( 'plugins_loaded', array( $this, 'wp_plugins_loaded' ) );
81
  }
 
 
82
  // registering custom columns needs to work with and without DOING_AJAX
83
  add_filter( 'manage_advanced_ads_posts_columns', array($this, 'ad_list_columns_head') ); // extra column
84
  add_filter( 'manage_advanced_ads_posts_custom_column', array($this, 'ad_list_columns_content'), 10, 2 ); // extra column
 
85
 
86
  }
87
 
@@ -165,8 +168,10 @@ class Advanced_Ads_Admin {
165
  */
166
  public function enqueue_admin_styles() {
167
  wp_enqueue_style( $this->plugin_slug . '-admin-styles', plugins_url( 'assets/css/admin.css', __FILE__ ), array(), ADVADS_VERSION );
168
- // jQuery ui smoothness style 1.11.4
169
- wp_enqueue_style( $this->plugin_slug . '-jquery-ui-styles', plugins_url( 'assets/jquery-ui/jquery-ui.min.css', __FILE__ ), array(), '1.11.4' );
 
 
170
  //wp_enqueue_style( 'jquery-style', '//code.jquery.com/ui/1.11.3/themes/smoothness/jquery-ui.css' );
171
  }
172
 
@@ -1139,6 +1144,7 @@ class Advanced_Ads_Admin {
1139
  $new_columns[ $key ] = $value;
1140
  if ( $key == 'title' ){
1141
  $new_columns[ 'ad_details' ] = __( 'Ad Details', 'advanced-ads' );
 
1142
  }
1143
  }
1144
 
@@ -1167,7 +1173,7 @@ class Advanced_Ads_Admin {
1167
  return $vars;
1168
  }
1169
 
1170
- /**
1171
  * display ad details in ads list
1172
  *
1173
  * @since 1.3.3
@@ -1193,6 +1199,34 @@ class Advanced_Ads_Admin {
1193
  include ADVADS_BASE_PATH . 'admin/views/ad-list-details-column.php';
1194
  }
1195
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1196
 
1197
  /**
1198
  * add a meta box to post type edit screens with ad settings
@@ -1435,14 +1469,20 @@ class Advanced_Ads_Admin {
1435
  if ( '' == $license_key ) {
1436
  return __( 'Please enter and save a valid license key first.', 'advanced-ads' );
1437
  }
1438
-
1439
  $api_params = array(
1440
  'edd_action'=> 'activate_license',
1441
  'license' => $license_key,
1442
  'item_name' => urlencode( $plugin_name ),
1443
  'url' => home_url()
1444
  );
1445
- $response = wp_remote_get( add_query_arg( $api_params, ADVADS_URL ) );
 
 
 
 
 
 
1446
  if ( is_wp_error( $response ) ) {
1447
  return wp_remote_retrieve_body( $response );
1448
  }
@@ -1461,4 +1501,50 @@ class Advanced_Ads_Admin {
1461
 
1462
  return 1;
1463
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1464
  }
79
  } else {
80
  add_action( 'plugins_loaded', array( $this, 'wp_plugins_loaded' ) );
81
  }
82
+ // add shortcode creator to TinyMCE
83
+ new Advanced_Ads_Shortcode_Creator;
84
  // registering custom columns needs to work with and without DOING_AJAX
85
  add_filter( 'manage_advanced_ads_posts_columns', array($this, 'ad_list_columns_head') ); // extra column
86
  add_filter( 'manage_advanced_ads_posts_custom_column', array($this, 'ad_list_columns_content'), 10, 2 ); // extra column
87
+ add_filter( 'manage_advanced_ads_posts_custom_column', array($this, 'ad_list_columns_timing'), 10, 2 ); // extra column
88
 
89
  }
90
 
168
  */
169
  public function enqueue_admin_styles() {
170
  wp_enqueue_style( $this->plugin_slug . '-admin-styles', plugins_url( 'assets/css/admin.css', __FILE__ ), array(), ADVADS_VERSION );
171
+ if( self::screen_belongs_to_advanced_ads() ){
172
+ // jQuery ui smoothness style 1.11.4
173
+ wp_enqueue_style( $this->plugin_slug . '-jquery-ui-styles', plugins_url( 'assets/jquery-ui/jquery-ui.min.css', __FILE__ ), array(), '1.11.4' );
174
+ }
175
  //wp_enqueue_style( 'jquery-style', '//code.jquery.com/ui/1.11.3/themes/smoothness/jquery-ui.css' );
176
  }
177
 
1144
  $new_columns[ $key ] = $value;
1145
  if ( $key == 'title' ){
1146
  $new_columns[ 'ad_details' ] = __( 'Ad Details', 'advanced-ads' );
1147
+ $new_columns[ 'ad_timing' ] = __( 'Ad Planning', 'advanced-ads' );
1148
  }
1149
  }
1150
 
1173
  return $vars;
1174
  }
1175
 
1176
+ /**
1177
  * display ad details in ads list
1178
  *
1179
  * @since 1.3.3
1199
  include ADVADS_BASE_PATH . 'admin/views/ad-list-details-column.php';
1200
  }
1201
  }
1202
+
1203
+ /**
1204
+ * display ad details in ads list
1205
+ *
1206
+ * @since 1.6.11
1207
+ * @param string $column_name name of the column
1208
+ * @param int $ad_id id of the ad
1209
+ */
1210
+ public function ad_list_columns_timing($column_name, $ad_id) {
1211
+ if ( $column_name == 'ad_timing' ) {
1212
+ $ad = new Advanced_Ads_Ad( $ad_id );
1213
+
1214
+ $expiry = false;
1215
+ $post_future = false;
1216
+ $post_start = get_the_date('U', $ad->id );
1217
+
1218
+ if( isset( $ad->expiry_date ) && $ad->expiry_date ){
1219
+ if( $ad->expiry_date > time() ){
1220
+ $expiry = $ad->expiry_date;
1221
+ }
1222
+ }
1223
+ if( $post_start > time() ){
1224
+ $post_future = $post_start;
1225
+ }
1226
+
1227
+ include ADVADS_BASE_PATH . 'admin/views/ad-list-timing-column.php';
1228
+ }
1229
+ }
1230
 
1231
  /**
1232
  * add a meta box to post type edit screens with ad settings
1469
  if ( '' == $license_key ) {
1470
  return __( 'Please enter and save a valid license key first.', 'advanced-ads' );
1471
  }
1472
+
1473
  $api_params = array(
1474
  'edd_action'=> 'activate_license',
1475
  'license' => $license_key,
1476
  'item_name' => urlencode( $plugin_name ),
1477
  'url' => home_url()
1478
  );
1479
+ // Call the custom API.
1480
+ $response = wp_remote_post( ADVADS_URL, array(
1481
+ 'timeout' => 15,
1482
+ 'sslverify' => false,
1483
+ 'body' => $api_params
1484
+ ) );
1485
+
1486
  if ( is_wp_error( $response ) ) {
1487
  return wp_remote_retrieve_body( $response );
1488
  }
1501
 
1502
  return 1;
1503
  }
1504
+
1505
+ /**
1506
+ * deactivate license key
1507
+ *
1508
+ * @since 1.6.11
1509
+ * @param string $addon string with addon identifier
1510
+ */
1511
+ public function deactivate_license( $addon = '', $plugin_name = '', $options_slug = '' ) {
1512
+
1513
+ if ( '' === $addon || '' === $plugin_name || '' === $options_slug ) {
1514
+ return __( 'Error while trying to disable the license. Please contact support.', 'advanced-ads' );
1515
+ }
1516
+
1517
+ $licenses = get_option(ADVADS_SLUG . '-licenses', array());
1518
+ $license_key = isset($licenses[$addon]) ? $licenses[$addon] : '';
1519
+
1520
+ $api_params = array(
1521
+ 'edd_action' => 'deactivate_license',
1522
+ 'license' => $license_key,
1523
+ 'item_name' => urlencode( $plugin_name )
1524
+ );
1525
+ // Send the remote request
1526
+ $response = wp_remote_post( ADVADS_URL, array(
1527
+ 'body' => $api_params,
1528
+ 'timeout' => 15,
1529
+ 'sslverify' => false,
1530
+ ) );
1531
+
1532
+ if ( is_wp_error( $response ) ) {
1533
+ return wp_remote_retrieve_body( $response );
1534
+ }
1535
+
1536
+ $license_data = json_decode( wp_remote_retrieve_body( $response ) );
1537
+
1538
+ // save license status
1539
+
1540
+ // remove data
1541
+ if( 'deactivated' === $license_data->license ) {
1542
+ delete_option( $options_slug . '-license-status' );
1543
+ delete_option( $options_slug . '-license-expires' );
1544
+ } else {
1545
+ return __( 'License couldn’t be deactivated. Please try again later or contact support.', 'advanced-ads' );
1546
+ }
1547
+
1548
+ return 1;
1549
+ }
1550
  }
admin/includes/class-shortcode-creator.php ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * shortcode generator for TinyMCE editor
4
+ *
5
+ */
6
+ class Advanced_Ads_Shortcode_Creator {
7
+ /**
8
+ * instance of this class.
9
+ *
10
+ * @var object
11
+ */
12
+ protected static $instance = null;
13
+
14
+ public function __construct() {
15
+ add_action( 'init', array ( $this, 'init' ) );
16
+ }
17
+
18
+ /**
19
+ * Return an instance of this class.
20
+ *
21
+ * @return object A single instance of this class.
22
+ */
23
+ public static function get_instance() {
24
+ // If the single instance hasn't been set, set it now.
25
+ if ( null == self::$instance ) {
26
+ self::$instance = new self;
27
+ }
28
+
29
+ return self::$instance;
30
+ }
31
+
32
+ public function init() {
33
+ if ( ! ( current_user_can( 'edit_posts' ) || current_user_can( 'edit_pages' ) ) ) {
34
+ return;
35
+ }
36
+
37
+ if ( 'true' == get_user_option( 'rich_editing' ) ) {
38
+ add_filter( 'mce_external_plugins', array( $this, 'add_plugin' ) );
39
+ add_filter( 'mce_buttons', array( $this, 'register_buttons' ) );
40
+ add_filter( 'mce_external_languages', array( $this, 'add_l10n' ) );
41
+ add_action( 'wp_ajax_advads_content_for_shortcode_creator', array( $this, 'get_content_for_shortcode_creator' ) );
42
+ }
43
+ }
44
+
45
+ /**
46
+ * add the plugin to array of external TinyMCE plugins
47
+ *
48
+ */
49
+ public function add_plugin( $plugin_array ) {
50
+ $plugin_array['advads_shortcode'] = ADVADS_BASE_URL . 'admin/assets/js/shortcode.js';
51
+ return $plugin_array;
52
+ }
53
+
54
+ /**
55
+ * add button to tinyMCE window
56
+ *
57
+ */
58
+ public function register_buttons( $buttons ) {
59
+ $buttons[] = 'advads_shortcode_button';
60
+ return $buttons;
61
+ }
62
+
63
+ /**
64
+ * prints html select field for shortcode creator
65
+ *
66
+ */
67
+ public function get_content_for_shortcode_creator() {
68
+ if ( ! ( current_user_can( 'edit_posts' ) || current_user_can( 'edit_pages' ) ) ) {
69
+ return;
70
+ }
71
+
72
+ $items = self::items_for_select(); ?>
73
+
74
+ <select id="advads-select-for-shortcode">
75
+ <option value=""><?php _e( '--empty--', 'advanced-ads' ); ?></option>
76
+ <?php if ( isset( $items['ads'] ) ) : ?>
77
+ <optgroup label="<?php _e( 'Ads', 'advanced-ads' ); ?>">
78
+ <?php foreach ( $items['ads'] as $_item_id => $_item_title ) : ?>
79
+ <option value="<?php echo $_item_id; ?>"><?php echo $_item_title; ?></option>
80
+ <?php endforeach; ?>
81
+ </optgroup>
82
+ <?php endif; ?>
83
+ <?php if ( isset( $items['groups'] ) ) : ?>
84
+ <optgroup label="<?php _e( 'Ad Groups', 'advanced-ads' ); ?>">
85
+ <?php foreach ( $items['groups'] as $_item_id => $_item_title ) : ?>
86
+ <option value="<?php echo $_item_id; ?>"><?php echo $_item_title; ?></option>
87
+ <?php endforeach; ?>
88
+ </optgroup>
89
+ <?php endif; ?>
90
+ <?php if ( isset( $items['placements'] ) ) : ?>
91
+ <optgroup label="<?php _e( 'Placements', 'advanced-ads' ); ?>">
92
+ <?php foreach ( $items['placements'] as $_item_id => $_item_title ) : ?>
93
+ <option value="<?php echo $_item_id; ?>"><?php echo $_item_title; ?></option>
94
+ <?php endforeach; ?>
95
+ </optgroup>
96
+ <?php endif; ?>
97
+ </select><?php
98
+ exit();
99
+ }
100
+
101
+ /**
102
+ * get items for item select field
103
+ *
104
+ * @return arr $select items for select field
105
+ */
106
+ public static function items_for_select(){
107
+ $select = array();
108
+ $model = Advanced_Ads::get_instance()->get_model();
109
+
110
+ // load all ads
111
+ $ads = $model->get_ads( array( 'orderby' => 'name', 'order' => 'ASC' ) );
112
+ foreach ( $ads as $_ad ){
113
+ $select['ads']['ad_' . $_ad->ID] = $_ad->post_title;
114
+ }
115
+
116
+ // load all ad groups
117
+ $groups = $model->get_ad_groups();
118
+ foreach ( $groups as $_group ){
119
+ $select['groups']['group_' . $_group->term_id] = $_group->name;
120
+ }
121
+
122
+ // load all placements
123
+ $placements = $model->get_ad_placements_array();
124
+ foreach ( $placements as $key => $_placement ) {
125
+ $select['placements']['placement_' . $key] = $_placement['name'];
126
+ }
127
+
128
+ return $select;
129
+ }
130
+
131
+ /**
132
+ * add localisation
133
+ */
134
+ public function add_l10n( $mce_external_languages ) {
135
+ $mce_external_languages[ 'advads_shortcode' ] = ADVADS_BASE_PATH . 'admin/includes/shortcode-creator-l10n.php';
136
+ return $mce_external_languages;
137
+ }
138
+ }
admin/includes/shortcode-creator-l10n.php ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) )
3
+ exit;
4
+
5
+ if ( ! class_exists( '_WP_Editors' ) )
6
+ require( ABSPATH . WPINC . '/class-wp-editor.php' );
7
+
8
+ function advads_shortcode_creator_l10n() {
9
+ $strings = array(
10
+ 'title' => _x( 'Add an ad', 'shortcode creator', 'advanced-ads' ),
11
+ 'ok' => _x( 'Add shortcode', 'shortcode creator', 'advanced-ads' ),
12
+ 'cancel' => _x( 'Cancel', 'shortcode creator', 'advanced-ads' ),
13
+ );
14
+ $locale = _WP_Editors::$mce_locale;
15
+ $translated = 'tinyMCE.addI18n("' . $locale . '.advads_shortcode", ' . json_encode( $strings ) . ");\n";
16
+
17
+ return $translated;
18
+ }
19
+
20
+ $strings = advads_shortcode_creator_l10n();
admin/views/ad-list-timing-column.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <fieldset class="inline-edit-col-left">
2
+ <div class="inline-edit-col"><?php
3
+ if( $post_future ) :
4
+ ?><p><?php printf(__( 'starts %s', 'advanced-ads' ), date( 'd.m.Y, H:i', $post_future ) ); ?></p><?php
5
+ endif;
6
+ if( $expiry ) :
7
+ ?><p><?php printf(__( 'expires %s', 'advanced-ads' ), date( 'd.m.Y, H:i', $expiry ) ); ?></p><?php
8
+ endif;
9
+ if ( ! empty($size) ) :
10
+ ?><p><?php echo $size; ?></p><?php
11
+ endif;
12
+ do_action( 'advanced-ads-ad-list-timing-column-after', $ad );
13
+ ?></div></fieldset>
admin/views/ad-parameters-metabox.php CHANGED
@@ -7,6 +7,16 @@
7
  * @filesource classes/ad-type-content.php :: renter_parameters()
8
  */
9
  do_action( 'advanced-ads-ad-params-before', $ad, $types ); ?>
 
 
 
 
 
 
 
 
 
 
10
  <div id="advanced-ads-ad-parameters">
11
  <?php $type = (isset($types[$ad->type])) ? $types[$ad->type] : current( $types );
12
  $type->render_parameters( $ad );
7
  * @filesource classes/ad-type-content.php :: renter_parameters()
8
  */
9
  do_action( 'advanced-ads-ad-params-before', $ad, $types ); ?>
10
+ <div id="advanced-ads-tinymce-wrapper" style="display:none;">
11
+ <?php
12
+ $args = array(
13
+ // used here instead of textarea_rows, because of display:none
14
+ 'editor_height' => 300,
15
+ 'drag_drop_upload' => true,
16
+ );
17
+ wp_editor( '', 'advanced-ads-tinymce', $args );
18
+ ?>
19
+ </div>
20
  <div id="advanced-ads-ad-parameters">
21
  <?php $type = (isset($types[$ad->type])) ? $types[$ad->type] : current( $types );
22
  $type->render_parameters( $ad );
admin/views/setting-license.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- $errortext = '';
3
  $expires = get_option( $options_slug . '-license-expires', 0 );
4
  $expired = false;
5
  if( $expires ){
@@ -13,26 +13,32 @@ if( $expires ){
13
  };
14
  ?><input type="text" class="regular-text" placeholder="<?php _e( 'License key', 'advanced-ads' ); ?>"
15
  name="<?php echo ADVADS_SLUG . '-licenses'; ?>[<?php echo $index; ?>]"
16
- value="<?php echo esc_attr_e($license_key); ?>"/><?php
 
17
  if( $license_status !== false && $license_status == 'valid' && ! $expired ) :
18
  $show_active = true;
 
 
 
 
 
19
  else :
20
  $show_active = false;
21
  if($license_key !== '') :
22
- ?><button type="button" class="button-secondary advads-license-activate"
23
  data-addon="<?php echo $index; ?>"
24
  data-pluginname="<?php echo $plugin_name; ?>"
25
  data-optionslug="<?php echo $options_slug; ?>"
26
  name="advads_license_activate"><?php _e('Activate License'); ?></button><?php
27
  endif;
28
- if( ! $expired ){
29
- $errortext = ( ! $license_status || $license_status == 'invalid') ? __('license key invalid', 'advanced-ads') : '';
 
 
30
  }
31
  endif;
32
- if( $errortext ) :
33
- ?><span class="advads-license-activate-error"><?php echo $errortext; ?></span><?php
34
- endif;
35
- ?><span class="advads-license-activate-active" <?php if( ! $show_active ) echo 'style="display: none;"'; ?>><?php _e( 'active', 'advanced-ads' );
36
  ?>&nbsp;<?php if( isset( $days_left ) && $days_left > 0 ) echo sprintf( __('(%d days left)', 'advanced-ads' ), $days_left );
37
  ?></span><?php
38
  if($license_key === '') :
1
  <?php
2
+ $errortext = false;
3
  $expires = get_option( $options_slug . '-license-expires', 0 );
4
  $expired = false;
5
  if( $expires ){
13
  };
14
  ?><input type="text" class="regular-text" placeholder="<?php _e( 'License key', 'advanced-ads' ); ?>"
15
  name="<?php echo ADVADS_SLUG . '-licenses'; ?>[<?php echo $index; ?>]"
16
+ value="<?php echo esc_attr_e($license_key); ?>"
17
+ <?php if( $license_status !== false && $license_status == 'valid' && ! $expired ) : ?> disabled="disabled"<?php endif; ?>/><?php
18
  if( $license_status !== false && $license_status == 'valid' && ! $expired ) :
19
  $show_active = true;
20
+ ?><button type="button" class="button-secondary advads-license-deactivate"
21
+ data-addon="<?php echo $index; ?>"
22
+ data-pluginname="<?php echo $plugin_name; ?>"
23
+ data-optionslug="<?php echo $options_slug; ?>"
24
+ name="advads_license_activate"><?php _e('Deactivate License'); ?></button><?php
25
  else :
26
  $show_active = false;
27
  if($license_key !== '') :
28
+ ?><button type="button" class="button-primary advads-license-activate"
29
  data-addon="<?php echo $index; ?>"
30
  data-pluginname="<?php echo $plugin_name; ?>"
31
  data-optionslug="<?php echo $options_slug; ?>"
32
  name="advads_license_activate"><?php _e('Activate License'); ?></button><?php
33
  endif;
34
+ if( '' === trim( $license_key ) ){
35
+ $errortext = __('Please enter a valid license key', 'advanced-ads');
36
+ } elseif( ! $expired ){
37
+ $errortext = ( ! $license_status || $license_status == 'invalid') ? __('License key invalid', 'advanced-ads') : '';
38
  }
39
  endif;
40
+ ?><span class="advads-license-activate-error" <?php if( ! $errortext ) echo 'style="display: none;"'; ?>><?php echo $errortext; ?></span>
41
+ <span class="advads-license-activate-active" <?php if( ! $show_active ) echo 'style="display: none;"'; ?>><?php _e( 'active', 'advanced-ads' );
 
 
42
  ?>&nbsp;<?php if( isset( $days_left ) && $days_left > 0 ) echo sprintf( __('(%d days left)', 'advanced-ads' ), $days_left );
43
  ?></span><?php
44
  if($license_key === '') :
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.6.10.2
16
  * Author: Thomas Maier
17
  * Author URI: http://webgilde.com
18
  * Text Domain: advanced-ads
@@ -38,7 +38,7 @@ define( 'ADVADS_BASE_DIR', dirname( plugin_basename( __FILE__ ) ) ); // director
38
  // general and global slug, e.g. to store options in WP, textdomain
39
  define( 'ADVADS_SLUG', 'advanced-ads' );
40
  define( 'ADVADS_URL', 'https://wpadvancedads.com/' );
41
- define( 'ADVADS_VERSION', '1.6.10.2' );
42
 
43
  /*----------------------------------------------------------------------------*
44
  * 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.6.11
16
  * Author: Thomas Maier
17
  * Author URI: http://webgilde.com
18
  * Text Domain: advanced-ads
38
  // general and global slug, e.g. to store options in WP, textdomain
39
  define( 'ADVADS_SLUG', 'advanced-ads' );
40
  define( 'ADVADS_URL', 'https://wpadvancedads.com/' );
41
+ define( 'ADVADS_VERSION', '1.6.11' );
42
 
43
  /*----------------------------------------------------------------------------*
44
  * Autoloading, modules and functions
classes/ad.php CHANGED
@@ -307,7 +307,7 @@ class Advanced_Ads_Ad {
307
  $visitor_conditions = $this->options['visitors'];
308
 
309
  foreach( $visitor_conditions as $_condition ) {
310
- $result = Advanced_Ads_Visitor_Conditions::frontend_check( $_condition );
311
  if( ! $result ) {
312
  // return false only, if the next condition doesn’t have an OR operator
313
  $next = next( $visitor_conditions );
307
  $visitor_conditions = $this->options['visitors'];
308
 
309
  foreach( $visitor_conditions as $_condition ) {
310
+ $result = Advanced_Ads_Visitor_Conditions::frontend_check( $_condition, $this );
311
  if( ! $result ) {
312
  // return false only, if the next condition doesn’t have an OR operator
313
  $next = next( $visitor_conditions );
classes/ad_ajax_callbacks.php CHANGED
@@ -28,6 +28,7 @@ class Advanced_Ads_Ad_Ajax_Callbacks {
28
  add_action( 'wp_ajax_advads-close-notice', array( $this, 'close_notice' ) );
29
  add_action( 'wp_ajax_advads-subscribe-notice', array( $this, 'subscribe' ) );
30
  add_action( 'wp_ajax_advads-activate-license', array( $this, 'activate_license' ) );
 
31
  }
32
 
33
  /**
@@ -161,4 +162,22 @@ class Advanced_Ads_Ad_Ajax_Callbacks {
161
 
162
  die();
163
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
164
  }
28
  add_action( 'wp_ajax_advads-close-notice', array( $this, 'close_notice' ) );
29
  add_action( 'wp_ajax_advads-subscribe-notice', array( $this, 'subscribe' ) );
30
  add_action( 'wp_ajax_advads-activate-license', array( $this, 'activate_license' ) );
31
+ add_action( 'wp_ajax_advads-deactivate-license', array( $this, 'deactivate_license' ) );
32
  }
33
 
34
  /**
162
 
163
  die();
164
  }
165
+
166
+ /**
167
+ * deactivate license of an add-on
168
+ *
169
+ * @since 1.6.11
170
+ */
171
+ public function deactivate_license(){
172
+
173
+
174
+ // check nonce
175
+ check_ajax_referer( 'advads_ajax_license_nonce', 'security' );
176
+
177
+ if ( !isset( $_POST['addon'] ) || $_POST['addon'] === '' ) { die(); }
178
+
179
+ echo Advanced_Ads_Admin::get_instance()->deactivate_license( $_POST['addon'], $_POST['pluginname'], $_POST['optionslug'] );
180
+
181
+ die();
182
+ }
183
  }
classes/ad_placements.php CHANGED
@@ -57,6 +57,11 @@ class Advanced_Ads_Placements {
57
  'description' => __( 'Injected into the post content. You can choose the paragraph after which the ad content is displayed.', 'advanced-ads' ),
58
  'image' => ADVADS_BASE_URL . 'admin/assets/img/placements/content-within.png'
59
  ),
 
 
 
 
 
60
  );
61
  return apply_filters( 'advanced-ads-placement-types', $types );
62
  }
@@ -317,7 +322,9 @@ class Advanced_Ads_Placements {
317
  $content = mb_convert_encoding( $content, 'HTML-ENTITIES', $wpCharset );
318
  }
319
 
320
- if ( Advanced_Ads_Plugin::get_instance()->get_content_injection_priority() < 10 ) {
 
 
321
  $content = wpautop( $content );
322
  }
323
 
57
  'description' => __( 'Injected into the post content. You can choose the paragraph after which the ad content is displayed.', 'advanced-ads' ),
58
  'image' => ADVADS_BASE_URL . 'admin/assets/img/placements/content-within.png'
59
  ),
60
+ 'sidebar_widget' => array(
61
+ 'title' => __( 'Sidebar Widget', 'advanced-ads' ),
62
+ 'description' => __( 'Create a sidebar widget with an ad. Can be placed and used like any other widget.', 'advanced-ads' ),
63
+ 'image' => ADVADS_BASE_URL . 'admin/assets/img/placements/widget.png'
64
+ ),
65
  );
66
  return apply_filters( 'advanced-ads-placement-types', $types );
67
  }
322
  $content = mb_convert_encoding( $content, 'HTML-ENTITIES', $wpCharset );
323
  }
324
 
325
+ // check which priority the wpautop filter has; might have been disabled on purpose
326
+ $wpautop_priority = has_filter( 'the_content', 'wpautop');
327
+ if ( $wpautop_priority && Advanced_Ads_Plugin::get_instance()->get_content_injection_priority() < $wpautop_priority ) {
328
  $content = wpautop( $content );
329
  }
330
 
classes/ad_type_content.php CHANGED
@@ -59,17 +59,9 @@ class Advanced_Ads_Ad_Type_Content extends Advanced_Ads_Ad_Type_Abstract{
59
  *
60
  * don’t build it when ajax is used; display message and buttons instead
61
  */
62
- if ( defined( 'DOING_AJAX' ) ){
63
- ?><p><?php _e( 'Please <strong>save the ad</strong> before changing it to the content type.', 'advanced-ads' ); ?></p><?php
64
- $status = get_post_status( $ad->id );
65
- if ( 'publish' != $status && 'future' != $status && 'pending' != $status ) { ?>
66
- <input <?php if ( 'private' == $status ) { ?>style="display:none"<?php } ?> type="submit" name="save" id="save-post" value="<?php esc_attr_e( 'Save Draft' ); ?>" class="button button-primary" />
67
- <?php } else {
68
- ?><input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e( 'Update' ) ?>" />
69
- <input name="save" type="submit" class="button button-primary button-large" id="publish" accesskey="p" value="<?php esc_attr_e( 'Update' ) ?>" /><?php
70
- }
71
- if ( ! empty($ad->content) ) : ?><textarea id="advads-ad-content-plain" style="display:none;" cols="1" rows="1" name="advanced_ad[content]"><?php
72
- echo $ad->content; ?></textarea><?php endif;
73
  } else {
74
  $args = array(
75
  'textarea_name' => 'advanced_ad[content]',
59
  *
60
  * don’t build it when ajax is used; display message and buttons instead
61
  */
62
+ if ( defined( 'DOING_AJAX' ) ){ ?>
63
+ <textarea id="advads-ad-content-plain" style="display:none;" cols="40" rows="10" name="advanced_ad[content]"><?php echo $content; ?></textarea>
64
+ <?php
 
 
 
 
 
 
 
 
65
  } else {
66
  $args = array(
67
  'textarea_name' => 'advanced_ad[content]',
classes/visitor-conditions.php CHANGED
@@ -169,9 +169,10 @@ class Advanced_Ads_Visitor_Conditions {
169
  * controls frontend checks for conditions
170
  *
171
  * @param arr $options options of the condition
 
172
  * @return bool false, if ad can’t be delivered
173
  */
174
- static function frontend_check( $options = array() ){
175
  $visitor_conditions = Advanced_Ads_Visitor_Conditions::get_instance()->conditions;
176
 
177
  if ( is_array( $options ) && isset( $visitor_conditions[ $options['type'] ]['check'] ) ) {
@@ -182,7 +183,7 @@ class Advanced_Ads_Visitor_Conditions {
182
 
183
  // call frontend check callback
184
  if ( method_exists( $check[0], $check[1] ) ) {
185
- return call_user_func( array( $check[0], $check[1] ), $options );
186
  }
187
 
188
  return true;
169
  * controls frontend checks for conditions
170
  *
171
  * @param arr $options options of the condition
172
+ * @param ob $ad Advanced_Ads_Ad
173
  * @return bool false, if ad can’t be delivered
174
  */
175
+ static function frontend_check( $options = array(), $ad = false ){
176
  $visitor_conditions = Advanced_Ads_Visitor_Conditions::get_instance()->conditions;
177
 
178
  if ( is_array( $options ) && isset( $visitor_conditions[ $options['type'] ]['check'] ) ) {
183
 
184
  // call frontend check callback
185
  if ( method_exists( $check[0], $check[1] ) ) {
186
+ return call_user_func( array( $check[0], $check[1] ), $options, $ad );
187
  }
188
 
189
  return true;
classes/widget.php CHANGED
@@ -68,10 +68,17 @@ class Advanced_Ads_Widget extends WP_Widget {
68
  ?><p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label>
69
  <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" /></p><?php
70
 
71
- $items = self::items_for_select();
72
  ?>
73
  <select id="<?php echo $this->get_field_id( 'item_id' ); ?>" name="<?php echo $this->get_field_name( 'item_id' ); ?>">
74
  <option value=""><?php _e( '--empty--', 'advanced-ads' ); ?></option>
 
 
 
 
 
 
 
75
  <?php if ( isset($items['groups']) ) : ?>
76
  <optgroup label="<?php _e( 'Ad Groups', 'advanced-ads' ); ?>">
77
  <?php foreach ( $items['groups'] as $_item_id => $_item_title ) : ?>
@@ -113,7 +120,26 @@ class Advanced_Ads_Widget extends WP_Widget {
113
 
114
  return $select;
115
  }
116
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
117
  /**
118
  * return content of an in a widget
119
  *
@@ -124,17 +150,21 @@ class Advanced_Ads_Widget extends WP_Widget {
124
  // get placement data for the slug
125
  if ( empty($id) ) { return; }
126
 
127
- $item = explode( '_', $id );
128
-
129
  if ( isset($item[1]) ) {
130
- $item_id = absint( $item[1] ); }
131
- elseif (empty($item_id)) return;
 
 
132
 
133
  // return either ad or group content
134
  if ( $item[0] == 'ad' ){
135
- return get_ad( $item_id );
136
  } elseif ( $item[0] == 'group' ){
137
- return get_ad_group( $item_id );
 
 
138
  }
139
 
140
  return;
68
  ?><p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label>
69
  <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" /></p><?php
70
 
71
+ $items = array_merge( self::items_for_select(), self::widget_placements_for_select() );
72
  ?>
73
  <select id="<?php echo $this->get_field_id( 'item_id' ); ?>" name="<?php echo $this->get_field_name( 'item_id' ); ?>">
74
  <option value=""><?php _e( '--empty--', 'advanced-ads' ); ?></option>
75
+ <?php if ( isset($items['placements']) ) : ?>
76
+ <optgroup label="<?php _e( 'Placements', 'advanced-ads' ); ?>">
77
+ <?php foreach ( $items['placements'] as $_item_id => $_item_title ) : ?>
78
+ <option value="<?php echo $_item_id; ?>" <?php selected( $_item_id, $elementid ); ?>><?php echo $_item_title; ?></option>
79
+ <?php endforeach; ?>
80
+ </optgroup>
81
+ <?php endif; ?>
82
  <?php if ( isset($items['groups']) ) : ?>
83
  <optgroup label="<?php _e( 'Ad Groups', 'advanced-ads' ); ?>">
84
  <?php foreach ( $items['groups'] as $_item_id => $_item_title ) : ?>
120
 
121
  return $select;
122
  }
123
+
124
+ /**
125
+ * get widget placements for select field
126
+ *
127
+ * @since 1.6.11
128
+ * @return arr $items for select field
129
+ */
130
+ public static function widget_placements_for_select(){
131
+ $select = array();
132
+ $placements = Advanced_Ads::get_ad_placements_array();
133
+
134
+ foreach( $placements as $_placement_slug => $_placement ){
135
+ if( 'sidebar_widget' === $_placement['type'] ){
136
+ $select['placements']['placement_' . $_placement_slug ] = $_placement['name'];
137
+ }
138
+ }
139
+
140
+ return $select;
141
+ }
142
+
143
  /**
144
  * return content of an in a widget
145
  *
150
  // get placement data for the slug
151
  if ( empty($id) ) { return; }
152
 
153
+ $item = explode( '_', $id, 2 );
154
+
155
  if ( isset($item[1]) ) {
156
+ $item_id = $item[1];
157
+ } elseif (empty($item_id)) {
158
+ return;
159
+ }
160
 
161
  // return either ad or group content
162
  if ( $item[0] == 'ad' ){
163
+ return get_ad( absint( $item_id ) );
164
  } elseif ( $item[0] == 'group' ){
165
+ return get_ad_group( abs_int( $item_id ) );
166
+ } elseif ( $item[0] == 'placement' ){
167
+ return get_ad_placement( $item_id );
168
  }
169
 
170
  return;
languages/advanced-ads-de_DE.mo CHANGED
Binary file
languages/advanced-ads-de_DE.po CHANGED
@@ -3,7 +3,7 @@ msgstr ""
3
  "Project-Id-Version: Advanved Ads\n"
4
  "Report-Msgid-Bugs-To: http://wordpress.org/plugins/plugin-name\n"
5
  "POT-Creation-Date: 2015-01-27 16:47+0100\n"
6
- "PO-Revision-Date: Mon Oct 12 2015 13:12:09 GMT+0200 (CEST)\n"
7
  "Last-Translator: admin <post@webzunft.de>\n"
8
  "Language-Team: webgilde <thomas.maier@webgilde.com>\n"
9
  "Language: German\n"
@@ -26,23 +26,77 @@ msgstr ""
26
  "X-Textdomain-Support: yes\n"
27
  "X-Loco-Target-Locale: de_DE"
28
 
29
- #: ../admin/views/ad-output-metabox.php:33
30
- msgid "container id"
31
- msgstr "Container-ID"
 
 
 
 
32
 
33
- #: ../admin/views/ad-output-metabox.php:36
34
- msgid "Specify the id of the ad container. Leave blank for random or no id."
35
- msgstr "ID des Containers festlegen. Leer lassen für zufällige oder keine ID."
36
 
37
- #: ../admin/views/ad-output-metabox.php:38
38
- msgid "container classes"
39
- msgstr "Container-Class"
 
40
 
41
- #: ../admin/views/ad-output-metabox.php:41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  msgid ""
43
- "Specify one or more classes for the container. Separate multiple classes "
44
- "with a space"
45
- msgstr "Eine oder mehrere, durch Leerzeichen festgelegte Class-Attribute."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
 
47
  #. Name of the plugin
48
  msgid "Advanced Ads"
@@ -64,67 +118,70 @@ msgstr "Thomas Maier"
64
  msgid "http://webgilde.com"
65
  msgstr "http://webgilde.com"
66
 
67
- #: ../admin/class-advanced-ads-admin.php:246
68
  msgid "Overview"
69
  msgstr "Übersicht"
70
 
71
- #: ../admin/class-advanced-ads-admin.php:250 ../admin/class-advanced-ads-admin.
72
- #: php:250 ../admin/views/ad-group-list-form-row.php:28 ../admin/views/ad-group-
73
- #: list-header.php:5 ../admin/views/placements.php:80 ../admin/views/placements.
74
- #: php:184 ../classes/widget.php:83 ../public/class-advanced-ads.php:563
 
75
  msgid "Ads"
76
  msgstr "Anzeigen"
77
 
78
- #: ../admin/class-advanced-ads-admin.php:254 ../admin/views/placements.php:73 ..
79
- #: admin/views/placements.php:177 ../classes/widget.php:76
 
80
  msgid "Ad Groups"
81
  msgstr "Anzeigen-Gruppen"
82
 
83
- #: ../admin/class-advanced-ads-admin.php:254 ../public/class-advanced-ads.php:536
84
  msgid "Groups"
85
  msgstr "Gruppen"
86
 
87
- #: ../admin/class-advanced-ads-admin.php:259 ../admin/views/debug.php:14
88
  msgid "Ad Placements"
89
  msgstr "Anzeigen-Platzierungen"
90
 
91
- #: ../admin/class-advanced-ads-admin.php:259 ../admin/views/placements.php:18
 
92
  msgid "Placements"
93
  msgstr "Platzierungen"
94
 
95
- #: ../admin/class-advanced-ads-admin.php:263
96
  msgid "Advanced Ads Settings"
97
  msgstr "Advanced-Ads-Einstellungen"
98
 
99
- #: ../admin/class-advanced-ads-admin.php:263 ../admin/class-advanced-ads-admin.
100
- #: php:490 ../admin/views/debug.php:11
101
  msgid "Settings"
102
  msgstr "Einstellungen"
103
 
104
- #: ../admin/class-advanced-ads-admin.php:266
105
  msgid "Advanced Ads Debugging"
106
  msgstr "Advanced-Ads-Fehleranalyse (Debugging)"
107
 
108
- #: ../admin/class-advanced-ads-admin.php:266
109
  msgid "Debug"
110
  msgstr "Debug"
111
 
112
- #: ../admin/class-advanced-ads-admin.php:270 ../admin/class-advanced-ads-admin.
113
- #: php:270
114
  msgid "Advanced Ads Intro"
115
  msgstr "Advanced Ads Einführung"
116
 
117
- #: ../admin/class-advanced-ads-admin.php:274 ../admin/class-advanced-ads-admin.
118
- #: php:274
119
  msgid "Support"
120
  msgstr "Support"
121
 
122
- #: ../admin/class-advanced-ads-admin.php:404 ../admin/class-advanced-ads-admin.
123
- #: php:431
124
  msgid "Sorry, you are not allowed to access this feature."
125
  msgstr "Sie haben leider keinen Zugriff auf diese Funktion"
126
 
127
- #: ../admin/class-advanced-ads-admin.php:417
128
  msgid ""
129
  "You attempted to edit an ad group that doesn&#8217;t exist. Perhaps it was "
130
  "deleted?"
@@ -132,174 +189,174 @@ msgstr ""
132
  "Sie haben versucht, ein Element, das nicht existiert, zu bearbeiten. "
133
  "Vielleicht wurde es gelöscht?"
134
 
135
- #: ../admin/class-advanced-ads-admin.php:532
136
  msgid "Ad Type"
137
  msgstr "Anzeigen-Typ"
138
 
139
- #: ../admin/class-advanced-ads-admin.php:535
140
  msgid "Ad Parameters"
141
  msgstr "Anzeigen-Parameter"
142
 
143
- #: ../admin/class-advanced-ads-admin.php:538
144
  msgid "Layout / Output"
145
  msgstr "Layout / Ausgabe"
146
 
147
- #: ../admin/class-advanced-ads-admin.php:541
148
  msgid "Display Conditions"
149
  msgstr "Anzeige-Bedingungen"
150
 
151
- #: ../admin/class-advanced-ads-admin.php:544
152
  msgid "Visitor Conditions"
153
  msgstr "Besucher-Bedingungen"
154
 
155
- #: ../admin/class-advanced-ads-admin.php:724 ../admin/class-advanced-ads-admin.
156
- #: php:725
157
  msgid "Ad updated."
158
  msgstr "Anzeige aktualisiert."
159
 
160
  #. translators: %s: date and time of the revision
161
- #: ../admin/class-advanced-ads-admin.php:727
162
  #, php-format
163
  msgid "Ad restored to revision from %s"
164
  msgstr "Anzeige aus Revision %s wiederhergestellt"
165
 
166
- #: ../admin/class-advanced-ads-admin.php:728
167
  msgid "Ad published."
168
  msgstr "Anzeige veröffentlicht."
169
 
170
- #: ../admin/class-advanced-ads-admin.php:729
171
  msgid "Ad saved."
172
  msgstr "Anzeige gespeichert."
173
 
174
- #: ../admin/class-advanced-ads-admin.php:730
175
  msgid "Ad submitted."
176
  msgstr "Anzeige gesendet."
177
 
178
- #: ../admin/class-advanced-ads-admin.php:732
179
  #, php-format
180
  msgid "Ad scheduled for: <strong>%1$s</strong>."
181
  msgstr "Anzeige geplant für <strong>%1$s</strong>."
182
 
183
  #. translators: Publish box date format, see http://php.net/date
184
- #: ../admin/class-advanced-ads-admin.php:734
185
  msgid "M j, Y @ G:i"
186
  msgstr "j M Y @ G:i"
187
 
188
- #: ../admin/class-advanced-ads-admin.php:736
189
  msgid "Ad draft updated."
190
  msgstr "Anzeigenentwurf gespeichert."
191
 
192
- #: ../admin/class-advanced-ads-admin.php:755
193
  #, php-format
194
  msgid "%s ad updated."
195
  msgid_plural "%s ads updated."
196
  msgstr[0] "%s Anzeige aktualisiert."
197
  msgstr[1] "%s Anzeigen aktualisiert."
198
 
199
- #: ../admin/class-advanced-ads-admin.php:756
200
  #, php-format
201
  msgid "%s ad not updated, somebody is editing it."
202
  msgid_plural "%s ads not updated, somebody is editing them."
203
  msgstr[0] "%s Anzeige nicht aktualisiert, jemand bearbeitet sie."
204
  msgstr[1] "%s Anzeigen nicht aktualisiert, jemand bearbeitet sie."
205
 
206
- #: ../admin/class-advanced-ads-admin.php:757
207
  #, php-format
208
  msgid "%s ad permanently deleted."
209
  msgid_plural "%s ads permanently deleted."
210
  msgstr[0] "%s Anzeige endgültig gelöscht."
211
  msgstr[1] "%s Anzeigen endgültig gelöscht."
212
 
213
- #: ../admin/class-advanced-ads-admin.php:758
214
  #, php-format
215
  msgid "%s ad moved to the Trash."
216
  msgid_plural "%s ads moved to the Trash."
217
  msgstr[0] "%s Anzeige in den Papierkorb verschoben."
218
  msgstr[1] "%s Anzeigen in den Papierkorb verschoben."
219
 
220
- #: ../admin/class-advanced-ads-admin.php:759
221
  #, php-format
222
  msgid "%s ad restored from the Trash."
223
  msgid_plural "%s ads restored from the Trash."
224
  msgstr[0] "%s Anzeige aus dem Papierkorb wiederhergestellt."
225
  msgstr[1] "%s Anzeige aus dem Papierkorb wiederhergestellt."
226
 
227
- #: ../admin/class-advanced-ads-admin.php:794 ../admin/views/settings.php:12
228
  msgid "General"
229
  msgstr "Allgemein"
230
 
231
- #: ../admin/class-advanced-ads-admin.php:806 ../admin/class-advanced-ads-admin.
232
- #: php:902
233
  msgid "Licenses"
234
  msgstr "Lizenzen"
235
 
236
- #: ../admin/class-advanced-ads-admin.php:817
237
  msgid "Disable ads"
238
  msgstr "Anzeigen auf dieser Seite deaktivieren."
239
 
240
- #: ../admin/class-advanced-ads-admin.php:825
241
  msgid "Hide ads for logged in users"
242
  msgstr "Verstecke Anzeigen vor eingeloggten Benutzern"
243
 
244
- #: ../admin/class-advanced-ads-admin.php:833
245
  msgid "Use advanced JavaScript"
246
  msgstr "Advanced-JavaScript benutzen"
247
 
248
- #: ../admin/class-advanced-ads-admin.php:841
249
  msgid "Unlimited ad injection"
250
  msgstr "Anzeigen-Injektion überall aktivieren "
251
 
252
- #: ../admin/class-advanced-ads-admin.php:849
253
  msgid "Priority of content injection filter"
254
  msgstr "Priorität der Anzeigen-Injektion"
255
 
256
- #: ../admin/class-advanced-ads-admin.php:857
257
  msgid "Hide ads from bots"
258
  msgstr "Anzeigen vor Bots verbergen"
259
 
260
- #: ../admin/class-advanced-ads-admin.php:865
261
  msgid "Disable notices"
262
  msgstr "Mitteilungen deaktivieren"
263
 
264
- #: ../admin/class-advanced-ads-admin.php:873
265
  msgid "ID prefix"
266
  msgstr "ID Präfix"
267
 
268
- #: ../admin/class-advanced-ads-admin.php:881
269
  msgid "Remove Widget ID"
270
  msgstr "ID des Widget entfernen"
271
 
272
- #: ../admin/class-advanced-ads-admin.php:956
273
  msgid "(display to all)"
274
  msgstr "(für alle sichtbar)"
275
 
276
- #: ../admin/class-advanced-ads-admin.php:957
277
  msgid "Subscriber"
278
  msgstr "Abonnent"
279
 
280
- #: ../admin/class-advanced-ads-admin.php:958
281
  msgid "Contributor"
282
  msgstr "Mitarbeiter"
283
 
284
- #: ../admin/class-advanced-ads-admin.php:959
285
  msgid "Author"
286
  msgstr "Autor"
287
 
288
- #: ../admin/class-advanced-ads-admin.php:960
289
  msgid "Editor"
290
  msgstr "Redakteur"
291
 
292
- #: ../admin/class-advanced-ads-admin.php:961
293
  msgid "Admin"
294
  msgstr "Admin"
295
 
296
- #: ../admin/class-advanced-ads-admin.php:969
297
  msgid "Choose the lowest role a user must have in order to not see any ads."
298
  msgstr ""
299
  "Wählen Sie die niedrigste Rolle die ein Benutzer haben muss um keine "
300
  "Anzeigen zu sehen."
301
 
302
- #: ../admin/class-advanced-ads-admin.php:983
303
  msgid ""
304
  "<strong>notice: </strong>the file is currently enabled by an add-on that "
305
  "needs it."
@@ -307,7 +364,7 @@ msgstr ""
307
  "<strong>Hinweis: </strong>die Datei wird aktuell von einer Erweiterung "
308
  "benutzt."
309
 
310
- #: ../admin/class-advanced-ads-admin.php:986
311
  #, php-format
312
  msgid ""
313
  "Enable advanced JavaScript functions (<a href=\"%s\" target=\"_blank\">here</a>)."
@@ -318,7 +375,7 @@ msgstr ""
318
  "target=\"_blank\">Info</a>). Einige Funktionen und Erweiterungen können diese "
319
  "Einstellung überschreiben, wenn sie die Datei benötigen."
320
 
321
- #: ../admin/class-advanced-ads-admin.php:999
322
  msgid ""
323
  "Some plugins and themes trigger ad injection where it shouldn’t happen. "
324
  "Therefore, Advanced Ads ignores injected placements on non-singular pages "
@@ -336,7 +393,7 @@ msgstr ""
336
  "werden überall dort, wo Beiträge geladen werden, angezeigt (z.B. auch auf "
337
  "Archiv-Seiten)."
338
 
339
- #: ../admin/class-advanced-ads-admin.php:1013
340
  msgid ""
341
  "Play with this value in order to change the priority of the injected ads "
342
  "compared to other auto injected elements in the post content."
@@ -344,7 +401,7 @@ msgstr ""
344
  "Ändern Sie diesen Wert um die Position automatisch eingefügter Anzeigen im "
345
  "Content gegenüber anderer Elementen zu beeinflussen."
346
 
347
- #: ../admin/class-advanced-ads-admin.php:1026
348
  #, php-format
349
  msgid ""
350
  "Hide ads from crawlers, bots and empty user agents. Also prevents counting "
@@ -355,7 +412,7 @@ msgstr ""
355
  "werden mit dem <a href=\"%s\" target=\"_blank\">Tracking Add-On</a> dann auch "
356
  "keine Impressionen mehr gezählt."
357
 
358
- #: ../admin/class-advanced-ads-admin.php:1027
359
  msgid ""
360
  "Disabling this option only makes sense if your ads contain content you want "
361
  "to display to bots (like search engines) or your site is cached and bots "
@@ -364,7 +421,7 @@ msgstr ""
364
  "Deaktivieren Sie diese Option, wenn Bots (z.B. Suchmaschinen) die "
365
  "Werbeinhalte sehen sollen oder Ihre Seite einen Cache nutzt."
366
 
367
- #: ../admin/class-advanced-ads-admin.php:1040
368
  msgid ""
369
  "Disable internal notices like tips, tutorials, email newsletters and update "
370
  "notices. Disabling notices is recommended if you run multiple blogs with "
@@ -375,7 +432,7 @@ msgstr ""
375
  "diese Einstellung, wenn Sie Advanced Ads auf mehreren Blog installiert \n"
376
  "haben."
377
 
378
- #: ../admin/class-advanced-ads-admin.php:1062
379
  msgid ""
380
  "Prefix of class or id attributes in the frontend. Change it if you don’t "
381
  "want <strong>ad blockers</strong> to mark these blocks as ads.<br/>You might "
@@ -384,7 +441,7 @@ msgstr ""
384
  "Präfix der class oder id Attribute im Frontend. Eine Änderung kann helfen "
385
  "damit Ad-Blocker die Inhalte nicht pauschal entfernen."
386
 
387
- #: ../admin/class-advanced-ads-admin.php:1083
388
  msgid ""
389
  "Remove the ID attribute from widgets in order to not make them an easy "
390
  "target of ad blockers."
@@ -392,54 +449,54 @@ msgstr ""
392
  "ID-Attribut des Anzeigenwidgets entfernen, damit Ad-Blocker hier keinen "
393
  "Ansatz haben es zu blockieren."
394
 
395
- #: ../admin/class-advanced-ads-admin.php:1136
396
  msgid "Ad Details"
397
  msgstr "Anzeigeneinstellungen"
398
 
399
- #: ../admin/class-advanced-ads-admin.php:1210
400
  msgid "Ad Settings"
401
  msgstr "Anzeigen-Einstellungen"
402
 
403
- #: ../admin/class-advanced-ads-admin.php:1289 ../admin/views/overview.php:23
404
  msgid "Ads Dashboard"
405
  msgstr "Anzeigen-Dashboard"
406
 
407
- #: ../admin/class-advanced-ads-admin.php:1301
408
  msgid "From the ad optimization universe"
409
  msgstr "Neues aus dem Anzeigen-Universum"
410
 
411
- #: ../admin/class-advanced-ads-admin.php:1310
412
  msgid "Advanced Ads Tutorials"
413
  msgstr "Advanced Ads Tutorials"
414
 
415
- #: ../admin/class-advanced-ads-admin.php:1321
416
  #, php-format
417
  msgid "%d ads – <a href=\"%s\">manage</a> - <a href=\"%s\">new</a>"
418
  msgstr "%d Anzeigen – <a href=\"%s\">verwalten</a> - <a href=\"%s\">neu</a>"
419
 
420
- #: ../admin/class-advanced-ads-admin.php:1332
421
  msgid "plugin manual and homepage"
422
  msgstr "Plugin-Anleitung und Homepage"
423
 
424
- #: ../admin/class-advanced-ads-admin.php:1339
425
  msgid "Get the tutorial via email"
426
  msgstr "Tutorial per E-Mail (engl.)\n"
427
 
428
- #: ../admin/class-advanced-ads-admin.php:1346
429
  msgid "Get AdSense tips via email"
430
  msgstr "AdSense Tips per E-Mail (engl.)"
431
 
432
- #: ../admin/class-advanced-ads-admin.php:1425
433
  msgid "Error while trying to register the license. Please contact support."
434
  msgstr ""
435
  "Die Lizenz konnte nicht registriert werden. Bitte kontaktieren Sie den "
436
  "Support."
437
 
438
- #: ../admin/class-advanced-ads-admin.php:1431
439
  msgid "Please enter and save a valid license key first."
440
  msgstr "Bitte speichern Sie zunächst einen gültigen Lizenzschlüssel."
441
 
442
- #: ../admin/class-advanced-ads-admin.php:1451
443
  #, php-format
444
  msgid "License is invalid. Reason: %s"
445
  msgstr "Die Lizenz ist ungültig. Grund: %s"
@@ -491,7 +548,7 @@ msgid "Display ads with the highest ad weight first"
491
  msgstr "Anzeigen mit dem höchsten Anzeigengewicht zuerst einblenden."
492
 
493
  #: ../admin/includes/class-ad-groups-list.php:259 ../public/class-advanced-ads.
494
- #: php:567
495
  msgid "Edit"
496
  msgstr "Bearbeiten"
497
 
@@ -954,6 +1011,10 @@ msgstr "Erstelle einen Slider aus deinen Anzeigen."
954
  msgid "Get the Slider add-on"
955
  msgstr "Slider-Erweiterung holen"
956
 
 
 
 
 
957
  #: ../admin/includes/notices.php:14
958
  #, php-format
959
  msgid ""
@@ -1109,8 +1170,7 @@ msgstr "Beschreibung"
1109
  msgid "Create new Ad Group"
1110
  msgstr "Neue Anzeigengruppe erstellen"
1111
 
1112
- #: ../admin/views/ad-group-edit.php:59 ../classes/ad_type_content.php:68 ..
1113
- #: classes/ad_type_content.php:69
1114
  msgid "Update"
1115
  msgstr "Update"
1116
 
@@ -1141,7 +1201,7 @@ msgid "Number of ads that are visible at the same time"
1141
  msgstr "Anzahl der Anzeigen, die gleichzeitig sichtbar sein sollen."
1142
 
1143
  #: ../admin/views/ad-group-list-form-row.php:31 ../public/class-advanced-ads.php:
1144
- #: 564
1145
  msgid "Ad"
1146
  msgstr "Anzeige"
1147
 
@@ -1184,11 +1244,6 @@ msgstr "Typ: %s"
1184
  msgid "ID: %s"
1185
  msgstr "ID: %s"
1186
 
1187
- #: ../admin/views/ad-group-list-row.php:21
1188
- #, php-format
1189
- msgid "Slug: %s"
1190
- msgstr "Slug: %s"
1191
-
1192
  #: ../admin/views/ad-group.php:18
1193
  msgid "Ad Groups successfully updated"
1194
  msgstr "Anzeigengruppe erfolgreich aktualisiert."
@@ -1413,15 +1468,33 @@ msgstr ""
1413
  "Tipp: Verwenden Sie dies, um einen Abstand zwischen Anzeige und Inhalt "
1414
  "einzufügen."
1415
 
1416
- #: ../admin/views/ad-parameters-metabox.php:15 ../classes/ad_ajax_callbacks.php:51
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1417
  msgid "size:"
1418
  msgstr "Größe:"
1419
 
1420
- #: ../admin/views/ad-parameters-metabox.php:16 ../classes/ad_ajax_callbacks.php:52
1421
  msgid "width"
1422
  msgstr "Breite"
1423
 
1424
- #: ../admin/views/ad-parameters-metabox.php:17 ../classes/ad_ajax_callbacks.php:53
1425
  msgid "height"
1426
  msgstr "Höhe"
1427
 
@@ -1840,20 +1913,16 @@ msgstr "Lizenzschlüssel"
1840
  msgid "Activate License"
1841
  msgstr "Lizenz aktivieren"
1842
 
1843
- #: ../admin/views/setting-license.php:29
1844
- msgid "license key invalid"
1845
- msgstr "Lizenzschlüssel ungültig"
1846
-
1847
- #: ../admin/views/setting-license.php:35
1848
  msgid "active"
1849
  msgstr "aktiv"
1850
 
1851
- #: ../admin/views/setting-license.php:36
1852
  #, php-format
1853
  msgid "(%d days left)"
1854
  msgstr "(noch %d Tage)"
1855
 
1856
- #: ../admin/views/setting-license.php:39
1857
  msgid ""
1858
  "1. enter the key and save options; 2. click the activate button behind the "
1859
  "field"
@@ -2009,11 +2078,11 @@ msgstr ""
2009
  "Plugins die (teilweise) Probleme verursachen können: <strong>%1$s</strong>. "
2010
  "<a href=\"%2$s\" target=\"_blank\">Mehr erfahren</a>."
2011
 
2012
- #: ../admin/views/support.php:53
2013
  msgid "Contact"
2014
  msgstr "Kontakt aufnehmen"
2015
 
2016
- #: ../admin/views/support.php:54
2017
  #, php-format
2018
  msgid ""
2019
  "Please search the manual for a solution and take a look at <a href=\"%s\" "
@@ -2023,19 +2092,19 @@ msgstr ""
2023
  "sich die Vorschläge unter <a href=\"%s\" target=\"_blank\">Ads not showing up?"
2024
  "</a> an."
2025
 
2026
- #: ../admin/views/support.php:59
2027
  msgid "your email"
2028
  msgstr "E-Mail"
2029
 
2030
- #: ../admin/views/support.php:63
2031
  msgid "your name"
2032
  msgstr "Name"
2033
 
2034
- #: ../admin/views/support.php:67
2035
  msgid "your message"
2036
  msgstr "Nachricht"
2037
 
2038
- #: ../admin/views/support.php:72
2039
  msgid "send"
2040
  msgstr "senden"
2041
 
@@ -2103,22 +2172,22 @@ msgstr ""
2103
  "Injiziert in den Beitrags-Inhalt. Sie können den Absatz oder die Überschrift "
2104
  "wählen, nach dem die Anzeige eingebunden wird."
2105
 
2106
- #: ../classes/ad_placements.php:199
2107
  #, php-format
2108
  msgid "paragraph (%s)"
2109
  msgstr "Absatz (%s)"
2110
 
2111
- #: ../classes/ad_placements.php:200
2112
  #, php-format
2113
  msgid "headline 2 (%s)"
2114
  msgstr "Überschrift 2 (%s)"
2115
 
2116
- #: ../classes/ad_placements.php:201
2117
  #, php-format
2118
  msgid "headline 3 (%s)"
2119
  msgstr "Überschrift 3 (%s)"
2120
 
2121
- #: ../classes/ad_placements.php:202
2122
  #, php-format
2123
  msgid "headline 4 (%s)"
2124
  msgstr "Überschrift 4 (%s)"
@@ -2135,16 +2204,6 @@ msgstr ""
2135
  "Der vollständige Content-Editor von Wordpress mit allen Funktionen wie "
2136
  "Textbearbeitung, Shortcodes, Bild-Upload oder -Styling."
2137
 
2138
- #: ../classes/ad_type_content.php:63
2139
- msgid "Please <strong>save the ad</strong> before changing it to the content type."
2140
- msgstr ""
2141
- "Bitte <strong>speichern Sie die Anzeige</strong>, bevor Sie den Anzeigentyp "
2142
- "wechseln."
2143
-
2144
- #: ../classes/ad_type_content.php:66
2145
- msgid "Save Draft"
2146
- msgstr "Entwurf speichern"
2147
-
2148
  #: ../classes/ad_type_image.php:34
2149
  msgid "Image Ad"
2150
  msgstr "Bild-Anzeige"
@@ -2309,10 +2368,6 @@ msgstr "Anzeigen und Anzeigen-Gruppen zeigen."
2309
  msgid "Title:"
2310
  msgstr "Titel:"
2311
 
2312
- #: ../classes/widget.php:74
2313
- msgid "--empty--"
2314
- msgstr "--leer--"
2315
-
2316
  #: ../includes/array_ad_conditions.php:38
2317
  msgid "Post Types"
2318
  msgstr "Beitrags-Typen"
@@ -2422,7 +2477,7 @@ msgstr ""
2422
  "den Einstellungen hinterlegt wurde. Es kann zu Problemen bei der Anzeige "
2423
  "kommen."
2424
 
2425
- #: ../modules/gadsense/admin/admin.php:123 ../modules/gadsense/admin/admin.php:258
2426
  msgid "AdSense"
2427
  msgstr "AdSense"
2428
 
@@ -2472,11 +2527,11 @@ msgstr ""
2472
  msgid "Notice: Advanced Ads only considers the AdSense ad type for this limit."
2473
  msgstr "Hinweis: Advanced Ads zählt nur die AdSense-Anzeigentypen für dieses Limit."
2474
 
2475
- #: ../modules/gadsense/admin/admin.php:215
2476
  msgid "Insert Page-Level ads code on all pages."
2477
  msgstr "Code für Anzeigen auf Seitenebene auf allen Seiten einbinden."
2478
 
2479
- #: ../modules/gadsense/admin/admin.php:217
2480
  msgid ""
2481
  "You still need to enable Page-Level ads in your AdSense account. See <a "
2482
  "href=\"https://support.google.com/adsense/answer/6245304\" "
@@ -2486,7 +2541,7 @@ msgstr ""
2486
  "aktivieren. Vgl. <a href=\"https://support.google.com/adsense/answer/6245304\" "
2487
  "target=\"_blank\">AdSense-Hilfe</a>."
2488
 
2489
- #: ../modules/gadsense/admin/admin.php:236 ../modules/gadsense/includes/class-ad-
2490
  #: type-adsense.php:73
2491
  msgid "The Publisher ID has an incorrect format. (must start with \"pub-\")"
2492
  msgstr "Die Publisher-ID hat ein falsches Format. Sie muss mit \"pub-\" beginnen."
@@ -2546,7 +2601,7 @@ msgstr "AdSense Anzeige"
2546
  msgid "Use ads from your Google AdSense account"
2547
  msgstr "Anzeigen aus Ihrem Google AdSense Konto"
2548
 
2549
- #: ../modules/gadsense/includes/class-ad-type-adsense.php:101
2550
  msgid "Your AdSense Publisher ID is missing."
2551
  msgstr "Ihre AdSense Publisher ID fehlt."
2552
 
@@ -2554,93 +2609,93 @@ msgstr "Ihre AdSense Publisher ID fehlt."
2554
  msgid "Auto"
2555
  msgstr "Auto"
2556
 
2557
- #: ../public/class-advanced-ads.php:295
2558
  msgid "Advanced Ads Error following:"
2559
  msgstr "Fehler von Advanced Ads:"
2560
 
2561
- #: ../public/class-advanced-ads.php:298
2562
  #, php-format
2563
  msgid "Advanced Ads Error: %s"
2564
  msgstr "Advanced-Ads-Fehler: %s"
2565
 
2566
- #: ../public/class-advanced-ads.php:526
2567
  msgctxt "ad group general name"
2568
  msgid "Ad Groups"
2569
  msgstr "Anzeigen-Gruppen"
2570
 
2571
- #: ../public/class-advanced-ads.php:527
2572
  msgctxt "ad group singular name"
2573
  msgid "Ad Group"
2574
  msgstr "Anzeigen-Gruppe"
2575
 
2576
- #: ../public/class-advanced-ads.php:528
2577
  msgid "Search Ad Groups"
2578
  msgstr "Anzeigen-Gruppen suchen"
2579
 
2580
- #: ../public/class-advanced-ads.php:529
2581
  msgid "All Ad Groups"
2582
  msgstr "Alle Anzeigen-Gruppen"
2583
 
2584
- #: ../public/class-advanced-ads.php:530
2585
  msgid "Parent Ad Groups"
2586
  msgstr "Parent-Anzeigen-Gruppen"
2587
 
2588
- #: ../public/class-advanced-ads.php:531
2589
  msgid "Parent Ad Groups:"
2590
  msgstr "Parent-Anzeigen-Gruppen"
2591
 
2592
- #: ../public/class-advanced-ads.php:532
2593
  msgid "Edit Ad Group"
2594
  msgstr "Bearbeite Anzeigen-Gruppe"
2595
 
2596
- #: ../public/class-advanced-ads.php:533
2597
  msgid "Update Ad Group"
2598
  msgstr "Aktualisiere Anzeigen-Gruppe"
2599
 
2600
- #: ../public/class-advanced-ads.php:534
2601
  msgid "Add New Ad Group"
2602
  msgstr "Neue Anzeigengruppe hinzufügen"
2603
 
2604
- #: ../public/class-advanced-ads.php:535
2605
  msgid "New Ad Groups Name"
2606
  msgstr "Neuer Anzeigen-Gruppen-Name"
2607
 
2608
- #: ../public/class-advanced-ads.php:537
2609
  msgid "No Ad Group found"
2610
  msgstr "Keine Anzeigen-Gruppe gefunden"
2611
 
2612
- #: ../public/class-advanced-ads.php:565 ../public/class-advanced-ads.php:569
2613
  msgid "New Ad"
2614
  msgstr "Neue Anzeige"
2615
 
2616
- #: ../public/class-advanced-ads.php:566
2617
  msgid "Add New Ad"
2618
  msgstr "Neue Anzeige hinzufügen"
2619
 
2620
- #: ../public/class-advanced-ads.php:568
2621
  msgid "Edit Ad"
2622
  msgstr "Anzeige bearbeiten"
2623
 
2624
- #: ../public/class-advanced-ads.php:570
2625
  msgid "View"
2626
  msgstr "Ansicht"
2627
 
2628
- #: ../public/class-advanced-ads.php:571
2629
  msgid "View the Ad"
2630
  msgstr "Anzeige ansehen"
2631
 
2632
- #: ../public/class-advanced-ads.php:572
2633
  msgid "Search Ads"
2634
  msgstr "Anzeigen suchen"
2635
 
2636
- #: ../public/class-advanced-ads.php:573
2637
  msgid "No Ads found"
2638
  msgstr "Keine Anzeigen gefunden"
2639
 
2640
- #: ../public/class-advanced-ads.php:574
2641
  msgid "No Ads found in Trash"
2642
  msgstr "Keine Anzeigen im Papierkorb gefunden"
2643
 
2644
- #: ../public/class-advanced-ads.php:575
2645
  msgid "Parent Ad"
2646
  msgstr "Übergeordnete Anzeige"
3
  "Project-Id-Version: Advanved Ads\n"
4
  "Report-Msgid-Bugs-To: http://wordpress.org/plugins/plugin-name\n"
5
  "POT-Creation-Date: 2015-01-27 16:47+0100\n"
6
+ "PO-Revision-Date: Thu Oct 29 2015 21:40:08 GMT+0100 (CET)\n"
7
  "Last-Translator: admin <post@webzunft.de>\n"
8
  "Language-Team: webgilde <thomas.maier@webgilde.com>\n"
9
  "Language: German\n"
26
  "X-Textdomain-Support: yes\n"
27
  "X-Loco-Target-Locale: de_DE"
28
 
29
+ #: ../admin/class-advanced-ads-admin.php:1020
30
+ msgid ""
31
+ "Please check your post content. A priority of 10 and below might cause "
32
+ "issues (wpautop function might run twice)."
33
+ msgstr ""
34
+ "Bitte überprüfen Sie die Anzeigen im Beitrag. Eine Priorität von 10 und "
35
+ "darunter könnte Probleme verursachen (wg. wpautop)"
36
 
37
+ #: ../admin/class-advanced-ads-admin.php:1147
38
+ msgid "Ad Planning"
39
+ msgstr "Planung"
40
 
41
+ #: ../admin/includes/shortcode-creator-l10n.php:10
42
+ msgctxt "shortcode creator"
43
+ msgid "Add an ad"
44
+ msgstr "Anzeige einfügen"
45
 
46
+ #: ../admin/includes/shortcode-creator-l10n.php:11
47
+ msgctxt "shortcode creator"
48
+ msgid "Add shortcode"
49
+ msgstr "Shortcode einfügen"
50
+
51
+ #: ../admin/includes/shortcode-creator-l10n.php:12
52
+ msgctxt "shortcode creator"
53
+ msgid "Cancel"
54
+ msgstr "Abbruch"
55
+
56
+ #: ../admin/views/ad-list-timing-column.php:4
57
+ #, php-format
58
+ msgid "starts %s"
59
+ msgstr "Start %s"
60
+
61
+ #: ../admin/views/ad-list-timing-column.php:7
62
+ #, php-format
63
+ msgid "expires %s"
64
+ msgstr "Ende %s"
65
+
66
+ #: ../admin/views/setting-license.php:29
67
+ msgid "Please enter a valid license key"
68
+ msgstr "Bitte geben Sie eine gültige Lizenz ein"
69
+
70
+ #: ../admin/views/setting-license.php:31
71
+ msgid "License key invalid"
72
+ msgstr "Der Lizenzschlüssel ist ungültig"
73
+
74
+ #: ../admin/views/support.php:48
75
+ #, php-format
76
  msgid ""
77
+ "Ads are disabled for all or some pages. See \"disabled ads\" in <a "
78
+ "href=\"%s\">settings</a>."
79
+ msgstr ""
80
+ "Anzeigen sind für alle oder einige Seiten deaktiviert. Vgl. <a "
81
+ "href=\"%s\">Einstellungen</a>."
82
+
83
+ #: ../classes/ad_placements.php:61
84
+ msgid "Sidebar Widget"
85
+ msgstr "Sidebar Widget"
86
+
87
+ #: ../classes/ad_placements.php:62
88
+ msgid ""
89
+ "Create a sidebar widget with an ad. Can be placed and used like any other "
90
+ "widget."
91
+ msgstr "Diese Platzierung kann in einem Widget verwendet werden."
92
+
93
+ #: ../modules/gadsense/admin/admin.php:205
94
+ msgid ""
95
+ "Due to technical restrictions, the limit does not work on placements with "
96
+ "cache-busting enabled."
97
+ msgstr ""
98
+ "Aufgrund technischer Einschränkungen ist das Limit in Platzierungen mit "
99
+ "Cache-Busting nicht verfügbar."
100
 
101
  #. Name of the plugin
102
  msgid "Advanced Ads"
118
  msgid "http://webgilde.com"
119
  msgstr "http://webgilde.com"
120
 
121
+ #: ../admin/class-advanced-ads-admin.php:251
122
  msgid "Overview"
123
  msgstr "Übersicht"
124
 
125
+ #: ../admin/class-advanced-ads-admin.php:255 ../admin/class-advanced-ads-admin.
126
+ #: php:255 ../admin/includes/class-shortcode-creator.php:77 ../admin/views/ad-
127
+ #: group-list-form-row.php:28 ../admin/views/ad-group-list-header.php:5 ..
128
+ #: admin/views/placements.php:80 ../admin/views/placements.php:184 ..
129
+ #: classes/widget.php:90 ../public/class-advanced-ads.php:560
130
  msgid "Ads"
131
  msgstr "Anzeigen"
132
 
133
+ #: ../admin/class-advanced-ads-admin.php:259 ../admin/includes/class-shortcode-
134
+ #: creator.php:84 ../admin/views/placements.php:73 ../admin/views/placements.php:
135
+ #: 177 ../classes/widget.php:83
136
  msgid "Ad Groups"
137
  msgstr "Anzeigen-Gruppen"
138
 
139
+ #: ../admin/class-advanced-ads-admin.php:259 ../public/class-advanced-ads.php:533
140
  msgid "Groups"
141
  msgstr "Gruppen"
142
 
143
+ #: ../admin/class-advanced-ads-admin.php:264 ../admin/views/debug.php:14
144
  msgid "Ad Placements"
145
  msgstr "Anzeigen-Platzierungen"
146
 
147
+ #: ../admin/class-advanced-ads-admin.php:264 ../admin/includes/class-shortcode-
148
+ #: creator.php:91 ../admin/views/placements.php:18 ../classes/widget.php:76
149
  msgid "Placements"
150
  msgstr "Platzierungen"
151
 
152
+ #: ../admin/class-advanced-ads-admin.php:268
153
  msgid "Advanced Ads Settings"
154
  msgstr "Advanced-Ads-Einstellungen"
155
 
156
+ #: ../admin/class-advanced-ads-admin.php:268 ../admin/class-advanced-ads-admin.
157
+ #: php:495 ../admin/views/debug.php:11
158
  msgid "Settings"
159
  msgstr "Einstellungen"
160
 
161
+ #: ../admin/class-advanced-ads-admin.php:271
162
  msgid "Advanced Ads Debugging"
163
  msgstr "Advanced-Ads-Fehleranalyse (Debugging)"
164
 
165
+ #: ../admin/class-advanced-ads-admin.php:271
166
  msgid "Debug"
167
  msgstr "Debug"
168
 
169
+ #: ../admin/class-advanced-ads-admin.php:275 ../admin/class-advanced-ads-admin.
170
+ #: php:275
171
  msgid "Advanced Ads Intro"
172
  msgstr "Advanced Ads Einführung"
173
 
174
+ #: ../admin/class-advanced-ads-admin.php:279 ../admin/class-advanced-ads-admin.
175
+ #: php:279
176
  msgid "Support"
177
  msgstr "Support"
178
 
179
+ #: ../admin/class-advanced-ads-admin.php:409 ../admin/class-advanced-ads-admin.
180
+ #: php:436
181
  msgid "Sorry, you are not allowed to access this feature."
182
  msgstr "Sie haben leider keinen Zugriff auf diese Funktion"
183
 
184
+ #: ../admin/class-advanced-ads-admin.php:422
185
  msgid ""
186
  "You attempted to edit an ad group that doesn&#8217;t exist. Perhaps it was "
187
  "deleted?"
189
  "Sie haben versucht, ein Element, das nicht existiert, zu bearbeiten. "
190
  "Vielleicht wurde es gelöscht?"
191
 
192
+ #: ../admin/class-advanced-ads-admin.php:537
193
  msgid "Ad Type"
194
  msgstr "Anzeigen-Typ"
195
 
196
+ #: ../admin/class-advanced-ads-admin.php:540
197
  msgid "Ad Parameters"
198
  msgstr "Anzeigen-Parameter"
199
 
200
+ #: ../admin/class-advanced-ads-admin.php:543
201
  msgid "Layout / Output"
202
  msgstr "Layout / Ausgabe"
203
 
204
+ #: ../admin/class-advanced-ads-admin.php:546
205
  msgid "Display Conditions"
206
  msgstr "Anzeige-Bedingungen"
207
 
208
+ #: ../admin/class-advanced-ads-admin.php:549
209
  msgid "Visitor Conditions"
210
  msgstr "Besucher-Bedingungen"
211
 
212
+ #: ../admin/class-advanced-ads-admin.php:729 ../admin/class-advanced-ads-admin.
213
+ #: php:730
214
  msgid "Ad updated."
215
  msgstr "Anzeige aktualisiert."
216
 
217
  #. translators: %s: date and time of the revision
218
+ #: ../admin/class-advanced-ads-admin.php:732
219
  #, php-format
220
  msgid "Ad restored to revision from %s"
221
  msgstr "Anzeige aus Revision %s wiederhergestellt"
222
 
223
+ #: ../admin/class-advanced-ads-admin.php:733
224
  msgid "Ad published."
225
  msgstr "Anzeige veröffentlicht."
226
 
227
+ #: ../admin/class-advanced-ads-admin.php:734
228
  msgid "Ad saved."
229
  msgstr "Anzeige gespeichert."
230
 
231
+ #: ../admin/class-advanced-ads-admin.php:735
232
  msgid "Ad submitted."
233
  msgstr "Anzeige gesendet."
234
 
235
+ #: ../admin/class-advanced-ads-admin.php:737
236
  #, php-format
237
  msgid "Ad scheduled for: <strong>%1$s</strong>."
238
  msgstr "Anzeige geplant für <strong>%1$s</strong>."
239
 
240
  #. translators: Publish box date format, see http://php.net/date
241
+ #: ../admin/class-advanced-ads-admin.php:739
242
  msgid "M j, Y @ G:i"
243
  msgstr "j M Y @ G:i"
244
 
245
+ #: ../admin/class-advanced-ads-admin.php:741
246
  msgid "Ad draft updated."
247
  msgstr "Anzeigenentwurf gespeichert."
248
 
249
+ #: ../admin/class-advanced-ads-admin.php:760
250
  #, php-format
251
  msgid "%s ad updated."
252
  msgid_plural "%s ads updated."
253
  msgstr[0] "%s Anzeige aktualisiert."
254
  msgstr[1] "%s Anzeigen aktualisiert."
255
 
256
+ #: ../admin/class-advanced-ads-admin.php:761
257
  #, php-format
258
  msgid "%s ad not updated, somebody is editing it."
259
  msgid_plural "%s ads not updated, somebody is editing them."
260
  msgstr[0] "%s Anzeige nicht aktualisiert, jemand bearbeitet sie."
261
  msgstr[1] "%s Anzeigen nicht aktualisiert, jemand bearbeitet sie."
262
 
263
+ #: ../admin/class-advanced-ads-admin.php:762
264
  #, php-format
265
  msgid "%s ad permanently deleted."
266
  msgid_plural "%s ads permanently deleted."
267
  msgstr[0] "%s Anzeige endgültig gelöscht."
268
  msgstr[1] "%s Anzeigen endgültig gelöscht."
269
 
270
+ #: ../admin/class-advanced-ads-admin.php:763
271
  #, php-format
272
  msgid "%s ad moved to the Trash."
273
  msgid_plural "%s ads moved to the Trash."
274
  msgstr[0] "%s Anzeige in den Papierkorb verschoben."
275
  msgstr[1] "%s Anzeigen in den Papierkorb verschoben."
276
 
277
+ #: ../admin/class-advanced-ads-admin.php:764
278
  #, php-format
279
  msgid "%s ad restored from the Trash."
280
  msgid_plural "%s ads restored from the Trash."
281
  msgstr[0] "%s Anzeige aus dem Papierkorb wiederhergestellt."
282
  msgstr[1] "%s Anzeige aus dem Papierkorb wiederhergestellt."
283
 
284
+ #: ../admin/class-advanced-ads-admin.php:799 ../admin/views/settings.php:12
285
  msgid "General"
286
  msgstr "Allgemein"
287
 
288
+ #: ../admin/class-advanced-ads-admin.php:811 ../admin/class-advanced-ads-admin.
289
+ #: php:907
290
  msgid "Licenses"
291
  msgstr "Lizenzen"
292
 
293
+ #: ../admin/class-advanced-ads-admin.php:822
294
  msgid "Disable ads"
295
  msgstr "Anzeigen auf dieser Seite deaktivieren."
296
 
297
+ #: ../admin/class-advanced-ads-admin.php:830
298
  msgid "Hide ads for logged in users"
299
  msgstr "Verstecke Anzeigen vor eingeloggten Benutzern"
300
 
301
+ #: ../admin/class-advanced-ads-admin.php:838
302
  msgid "Use advanced JavaScript"
303
  msgstr "Advanced-JavaScript benutzen"
304
 
305
+ #: ../admin/class-advanced-ads-admin.php:846
306
  msgid "Unlimited ad injection"
307
  msgstr "Anzeigen-Injektion überall aktivieren "
308
 
309
+ #: ../admin/class-advanced-ads-admin.php:854
310
  msgid "Priority of content injection filter"
311
  msgstr "Priorität der Anzeigen-Injektion"
312
 
313
+ #: ../admin/class-advanced-ads-admin.php:862
314
  msgid "Hide ads from bots"
315
  msgstr "Anzeigen vor Bots verbergen"
316
 
317
+ #: ../admin/class-advanced-ads-admin.php:870
318
  msgid "Disable notices"
319
  msgstr "Mitteilungen deaktivieren"
320
 
321
+ #: ../admin/class-advanced-ads-admin.php:878
322
  msgid "ID prefix"
323
  msgstr "ID Präfix"
324
 
325
+ #: ../admin/class-advanced-ads-admin.php:886
326
  msgid "Remove Widget ID"
327
  msgstr "ID des Widget entfernen"
328
 
329
+ #: ../admin/class-advanced-ads-admin.php:961
330
  msgid "(display to all)"
331
  msgstr "(für alle sichtbar)"
332
 
333
+ #: ../admin/class-advanced-ads-admin.php:962
334
  msgid "Subscriber"
335
  msgstr "Abonnent"
336
 
337
+ #: ../admin/class-advanced-ads-admin.php:963
338
  msgid "Contributor"
339
  msgstr "Mitarbeiter"
340
 
341
+ #: ../admin/class-advanced-ads-admin.php:964
342
  msgid "Author"
343
  msgstr "Autor"
344
 
345
+ #: ../admin/class-advanced-ads-admin.php:965
346
  msgid "Editor"
347
  msgstr "Redakteur"
348
 
349
+ #: ../admin/class-advanced-ads-admin.php:966
350
  msgid "Admin"
351
  msgstr "Admin"
352
 
353
+ #: ../admin/class-advanced-ads-admin.php:974
354
  msgid "Choose the lowest role a user must have in order to not see any ads."
355
  msgstr ""
356
  "Wählen Sie die niedrigste Rolle die ein Benutzer haben muss um keine "
357
  "Anzeigen zu sehen."
358
 
359
+ #: ../admin/class-advanced-ads-admin.php:988
360
  msgid ""
361
  "<strong>notice: </strong>the file is currently enabled by an add-on that "
362
  "needs it."
364
  "<strong>Hinweis: </strong>die Datei wird aktuell von einer Erweiterung "
365
  "benutzt."
366
 
367
+ #: ../admin/class-advanced-ads-admin.php:991
368
  #, php-format
369
  msgid ""
370
  "Enable advanced JavaScript functions (<a href=\"%s\" target=\"_blank\">here</a>)."
375
  "target=\"_blank\">Info</a>). Einige Funktionen und Erweiterungen können diese "
376
  "Einstellung überschreiben, wenn sie die Datei benötigen."
377
 
378
+ #: ../admin/class-advanced-ads-admin.php:1004
379
  msgid ""
380
  "Some plugins and themes trigger ad injection where it shouldn’t happen. "
381
  "Therefore, Advanced Ads ignores injected placements on non-singular pages "
393
  "werden überall dort, wo Beiträge geladen werden, angezeigt (z.B. auch auf "
394
  "Archiv-Seiten)."
395
 
396
+ #: ../admin/class-advanced-ads-admin.php:1022
397
  msgid ""
398
  "Play with this value in order to change the priority of the injected ads "
399
  "compared to other auto injected elements in the post content."
401
  "Ändern Sie diesen Wert um die Position automatisch eingefügter Anzeigen im "
402
  "Content gegenüber anderer Elementen zu beeinflussen."
403
 
404
+ #: ../admin/class-advanced-ads-admin.php:1036
405
  #, php-format
406
  msgid ""
407
  "Hide ads from crawlers, bots and empty user agents. Also prevents counting "
412
  "werden mit dem <a href=\"%s\" target=\"_blank\">Tracking Add-On</a> dann auch "
413
  "keine Impressionen mehr gezählt."
414
 
415
+ #: ../admin/class-advanced-ads-admin.php:1037
416
  msgid ""
417
  "Disabling this option only makes sense if your ads contain content you want "
418
  "to display to bots (like search engines) or your site is cached and bots "
421
  "Deaktivieren Sie diese Option, wenn Bots (z.B. Suchmaschinen) die "
422
  "Werbeinhalte sehen sollen oder Ihre Seite einen Cache nutzt."
423
 
424
+ #: ../admin/class-advanced-ads-admin.php:1050
425
  msgid ""
426
  "Disable internal notices like tips, tutorials, email newsletters and update "
427
  "notices. Disabling notices is recommended if you run multiple blogs with "
432
  "diese Einstellung, wenn Sie Advanced Ads auf mehreren Blog installiert \n"
433
  "haben."
434
 
435
+ #: ../admin/class-advanced-ads-admin.php:1072
436
  msgid ""
437
  "Prefix of class or id attributes in the frontend. Change it if you don’t "
438
  "want <strong>ad blockers</strong> to mark these blocks as ads.<br/>You might "
441
  "Präfix der class oder id Attribute im Frontend. Eine Änderung kann helfen "
442
  "damit Ad-Blocker die Inhalte nicht pauschal entfernen."
443
 
444
+ #: ../admin/class-advanced-ads-admin.php:1093
445
  msgid ""
446
  "Remove the ID attribute from widgets in order to not make them an easy "
447
  "target of ad blockers."
449
  "ID-Attribut des Anzeigenwidgets entfernen, damit Ad-Blocker hier keinen "
450
  "Ansatz haben es zu blockieren."
451
 
452
+ #: ../admin/class-advanced-ads-admin.php:1146
453
  msgid "Ad Details"
454
  msgstr "Anzeigeneinstellungen"
455
 
456
+ #: ../admin/class-advanced-ads-admin.php:1249
457
  msgid "Ad Settings"
458
  msgstr "Anzeigen-Einstellungen"
459
 
460
+ #: ../admin/class-advanced-ads-admin.php:1328 ../admin/views/overview.php:23
461
  msgid "Ads Dashboard"
462
  msgstr "Anzeigen-Dashboard"
463
 
464
+ #: ../admin/class-advanced-ads-admin.php:1340
465
  msgid "From the ad optimization universe"
466
  msgstr "Neues aus dem Anzeigen-Universum"
467
 
468
+ #: ../admin/class-advanced-ads-admin.php:1349
469
  msgid "Advanced Ads Tutorials"
470
  msgstr "Advanced Ads Tutorials"
471
 
472
+ #: ../admin/class-advanced-ads-admin.php:1360
473
  #, php-format
474
  msgid "%d ads – <a href=\"%s\">manage</a> - <a href=\"%s\">new</a>"
475
  msgstr "%d Anzeigen – <a href=\"%s\">verwalten</a> - <a href=\"%s\">neu</a>"
476
 
477
+ #: ../admin/class-advanced-ads-admin.php:1371
478
  msgid "plugin manual and homepage"
479
  msgstr "Plugin-Anleitung und Homepage"
480
 
481
+ #: ../admin/class-advanced-ads-admin.php:1378
482
  msgid "Get the tutorial via email"
483
  msgstr "Tutorial per E-Mail (engl.)\n"
484
 
485
+ #: ../admin/class-advanced-ads-admin.php:1385
486
  msgid "Get AdSense tips via email"
487
  msgstr "AdSense Tips per E-Mail (engl.)"
488
 
489
+ #: ../admin/class-advanced-ads-admin.php:1464
490
  msgid "Error while trying to register the license. Please contact support."
491
  msgstr ""
492
  "Die Lizenz konnte nicht registriert werden. Bitte kontaktieren Sie den "
493
  "Support."
494
 
495
+ #: ../admin/class-advanced-ads-admin.php:1470
496
  msgid "Please enter and save a valid license key first."
497
  msgstr "Bitte speichern Sie zunächst einen gültigen Lizenzschlüssel."
498
 
499
+ #: ../admin/class-advanced-ads-admin.php:1490
500
  #, php-format
501
  msgid "License is invalid. Reason: %s"
502
  msgstr "Die Lizenz ist ungültig. Grund: %s"
548
  msgstr "Anzeigen mit dem höchsten Anzeigengewicht zuerst einblenden."
549
 
550
  #: ../admin/includes/class-ad-groups-list.php:259 ../public/class-advanced-ads.
551
+ #: php:564
552
  msgid "Edit"
553
  msgstr "Bearbeiten"
554
 
1011
  msgid "Get the Slider add-on"
1012
  msgstr "Slider-Erweiterung holen"
1013
 
1014
+ #: ../admin/includes/class-shortcode-creator.php:75 ../classes/widget.php:74
1015
+ msgid "--empty--"
1016
+ msgstr "--leer--"
1017
+
1018
  #: ../admin/includes/notices.php:14
1019
  #, php-format
1020
  msgid ""
1170
  msgid "Create new Ad Group"
1171
  msgstr "Neue Anzeigengruppe erstellen"
1172
 
1173
+ #: ../admin/views/ad-group-edit.php:59
 
1174
  msgid "Update"
1175
  msgstr "Update"
1176
 
1201
  msgstr "Anzahl der Anzeigen, die gleichzeitig sichtbar sein sollen."
1202
 
1203
  #: ../admin/views/ad-group-list-form-row.php:31 ../public/class-advanced-ads.php:
1204
+ #: 561
1205
  msgid "Ad"
1206
  msgstr "Anzeige"
1207
 
1244
  msgid "ID: %s"
1245
  msgstr "ID: %s"
1246
 
 
 
 
 
 
1247
  #: ../admin/views/ad-group.php:18
1248
  msgid "Ad Groups successfully updated"
1249
  msgstr "Anzeigengruppe erfolgreich aktualisiert."
1468
  "Tipp: Verwenden Sie dies, um einen Abstand zwischen Anzeige und Inhalt "
1469
  "einzufügen."
1470
 
1471
+ #: ../admin/views/ad-output-metabox.php:33
1472
+ msgid "container id"
1473
+ msgstr "Container-ID"
1474
+
1475
+ #: ../admin/views/ad-output-metabox.php:36
1476
+ msgid "Specify the id of the ad container. Leave blank for random or no id."
1477
+ msgstr "ID des Containers festlegen. Leer lassen für zufällige oder keine ID."
1478
+
1479
+ #: ../admin/views/ad-output-metabox.php:38
1480
+ msgid "container classes"
1481
+ msgstr "Container-Class"
1482
+
1483
+ #: ../admin/views/ad-output-metabox.php:41
1484
+ msgid ""
1485
+ "Specify one or more classes for the container. Separate multiple classes "
1486
+ "with a space"
1487
+ msgstr "Eine oder mehrere, durch Leerzeichen festgelegte Class-Attribute."
1488
+
1489
+ #: ../admin/views/ad-parameters-metabox.php:25 ../classes/ad_ajax_callbacks.php:51
1490
  msgid "size:"
1491
  msgstr "Größe:"
1492
 
1493
+ #: ../admin/views/ad-parameters-metabox.php:26 ../classes/ad_ajax_callbacks.php:52
1494
  msgid "width"
1495
  msgstr "Breite"
1496
 
1497
+ #: ../admin/views/ad-parameters-metabox.php:27 ../classes/ad_ajax_callbacks.php:53
1498
  msgid "height"
1499
  msgstr "Höhe"
1500
 
1913
  msgid "Activate License"
1914
  msgstr "Lizenz aktivieren"
1915
 
1916
+ #: ../admin/views/setting-license.php:37
 
 
 
 
1917
  msgid "active"
1918
  msgstr "aktiv"
1919
 
1920
+ #: ../admin/views/setting-license.php:38
1921
  #, php-format
1922
  msgid "(%d days left)"
1923
  msgstr "(noch %d Tage)"
1924
 
1925
+ #: ../admin/views/setting-license.php:41
1926
  msgid ""
1927
  "1. enter the key and save options; 2. click the activate button behind the "
1928
  "field"
2078
  "Plugins die (teilweise) Probleme verursachen können: <strong>%1$s</strong>. "
2079
  "<a href=\"%2$s\" target=\"_blank\">Mehr erfahren</a>."
2080
 
2081
+ #: ../admin/views/support.php:57
2082
  msgid "Contact"
2083
  msgstr "Kontakt aufnehmen"
2084
 
2085
+ #: ../admin/views/support.php:58
2086
  #, php-format
2087
  msgid ""
2088
  "Please search the manual for a solution and take a look at <a href=\"%s\" "
2092
  "sich die Vorschläge unter <a href=\"%s\" target=\"_blank\">Ads not showing up?"
2093
  "</a> an."
2094
 
2095
+ #: ../admin/views/support.php:63
2096
  msgid "your email"
2097
  msgstr "E-Mail"
2098
 
2099
+ #: ../admin/views/support.php:67
2100
  msgid "your name"
2101
  msgstr "Name"
2102
 
2103
+ #: ../admin/views/support.php:71
2104
  msgid "your message"
2105
  msgstr "Nachricht"
2106
 
2107
+ #: ../admin/views/support.php:76
2108
  msgid "send"
2109
  msgstr "senden"
2110
 
2172
  "Injiziert in den Beitrags-Inhalt. Sie können den Absatz oder die Überschrift "
2173
  "wählen, nach dem die Anzeige eingebunden wird."
2174
 
2175
+ #: ../classes/ad_placements.php:204
2176
  #, php-format
2177
  msgid "paragraph (%s)"
2178
  msgstr "Absatz (%s)"
2179
 
2180
+ #: ../classes/ad_placements.php:205
2181
  #, php-format
2182
  msgid "headline 2 (%s)"
2183
  msgstr "Überschrift 2 (%s)"
2184
 
2185
+ #: ../classes/ad_placements.php:206
2186
  #, php-format
2187
  msgid "headline 3 (%s)"
2188
  msgstr "Überschrift 3 (%s)"
2189
 
2190
+ #: ../classes/ad_placements.php:207
2191
  #, php-format
2192
  msgid "headline 4 (%s)"
2193
  msgstr "Überschrift 4 (%s)"
2204
  "Der vollständige Content-Editor von Wordpress mit allen Funktionen wie "
2205
  "Textbearbeitung, Shortcodes, Bild-Upload oder -Styling."
2206
 
 
 
 
 
 
 
 
 
 
 
2207
  #: ../classes/ad_type_image.php:34
2208
  msgid "Image Ad"
2209
  msgstr "Bild-Anzeige"
2368
  msgid "Title:"
2369
  msgstr "Titel:"
2370
 
 
 
 
 
2371
  #: ../includes/array_ad_conditions.php:38
2372
  msgid "Post Types"
2373
  msgstr "Beitrags-Typen"
2477
  "den Einstellungen hinterlegt wurde. Es kann zu Problemen bei der Anzeige "
2478
  "kommen."
2479
 
2480
+ #: ../modules/gadsense/admin/admin.php:123 ../modules/gadsense/admin/admin.php:262
2481
  msgid "AdSense"
2482
  msgstr "AdSense"
2483
 
2527
  msgid "Notice: Advanced Ads only considers the AdSense ad type for this limit."
2528
  msgstr "Hinweis: Advanced Ads zählt nur die AdSense-Anzeigentypen für dieses Limit."
2529
 
2530
+ #: ../modules/gadsense/admin/admin.php:219
2531
  msgid "Insert Page-Level ads code on all pages."
2532
  msgstr "Code für Anzeigen auf Seitenebene auf allen Seiten einbinden."
2533
 
2534
+ #: ../modules/gadsense/admin/admin.php:221
2535
  msgid ""
2536
  "You still need to enable Page-Level ads in your AdSense account. See <a "
2537
  "href=\"https://support.google.com/adsense/answer/6245304\" "
2541
  "aktivieren. Vgl. <a href=\"https://support.google.com/adsense/answer/6245304\" "
2542
  "target=\"_blank\">AdSense-Hilfe</a>."
2543
 
2544
+ #: ../modules/gadsense/admin/admin.php:240 ../modules/gadsense/includes/class-ad-
2545
  #: type-adsense.php:73
2546
  msgid "The Publisher ID has an incorrect format. (must start with \"pub-\")"
2547
  msgstr "Die Publisher-ID hat ein falsches Format. Sie muss mit \"pub-\" beginnen."
2601
  msgid "Use ads from your Google AdSense account"
2602
  msgstr "Anzeigen aus Ihrem Google AdSense Konto"
2603
 
2604
+ #: ../modules/gadsense/includes/class-ad-type-adsense.php:104
2605
  msgid "Your AdSense Publisher ID is missing."
2606
  msgstr "Ihre AdSense Publisher ID fehlt."
2607
 
2609
  msgid "Auto"
2610
  msgstr "Auto"
2611
 
2612
+ #: ../public/class-advanced-ads.php:292
2613
  msgid "Advanced Ads Error following:"
2614
  msgstr "Fehler von Advanced Ads:"
2615
 
2616
+ #: ../public/class-advanced-ads.php:295
2617
  #, php-format
2618
  msgid "Advanced Ads Error: %s"
2619
  msgstr "Advanced-Ads-Fehler: %s"
2620
 
2621
+ #: ../public/class-advanced-ads.php:523
2622
  msgctxt "ad group general name"
2623
  msgid "Ad Groups"
2624
  msgstr "Anzeigen-Gruppen"
2625
 
2626
+ #: ../public/class-advanced-ads.php:524
2627
  msgctxt "ad group singular name"
2628
  msgid "Ad Group"
2629
  msgstr "Anzeigen-Gruppe"
2630
 
2631
+ #: ../public/class-advanced-ads.php:525
2632
  msgid "Search Ad Groups"
2633
  msgstr "Anzeigen-Gruppen suchen"
2634
 
2635
+ #: ../public/class-advanced-ads.php:526
2636
  msgid "All Ad Groups"
2637
  msgstr "Alle Anzeigen-Gruppen"
2638
 
2639
+ #: ../public/class-advanced-ads.php:527
2640
  msgid "Parent Ad Groups"
2641
  msgstr "Parent-Anzeigen-Gruppen"
2642
 
2643
+ #: ../public/class-advanced-ads.php:528
2644
  msgid "Parent Ad Groups:"
2645
  msgstr "Parent-Anzeigen-Gruppen"
2646
 
2647
+ #: ../public/class-advanced-ads.php:529
2648
  msgid "Edit Ad Group"
2649
  msgstr "Bearbeite Anzeigen-Gruppe"
2650
 
2651
+ #: ../public/class-advanced-ads.php:530
2652
  msgid "Update Ad Group"
2653
  msgstr "Aktualisiere Anzeigen-Gruppe"
2654
 
2655
+ #: ../public/class-advanced-ads.php:531
2656
  msgid "Add New Ad Group"
2657
  msgstr "Neue Anzeigengruppe hinzufügen"
2658
 
2659
+ #: ../public/class-advanced-ads.php:532
2660
  msgid "New Ad Groups Name"
2661
  msgstr "Neuer Anzeigen-Gruppen-Name"
2662
 
2663
+ #: ../public/class-advanced-ads.php:534
2664
  msgid "No Ad Group found"
2665
  msgstr "Keine Anzeigen-Gruppe gefunden"
2666
 
2667
+ #: ../public/class-advanced-ads.php:562 ../public/class-advanced-ads.php:566
2668
  msgid "New Ad"
2669
  msgstr "Neue Anzeige"
2670
 
2671
+ #: ../public/class-advanced-ads.php:563
2672
  msgid "Add New Ad"
2673
  msgstr "Neue Anzeige hinzufügen"
2674
 
2675
+ #: ../public/class-advanced-ads.php:565
2676
  msgid "Edit Ad"
2677
  msgstr "Anzeige bearbeiten"
2678
 
2679
+ #: ../public/class-advanced-ads.php:567
2680
  msgid "View"
2681
  msgstr "Ansicht"
2682
 
2683
+ #: ../public/class-advanced-ads.php:568
2684
  msgid "View the Ad"
2685
  msgstr "Anzeige ansehen"
2686
 
2687
+ #: ../public/class-advanced-ads.php:569
2688
  msgid "Search Ads"
2689
  msgstr "Anzeigen suchen"
2690
 
2691
+ #: ../public/class-advanced-ads.php:570
2692
  msgid "No Ads found"
2693
  msgstr "Keine Anzeigen gefunden"
2694
 
2695
+ #: ../public/class-advanced-ads.php:571
2696
  msgid "No Ads found in Trash"
2697
  msgstr "Keine Anzeigen im Papierkorb gefunden"
2698
 
2699
+ #: ../public/class-advanced-ads.php:572
2700
  msgid "Parent Ad"
2701
  msgstr "Übergeordnete Anzeige"
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: Mon Oct 12 2015 13:10:23 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"
@@ -44,244 +44,247 @@ msgstr ""
44
  msgid "http://webgilde.com"
45
  msgstr ""
46
 
47
- #: ../admin/class-advanced-ads-admin.php:246
48
  msgid "Overview"
49
  msgstr ""
50
 
51
- #: ../admin/class-advanced-ads-admin.php:250 ../admin/class-advanced-ads-admin.
52
- #: php:250 ../admin/views/ad-group-list-form-row.php:28 ../admin/views/ad-group-
53
- #: list-header.php:5 ../admin/views/placements.php:80 ../admin/views/placements.
54
- #: php:184 ../classes/widget.php:83 ../public/class-advanced-ads.php:563
 
55
  msgid "Ads"
56
  msgstr ""
57
 
58
- #: ../admin/class-advanced-ads-admin.php:254 ../admin/views/placements.php:73 ..
59
- #: /admin/views/placements.php:177 ../classes/widget.php:76
 
60
  msgid "Ad Groups"
61
  msgstr ""
62
 
63
- #: ../admin/class-advanced-ads-admin.php:254 ../public/class-advanced-ads.php:536
64
  msgid "Groups"
65
  msgstr ""
66
 
67
- #: ../admin/class-advanced-ads-admin.php:259 ../admin/views/debug.php:14
68
  msgid "Ad Placements"
69
  msgstr ""
70
 
71
- #: ../admin/class-advanced-ads-admin.php:259 ../admin/views/placements.php:18
 
72
  msgid "Placements"
73
  msgstr ""
74
 
75
- #: ../admin/class-advanced-ads-admin.php:263
76
  msgid "Advanced Ads Settings"
77
  msgstr ""
78
 
79
- #: ../admin/class-advanced-ads-admin.php:263 ../admin/class-advanced-ads-admin.
80
- #: php:490 ../admin/views/debug.php:11
81
  msgid "Settings"
82
  msgstr ""
83
 
84
- #: ../admin/class-advanced-ads-admin.php:266
85
  msgid "Advanced Ads Debugging"
86
  msgstr ""
87
 
88
- #: ../admin/class-advanced-ads-admin.php:266
89
  msgid "Debug"
90
  msgstr ""
91
 
92
- #: ../admin/class-advanced-ads-admin.php:270 ../admin/class-advanced-ads-admin.
93
- #: php:270
94
  msgid "Advanced Ads Intro"
95
  msgstr ""
96
 
97
- #: ../admin/class-advanced-ads-admin.php:274 ../admin/class-advanced-ads-admin.
98
- #: php:274
99
  msgid "Support"
100
  msgstr ""
101
 
102
- #: ../admin/class-advanced-ads-admin.php:404 ../admin/class-advanced-ads-admin.
103
- #: php:431
104
  msgid "Sorry, you are not allowed to access this feature."
105
  msgstr ""
106
 
107
- #: ../admin/class-advanced-ads-admin.php:417
108
  msgid ""
109
  "You attempted to edit an ad group that doesn&#8217;t exist. Perhaps it was "
110
  "deleted?"
111
  msgstr ""
112
 
113
- #: ../admin/class-advanced-ads-admin.php:532
114
  msgid "Ad Type"
115
  msgstr ""
116
 
117
- #: ../admin/class-advanced-ads-admin.php:535
118
  msgid "Ad Parameters"
119
  msgstr ""
120
 
121
- #: ../admin/class-advanced-ads-admin.php:538
122
  msgid "Layout / Output"
123
  msgstr ""
124
 
125
- #: ../admin/class-advanced-ads-admin.php:541
126
  msgid "Display Conditions"
127
  msgstr ""
128
 
129
- #: ../admin/class-advanced-ads-admin.php:544
130
  msgid "Visitor Conditions"
131
  msgstr ""
132
 
133
- #: ../admin/class-advanced-ads-admin.php:724 ../admin/class-advanced-ads-admin.
134
- #: php:725
135
  msgid "Ad updated."
136
  msgstr ""
137
 
138
  #. translators: %s: date and time of the revision
139
- #: ../admin/class-advanced-ads-admin.php:727
140
  #, php-format
141
  msgid "Ad restored to revision from %s"
142
  msgstr ""
143
 
144
- #: ../admin/class-advanced-ads-admin.php:728
145
  msgid "Ad published."
146
  msgstr ""
147
 
148
- #: ../admin/class-advanced-ads-admin.php:729
149
  msgid "Ad saved."
150
  msgstr ""
151
 
152
- #: ../admin/class-advanced-ads-admin.php:730
153
  msgid "Ad submitted."
154
  msgstr ""
155
 
156
- #: ../admin/class-advanced-ads-admin.php:732
157
  #, php-format
158
  msgid "Ad scheduled for: <strong>%1$s</strong>."
159
  msgstr ""
160
 
161
  #. translators: Publish box date format, see http://php.net/date
162
- #: ../admin/class-advanced-ads-admin.php:734
163
  msgid "M j, Y @ G:i"
164
  msgstr ""
165
 
166
- #: ../admin/class-advanced-ads-admin.php:736
167
  msgid "Ad draft updated."
168
  msgstr ""
169
 
170
- #: ../admin/class-advanced-ads-admin.php:755
171
  #, php-format
172
  msgid "%s ad updated."
173
  msgid_plural "%s ads updated."
174
  msgstr[0] ""
175
  msgstr[1] ""
176
 
177
- #: ../admin/class-advanced-ads-admin.php:756
178
  #, php-format
179
  msgid "%s ad not updated, somebody is editing it."
180
  msgid_plural "%s ads not updated, somebody is editing them."
181
  msgstr[0] ""
182
  msgstr[1] ""
183
 
184
- #: ../admin/class-advanced-ads-admin.php:757
185
  #, php-format
186
  msgid "%s ad permanently deleted."
187
  msgid_plural "%s ads permanently deleted."
188
  msgstr[0] ""
189
  msgstr[1] ""
190
 
191
- #: ../admin/class-advanced-ads-admin.php:758
192
  #, php-format
193
  msgid "%s ad moved to the Trash."
194
  msgid_plural "%s ads moved to the Trash."
195
  msgstr[0] ""
196
  msgstr[1] ""
197
 
198
- #: ../admin/class-advanced-ads-admin.php:759
199
  #, php-format
200
  msgid "%s ad restored from the Trash."
201
  msgid_plural "%s ads restored from the Trash."
202
  msgstr[0] ""
203
  msgstr[1] ""
204
 
205
- #: ../admin/class-advanced-ads-admin.php:794 ../admin/views/settings.php:12
206
  msgid "General"
207
  msgstr ""
208
 
209
- #: ../admin/class-advanced-ads-admin.php:806 ../admin/class-advanced-ads-admin.
210
- #: php:902
211
  msgid "Licenses"
212
  msgstr ""
213
 
214
- #: ../admin/class-advanced-ads-admin.php:817
215
  msgid "Disable ads"
216
  msgstr ""
217
 
218
- #: ../admin/class-advanced-ads-admin.php:825
219
  msgid "Hide ads for logged in users"
220
  msgstr ""
221
 
222
- #: ../admin/class-advanced-ads-admin.php:833
223
  msgid "Use advanced JavaScript"
224
  msgstr ""
225
 
226
- #: ../admin/class-advanced-ads-admin.php:841
227
  msgid "Unlimited ad injection"
228
  msgstr ""
229
 
230
- #: ../admin/class-advanced-ads-admin.php:849
231
  msgid "Priority of content injection filter"
232
  msgstr ""
233
 
234
- #: ../admin/class-advanced-ads-admin.php:857
235
  msgid "Hide ads from bots"
236
  msgstr ""
237
 
238
- #: ../admin/class-advanced-ads-admin.php:865
239
  msgid "Disable notices"
240
  msgstr ""
241
 
242
- #: ../admin/class-advanced-ads-admin.php:873
243
  msgid "ID prefix"
244
  msgstr ""
245
 
246
- #: ../admin/class-advanced-ads-admin.php:881
247
  msgid "Remove Widget ID"
248
  msgstr ""
249
 
250
- #: ../admin/class-advanced-ads-admin.php:956
251
  msgid "(display to all)"
252
  msgstr ""
253
 
254
- #: ../admin/class-advanced-ads-admin.php:957
255
  msgid "Subscriber"
256
  msgstr ""
257
 
258
- #: ../admin/class-advanced-ads-admin.php:958
259
  msgid "Contributor"
260
  msgstr ""
261
 
262
- #: ../admin/class-advanced-ads-admin.php:959
263
  msgid "Author"
264
  msgstr ""
265
 
266
- #: ../admin/class-advanced-ads-admin.php:960
267
  msgid "Editor"
268
  msgstr ""
269
 
270
- #: ../admin/class-advanced-ads-admin.php:961
271
  msgid "Admin"
272
  msgstr ""
273
 
274
- #: ../admin/class-advanced-ads-admin.php:969
275
  msgid "Choose the lowest role a user must have in order to not see any ads."
276
  msgstr ""
277
 
278
- #: ../admin/class-advanced-ads-admin.php:983
279
  msgid ""
280
  "<strong>notice: </strong>the file is currently enabled by an add-on that "
281
  "needs it."
282
  msgstr ""
283
 
284
- #: ../admin/class-advanced-ads-admin.php:986
285
  #, php-format
286
  msgid ""
287
  "Enable advanced JavaScript functions (<a href=\"%s\" target=\"_blank\">here</a>)."
@@ -289,7 +292,7 @@ msgid ""
289
  "from this file."
290
  msgstr ""
291
 
292
- #: ../admin/class-advanced-ads-admin.php:999
293
  msgid ""
294
  "Some plugins and themes trigger ad injection where it shouldn’t happen. "
295
  "Therefore, Advanced Ads ignores injected placements on non-singular pages "
@@ -298,13 +301,19 @@ msgid ""
298
  "on archive pages AT YOUR OWN RISK."
299
  msgstr ""
300
 
301
- #: ../admin/class-advanced-ads-admin.php:1013
 
 
 
 
 
 
302
  msgid ""
303
  "Play with this value in order to change the priority of the injected ads "
304
  "compared to other auto injected elements in the post content."
305
  msgstr ""
306
 
307
- #: ../admin/class-advanced-ads-admin.php:1026
308
  #, php-format
309
  msgid ""
310
  "Hide ads from crawlers, bots and empty user agents. Also prevents counting "
@@ -312,79 +321,83 @@ msgid ""
312
  "Add-On</a>."
313
  msgstr ""
314
 
315
- #: ../admin/class-advanced-ads-admin.php:1027
316
  msgid ""
317
  "Disabling this option only makes sense if your ads contain content you want "
318
  "to display to bots (like search engines) or your site is cached and bots "
319
  "could create a cached version without the ads."
320
  msgstr ""
321
 
322
- #: ../admin/class-advanced-ads-admin.php:1040
323
  msgid ""
324
  "Disable internal notices like tips, tutorials, email newsletters and update "
325
  "notices. Disabling notices is recommended if you run multiple blogs with "
326
  "Advanced Ads already."
327
  msgstr ""
328
 
329
- #: ../admin/class-advanced-ads-admin.php:1062
330
  msgid ""
331
  "Prefix of class or id attributes in the frontend. Change it if you don’t "
332
  "want <strong>ad blockers</strong> to mark these blocks as ads.<br/>You might "
333
  "need to <strong>rewrite css rules afterwards</strong>."
334
  msgstr ""
335
 
336
- #: ../admin/class-advanced-ads-admin.php:1083
337
  msgid ""
338
  "Remove the ID attribute from widgets in order to not make them an easy "
339
  "target of ad blockers."
340
  msgstr ""
341
 
342
- #: ../admin/class-advanced-ads-admin.php:1136
343
  msgid "Ad Details"
344
  msgstr ""
345
 
346
- #: ../admin/class-advanced-ads-admin.php:1210
 
 
 
 
347
  msgid "Ad Settings"
348
  msgstr ""
349
 
350
- #: ../admin/class-advanced-ads-admin.php:1289 ../admin/views/overview.php:23
351
  msgid "Ads Dashboard"
352
  msgstr ""
353
 
354
- #: ../admin/class-advanced-ads-admin.php:1301
355
  msgid "From the ad optimization universe"
356
  msgstr ""
357
 
358
- #: ../admin/class-advanced-ads-admin.php:1310
359
  msgid "Advanced Ads Tutorials"
360
  msgstr ""
361
 
362
- #: ../admin/class-advanced-ads-admin.php:1321
363
  #, php-format
364
  msgid "%d ads – <a href=\"%s\">manage</a> - <a href=\"%s\">new</a>"
365
  msgstr ""
366
 
367
- #: ../admin/class-advanced-ads-admin.php:1332
368
  msgid "plugin manual and homepage"
369
  msgstr ""
370
 
371
- #: ../admin/class-advanced-ads-admin.php:1339
372
  msgid "Get the tutorial via email"
373
  msgstr ""
374
 
375
- #: ../admin/class-advanced-ads-admin.php:1346
376
  msgid "Get AdSense tips via email"
377
  msgstr ""
378
 
379
- #: ../admin/class-advanced-ads-admin.php:1425
380
  msgid "Error while trying to register the license. Please contact support."
381
  msgstr ""
382
 
383
- #: ../admin/class-advanced-ads-admin.php:1431
384
  msgid "Please enter and save a valid license key first."
385
  msgstr ""
386
 
387
- #: ../admin/class-advanced-ads-admin.php:1451
388
  #, php-format
389
  msgid "License is invalid. Reason: %s"
390
  msgstr ""
@@ -436,7 +449,7 @@ msgid "Display ads with the highest ad weight first"
436
  msgstr ""
437
 
438
  #: ../admin/includes/class-ad-groups-list.php:259 ../public/class-advanced-ads.
439
- #: php:567
440
  msgid "Edit"
441
  msgstr ""
442
 
@@ -851,6 +864,10 @@ msgstr ""
851
  msgid "Get the Slider add-on"
852
  msgstr ""
853
 
 
 
 
 
854
  #: ../admin/includes/notices.php:14
855
  #, php-format
856
  msgid ""
@@ -908,6 +925,21 @@ msgid ""
908
  "information."
909
  msgstr ""
910
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
911
  #: ../admin/views/ad-display-metabox.php:8
912
  msgid "Choose where to display the ad and where to hide it."
913
  msgstr ""
@@ -984,8 +1016,7 @@ msgstr ""
984
  msgid "Create new Ad Group"
985
  msgstr ""
986
 
987
- #: ../admin/views/ad-group-edit.php:59 ../classes/ad_type_content.php:68 ..
988
- #: /classes/ad_type_content.php:69
989
  msgid "Update"
990
  msgstr ""
991
 
@@ -1016,7 +1047,7 @@ msgid "Number of ads that are visible at the same time"
1016
  msgstr ""
1017
 
1018
  #: ../admin/views/ad-group-list-form-row.php:31 ../public/class-advanced-ads.php:
1019
- #: 564
1020
  msgid "Ad"
1021
  msgstr ""
1022
 
@@ -1057,11 +1088,6 @@ msgstr ""
1057
  msgid "ID: %s"
1058
  msgstr ""
1059
 
1060
- #: ../admin/views/ad-group-list-row.php:21
1061
- #, php-format
1062
- msgid "Slug: %s"
1063
- msgstr ""
1064
-
1065
  #: ../admin/views/ad-group.php:18
1066
  msgid "Ad Groups successfully updated"
1067
  msgstr ""
@@ -1200,6 +1226,16 @@ msgstr ""
1200
  msgid "Internal description or your own notes about this ad."
1201
  msgstr ""
1202
 
 
 
 
 
 
 
 
 
 
 
1203
  #: ../admin/views/ad-main-metabox.php:3
1204
  msgid "No ad types defined"
1205
  msgstr ""
@@ -1280,15 +1316,15 @@ msgid ""
1280
  "with a space"
1281
  msgstr ""
1282
 
1283
- #: ../admin/views/ad-parameters-metabox.php:15 ../classes/ad_ajax_callbacks.php:51
1284
  msgid "size:"
1285
  msgstr ""
1286
 
1287
- #: ../admin/views/ad-parameters-metabox.php:16 ../classes/ad_ajax_callbacks.php:52
1288
  msgid "width"
1289
  msgstr ""
1290
 
1291
- #: ../admin/views/ad-parameters-metabox.php:17 ../classes/ad_ajax_callbacks.php:53
1292
  msgid "height"
1293
  msgstr ""
1294
 
@@ -1657,19 +1693,23 @@ msgid "Activate License"
1657
  msgstr ""
1658
 
1659
  #: ../admin/views/setting-license.php:29
1660
- msgid "license key invalid"
 
 
 
 
1661
  msgstr ""
1662
 
1663
- #: ../admin/views/setting-license.php:35
1664
  msgid "active"
1665
  msgstr ""
1666
 
1667
- #: ../admin/views/setting-license.php:36
1668
  #, php-format
1669
  msgid "(%d days left)"
1670
  msgstr ""
1671
 
1672
- #: ../admin/views/setting-license.php:39
1673
  msgid ""
1674
  "1. enter the key and save options; 2. click the activate button behind the "
1675
  "field"
@@ -1797,30 +1837,37 @@ msgid ""
1797
  "<a href=\"%2$s\" target=\"_blank\">Learn more</a>."
1798
  msgstr ""
1799
 
1800
- #: ../admin/views/support.php:53
 
 
 
 
 
 
 
1801
  msgid "Contact"
1802
  msgstr ""
1803
 
1804
- #: ../admin/views/support.php:54
1805
  #, php-format
1806
  msgid ""
1807
  "Please search the manual for a solution and take a look at <a href=\"%s\" "
1808
  "target=\"_blank\">Ads not showing up?</a> before contacting me for help."
1809
  msgstr ""
1810
 
1811
- #: ../admin/views/support.php:59
1812
  msgid "your email"
1813
  msgstr ""
1814
 
1815
- #: ../admin/views/support.php:63
1816
  msgid "your name"
1817
  msgstr ""
1818
 
1819
- #: ../admin/views/support.php:67
1820
  msgid "your message"
1821
  msgstr ""
1822
 
1823
- #: ../admin/views/support.php:72
1824
  msgid "send"
1825
  msgstr ""
1826
 
@@ -1880,22 +1927,32 @@ msgid ""
1880
  "ad content is displayed."
1881
  msgstr ""
1882
 
1883
- #: ../classes/ad_placements.php:199
 
 
 
 
 
 
 
 
 
 
1884
  #, php-format
1885
  msgid "paragraph (%s)"
1886
  msgstr ""
1887
 
1888
- #: ../classes/ad_placements.php:200
1889
  #, php-format
1890
  msgid "headline 2 (%s)"
1891
  msgstr ""
1892
 
1893
- #: ../classes/ad_placements.php:201
1894
  #, php-format
1895
  msgid "headline 3 (%s)"
1896
  msgstr ""
1897
 
1898
- #: ../classes/ad_placements.php:202
1899
  #, php-format
1900
  msgid "headline 4 (%s)"
1901
  msgstr ""
@@ -1910,14 +1967,6 @@ msgid ""
1910
  "image upload or styling, but also simple text/html mode for scripts and code."
1911
  msgstr ""
1912
 
1913
- #: ../classes/ad_type_content.php:63
1914
- msgid "Please <strong>save the ad</strong> before changing it to the content type."
1915
- msgstr ""
1916
-
1917
- #: ../classes/ad_type_content.php:66
1918
- msgid "Save Draft"
1919
- msgstr ""
1920
-
1921
  #: ../classes/ad_type_image.php:34
1922
  msgid "Image Ad"
1923
  msgstr ""
@@ -2072,10 +2121,6 @@ msgstr ""
2072
  msgid "Title:"
2073
  msgstr ""
2074
 
2075
- #: ../classes/widget.php:74
2076
- msgid "--empty--"
2077
- msgstr ""
2078
-
2079
  #: ../includes/array_ad_conditions.php:38
2080
  msgid "Post Types"
2081
  msgstr ""
@@ -2178,7 +2223,7 @@ msgid ""
2178
  "end."
2179
  msgstr ""
2180
 
2181
- #: ../modules/gadsense/admin/admin.php:123 ../modules/gadsense/admin/admin.php:258
2182
  msgid "AdSense"
2183
  msgstr ""
2184
 
@@ -2222,18 +2267,24 @@ msgstr ""
2222
  msgid "Notice: Advanced Ads only considers the AdSense ad type for this limit."
2223
  msgstr ""
2224
 
2225
- #: ../modules/gadsense/admin/admin.php:215
 
 
 
 
 
 
2226
  msgid "Insert Page-Level ads code on all pages."
2227
  msgstr ""
2228
 
2229
- #: ../modules/gadsense/admin/admin.php:217
2230
  msgid ""
2231
  "You still need to enable Page-Level ads in your AdSense account. See <a "
2232
  "href=\"https://support.google.com/adsense/answer/6245304\" "
2233
  "target=\"_blank\">AdSense Help</a> for more information"
2234
  msgstr ""
2235
 
2236
- #: ../modules/gadsense/admin/admin.php:236 ../modules/gadsense/includes/class-ad-
2237
  #: type-adsense.php:73
2238
  msgid "The Publisher ID has an incorrect format. (must start with \"pub-\")"
2239
  msgstr ""
@@ -2291,7 +2342,7 @@ msgstr ""
2291
  msgid "Use ads from your Google AdSense account"
2292
  msgstr ""
2293
 
2294
- #: ../modules/gadsense/includes/class-ad-type-adsense.php:101
2295
  msgid "Your AdSense Publisher ID is missing."
2296
  msgstr ""
2297
 
@@ -2299,93 +2350,93 @@ msgstr ""
2299
  msgid "Auto"
2300
  msgstr ""
2301
 
2302
- #: ../public/class-advanced-ads.php:295
2303
  msgid "Advanced Ads Error following:"
2304
  msgstr ""
2305
 
2306
- #: ../public/class-advanced-ads.php:298
2307
  #, php-format
2308
  msgid "Advanced Ads Error: %s"
2309
  msgstr ""
2310
 
2311
- #: ../public/class-advanced-ads.php:526
2312
  msgctxt "ad group general name"
2313
  msgid "Ad Groups"
2314
  msgstr ""
2315
 
2316
- #: ../public/class-advanced-ads.php:527
2317
  msgctxt "ad group singular name"
2318
  msgid "Ad Group"
2319
  msgstr ""
2320
 
2321
- #: ../public/class-advanced-ads.php:528
2322
  msgid "Search Ad Groups"
2323
  msgstr ""
2324
 
2325
- #: ../public/class-advanced-ads.php:529
2326
  msgid "All Ad Groups"
2327
  msgstr ""
2328
 
2329
- #: ../public/class-advanced-ads.php:530
2330
  msgid "Parent Ad Groups"
2331
  msgstr ""
2332
 
2333
- #: ../public/class-advanced-ads.php:531
2334
  msgid "Parent Ad Groups:"
2335
  msgstr ""
2336
 
2337
- #: ../public/class-advanced-ads.php:532
2338
  msgid "Edit Ad Group"
2339
  msgstr ""
2340
 
2341
- #: ../public/class-advanced-ads.php:533
2342
  msgid "Update Ad Group"
2343
  msgstr ""
2344
 
2345
- #: ../public/class-advanced-ads.php:534
2346
  msgid "Add New Ad Group"
2347
  msgstr ""
2348
 
2349
- #: ../public/class-advanced-ads.php:535
2350
  msgid "New Ad Groups Name"
2351
  msgstr ""
2352
 
2353
- #: ../public/class-advanced-ads.php:537
2354
  msgid "No Ad Group found"
2355
  msgstr ""
2356
 
2357
- #: ../public/class-advanced-ads.php:565 ../public/class-advanced-ads.php:569
2358
  msgid "New Ad"
2359
  msgstr ""
2360
 
2361
- #: ../public/class-advanced-ads.php:566
2362
  msgid "Add New Ad"
2363
  msgstr ""
2364
 
2365
- #: ../public/class-advanced-ads.php:568
2366
  msgid "Edit Ad"
2367
  msgstr ""
2368
 
2369
- #: ../public/class-advanced-ads.php:570
2370
  msgid "View"
2371
  msgstr ""
2372
 
2373
- #: ../public/class-advanced-ads.php:571
2374
  msgid "View the Ad"
2375
  msgstr ""
2376
 
2377
- #: ../public/class-advanced-ads.php:572
2378
  msgid "Search Ads"
2379
  msgstr ""
2380
 
2381
- #: ../public/class-advanced-ads.php:573
2382
  msgid "No Ads found"
2383
  msgstr ""
2384
 
2385
- #: ../public/class-advanced-ads.php:574
2386
  msgid "No Ads found in Trash"
2387
  msgstr ""
2388
 
2389
- #: ../public/class-advanced-ads.php:575
2390
  msgid "Parent Ad"
2391
  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: Thu Oct 29 2015 21:36:22 GMT+0100 (CET)\n"
9
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
10
  "Last-Translator: Thomas Maier <post@webzunft.de>\n"
11
  "Language-Team: webgilde <thomas.maier@webgilde.com>\n"
44
  msgid "http://webgilde.com"
45
  msgstr ""
46
 
47
+ #: ../admin/class-advanced-ads-admin.php:251
48
  msgid "Overview"
49
  msgstr ""
50
 
51
+ #: ../admin/class-advanced-ads-admin.php:255 ../admin/class-advanced-ads-admin.
52
+ #: php:255 ../admin/includes/class-shortcode-creator.php:77 ../admin/views/ad-
53
+ #: group-list-form-row.php:28 ../admin/views/ad-group-list-header.php:5 ..
54
+ #: /admin/views/placements.php:80 ../admin/views/placements.php:184 ..
55
+ #: /classes/widget.php:90 ../public/class-advanced-ads.php:560
56
  msgid "Ads"
57
  msgstr ""
58
 
59
+ #: ../admin/class-advanced-ads-admin.php:259 ../admin/includes/class-shortcode-
60
+ #: creator.php:84 ../admin/views/placements.php:73 ../admin/views/placements.php:
61
+ #: 177 ../classes/widget.php:83
62
  msgid "Ad Groups"
63
  msgstr ""
64
 
65
+ #: ../admin/class-advanced-ads-admin.php:259 ../public/class-advanced-ads.php:533
66
  msgid "Groups"
67
  msgstr ""
68
 
69
+ #: ../admin/class-advanced-ads-admin.php:264 ../admin/views/debug.php:14
70
  msgid "Ad Placements"
71
  msgstr ""
72
 
73
+ #: ../admin/class-advanced-ads-admin.php:264 ../admin/includes/class-shortcode-
74
+ #: creator.php:91 ../admin/views/placements.php:18 ../classes/widget.php:76
75
  msgid "Placements"
76
  msgstr ""
77
 
78
+ #: ../admin/class-advanced-ads-admin.php:268
79
  msgid "Advanced Ads Settings"
80
  msgstr ""
81
 
82
+ #: ../admin/class-advanced-ads-admin.php:268 ../admin/class-advanced-ads-admin.
83
+ #: php:495 ../admin/views/debug.php:11
84
  msgid "Settings"
85
  msgstr ""
86
 
87
+ #: ../admin/class-advanced-ads-admin.php:271
88
  msgid "Advanced Ads Debugging"
89
  msgstr ""
90
 
91
+ #: ../admin/class-advanced-ads-admin.php:271
92
  msgid "Debug"
93
  msgstr ""
94
 
95
+ #: ../admin/class-advanced-ads-admin.php:275 ../admin/class-advanced-ads-admin.
96
+ #: php:275
97
  msgid "Advanced Ads Intro"
98
  msgstr ""
99
 
100
+ #: ../admin/class-advanced-ads-admin.php:279 ../admin/class-advanced-ads-admin.
101
+ #: php:279
102
  msgid "Support"
103
  msgstr ""
104
 
105
+ #: ../admin/class-advanced-ads-admin.php:409 ../admin/class-advanced-ads-admin.
106
+ #: php:436
107
  msgid "Sorry, you are not allowed to access this feature."
108
  msgstr ""
109
 
110
+ #: ../admin/class-advanced-ads-admin.php:422
111
  msgid ""
112
  "You attempted to edit an ad group that doesn&#8217;t exist. Perhaps it was "
113
  "deleted?"
114
  msgstr ""
115
 
116
+ #: ../admin/class-advanced-ads-admin.php:537
117
  msgid "Ad Type"
118
  msgstr ""
119
 
120
+ #: ../admin/class-advanced-ads-admin.php:540
121
  msgid "Ad Parameters"
122
  msgstr ""
123
 
124
+ #: ../admin/class-advanced-ads-admin.php:543
125
  msgid "Layout / Output"
126
  msgstr ""
127
 
128
+ #: ../admin/class-advanced-ads-admin.php:546
129
  msgid "Display Conditions"
130
  msgstr ""
131
 
132
+ #: ../admin/class-advanced-ads-admin.php:549
133
  msgid "Visitor Conditions"
134
  msgstr ""
135
 
136
+ #: ../admin/class-advanced-ads-admin.php:729 ../admin/class-advanced-ads-admin.
137
+ #: php:730
138
  msgid "Ad updated."
139
  msgstr ""
140
 
141
  #. translators: %s: date and time of the revision
142
+ #: ../admin/class-advanced-ads-admin.php:732
143
  #, php-format
144
  msgid "Ad restored to revision from %s"
145
  msgstr ""
146
 
147
+ #: ../admin/class-advanced-ads-admin.php:733
148
  msgid "Ad published."
149
  msgstr ""
150
 
151
+ #: ../admin/class-advanced-ads-admin.php:734
152
  msgid "Ad saved."
153
  msgstr ""
154
 
155
+ #: ../admin/class-advanced-ads-admin.php:735
156
  msgid "Ad submitted."
157
  msgstr ""
158
 
159
+ #: ../admin/class-advanced-ads-admin.php:737
160
  #, php-format
161
  msgid "Ad scheduled for: <strong>%1$s</strong>."
162
  msgstr ""
163
 
164
  #. translators: Publish box date format, see http://php.net/date
165
+ #: ../admin/class-advanced-ads-admin.php:739
166
  msgid "M j, Y @ G:i"
167
  msgstr ""
168
 
169
+ #: ../admin/class-advanced-ads-admin.php:741
170
  msgid "Ad draft updated."
171
  msgstr ""
172
 
173
+ #: ../admin/class-advanced-ads-admin.php:760
174
  #, php-format
175
  msgid "%s ad updated."
176
  msgid_plural "%s ads updated."
177
  msgstr[0] ""
178
  msgstr[1] ""
179
 
180
+ #: ../admin/class-advanced-ads-admin.php:761
181
  #, php-format
182
  msgid "%s ad not updated, somebody is editing it."
183
  msgid_plural "%s ads not updated, somebody is editing them."
184
  msgstr[0] ""
185
  msgstr[1] ""
186
 
187
+ #: ../admin/class-advanced-ads-admin.php:762
188
  #, php-format
189
  msgid "%s ad permanently deleted."
190
  msgid_plural "%s ads permanently deleted."
191
  msgstr[0] ""
192
  msgstr[1] ""
193
 
194
+ #: ../admin/class-advanced-ads-admin.php:763
195
  #, php-format
196
  msgid "%s ad moved to the Trash."
197
  msgid_plural "%s ads moved to the Trash."
198
  msgstr[0] ""
199
  msgstr[1] ""
200
 
201
+ #: ../admin/class-advanced-ads-admin.php:764
202
  #, php-format
203
  msgid "%s ad restored from the Trash."
204
  msgid_plural "%s ads restored from the Trash."
205
  msgstr[0] ""
206
  msgstr[1] ""
207
 
208
+ #: ../admin/class-advanced-ads-admin.php:799 ../admin/views/settings.php:12
209
  msgid "General"
210
  msgstr ""
211
 
212
+ #: ../admin/class-advanced-ads-admin.php:811 ../admin/class-advanced-ads-admin.
213
+ #: php:907
214
  msgid "Licenses"
215
  msgstr ""
216
 
217
+ #: ../admin/class-advanced-ads-admin.php:822
218
  msgid "Disable ads"
219
  msgstr ""
220
 
221
+ #: ../admin/class-advanced-ads-admin.php:830
222
  msgid "Hide ads for logged in users"
223
  msgstr ""
224
 
225
+ #: ../admin/class-advanced-ads-admin.php:838
226
  msgid "Use advanced JavaScript"
227
  msgstr ""
228
 
229
+ #: ../admin/class-advanced-ads-admin.php:846
230
  msgid "Unlimited ad injection"
231
  msgstr ""
232
 
233
+ #: ../admin/class-advanced-ads-admin.php:854
234
  msgid "Priority of content injection filter"
235
  msgstr ""
236
 
237
+ #: ../admin/class-advanced-ads-admin.php:862
238
  msgid "Hide ads from bots"
239
  msgstr ""
240
 
241
+ #: ../admin/class-advanced-ads-admin.php:870
242
  msgid "Disable notices"
243
  msgstr ""
244
 
245
+ #: ../admin/class-advanced-ads-admin.php:878
246
  msgid "ID prefix"
247
  msgstr ""
248
 
249
+ #: ../admin/class-advanced-ads-admin.php:886
250
  msgid "Remove Widget ID"
251
  msgstr ""
252
 
253
+ #: ../admin/class-advanced-ads-admin.php:961
254
  msgid "(display to all)"
255
  msgstr ""
256
 
257
+ #: ../admin/class-advanced-ads-admin.php:962
258
  msgid "Subscriber"
259
  msgstr ""
260
 
261
+ #: ../admin/class-advanced-ads-admin.php:963
262
  msgid "Contributor"
263
  msgstr ""
264
 
265
+ #: ../admin/class-advanced-ads-admin.php:964
266
  msgid "Author"
267
  msgstr ""
268
 
269
+ #: ../admin/class-advanced-ads-admin.php:965
270
  msgid "Editor"
271
  msgstr ""
272
 
273
+ #: ../admin/class-advanced-ads-admin.php:966
274
  msgid "Admin"
275
  msgstr ""
276
 
277
+ #: ../admin/class-advanced-ads-admin.php:974
278
  msgid "Choose the lowest role a user must have in order to not see any ads."
279
  msgstr ""
280
 
281
+ #: ../admin/class-advanced-ads-admin.php:988
282
  msgid ""
283
  "<strong>notice: </strong>the file is currently enabled by an add-on that "
284
  "needs it."
285
  msgstr ""
286
 
287
+ #: ../admin/class-advanced-ads-admin.php:991
288
  #, php-format
289
  msgid ""
290
  "Enable advanced JavaScript functions (<a href=\"%s\" target=\"_blank\">here</a>)."
292
  "from this file."
293
  msgstr ""
294
 
295
+ #: ../admin/class-advanced-ads-admin.php:1004
296
  msgid ""
297
  "Some plugins and themes trigger ad injection where it shouldn’t happen. "
298
  "Therefore, Advanced Ads ignores injected placements on non-singular pages "
301
  "on archive pages AT YOUR OWN RISK."
302
  msgstr ""
303
 
304
+ #: ../admin/class-advanced-ads-admin.php:1020
305
+ msgid ""
306
+ "Please check your post content. A priority of 10 and below might cause "
307
+ "issues (wpautop function might run twice)."
308
+ msgstr ""
309
+
310
+ #: ../admin/class-advanced-ads-admin.php:1022
311
  msgid ""
312
  "Play with this value in order to change the priority of the injected ads "
313
  "compared to other auto injected elements in the post content."
314
  msgstr ""
315
 
316
+ #: ../admin/class-advanced-ads-admin.php:1036
317
  #, php-format
318
  msgid ""
319
  "Hide ads from crawlers, bots and empty user agents. Also prevents counting "
321
  "Add-On</a>."
322
  msgstr ""
323
 
324
+ #: ../admin/class-advanced-ads-admin.php:1037
325
  msgid ""
326
  "Disabling this option only makes sense if your ads contain content you want "
327
  "to display to bots (like search engines) or your site is cached and bots "
328
  "could create a cached version without the ads."
329
  msgstr ""
330
 
331
+ #: ../admin/class-advanced-ads-admin.php:1050
332
  msgid ""
333
  "Disable internal notices like tips, tutorials, email newsletters and update "
334
  "notices. Disabling notices is recommended if you run multiple blogs with "
335
  "Advanced Ads already."
336
  msgstr ""
337
 
338
+ #: ../admin/class-advanced-ads-admin.php:1072
339
  msgid ""
340
  "Prefix of class or id attributes in the frontend. Change it if you don’t "
341
  "want <strong>ad blockers</strong> to mark these blocks as ads.<br/>You might "
342
  "need to <strong>rewrite css rules afterwards</strong>."
343
  msgstr ""
344
 
345
+ #: ../admin/class-advanced-ads-admin.php:1093
346
  msgid ""
347
  "Remove the ID attribute from widgets in order to not make them an easy "
348
  "target of ad blockers."
349
  msgstr ""
350
 
351
+ #: ../admin/class-advanced-ads-admin.php:1146
352
  msgid "Ad Details"
353
  msgstr ""
354
 
355
+ #: ../admin/class-advanced-ads-admin.php:1147
356
+ msgid "Ad Planning"
357
+ msgstr ""
358
+
359
+ #: ../admin/class-advanced-ads-admin.php:1249
360
  msgid "Ad Settings"
361
  msgstr ""
362
 
363
+ #: ../admin/class-advanced-ads-admin.php:1328 ../admin/views/overview.php:23
364
  msgid "Ads Dashboard"
365
  msgstr ""
366
 
367
+ #: ../admin/class-advanced-ads-admin.php:1340
368
  msgid "From the ad optimization universe"
369
  msgstr ""
370
 
371
+ #: ../admin/class-advanced-ads-admin.php:1349
372
  msgid "Advanced Ads Tutorials"
373
  msgstr ""
374
 
375
+ #: ../admin/class-advanced-ads-admin.php:1360
376
  #, php-format
377
  msgid "%d ads – <a href=\"%s\">manage</a> - <a href=\"%s\">new</a>"
378
  msgstr ""
379
 
380
+ #: ../admin/class-advanced-ads-admin.php:1371
381
  msgid "plugin manual and homepage"
382
  msgstr ""
383
 
384
+ #: ../admin/class-advanced-ads-admin.php:1378
385
  msgid "Get the tutorial via email"
386
  msgstr ""
387
 
388
+ #: ../admin/class-advanced-ads-admin.php:1385
389
  msgid "Get AdSense tips via email"
390
  msgstr ""
391
 
392
+ #: ../admin/class-advanced-ads-admin.php:1464
393
  msgid "Error while trying to register the license. Please contact support."
394
  msgstr ""
395
 
396
+ #: ../admin/class-advanced-ads-admin.php:1470
397
  msgid "Please enter and save a valid license key first."
398
  msgstr ""
399
 
400
+ #: ../admin/class-advanced-ads-admin.php:1490
401
  #, php-format
402
  msgid "License is invalid. Reason: %s"
403
  msgstr ""
449
  msgstr ""
450
 
451
  #: ../admin/includes/class-ad-groups-list.php:259 ../public/class-advanced-ads.
452
+ #: php:564
453
  msgid "Edit"
454
  msgstr ""
455
 
864
  msgid "Get the Slider add-on"
865
  msgstr ""
866
 
867
+ #: ../admin/includes/class-shortcode-creator.php:75 ../classes/widget.php:74
868
+ msgid "--empty--"
869
+ msgstr ""
870
+
871
  #: ../admin/includes/notices.php:14
872
  #, php-format
873
  msgid ""
925
  "information."
926
  msgstr ""
927
 
928
+ #: ../admin/includes/shortcode-creator-l10n.php:10
929
+ msgctxt "shortcode creator"
930
+ msgid "Add an ad"
931
+ msgstr ""
932
+
933
+ #: ../admin/includes/shortcode-creator-l10n.php:11
934
+ msgctxt "shortcode creator"
935
+ msgid "Add shortcode"
936
+ msgstr ""
937
+
938
+ #: ../admin/includes/shortcode-creator-l10n.php:12
939
+ msgctxt "shortcode creator"
940
+ msgid "Cancel"
941
+ msgstr ""
942
+
943
  #: ../admin/views/ad-display-metabox.php:8
944
  msgid "Choose where to display the ad and where to hide it."
945
  msgstr ""
1016
  msgid "Create new Ad Group"
1017
  msgstr ""
1018
 
1019
+ #: ../admin/views/ad-group-edit.php:59
 
1020
  msgid "Update"
1021
  msgstr ""
1022
 
1047
  msgstr ""
1048
 
1049
  #: ../admin/views/ad-group-list-form-row.php:31 ../public/class-advanced-ads.php:
1050
+ #: 561
1051
  msgid "Ad"
1052
  msgstr ""
1053
 
1088
  msgid "ID: %s"
1089
  msgstr ""
1090
 
 
 
 
 
 
1091
  #: ../admin/views/ad-group.php:18
1092
  msgid "Ad Groups successfully updated"
1093
  msgstr ""
1226
  msgid "Internal description or your own notes about this ad."
1227
  msgstr ""
1228
 
1229
+ #: ../admin/views/ad-list-timing-column.php:4
1230
+ #, php-format
1231
+ msgid "starts %s"
1232
+ msgstr ""
1233
+
1234
+ #: ../admin/views/ad-list-timing-column.php:7
1235
+ #, php-format
1236
+ msgid "expires %s"
1237
+ msgstr ""
1238
+
1239
  #: ../admin/views/ad-main-metabox.php:3
1240
  msgid "No ad types defined"
1241
  msgstr ""
1316
  "with a space"
1317
  msgstr ""
1318
 
1319
+ #: ../admin/views/ad-parameters-metabox.php:25 ../classes/ad_ajax_callbacks.php:51
1320
  msgid "size:"
1321
  msgstr ""
1322
 
1323
+ #: ../admin/views/ad-parameters-metabox.php:26 ../classes/ad_ajax_callbacks.php:52
1324
  msgid "width"
1325
  msgstr ""
1326
 
1327
+ #: ../admin/views/ad-parameters-metabox.php:27 ../classes/ad_ajax_callbacks.php:53
1328
  msgid "height"
1329
  msgstr ""
1330
 
1693
  msgstr ""
1694
 
1695
  #: ../admin/views/setting-license.php:29
1696
+ msgid "Please enter a valid license key"
1697
+ msgstr ""
1698
+
1699
+ #: ../admin/views/setting-license.php:31
1700
+ msgid "License key invalid"
1701
  msgstr ""
1702
 
1703
+ #: ../admin/views/setting-license.php:37
1704
  msgid "active"
1705
  msgstr ""
1706
 
1707
+ #: ../admin/views/setting-license.php:38
1708
  #, php-format
1709
  msgid "(%d days left)"
1710
  msgstr ""
1711
 
1712
+ #: ../admin/views/setting-license.php:41
1713
  msgid ""
1714
  "1. enter the key and save options; 2. click the activate button behind the "
1715
  "field"
1837
  "<a href=\"%2$s\" target=\"_blank\">Learn more</a>."
1838
  msgstr ""
1839
 
1840
+ #: ../admin/views/support.php:48
1841
+ #, php-format
1842
+ msgid ""
1843
+ "Ads are disabled for all or some pages. See \"disabled ads\" in <a "
1844
+ "href=\"%s\">settings</a>."
1845
+ msgstr ""
1846
+
1847
+ #: ../admin/views/support.php:57
1848
  msgid "Contact"
1849
  msgstr ""
1850
 
1851
+ #: ../admin/views/support.php:58
1852
  #, php-format
1853
  msgid ""
1854
  "Please search the manual for a solution and take a look at <a href=\"%s\" "
1855
  "target=\"_blank\">Ads not showing up?</a> before contacting me for help."
1856
  msgstr ""
1857
 
1858
+ #: ../admin/views/support.php:63
1859
  msgid "your email"
1860
  msgstr ""
1861
 
1862
+ #: ../admin/views/support.php:67
1863
  msgid "your name"
1864
  msgstr ""
1865
 
1866
+ #: ../admin/views/support.php:71
1867
  msgid "your message"
1868
  msgstr ""
1869
 
1870
+ #: ../admin/views/support.php:76
1871
  msgid "send"
1872
  msgstr ""
1873
 
1927
  "ad content is displayed."
1928
  msgstr ""
1929
 
1930
+ #: ../classes/ad_placements.php:61
1931
+ msgid "Sidebar Widget"
1932
+ msgstr ""
1933
+
1934
+ #: ../classes/ad_placements.php:62
1935
+ msgid ""
1936
+ "Create a sidebar widget with an ad. Can be placed and used like any other "
1937
+ "widget."
1938
+ msgstr ""
1939
+
1940
+ #: ../classes/ad_placements.php:204
1941
  #, php-format
1942
  msgid "paragraph (%s)"
1943
  msgstr ""
1944
 
1945
+ #: ../classes/ad_placements.php:205
1946
  #, php-format
1947
  msgid "headline 2 (%s)"
1948
  msgstr ""
1949
 
1950
+ #: ../classes/ad_placements.php:206
1951
  #, php-format
1952
  msgid "headline 3 (%s)"
1953
  msgstr ""
1954
 
1955
+ #: ../classes/ad_placements.php:207
1956
  #, php-format
1957
  msgid "headline 4 (%s)"
1958
  msgstr ""
1967
  "image upload or styling, but also simple text/html mode for scripts and code."
1968
  msgstr ""
1969
 
 
 
 
 
 
 
 
 
1970
  #: ../classes/ad_type_image.php:34
1971
  msgid "Image Ad"
1972
  msgstr ""
2121
  msgid "Title:"
2122
  msgstr ""
2123
 
 
 
 
 
2124
  #: ../includes/array_ad_conditions.php:38
2125
  msgid "Post Types"
2126
  msgstr ""
2223
  "end."
2224
  msgstr ""
2225
 
2226
+ #: ../modules/gadsense/admin/admin.php:123 ../modules/gadsense/admin/admin.php:262
2227
  msgid "AdSense"
2228
  msgstr ""
2229
 
2267
  msgid "Notice: Advanced Ads only considers the AdSense ad type for this limit."
2268
  msgstr ""
2269
 
2270
+ #: ../modules/gadsense/admin/admin.php:205
2271
+ msgid ""
2272
+ "Due to technical restrictions, the limit does not work on placements with "
2273
+ "cache-busting enabled."
2274
+ msgstr ""
2275
+
2276
+ #: ../modules/gadsense/admin/admin.php:219
2277
  msgid "Insert Page-Level ads code on all pages."
2278
  msgstr ""
2279
 
2280
+ #: ../modules/gadsense/admin/admin.php:221
2281
  msgid ""
2282
  "You still need to enable Page-Level ads in your AdSense account. See <a "
2283
  "href=\"https://support.google.com/adsense/answer/6245304\" "
2284
  "target=\"_blank\">AdSense Help</a> for more information"
2285
  msgstr ""
2286
 
2287
+ #: ../modules/gadsense/admin/admin.php:240 ../modules/gadsense/includes/class-ad-
2288
  #: type-adsense.php:73
2289
  msgid "The Publisher ID has an incorrect format. (must start with \"pub-\")"
2290
  msgstr ""
2342
  msgid "Use ads from your Google AdSense account"
2343
  msgstr ""
2344
 
2345
+ #: ../modules/gadsense/includes/class-ad-type-adsense.php:104
2346
  msgid "Your AdSense Publisher ID is missing."
2347
  msgstr ""
2348
 
2350
  msgid "Auto"
2351
  msgstr ""
2352
 
2353
+ #: ../public/class-advanced-ads.php:292
2354
  msgid "Advanced Ads Error following:"
2355
  msgstr ""
2356
 
2357
+ #: ../public/class-advanced-ads.php:295
2358
  #, php-format
2359
  msgid "Advanced Ads Error: %s"
2360
  msgstr ""
2361
 
2362
+ #: ../public/class-advanced-ads.php:523
2363
  msgctxt "ad group general name"
2364
  msgid "Ad Groups"
2365
  msgstr ""
2366
 
2367
+ #: ../public/class-advanced-ads.php:524
2368
  msgctxt "ad group singular name"
2369
  msgid "Ad Group"
2370
  msgstr ""
2371
 
2372
+ #: ../public/class-advanced-ads.php:525
2373
  msgid "Search Ad Groups"
2374
  msgstr ""
2375
 
2376
+ #: ../public/class-advanced-ads.php:526
2377
  msgid "All Ad Groups"
2378
  msgstr ""
2379
 
2380
+ #: ../public/class-advanced-ads.php:527
2381
  msgid "Parent Ad Groups"
2382
  msgstr ""
2383
 
2384
+ #: ../public/class-advanced-ads.php:528
2385
  msgid "Parent Ad Groups:"
2386
  msgstr ""
2387
 
2388
+ #: ../public/class-advanced-ads.php:529
2389
  msgid "Edit Ad Group"
2390
  msgstr ""
2391
 
2392
+ #: ../public/class-advanced-ads.php:530
2393
  msgid "Update Ad Group"
2394
  msgstr ""
2395
 
2396
+ #: ../public/class-advanced-ads.php:531
2397
  msgid "Add New Ad Group"
2398
  msgstr ""
2399
 
2400
+ #: ../public/class-advanced-ads.php:532
2401
  msgid "New Ad Groups Name"
2402
  msgstr ""
2403
 
2404
+ #: ../public/class-advanced-ads.php:534
2405
  msgid "No Ad Group found"
2406
  msgstr ""
2407
 
2408
+ #: ../public/class-advanced-ads.php:562 ../public/class-advanced-ads.php:566
2409
  msgid "New Ad"
2410
  msgstr ""
2411
 
2412
+ #: ../public/class-advanced-ads.php:563
2413
  msgid "Add New Ad"
2414
  msgstr ""
2415
 
2416
+ #: ../public/class-advanced-ads.php:565
2417
  msgid "Edit Ad"
2418
  msgstr ""
2419
 
2420
+ #: ../public/class-advanced-ads.php:567
2421
  msgid "View"
2422
  msgstr ""
2423
 
2424
+ #: ../public/class-advanced-ads.php:568
2425
  msgid "View the Ad"
2426
  msgstr ""
2427
 
2428
+ #: ../public/class-advanced-ads.php:569
2429
  msgid "Search Ads"
2430
  msgstr ""
2431
 
2432
+ #: ../public/class-advanced-ads.php:570
2433
  msgid "No Ads found"
2434
  msgstr ""
2435
 
2436
+ #: ../public/class-advanced-ads.php:571
2437
  msgid "No Ads found in Trash"
2438
  msgstr ""
2439
 
2440
+ #: ../public/class-advanced-ads.php:572
2441
  msgid "Parent Ad"
2442
  msgstr ""
modules/gadsense/includes/class-ad-type-adsense.php CHANGED
@@ -75,7 +75,10 @@ class Advanced_Ads_Ad_Type_Adsense extends Advanced_Ads_Ad_Type_Abstract {
75
 
76
  if ( ! empty($content) ) {
77
  $json_content = $content;
78
- $content = json_decode( $content );
 
 
 
79
  if ( isset($content->unitType) ) {
80
  $content->json = $json_content;
81
  $unit_type = $content->unitType;
75
 
76
  if ( ! empty($content) ) {
77
  $json_content = $content;
78
+
79
+ // get json content striped by slashes
80
+ $content = json_decode( stripslashes( $content ) );
81
+
82
  if ( isset($content->unitType) ) {
83
  $content->json = $json_content;
84
  $unit_type = $content->unitType;
public/assets/js/advanced.js CHANGED
@@ -1 +1 @@
1
- advads={max_per_session:function(e,t){var o=1;if((void 0===t||0===parseInt(t))&&(t=1),this.cookie_exists(e)){if(this.get_cookie(e)>=t)return!0;o+=parseInt(this.get_cookie(e))}return this.set_cookie(e,o),!1},count_up:function(e){var t=1;this.cookie_exists(e)&&(t+=parseInt(this.get_cookie(e))),this.set_cookie(e,t)},set_cookie_exists:function(e){return get_cookie(e)?!0:(set_cookie(e,"",0),!1)},get_cookie:function(e){var t,o,i,n=document.cookie.split(";");for(t=0;t<n.length;t++)if(o=n[t].substr(0,n[t].indexOf("=")),i=n[t].substr(n[t].indexOf("=")+1),o=o.replace(/^\s+|\s+$/g,""),o===e)return unescape(i)},set_cookie:function(e,t,o,i,n,r){var s=new Date;s.setDate(s.getDate()+o),document.cookie=e+"="+escape(t)+(null==o?"":"; expires="+s.toUTCString())+(null==i?"; path=/":"; path="+i)+(null==n?"":"; domain="+n)+(null==r?"":"; secure")},cookie_exists:function(e){var t=this.get_cookie(e);return null!==t&&""!==t&&void 0!==t?!0:!1},move:function(e,t,o){var i=jQuery(e);if("undefined"==typeof o&&(o={}),"undefined"==typeof o.css&&(o.css={}),"undefined"==typeof o.method&&(o.method="prependTo"),""===t&&"undefined"!=typeof o.target)switch(o.target){case"wrapper":var n="left";"undefined"!=typeof o.offset&&(n=o.offset),t=this.find_wrapper(e,n)}switch(o.method){case"insertBefore":i.insertBefore(t);break;case"insertAfter":i.insertAfter(t);break;case"appendTo":i.appendTo(t);break;case"prependTo":i.prependTo(t);break;default:i.prependTo(t)}},fix_element:function(e){var t=jQuery(e),o=t.parent();("static"===o.css("position")||""===o.css("position"))&&o.css("position","relative");var i=parseInt(t.offset().top),n=parseInt(t.offset().left);t.css("position","fixed").css("top",i+"px").css("left",n+"px")},find_wrapper:function(e,t){var o;return jQuery("body").children().each(function(i,n){if(n.id!==e.substring(1)){var r=jQuery(n);if("right"===t&&r.offset().left+jQuery(r).width()<jQuery(window).width()||"left"===t&&r.offset().left>0)return("static"===r.css("position")||""===r.css("position"))&&r.css("position","relative"),o=n,!1}}),o},center_fixed_element:function(e){var t=jQuery(e),o=jQuery(window).width()/2-parseInt(t.css("width"))/2;t.css("left",o+"px")},center_vertically:function(e){var t=jQuery(e),o=jQuery(window).height()/2-parseInt(t.css("height"))/2;t.css("top",o+"px")},close:function(e){var t=jQuery(e);t.remove()}},jQuery(document).ready(function(){if(localStorage.getItem("advads_frontend_picker")){var e,t=jQuery("<div id='advads-picker-overlay'>"),o=[document.body,document.documentElement,document];t.css({position:"absolute",border:"solid 2px #428bca",backgroundColor:"rgba(66,139,202,0.5)",boxSizing:"border-box",zIndex:1e6,pointerEvents:"none"}).prependTo("body"),jQuery(document).mousemove(function(i){if(i.target!==e){if(~o.indexOf(i.target))return e=null,void t.hide();var n=jQuery(i.target),r=n.offset(),s=n.outerWidth(),a=n.outerHeight();e=i.target,t.css({top:r.top,left:r.left,width:s,height:a}).show(),console.log(jQuery(e).getPath())}}),jQuery(document).click(function(){var t=jQuery(e).getPath();localStorage.setItem("advads_frontend_element",t),window.location=localStorage.getItem("advads_prev_url")})}}),jQuery.fn.extend({getPath:function(e,t){if("undefined"==typeof e&&(e=""),"undefined"==typeof t&&(t=0),this.is("html"))return"html > "+e;if(2===t)return e;var o=this.get(0).nodeName.toLowerCase(),i=this.attr("id"),n=this.attr("class");return"undefined"!=typeof i?(o+="#"+i,t+=1):"undefined"!=typeof n&&(o+="."+n.split(/[\s\n]+/).join(".")),this.siblings(o).length&&(o+=":eq("+this.index()+")"),""===e?this.parent().getPath(o,t):this.parent().getPath(o+" > "+e,t)}});
1
+ advads={max_per_session:function(e,t){var o=1;if((void 0===t||0===parseInt(t))&&(t=1),this.cookie_exists(e)){if(this.get_cookie(e)>=t)return!0;o+=parseInt(this.get_cookie(e))}return this.set_cookie(e,o),!1},count_up:function(e){var t=1;this.cookie_exists(e)&&(t+=parseInt(this.get_cookie(e))),this.set_cookie(e,t)},set_cookie_exists:function(e){return get_cookie(e)?!0:(set_cookie(e,"",0),!1)},get_cookie:function(e){var t,o,i,n=document.cookie.split(";");for(t=0;t<n.length;t++)if(o=n[t].substr(0,n[t].indexOf("=")),i=n[t].substr(n[t].indexOf("=")+1),o=o.replace(/^\s+|\s+$/g,""),o===e)return unescape(i)},set_cookie:function(e,t,o,i,n,s){var r=24*o*60*60;this.set_cookie_sec(e,t,r,i,n,s)},set_cookie_sec:function(e,t,o,i,n,s){var r=new Date;r.setSeconds(r.getSeconds()+parseInt(o)),document.cookie=e+"="+escape(t)+(null==o?"":"; expires="+r.toUTCString())+(null==i?"; path=/":"; path="+i)+(null==n?"":"; domain="+n)+(null==s?"":"; secure")},cookie_exists:function(e){var t=this.get_cookie(e);return null!==t&&""!==t&&void 0!==t?!0:!1},move:function(e,t,o){var i=jQuery(e);if("undefined"==typeof o&&(o={}),"undefined"==typeof o.css&&(o.css={}),"undefined"==typeof o.method&&(o.method="prependTo"),""===t&&"undefined"!=typeof o.target)switch(o.target){case"wrapper":var n="left";"undefined"!=typeof o.offset&&(n=o.offset),t=this.find_wrapper(e,n)}switch(o.method){case"insertBefore":i.insertBefore(t);break;case"insertAfter":i.insertAfter(t);break;case"appendTo":i.appendTo(t);break;case"prependTo":i.prependTo(t);break;default:i.prependTo(t)}},fix_element:function(e){var t=jQuery(e),o=t.parent();("static"===o.css("position")||""===o.css("position"))&&o.css("position","relative");var i=parseInt(t.offset().top),n=parseInt(t.offset().left);t.css("position","fixed").css("top",i+"px").css("left",n+"px")},find_wrapper:function(e,t){var o;return jQuery("body").children().each(function(i,n){if(n.id!==e.substring(1)){var s=jQuery(n);if("right"===t&&s.offset().left+jQuery(s).width()<jQuery(window).width()||"left"===t&&s.offset().left>0)return("static"===s.css("position")||""===s.css("position"))&&s.css("position","relative"),o=n,!1}}),o},center_fixed_element:function(e){var t=jQuery(e),o=jQuery(window).width()/2-parseInt(t.css("width"))/2;t.css("left",o+"px")},center_vertically:function(e){var t=jQuery(e),o=jQuery(window).height()/2-parseInt(t.css("height"))/2;t.css("top",o+"px")},close:function(e){var t=jQuery(e);t.remove()}},jQuery(document).ready(function(){if(localStorage.getItem("advads_frontend_picker")){var e,t=jQuery("<div id='advads-picker-overlay'>"),o=[document.body,document.documentElement,document];t.css({position:"absolute",border:"solid 2px #428bca",backgroundColor:"rgba(66,139,202,0.5)",boxSizing:"border-box",zIndex:1e6,pointerEvents:"none"}).prependTo("body"),jQuery(document).mousemove(function(i){if(i.target!==e){if(~o.indexOf(i.target))return e=null,void t.hide();var n=jQuery(i.target),s=n.offset(),r=n.outerWidth(),a=n.outerHeight();e=i.target,t.css({top:s.top,left:s.left,width:r,height:a}).show(),console.log(jQuery(e).getPath())}}),jQuery(document).click(function(){var t=jQuery(e).getPath();localStorage.setItem("advads_frontend_element",t),window.location=localStorage.getItem("advads_prev_url")})}}),jQuery.fn.extend({getPath:function(e,t){if("undefined"==typeof e&&(e=""),"undefined"==typeof t&&(t=0),this.is("html"))return"html > "+e;if(2===t)return e;var o=this.get(0).nodeName.toLowerCase(),i=this.attr("id"),n=this.attr("class");return"undefined"!=typeof i?(o+="#"+i,t+=1):"undefined"!=typeof n&&(o+="."+n.split(/[\s\n]+/).join(".")),this.siblings(o).length&&(o+=":eq("+this.index()+")"),""===e?this.parent().getPath(o,t):this.parent().getPath(o+" > "+e,t)}});
public/assets/js/advanced.orig.js CHANGED
@@ -82,10 +82,24 @@ advads = {
82
  * set null to expire cookie in the current session
83
  */
84
  set_cookie: function (name, value, exdays, path, domain, secure) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  var exdate = new Date();
86
- exdate.setDate( exdate.getDate() + exdays );
87
  document.cookie = name + "=" + escape( value ) +
88
- ((exdays == null) ? "" : "; expires=" + exdate.toUTCString()) +
89
  ((path == null) ? "; path=/" : "; path=" + path) +
90
  ((domain == null) ? "" : "; domain=" + domain) +
91
  ((secure == null) ? "" : "; secure");
82
  * set null to expire cookie in the current session
83
  */
84
  set_cookie: function (name, value, exdays, path, domain, secure) {
85
+ // days in seconds
86
+ var expiry = exdays * 24 * 60 * 60;
87
+ this.set_cookie_sec( name, value, expiry, path, domain, secure );
88
+ },
89
+ /**
90
+ * set a cookie with expiry given in seconds
91
+ *
92
+ * @param {str} name of the cookie
93
+ * @param {str} value of the cookie
94
+ * @param {int} expiry seconds until cookie expires
95
+ * set 0 to expire cookie immidiatelly
96
+ * set null to expire cookie in the current session
97
+ */
98
+ set_cookie_sec: function (name, value, expiry, path, domain, secure) {
99
  var exdate = new Date();
100
+ exdate.setSeconds( exdate.getSeconds() + parseInt( expiry ) );
101
  document.cookie = name + "=" + escape( value ) +
102
+ ((expiry == null) ? "" : "; expires=" + exdate.toUTCString()) +
103
  ((path == null) ? "; path=/" : "; path=" + path) +
104
  ((domain == null) ? "" : "; domain=" + domain) +
105
  ((secure == null) ? "" : "; secure");
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id
4
  Tags: ads, ad, adsense, display, banner, advertisements, adverts, advert, monetization
5
  Requires at least: WP 4.2, PHP 5.3
6
  Tested up to: 4.3.1
7
- Stable tag: 1.6.10.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -185,6 +185,18 @@ There is no revenue share. Advanced Ads doesn’t alter your ad codes in a way t
185
 
186
  == Changelog ==
187
 
 
 
 
 
 
 
 
 
 
 
 
 
188
  = 1.6.10.2 =
189
 
190
  * warn on support page if ads are (partially) disabled
4
  Tags: ads, ad, adsense, display, banner, advertisements, adverts, advert, monetization
5
  Requires at least: WP 4.2, PHP 5.3
6
  Tested up to: 4.3.1
7
+ Stable tag: 1.6.11
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
185
 
186
  == Changelog ==
187
 
188
+ = 1.6.11 =
189
+
190
+ * added icon to rich media editor to quickly add shortcodes
191
+ * added widget placement type
192
+ * added new column for ad planning
193
+ * TinyMCE is now working when ad type is switched to content ad
194
+ * enable license key deactivation
195
+ * hide unnecessary fields for image ads in media gallery
196
+ * loading jQuery ui styles only on Advanced Ads dashboard pages now
197
+ * fixed AdSense ad not retrieving values due to slashes
198
+ * fixed issue with licenses being activated twice
199
+
200
  = 1.6.10.2 =
201
 
202
  * warn on support page if ads are (partially) disabled
vendor/autoload_52.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
6
 
7
- return ComposerAutoloaderInit0dbc53921045b25c754eb1b3952d90e4::getLoader();
4
 
5
  require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
6
 
7
+ return ComposerAutoloaderInita3996bab00651d25655716eb164356ba::getLoader();
vendor/composer/autoload_classmap.php CHANGED
@@ -26,6 +26,7 @@ return array(
26
  'Advanced_Ads_Placements' => $baseDir . '/classes/ad_placements.php',
27
  'Advanced_Ads_Plugin' => $baseDir . '/classes/plugin.php',
28
  'Advanced_Ads_Select' => $baseDir . '/classes/ad-select.php',
 
29
  'Advanced_Ads_Visitor_Conditions' => $baseDir . '/classes/visitor-conditions.php',
30
  'Advanced_Ads_Widget' => $baseDir . '/classes/widget.php',
31
  'Composer\\Installers\\AglInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AglInstaller.php',
26
  'Advanced_Ads_Placements' => $baseDir . '/classes/ad_placements.php',
27
  'Advanced_Ads_Plugin' => $baseDir . '/classes/plugin.php',
28
  'Advanced_Ads_Select' => $baseDir . '/classes/ad-select.php',
29
+ 'Advanced_Ads_Shortcode_Creator' => $baseDir . '/admin/includes/class-shortcode-creator.php',
30
  'Advanced_Ads_Visitor_Conditions' => $baseDir . '/classes/visitor-conditions.php',
31
  'Advanced_Ads_Widget' => $baseDir . '/classes/widget.php',
32
  'Composer\\Installers\\AglInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/AglInstaller.php',
vendor/composer/autoload_real_52.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real_52.php generated by xrstf/composer-php52
4
 
5
- class ComposerAutoloaderInit0dbc53921045b25c754eb1b3952d90e4 {
6
  private static $loader;
7
 
8
  public static function loadClassLoader($class) {
@@ -19,9 +19,9 @@ class ComposerAutoloaderInit0dbc53921045b25c754eb1b3952d90e4 {
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit0dbc53921045b25c754eb1b3952d90e4', 'loadClassLoader'), true /*, true */);
23
  self::$loader = $loader = new xrstf_Composer52_ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit0dbc53921045b25c754eb1b3952d90e4', 'loadClassLoader'));
25
 
26
  $vendorDir = dirname(dirname(__FILE__));
27
  $baseDir = dirname($vendorDir);
2
 
3
  // autoload_real_52.php generated by xrstf/composer-php52
4
 
5
+ class ComposerAutoloaderInita3996bab00651d25655716eb164356ba {
6
  private static $loader;
7
 
8
  public static function loadClassLoader($class) {
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInita3996bab00651d25655716eb164356ba', 'loadClassLoader'), true /*, true */);
23
  self::$loader = $loader = new xrstf_Composer52_ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInita3996bab00651d25655716eb164356ba', 'loadClassLoader'));
25
 
26
  $vendorDir = dirname(dirname(__FILE__));
27
  $baseDir = dirname($vendorDir);