AdRotate Banner Manager - Version 3.11.7

Version Description

FREE = * [new] More 'after paragraph' options for Post Injection * [change] Removed all 'every N paragraph' options for post injection * [fix] Responsive class overwriting existing html classes * [fix] Post Injection cutting off content at the end of posts * [fix] Impression timer not always accurate for some users * [fix] Timezone notation not always valid * [i18n] New and updated strings

Download this release

Release Info

Developer adegans
Plugin Icon 128x128 AdRotate Banner Manager
Version 3.11.7
Comparing to
See all releases

Code changes from version 3.11.6 to 3.11.7

adrotate-functions.php CHANGED
@@ -32,15 +32,11 @@ function adrotate_shortcode($atts, $content = null) {
32
  if($adrotate_config['w3caching'] == "Y") $output .= '<!-- mfunc '.W3TC_DYNAMIC_SECURITY.' -->';
33
 
34
  if($banner_id > 0 AND $group_ids == 0) { // Show one Ad
35
- if($adrotate_config['supercache'] == "Y") $output .= '<!--mfunc echo adrotate_ad('.$banner_id.', true, 0, 0) -->';
36
  $output .= adrotate_ad($banner_id, true, 0, 0);
37
- if($adrotate_config['supercache'] == "Y") $output .= '<!--/mfunc-->';
38
  }
39
 
40
  if($banner_id == 0 AND $group_ids > 0) { // Show group
41
- if($adrotate_config['supercache'] == "Y") $output .= '<!--mfunc echo adrotate_group('.$group_ids.', 0, 0, 0) -->';
42
  $output .= adrotate_group($group_ids, 0, 0, 0);
43
- if($adrotate_config['supercache'] == "Y") $output .= '<!--/mfunc-->';
44
  }
45
 
46
  if($adrotate_config['w3caching'] == "Y") $output .= '<!-- /mfunc -->';
@@ -59,7 +55,7 @@ function adrotate_shortcode($atts, $content = null) {
59
  function adrotate_is_networked() {
60
  if(!function_exists('is_plugin_active_for_network')) require_once(ABSPATH.'/wp-admin/includes/plugin.php');
61
 
62
- if(is_plugin_active_for_network(ADROTATE_FOLDER.'/adrotate.php')) {
63
  return true;
64
  }
65
  return false;
@@ -625,7 +621,7 @@ function adrotate_ad_is_in_groups($id) {
625
  Name: adrotate_hash
626
 
627
  Purpose: Generate the adverts clicktracking hash
628
- Receive: $ad, $group, $remote, $blog_id
629
  Return: $result
630
  Since: 3.9.12
631
  -------------------------------------------------------------*/
32
  if($adrotate_config['w3caching'] == "Y") $output .= '<!-- mfunc '.W3TC_DYNAMIC_SECURITY.' -->';
33
 
34
  if($banner_id > 0 AND $group_ids == 0) { // Show one Ad
 
35
  $output .= adrotate_ad($banner_id, true, 0, 0);
 
36
  }
37
 
38
  if($banner_id == 0 AND $group_ids > 0) { // Show group
 
39
  $output .= adrotate_group($group_ids, 0, 0, 0);
 
40
  }
41
 
42
  if($adrotate_config['w3caching'] == "Y") $output .= '<!-- /mfunc -->';
55
  function adrotate_is_networked() {
56
  if(!function_exists('is_plugin_active_for_network')) require_once(ABSPATH.'/wp-admin/includes/plugin.php');
57
 
58
+ if(is_plugin_active_for_network('adrotate/adrotate.php')) {
59
  return true;
60
  }
61
  return false;
621
  Name: adrotate_hash
622
 
623
  Purpose: Generate the adverts clicktracking hash
624
+ Receive: $ad, $group, $blog_id
625
  Return: $result
626
  Since: 3.9.12
627
  -------------------------------------------------------------*/
adrotate-manage-publisher.php CHANGED
@@ -333,6 +333,8 @@ function adrotate_insert_group() {
333
  function adrotate_request_action() {
334
  global $wpdb, $adrotate_config;
335
 
 
 
336
  if(wp_verify_nonce($_POST['adrotate_nonce'],'adrotate_bulk_ads_active') OR wp_verify_nonce($_POST['adrotate_nonce'],'adrotate_bulk_ads_disable')
337
  OR wp_verify_nonce($_POST['adrotate_nonce'],'adrotate_bulk_ads_error') OR wp_verify_nonce($_POST['adrotate_nonce'],'adrotate_bulk_ads_queue')
338
  OR wp_verify_nonce($_POST['adrotate_nonce'],'adrotate_bulk_groups')) {
@@ -352,9 +354,6 @@ function adrotate_request_action() {
352
  } else if(isset($_POST['adrotate_error_action'])) {
353
  // Erroneous ads listing call
354
  $actions = $_POST['adrotate_error_action'];
355
- } else {
356
- // If neither, protect user with invalid ID
357
- $banner_ids = $group_ids = '';
358
  }
359
  list($action, $specific) = explode("-", $actions);
360
 
@@ -627,8 +626,6 @@ function adrotate_options_submit() {
627
  else $config['widgetpadding'] = 'N';
628
  if(isset($_POST['adrotate_w3caching'])) $config['w3caching'] = 'Y';
629
  else $config['w3caching'] = 'N';
630
- if(isset($_POST['adrotate_supercache'])) $config['supercache'] = 'Y';
631
- else $config['supercache'] = 'N';
632
  if(isset($_POST['adrotate_jquery'])) $config['jquery'] = 'Y';
633
  else $config['jquery'] = 'N';
634
  if(isset($_POST['adrotate_jsfooter'])) $config['jsfooter'] = 'Y';
333
  function adrotate_request_action() {
334
  global $wpdb, $adrotate_config;
335
 
336
+ $banner_ids = $group_ids = '';
337
+
338
  if(wp_verify_nonce($_POST['adrotate_nonce'],'adrotate_bulk_ads_active') OR wp_verify_nonce($_POST['adrotate_nonce'],'adrotate_bulk_ads_disable')
339
  OR wp_verify_nonce($_POST['adrotate_nonce'],'adrotate_bulk_ads_error') OR wp_verify_nonce($_POST['adrotate_nonce'],'adrotate_bulk_ads_queue')
340
  OR wp_verify_nonce($_POST['adrotate_nonce'],'adrotate_bulk_groups')) {
354
  } else if(isset($_POST['adrotate_error_action'])) {
355
  // Erroneous ads listing call
356
  $actions = $_POST['adrotate_error_action'];
 
 
 
357
  }
358
  list($action, $specific) = explode("-", $actions);
359
 
626
  else $config['widgetpadding'] = 'N';
627
  if(isset($_POST['adrotate_w3caching'])) $config['w3caching'] = 'Y';
628
  else $config['w3caching'] = 'N';
 
 
629
  if(isset($_POST['adrotate_jquery'])) $config['jquery'] = 'Y';
630
  else $config['jquery'] = 'N';
631
  if(isset($_POST['adrotate_jsfooter'])) $config['jsfooter'] = 'Y';
adrotate-output.php CHANGED
@@ -46,7 +46,7 @@ function adrotate_ad($banner_id, $individual = true, $group = null, $site = 0) {
46
  if($individual == true) $output .= '</div>';
47
 
48
  if($adrotate_config['stats'] == 1 AND $banner->tracker == "Y") {
49
- adrotate_count_impression($banner->id, 0, 0);
50
  }
51
  } else {
52
  $output .= adrotate_error('ad_expired', array($banner_id));
@@ -179,7 +179,7 @@ function adrotate_group($group_ids, $fallback = 0, $weight = 0, $site = 0) {
179
  }
180
 
181
  if($adrotate_config['stats'] == 1){
182
- adrotate_count_impression($selected[$banner_id]->id, $group->id, 0);
183
  }
184
 
185
  unset($selected[$banner_id]);
@@ -194,7 +194,7 @@ function adrotate_group($group_ids, $fallback = 0, $weight = 0, $site = 0) {
194
  $output .= '</div>';
195
 
196
  if($adrotate_config['stats'] == 1){
197
- adrotate_count_impression($selected[$banner_id]->id, $group->id, 0);
198
  }
199
  }
200
 
@@ -218,208 +218,118 @@ function adrotate_group($group_ids, $fallback = 0, $weight = 0, $site = 0) {
218
  }
219
 
220
  /*-------------------------------------------------------------
221
- Name: adrotate_inject_pages
222
 
223
- Purpose: Add an advert to a single page
224
  Receive: $post_content
225
  Return: $post_content
226
  Added: 3.7
227
  -------------------------------------------------------------*/
228
- function adrotate_inject_pages($post_content) {
229
  global $wpdb, $post, $adrotate_debug;
230
-
 
 
231
  if(is_page()) {
232
  // Inject ads into page
233
  $ids = $wpdb->get_results("SELECT `id`, `page`, `page_loc`, `page_par` FROM `{$wpdb->prefix}adrotate_groups` WHERE `page_loc` > 0;");
234
 
235
- $group_array = array();
236
  foreach($ids as $id) {
237
  $pages = explode(",", $id->page);
238
  if(!is_array($pages)) $pages = array();
239
 
240
  if(in_array($post->ID, $pages)) {
241
- $group_array[$id->id] = array('location' => $id->page_loc, 'paragraph' => $id->page_par, 'pages' => $pages);
242
  }
243
  }
244
-
245
- if($adrotate_debug['general'] == true) {
246
- echo "<p><strong>[DEBUG][adrotate_inject_posts()] group_array</strong><pre>";
247
- print_r($group_array);
248
- echo "</pre></p>";
249
- }
250
  unset($ids, $pages);
251
-
252
- $group_count = count($group_array);
253
- if($group_count > 0) {
254
- if($group_count > 1) {
255
- // Try to prevent the same ad from showing when there are multiple ads to show
256
- $paragraph_count = substr_count($post_content, '<p>');
257
- if($paragraph_count == 0 OR $group_count < $paragraph_count) {
258
- $paragraph_count = $group_count;
259
- }
260
- $group_choice = array_rand($group_array, $paragraph_count);
261
- if(!is_array($group_choice)) $group_choice = array($group_choice);
262
-
263
- shuffle($group_choice);
264
- } else {
265
- $group_choice = array_rand($group_array, 1);
266
- $group_choice = array($group_choice,$group_choice);
267
- }
268
-
269
- if($adrotate_debug['general'] == true) {
270
- echo "<p><strong>[DEBUG][adrotate_inject_posts()] Choices</strong><pre>";
271
- echo "Group count: ".$group_count."</br>";
272
- print_r($group_choice);
273
- echo "</pre></p>";
274
- }
275
-
276
- $before = $after = 0;
277
- foreach($group_choice as $key => $group_id) {
278
- if(is_page($group_array[$group_id]['pages'])) {
279
- // Advert in front of content
280
- if(($group_array[$group_id]['location'] == 1 OR $group_array[$group_id]['location'] == 3) AND $before == 0) {
281
- $post_content = adrotate_group($group_id).$post_content;
282
- $before = 1;
283
- }
284
-
285
- // Advert behind the content
286
- if(($group_array[$group_id]['location'] == 2 OR $group_array[$group_id]['location'] == 3) AND $after == 0) {
287
- $post_content = $post_content.adrotate_group($group_id);
288
- $after = 1;
289
- }
290
-
291
- // Adverts inside the content
292
- if($group_array[$group_id]['location'] == 4 AND $key == 0) {
293
- preg_match_all("/(?:.*?)<p[^>]*>(?:.*?)<\/p>(?:<\/[a-z]*?>)*/is", $post_content, $paragraphs);
294
- // $paragraphs = explode("</p>", $post_content);
295
-
296
- $par = 1;
297
- $post_content = '';
298
- foreach($paragraphs[0] as &$paragraph) {
299
- // foreach($paragraphs as &$paragraph) {
300
- if($par == $group_array[$group_id]['paragraph']
301
- OR ($par == 2 AND $group_array[$group_id]['paragraph'] == 20)
302
- OR ($par == 3 AND $group_array[$group_id]['paragraph'] == 30)
303
- OR ($par == 4 AND $group_array[$group_id]['paragraph'] == 40)) {
304
- $paragraph .= adrotate_group($group_id);
305
-
306
- $par++;
307
- if($group_array[$group_id]['paragraph'] > 1 AND $group_array[$group_id]['paragraph'] < 10) {
308
- $par = 1;
309
- }
310
- } else {
311
- $par++;
312
- }
313
- $post_content .= $paragraph;
314
- unset($paragraph);
315
- }
316
- }
317
- }
318
- }
319
- }
320
- unset($group_choice, $group_count, $group_array, $paragraph, $paragraph_count, $before, $after);
321
  }
322
- return $post_content;
323
- }
324
-
325
- /*-------------------------------------------------------------
326
- Name: adrotate_inject_posts
327
-
328
- Purpose: Add an advert to a single post
329
- Receive: $post_content
330
- Return: $post_content
331
- Added: 3.7
332
- -------------------------------------------------------------*/
333
- function adrotate_inject_posts($post_content) {
334
- global $wpdb, $adrotate_debug;
335
 
336
  if(is_single()) {
337
  // Inject ads into posts in specified category
338
  $ids = $wpdb->get_results("SELECT `id`, `cat`, `cat_loc`, `cat_par` FROM `{$wpdb->prefix}adrotate_groups` WHERE `cat_loc` > 0;");
339
  $wp_categories = get_terms('category', array('fields' => 'ids'));
340
 
341
- $group_array = array();
342
  foreach($ids as $id) {
343
  $categories = explode(",", $id->cat);
344
  if(!is_array($categories)) $categories = array();
345
 
346
  foreach($wp_categories as &$value) {
347
  if(in_array($value, $categories)) {
348
- $group_array[$id->id] = array('location' => $id->cat_loc, 'paragraph' => $id->cat_par, 'categories' => $categories);
349
  }
350
  }
351
  }
352
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
353
  if($adrotate_debug['general'] == true) {
354
- echo "<p><strong>[DEBUG][adrotate_inject_posts()] group_array</strong><pre>";
355
- print_r($group_array);
356
  echo "</pre></p>";
357
- }
358
- unset($ids, $wp_categories, $categories);
359
-
360
- $group_count = count($group_array);
361
- if($group_count > 0) {
362
- if($group_count > 1) {
363
- // Try to prevent the same ad from showing when there are multiple ads to show
364
- $paragraph_count = substr_count($post_content, '<p>');
365
- if($paragraph_count == 0 OR $group_count < $paragraph_count) {
366
- $paragraph_count = $group_count;
 
 
 
 
 
367
  }
368
- $group_choice = array_rand($group_array, $paragraph_count);
369
- if(!is_array($group_choice)) $group_choice = array($group_choice);
370
 
371
- shuffle($group_choice);
372
- } else {
373
- $group_choice = array_rand($group_array, 1);
374
- $group_choice = array($group_choice,$group_choice);
375
- }
376
-
377
- if($adrotate_debug['general'] == true) {
378
- echo "<p><strong>[DEBUG][adrotate_inject_posts()] group_choice</strong><pre>";
379
- print_r($group_choice);
380
- echo "</pre></p>";
381
- }
382
-
383
- $before = $after = 0;
384
- foreach($group_choice as $key => $group_id) {
385
- if(in_category($group_array[$group_id]['categories'])) {
386
- // Advert in front of content
387
- if(($group_array[$group_id]['location'] == 1 OR $group_array[$group_id]['location'] == 3) AND $before == 0) {
388
- $post_content = adrotate_group($group_id).$post_content;
389
- $before = 1;
390
- }
391
 
392
- // Advert behind content
393
- if(($group_array[$group_id]['location'] == 2 OR $group_array[$group_id]['location'] == 3) AND $after == 0) {
394
- $post_content = $post_content.adrotate_group($group_id);
395
- $after = 1;
396
- }
397
-
398
- // Adverts inside the content
399
- if($group_array[$group_id]['location'] == 4 AND $key == 0) {
400
- preg_match_all("/(?:.*?)<p[^>]*>(?:.*?)<\/p>(?:<\/[a-z]*?>)*/is", $post_content, $paragraphs);
401
- // $paragraphs = explode("</p>", $post_content);
402
-
403
- $par = 1;
404
- $post_content = '';
405
- foreach($paragraphs[0] as &$paragraph) {
406
- // foreach($paragraphs as &$paragraph) {
407
- if($par == $group_array[$group_id]['paragraph']
408
- OR ($par == 2 AND $group_array[$group_id]['paragraph'] == 20)
409
- OR ($par == 3 AND $group_array[$group_id]['paragraph'] == 30)
410
- OR ($par == 4 AND $group_array[$group_id]['paragraph'] == 40)) {
411
- $paragraph .= adrotate_group($group_id);
412
-
413
- $par++;
414
- if($group_array[$group_id]['paragraph'] > 1 AND $group_array[$group_id]['paragraph'] < 10) {
415
- $par = 1;
416
- }
417
- } else {
418
- $par++;
419
- }
420
- $post_content .= $paragraph;
421
- unset($paragraph);
422
  }
 
 
 
 
423
  }
424
  }
425
  }
@@ -430,18 +340,6 @@ function adrotate_inject_posts($post_content) {
430
  return $post_content;
431
  }
432
 
433
- /*-------------------------------------------------------------
434
- Name: adrotate_block (OBSOLETE)
435
-
436
- Purpose: This function is no longer supported. Replace blocks with groups!
437
- Receive: $block_id, $weight
438
- Return: $output
439
- Since: 3.0
440
- -------------------------------------------------------------*/
441
- function adrotate_block($block_id = 0, $weight = 0) {
442
- return null;
443
- }
444
-
445
  /*-------------------------------------------------------------
446
  Name: adrotate_preview
447
 
@@ -522,7 +420,7 @@ function adrotate_ad_output($id, $group = 0, $bannercode, $tracker, $link, $imag
522
  preg_match_all('/<img[^>](?:.*?)>/i', $banner_output, $matches, PREG_SET_ORDER);
523
  if(isset($matches[0])) {
524
  foreach($matches[0] as $value) {
525
- if(preg_match('/<img[^>]+class=\"(?:.+?)\"[^>]*>/i', $value, $regs)) {
526
  $result = $regs[1];
527
  if($responsive == 'Y') $result .= " responsive";
528
  $result = trim($result);
@@ -566,12 +464,12 @@ function adrotate_custom_scripts() {
566
  }
567
 
568
  if($adrotate_config['jquery'] == 'Y') wp_enqueue_script('jquery', false, false, false, $in_footer);
569
- if(get_option('adrotate_dynamic_required') > 0) wp_enqueue_script('jshowoff-adrotate', plugins_url('/library/jquery.adrotate.dyngroup.js', __FILE__), false, '0.7', $in_footer);
570
- if(get_option('adrotate_responsive_required') > 0) wp_enqueue_script('responsive-adrotate', plugins_url('/library/jquery.adrotate.responsive.js', __FILE__), false, '0.4', $in_footer);
571
 
572
  // Make clicktracking and impression tracking a possibility
573
  if($adrotate_config['stats'] == 1){
574
- wp_enqueue_script('clicktrack-adrotate', plugins_url('/library/jquery.adrotate.clicktracker.js', __FILE__), false, '0.7', $in_footer);
575
  wp_localize_script('jshowoff-adrotate', 'impression_object', array('ajax_url' => admin_url( 'admin-ajax.php')));
576
  wp_localize_script('clicktrack-adrotate', 'click_object', array('ajax_url' => admin_url('admin-ajax.php')));
577
  }
@@ -838,7 +736,7 @@ function adrotate_notifications_dashboard() {
838
  echo ' <div class="adrotate_banner">';
839
  echo ' <div class="button_div"><a class="button" target="_blank" href="https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotatefree-upgradebanner&pk_kwd=upgrade_adrotatefree">'.__('Learn More', 'adrotate').'</a></div>';
840
  echo ' <div class="text">'.__("You've been using <strong>AdRotate</strong> for a while now. Why not upgrade to the <strong>PRO</strong> version", 'adrotate').'?<br /><span>'.__('Get more features to even better run your advertising campaigns.', 'adrotate' ).' '.__('Thank you for your consideration!', 'adrotate' ).'</span></div>';
841
- echo ' <a class="close_banner" href="admin.php?page=adrotate-pro&hide=1"><img title="Close" src="'.plugins_url('images/close-icon.png', __FILE__).'" alt=""/></a>';
842
  echo ' <div class="icon"><img title="" src="'.plugins_url('images/adrotate-logo-60x60.png', __FILE__).'" alt=""/></div>';
843
  echo ' </div>';
844
  echo '</div>';
@@ -850,7 +748,7 @@ function adrotate_notifications_dashboard() {
850
  echo ' <div class="adrotate_banner">';
851
  echo ' <div class="button_div"><a class="button" target="_blank" href="https://wordpress.org/support/view/plugin-reviews/adrotate?rate=5#postform">Rate AdRotate</a></div>';
852
  echo ' <div class="text">If you like <strong>AdRotate</strong> please let the world know that you do. Thanks for your support!<br /><span>If you have questions, suggestions or something else that doesn\'t belong in a review, please <a href="https://ajdg.solutions/forums/forum/adrotate-for-wordpress/?pk_campaign=adrotatefree-reviewbanner&pk_kwd=get_help" target="_blank">get in touch</a>!</span></div>';
853
- echo ' <a class="close_banner" href="admin.php?page=adrotate&hide=2"><img title="Close" src="'.plugins_url('images/close-icon.png', __FILE__).'" alt=""/></a>';
854
  echo ' <div class="icon"><img title="" src="'.plugins_url('images/adrotate-logo-60x60.png', __FILE__).'" alt=""/></div>';
855
  echo ' </div>';
856
  echo '</div>';
46
  if($individual == true) $output .= '</div>';
47
 
48
  if($adrotate_config['stats'] == 1 AND $banner->tracker == "Y") {
49
+ adrotate_count_impression($banner->id, 0, 0, $adrotate_config['impression_timer']);
50
  }
51
  } else {
52
  $output .= adrotate_error('ad_expired', array($banner_id));
179
  }
180
 
181
  if($adrotate_config['stats'] == 1){
182
+ adrotate_count_impression($selected[$banner_id]->id, $group->id, 0, $adrotate_config['impression_timer']);
183
  }
184
 
185
  unset($selected[$banner_id]);
194
  $output .= '</div>';
195
 
196
  if($adrotate_config['stats'] == 1){
197
+ adrotate_count_impression($selected[$banner_id]->id, $group->id, 0, $adrotate_config['impression_timer']);
198
  }
199
  }
200
 
218
  }
219
 
220
  /*-------------------------------------------------------------
221
+ Name: adrotate_inject_posts
222
 
223
+ Purpose: Add an advert to a single post
224
  Receive: $post_content
225
  Return: $post_content
226
  Added: 3.7
227
  -------------------------------------------------------------*/
228
+ function adrotate_inject_posts($post_content) {
229
  global $wpdb, $post, $adrotate_debug;
230
+
231
+ $group_array = array();
232
+
233
  if(is_page()) {
234
  // Inject ads into page
235
  $ids = $wpdb->get_results("SELECT `id`, `page`, `page_loc`, `page_par` FROM `{$wpdb->prefix}adrotate_groups` WHERE `page_loc` > 0;");
236
 
 
237
  foreach($ids as $id) {
238
  $pages = explode(",", $id->page);
239
  if(!is_array($pages)) $pages = array();
240
 
241
  if(in_array($post->ID, $pages)) {
242
+ $group_array[$id->id] = array('location' => $id->page_loc, 'paragraph' => $id->page_par, 'pages' => $pages, 'categories' => array());
243
  }
244
  }
 
 
 
 
 
 
245
  unset($ids, $pages);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
246
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
247
 
248
  if(is_single()) {
249
  // Inject ads into posts in specified category
250
  $ids = $wpdb->get_results("SELECT `id`, `cat`, `cat_loc`, `cat_par` FROM `{$wpdb->prefix}adrotate_groups` WHERE `cat_loc` > 0;");
251
  $wp_categories = get_terms('category', array('fields' => 'ids'));
252
 
 
253
  foreach($ids as $id) {
254
  $categories = explode(",", $id->cat);
255
  if(!is_array($categories)) $categories = array();
256
 
257
  foreach($wp_categories as &$value) {
258
  if(in_array($value, $categories)) {
259
+ $group_array[$id->id] = array('location' => $id->cat_loc, 'paragraph' => $id->cat_par, 'pages' => array(), 'categories' => $categories);
260
  }
261
  }
262
  }
263
+ unset($ids, $wp_categories, $categories);
264
+ }
265
+
266
+ if($adrotate_debug['general'] == true) {
267
+ echo "<p><strong>[DEBUG][adrotate_inject_posts()] group_array</strong><pre>";
268
+ print_r($group_array);
269
+ echo "</pre></p>";
270
+ }
271
+
272
+ $group_count = count($group_array);
273
+ if($group_count > 0) {
274
+ if($group_count > 1) {
275
+ // Try to prevent the same ad from showing when there are multiple ads to show
276
+ $paragraph_count = substr_count($post_content, '<p>');
277
+ if($paragraph_count == 0 OR $group_count < $paragraph_count) {
278
+ $paragraph_count = $group_count;
279
+ }
280
+ $group_choice = array_rand($group_array, $paragraph_count);
281
+ if(!is_array($group_choice)) $group_choice = array($group_choice);
282
+
283
+ shuffle($group_choice);
284
+ } else {
285
+ $group_choice = array_rand($group_array, 1);
286
+ $group_choice = array($group_choice,$group_choice);
287
+ }
288
+
289
  if($adrotate_debug['general'] == true) {
290
+ echo "<p><strong>[DEBUG][adrotate_inject_posts()] group_choice</strong><pre>";
291
+ print_r($group_choice);
292
  echo "</pre></p>";
293
+ }
294
+
295
+ $before = $after = 0;
296
+ foreach($group_choice as $key => $group_id) {
297
+ if(is_page($group_array[$group_id]['pages']) OR in_category($group_array[$group_id]['categories'])) {
298
+ // Advert in front of content
299
+ if(($group_array[$group_id]['location'] == 1 OR $group_array[$group_id]['location'] == 3) AND $before == 0) {
300
+ $post_content = adrotate_group($group_id).$post_content;
301
+ $before = 1;
302
+ }
303
+
304
+ // Advert behind content
305
+ if(($group_array[$group_id]['location'] == 2 OR $group_array[$group_id]['location'] == 3) AND $after == 0) {
306
+ $post_content = $post_content.adrotate_group($group_id);
307
+ $after = 1;
308
  }
 
 
309
 
310
+ // Adverts inside the content
311
+ if($group_array[$group_id]['location'] == 4 AND $key == 0) {
312
+ $paragraphs = explode("</p>", $post_content);
313
+ $paragraph_count = count($paragraphs);
314
+ $par = 1;
315
+ $post_content = '';
316
+
317
+ // Backward compatibility
318
+ if($group_array[$group_id]['paragraph'] == 20) $group_array[$group_id]['paragraph'] == 2;
319
+ if($group_array[$group_id]['paragraph'] == 30) $group_array[$group_id]['paragraph'] == 3;
320
+ if($group_array[$group_id]['paragraph'] == 40) $group_array[$group_id]['paragraph'] == 4;
 
 
 
 
 
 
 
 
 
321
 
322
+ // Advanced setting
323
+ $middle = ($group_array[$group_id]['paragraph'] == 99) ? ceil($paragraph_count / 2) : 1;
324
+
325
+ foreach($paragraphs as &$paragraph) {
326
+ if($par == $group_array[$group_id]['paragraph'] OR ($par == $middle AND $group_array[$group_id]['paragraph'] == 99)) {
327
+ $paragraph .= adrotate_group($group_id);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
328
  }
329
+ $post_content .= $paragraph."</p>";
330
+ $par++;
331
+
332
+ unset($paragraph);
333
  }
334
  }
335
  }
340
  return $post_content;
341
  }
342
 
 
 
 
 
 
 
 
 
 
 
 
 
343
  /*-------------------------------------------------------------
344
  Name: adrotate_preview
345
 
420
  preg_match_all('/<img[^>](?:.*?)>/i', $banner_output, $matches, PREG_SET_ORDER);
421
  if(isset($matches[0])) {
422
  foreach($matches[0] as $value) {
423
+ if(preg_match('/<img[^>]+class=\"(.+?)\"[^>]*>/i', $value, $regs)) {
424
  $result = $regs[1];
425
  if($responsive == 'Y') $result .= " responsive";
426
  $result = trim($result);
464
  }
465
 
466
  if($adrotate_config['jquery'] == 'Y') wp_enqueue_script('jquery', false, false, false, $in_footer);
467
+ if(get_option('adrotate_dynamic_required') > 0) wp_enqueue_script('jshowoff-adrotate', plugins_url('/library/jquery.adrotate.dyngroup.js', __FILE__), false, null, $in_footer);
468
+ if(get_option('adrotate_responsive_required') > 0) wp_enqueue_script('responsive-adrotate', plugins_url('/library/jquery.adrotate.responsive.js', __FILE__), false, null, $in_footer);
469
 
470
  // Make clicktracking and impression tracking a possibility
471
  if($adrotate_config['stats'] == 1){
472
+ wp_enqueue_script('clicktrack-adrotate', plugins_url('/library/jquery.adrotate.clicktracker.js', __FILE__), false, null, $in_footer);
473
  wp_localize_script('jshowoff-adrotate', 'impression_object', array('ajax_url' => admin_url( 'admin-ajax.php')));
474
  wp_localize_script('clicktrack-adrotate', 'click_object', array('ajax_url' => admin_url('admin-ajax.php')));
475
  }
736
  echo ' <div class="adrotate_banner">';
737
  echo ' <div class="button_div"><a class="button" target="_blank" href="https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotatefree-upgradebanner&pk_kwd=upgrade_adrotatefree">'.__('Learn More', 'adrotate').'</a></div>';
738
  echo ' <div class="text">'.__("You've been using <strong>AdRotate</strong> for a while now. Why not upgrade to the <strong>PRO</strong> version", 'adrotate').'?<br /><span>'.__('Get more features to even better run your advertising campaigns.', 'adrotate' ).' '.__('Thank you for your consideration!', 'adrotate' ).'</span></div>';
739
+ echo ' <a class="close_banner" href="admin.php?page=adrotate-pro&hide=1"><img title="Close" src="'.plugins_url('images/icon-close.png', __FILE__).'" alt=""/></a>';
740
  echo ' <div class="icon"><img title="" src="'.plugins_url('images/adrotate-logo-60x60.png', __FILE__).'" alt=""/></div>';
741
  echo ' </div>';
742
  echo '</div>';
748
  echo ' <div class="adrotate_banner">';
749
  echo ' <div class="button_div"><a class="button" target="_blank" href="https://wordpress.org/support/view/plugin-reviews/adrotate?rate=5#postform">Rate AdRotate</a></div>';
750
  echo ' <div class="text">If you like <strong>AdRotate</strong> please let the world know that you do. Thanks for your support!<br /><span>If you have questions, suggestions or something else that doesn\'t belong in a review, please <a href="https://ajdg.solutions/forums/forum/adrotate-for-wordpress/?pk_campaign=adrotatefree-reviewbanner&pk_kwd=get_help" target="_blank">get in touch</a>!</span></div>';
751
+ echo ' <a class="close_banner" href="admin.php?page=adrotate&hide=2"><img title="Close" src="'.plugins_url('images/icon-close.png', __FILE__).'" alt=""/></a>';
752
  echo ' <div class="icon"><img title="" src="'.plugins_url('images/adrotate-logo-60x60.png', __FILE__).'" alt=""/></div>';
753
  echo ' </div>';
754
  echo '</div>';
adrotate-setup.php CHANGED
@@ -46,7 +46,7 @@ function adrotate_activate($network_wide) {
46
  Since: 0.1
47
  -------------------------------------------------------------*/
48
  function adrotate_activate_setup() {
49
- global $wpdb, $current_user, $userdata;
50
 
51
  if(version_compare(PHP_VERSION, '5.3.0', '<') == -1) {
52
  deactivate_plugins(plugin_basename('adrotate/adrotate.php'));
@@ -159,7 +159,7 @@ function adrotate_deactivate_setup() {
159
  Return: -none-
160
  Since: 2.4.2
161
  -------------------------------------------------------------*/
162
- function adrotate_uninstall() {
163
  adrotate_network_propagate('adrotate_uninstall_setup', $network_wide);
164
  }
165
 
@@ -284,7 +284,6 @@ function adrotate_check_config() {
284
  if(!isset($config['widgetalign']) OR ($config['widgetalign'] != 'Y' AND $config['widgetalign'] != 'N')) $config['widgetalign'] = 'N';
285
  if(!isset($config['widgetpadding']) OR ($config['widgetpadding'] != 'Y' AND $config['widgetpadding'] != 'N')) $config['widgetpadding'] = 'N';
286
  if(!isset($config['w3caching']) OR ($config['w3caching'] != 'Y' AND $config['w3caching'] != 'N')) $config['w3caching'] = 'N';
287
- if(!isset($config['supercache']) OR ($config['supercache'] != 'Y' AND $config['supercache'] != 'N')) $config['supercache'] = 'N';
288
  if(!isset($config['jquery']) OR ($config['jquery'] != 'Y' AND $config['jquery'] != 'N')) $config['jquery'] = 'N';
289
  if(!isset($config['jsfooter']) OR ($config['jsfooter'] != 'Y' AND $config['jsfooter'] != 'N')) $config['jsfooter'] = 'Y';
290
  if(!isset($config['adblock']) OR ($config['adblock'] != 'Y' AND $config['adblock'] != 'N')) $config['adblock'] = 'N';
@@ -320,7 +319,7 @@ function adrotate_check_config() {
320
  Since: 3.11.3
321
  -------------------------------------------------------------*/
322
  function adrotate_dummy_data() {
323
- global $wpdb;
324
 
325
  // Initial data
326
  $now = adrotate_now();
46
  Since: 0.1
47
  -------------------------------------------------------------*/
48
  function adrotate_activate_setup() {
49
+ global $wpdb, $userdata;
50
 
51
  if(version_compare(PHP_VERSION, '5.3.0', '<') == -1) {
52
  deactivate_plugins(plugin_basename('adrotate/adrotate.php'));
159
  Return: -none-
160
  Since: 2.4.2
161
  -------------------------------------------------------------*/
162
+ function adrotate_uninstall($network_wide) {
163
  adrotate_network_propagate('adrotate_uninstall_setup', $network_wide);
164
  }
165
 
284
  if(!isset($config['widgetalign']) OR ($config['widgetalign'] != 'Y' AND $config['widgetalign'] != 'N')) $config['widgetalign'] = 'N';
285
  if(!isset($config['widgetpadding']) OR ($config['widgetpadding'] != 'Y' AND $config['widgetpadding'] != 'N')) $config['widgetpadding'] = 'N';
286
  if(!isset($config['w3caching']) OR ($config['w3caching'] != 'Y' AND $config['w3caching'] != 'N')) $config['w3caching'] = 'N';
 
287
  if(!isset($config['jquery']) OR ($config['jquery'] != 'Y' AND $config['jquery'] != 'N')) $config['jquery'] = 'N';
288
  if(!isset($config['jsfooter']) OR ($config['jsfooter'] != 'Y' AND $config['jsfooter'] != 'N')) $config['jsfooter'] = 'Y';
289
  if(!isset($config['adblock']) OR ($config['adblock'] != 'Y' AND $config['adblock'] != 'N')) $config['adblock'] = 'N';
319
  Since: 3.11.3
320
  -------------------------------------------------------------*/
321
  function adrotate_dummy_data() {
322
+ global $wpdb, $current_user;
323
 
324
  // Initial data
325
  $now = adrotate_now();
adrotate-statistics.php CHANGED
@@ -327,7 +327,7 @@ function adrotate_date_start($what) {
327
  case 'day' :
328
  $timezone = get_option('timezone_string');
329
  if($timezone) {
330
- $server_timezone = date('T');
331
  date_default_timezone_set($timezone);
332
  $result = strtotime('00:00:00') + (get_option('gmt_offset') * HOUR_IN_SECONDS);
333
  date_default_timezone_set($server_timezone);
@@ -338,7 +338,7 @@ function adrotate_date_start($what) {
338
  case 'week' :
339
  $timezone = get_option('timezone_string');
340
  if($timezone) {
341
- $server_timezone = date('T');
342
  date_default_timezone_set($timezone);
343
  $result = strtotime('Last Monday', $now) + (get_option('gmt_offset') * HOUR_IN_SECONDS);
344
  date_default_timezone_set($server_timezone);
327
  case 'day' :
328
  $timezone = get_option('timezone_string');
329
  if($timezone) {
330
+ $server_timezone = date('e');
331
  date_default_timezone_set($timezone);
332
  $result = strtotime('00:00:00') + (get_option('gmt_offset') * HOUR_IN_SECONDS);
333
  date_default_timezone_set($server_timezone);
338
  case 'week' :
339
  $timezone = get_option('timezone_string');
340
  if($timezone) {
341
+ $server_timezone = date('e');
342
  date_default_timezone_set($timezone);
343
  $result = strtotime('Last Monday', $now) + (get_option('gmt_offset') * HOUR_IN_SECONDS);
344
  date_default_timezone_set($server_timezone);
adrotate-widget.php CHANGED
@@ -50,15 +50,11 @@ class adrotate_widgets extends WP_Widget {
50
  if($adrotate_config['w3caching'] == 'Y') echo '<!-- mfunc '.W3TC_DYNAMIC_SECURITY.' -->';
51
 
52
  if($instance['type'] == "single") {
53
- if($adrotate_config['supercache'] == "Y") echo '<!--mfunc echo adrotate_ad('.$instance['adid'].', true, 0, 0, '.$instance['siteid'].') -->';
54
  echo adrotate_ad($instance['adid'], true, 0, 0, 0);
55
- if($adrotate_config['supercache'] == "Y") echo '<!--/mfunc-->';
56
  }
57
 
58
  if($instance['type'] == "group") {
59
- if($adrotate_config['supercache'] == "Y") echo '<!--mfunc echo adrotate_group('.$instance['adid'].', 0, 0, '.$instance['siteid'].') -->';
60
  echo adrotate_group($instance['adid'], 0, 0, 0);
61
- if($adrotate_config['supercache'] == "Y") echo '<!--/mfunc-->';
62
  }
63
 
64
  if($adrotate_config['w3caching'] == 'Y') echo '<!-- /mfunc -->';
50
  if($adrotate_config['w3caching'] == 'Y') echo '<!-- mfunc '.W3TC_DYNAMIC_SECURITY.' -->';
51
 
52
  if($instance['type'] == "single") {
 
53
  echo adrotate_ad($instance['adid'], true, 0, 0, 0);
 
54
  }
55
 
56
  if($instance['type'] == "group") {
 
57
  echo adrotate_group($instance['adid'], 0, 0, 0);
 
58
  }
59
 
60
  if($adrotate_config['w3caching'] == 'Y') echo '<!-- /mfunc -->';
adrotate.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=
5
  Author: Arnan de Gans of AJdG Solutions
6
  Author URI: http://ajdg.solutions/?pk_campaign=adrotatefree-pluginpage&pk_kwd=authorurl
7
  Description: Used on over a hundred thousand websites and by even more people! AdRotate is the popular choice for monetizing your website with adverts while keeping things simple.
8
- Version: 3.11.6
9
  License: GPLv3
10
  */
11
 
@@ -20,20 +20,19 @@ License: GPLv3
20
  ------------------------------------------------------------------------------------ */
21
 
22
  /*--- AdRotate values ---------------------------------------*/
23
- define("ADROTATE_DISPLAY", '3.11.6');
24
  define("ADROTATE_VERSION", 379);
25
  define("ADROTATE_DB_VERSION", 51);
26
- define("ADROTATE_FOLDER", 'adrotate');
27
  /*-----------------------------------------------------------*/
28
 
29
  /*--- Load Files --------------------------------------------*/
30
- include_once(WP_CONTENT_DIR.'/plugins/'.ADROTATE_FOLDER.'/adrotate-setup.php');
31
- include_once(WP_CONTENT_DIR.'/plugins/'.ADROTATE_FOLDER.'/adrotate-manage-publisher.php');
32
- include_once(WP_CONTENT_DIR.'/plugins/'.ADROTATE_FOLDER.'/adrotate-functions.php');
33
- include_once(WP_CONTENT_DIR.'/plugins/'.ADROTATE_FOLDER.'/adrotate-statistics.php');
34
- include_once(WP_CONTENT_DIR.'/plugins/'.ADROTATE_FOLDER.'/adrotate-export.php');
35
- include_once(WP_CONTENT_DIR.'/plugins/'.ADROTATE_FOLDER.'/adrotate-output.php');
36
- include_once(WP_CONTENT_DIR.'/plugins/'.ADROTATE_FOLDER.'/adrotate-widget.php');
37
  /*-----------------------------------------------------------*/
38
 
39
  /*--- Check and Load config ---------------------------------*/
@@ -67,8 +66,7 @@ if(!is_admin()) {
67
  add_shortcode('adrotate', 'adrotate_shortcode');
68
  add_action("wp_enqueue_scripts", 'adrotate_custom_scripts');
69
  add_action('wp_head', 'adrotate_custom_css');
70
- add_filter('the_content', 'adrotate_inject_pages');
71
- add_filter('the_content', 'adrotate_inject_posts');
72
  }
73
  /*-----------------------------------------------------------*/
74
 
@@ -103,7 +101,7 @@ function adrotate_dashboard() {
103
  global $adrotate_config;
104
 
105
  $adrotate_page = $adrotate_pro = $adrotate_adverts = $adrotate_groups = $adrotate_schedules = $adrotate_media = $adrotate_settings = '';
106
- $adrotate_page = add_menu_page('AdRotate', 'AdRotate', 'adrotate_ad_manage', 'adrotate', 'adrotate_info', plugins_url('/images/icon.png', __FILE__), '25.8');
107
  $adrotate_page = add_submenu_page('adrotate', 'AdRotate > '.__('General Info', 'adrotate'), __('General Info', 'adrotate'), 'adrotate_ad_manage', 'adrotate', 'adrotate_info');
108
  $adrotate_pro = add_submenu_page('adrotate', 'AdRotate > '.__('AdRotate Pro', 'adrotate'), __('AdRotate Pro', 'adrotate'), 'adrotate_ad_manage', 'adrotate-pro', 'adrotate_pro');
109
  $adrotate_adverts = add_submenu_page('adrotate', 'AdRotate > '.__('Manage Ads', 'adrotate'), __('Manage Ads', 'adrotate'), 'adrotate_ad_manage', 'adrotate-ads', 'adrotate_manage');
@@ -526,21 +524,22 @@ function adrotate_manage_media() {
526
  <div class="wrap">
527
  <h2><?php _e('Media Management available in AdRotate Pro', 'adrotate'); ?></h2>
528
 
529
- <p><?php _e('Upload images to the AdRotate Pro banners folder from here. This is especially useful if you use responsive adverts with multiple images.', 'adrotate'); ?><br /><?php _e('Media uploading and management is available in AdRotate Pro.', 'adrotate'); ?> <a href="admin.php?page=adrotate-pro"><?php _e('More information', 'adrotate'); ?></a>.</p>
530
 
531
- <h3><?php _e('Upload new banner image', 'adrotate'); ?></h3>
532
- <label for="adrotate_image"><input tabindex="1" type="file" name="adrotate_image" disabled /><br /><em><strong><?php _e('Accepted files are:', 'adrotate'); ?></strong> jpg, jpeg, gif, png, swf and flv. <?php _e('Maximum size is 512Kb.', 'adrotate'); ?></em><br /><em><strong><?php _e('Important:', 'adrotate'); ?></strong> <?php _e('Make sure your file has no spaces or special characters in the name. Replace spaces with a - or _.', 'adrotate'); ?></em></label>
 
533
  <?php if(get_option('adrotate_responsive_required') > 0) { ?>
534
  <p><em><?php _e('For responsive adverts make sure the filename is in the following format; "imagename.full.ext". A full set of sized images is strongly recommended.', 'adrotate'); ?></em><br />
535
  <em><?php _e('For smaller size images use ".320", ".480", ".768" or ".1024" in the filename instead of ".full" for the various viewports.', 'adrotate'); ?></em><br />
536
  <em><strong><?php _e('Example:', 'adrotate'); ?></strong> <?php _e('image.full.jpg, image.320.jpg and image.768.jpg will serve the same advert for different viewports.', 'adrotate'); ?></em></p>
537
- <?php } ?>
538
 
539
  <p class="submit">
540
- <input tabindex="2" type="submit" name="adrotate_media_submit" class="button-primary" value="<?php _e('Upload image', 'adrotate'); ?>" disabled />
541
  </p>
542
 
543
- <h3><?php _e('Available banner images in', 'adrotate'); ?> '<?php echo $adrotate_config['banner_folder']; ?>'</h3>
544
  <table class="widefat" style="margin-top: .5em">
545
 
546
  <thead>
@@ -554,6 +553,8 @@ function adrotate_manage_media() {
554
  <tr><td>your-awesome-campaign.jpg</td><td><center><?php _e('Delete', 'adrotate'); ?></center></td></tr>
555
  <tr class="alternate"><td>728x90-advert.jpg</td><td><center><?php _e('Delete', 'adrotate'); ?></center></td></tr>
556
  <tr><td>adrotate-468x60.jpg</td><td><center><?php _e('Delete', 'adrotate'); ?></center></td></tr>
 
 
557
  <tr class="alternate"><td>adrotate-200x200-blue.jpg</td><td><center><?php _e('Delete', 'adrotate'); ?></center></td></tr>
558
  <tr><td>advertising-campaign.jpg</td><td><center><?php _e('Delete', 'adrotate'); ?></center></td></tr>
559
  </tbody>
@@ -754,29 +755,14 @@ function adrotate_options() {
754
  <th valign="top"><?php _e('Widget padding', 'adrotate'); ?></th>
755
  <td><label for="adrotate_widgetpadding"><input type="checkbox" name="adrotate_widgetpadding" <?php if($adrotate_config['widgetpadding'] == 'Y') { ?>checked="checked" <?php } ?> /> <?php _e('Enable this to remove the padding (blank space) around ads in widgets. (Does not always work!)', 'adrotate'); ?></label></td>
756
  </tr>
757
-
758
- <?php if($adrotate_config['w3caching'] == "Y" AND !defined('W3TC_DYNAMIC_SECURITY')) { ?>
759
  <tr>
760
  <th valign="top"><?php _e('NOTICE:', 'adrotate'); ?></th>
761
  <td><span style="color:#f00;"><?php _e('You have enabled W3 Total Caching support but not defined the security hash. You need to add the following line to your wp-config.php near the bottom or below line 52 (which defines another hash.) Using the "late init" function needs to be enabled in W3 Total Cache as well too.', 'adrotate'); ?></span><br /><pre>define('W3TC_DYNAMIC_SECURITY', '<?php echo md5(rand(0,999)); ?>');</pre></td>
762
  </tr>
763
- <?php } ?>
764
  <tr>
765
  <th valign="top"><?php _e('W3 Total Caching', 'adrotate'); ?></th>
766
  <td><label for="adrotate_w3caching"><input type="checkbox" name="adrotate_w3caching" <?php if($adrotate_config['w3caching'] == 'Y') { ?>checked="checked" <?php } ?> /> <?php _e('Check this box if you use W3 Total Caching on your site.', 'adrotate'); ?></label></td>
767
  </tr>
768
-
769
- <?php if($adrotate_config['supercache'] == "Y") { ?>
770
- <tr>
771
- <th valign="top"><?php _e('NOTICE:', 'adrotate'); ?></th>
772
- <td><span style="color:#f00;"><?php _e('You have enabled WP Super Cache support. If you have version 1.4 or newer, this function will not work. WP Super Cache has discontinued support for dynamic content.', 'adrotate'); ?></span></td>
773
- </tr>
774
- <?php } ?>
775
- <tr>
776
- <th valign="top"><?php _e('WP Super Cache', 'adrotate'); ?></th>
777
- <td><label for="adrotate_supercache"><input type="checkbox" name="adrotate_supercache" <?php if($adrotate_config['supercache'] == 'Y') { ?>checked="checked" <?php } ?> /> <?php _e('Check this box if you use WP Super Cache on your site.', 'adrotate'); ?></label>
778
- </td>
779
- </tr>
780
  <tr>
781
  <th valign="top">&nbsp;</th>
782
  <td><span class="description"><?php _e('It may take a while for the ad to start rotating. The caching plugin needs to refresh the cache. This can take up to a week if not done manually.', 'adrotate'); ?> <?php _e('Caching support only works for [shortcodes] and the AdRotate Widget. If you use a PHP Snippet you need to wrap your PHP in the exclusion code yourself.', 'adrotate'); ?></span></td>
5
  Author: Arnan de Gans of AJdG Solutions
6
  Author URI: http://ajdg.solutions/?pk_campaign=adrotatefree-pluginpage&pk_kwd=authorurl
7
  Description: Used on over a hundred thousand websites and by even more people! AdRotate is the popular choice for monetizing your website with adverts while keeping things simple.
8
+ Version: 3.11.7
9
  License: GPLv3
10
  */
11
 
20
  ------------------------------------------------------------------------------------ */
21
 
22
  /*--- AdRotate values ---------------------------------------*/
23
+ define("ADROTATE_DISPLAY", '3.11.7');
24
  define("ADROTATE_VERSION", 379);
25
  define("ADROTATE_DB_VERSION", 51);
 
26
  /*-----------------------------------------------------------*/
27
 
28
  /*--- Load Files --------------------------------------------*/
29
+ include_once(WP_CONTENT_DIR.'/plugins/adrotate/adrotate-setup.php');
30
+ include_once(WP_CONTENT_DIR.'/plugins/adrotate/adrotate-manage-publisher.php');
31
+ include_once(WP_CONTENT_DIR.'/plugins/adrotate/adrotate-functions.php');
32
+ include_once(WP_CONTENT_DIR.'/plugins/adrotate/adrotate-statistics.php');
33
+ include_once(WP_CONTENT_DIR.'/plugins/adrotate/adrotate-export.php');
34
+ include_once(WP_CONTENT_DIR.'/plugins/adrotate/adrotate-output.php');
35
+ include_once(WP_CONTENT_DIR.'/plugins/adrotate/adrotate-widget.php');
36
  /*-----------------------------------------------------------*/
37
 
38
  /*--- Check and Load config ---------------------------------*/
66
  add_shortcode('adrotate', 'adrotate_shortcode');
67
  add_action("wp_enqueue_scripts", 'adrotate_custom_scripts');
68
  add_action('wp_head', 'adrotate_custom_css');
69
+ add_filter('the_content', 'adrotate_inject_posts', 12);
 
70
  }
71
  /*-----------------------------------------------------------*/
72
 
101
  global $adrotate_config;
102
 
103
  $adrotate_page = $adrotate_pro = $adrotate_adverts = $adrotate_groups = $adrotate_schedules = $adrotate_media = $adrotate_settings = '';
104
+ $adrotate_page = add_menu_page('AdRotate', 'AdRotate', 'adrotate_ad_manage', 'adrotate', 'adrotate_info', plugins_url('/images/icon-menu.png', __FILE__), '25.8');
105
  $adrotate_page = add_submenu_page('adrotate', 'AdRotate > '.__('General Info', 'adrotate'), __('General Info', 'adrotate'), 'adrotate_ad_manage', 'adrotate', 'adrotate_info');
106
  $adrotate_pro = add_submenu_page('adrotate', 'AdRotate > '.__('AdRotate Pro', 'adrotate'), __('AdRotate Pro', 'adrotate'), 'adrotate_ad_manage', 'adrotate-pro', 'adrotate_pro');
107
  $adrotate_adverts = add_submenu_page('adrotate', 'AdRotate > '.__('Manage Ads', 'adrotate'), __('Manage Ads', 'adrotate'), 'adrotate_ad_manage', 'adrotate-ads', 'adrotate_manage');
524
  <div class="wrap">
525
  <h2><?php _e('Media Management available in AdRotate Pro', 'adrotate'); ?></h2>
526
 
527
+ <p><?php _e('Upload images to the AdRotate Pro banners folder from here. This is useful if you use responsive adverts with multiple images or have HTML5 adverts containing multiple files.', 'adrotate'); ?><br /><?php _e('Media uploading and management is available in AdRotate Pro.', 'adrotate'); ?> <a href="admin.php?page=adrotate-pro"><?php _e('More information', 'adrotate'); ?></a>.</p>
528
 
529
+ <h3><?php _e('Upload new file', 'adrotate'); ?></h3>
530
+ <label for="adrotate_image"><input tabindex="1" type="file" name="adrotate_image" disabled /><br /><em><strong><?php _e('Accepted files:', 'adrotate'); ?></strong> jpg, jpeg, gif, png, swf and flv. <?php _e('For HTML5 ads you can also upload html and javascript files.', 'adrotate'); ?> <?php _e('Maximum size is 512Kb.', 'adrotate'); ?></em><br /><em><strong><?php _e('Important:', 'adrotate'); ?></strong> <?php _e('Make sure your file has no spaces or special characters in the name. Replace spaces with a - or _.', 'adrotate'); ?><br /><?php _e('If you remove spaces from filenames for HTML5 adverts also edit the html file so it knows about the changed name. For example for the javascript file.', 'adrotate'); ?></em></label>
531
+
532
  <?php if(get_option('adrotate_responsive_required') > 0) { ?>
533
  <p><em><?php _e('For responsive adverts make sure the filename is in the following format; "imagename.full.ext". A full set of sized images is strongly recommended.', 'adrotate'); ?></em><br />
534
  <em><?php _e('For smaller size images use ".320", ".480", ".768" or ".1024" in the filename instead of ".full" for the various viewports.', 'adrotate'); ?></em><br />
535
  <em><strong><?php _e('Example:', 'adrotate'); ?></strong> <?php _e('image.full.jpg, image.320.jpg and image.768.jpg will serve the same advert for different viewports.', 'adrotate'); ?></em></p>
536
+ <?php } ?>
537
 
538
  <p class="submit">
539
+ <input tabindex="2" type="submit" name="adrotate_media_submit" class="button-primary" value="<?php _e('Upload file', 'adrotate'); ?>" disabled /> <em><?php _e('Click only once per file!', 'adrotate'); ?></em>
540
  </p>
541
 
542
+ <h3><?php _e('Available files in', 'adrotate'); ?> '<?php echo $adrotate_config['banner_folder']; ?>'</h3>
543
  <table class="widefat" style="margin-top: .5em">
544
 
545
  <thead>
553
  <tr><td>your-awesome-campaign.jpg</td><td><center><?php _e('Delete', 'adrotate'); ?></center></td></tr>
554
  <tr class="alternate"><td>728x90-advert.jpg</td><td><center><?php _e('Delete', 'adrotate'); ?></center></td></tr>
555
  <tr><td>adrotate-468x60.jpg</td><td><center><?php _e('Delete', 'adrotate'); ?></center></td></tr>
556
+ <tr class="alternate"><td>html5-468x60-blue_edge.js</td><td><center><?php _e('Delete', 'adrotate'); ?></center></td></tr>
557
+ <tr><td>html5-468x60-blue.html</td><td><center><?php _e('Delete', 'adrotate'); ?></center></td></tr>
558
  <tr class="alternate"><td>adrotate-200x200-blue.jpg</td><td><center><?php _e('Delete', 'adrotate'); ?></center></td></tr>
559
  <tr><td>advertising-campaign.jpg</td><td><center><?php _e('Delete', 'adrotate'); ?></center></td></tr>
560
  </tbody>
755
  <th valign="top"><?php _e('Widget padding', 'adrotate'); ?></th>
756
  <td><label for="adrotate_widgetpadding"><input type="checkbox" name="adrotate_widgetpadding" <?php if($adrotate_config['widgetpadding'] == 'Y') { ?>checked="checked" <?php } ?> /> <?php _e('Enable this to remove the padding (blank space) around ads in widgets. (Does not always work!)', 'adrotate'); ?></label></td>
757
  </tr>
 
 
758
  <tr>
759
  <th valign="top"><?php _e('NOTICE:', 'adrotate'); ?></th>
760
  <td><span style="color:#f00;"><?php _e('You have enabled W3 Total Caching support but not defined the security hash. You need to add the following line to your wp-config.php near the bottom or below line 52 (which defines another hash.) Using the "late init" function needs to be enabled in W3 Total Cache as well too.', 'adrotate'); ?></span><br /><pre>define('W3TC_DYNAMIC_SECURITY', '<?php echo md5(rand(0,999)); ?>');</pre></td>
761
  </tr>
 
762
  <tr>
763
  <th valign="top"><?php _e('W3 Total Caching', 'adrotate'); ?></th>
764
  <td><label for="adrotate_w3caching"><input type="checkbox" name="adrotate_w3caching" <?php if($adrotate_config['w3caching'] == 'Y') { ?>checked="checked" <?php } ?> /> <?php _e('Check this box if you use W3 Total Caching on your site.', 'adrotate'); ?></label></td>
765
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
766
  <tr>
767
  <th valign="top">&nbsp;</th>
768
  <td><span class="description"><?php _e('It may take a while for the ad to start rotating. The caching plugin needs to refresh the cache. This can take up to a week if not done manually.', 'adrotate'); ?> <?php _e('Caching support only works for [shortcodes] and the AdRotate Widget. If you use a PHP Snippet you need to wrap your PHP in the exclusion code yourself.', 'adrotate'); ?></span></td>
dashboard/adrotate-info.php CHANGED
@@ -153,7 +153,7 @@ $adrotate_config = get_option('adrotate_config');
153
  <div class="inside">
154
  <?php
155
  wp_widget_rss_output(array(
156
- 'url' => array('http://meandmymac.net/feed/', 'http://ajdg.solutions/feed/',),
157
  'title' => 'AdRotate Development News',
158
  'items' => 4,
159
  'show_summary' => 1,
@@ -196,7 +196,7 @@ $adrotate_config = get_option('adrotate_config');
196
  <div class="postbox-adrotate">
197
  <div class="inside">
198
  <a href="https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotatefree-infopage&pk_kwd=compare_license"><img src="<?php echo WP_CONTENT_URL; ?>/plugins/adrotate/images/adrotate-product.png" alt="adrotate-product" width="150" height="150" align="right" style="padding: 0 0 10px 10px;" /></a>
199
- <p><h4><?php _e('Singe License', 'adrotate'); ?> (&euro; 29.00)</h4><?php _e('For one WordPress installation.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1124&pk_campaign=adrotatefree-infopage&pk_kwd=buy_single" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
200
  <p><h4><?php _e('Duo License', 'adrotate'); ?> (&euro; 39.00)</h4><?php _e('For two WordPress installations.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1126&pk_campaign=adrotatefree-infopage&pk_kwd=buy_duo" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
201
  <p><h4><?php _e('Multi License', 'adrotate'); ?> (&euro; 99.00)</h4><?php _e(' For up to five WordPress installations.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1128&pk_campaign=adrotatefree-infopage&pk_kwd=buy_multi" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
202
  <p><h4><?php _e('Developer License', 'adrotate'); ?> (&euro; 299.00)</h4><?php _e('Unlimited WordPress installations and/or networks.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1130&pk_campaign=adrotatefree-infopage&pk_kwd=buy_developer" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
153
  <div class="inside">
154
  <?php
155
  wp_widget_rss_output(array(
156
+ 'url' => array('http://meandmymac.net/feed/', 'http://www.floatingcoconut.net/feed/', 'http://ajdg.solutions/feed/',),
157
  'title' => 'AdRotate Development News',
158
  'items' => 4,
159
  'show_summary' => 1,
196
  <div class="postbox-adrotate">
197
  <div class="inside">
198
  <a href="https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotatefree-infopage&pk_kwd=compare_license"><img src="<?php echo WP_CONTENT_URL; ?>/plugins/adrotate/images/adrotate-product.png" alt="adrotate-product" width="150" height="150" align="right" style="padding: 0 0 10px 10px;" /></a>
199
+ <p><h4><?php _e('Single License', 'adrotate'); ?> (&euro; 29.00)</h4><?php _e('For one WordPress installation.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1124&pk_campaign=adrotatefree-infopage&pk_kwd=buy_single" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
200
  <p><h4><?php _e('Duo License', 'adrotate'); ?> (&euro; 39.00)</h4><?php _e('For two WordPress installations.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1126&pk_campaign=adrotatefree-infopage&pk_kwd=buy_duo" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
201
  <p><h4><?php _e('Multi License', 'adrotate'); ?> (&euro; 99.00)</h4><?php _e(' For up to five WordPress installations.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1128&pk_campaign=adrotatefree-infopage&pk_kwd=buy_multi" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
202
  <p><h4><?php _e('Developer License', 'adrotate'); ?> (&euro; 299.00)</h4><?php _e('Unlimited WordPress installations and/or networks.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1130&pk_campaign=adrotatefree-infopage&pk_kwd=buy_developer" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
dashboard/adrotate-pro.php CHANGED
@@ -20,23 +20,21 @@
20
  <h3><?php _e('Satisfy your advertisers', 'adrotate'); ?></h3>
21
  <div class="postbox-adrotate">
22
  <div class="inside">
23
- <p><?php _e('Set up advertisers and let them log in to their statistics or even create their own adverts. Created adverts go into a moderation queue for your staff to review. Advertisers have access to their own little dashboard where they can see their adverts performance.', 'adrotate'); ?></p>
24
- <center><a href="https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotatefree-propage&pk_kwd=upgrade_adrotatefree" target="_blank"><img src="<?php echo WP_CONTENT_URL; ?>/plugins/adrotate/images/demo-advertisers.jpg" /></a></center>
25
  </div>
26
  </div>
27
 
28
  <h3><?php _e('Localize your ad campaigns with Geo Targeting', 'adrotate'); ?></h3>
29
  <div class="postbox-adrotate">
30
  <div class="inside">
31
- <p><?php _e('Go nationwide or global with localized adverts for your various audiences. Set up adverts for countries and cities and sell impressions per general area. Connect your site to MaxMinds GeoIP2: Precision, FreegeoIP (MaxMind GeoLITE) or GeoBytes GeoSelect services.', 'adrotate'); ?></p>
32
- <center><a href="https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotatefree-propage&pk_kwd=upgrade_adrotatefree" target="_blank"><img src="<?php echo WP_CONTENT_URL; ?>/plugins/adrotate/images/demo-geotargetting.jpg" /></a></center>
33
  </div>
34
  </div>
35
 
36
  <h3><?php _e('Get Premium Support almost all year round', 'adrotate'); ?></h3>
37
  <div class="postbox-adrotate">
38
  <div class="inside">
39
- <p><?php _e('When you activate your AdRotate Pro license you are entitled to ticket support. AdRotate premium support which takes priority over the Forums and even email. Get a solution (usually) within a day.', 'adrotate'); ?></p>
40
  </div>
41
  </div>
42
 
@@ -60,16 +58,14 @@
60
  <h3><?php _e('Schedule all campaigns with ease', 'adrotate'); ?></h3>
61
  <div class="postbox-adrotate">
62
  <div class="inside">
63
- <p><?php _e('Schedule your adverts and set up advertising campaigns based on date without hassle. Seasonal adverts, weekly adverts. You name it. AdRotate schedules it.', 'adrotate'); ?></p>
64
- <center><a href="https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotatefree-propage&pk_kwd=upgrade_adrotatefree" target="_blank"><img src="<?php echo WP_CONTENT_URL; ?>/plugins/adrotate/images/demo-schedules.jpg" /></a></center>
65
  </div>
66
  </div>
67
 
68
- <h3><?php _e('Stay up-to-date with the notification system', 'adrotate'); ?></h3>
69
  <div class="postbox-adrotate">
70
  <div class="inside">
71
- <p><?php _e('Stay in touch with Email and/or push notifications. Get notified when adverts expire, have errors or when advertisers create new adverts. Never miss an expiration date again.', 'adrotate'); ?></p>
72
- <center><a href="https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotatefree-propage&pk_kwd=upgrade_adrotatefree" target="_blank"><img src="<?php echo WP_CONTENT_URL; ?>/plugins/adrotate/images/demo-notifications.jpg" /></a></center>
73
  </div>
74
  </div>
75
 
@@ -77,7 +73,7 @@
77
  <div class="postbox-adrotate">
78
  <div class="inside">
79
  <a href="https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotatefree-propage&pk_kwd=compare_license"><img src="<?php echo WP_CONTENT_URL; ?>/plugins/adrotate/images/adrotate-product.png" alt="adrotate-product" width="150" height="150" align="right" style="padding: 0 0 10px 10px;" /></a>
80
- <p><h4><?php _e('Singe License', 'adrotate'); ?> (&euro; 29.00)</h4><?php _e('For one WordPress installation.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1124&pk_campaign=adrotatefree-propage&pk_kwd=buy_single" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
81
  <p><h4><?php _e('Duo License', 'adrotate'); ?> (&euro; 39.00)</h4><?php _e('For two WordPress installations.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1126&pk_campaign=adrotatefree-propage&pk_kwd=buy_duo" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
82
  <p><h4><?php _e('Multi License', 'adrotate'); ?> (&euro; 99.00)</h4><?php _e(' For up to five WordPress installations.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1128&pk_campaign=adrotatefree-propage&pk_kwd=buy_multi" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
83
  <p><h4><?php _e('Developer License', 'adrotate'); ?> (&euro; 299.00)</h4><?php _e('Unlimited WordPress installations and/or networks.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1130&pk_campaign=adrotatefree-propage&pk_kwd=buy_developer" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
20
  <h3><?php _e('Satisfy your advertisers', 'adrotate'); ?></h3>
21
  <div class="postbox-adrotate">
22
  <div class="inside">
23
+ <p><a href="https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotatefree-propage&pk_kwd=upgrade_adrotatefree" target="_blank"><img src="<?php echo WP_CONTENT_URL; ?>/plugins/adrotate/images/demo-satisfy.png" class="alignleft pro-image" /></a><?php _e('Set up advertisers and let them log in to their statistics or even create their own adverts. Created adverts go into a moderation queue for your staff to review. Advertisers have access to their own little dashboard where they can see their adverts performance.', 'adrotate'); ?></p>
 
24
  </div>
25
  </div>
26
 
27
  <h3><?php _e('Localize your ad campaigns with Geo Targeting', 'adrotate'); ?></h3>
28
  <div class="postbox-adrotate">
29
  <div class="inside">
30
+ <p><a href="https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotatefree-propage&pk_kwd=upgrade_adrotatefree" target="_blank"><img src="<?php echo WP_CONTENT_URL; ?>/plugins/adrotate/images/demo-geo-targeting.png" class="alignleft pro-image" /></a><?php _e('Go nationwide or global with localized adverts for your various audiences. Set up adverts for countries and cities and sell impressions per general area. Connect your site to MaxMind GeoIP2: Precision, Telize or AdRotate Geo. AdRotate Geo is an exclusive Geo Lookup service for AdRotate Pro users.', 'adrotate'); ?></p>
 
31
  </div>
32
  </div>
33
 
34
  <h3><?php _e('Get Premium Support almost all year round', 'adrotate'); ?></h3>
35
  <div class="postbox-adrotate">
36
  <div class="inside">
37
+ <p><a href="https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotatefree-propage&pk_kwd=upgrade_adrotatefree" target="_blank"><img src="<?php echo WP_CONTENT_URL; ?>/plugins/adrotate/images/demo-support.png" class="alignleft pro-image" /></a><?php _e('When you activate your AdRotate Pro license you can use fast and personal email support. No more queueing up in the forums. AdRotate premium support takes priority over the forums and is checked much more often than the forum. Get a solution (usually) within a day.', 'adrotate'); ?></p>
38
  </div>
39
  </div>
40
 
58
  <h3><?php _e('Schedule all campaigns with ease', 'adrotate'); ?></h3>
59
  <div class="postbox-adrotate">
60
  <div class="inside">
61
+ <p><a href="https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotatefree-propage&pk_kwd=upgrade_adrotatefree" target="_blank"><img src="<?php echo WP_CONTENT_URL; ?>/plugins/adrotate/images/demo-schedule.png" class="alignleft pro-image" /></a><?php _e('Schedule your adverts and set up advertising campaigns based on dates you or your advertisers specify without hassle. Seasonal adverts, weekly adverts. You name it, AdRotate schedules it. This makes planning your revenue stream much more easy. You can set one or many schedules for adverts.', 'adrotate'); ?></p>
 
62
  </div>
63
  </div>
64
 
65
+ <h3><?php _e('Stay up-to-date with notifications', 'adrotate'); ?></h3>
66
  <div class="postbox-adrotate">
67
  <div class="inside">
68
+ <p><a href="https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotatefree-propage&pk_kwd=upgrade_adrotatefree" target="_blank"><img src="<?php echo WP_CONTENT_URL; ?>/plugins/adrotate/images/demo-notifications.png" class="alignleft pro-image" /></a><?php _e('Stay in touch with Email notifications. Have AdRotate send you an alert when adverts expire or need your attention. Additionally, you can have AdRotate send push notifications to your iOS or Android smartphone. Get notified when adverts expire, have errors or when advertisers create new adverts. Never miss an expiration date again.', 'adrotate'); ?></p>
 
69
  </div>
70
  </div>
71
 
73
  <div class="postbox-adrotate">
74
  <div class="inside">
75
  <a href="https://ajdg.solutions/products/adrotate-for-wordpress/?pk_campaign=adrotatefree-propage&pk_kwd=compare_license"><img src="<?php echo WP_CONTENT_URL; ?>/plugins/adrotate/images/adrotate-product.png" alt="adrotate-product" width="150" height="150" align="right" style="padding: 0 0 10px 10px;" /></a>
76
+ <p><h4><?php _e('Single License', 'adrotate'); ?> (&euro; 29.00)</h4><?php _e('For one WordPress installation.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1124&pk_campaign=adrotatefree-propage&pk_kwd=buy_single" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
77
  <p><h4><?php _e('Duo License', 'adrotate'); ?> (&euro; 39.00)</h4><?php _e('For two WordPress installations.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1126&pk_campaign=adrotatefree-propage&pk_kwd=buy_duo" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
78
  <p><h4><?php _e('Multi License', 'adrotate'); ?> (&euro; 99.00)</h4><?php _e(' For up to five WordPress installations.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1128&pk_campaign=adrotatefree-propage&pk_kwd=buy_multi" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
79
  <p><h4><?php _e('Developer License', 'adrotate'); ?> (&euro; 299.00)</h4><?php _e('Unlimited WordPress installations and/or networks.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1130&pk_campaign=adrotatefree-propage&pk_kwd=buy_developer" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
dashboard/publisher/adrotate-ads-edit.php CHANGED
@@ -27,7 +27,7 @@ $schedules = $wpdb->get_row("SELECT `{$wpdb->prefix}adrotate_schedule`.`id`, `st
27
  $linkmeta = $wpdb->get_results("SELECT `group` FROM `{$wpdb->prefix}adrotate_linkmeta` WHERE `ad` = '$edit_banner->id' AND `user` = 0 AND `schedule` = 0;");
28
 
29
  wp_enqueue_media();
30
- wp_enqueue_script('uploader-hook', plugins_url().'/'.ADROTATE_FOLDER.'/library/uploader-hook.js', array('jquery'));
31
 
32
  list($sday, $smonth, $syear, $shour, $sminute) = explode(" ", date("d m Y H i", $schedules->starttime));
33
  list($eday, $emonth, $eyear, $ehour, $eminute) = explode(" ", date("d m Y H i", $schedules->stoptime));
@@ -46,17 +46,17 @@ if($ad_edit_id) {
46
  echo '<div class="error"><p>'. __('The AdCode cannot be empty!', 'adrotate').'</p></div>';
47
 
48
  if(!preg_match("/%image%/i", $edit_banner->bannercode) AND $edit_banner->image != '')
49
- echo '<div class="error"><p>'. __('You did not use %image% in your AdCode but did select an image!', 'adrotate').'</p></div>';
50
 
51
  if(preg_match("/%image%/i", $edit_banner->bannercode) AND $edit_banner->image == '')
52
- echo '<div class="error"><p>'. __('You did use %image% in your AdCode but did not select an image!', 'adrotate').'</p></div>';
 
 
 
53
 
54
  if((($edit_banner->imagetype != '' AND $edit_banner->image == '') OR ($edit_banner->imagetype == '' AND $edit_banner->image != '')))
55
  echo '<div class="error"><p>'. __('There is a problem saving the image. Please reset your image and re-save the ad!', 'adrotate').'</p></div>';
56
 
57
- if(!preg_match("/%image%/i", $edit_banner->bannercode) AND $edit_banner->responsive == 'Y')
58
- echo '<div class="error"><p>'. __(' You did not use %image% in your AdCode. The responsive checkbox will be ineffective.', 'adrotate').'</p></div>';
59
-
60
  if(strlen($edit_banner->image) > 0 AND !preg_match("/full/", $edit_banner->image) AND $edit_banner->responsive == 'Y')
61
  echo '<div class="error"><p>'. __('Responsive is enabled but your banner image has the wrong name.', 'adrotate').'</p></div>';
62
 
@@ -124,19 +124,19 @@ if($edit_banner->imagetype == "field") {
124
  </td>
125
  <td width="40%">
126
  <p><strong><?php _e('Basic Examples:', 'adrotate'); ?></strong></p>
127
- <p>1. <em><a href="#" onclick="textatcursor('adrotate_bannercode','&lt;a href=&quot;https://ajdg.solutions/&quot;&gt;Buy AdRotate Pro here!&lt;/a&gt;');return false;">&lt;a href="https://ajdg.solutions/"&gt;Buy AdRotate Pro here!&lt;/a&gt;</a></em></p>
128
- <p>2. <em><a href="#" onclick="textatcursor('adrotate_bannercode','&lt;a href=&quot;http://www.floatingcoconut.net&quot;&gt;&lt;img src=&quot;%image%&quot; /&gt;&lt;/a&gt;');return false;">&lt;a href="http://www.floatingcoconut.net"&gt;&lt;img src="%image%" /&gt;&lt;/a&gt;</a></em></p>
129
- <p>3. <em><a href="#" onclick="textatcursor('adrotate_bannercode','&lt;span class=&quot;ad-%id%&quot;&gt;&lt;a href=&quot;http://www.ajdg.net&quot;&gt;Text Link Ad!&lt;/a&gt;&lt;/span&gt;');return false;">&lt;span class="ad-%id%"&gt;&lt;a href="http://www.ajdg.net"&gt;Text Link Ad!&lt;/a&gt;&lt;/span&gt;</a></em></p>
130
  </td>
131
  </tr>
132
  <tr>
133
  <th valign="top"><?php _e('Useful tags', 'adrotate'); ?></th>
134
  <td colspan="2">
135
- <p><em><a href="#" title="<?php _e('Insert the advert ID Number.', 'adrotate'); ?>" onclick="textatcursor('adrotate_bannercode','%id%');return false;">%id%</a>, <a href="#" title="<?php _e('Insert the %image% tag. Required when selecting a image below.', 'adrotate'); ?>" onclick="textatcursor('adrotate_bannercode','%image%');return false;">%image%</a>, <a href="#" title="<?php _e('Insert the advert name.', 'adrotate'); ?>" onclick="textatcursor('adrotate_bannercode','%title%');return false;">%title%</a>, <a href="#" title="<?php _e('Insert a random seed. Useful for DFP/DoubleClick type adverts.', 'adrotate'); ?>" onclick="textatcursor('adrotate_bannercode','%random%');return false;">%random%</a>, <a href="#" title="<?php _e('Add inside the <a> tag to open advert in a new window.', 'adrotate'); ?>" onclick="textatcursor('adrotate_bannercode','target=&quot;_blank&quot;');return false;">target="_blank"</a>, <a href="#" title="<?php _e('Add inside the <a> tag to tell crawlers to ignore this link', 'adrotate'); ?>" onclick="textatcursor('adrotate_bannercode','rel=&quot;nofollow&quot;');return false;">rel="nofollow"</a></em><br /><?php _e('Place the cursor in your AdCode where you want to add any of these tags and click to add it.', 'adrotate'); ?></p>
136
  </td>
137
  </tr>
138
  <tr>
139
- <th valign="top"><?php _e('Banner image', 'adrotate'); ?></th>
140
  <td colspan="2">
141
  <label for="adrotate_image">
142
  <?php _e('WordPress media:', 'adrotate'); ?> <input tabindex="3" id="adrotate_image" type="text" size="50" name="adrotate_image" value="<?php echo $image_field; ?>" /> <input tabindex="4" id="adrotate_image_button" class="button" type="button" value="<?php _e('Select Banner', 'adrotate'); ?>" />
@@ -148,7 +148,7 @@ if($edit_banner->imagetype == "field") {
148
  <?php echo adrotate_folder_contents($image_dropdown); ?>
149
  </select><br />
150
  </label>
151
- <em><?php _e('Use %image% in the code. Accepted files are:', 'adrotate'); ?> jpg, jpeg, gif, png, swf <?php _e('and', 'adrotate'); ?> flv. <?php _e('Use either the text field or the dropdown. If the textfield has content that field has priority.', 'adrotate'); ?></em>
152
  </td>
153
  </tr>
154
  <?php if($adrotate_config['stats'] > 0) { ?>
27
  $linkmeta = $wpdb->get_results("SELECT `group` FROM `{$wpdb->prefix}adrotate_linkmeta` WHERE `ad` = '$edit_banner->id' AND `user` = 0 AND `schedule` = 0;");
28
 
29
  wp_enqueue_media();
30
+ wp_enqueue_script('uploader-hook', plugins_url().'/adrotate/library/uploader-hook.js', array('jquery'));
31
 
32
  list($sday, $smonth, $syear, $shour, $sminute) = explode(" ", date("d m Y H i", $schedules->starttime));
33
  list($eday, $emonth, $eyear, $ehour, $eminute) = explode(" ", date("d m Y H i", $schedules->stoptime));
46
  echo '<div class="error"><p>'. __('The AdCode cannot be empty!', 'adrotate').'</p></div>';
47
 
48
  if(!preg_match("/%image%/i", $edit_banner->bannercode) AND $edit_banner->image != '')
49
+ echo '<div class="error"><p>'. __('You did not use %image% in your AdCode but did select a file to use!', 'adrotate').'</p></div>';
50
 
51
  if(preg_match("/%image%/i", $edit_banner->bannercode) AND $edit_banner->image == '')
52
+ echo '<div class="error"><p>'. __('You did use %image% in your AdCode but did not select a file to use!', 'adrotate').'</p></div>';
53
+
54
+ if(!preg_match("/%image%/i", $edit_banner->bannercode) AND $edit_banner->responsive == 'Y')
55
+ echo '<div class="error"><p>'. __('You did not use %image% in your AdCode. The responsive checkbox will be ineffective.', 'adrotate').'</p></div>';
56
 
57
  if((($edit_banner->imagetype != '' AND $edit_banner->image == '') OR ($edit_banner->imagetype == '' AND $edit_banner->image != '')))
58
  echo '<div class="error"><p>'. __('There is a problem saving the image. Please reset your image and re-save the ad!', 'adrotate').'</p></div>';
59
 
 
 
 
60
  if(strlen($edit_banner->image) > 0 AND !preg_match("/full/", $edit_banner->image) AND $edit_banner->responsive == 'Y')
61
  echo '<div class="error"><p>'. __('Responsive is enabled but your banner image has the wrong name.', 'adrotate').'</p></div>';
62
 
124
  </td>
125
  <td width="40%">
126
  <p><strong><?php _e('Basic Examples:', 'adrotate'); ?></strong></p>
127
+ <p><em><a href="#" onclick="textatcursor('adrotate_bannercode','&lt;a href=&quot;http://www.floatingcoconut.net&quot;&gt;&lt;img src=&quot;%image%&quot; /&gt;&lt;/a&gt;');return false;">&lt;a href="http://www.floatingcoconut.net"&gt;&lt;img src="%image%" /&gt;&lt;/a&gt;</a></em></p>
128
+ <p><em><a href="#" onclick="textatcursor('adrotate_bannercode','&lt;span class=&quot;ad-%id%&quot;&gt;&lt;a href=&quot;http://www.ajdg.net&quot;&gt;Text Link Ad!&lt;/a&gt;&lt;/span&gt;');return false;">&lt;span class="ad-%id%"&gt;&lt;a href="http://www.ajdg.net"&gt;Text Link Ad!&lt;/a&gt;&lt;/span&gt;</a></em></p>
129
+ <p><em><a href="#" onclick="textatcursor('adrotate_bannercode','&lt;iframe src=&quot;%image%&quot; height=&quot;250&quot; frameborder=&quot;0&quot; style=&quot;border:none;&quot;&gt;&lt;/iframe&gt;');return false;">&lt;iframe src=&quot;%image%&quot; height=&quot;250&quot; frameborder=&quot;0&quot; style=&quot;border:none;&quot;&gt;&lt;/iframe&gt;</a></em></p>
130
  </td>
131
  </tr>
132
  <tr>
133
  <th valign="top"><?php _e('Useful tags', 'adrotate'); ?></th>
134
  <td colspan="2">
135
+ <p><em><a href="#" title="<?php _e('Insert the advert ID Number.', 'adrotate'); ?>" onclick="textatcursor('adrotate_bannercode','%id%');return false;">%id%</a>, <a href="#" title="<?php _e('Required when selecting a image below.', 'adrotate'); ?>" onclick="textatcursor('adrotate_bannercode','%image%');return false;">%image%</a>, <a href="#" title="<?php _e('Insert the advert name.', 'adrotate'); ?>" onclick="textatcursor('adrotate_bannercode','%title%');return false;">%title%</a>, <a href="#" title="<?php _e('Insert a random seed. Useful for DFP/DoubleClick type adverts.', 'adrotate'); ?>" onclick="textatcursor('adrotate_bannercode','%random%');return false;">%random%</a>, <a href="#" title="<?php _e('Add inside the <a> tag to open advert in a new window.', 'adrotate'); ?>" onclick="textatcursor('adrotate_bannercode','target=&quot;_blank&quot;');return false;">target="_blank"</a>, <a href="#" title="<?php _e('Add inside the <a> tag to tell crawlers to ignore this link', 'adrotate'); ?>" onclick="textatcursor('adrotate_bannercode','rel=&quot;nofollow&quot;');return false;">rel="nofollow"</a></em><br /><?php _e('Place the cursor in your AdCode where you want to add any of these tags and click to add it.', 'adrotate'); ?></p>
136
  </td>
137
  </tr>
138
  <tr>
139
+ <th valign="top"><?php _e('Banner asset', 'adrotate'); ?></th>
140
  <td colspan="2">
141
  <label for="adrotate_image">
142
  <?php _e('WordPress media:', 'adrotate'); ?> <input tabindex="3" id="adrotate_image" type="text" size="50" name="adrotate_image" value="<?php echo $image_field; ?>" /> <input tabindex="4" id="adrotate_image_button" class="button" type="button" value="<?php _e('Select Banner', 'adrotate'); ?>" />
148
  <?php echo adrotate_folder_contents($image_dropdown); ?>
149
  </select><br />
150
  </label>
151
+ <em><?php _e('Use %image% in the adcode instead of the file path.', 'adrotate'); ?> <?php _e('Use either the text field or the dropdown. If the textfield has content that field has priority.', 'adrotate'); ?></em>
152
  </td>
153
  </tr>
154
  <?php if($adrotate_config['stats'] > 0) { ?>
dashboard/publisher/adrotate-groups-edit.php CHANGED
@@ -210,24 +210,21 @@ if(!is_array($meta_array)) $meta_array = array();
210
  <option value="1" <?php if($edit_group->cat_loc == 1) { echo 'selected'; } ?>><?php _e('Before content', 'adrotate'); ?></option>
211
  <option value="2" <?php if($edit_group->cat_loc == 2) { echo 'selected'; } ?>><?php _e('After content', 'adrotate'); ?></option>
212
  <option value="3" <?php if($edit_group->cat_loc == 3) { echo 'selected'; } ?>><?php _e('Before and after content', 'adrotate'); ?></option>
213
- <option value="4" <?php if($edit_group->cat_loc == 4) { echo 'selected'; } ?>><?php _e('After...', 'adrotate'); ?></option>
214
  </select>
215
  </label>
216
  <label for="adrotate_cat_paragraph">
217
  <select tabindex="13" name="adrotate_cat_paragraph">
218
  <option value="0" <?php if($edit_group->cat_par == 0) { echo 'selected'; } ?>>...</option>
219
- <option value="1" <?php if($edit_group->cat_par == 1) { echo 'selected'; } ?>><?php _e('the first paragraph', 'adrotate'); ?></option>
220
- <option value="20" <?php if($edit_group->cat_par == 20) { echo 'selected'; } ?>><?php _e('the second paragraph', 'adrotate'); ?></option>
221
- <option value="30" <?php if($edit_group->cat_par == 30) { echo 'selected'; } ?>><?php _e('the third paragraph', 'adrotate'); ?></option>
222
- <option value="40" <?php if($edit_group->cat_par == 40) { echo 'selected'; } ?>><?php _e('the fourth paragraph', 'adrotate'); ?></option>
223
- <option value="0" disabled>---</option>
224
- <option value="2" <?php if($edit_group->cat_par == 2) { echo 'selected'; } ?>><?php _e('every 2nd paragraph', 'adrotate'); ?></option>
225
- <option value="3" <?php if($edit_group->cat_par == 3) { echo 'selected'; } ?>><?php _e('every 3rd paragraph', 'adrotate'); ?></option>
226
- <option value="4" <?php if($edit_group->cat_par == 4) { echo 'selected'; } ?>><?php _e('every 4th paragraph', 'adrotate'); ?></option>
227
- <option value="5" <?php if($edit_group->cat_par == 5) { echo 'selected'; } ?>><?php _e('every 5th paragraph', 'adrotate'); ?></option>
228
- <option value="6" <?php if($edit_group->cat_par == 6) { echo 'selected'; } ?>><?php _e('every 6th paragraph', 'adrotate'); ?></option>
229
- <option value="7" <?php if($edit_group->cat_par == 7) { echo 'selected'; } ?>><?php _e('every 7th paragraph', 'adrotate'); ?></option>
230
- <option value="8" <?php if($edit_group->cat_par == 8) { echo 'selected'; } ?>><?php _e('every 8th paragraph', 'adrotate'); ?></option>
231
  </select>
232
  </label>
233
  </td>
@@ -251,24 +248,21 @@ if(!is_array($meta_array)) $meta_array = array();
251
  <option value="1" <?php if($edit_group->page_loc == 1) { echo 'selected'; } ?>><?php _e('Before content', 'adrotate'); ?></option>
252
  <option value="2" <?php if($edit_group->page_loc == 2) { echo 'selected'; } ?>><?php _e('After content', 'adrotate'); ?></option>
253
  <option value="3" <?php if($edit_group->page_loc == 3) { echo 'selected'; } ?>><?php _e('Before and after content', 'adrotate'); ?></option>
254
- <option value="4" <?php if($edit_group->page_loc == 4) { echo 'selected'; } ?>><?php _e('After...', 'adrotate'); ?></option>
255
  </select>
256
  </label>
257
  <label for="adrotate_page_paragraph">
258
  <select tabindex="15" name="adrotate_page_paragraph">
259
  <option value="0" <?php if($edit_group->page_par == 0) { echo 'selected'; } ?>>...</option>
260
- <option value="1" <?php if($edit_group->page_par == 1) { echo 'selected'; } ?>><?php _e('the first paragraph', 'adrotate'); ?></option>
261
- <option value="20" <?php if($edit_group->page_par == 20) { echo 'selected'; } ?>><?php _e('the second paragraph', 'adrotate'); ?></option>
262
- <option value="30" <?php if($edit_group->page_par == 30) { echo 'selected'; } ?>><?php _e('the third paragraph', 'adrotate'); ?></option>
263
- <option value="40" <?php if($edit_group->page_par == 40) { echo 'selected'; } ?>><?php _e('the fourth paragraph', 'adrotate'); ?></option>
264
- <option value="0" disabled>---</option>
265
- <option value="2" <?php if($edit_group->page_par == 2) { echo 'selected'; } ?>><?php _e('every 2nd paragraph', 'adrotate'); ?></option>
266
- <option value="3" <?php if($edit_group->page_par == 3) { echo 'selected'; } ?>><?php _e('every 3rd paragraph', 'adrotate'); ?></option>
267
- <option value="4" <?php if($edit_group->page_par == 4) { echo 'selected'; } ?>><?php _e('every 4th paragraph', 'adrotate'); ?></option>
268
- <option value="5" <?php if($edit_group->page_par == 5) { echo 'selected'; } ?>><?php _e('every 5th paragraph', 'adrotate'); ?></option>
269
- <option value="6" <?php if($edit_group->page_par == 6) { echo 'selected'; } ?>><?php _e('every 6th paragraph', 'adrotate'); ?></option>
270
- <option value="7" <?php if($edit_group->page_par == 7) { echo 'selected'; } ?>><?php _e('every 7th paragraph', 'adrotate'); ?></option>
271
- <option value="8" <?php if($edit_group->page_par == 8) { echo 'selected'; } ?>><?php _e('every 8th paragraph', 'adrotate'); ?></option>
272
  </select>
273
  </label>
274
  </td>
210
  <option value="1" <?php if($edit_group->cat_loc == 1) { echo 'selected'; } ?>><?php _e('Before content', 'adrotate'); ?></option>
211
  <option value="2" <?php if($edit_group->cat_loc == 2) { echo 'selected'; } ?>><?php _e('After content', 'adrotate'); ?></option>
212
  <option value="3" <?php if($edit_group->cat_loc == 3) { echo 'selected'; } ?>><?php _e('Before and after content', 'adrotate'); ?></option>
213
+ <option value="4" <?php if($edit_group->cat_loc == 4) { echo 'selected'; } ?>><?php _e('Inside the content...', 'adrotate'); ?></option>
214
  </select>
215
  </label>
216
  <label for="adrotate_cat_paragraph">
217
  <select tabindex="13" name="adrotate_cat_paragraph">
218
  <option value="0" <?php if($edit_group->cat_par == 0) { echo 'selected'; } ?>>...</option>
219
+ <option value="98" <?php if($edit_group->cat_par == 98) { echo 'selected'; } ?>><?php _e('after the middle paragraph', 'adrotate'); ?></option>
220
+ <option value="1" <?php if($edit_group->cat_par == 1) { echo 'selected'; } ?>><?php _e('after the 1st paragraph', 'adrotate'); ?></option>
221
+ <option value="2" <?php if($edit_group->cat_par == 2) { echo 'selected'; } ?>><?php _e('after the 2nd paragraph', 'adrotate'); ?></option>
222
+ <option value="3" <?php if($edit_group->cat_par == 3) { echo 'selected'; } ?>><?php _e('after the 3rd paragraph', 'adrotate'); ?></option>
223
+ <option value="4" <?php if($edit_group->cat_par == 4) { echo 'selected'; } ?>><?php _e('after the 4th paragraph', 'adrotate'); ?></option>
224
+ <option value="5" <?php if($edit_group->cat_par == 5) { echo 'selected'; } ?>><?php _e('after the 5th paragraph', 'adrotate'); ?></option>
225
+ <option value="6" <?php if($edit_group->cat_par == 6) { echo 'selected'; } ?>><?php _e('after the 6th paragraph', 'adrotate'); ?></option>
226
+ <option value="7" <?php if($edit_group->cat_par == 7) { echo 'selected'; } ?>><?php _e('after the 7th paragraph', 'adrotate'); ?></option>
227
+ <option value="8" <?php if($edit_group->cat_par == 8) { echo 'selected'; } ?>><?php _e('after the 8th paragraph', 'adrotate'); ?></option>
 
 
 
228
  </select>
229
  </label>
230
  </td>
248
  <option value="1" <?php if($edit_group->page_loc == 1) { echo 'selected'; } ?>><?php _e('Before content', 'adrotate'); ?></option>
249
  <option value="2" <?php if($edit_group->page_loc == 2) { echo 'selected'; } ?>><?php _e('After content', 'adrotate'); ?></option>
250
  <option value="3" <?php if($edit_group->page_loc == 3) { echo 'selected'; } ?>><?php _e('Before and after content', 'adrotate'); ?></option>
251
+ <option value="4" <?php if($edit_group->page_loc == 4) { echo 'selected'; } ?>><?php _e('Inside the content...', 'adrotate'); ?></option>
252
  </select>
253
  </label>
254
  <label for="adrotate_page_paragraph">
255
  <select tabindex="15" name="adrotate_page_paragraph">
256
  <option value="0" <?php if($edit_group->page_par == 0) { echo 'selected'; } ?>>...</option>
257
+ <option value="99" <?php if($edit_group->page_par == 99) { echo 'selected'; } ?>><?php _e('after the middle paragraph', 'adrotate'); ?></option>
258
+ <option value="1" <?php if($edit_group->page_par == 1) { echo 'selected'; } ?>><?php _e('after the 1st paragraph', 'adrotate'); ?></option>
259
+ <option value="2" <?php if($edit_group->page_par == 2) { echo 'selected'; } ?>><?php _e('after the 2nd paragraph', 'adrotate'); ?></option>
260
+ <option value="3" <?php if($edit_group->page_par == 3) { echo 'selected'; } ?>><?php _e('after the 3rd paragraph', 'adrotate'); ?></option>
261
+ <option value="4" <?php if($edit_group->page_par == 4) { echo 'selected'; } ?>><?php _e('after the 4th paragraph', 'adrotate'); ?></option>
262
+ <option value="5" <?php if($edit_group->page_par == 5) { echo 'selected'; } ?>><?php _e('after the 5th paragraph', 'adrotate'); ?></option>
263
+ <option value="6" <?php if($edit_group->page_par == 6) { echo 'selected'; } ?>><?php _e('after the 6th paragraph', 'adrotate'); ?></option>
264
+ <option value="7" <?php if($edit_group->page_par == 7) { echo 'selected'; } ?>><?php _e('after the 7th paragraph', 'adrotate'); ?></option>
265
+ <option value="8" <?php if($edit_group->page_par == 8) { echo 'selected'; } ?>><?php _e('after the 8th paragraph', 'adrotate'); ?></option>
 
 
 
266
  </select>
267
  </label>
268
  </td>
images/demo-advertisers.jpg DELETED
Binary file
images/demo-geo-targeting.png ADDED
Binary file
images/demo-geotargetting.jpg DELETED
Binary file
images/demo-notifications.jpg DELETED
Binary file
images/demo-notifications.png ADDED
Binary file
images/demo-satisfy.png ADDED
Binary file
images/demo-schedule.png ADDED
Binary file
images/demo-schedules.jpg DELETED
Binary file
images/demo-support.png ADDED
Binary file
images/{close-icon.png → icon-close.png} RENAMED
File without changes
images/{icon.png → icon-menu.png} RENAMED
File without changes
language/adrotate-bg_BG.mo CHANGED
Binary file
language/adrotate-bg_BG.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: AdRotate\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2015-05-15 01:46+0100\n"
6
- "PO-Revision-Date: 2015-05-15 01:46+0100\n"
7
  "Last-Translator: Arnan de Gans <info@ajdg.net>\n"
8
  "Language-Team: Nedko Ivanov <cocacoli4ko@gmail.com>\n"
9
  "Language: bg_BG\n"
@@ -13,23 +13,23 @@ msgstr ""
13
  "X-Poedit-KeywordsList: __;_e;_\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
- "X-Generator: Poedit 1.7.5\n"
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
  "X-Poedit-SearchPath-0: .\n"
19
 
20
- #: adrotate-functions.php:801
21
  msgid "No files found"
22
  msgstr "Няма намерени файлове"
23
 
24
- #: adrotate-functions.php:804
25
  msgid "Folder not found or not accessible"
26
  msgstr "Папката не е намерена или не е достъпна"
27
 
28
- #: adrotate-output.php:737
29
  msgid "Oh no! Something went wrong!"
30
  msgstr "О не! Нещо се случи!"
31
 
32
- #: adrotate-output.php:738
33
  msgid ""
34
  "WordPress was unable to verify the authenticity of the url you have clicked. "
35
  "Verify if the url used is valid or log in via your browser."
@@ -38,17 +38,17 @@ msgstr ""
38
  "кликнал. Проверете дали адреса е валиден или се впишете посредством браузъра "
39
  "си."
40
 
41
- #: adrotate-output.php:739
42
  msgid ""
43
  "If you have received the url you want to visit via email, you are being "
44
  "tricked!"
45
  msgstr "Ако сте получили този адрес по email, то някой ви е изиграл!"
46
 
47
- #: adrotate-output.php:740
48
  msgid "Contact support if the issue persists:"
49
  msgstr "Свържете се с поддръжката, ако този проблем продължави да се появява:"
50
 
51
- #: adrotate-output.php:758
52
  msgid ""
53
  "Error, Ad is not available at this time due to schedule/geolocation "
54
  "restrictions or does not exist!"
@@ -56,33 +56,33 @@ msgstr ""
56
  "Грешка, рекламата не е налична в момента, поради ограничения в графика/"
57
  "геолокацията или не съществува!"
58
 
59
- #: adrotate-output.php:760
60
  msgid ""
61
  "Error, Ad is not available at this time due to schedule/geolocation "
62
  "restrictions!"
63
  msgstr ""
64
  "Грешка, рекламата не е налична, поради ограничения в графика/геолокацията!"
65
 
66
- #: adrotate-output.php:767 adrotate-output.php:769
67
  msgid ""
68
  "Either there are no banners, they are disabled or none qualified for this "
69
  "location!"
70
  msgstr ""
71
  "Няма налични банери, те са деактивирани или не са подходящи за това място!"
72
 
73
- #: adrotate-output.php:775
74
  msgid "Error, no Ad ID set! Check your syntax!"
75
  msgstr "Грешка, не е зададено ID на рекламата! Проверете синтаксиса!"
76
 
77
- #: adrotate-output.php:781
78
  msgid "Error, no group ID set! Check your syntax!"
79
  msgstr "Грешка, не е зададено ID на групата! Проверете синтаксиса!"
80
 
81
- #: adrotate-output.php:786
82
  msgid "Error, group does not exist! Check your syntax!"
83
  msgstr "Грешка, групата не съществува! Проверете синтаксиса!"
84
 
85
- #: adrotate-output.php:792
86
  msgid ""
87
  "There was an error locating the database tables for AdRotate. Please "
88
  "deactivate and re-activate AdRotate from the plugin page!!"
@@ -90,59 +90,59 @@ msgstr ""
90
  "Не могат да бъдат открити таблиците на AdRotate в базата данни. Моля, "
91
  "изключете и включете наново AdRotate от страницата с плъгините!!"
92
 
93
- #: adrotate-output.php:792
94
  msgid "If this does not solve the issue please seek support at"
95
  msgstr "Ако това не решава проблема, моля потърсете помощ на"
96
 
97
- #: adrotate-output.php:798
98
  msgid "An unknown error occured."
99
  msgstr "Възникна неизвестна грешка."
100
 
101
- #: adrotate-output.php:823
102
  msgid "active ad(s) expired."
103
  msgstr "изтекла/и активна/и реклама/и."
104
 
105
- #: adrotate-output.php:823
106
  msgid "Take action now"
107
  msgstr "Предприемане на действия"
108
 
109
- #: adrotate-output.php:825
110
  msgid "active ad(s) are about to expire."
111
  msgstr "изтичаща/и активна/и реклама/и."
112
 
113
- #: adrotate-output.php:825
114
  msgid "Check it out"
115
  msgstr "Проверете го"
116
 
117
- #: adrotate-output.php:827
118
  msgid "active ad(s) with configuration errors."
119
  msgstr "активна(и) реклама(и) с грешни настройки."
120
 
121
- #: adrotate-output.php:827
122
  msgid "Solve this"
123
  msgstr "Разреши това"
124
 
125
- #: adrotate-output.php:829
126
  msgid "ad(s) expired."
127
  msgstr "изтекла/и реклама/и."
128
 
129
- #: adrotate-output.php:829
130
  msgid "ad(s) are about to expire."
131
  msgstr "реклама/и изтича(т)."
132
 
133
- #: adrotate-output.php:829
134
  msgid "ad(s) with configuration errors."
135
  msgstr "реклама/и с грешни настройки."
136
 
137
- #: adrotate-output.php:829
138
  msgid "Fix this as soon as possible"
139
  msgstr "Поправка възможно най-скоро"
140
 
141
- #: adrotate-output.php:841
142
  msgid "Learn More"
143
  msgstr "Научете повече"
144
 
145
- #: adrotate-output.php:842
146
  msgid ""
147
  "You've been using <strong>AdRotate</strong> for a while now. Why not upgrade "
148
  "to the <strong>PRO</strong> version"
@@ -150,67 +150,67 @@ msgstr ""
150
  "Използвате <strong>AdRotate</strong> от известно време. Защо не надградите "
151
  "до <strong>PRO</strong> версията"
152
 
153
- #: adrotate-output.php:842
154
  msgid "Get more features to even better run your advertising campaigns."
155
  msgstr ""
156
  "Вземете повече опции за дори по-добро управление на вашите рекламни кампании."
157
 
158
- #: adrotate-output.php:842
159
  msgid "Thank you for your consideration!"
160
  msgstr "Благодарим Ви, че го обмислихте!"
161
 
162
- #: adrotate-output.php:886
163
  msgid ""
164
  "Welcome, and thanks for using AdRotate. Everything related to AdRotate is in "
165
  "this menu. Check out the"
166
  msgstr ""
167
 
168
- #: adrotate-output.php:886
169
  msgid "manuals"
170
  msgstr "ръководства"
171
 
172
- #: adrotate-output.php:886 adrotate-output.php:962
173
  #: dashboard/publisher/adrotate-ads-edit.php:151
174
  msgid "and"
175
  msgstr "и"
176
 
177
- #: adrotate-output.php:886
178
  msgid "forums"
179
  msgstr ""
180
 
181
- #: adrotate-output.php:922
182
  msgid "Useful Links"
183
  msgstr "Полезни връзки"
184
 
185
- #: adrotate-output.php:923
186
  msgid "Useful links to learn more about AdRotate"
187
  msgstr "Полезни връзки, за да получите повече информация за AdRotate"
188
 
189
- #: adrotate-output.php:925
190
  msgid "AdRotate Page"
191
  msgstr ""
192
 
193
- #: adrotate-output.php:926
194
  msgid "Getting Started With AdRotate"
195
  msgstr "Започнете от нулата с AdRotate Pro"
196
 
197
- #: adrotate-output.php:927
198
  msgid "AdRotate manuals"
199
  msgstr ""
200
 
201
- #: adrotate-output.php:928
202
  msgid "AdRotate Support Forum"
203
  msgstr "Форум за поддръжка на AdRotate"
204
 
205
- #: adrotate-output.php:954
206
  msgid "Help AdRotate Grow"
207
  msgstr "Помогнете за развитието на AdRotate"
208
 
209
- #: adrotate-output.php:955
210
  msgid "Brought to you by"
211
  msgstr "Достига до Вас благодарение на"
212
 
213
- #: adrotate-output.php:962
214
  msgid ""
215
  "A lot of users only think to review AdRotate when something goes wrong while "
216
  "thousands of people use AdRotate satisfactory. Don't let this go unnoticed."
@@ -219,23 +219,23 @@ msgstr ""
219
  "се обърка, докато хиляди хора използват AdRotate безпроблемно. Не оставяйте "
220
  "това да остане незабелязано."
221
 
222
- #: adrotate-output.php:962
223
  msgid "If you find AdRotate useful please leave your honest"
224
  msgstr "Ако намирате AdRotate за полезен, моля оставете честна"
225
 
226
- #: adrotate-output.php:962
227
  msgid "rating"
228
  msgstr "оценка"
229
 
230
- #: adrotate-output.php:962
231
  msgid "review"
232
  msgstr "мнение"
233
 
234
- #: adrotate-output.php:962
235
  msgid "on WordPress.org to help AdRotate grow in a positive way"
236
  msgstr "на WordPress.org, за да се развива AdRotate"
237
 
238
- #: adrotate-output.php:965
239
  msgid ""
240
  "Your one stop for Webdevelopment, consultancy and anything WordPress! Find "
241
  "out more about what I can do for you!"
@@ -243,27 +243,27 @@ msgstr ""
243
  "Мястото, където да се консултирате и/или да поръчате разработка за "
244
  "WordPress! Открийте с какво мога да Ви бъда полезен!"
245
 
246
- #: adrotate-output.php:965 dashboard/adrotate-info.php:171
247
  msgid "Visit the"
248
  msgstr "Посетете"
249
 
250
- #: adrotate-output.php:965 dashboard/adrotate-info.php:171
251
  msgid "website"
252
  msgstr "уебсайт"
253
 
254
- #: adrotate-output.php:995 dashboard/publisher/adrotate-ads-edit.php:313
255
  msgid "Available in AdRotate Pro"
256
  msgstr "Налично в AdRotate Pro"
257
 
258
- #: adrotate-output.php:995
259
  msgid "More information..."
260
  msgstr "Повече информация..."
261
 
262
- #: adrotate-output.php:996
263
  msgid "This feature is available in AdRotate Pro"
264
  msgstr "Тази функционалност е налична в AdRotate Pro"
265
 
266
- #: adrotate-output.php:996
267
  msgid "Learn more"
268
  msgstr "Повече информация"
269
 
@@ -339,47 +339,47 @@ msgstr "Този месец"
339
  msgid "Next"
340
  msgstr "Следващ"
341
 
342
- #: adrotate-statistics.php:284 dashboard/adrotate-info.php:123
343
  msgid "No data to show!"
344
  msgstr "Няма информация!"
345
 
346
- #: adrotate-widget.php:116
347
  msgid "Title (optional):"
348
  msgstr "Заглавие (не е задължително):"
349
 
350
- #: adrotate-widget.php:119
351
  msgid "HTML will be stripped out."
352
  msgstr "HTML тагове не се поддържат."
353
 
354
- #: adrotate-widget.php:122
355
  msgid "Description (optional):"
356
  msgstr "Описание (не е задължително):"
357
 
358
- #: adrotate-widget.php:125
359
  msgid "What is this widget used for? (Not parsed, HTML will be stripped out.)"
360
  msgstr "За какво се използва тази джаджа? (Не се поддържат HTML тагове.)"
361
 
362
- #: adrotate-widget.php:128
363
  msgid "Type:"
364
  msgstr "Тип:"
365
 
366
- #: adrotate-widget.php:130
367
  msgid "Single Ad - Use Ad ID"
368
  msgstr "Единична реклама - Използване на ID на рекламата"
369
 
370
- #: adrotate-widget.php:131
371
  msgid "Group of Ads - Use group ID"
372
  msgstr "Група реклами - Използване на ID на групата"
373
 
374
- #: adrotate-widget.php:134
375
  msgid "Choose what you want to use this widget for"
376
  msgstr "Изберете за какво иската да използвате тази джаджа"
377
 
378
- #: adrotate-widget.php:137
379
  msgid "ID:"
380
  msgstr "ID:"
381
 
382
- #: adrotate-widget.php:140
383
  msgid "Fill in the ID of the type you want to display!"
384
  msgstr "Попълнете ID-то на типа, който искате да се показва!"
385
 
@@ -764,8 +764,8 @@ msgstr "Изтриване на групи"
764
  msgid "Role to delete groups."
765
  msgstr "Роля за изтриване на групи."
766
 
767
- #: adrotate.php:680 adrotate.php:744 adrotate.php:799 adrotate.php:846
768
- #: adrotate.php:890
769
  msgid "Update Options"
770
  msgstr "Опции за обновяване"
771
 
@@ -932,11 +932,11 @@ msgstr ""
932
  "Сложете отметка, за да премахнете празното пространство около рекламите в "
933
  "джаджата. (Не винаги работи!)"
934
 
935
- #: adrotate.php:760 adrotate.php:771
936
  msgid "NOTICE:"
937
  msgstr "ЗАБЕЛЕЖКА:"
938
 
939
- #: adrotate.php:761
940
  msgid ""
941
  "You have enabled W3 Total Caching support but not defined the security hash. "
942
  "You need to add the following line to your wp-config.php near the bottom or "
@@ -948,33 +948,15 @@ msgstr ""
948
  "до края или под ред 52. Също така функцията \"late init\" трябва да бъде "
949
  "включена в W3 Total Cache."
950
 
951
- #: adrotate.php:765
952
  msgid "W3 Total Caching"
953
  msgstr "W3 Total Caching"
954
 
955
- #: adrotate.php:766
956
  msgid "Check this box if you use W3 Total Caching on your site."
957
  msgstr "Сложете отметка ако използвате W3 Total Caching на сайта си."
958
 
959
- #: adrotate.php:772
960
- msgid ""
961
- "You have enabled WP Super Cache support. If you have version 1.4 or newer, "
962
- "this function will not work. WP Super Cache has discontinued support for "
963
- "dynamic content."
964
- msgstr ""
965
- "Включили сте поддръжката на WP Super Cache. Ако имате версия 1.4 или по-"
966
- "нова, тази функция няма да работи. WP Super Cache прекрати поддръжката за "
967
- "динамично съдържание."
968
-
969
- #: adrotate.php:776
970
- msgid "WP Super Cache"
971
- msgstr "WP Super Cache"
972
-
973
- #: adrotate.php:777
974
- msgid "Check this box if you use WP Super Cache on your site."
975
- msgstr "Сложете отметка ако използвате W3 Total Caching на сайта си."
976
-
977
- #: adrotate.php:782
978
  msgid ""
979
  "It may take a while for the ad to start rotating. The caching plugin needs "
980
  "to refresh the cache. This can take up to a week if not done manually."
@@ -983,7 +965,7 @@ msgstr ""
983
  "Кеширащото разширение трябва да обнови данните. Това може да отнеме до една "
984
  "седмица, ако не го направите ръчно."
985
 
986
- #: adrotate.php:782
987
  msgid ""
988
  "Caching support only works for [shortcodes] and the AdRotate Widget. If you "
989
  "use a PHP Snippet you need to wrap your PHP in the exclusion code yourself."
@@ -992,15 +974,15 @@ msgstr ""
992
  "на AdRotate. Ако използвате PHP кода, трябва да го поставите в изключващ код "
993
  "сами."
994
 
995
- #: adrotate.php:786
996
  msgid "Javascript"
997
  msgstr ""
998
 
999
- #: adrotate.php:789
1000
  msgid "Load jQuery"
1001
  msgstr "Зареди jQuery"
1002
 
1003
- #: adrotate.php:790
1004
  msgid ""
1005
  "jQuery is required for all Javascript features below. Enable this if your "
1006
  "theme does not load jQuery already."
@@ -1008,11 +990,11 @@ msgstr ""
1008
  " jQuery е необходим за всички Javascript опции по-долу. Включете го само ако "
1009
  "темата ви вече не го е заредила."
1010
 
1011
- #: adrotate.php:793
1012
  msgid "Load in footer?"
1013
  msgstr "Зареди във футера?"
1014
 
1015
- #: adrotate.php:794
1016
  msgid ""
1017
  "Enable if you want to load the above libraries in the footer. Your theme "
1018
  "needs to call wp_footer() for this to work."
@@ -1020,11 +1002,11 @@ msgstr ""
1020
  "Включете, ако искате да заредите изброените по-горе библиотеки във футера. "
1021
  "Необходимо е темата ви да извиква wp_footer(), за да проработи."
1022
 
1023
- #: adrotate.php:802
1024
  msgid "Maintenance"
1025
  msgstr "Поддръжка"
1026
 
1027
- #: adrotate.php:803
1028
  msgid ""
1029
  "NOTE: The below functions are intented to be used to OPTIMIZE your database. "
1030
  "They only apply to your ads/groups and stats. Not to other settings or other "
@@ -1038,19 +1020,19 @@ msgstr ""
1038
  "функции само когато забележите, че вашата база данни е бавна, мудна или не "
1039
  "отговаря."
1040
 
1041
- #: adrotate.php:818 adrotate.php:820
1042
  msgid "Optimize Database"
1043
  msgstr "Оптимизиране на базата данни"
1044
 
1045
- #: adrotate.php:820
1046
  msgid "You are about to optimize the AdRotate database."
1047
  msgstr "На път сте да оптимизирате базата данни на AdRotate."
1048
 
1049
- #: adrotate.php:820
1050
  msgid "Did you make a backup of your database?"
1051
  msgstr "Направихте ли резервно копие на своята база данни?"
1052
 
1053
- #: adrotate.php:820
1054
  msgid ""
1055
  "This may take a moment and may cause your website to respond slow "
1056
  "temporarily!"
@@ -1058,16 +1040,16 @@ msgstr ""
1058
  "Това ще отнеме малко време и може да накара сайта Ви да работи по-бавно за "
1059
  "момент!"
1060
 
1061
- #: adrotate.php:820 adrotate.php:828 adrotate.php:836
1062
  #: dashboard/publisher/adrotate-groups-main.php:24
1063
  msgid "OK to continue, CANCEL to stop."
1064
  msgstr "ОК, за да продължите, ОТКАЗ за стоп."
1065
 
1066
- #: adrotate.php:821
1067
  msgid "Cleans up overhead data in the AdRotate tables."
1068
  msgstr "Почиста overhead данните в таблиците на AdRotate."
1069
 
1070
- #: adrotate.php:822
1071
  msgid ""
1072
  "Overhead data is accumulated garbage resulting from many changes you've "
1073
  "made. This can vary from nothing to hundreds of KiB of data."
@@ -1075,11 +1057,11 @@ msgstr ""
1075
  "Overhead данните са боклук, акумулиран в резултат на множеството промени, "
1076
  "които правите. Те могар да варират от 0 до хиляди KB."
1077
 
1078
- #: adrotate.php:826 adrotate.php:828
1079
  msgid "Clean-up Database"
1080
  msgstr "Почистване на базата данни"
1081
 
1082
- #: adrotate.php:828
1083
  msgid ""
1084
  "You are about to clean up your database. This may delete expired schedules "
1085
  "and older statistics."
@@ -1087,21 +1069,21 @@ msgstr ""
1087
  "На път сте да почистите базата с данни. Това може да изтрие истекли графици "
1088
  "и стари статистики."
1089
 
1090
- #: adrotate.php:828
1091
  msgid "Are you sure you want to continue?"
1092
  msgstr "Сигурни ли сте, че искате да продължите?"
1093
 
1094
- #: adrotate.php:828 adrotate.php:836
1095
  msgid "This might take a while and may slow down your site during this action!"
1096
  msgstr ""
1097
  "Това действие ще отнеме време и може да забави сайта ви по време на "
1098
  "изпълнението му!"
1099
 
1100
- #: adrotate.php:829
1101
  msgid "Delete stats older than 356 days (Optional)."
1102
  msgstr "Изтриване на статистики по-стари от 365 дни (Не е задължително)."
1103
 
1104
- #: adrotate.php:830
1105
  msgid ""
1106
  "AdRotate creates empty records when you start making ads or groups. In rare "
1107
  "occasions these records are faulty."
@@ -1109,7 +1091,7 @@ msgstr ""
1109
  "AdRotate създава празни записи, когато започнете да създавате реклама или "
1110
  "група. В редки случай тези записи са дефектни."
1111
 
1112
- #: adrotate.php:830
1113
  msgid ""
1114
  "If you made an ad or group that does not save when you make it use this "
1115
  "button to delete those empty records."
@@ -1117,7 +1099,7 @@ msgstr ""
1117
  "Ако създадете реклама или група, която не може да се запише, използвайте "
1118
  "този бутон, за да изтриете празните полета."
1119
 
1120
- #: adrotate.php:830
1121
  msgid ""
1122
  "Additionally you can clean up old statistics. This will improve the speed of "
1123
  "your site."
@@ -1125,19 +1107,19 @@ msgstr ""
1125
  "Също така можете да изчистите остарелите статистики. Това ще подобри "
1126
  "скоростта на сайта Ви."
1127
 
1128
- #: adrotate.php:834
1129
  msgid "Re-evaluate Ads"
1130
  msgstr "Преоценка на реклами"
1131
 
1132
- #: adrotate.php:836
1133
  msgid "Re-evaluate all ads"
1134
  msgstr "Преоценка на всички реклами"
1135
 
1136
- #: adrotate.php:836
1137
  msgid "You are about to check all ads for errors."
1138
  msgstr "На път сте да проверите всички реклами за грешки."
1139
 
1140
- #: adrotate.php:837
1141
  msgid ""
1142
  "This will apply all evaluation rules to all ads to see if any error slipped "
1143
  "in. Normally you should not need this feature."
@@ -1145,7 +1127,7 @@ msgstr ""
1145
  "Това ще провери всички реклами за грешки. Попринцип не би трябвало да имате "
1146
  "нужда от тази функция."
1147
 
1148
- #: adrotate.php:841
1149
  msgid ""
1150
  "DISCLAIMER: If for any reason your data is lost, damaged or otherwise "
1151
  "becomes unusable in any way or by any means in whichever way I will not take "
@@ -1162,65 +1144,65 @@ msgstr ""
1162
  "Отстояването на тезата, че всичко е работело нормално преди да кликнете на "
1163
  "тези бутони е безсмислено."
1164
 
1165
- #: adrotate.php:849
1166
  msgid "Troubleshooting"
1167
  msgstr "Отстраняване на проблеми"
1168
 
1169
- #: adrotate.php:852
1170
  msgid "Current version:"
1171
  msgstr "Текуща версия:"
1172
 
1173
- #: adrotate.php:853
1174
  msgid "Previous version:"
1175
  msgstr "Предишна версия:"
1176
 
1177
- #: adrotate.php:856
1178
  msgid "Current database version:"
1179
  msgstr "Текуща верския на базата данни:"
1180
 
1181
- #: adrotate.php:857
1182
  msgid "Previous database version:"
1183
  msgstr "Предишна версия на базата данни:"
1184
 
1185
- #: adrotate.php:860
1186
  #, fuzzy
1187
  msgid "Ad evaluation next run:"
1188
  msgstr "Оценка на рекламата:"
1189
 
1190
- #: adrotate.php:861 adrotate.php:865
1191
  msgid "Not scheduled!"
1192
  msgstr "Не е планирано!"
1193
 
1194
- #: adrotate.php:864
1195
  #, fuzzy
1196
  msgid "Clean Trackerdata next run:"
1197
  msgstr "Изчистване на Trackerdata при следващо стартиране:"
1198
 
1199
- #: adrotate.php:868
1200
  msgid "Current status of adverts"
1201
  msgstr "Настоящ статус на рекламите"
1202
 
1203
- #: adrotate.php:869
1204
  msgid "Normal"
1205
  msgstr "Нормално"
1206
 
1207
- #: adrotate.php:869
1208
  msgid "Error"
1209
  msgstr "Грешка"
1210
 
1211
- #: adrotate.php:869
1212
  msgid "Expired"
1213
  msgstr "Изтекло"
1214
 
1215
- #: adrotate.php:869
1216
  msgid "Expires Soon"
1217
  msgstr "Изтича скоро"
1218
 
1219
- #: adrotate.php:869
1220
  msgid "Unknown Status"
1221
  msgstr "Неизвестен статус"
1222
 
1223
- #: adrotate.php:872
1224
  msgid ""
1225
  "NOTE: The below options are not meant for normal use and are only there for "
1226
  "developers to review saved settings or how ads are selected. These can be "
@@ -1233,35 +1215,35 @@ msgstr ""
1233
  "проблем, който трябва да се разреши. При нормална употреба оставете опциите "
1234
  "ИЗКЛЮЧЕНИ!!"
1235
 
1236
- #: adrotate.php:876
1237
  msgid "Developer Debug"
1238
  msgstr "Developer Debug"
1239
 
1240
- #: adrotate.php:878
1241
  msgid "Troubleshoot ads and how (if) they are selected, has front-end output."
1242
  msgstr ""
1243
  "Проверк за грешки в рекламите и как (дали) са закачени. Има потребителски "
1244
  "изглед."
1245
 
1246
- #: adrotate.php:879
1247
  msgid "Show all settings, dashboard routines and related values."
1248
  msgstr "Показване на всички настройки, рутинни процедури и свързани стойности."
1249
 
1250
- #: adrotate.php:880
1251
  msgid "Show array of all userroles and capabilities."
1252
  msgstr "Покажи масив с всички потребителски роли и възможности."
1253
 
1254
- #: adrotate.php:881
1255
  msgid "Review saved advertisers! Visible to advertisers."
1256
  msgstr "Преглед на записаните рекламодатели! Видимо за рекламодатели."
1257
 
1258
- #: adrotate.php:882
1259
  msgid "Review global stats, per ad/group stats. Visible only to publishers."
1260
  msgstr ""
1261
  "Преглед на глобални статитики, статистика за реклама/група. Видимо само за "
1262
  "автори."
1263
 
1264
- #: adrotate.php:883
1265
  msgid ""
1266
  "Disable timers for clicks and impressions and enable a alert window for "
1267
  "clicktracking."
@@ -1269,67 +1251,75 @@ msgstr ""
1269
  "Изключване на брояча за кликове и импресии и активиране на напомнящ прозорец "
1270
  "за проследяване на кликове."
1271
 
1272
- #: adrotate.php:884
1273
  msgid "Temporarily disable encryption on the redirect url."
1274
  msgstr "Временно изключване на криптирането на пренасочващоя адрес."
1275
 
1276
- #: dashboard/adrotate-info.php:65
1277
  msgid "Currently"
1278
  msgstr "В момента"
1279
 
1280
- #: dashboard/adrotate-info.php:71
1281
  msgid "Your setup"
1282
  msgstr "Вие имате"
1283
 
1284
- #: dashboard/adrotate-info.php:72
1285
  msgid "Adverts that need you"
1286
  msgstr "Реклами, които изискват вниманието Ви"
1287
 
1288
- #: dashboard/adrotate-info.php:78
1289
  msgid "Adverts"
1290
  msgstr "Реклами"
1291
 
1292
- #: dashboard/adrotate-info.php:79
1293
  msgid "(Almost) Expired"
1294
  msgstr "(Почти) Изтекли"
1295
 
1296
- #: dashboard/adrotate-info.php:82
1297
  msgid "Groups"
1298
  msgstr "Групи"
1299
 
1300
- #: dashboard/adrotate-info.php:83
1301
  msgid "Have errors"
1302
  msgstr "Има грешки"
1303
 
1304
- #: dashboard/adrotate-info.php:87
1305
  msgid "Queued"
1306
  msgstr "На опашка"
1307
 
1308
- #: dashboard/adrotate-info.php:93
1309
  msgid "The last few days"
1310
  msgstr "Последни няколко дни"
1311
 
1312
- #: dashboard/adrotate-info.php:132
1313
  msgid "Support AdRotate"
1314
  msgstr "Подкрепете AdRotate"
1315
 
1316
- #: dashboard/adrotate-info.php:139
1317
  msgid "Your gift helps ensure the continued development of AdRotate!"
1318
  msgstr ""
1319
 
1320
- #: dashboard/adrotate-info.php:139
1321
  msgid "Can't donate money? Consider writing a review instead. Thank you!"
1322
  msgstr ""
1323
 
1324
- #: dashboard/adrotate-info.php:148
1325
  msgid "AdRotate News and Developer Blog"
1326
  msgstr "AdRotate блог за новини и разработка"
1327
 
1328
  #: dashboard/adrotate-info.php:168
 
 
 
 
 
 
 
 
1329
  msgid "Get more features with AdRotate Pro"
1330
  msgstr "Получете по-голяма функционалност с AdRotate Pro"
1331
 
1332
- #: dashboard/adrotate-info.php:171
1333
  msgid ""
1334
  "Benefit from extra features to reinforce your income with advertising "
1335
  "campaigns. Make the most of your website with the powerful tools AdRotate "
@@ -1339,79 +1329,79 @@ msgstr ""
1339
  "подобрите приходите. Използвайте пълния потенциал на сайта си с мощните "
1340
  "функции, които предлага AdRotate Pro спрямо безплатната версия."
1341
 
1342
- #: dashboard/adrotate-info.php:171
1343
  msgid "Want to know more about"
1344
  msgstr ""
1345
 
1346
- #: dashboard/adrotate-info.php:175 dashboard/adrotate-pro.php:76
1347
  msgid "Buy AdRotate Professional"
1348
  msgstr "Купете AdRotate Professional"
1349
 
1350
- #: dashboard/adrotate-info.php:179 dashboard/adrotate-pro.php:80
1351
- msgid "Singe License"
1352
- msgstr "Singe лиценз"
1353
 
1354
- #: dashboard/adrotate-info.php:179 dashboard/adrotate-pro.php:80
1355
  msgid "For one WordPress installation."
1356
  msgstr "За една инсталация на WordPress."
1357
 
1358
- #: dashboard/adrotate-info.php:179 dashboard/adrotate-info.php:180
1359
- #: dashboard/adrotate-info.php:181 dashboard/adrotate-info.php:182
1360
- #: dashboard/adrotate-info.php:183 dashboard/adrotate-pro.php:80
1361
- #: dashboard/adrotate-pro.php:81 dashboard/adrotate-pro.php:82
1362
- #: dashboard/adrotate-pro.php:83 dashboard/adrotate-pro.php:84
1363
  msgid "Buy now"
1364
  msgstr "Купи сега"
1365
 
1366
- #: dashboard/adrotate-info.php:180 dashboard/adrotate-pro.php:81
1367
  msgid "Duo License"
1368
  msgstr "Duo лиценз"
1369
 
1370
- #: dashboard/adrotate-info.php:180 dashboard/adrotate-pro.php:81
1371
  msgid "For two WordPress installations."
1372
  msgstr "За две Wordpress инсталации."
1373
 
1374
- #: dashboard/adrotate-info.php:181 dashboard/adrotate-pro.php:82
1375
  msgid "Multi License"
1376
  msgstr "Multi лиценз"
1377
 
1378
- #: dashboard/adrotate-info.php:181 dashboard/adrotate-pro.php:82
1379
  msgid " For up to five WordPress installations."
1380
  msgstr " За до 5 Wordpress инсталации."
1381
 
1382
- #: dashboard/adrotate-info.php:182 dashboard/adrotate-pro.php:83
1383
  msgid "Developer License"
1384
  msgstr "Developer лиценз"
1385
 
1386
- #: dashboard/adrotate-info.php:182 dashboard/adrotate-pro.php:83
1387
  msgid "Unlimited WordPress installations and/or networks."
1388
  msgstr ""
1389
 
1390
- #: dashboard/adrotate-info.php:183 dashboard/adrotate-pro.php:84
1391
  msgid "Network License"
1392
  msgstr "Network лиценз"
1393
 
1394
- #: dashboard/adrotate-info.php:183 dashboard/adrotate-pro.php:84
1395
  msgid "Set up your own advertising network on a WordPress Multisite."
1396
  msgstr "Направете своя собствена рекламна мрежа чрез WordPress мултисайт."
1397
 
1398
- #: dashboard/adrotate-info.php:184 dashboard/adrotate-pro.php:85
1399
  msgid "Compare licenses"
1400
  msgstr "Сравнение на лицензи"
1401
 
1402
- #: dashboard/adrotate-info.php:184 dashboard/adrotate-pro.php:85
1403
  msgid "Not sure which license is for you? Compare them..."
1404
  msgstr "Не сте сигурни кой лиценз ви е необходим? Сравнете ги..."
1405
 
1406
- #: dashboard/adrotate-info.php:184 dashboard/adrotate-pro.php:85
1407
  msgid "All Licenses"
1408
  msgstr "Всички лицензи"
1409
 
1410
- #: dashboard/adrotate-info.php:188 dashboard/adrotate-pro.php:43
1411
  msgid "AdRotate is brought to you by"
1412
  msgstr "AdRotate достига до Вас, благодарение на"
1413
 
1414
- #: dashboard/adrotate-info.php:192 dashboard/adrotate-pro.php:47
1415
  msgid ""
1416
  "Your one stop for Webdevelopment, consultancy and anything WordPress! If you "
1417
  "need a custom plugin. Theme customizations or have your site moved/migrated "
@@ -1422,11 +1412,11 @@ msgstr ""
1422
  "искате сайта Ви да бъде мигриран? Посетете страницата ми за повече "
1423
  "информация!"
1424
 
1425
- #: dashboard/adrotate-info.php:192 dashboard/adrotate-pro.php:47
1426
  msgid "Find out more"
1427
  msgstr "Научете повече"
1428
 
1429
- #: dashboard/adrotate-info.php:194
1430
  msgid "Follow"
1431
  msgstr "Последвай"
1432
 
@@ -1446,63 +1436,58 @@ msgstr ""
1446
  "за одобрение от модератор. Рекламодателите ще имат достъп до малко табло, "
1447
  "където да се информират за представянето не рекламите си."
1448
 
1449
- #: dashboard/adrotate-pro.php:28
1450
  msgid "Localize your ad campaigns with Geo Targeting"
1451
  msgstr "Локализирайте своите рекламни кампании с Таргетиране по местоположение"
1452
 
1453
- #: dashboard/adrotate-pro.php:31
1454
  msgid ""
1455
  "Go nationwide or global with localized adverts for your various audiences. "
1456
  "Set up adverts for countries and cities and sell impressions per general "
1457
- "area. Connect your site to MaxMinds GeoIP2: Precision, FreegeoIP (MaxMind "
1458
- "GeoLITE) or GeoBytes GeoSelect services."
1459
  msgstr ""
1460
- "Бъдете представени национално или глобално с реклами по местоположение. "
1461
- "Задайте реклами по определени страни и градове и продавайте импресии по "
1462
- "разположение на банера. Свържете сайта си с услугите на MaxMinds GeoIP2: "
1463
- "Precision, FreegeoIP (MaxMind GeoLITE) или GeoBytes GeoSelect."
1464
 
1465
- #: dashboard/adrotate-pro.php:36
1466
  msgid "Get Premium Support almost all year round"
1467
  msgstr "Получете премиум поддръжка почти през цялата година"
1468
 
1469
- #: dashboard/adrotate-pro.php:39
1470
  msgid ""
1471
- "When you activate your AdRotate Pro license you are entitled to ticket "
1472
- "support. AdRotate premium support which takes priority over the Forums and "
1473
- "even email. Get a solution (usually) within a day."
 
1474
  msgstr ""
1475
- "Когато активирате вашия AdRotate Pro лиценз ще имате достъп до ticket "
1476
- "системата за поддръжка. AdRotate премиум поддръжката е с приоритет спрямо "
1477
- "форумите и дори Email съобщенията. В общия случай ще получите отговор до 1 "
1478
- "ден."
1479
 
1480
- #: dashboard/adrotate-pro.php:60
1481
  msgid "Schedule all campaigns with ease"
1482
  msgstr "Планиране на всички кампании с лекота"
1483
 
1484
- #: dashboard/adrotate-pro.php:63
1485
  msgid ""
1486
- "Schedule your adverts and set up advertising campaigns based on date without "
1487
- "hassle. Seasonal adverts, weekly adverts. You name it. AdRotate schedules it."
 
 
1488
  msgstr ""
1489
- "Задайте графици за своите обяви и създавайте рекламни кампании по дати. "
1490
- "Сезонни реклами, ежеседмични събития и всичко каквото се сетите ... с "
1491
- "AdRotate."
1492
 
1493
- #: dashboard/adrotate-pro.php:68
1494
- msgid "Stay up-to-date with the notification system"
1495
- msgstr "Бъдете осведомени със системата за известия"
1496
 
1497
- #: dashboard/adrotate-pro.php:71
1498
  msgid ""
1499
- "Stay in touch with Email and/or push notifications. Get notified when "
 
 
1500
  "adverts expire, have errors or when advertisers create new adverts. Never "
1501
  "miss an expiration date again."
1502
  msgstr ""
1503
- "Бъдете информирани, използвайте известията по Email и/или с push съобщения. "
1504
- "Ще разберете кога изтичат обявите, какви грешки са възникнали и кога "
1505
- "рекламодателите добавят нови реклами."
 
1506
 
1507
  #: dashboard/publisher/adrotate-ads-edit.php:46
1508
  msgid "The AdCode cannot be empty!"
@@ -2482,6 +2467,63 @@ msgstr "Няма създадени групи!"
2482
  msgid "Statistics for group"
2483
  msgstr "Статистика за групи"
2484
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2485
  #~ msgid "Title:"
2486
  #~ msgstr "Заглавие:"
2487
 
2
  msgstr ""
3
  "Project-Id-Version: AdRotate\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2015-05-30 02:48+0100\n"
6
+ "PO-Revision-Date: 2015-05-30 02:48+0100\n"
7
  "Last-Translator: Arnan de Gans <info@ajdg.net>\n"
8
  "Language-Team: Nedko Ivanov <cocacoli4ko@gmail.com>\n"
9
  "Language: bg_BG\n"
13
  "X-Poedit-KeywordsList: __;_e;_\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
+ "X-Generator: Poedit 1.8.1\n"
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
  "X-Poedit-SearchPath-0: .\n"
19
 
20
+ #: adrotate-functions.php:796
21
  msgid "No files found"
22
  msgstr "Няма намерени файлове"
23
 
24
+ #: adrotate-functions.php:799
25
  msgid "Folder not found or not accessible"
26
  msgstr "Папката не е намерена или не е достъпна"
27
 
28
+ #: adrotate-output.php:735
29
  msgid "Oh no! Something went wrong!"
30
  msgstr "О не! Нещо се случи!"
31
 
32
+ #: adrotate-output.php:736
33
  msgid ""
34
  "WordPress was unable to verify the authenticity of the url you have clicked. "
35
  "Verify if the url used is valid or log in via your browser."
38
  "кликнал. Проверете дали адреса е валиден или се впишете посредством браузъра "
39
  "си."
40
 
41
+ #: adrotate-output.php:737
42
  msgid ""
43
  "If you have received the url you want to visit via email, you are being "
44
  "tricked!"
45
  msgstr "Ако сте получили този адрес по email, то някой ви е изиграл!"
46
 
47
+ #: adrotate-output.php:738
48
  msgid "Contact support if the issue persists:"
49
  msgstr "Свържете се с поддръжката, ако този проблем продължави да се появява:"
50
 
51
+ #: adrotate-output.php:756
52
  msgid ""
53
  "Error, Ad is not available at this time due to schedule/geolocation "
54
  "restrictions or does not exist!"
56
  "Грешка, рекламата не е налична в момента, поради ограничения в графика/"
57
  "геолокацията или не съществува!"
58
 
59
+ #: adrotate-output.php:758
60
  msgid ""
61
  "Error, Ad is not available at this time due to schedule/geolocation "
62
  "restrictions!"
63
  msgstr ""
64
  "Грешка, рекламата не е налична, поради ограничения в графика/геолокацията!"
65
 
66
+ #: adrotate-output.php:765 adrotate-output.php:767
67
  msgid ""
68
  "Either there are no banners, they are disabled or none qualified for this "
69
  "location!"
70
  msgstr ""
71
  "Няма налични банери, те са деактивирани или не са подходящи за това място!"
72
 
73
+ #: adrotate-output.php:773
74
  msgid "Error, no Ad ID set! Check your syntax!"
75
  msgstr "Грешка, не е зададено ID на рекламата! Проверете синтаксиса!"
76
 
77
+ #: adrotate-output.php:779
78
  msgid "Error, no group ID set! Check your syntax!"
79
  msgstr "Грешка, не е зададено ID на групата! Проверете синтаксиса!"
80
 
81
+ #: adrotate-output.php:784
82
  msgid "Error, group does not exist! Check your syntax!"
83
  msgstr "Грешка, групата не съществува! Проверете синтаксиса!"
84
 
85
+ #: adrotate-output.php:790
86
  msgid ""
87
  "There was an error locating the database tables for AdRotate. Please "
88
  "deactivate and re-activate AdRotate from the plugin page!!"
90
  "Не могат да бъдат открити таблиците на AdRotate в базата данни. Моля, "
91
  "изключете и включете наново AdRotate от страницата с плъгините!!"
92
 
93
+ #: adrotate-output.php:790
94
  msgid "If this does not solve the issue please seek support at"
95
  msgstr "Ако това не решава проблема, моля потърсете помощ на"
96
 
97
+ #: adrotate-output.php:796
98
  msgid "An unknown error occured."
99
  msgstr "Възникна неизвестна грешка."
100
 
101
+ #: adrotate-output.php:821
102
  msgid "active ad(s) expired."
103
  msgstr "изтекла/и активна/и реклама/и."
104
 
105
+ #: adrotate-output.php:821
106
  msgid "Take action now"
107
  msgstr "Предприемане на действия"
108
 
109
+ #: adrotate-output.php:823
110
  msgid "active ad(s) are about to expire."
111
  msgstr "изтичаща/и активна/и реклама/и."
112
 
113
+ #: adrotate-output.php:823
114
  msgid "Check it out"
115
  msgstr "Проверете го"
116
 
117
+ #: adrotate-output.php:825
118
  msgid "active ad(s) with configuration errors."
119
  msgstr "активна(и) реклама(и) с грешни настройки."
120
 
121
+ #: adrotate-output.php:825
122
  msgid "Solve this"
123
  msgstr "Разреши това"
124
 
125
+ #: adrotate-output.php:827
126
  msgid "ad(s) expired."
127
  msgstr "изтекла/и реклама/и."
128
 
129
+ #: adrotate-output.php:827
130
  msgid "ad(s) are about to expire."
131
  msgstr "реклама/и изтича(т)."
132
 
133
+ #: adrotate-output.php:827
134
  msgid "ad(s) with configuration errors."
135
  msgstr "реклама/и с грешни настройки."
136
 
137
+ #: adrotate-output.php:827
138
  msgid "Fix this as soon as possible"
139
  msgstr "Поправка възможно най-скоро"
140
 
141
+ #: adrotate-output.php:839
142
  msgid "Learn More"
143
  msgstr "Научете повече"
144
 
145
+ #: adrotate-output.php:840
146
  msgid ""
147
  "You've been using <strong>AdRotate</strong> for a while now. Why not upgrade "
148
  "to the <strong>PRO</strong> version"
150
  "Използвате <strong>AdRotate</strong> от известно време. Защо не надградите "
151
  "до <strong>PRO</strong> версията"
152
 
153
+ #: adrotate-output.php:840
154
  msgid "Get more features to even better run your advertising campaigns."
155
  msgstr ""
156
  "Вземете повече опции за дори по-добро управление на вашите рекламни кампании."
157
 
158
+ #: adrotate-output.php:840
159
  msgid "Thank you for your consideration!"
160
  msgstr "Благодарим Ви, че го обмислихте!"
161
 
162
+ #: adrotate-output.php:884
163
  msgid ""
164
  "Welcome, and thanks for using AdRotate. Everything related to AdRotate is in "
165
  "this menu. Check out the"
166
  msgstr ""
167
 
168
+ #: adrotate-output.php:884
169
  msgid "manuals"
170
  msgstr "ръководства"
171
 
172
+ #: adrotate-output.php:884 adrotate-output.php:960
173
  #: dashboard/publisher/adrotate-ads-edit.php:151
174
  msgid "and"
175
  msgstr "и"
176
 
177
+ #: adrotate-output.php:884
178
  msgid "forums"
179
  msgstr ""
180
 
181
+ #: adrotate-output.php:920
182
  msgid "Useful Links"
183
  msgstr "Полезни връзки"
184
 
185
+ #: adrotate-output.php:921
186
  msgid "Useful links to learn more about AdRotate"
187
  msgstr "Полезни връзки, за да получите повече информация за AdRotate"
188
 
189
+ #: adrotate-output.php:923
190
  msgid "AdRotate Page"
191
  msgstr ""
192
 
193
+ #: adrotate-output.php:924
194
  msgid "Getting Started With AdRotate"
195
  msgstr "Започнете от нулата с AdRotate Pro"
196
 
197
+ #: adrotate-output.php:925
198
  msgid "AdRotate manuals"
199
  msgstr ""
200
 
201
+ #: adrotate-output.php:926
202
  msgid "AdRotate Support Forum"
203
  msgstr "Форум за поддръжка на AdRotate"
204
 
205
+ #: adrotate-output.php:952
206
  msgid "Help AdRotate Grow"
207
  msgstr "Помогнете за развитието на AdRotate"
208
 
209
+ #: adrotate-output.php:953
210
  msgid "Brought to you by"
211
  msgstr "Достига до Вас благодарение на"
212
 
213
+ #: adrotate-output.php:960
214
  msgid ""
215
  "A lot of users only think to review AdRotate when something goes wrong while "
216
  "thousands of people use AdRotate satisfactory. Don't let this go unnoticed."
219
  "се обърка, докато хиляди хора използват AdRotate безпроблемно. Не оставяйте "
220
  "това да остане незабелязано."
221
 
222
+ #: adrotate-output.php:960
223
  msgid "If you find AdRotate useful please leave your honest"
224
  msgstr "Ако намирате AdRotate за полезен, моля оставете честна"
225
 
226
+ #: adrotate-output.php:960
227
  msgid "rating"
228
  msgstr "оценка"
229
 
230
+ #: adrotate-output.php:960
231
  msgid "review"
232
  msgstr "мнение"
233
 
234
+ #: adrotate-output.php:960
235
  msgid "on WordPress.org to help AdRotate grow in a positive way"
236
  msgstr "на WordPress.org, за да се развива AdRotate"
237
 
238
+ #: adrotate-output.php:963
239
  msgid ""
240
  "Your one stop for Webdevelopment, consultancy and anything WordPress! Find "
241
  "out more about what I can do for you!"
243
  "Мястото, където да се консултирате и/или да поръчате разработка за "
244
  "WordPress! Открийте с какво мога да Ви бъда полезен!"
245
 
246
+ #: adrotate-output.php:963 dashboard/adrotate-info.php:191
247
  msgid "Visit the"
248
  msgstr "Посетете"
249
 
250
+ #: adrotate-output.php:963 dashboard/adrotate-info.php:191
251
  msgid "website"
252
  msgstr "уебсайт"
253
 
254
+ #: adrotate-output.php:993 dashboard/publisher/adrotate-ads-edit.php:313
255
  msgid "Available in AdRotate Pro"
256
  msgstr "Налично в AdRotate Pro"
257
 
258
+ #: adrotate-output.php:993
259
  msgid "More information..."
260
  msgstr "Повече информация..."
261
 
262
+ #: adrotate-output.php:994
263
  msgid "This feature is available in AdRotate Pro"
264
  msgstr "Тази функционалност е налична в AdRotate Pro"
265
 
266
+ #: adrotate-output.php:994
267