AdRotate Banner Manager - Version 3.11.5

Version Description

FREE = * [tweak] Minor tweaks and improvements to dashboards * [fix] More accurate regexes for AdRotate Tracker * [fix] Ambiguous array match in post injection * [fix] Unwanted advert after content with post injection on some settings * [i18n] Updated strings for all language files

NOTE: Certain features are exclusive to AdRotate PRO. If you need these features please consider upgrading to AdRotate PRO.

Download this release

Release Info

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

Code changes from version 3.11.4 to 3.11.5

adrotate-functions.php CHANGED
@@ -20,11 +20,12 @@
20
  function adrotate_shortcode($atts, $content = null) {
21
  global $adrotate_config;
22
 
23
- $banner_id = $group_ids = $fallback = $weight = 0;
24
  if(!empty($atts['banner'])) $banner_id = trim($atts['banner'], "\r\t ");
25
  if(!empty($atts['group'])) $group_ids = trim($atts['group'], "\r\t ");
26
- if(!empty($atts['fallback'])) $fallback = trim($atts['fallback'], "\r\t "); // Optional for groups (override)
27
- if(!empty($atts['weight'])) $weight = trim($atts['weight'], "\r\t "); // Optional for groups (override)
 
28
  if(!empty($atts['site'])) $site = 0; // Not supported in free version
29
 
30
  $output = '';
@@ -32,14 +33,14 @@ 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.', '.$fallback.', '.$weight.') -->';
42
- $output .= adrotate_group($group_ids, $fallback, $weight);
43
  if($adrotate_config['supercache'] == "Y") $output .= '<!--/mfunc-->';
44
  }
45
 
20
  function adrotate_shortcode($atts, $content = null) {
21
  global $adrotate_config;
22
 
23
+ $banner_id = $group_ids = $nowrapper = 0;
24
  if(!empty($atts['banner'])) $banner_id = trim($atts['banner'], "\r\t ");
25
  if(!empty($atts['group'])) $group_ids = trim($atts['group'], "\r\t ");
26
+ if(!empty($atts['nowrapper'])) $nowrapper = trim($atts['nowrapper'], "\r\t "); // Optional (override)
27
+ if(!empty($atts['fallback'])) $fallback = 0; // Not supported in free version
28
+ if(!empty($atts['weight'])) $weight = 0; // Not supported in free version
29
  if(!empty($atts['site'])) $site = 0; // Not supported in free version
30
 
31
  $output = '';
33
  if($adrotate_config['w3caching'] == "Y") $output .= '<!-- mfunc '.W3TC_DYNAMIC_SECURITY.' -->';
34
 
35
  if($banner_id > 0 AND $group_ids == 0) { // Show one Ad
36
+ if($adrotate_config['supercache'] == "Y") $output .= '<!--mfunc echo adrotate_ad('.$banner_id.', true, 0, 0, '.$nowrapper.') -->';
37
+ $output .= adrotate_ad($banner_id, true, 0, 0, $nowrapper);
38
  if($adrotate_config['supercache'] == "Y") $output .= '<!--/mfunc-->';
39
  }
40
 
41
  if($banner_id == 0 AND $group_ids > 0) { // Show group
42
+ if($adrotate_config['supercache'] == "Y") $output .= '<!--mfunc echo adrotate_group('.$group_ids.', 0, 0, 0, '.$nowrapper.') -->';
43
+ $output .= adrotate_group($group_ids, 0, 0, 0, $nowrapper);
44
  if($adrotate_config['supercache'] == "Y") $output .= '<!--/mfunc-->';
45
  }
46
 
adrotate-output.php CHANGED
@@ -13,27 +13,17 @@
13
  Name: adrotate_ad
14
 
15
  Purpose: Show requested ad
16
- Receive: $banner_id, $individual, $group, $block (obsolete), $site
17
  Return: $output
18
  Since: 3.0
19
  -------------------------------------------------------------*/
20
- function adrotate_ad($banner_id, $individual = true, $group = 0, $block = 0, $site = 0) {
21
  global $wpdb, $adrotate_config, $adrotate_debug;
22
 
23
  $output = '';
24
 
25
  if($banner_id) {
26
- $banner = $wpdb->get_row($wpdb->prepare(
27
- "SELECT
28
- `id`, `bannercode`, `tracker`, `link`, `image`, `responsive`
29
- FROM
30
- `".$wpdb->prefix."adrotate`
31
- WHERE
32
- `id` = %d
33
- AND (`type` = 'active'
34
- OR `type` = '2days'
35
- OR `type` = '7days')
36
- ;", $banner_id));
37
 
38
  if($banner) {
39
  if($adrotate_debug['general'] == true) {
@@ -49,11 +39,12 @@ function adrotate_ad($banner_id, $individual = true, $group = 0, $block = 0, $si
49
  }
50
 
51
  if($selected) {
 
52
  $image = str_replace('%folder%', $adrotate_config['banner_folder'], $banner->image);
53
 
54
- if($individual == true) $output .= '<div class="a-single a-'.$banner->id.'">';
55
  $output .= adrotate_ad_output($banner->id, 0, $banner->bannercode, $banner->tracker, $banner->link, $image, $banner->responsive);
56
- if($individual == true) $output .= '</div>';
57
 
58
  if($adrotate_config['stats'] == 1 AND $banner->tracker == "Y") {
59
  adrotate_count_impression($banner->id, 0, 0);
@@ -73,18 +64,17 @@ function adrotate_ad($banner_id, $individual = true, $group = 0, $block = 0, $si
73
  Name: adrotate_group
74
 
75
  Purpose: Fetch ads in specified group(s) and show a random ad
76
- Receive: $group_ids, $fallback, $weight, $site
77
  Return: $output
78
  Since: 3.0
79
  -------------------------------------------------------------*/
80
- function adrotate_group($group_ids, $fallback = 0, $weight = 0, $site = 0) {
81
  global $wpdb, $adrotate_config, $adrotate_debug;
82
 
83
- $output = $group_select = $weightoverride = '';
84
  if($group_ids) {
85
  $now = adrotate_now();
86
-
87
- (!is_array($group_ids)) ? $group_array = explode(",", $group_ids) : $group_array = $group_ids;
88
 
89
  foreach($group_array as $key => $value) {
90
  $group_select .= " `{$wpdb->prefix}adrotate_linkmeta`.`group` = {$value} OR";
@@ -100,9 +90,6 @@ function adrotate_group($group_ids, $fallback = 0, $weight = 0, $site = 0) {
100
  }
101
 
102
  if($group) {
103
- if($fallback == 0) $fallback = $group->fallback;
104
- if($weight > 0) $weightoverride = " AND `{$wpdb->prefix}adrotate`.`weight` >= '{$weight}'";
105
-
106
  // Get all ads in all selected groups
107
  $ads = $wpdb->get_results(
108
  "SELECT
@@ -123,7 +110,6 @@ function adrotate_group($group_ids, $fallback = 0, $weight = 0, $site = 0) {
123
  AND (`{$wpdb->prefix}adrotate`.`type` = 'active'
124
  OR `{$wpdb->prefix}adrotate`.`type` = '2days'
125
  OR `{$wpdb->prefix}adrotate`.`type` = '7days')
126
- {$weightoverride}
127
  GROUP BY `{$wpdb->prefix}adrotate`.`id`
128
  ORDER BY `{$wpdb->prefix}adrotate`.`id`;");
129
 
@@ -149,10 +135,11 @@ function adrotate_group($group_ids, $fallback = 0, $weight = 0, $site = 0) {
149
  $array_count = count($selected);
150
  if($array_count > 0) {
151
  $before = $after = '';
 
152
  $before = str_replace('%id%', $group_array[0], stripslashes(html_entity_decode($group->wrapper_before, ENT_QUOTES)));
153
  $after = str_replace('%id%', $group_array[0], stripslashes(html_entity_decode($group->wrapper_after, ENT_QUOTES)));
154
 
155
- $output .= '<div class="g g-'.$group->id.'">';
156
 
157
  if($group->modus == 1) { // Dynamic ads
158
  $i = 1;
@@ -204,16 +191,16 @@ function adrotate_group($group_ids, $fallback = 0, $weight = 0, $site = 0) {
204
 
205
  $image = str_replace('%folder%', $adrotate_config['banner_folder'], $selected[$banner_id]->image);
206
 
207
- $output .= '<div class="g-single a-'.$selected[$banner_id]->id.'">';
208
  $output .= $before.adrotate_ad_output($selected[$banner_id]->id, $group->id, $selected[$banner_id]->bannercode, $selected[$banner_id]->tracker, $selected[$banner_id]->link, $image, $selected[$banner_id]->responsive).$after;
209
- $output .= '</div>';
210
 
211
  if($adrotate_config['stats'] == 1){
212
  adrotate_count_impression($selected[$banner_id]->id, $group->id, 0);
213
  }
214
  }
215
 
216
- $output .= '</div>';
217
 
218
  unset($selected);
219
  } else {
@@ -245,12 +232,13 @@ function adrotate_inject_pages($post_content) {
245
 
246
  if(is_page()) {
247
  // Inject ads into page
248
- $ids = $wpdb->get_results("SELECT `id`, `page`, `page_loc`, `page_par` FROM `".$wpdb->prefix."adrotate_groups` WHERE `page_loc` > 0;");
249
 
250
  $group_array = array();
251
  foreach($ids as $id) {
252
  $pages = explode(",", $id->page);
253
- // Build array of groups for pages
 
254
  if(in_array($post->ID, $pages)) {
255
  $group_array[$id->id] = array('location' => $id->page_loc, 'paragraph' => $id->page_par, 'pages' => $pages);
256
  }
@@ -303,26 +291,29 @@ function adrotate_inject_pages($post_content) {
303
  }
304
 
305
  // Adverts inside the content
306
- if($group_array[$group_id]['location'] == 4) {
307
- $paragraphs = explode("</p>", $post_content);
 
 
308
  $par = 1;
309
  $post_content = '';
310
- foreach($paragraphs as $paragraph) {
 
311
  if($par == $group_array[$group_id]['paragraph']
312
  OR ($par == 2 AND $group_array[$group_id]['paragraph'] == 20)
313
  OR ($par == 3 AND $group_array[$group_id]['paragraph'] == 30)
314
  OR ($par == 4 AND $group_array[$group_id]['paragraph'] == 40)) {
315
- $paragraph = $paragraph.adrotate_group($group_id);
316
 
 
317
  if($group_array[$group_id]['paragraph'] > 1 AND $group_array[$group_id]['paragraph'] < 10) {
318
  $par = 1;
319
- } else {
320
- $par++;
321
  }
322
  } else {
323
  $par++;
324
  }
325
  $post_content .= $paragraph;
 
326
  }
327
  }
328
  }
@@ -346,15 +337,16 @@ function adrotate_inject_posts($post_content) {
346
 
347
  if(is_single()) {
348
  // Inject ads into posts in specified category
349
- $ids = $wpdb->get_results("SELECT `id`, `cat`, `cat_loc`, `cat_par` FROM `".$wpdb->prefix."adrotate_groups` WHERE `cat_loc` > 0;");
350
  $wp_categories = get_terms('category', array('fields' => 'ids'));
351
 
352
  $group_array = array();
353
  foreach($ids as $id) {
354
  $categories = explode(",", $id->cat);
355
- // Build array of groups for categories
356
- foreach($wp_categories as $key => $value) {
357
- if(!in_array($value, $categories)) {
 
358
  $group_array[$id->id] = array('location' => $id->cat_loc, 'paragraph' => $id->cat_par, 'categories' => $categories);
359
  }
360
  }
@@ -406,26 +398,29 @@ function adrotate_inject_posts($post_content) {
406
  }
407
 
408
  // Adverts inside the content
409
- if($group_array[$group_id]['location'] == 4) {
410
- $paragraphs = explode("</p>", $post_content);
 
 
411
  $par = 1;
412
  $post_content = '';
413
- foreach($paragraphs as $paragraph) {
 
414
  if($par == $group_array[$group_id]['paragraph']
415
  OR ($par == 2 AND $group_array[$group_id]['paragraph'] == 20)
416
  OR ($par == 3 AND $group_array[$group_id]['paragraph'] == 30)
417
  OR ($par == 4 AND $group_array[$group_id]['paragraph'] == 40)) {
418
- $paragraph = $paragraph.adrotate_group($group_id);
419
 
 
420
  if($group_array[$group_id]['paragraph'] > 1 AND $group_array[$group_id]['paragraph'] < 10) {
421
  $par = 1;
422
- } else {
423
- $par++;
424
  }
425
  } else {
426
  $par++;
427
  }
428
  $post_content .= $paragraph;
 
429
  }
430
  }
431
  }
@@ -463,7 +458,7 @@ function adrotate_preview($banner_id) {
463
  if($banner_id) {
464
  $now = adrotate_now();
465
 
466
- $banner = $wpdb->get_row($wpdb->prepare("SELECT * FROM `".$wpdb->prefix."adrotate` WHERE `id` = %d;", $banner_id));
467
 
468
  if($adrotate_debug['general'] == true) {
469
  echo "<p><strong>[DEBUG][adrotate_preview()] Ad information</strong><pre>";
@@ -506,7 +501,7 @@ function adrotate_ad_output($id, $group = 0, $bannercode, $tracker, $link, $imag
506
 
507
  if($adrotate_config['stats'] == 1 AND $tracker == "Y") { // Internal tracker
508
  $banner_output = str_replace('<a ', '<a data-track="'.adrotate_hash($id, $group, $blog_id).'" ', $banner_output);
509
- preg_match_all('/<a[^>](.*?)>/i', $banner_output, $matches, PREG_SET_ORDER);
510
  if(isset($matches[0])) {
511
  foreach($matches[0] as $value) {
512
  if(preg_match('/<a[^>]+class=\"(.+?)\"[^>]*>/i', $value, $regs)) {
@@ -526,10 +521,10 @@ function adrotate_ad_output($id, $group = 0, $bannercode, $tracker, $link, $imag
526
  }
527
 
528
  // Add Responsive classes
529
- preg_match_all('/<img[^>](.*?)>/i', $banner_output, $matches, PREG_SET_ORDER);
530
  if(isset($matches[0])) {
531
  foreach($matches[0] as $value) {
532
- if(preg_match('/<img[^>]+class=\"(.+?)\"[^>]*>/i', $value, $regs)) {
533
  $result = $regs[1];
534
  if($responsive == 'Y') $result .= " responsive";
535
  $result = trim($result);
@@ -601,7 +596,7 @@ function adrotate_custom_scripts() {
601
  function adrotate_custom_javascript() {
602
  global $wpdb, $adrotate_config;
603
 
604
- $groups = $wpdb->get_results("SELECT `id`, `adspeed` FROM `".$wpdb->prefix."adrotate_groups` WHERE `name` != '' AND `modus` = 1 ORDER BY `id` ASC;");
605
  if($groups) {
606
  $output_js = "jQuery(document).ready(function(){\n";
607
  $output_js .= "if(jQuery.fn.gslider) {\n";
@@ -645,7 +640,7 @@ function adrotate_custom_css() {
645
 
646
  $output = "\n<!-- This site is using AdRotate v".ADROTATE_DISPLAY." to display their advertisements - https://ajdg.solutions/products/adrotate-for-wordpress/ -->\n";
647
 
648
- $groups = $wpdb->get_results("SELECT `id`, `modus`, `gridrows`, `gridcolumns`, `adwidth`, `adheight`, `admargin`, `align` FROM `".$wpdb->prefix."adrotate_groups` WHERE `name` != '' ORDER BY `id` ASC;");
649
  if($groups) {
650
  $output_css = "\t.g { margin:0px; padding:0px; overflow:hidden; line-height:1; zoom:1; }\n";
651
  $output_css .= "\t.g img { height:auto; }\n";
13
  Name: adrotate_ad
14
 
15
  Purpose: Show requested ad
16
+ Receive: $banner_id, $individual, $group, $site, $nowrapper
17
  Return: $output
18
  Since: 3.0
19
  -------------------------------------------------------------*/
20
+ function adrotate_ad($banner_id, $individual = true, $group = null, $site = 0, $nowrapper = 1) {
21
  global $wpdb, $adrotate_config, $adrotate_debug;
22
 
23
  $output = '';
24
 
25
  if($banner_id) {
26
+ $banner = $wpdb->get_row($wpdb->prepare("SELECT `id`, `bannercode`, `tracker`, `link`, `image`, `responsive` FROM `{$wpdb->prefix}adrotate` WHERE `id` = %d AND (`type` = 'active' OR `type` = '2days' OR `type` = '7days');", $banner_id));
 
 
 
 
 
 
 
 
 
 
27
 
28
  if($banner) {
29
  if($adrotate_debug['general'] == true) {
39
  }
40
 
41
  if($selected) {
42
+ $nowrapper = ($nowrapper == 1) ? true : false;
43
  $image = str_replace('%folder%', $adrotate_config['banner_folder'], $banner->image);
44
 
45
+ if($individual == true AND $nowrapper == false) $output .= '<div class="a-single a-'.$banner->id.'">';
46
  $output .= adrotate_ad_output($banner->id, 0, $banner->bannercode, $banner->tracker, $banner->link, $image, $banner->responsive);
47
+ if($individual == true AND $nowrapper == false) $output .= '</div>';
48
 
49
  if($adrotate_config['stats'] == 1 AND $banner->tracker == "Y") {
50
  adrotate_count_impression($banner->id, 0, 0);
64
  Name: adrotate_group
65
 
66
  Purpose: Fetch ads in specified group(s) and show a random ad
67
+ Receive: $group_ids, $fallback, $weight, $site, $nowrapper
68
  Return: $output
69
  Since: 3.0
70
  -------------------------------------------------------------*/
71
+ function adrotate_group($group_ids, $fallback = 0, $weight = 0, $site = 0, $nowrapper = 1) {
72
  global $wpdb, $adrotate_config, $adrotate_debug;
73
 
74
+ $output = $group_select = '';
75
  if($group_ids) {
76
  $now = adrotate_now();
77
+ $group_array = (!is_array($group_ids)) ? explode(",", $group_ids) : $group_ids;
 
78
 
79
  foreach($group_array as $key => $value) {
80
  $group_select .= " `{$wpdb->prefix}adrotate_linkmeta`.`group` = {$value} OR";
90
  }
91
 
92
  if($group) {
 
 
 
93
  // Get all ads in all selected groups
94
  $ads = $wpdb->get_results(
95
  "SELECT
110
  AND (`{$wpdb->prefix}adrotate`.`type` = 'active'
111
  OR `{$wpdb->prefix}adrotate`.`type` = '2days'
112
  OR `{$wpdb->prefix}adrotate`.`type` = '7days')
 
113
  GROUP BY `{$wpdb->prefix}adrotate`.`id`
114
  ORDER BY `{$wpdb->prefix}adrotate`.`id`;");
115
 
135
  $array_count = count($selected);
136
  if($array_count > 0) {
137
  $before = $after = '';
138
+ $nowrapper = ($nowrapper == 1) ? true : false;
139
  $before = str_replace('%id%', $group_array[0], stripslashes(html_entity_decode($group->wrapper_before, ENT_QUOTES)));
140
  $after = str_replace('%id%', $group_array[0], stripslashes(html_entity_decode($group->wrapper_after, ENT_QUOTES)));
141
 
142
+ if($nowrapper == false AND $group->modus < 1) $output .= '<div class="g g-'.$group->id.'">';
143
 
144
  if($group->modus == 1) { // Dynamic ads
145
  $i = 1;
191
 
192
  $image = str_replace('%folder%', $adrotate_config['banner_folder'], $selected[$banner_id]->image);
193
 
194
+ if($nowrapper == false) $output .= '<div class="g-single a-'.$selected[$banner_id]->id.'">';
195
  $output .= $before.adrotate_ad_output($selected[$banner_id]->id, $group->id, $selected[$banner_id]->bannercode, $selected[$banner_id]->tracker, $selected[$banner_id]->link, $image, $selected[$banner_id]->responsive).$after;
196
+ if($nowrapper == false) $output .= '</div>';
197
 
198
  if($adrotate_config['stats'] == 1){
199
  adrotate_count_impression($selected[$banner_id]->id, $group->id, 0);
200
  }
201
  }
202
 
203
+ if($nowrapper == false AND $group->modus < 1) $output .= '</div>';
204
 
205
  unset($selected);
206
  } else {
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
  $group_array = array();
238
  foreach($ids as $id) {
239
  $pages = explode(",", $id->page);
240
+ if(!is_array($pages)) $pages = array();
241
+
242
  if(in_array($post->ID, $pages)) {
243
  $group_array[$id->id] = array('location' => $id->page_loc, 'paragraph' => $id->page_par, 'pages' => $pages);
244
  }
291
  }
292
 
293
  // Adverts inside the content
294
+ if($group_array[$group_id]['location'] == 4 AND $key == 0) {
295
+ preg_match_all("/(?:.*?)<p[^>]*>(?:.*?)<\/p>(?:<\/[a-z]*?>)*/is", $post_content, $paragraphs);
296
+ // $paragraphs = explode("</p>", $post_content);
297
+
298
  $par = 1;
299
  $post_content = '';
300
+ foreach($paragraphs[0] as &$paragraph) {
301
+ // foreach($paragraphs as &$paragraph) {
302
  if($par == $group_array[$group_id]['paragraph']
303
  OR ($par == 2 AND $group_array[$group_id]['paragraph'] == 20)
304
  OR ($par == 3 AND $group_array[$group_id]['paragraph'] == 30)
305
  OR ($par == 4 AND $group_array[$group_id]['paragraph'] == 40)) {
306
+ $paragraph .= adrotate_group($group_id);
307
 
308
+ $par++;
309
  if($group_array[$group_id]['paragraph'] > 1 AND $group_array[$group_id]['paragraph'] < 10) {
310
  $par = 1;
 
 
311
  }
312
  } else {
313
  $par++;
314
  }
315
  $post_content .= $paragraph;
316
+ unset($paragraph);
317
  }
318
  }
319
  }
337
 
338
  if(is_single()) {
339
  // Inject ads into posts in specified category
340
+ $ids = $wpdb->get_results("SELECT `id`, `cat`, `cat_loc`, `cat_par` FROM `{$wpdb->prefix}adrotate_groups` WHERE `cat_loc` > 0;");
341
  $wp_categories = get_terms('category', array('fields' => 'ids'));
342
 
343
  $group_array = array();
344
  foreach($ids as $id) {
345
  $categories = explode(",", $id->cat);
346
+ if(!is_array($categories)) $categories = array();
347
+
348
+ foreach($wp_categories as &$value) {
349
+ if(in_array($value, $categories)) {
350
  $group_array[$id->id] = array('location' => $id->cat_loc, 'paragraph' => $id->cat_par, 'categories' => $categories);
351
  }
352
  }
398
  }
399
 
400
  // Adverts inside the content
401
+ if($group_array[$group_id]['location'] == 4 AND $key == 0) {
402
+ preg_match_all("/(?:.*?)<p[^>]*>(?:.*?)<\/p>(?:<\/[a-z]*?>)*/is", $post_content, $paragraphs);
403
+ // $paragraphs = explode("</p>", $post_content);
404
+
405
  $par = 1;
406
  $post_content = '';
407
+ foreach($paragraphs[0] as &$paragraph) {
408
+ // foreach($paragraphs as &$paragraph) {
409
  if($par == $group_array[$group_id]['paragraph']
410
  OR ($par == 2 AND $group_array[$group_id]['paragraph'] == 20)
411
  OR ($par == 3 AND $group_array[$group_id]['paragraph'] == 30)
412
  OR ($par == 4 AND $group_array[$group_id]['paragraph'] == 40)) {
413
+ $paragraph .= adrotate_group($group_id);
414
 
415
+ $par++;
416
  if($group_array[$group_id]['paragraph'] > 1 AND $group_array[$group_id]['paragraph'] < 10) {
417
  $par = 1;
 
 
418
  }
419
  } else {
420
  $par++;
421
  }
422
  $post_content .= $paragraph;
423
+ unset($paragraph);
424
  }
425
  }
426
  }
458
  if($banner_id) {
459
  $now = adrotate_now();
460
 
461
+ $banner = $wpdb->get_row($wpdb->prepare("SELECT * FROM `{$wpdb->prefix}adrotate` WHERE `id` = %d;", $banner_id));
462
 
463
  if($adrotate_debug['general'] == true) {
464
  echo "<p><strong>[DEBUG][adrotate_preview()] Ad information</strong><pre>";
501
 
502
  if($adrotate_config['stats'] == 1 AND $tracker == "Y") { // Internal tracker
503
  $banner_output = str_replace('<a ', '<a data-track="'.adrotate_hash($id, $group, $blog_id).'" ', $banner_output);
504
+ preg_match_all('/<a[^>](?:.*?)>/i', $banner_output, $matches, PREG_SET_ORDER);
505
  if(isset($matches[0])) {
506
  foreach($matches[0] as $value) {
507
  if(preg_match('/<a[^>]+class=\"(.+?)\"[^>]*>/i', $value, $regs)) {
521
  }
522
 
523
  // Add Responsive classes
524
+ preg_match_all('/<img[^>](?:.*?)>/i', $banner_output, $matches, PREG_SET_ORDER);
525
  if(isset($matches[0])) {
526
  foreach($matches[0] as $value) {
527
+ if(preg_match('/<img[^>]+class=\"(?:.+?)\"[^>]*>/i', $value, $regs)) {
528
  $result = $regs[1];
529
  if($responsive == 'Y') $result .= " responsive";
530
  $result = trim($result);
596
  function adrotate_custom_javascript() {
597
  global $wpdb, $adrotate_config;
598
 
599
+ $groups = $wpdb->get_results("SELECT `id`, `adspeed` FROM `{$wpdb->prefix}adrotate_groups` WHERE `name` != '' AND `modus` = 1 ORDER BY `id` ASC;");
600
  if($groups) {
601
  $output_js = "jQuery(document).ready(function(){\n";
602
  $output_js .= "if(jQuery.fn.gslider) {\n";
640
 
641
  $output = "\n<!-- This site is using AdRotate v".ADROTATE_DISPLAY." to display their advertisements - https://ajdg.solutions/products/adrotate-for-wordpress/ -->\n";
642
 
643
+ $groups = $wpdb->get_results("SELECT `id`, `modus`, `gridrows`, `gridcolumns`, `adwidth`, `adheight`, `admargin`, `align` FROM `{$wpdb->prefix}adrotate_groups` WHERE `name` != '' ORDER BY `id` ASC;");
644
  if($groups) {
645
  $output_css = "\t.g { margin:0px; padding:0px; overflow:hidden; line-height:1; zoom:1; }\n";
646
  $output_css .= "\t.g img { height:auto; }\n";
adrotate-setup.php CHANGED
@@ -401,6 +401,7 @@ function adrotate_database_install() {
401
  `image` varchar(255) NOT NULL,
402
  `link` longtext NOT NULL,
403
  `tracker` varchar(5) NOT NULL default 'N',
 
404
  `responsive` varchar(5) NOT NULL default 'N',
405
  `type` varchar(10) NOT NULL default '0',
406
  `weight` int(3) NOT NULL default '6',
@@ -427,6 +428,7 @@ function adrotate_database_install() {
427
  `page` longtext NOT NULL,
428
  `page_loc` tinyint(1) NOT NULL default '0',
429
  `page_par` tinyint(2) NOT NULL default '0',
 
430
  `geo` tinyint(1) NOT NULL default '0',
431
  `wrapper_before` longtext NOT NULL,
432
  `wrapper_after` longtext NOT NULL,
@@ -739,6 +741,13 @@ function adrotate_database_upgrade() {
739
  adrotate_del_column("{$wpdb->prefix}adrotate", 'ibudget');
740
  }
741
 
 
 
 
 
 
 
 
742
  update_option("adrotate_db_version", array('current' => ADROTATE_DB_VERSION, 'previous' => $adrotate_db_version['current']));
743
  }
744
 
401
  `image` varchar(255) NOT NULL,
402
  `link` longtext NOT NULL,
403
  `tracker` varchar(5) NOT NULL default 'N',
404
+ `mobile` varchar(5) NOT NULL default 'N',
405
  `responsive` varchar(5) NOT NULL default 'N',
406
  `type` varchar(10) NOT NULL default '0',
407
  `weight` int(3) NOT NULL default '6',
428
  `page` longtext NOT NULL,
429
  `page_loc` tinyint(1) NOT NULL default '0',
430
  `page_par` tinyint(2) NOT NULL default '0',
431
+ `mobile` tinyint(1) NOT NULL default '0',
432
  `geo` tinyint(1) NOT NULL default '0',
433
  `wrapper_before` longtext NOT NULL,
434
  `wrapper_after` longtext NOT NULL,
741
  adrotate_del_column("{$wpdb->prefix}adrotate", 'ibudget');
742
  }
743
 
744
+ // Database: 51
745
+ // AdRotate: 3.12.5b2
746
+ if($adrotate_db_version['current'] < 51) {
747
+ adrotate_add_column("{$wpdb->prefix}adrotate", 'mobile', 'varchar(5) NOT NULL default \'N\' AFTER `tracker`');
748
+ adrotate_add_column("{$wpdb->prefix}adrotate_groups", 'mobile', 'tinyint(1) NOT NULL default \'0\' AFTER `page_par`');
749
+ }
750
+
751
  update_option("adrotate_db_version", array('current' => ADROTATE_DB_VERSION, 'previous' => $adrotate_db_version['current']));
752
  }
753
 
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.4
9
  License: GPLv3
10
  */
11
 
@@ -20,9 +20,9 @@ License: GPLv3
20
  ------------------------------------------------------------------------------------ */
21
 
22
  /*--- AdRotate values ---------------------------------------*/
23
- define("ADROTATE_DISPLAY", '3.11.4');
24
  define("ADROTATE_VERSION", 379);
25
- define("ADROTATE_DB_VERSION", 50);
26
  define("ADROTATE_FOLDER", 'adrotate');
27
  /*-----------------------------------------------------------*/
28
 
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.5
9
  License: GPLv3
10
  */
11
 
20
  ------------------------------------------------------------------------------------ */
21
 
22
  /*--- AdRotate values ---------------------------------------*/
23
+ define("ADROTATE_DISPLAY", '3.11.5');
24
  define("ADROTATE_VERSION", 379);
25
+ define("ADROTATE_DB_VERSION", 51);
26
  define("ADROTATE_FOLDER", 'adrotate');
27
  /*-----------------------------------------------------------*/
28
 
dashboard/adrotate-info.php CHANGED
@@ -54,6 +54,7 @@ $banners = $wpdb->get_var("SELECT COUNT(*) FROM `".$wpdb->prefix."adrotate` WHER
54
  $groups = $wpdb->get_var("SELECT COUNT(*) FROM `".$wpdb->prefix."adrotate_groups` WHERE `name` != '';");
55
  $queued = $wpdb->get_var("SELECT COUNT(*) FROM `".$wpdb->prefix."adrotate` WHERE `type` = 'queue';");
56
  $data = get_option("adrotate_advert_status");
 
57
  ?>
58
 
59
  <div id="dashboard-widgets-wrap">
@@ -88,6 +89,7 @@ $data = get_option("adrotate_advert_status");
88
  </tr>
89
  </tbody>
90
 
 
91
  <thead>
92
  <tr class="first">
93
  <td colspan="2"><strong><?php _e('The last few days', 'adrotate'); ?></strong></td>
@@ -126,6 +128,7 @@ $data = get_option("adrotate_advert_status");
126
  </td>
127
  </tr>
128
  </tbody>
 
129
 
130
  <thead>
131
  <tr class="first">
@@ -137,7 +140,7 @@ $data = get_option("adrotate_advert_status");
137
  <tr class="first">
138
  <td colspan="2">
139
  <p><center><?php _e('Your gift helps ensure the continued development of AdRotate!', 'adrotate'); ?><br /><?php _e("Can't donate money? Consider writing a review instead. Thank you!", 'adrotate'); ?></center></p>
140
- <p><center><a class="button-primary" href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypal%40ajdg%2enet&item_name=AdRotate%20Donation&item_number=000&no_shipping=0&no_note=0&tax=0&currency_code=EUR&bn=PP%2dDonationsBF&charset=UTF%2d8&amount=5" target="_blank">Donate &euro; 5 via Paypal</a> <a class="button" target="_blank" href="https://wordpress.org/support/view/plugin-reviews/adrotate?rate=5#postform">Write review on WordPress.org</a></center></p>
141
  </td>
142
  </tr>
143
  </tbody>
@@ -148,14 +151,31 @@ $data = get_option("adrotate_advert_status");
148
  <h3><?php _e('AdRotate News and Developer Blog', 'adrotate'); ?></h3>
149
  <div class="postbox-adrotate">
150
  <div class="inside">
151
- <?php wp_widget_rss_output(array(
152
- 'url' => array('http://meandmymac.net/feed/', 'http://ajdg.solutions/feed/'),
 
153
  'title' => 'AdRotate Development News',
154
  'items' => 4,
155
  'show_summary' => 1,
156
  'show_author' => 0,
157
  'show_date' => 1)
158
- ); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
159
  </div>
160
  </div>
161
 
54
  $groups = $wpdb->get_var("SELECT COUNT(*) FROM `".$wpdb->prefix."adrotate_groups` WHERE `name` != '';");
55
  $queued = $wpdb->get_var("SELECT COUNT(*) FROM `".$wpdb->prefix."adrotate` WHERE `type` = 'queue';");
56
  $data = get_option("adrotate_advert_status");
57
+ $adrotate_config = get_option('adrotate_config');
58
  ?>
59
 
60
  <div id="dashboard-widgets-wrap">
89
  </tr>
90
  </tbody>
91
 
92
+ <?php if($adrotate_config['stats'] == 1) { ?>
93
  <thead>
94
  <tr class="first">
95
  <td colspan="2"><strong><?php _e('The last few days', 'adrotate'); ?></strong></td>
128
  </td>
129
  </tr>
130
  </tbody>
131
+ <?php } ?>
132
 
133
  <thead>
134
  <tr class="first">
140
  <tr class="first">
141
  <td colspan="2">
142
  <p><center><?php _e('Your gift helps ensure the continued development of AdRotate!', 'adrotate'); ?><br /><?php _e("Can't donate money? Consider writing a review instead. Thank you!", 'adrotate'); ?></center></p>
143
+ <p><center><a class="button-primary" href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypal%40ajdg%2enet&item_name=AdRotate%20Donation&no_shipping=0&no_note=0&tax=0&currency_code=EUR&bn=PP%2dDonationsBF&charset=UTF%2d8&amount=5" target="_blank">Donate &euro; 5 via Paypal</a> <a class="button" target="_blank" href="https://wordpress.org/support/view/plugin-reviews/adrotate?rate=5#postform">Write review on WordPress.org</a></center></p>
144
  </td>
145
  </tr>
146
  </tbody>
151
  <h3><?php _e('AdRotate News and Developer Blog', 'adrotate'); ?></h3>
152
  <div class="postbox-adrotate">
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,
160
  'show_author' => 0,
161
  'show_date' => 1)
162
+ );
163
+ ?>
164
+
165
+ <table width="100%">
166
+ <thead>
167
+ <tr class="first">
168
+ <td colspan="2"><strong><?php _e('Get notified of AdRotate updates via Pushover', 'adrotate'); ?></strong></td>
169
+ </tr>
170
+ </thead>
171
+
172
+ <tbody>
173
+ <tr class="first">
174
+ <td width="50%" class="first b"><p><center><a class="pushover-button" target="_blank" href="https://pushover.net/subscribe/AdRotateUpdates-R5GYqJtGHNcwsQY">Subscribe with Pushover</a></center></p></td>
175
+ <td class="b"><p><?php _e('Pushover is a push notification service for iOS and Android!', 'adrotate'); ?> <a href="https://www.pushover.net/" target="_blank">Pushover website</a>.</p></td>
176
+ </tr>
177
+ </tbody>
178
+ </table>
179
  </div>
180
  </div>
181
 
dashboard/publisher/adrotate-ads-edit.php CHANGED
@@ -10,9 +10,9 @@
10
  ------------------------------------------------------------------------------------ */
11
 
12
  if(!$ad_edit_id) {
13
- $edit_id = $wpdb->get_var("SELECT `id` FROM `".$wpdb->prefix."adrotate` WHERE `type` = 'empty' ORDER BY `id` DESC LIMIT 1;");
14
  if($edit_id == 0) {
15
- $wpdb->insert($wpdb->prefix."adrotate", array('title' => '', 'bannercode' => '', 'thetime' => $now, 'updated' => $now, 'author' => $current_user->user_login, 'imagetype' => 'dropdown', 'image' => '', 'link' => '', 'tracker' => 'N', 'responsive' => 'N', 'type' => 'empty', 'weight' => 6, 'sortorder' => 0, 'budget' => 0, 'crate' => 0, 'irate' => 0, 'cities' => serialize(array()), 'countries' => serialize(array())));
16
  $edit_id = $wpdb->insert_id;
17
  $wpdb->insert($wpdb->prefix.'adrotate_schedule', array('name' => 'Schedule for ad '.$edit_id, 'starttime' => $now, 'stoptime' => $in84days, 'maxclicks' => 0, 'maximpressions' => 0));
18
  $schedule_id = $wpdb->insert_id;
@@ -21,10 +21,10 @@ if(!$ad_edit_id) {
21
  $ad_edit_id = $edit_id;
22
  }
23
 
24
- $edit_banner = $wpdb->get_row("SELECT * FROM `".$wpdb->prefix."adrotate` WHERE `id` = '$ad_edit_id';");
25
- $groups = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."adrotate_groups` WHERE `name` != '' ORDER BY `sortorder` ASC, `id` ASC;");
26
- $schedules = $wpdb->get_row("SELECT `".$wpdb->prefix."adrotate_schedule`.`id`, `starttime`, `stoptime`, `maxclicks`, `maximpressions` FROM `".$wpdb->prefix."adrotate_schedule`, `".$wpdb->prefix."adrotate_linkmeta` WHERE `ad` = $edit_banner->id AND `group` = 0 AND `user` = 0 AND `schedule` = `".$wpdb->prefix."adrotate_schedule`.`id` ORDER BY `".$wpdb->prefix."adrotate_schedule`.`id` ASC LIMIT 1;");
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'));
@@ -112,13 +112,13 @@ if($edit_banner->imagetype == "field") {
112
  <table class="widefat" style="margin-top: .5em">
113
  <tbody>
114
  <tr>
115
- <th width="15%"><?php _e('Title:', 'adrotate'); ?></th>
116
  <td colspan="2">
117
  <label for="adrotate_title"><input tabindex="1" name="adrotate_title" type="text" size="50" class="search-input" value="<?php echo stripslashes($edit_banner->title);?>" autocomplete="off" /></label>
118
  </td>
119
  </tr>
120
  <tr>
121
- <th valign="top"><?php _e('AdCode:', 'adrotate'); ?></th>
122
  <td>
123
  <label for="adrotate_bannercode"><textarea tabindex="2" id="adrotate_bannercode" name="adrotate_bannercode" cols="65" rows="10"><?php echo stripslashes($edit_banner->bannercode); ?></textarea></label>
124
  </td>
@@ -130,13 +130,13 @@ if($edit_banner->imagetype == "field") {
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'); ?>" />
@@ -153,7 +153,7 @@ if($edit_banner->imagetype == "field") {
153
  </tr>
154
  <?php if($adrotate_config['stats'] > 0) { ?>
155
  <tr>
156
- <th width="15%" valign="top"><?php _e('Statistics:', 'adrotate'); ?></th>
157
  <td colspan="2">
158
  <label for="adrotate_tracker"><input tabindex="6" type="checkbox" name="adrotate_tracker" <?php if($edit_banner->tracker == 'Y') { ?>checked="checked" <?php } ?> /> <?php _e('Enable click and impression tracking for this advert.', 'adrotate'); ?> <br />
159
  <em><?php _e('Note: Clicktracking does not work for Javascript adverts such as those provided by Google AdSense/DFP/DoubleClick. Flash adverts are not always supported.', 'adrotate'); ?></em>
@@ -162,7 +162,7 @@ if($edit_banner->imagetype == "field") {
162
  </tr>
163
  <?php } ?>
164
  <tr>
165
- <th><?php _e('Activate:', 'adrotate'); ?></th>
166
  <td colspan="2">
167
  <label for="adrotate_active">
168
  <select tabindex="7" name="adrotate_active">
@@ -200,13 +200,13 @@ if($edit_banner->imagetype == "field") {
200
  <table class="widefat" style="margin-top: .5em">
201
  <tbody>
202
  <tr>
203
- <th width="15%"><?php _e('Widget:', 'adrotate'); ?></th>
204
  <td colspan="3"><?php _e('Drag the AdRotate widget to the sidebar you want it in, select "Single Ad" and enter ID', 'adrotate'); ?> "<?php echo $edit_banner->id; ?>".</td>
205
  </tr>
206
  <tr>
207
- <th width="15%"><?php _e('In a post or page:', 'adrotate'); ?></th>
208
  <td>[adrotate banner="<?php echo $edit_banner->id; ?>"]</td>
209
- <th width="15%"><?php _e('Directly in a theme:', 'adrotate'); ?></th>
210
  <td>&lt;?php echo adrotate_ad(<?php echo $edit_banner->id; ?>); ?&gt;</td>
211
  </tr>
212
  </tbody>
@@ -216,7 +216,7 @@ if($edit_banner->imagetype == "field") {
216
  <table class="widefat" style="margin-top: .5em">
217
  <tbody>
218
  <tr>
219
- <th width="15%"><?php _e('Start date (day/month/year):', 'adrotate'); ?></th>
220
  <td>
221
  <label for="adrotate_sday">
222
  <input tabindex="9" name="adrotate_sday" class="search-input" type="text" size="4" maxlength="2" value="<?php echo $sday;?>" /> /
@@ -237,7 +237,7 @@ if($edit_banner->imagetype == "field") {
237
  <input tabindex="11" name="adrotate_syear" class="search-input" type="text" size="4" maxlength="4" value="<?php echo $syear;?>" />&nbsp;&nbsp;&nbsp;
238
  </label>
239
  </td>
240
- <th width="15%"><?php _e('End date (day/month/year):', 'adrotate'); ?></th>
241
  <td>
242
  <label for="adrotate_eday">
243
  <input tabindex="12" name="adrotate_eday" class="search-input" type="text" size="4" maxlength="2" value="<?php echo $eday;?>" /> /
@@ -260,14 +260,14 @@ if($edit_banner->imagetype == "field") {
260
  </td>
261
  </tr>
262
  <tr>
263
- <th><?php _e('Start time (hh:mm):', 'adrotate'); ?></th>
264
  <td>
265
  <label for="adrotate_sday">
266
  <input tabindex="15" name="adrotate_shour" class="search-input" type="text" size="2" maxlength="4" value="<?php echo $shour;?>" /> :
267
  <input tabindex="16" name="adrotate_sminute" class="search-input" type="text" size="2" maxlength="4" value="<?php echo $sminute;?>" />
268
  </label>
269
  </td>
270
- <th><?php _e('End time (hh:mm):', 'adrotate'); ?></th>
271
  <td>
272
  <label for="adrotate_eday">
273
  <input tabindex="17" name="adrotate_ehour" class="search-input" type="text" size="2" maxlength="4" value="<?php echo $ehour;?>" /> :
@@ -277,15 +277,15 @@ if($edit_banner->imagetype == "field") {
277
  </tr>
278
  <?php if($adrotate_config['stats'] == 1) { ?>
279
  <tr>
280
- <th><?php _e('Maximum Clicks:', 'adrotate'); ?></th>
281
  <td><input tabindex="19" name="adrotate_maxclicks" type="text" size="5" class="search-input" autocomplete="off" value="<?php echo $schedules->maxclicks;?>" /> <em><?php _e('Leave empty or 0 to skip this.', 'adrotate'); ?></em></td>
282
- <th><?php _e('Maximum Impressions:', 'adrotate'); ?></th>
283
  <td><input tabindex="20" name="adrotate_maxshown" type="text" size="5" class="search-input" autocomplete="off" value="<?php echo $schedules->maximpressions;?>" /> <em><?php _e('Leave empty or 0 to skip this.', 'adrotate'); ?></em></td>
284
  </tr>
285
  <?php } ?>
286
  <tr>
287
- <th valign="top">Important:</th>
288
- <td colspan="3"><em><?php _e('Time uses a 24 hour clock. When you\'re used to the AM/PM system keep this in mind: If the start or end time is after lunch, add 12 hours. 2PM is 14:00 hours. 6AM is 6:00 hours.', 'adrotate'); ?><br /><?php _e('The maximum clicks and impressions are measured over the set schedule only. Every schedule can have it\'s own limit!', 'adrotate'); ?></em></td>
289
  </tr>
290
  </tbody>
291
  </table>
@@ -301,7 +301,7 @@ if($edit_banner->imagetype == "field") {
301
  <table class="widefat" style="margin-top: .5em">
302
  <tbody>
303
  <tr>
304
- <th width="15%" valign="top"><?php _e('Responsive:', 'adrotate'); ?></th>
305
  <td colspan="3">
306
  <label for="adrotate_responsive"><input tabindex="22" type="checkbox" name="adrotate_responsive" <?php if($edit_banner->responsive == 'Y') { ?>checked="checked" <?php } ?> /> <?php _e('Enable responsive support for this advert.', 'adrotate'); ?></label><br />
307
  <em><?php _e('Upload your images to the banner folder and make sure the filename is in the following format; "imagename.full.ext". A full set of sized images is strongly recommended.', 'adrotate'); ?></em><br />
@@ -310,7 +310,7 @@ if($edit_banner->imagetype == "field") {
310
  </td>
311
  </tr>
312
  <tr>
313
- <th valign="top"><?php _e('Weight:', 'adrotate'); ?><br /><em><?php _e('AdRotate Pro only', 'adrotate'); ?></em></th>
314
  <td colspan="3">
315
  <label for="adrotate_weight">
316
  &nbsp;<input type="radio" name="adrotate_weight" value="2" disabled />&nbsp;&nbsp;&nbsp;2, <?php _e('Barely visible', 'adrotate'); ?><br />
@@ -322,7 +322,7 @@ if($edit_banner->imagetype == "field") {
322
  </td>
323
  </tr>
324
  <tr>
325
- <th><?php _e('Sortorder:', 'adrotate'); ?></th>
326
  <td colspan="3">
327
  <label for="adrotate_sortorder"><input tabindex="23" name="adrotate_sortorder" type="text" size="5" class="search-input" autocomplete="off" value="<?php echo $edit_banner->sortorder;?>" /> <em><?php _e('For administrative purposes set a sortorder.', 'adrotate'); ?> <?php _e('Leave empty or 0 to skip this. Will default to ad id.', 'adrotate'); ?></em></label>
328
  </td>
@@ -336,14 +336,14 @@ if($edit_banner->imagetype == "field") {
336
  <table class="widefat" style="margin-top: .5em">
337
  <tbody>
338
  <tr>
339
- <th width="15%" valign="top"><?php _e('Cities/States:', 'adrotate'); ?></strong></th>
340
  <td colspan="2">
341
  <textarea name="adrotate_geo_cities" cols="85" rows="3" disabled>Amsterdam, Noord Holland, New York, California, Tokyo, London</textarea><br />
342
  <p><em><?php _e('A comma separated list of cities (or the Metro ID) and/or states (Also the states ISO codes are supported)', 'adrotate'); ?> (Alkmaar, Philadelphia, Melbourne, ...)<br /><?php _e('AdRotate does not check the validity of names so make sure you spell them correctly!', 'adrotate'); ?></em></p>
343
  </td>
344
  </tr>
345
  <tr>
346
- <th valign="top"><?php _e('Countries:', 'adrotate'); ?></strong></th>
347
  <td colspan="2">
348
  <label for="adrotate_geo_countries">
349
  <div class="adrotate-select">
@@ -379,13 +379,13 @@ if($edit_banner->imagetype == "field") {
379
  <table class="widefat" style="margin-top: .5em">
380
  <tbody>
381
  <tr>
382
- <th width="15%"><?php _e('Widget:', 'adrotate'); ?></th>
383
  <td colspan="3"><?php _e('Drag the AdRotate widget to the sidebar you want it in, select "Single Ad" and enter ID', 'adrotate'); ?> "<?php echo $edit_banner->id; ?>".</td>
384
  </tr>
385
  <tr>
386
- <th width="15%"><?php _e('In a post or page:', 'adrotate'); ?></th>
387
  <td>[adrotate banner="<?php echo $edit_banner->id; ?>"]</td>
388
- <th width="15%"><?php _e('Directly in a theme:', 'adrotate'); ?></th>
389
  <td>&lt;?php echo adrotate_ad(<?php echo $edit_banner->id; ?>); ?&gt;</td>
390
  </tr>
391
  </tbody>
@@ -418,7 +418,7 @@ if($edit_banner->imagetype == "field") {
418
  if($group->cat_loc > 0 OR $group->page_loc > 0) $modus[] = __('Post Injection', 'adrotate');
419
  if($group->geo == 1 AND $adrotate_config['enable_geo'] > 0) $modus[] = __('Geolocation', 'adrotate');
420
 
421
- $ads_in_group = $wpdb->get_var("SELECT COUNT(*) FROM `".$wpdb->prefix."adrotate_linkmeta` WHERE `group` = ".$group->id." AND `user` = 0 AND `schedule` = 0;");
422
  $class = ('alternate' != $class) ? 'alternate' : ''; ?>
423
  <tr id='group-<?php echo $group->id; ?>' class=' <?php echo $class; ?>'>
424
  <th class="check-column" width="2%"><input type="checkbox" name="groupselect[]" value="<?php echo $group->id; ?>" <?php if(in_array($group->id, $meta_array)) echo "checked"; ?> /></th>
10
  ------------------------------------------------------------------------------------ */
11
 
12
  if(!$ad_edit_id) {
13
+ $edit_id = $wpdb->get_var("SELECT `id` FROM `{$wpdb->prefix}adrotate` WHERE `type` = 'empty' ORDER BY `id` DESC LIMIT 1;");
14
  if($edit_id == 0) {
15
+ $wpdb->insert($wpdb->prefix."adrotate", array('title' => '', 'bannercode' => '', 'thetime' => $now, 'updated' => $now, 'author' => $current_user->user_login, 'imagetype' => 'dropdown', 'image' => '', 'link' => '', 'tracker' => 'N', 'mobile' => 'N', 'responsive' => 'N', 'type' => 'empty', 'weight' => 6, 'sortorder' => 0, 'budget' => 0, 'crate' => 0, 'irate' => 0, 'cities' => serialize(array()), 'countries' => serialize(array())));
16
  $edit_id = $wpdb->insert_id;
17
  $wpdb->insert($wpdb->prefix.'adrotate_schedule', array('name' => 'Schedule for ad '.$edit_id, 'starttime' => $now, 'stoptime' => $in84days, 'maxclicks' => 0, 'maximpressions' => 0));
18
  $schedule_id = $wpdb->insert_id;
21
  $ad_edit_id = $edit_id;
22
  }
23
 
24
+ $edit_banner = $wpdb->get_row("SELECT * FROM `{$wpdb->prefix}adrotate` WHERE `id` = '$ad_edit_id';");
25
+ $groups = $wpdb->get_results("SELECT * FROM `{$wpdb->prefix}adrotate_groups` WHERE `name` != '' ORDER BY `sortorder` ASC, `id` ASC;");
26
+ $schedules = $wpdb->get_row("SELECT `{$wpdb->prefix}adrotate_schedule`.`id`, `starttime`, `stoptime`, `maxclicks`, `maximpressions` FROM `{$wpdb->prefix}adrotate_schedule`, `{$wpdb->prefix}adrotate_linkmeta` WHERE `ad` = $edit_banner->id AND `group` = 0 AND `user` = 0 AND `schedule` = `{$wpdb->prefix}adrotate_schedule`.`id` ORDER BY `{$wpdb->prefix}adrotate_schedule`.`id` ASC LIMIT 1;");
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'));
112
  <table class="widefat" style="margin-top: .5em">
113
  <tbody>
114
  <tr>
115
+ <th width="15%"><?php _e('Title', 'adrotate'); ?></th>
116
  <td colspan="2">
117
  <label for="adrotate_title"><input tabindex="1" name="adrotate_title" type="text" size="50" class="search-input" value="<?php echo stripslashes($edit_banner->title);?>" autocomplete="off" /></label>
118
  </td>
119
  </tr>
120
  <tr>
121
+ <th valign="top"><?php _e('AdCode', 'adrotate'); ?></th>
122
  <td>
123
  <label for="adrotate_bannercode"><textarea tabindex="2" id="adrotate_bannercode" name="adrotate_bannercode" cols="65" rows="10"><?php echo stripslashes($edit_banner->bannercode); ?></textarea></label>
124
  </td>
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'); ?>" />
153
  </tr>
154
  <?php if($adrotate_config['stats'] > 0) { ?>
155
  <tr>
156
+ <th width="15%" valign="top"><?php _e('Statistics', 'adrotate'); ?></th>
157
  <td colspan="2">
158
  <label for="adrotate_tracker"><input tabindex="6" type="checkbox" name="adrotate_tracker" <?php if($edit_banner->tracker == 'Y') { ?>checked="checked" <?php } ?> /> <?php _e('Enable click and impression tracking for this advert.', 'adrotate'); ?> <br />
159
  <em><?php _e('Note: Clicktracking does not work for Javascript adverts such as those provided by Google AdSense/DFP/DoubleClick. Flash adverts are not always supported.', 'adrotate'); ?></em>
162
  </tr>
163
  <?php } ?>
164
  <tr>
165
+ <th><?php _e('Activate', 'adrotate'); ?></th>
166
  <td colspan="2">
167
  <label for="adrotate_active">
168
  <select tabindex="7" name="adrotate_active">
200
  <table class="widefat" style="margin-top: .5em">
201
  <tbody>
202
  <tr>
203
+ <th width="15%"><?php _e('Widget', 'adrotate'); ?></th>
204
  <td colspan="3"><?php _e('Drag the AdRotate widget to the sidebar you want it in, select "Single Ad" and enter ID', 'adrotate'); ?> "<?php echo $edit_banner->id; ?>".</td>
205
  </tr>
206
  <tr>
207
+ <th width="15%"><?php _e('In a post or page', 'adrotate'); ?></th>
208
  <td>[adrotate banner="<?php echo $edit_banner->id; ?>"]</td>
209
+ <th width="15%"><?php _e('Directly in a theme', 'adrotate'); ?></th>
210
  <td>&lt;?php echo adrotate_ad(<?php echo $edit_banner->id; ?>); ?&gt;</td>
211
  </tr>
212
  </tbody>
216
  <table class="widefat" style="margin-top: .5em">
217
  <tbody>
218
  <tr>
219
+ <th width="15%"><?php _e('Start date (day/month/year)', 'adrotate'); ?></th>
220
  <td>
221
  <label for="adrotate_sday">
222
  <input tabindex="9" name="adrotate_sday" class="search-input" type="text" size="4" maxlength="2" value="<?php echo $sday;?>" /> /
237
  <input tabindex="11" name="adrotate_syear" class="search-input" type="text" size="4" maxlength="4" value="<?php echo $syear;?>" />&nbsp;&nbsp;&nbsp;
238
  </label>
239
  </td>
240
+ <th width="15%"><?php _e('End date (day/month/year)', 'adrotate'); ?></th>
241
  <td>
242
  <label for="adrotate_eday">
243
  <input tabindex="12" name="adrotate_eday" class="search-input" type="text" size="4" maxlength="2" value="<?php echo $eday;?>" /> /
260
  </td>
261
  </tr>
262
  <tr>
263
+ <th><?php _e('Start time (hh:mm)', 'adrotate'); ?></th>
264
  <td>
265
  <label for="adrotate_sday">
266
  <input tabindex="15" name="adrotate_shour" class="search-input" type="text" size="2" maxlength="4" value="<?php echo $shour;?>" /> :
267
  <input tabindex="16" name="adrotate_sminute" class="search-input" type="text" size="2" maxlength="4" value="<?php echo $sminute;?>" />
268
  </label>
269
  </td>
270
+ <th><?php _e('End time (hh:mm)', 'adrotate'); ?></th>
271
  <td>
272
  <label for="adrotate_eday">
273
  <input tabindex="17" name="adrotate_ehour" class="search-input" type="text" size="2" maxlength="4" value="<?php echo $ehour;?>" /> :
277
  </tr>
278
  <?php if($adrotate_config['stats'] == 1) { ?>
279
  <tr>
280
+ <th><?php _e('Maximum Clicks', 'adrotate'); ?></th>
281
  <td><input tabindex="19" name="adrotate_maxclicks" type="text" size="5" class="search-input" autocomplete="off" value="<?php echo $schedules->maxclicks;?>" /> <em><?php _e('Leave empty or 0 to skip this.', 'adrotate'); ?></em></td>
282
+ <th><?php _e('Maximum Impressions', 'adrotate'); ?></th>
283
  <td><input tabindex="20" name="adrotate_maxshown" type="text" size="5" class="search-input" autocomplete="off" value="<?php echo $schedules->maximpressions;?>" /> <em><?php _e('Leave empty or 0 to skip this.', 'adrotate'); ?></em></td>
284
  </tr>
285
  <?php } ?>
286
  <tr>
287
+ <th valign="top"><?php _e('Important', 'adrotate'); ?></th>
288
+ <td colspan="3"><em><?php _e('Note: Time uses a 24 hour clock. When you are used to the AM/PM system keep this in mind: If the start or end time is after lunch, add 12 hours. 2PM is 14:00 hours. 6AM is 6:00 hours.', 'adrotate'); ?></em></td>
289
  </tr>
290
  </tbody>
291
  </table>
301
  <table class="widefat" style="margin-top: .5em">
302
  <tbody>
303
  <tr>
304
+ <th width="15%" valign="top"><?php _e('Responsive', 'adrotate'); ?></th>
305
  <td colspan="3">
306
  <label for="adrotate_responsive"><input tabindex="22" type="checkbox" name="adrotate_responsive" <?php if($edit_banner->responsive == 'Y') { ?>checked="checked" <?php } ?> /> <?php _e('Enable responsive support for this advert.', 'adrotate'); ?></label><br />
307
  <em><?php _e('Upload your images to the banner folder and make sure the filename is in the following format; "imagename.full.ext". A full set of sized images is strongly recommended.', 'adrotate'); ?></em><br />
310
  </td>
311
  </tr>
312
  <tr>
313
+ <th valign="top"><?php _e('Weight', 'adrotate'); ?><br /><em><?php _e('Available in AdRotate Pro', 'adrotate'); ?></em></th>
314
  <td colspan="3">
315
  <label for="adrotate_weight">
316
  &nbsp;<input type="radio" name="adrotate_weight" value="2" disabled />&nbsp;&nbsp;&nbsp;2, <?php _e('Barely visible', 'adrotate'); ?><br />
322
  </td>
323
  </tr>
324
  <tr>
325
+ <th><?php _e('Sortorder', 'adrotate'); ?></th>
326
  <td colspan="3">
327
  <label for="adrotate_sortorder"><input tabindex="23" name="adrotate_sortorder" type="text" size="5" class="search-input" autocomplete="off" value="<?php echo $edit_banner->sortorder;?>" /> <em><?php _e('For administrative purposes set a sortorder.', 'adrotate'); ?> <?php _e('Leave empty or 0 to skip this. Will default to ad id.', 'adrotate'); ?></em></label>
328
  </td>
336
  <table class="widefat" style="margin-top: .5em">
337
  <tbody>
338
  <tr>
339
+ <th width="15%" valign="top"><?php _e('Cities/States', 'adrotate'); ?></strong></th>
340
  <td colspan="2">
341
  <textarea name="adrotate_geo_cities" cols="85" rows="3" disabled>Amsterdam, Noord Holland, New York, California, Tokyo, London</textarea><br />
342
  <p><em><?php _e('A comma separated list of cities (or the Metro ID) and/or states (Also the states ISO codes are supported)', 'adrotate'); ?> (Alkmaar, Philadelphia, Melbourne, ...)<br /><?php _e('AdRotate does not check the validity of names so make sure you spell them correctly!', 'adrotate'); ?></em></p>
343
  </td>
344
  </tr>
345
  <tr>
346
+ <th valign="top"><?php _e('Countries', 'adrotate'); ?></strong></th>
347
  <td colspan="2">
348
  <label for="adrotate_geo_countries">
349
  <div class="adrotate-select">
379
  <table class="widefat" style="margin-top: .5em">
380
  <tbody>
381
  <tr>
382
+ <th width="15%"><?php _e('Widget', 'adrotate'); ?></th>
383
  <td colspan="3"><?php _e('Drag the AdRotate widget to the sidebar you want it in, select "Single Ad" and enter ID', 'adrotate'); ?> "<?php echo $edit_banner->id; ?>".</td>
384
  </tr>
385
  <tr>
386
+ <th width="15%"><?php _e('In a post or page', 'adrotate'); ?></th>
387
  <td>[adrotate banner="<?php echo $edit_banner->id; ?>"]</td>
388
+ <th width="15%"><?php _e('Directly in a theme', 'adrotate'); ?></th>
389
  <td>&lt;?php echo adrotate_ad(<?php echo $edit_banner->id; ?>); ?&gt;</td>
390
  </tr>
391
  </tbody>
418
  if($group->cat_loc > 0 OR $group->page_loc > 0) $modus[] = __('Post Injection', 'adrotate');
419
  if($group->geo == 1 AND $adrotate_config['enable_geo'] > 0) $modus[] = __('Geolocation', 'adrotate');
420
 
421
+ $ads_in_group = $wpdb->get_var("SELECT COUNT(*) FROM `{$wpdb->prefix}adrotate_linkmeta` WHERE `group` = ".$group->id." AND `user` = 0 AND `schedule` = 0;");
422
  $class = ('alternate' != $class) ? 'alternate' : ''; ?>
423
  <tr id='group-<?php echo $group->id; ?>' class=' <?php echo $class; ?>'>
424
  <th class="check-column" width="2%"><input type="checkbox" name="groupselect[]" value="<?php echo $group->id; ?>" <?php if(in_array($group->id, $meta_array)) echo "checked"; ?> /></th>
dashboard/publisher/adrotate-groups-edit.php CHANGED
@@ -11,9 +11,9 @@
11
  ?>
12
  <?php if(!$group_edit_id) {
13
  $action = "group_new";
14
- $edit_id = $wpdb->get_var("SELECT `id` FROM `".$wpdb->prefix."adrotate_groups` WHERE `name` = '' ORDER BY `id` DESC LIMIT 1;");
15
  if($edit_id == 0) {
16
- $wpdb->insert($wpdb->prefix.'adrotate_groups', array('name' => '', 'modus' => 0, 'fallback' => '0', 'sortorder' => 0, 'cat' => '', 'cat_loc' => 0, 'cat_par' => 0, 'page' => '', 'page_loc' => 0, 'page_par' => 0, 'geo' => 0, 'wrapper_before' => '', 'wrapper_after' => '', 'gridrows' => 2, 'gridcolumns' => 2, 'admargin' => 0, 'admargin_bottom' => 0, 'admargin_left' => 0, 'admargin_right' => 0, 'adwidth' => '125', 'adheight' => '125', 'adspeed' => 6000));
17
  $edit_id = $wpdb->insert_id;
18
  }
19
  $group_edit_id = $edit_id;
@@ -22,10 +22,10 @@
22
  $action = "group_edit";
23
  }
24
 
25
- $edit_group = $wpdb->get_row("SELECT * FROM `".$wpdb->prefix."adrotate_groups` WHERE `id` = '$group_edit_id';");
26
- $groups = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."adrotate_groups` WHERE `name` != '' ORDER BY `id` ASC;");
27
- $ads = $wpdb->get_results("SELECT `id`, `title`, `tracker`, `weight`, `type` FROM `".$wpdb->prefix."adrotate` WHERE (`type` != 'empty' AND `type` != 'a_empty') ORDER BY `id` ASC;");
28
- $linkmeta = $wpdb->get_results("SELECT `ad` FROM `".$wpdb->prefix."adrotate_linkmeta` WHERE `group` = '$group_edit_id' AND `user` = 0;");
29
 
30
  $meta_array = '';
31
  foreach($linkmeta as $meta) {
@@ -48,11 +48,11 @@ if(!is_array($meta_array)) $meta_array = array();
48
  <table class="widefat" style="margin-top: .5em">
49
  <tbody>
50
  <tr>
51
- <th width="15%"><?php _e('ID:', 'adrotate'); ?></th>
52
  <td colspan="2"><?php echo $edit_group->id; ?></td>
53
  </tr>
54
  <tr>
55
- <th width="15%"><?php _e('Name:', 'adrotate'); ?></th>
56
  <td colspan="2">
57
  <label for="adrotate_groupname"><input tabindex="1" name="adrotate_groupname" type="text" class="search-input" size="50" value="<?php echo $edit_group->name; ?>" autocomplete="off" /></label>
58
  </td>
@@ -137,13 +137,13 @@ if(!is_array($meta_array)) $meta_array = array();
137
  <table class="widefat" style="margin-top: .5em">
138
  <tbody>
139
  <tr>
140
- <th width="15%"><?php _e('Widget:', 'adrotate'); ?></th>
141
  <td colspan="3"><?php _e('Drag the AdRotate widget to the sidebar you want it in, select "Group of Ads" and enter ID', 'adrotate'); ?> "<?php echo $edit_group->id; ?>".</td>
142
  </tr>
143
  <tr>
144
- <th width="15%"><?php _e('In a post or page:', 'adrotate'); ?></th>
145
  <td width="35%">[adrotate group="<?php echo $edit_group->id; ?>"]</td>
146
- <th width="15%"><?php _e('Directly in a theme:', 'adrotate'); ?></th>
147
  <td width="35%">&lt;?php echo adrotate_group(<?php echo $edit_group->id; ?>); ?&gt;</td>
148
  </tr>
149
  </tbody>
@@ -158,8 +158,8 @@ if(!is_array($meta_array)) $meta_array = array();
158
  <table class="widefat" style="margin-top: .5em">
159
  <tbody>
160
  <tr>
161
- <th valign="top"><?php _e('Advert Margin', 'adrotate'); ?></strong></th>
162
- <td>
163
  <label for="adrotate_admargin"><input tabindex="9" name="adrotate_admargin" type="text" class="search-input" size="5" value="<?php echo $edit_group->admargin; ?>" autocomplete="off" /> <?php _e('pixel(s)', 'adrotate'); ?>.</label>
164
  </td>
165
  <td colspan="2">
@@ -180,19 +180,29 @@ if(!is_array($meta_array)) $meta_array = array();
180
  <p><em><?php _e('Align the group in your post or page. Using \'center\' may affect your margin setting. Not every theme supports this feature.', 'adrotate'); ?></em></p>
181
  </td>
182
  </tr>
 
 
 
 
 
 
 
 
 
 
183
  <tr>
184
- <th valign="top"><?php _e('Sortorder:', 'adrotate'); ?></th>
185
  <td><label for="adrotate_sortorder"><input tabindex="11" name="adrotate_sortorder" type="text" size="5" class="search-input" autocomplete="off" value="<?php echo $edit_group->sortorder;?>" /></label></td>
186
  <td><em><?php _e('For administrative purposes set a sortorder.', 'adrotate'); ?> <?php _e('Leave empty or 0 to skip this. Will default to group id.', 'adrotate'); ?></em></td>
187
  </tr>
188
  </tbody>
189
  </table>
190
- <center><?php _e('Set up a fallback group and use Geo Location in AdRotate Pro', 'adrotate'); ?> <a href="admin.php?page=adrotate-pro"><?php _e('Upgrade today', 'adrotate'); ?></a>.</center>
191
 
192
  <h3><?php _e('Post Injection', 'adrotate'); ?></h3>
193
  <table class="widefat" style="margin-top: .5em">
194
  <tr>
195
- <th width="15%"><?php _e('Include ads in categories?', 'adrotate'); ?></th>
196
  <td>
197
  <label for="adrotate_cat_location">
198
  <select tabindex="12" name="adrotate_cat_location">
@@ -233,7 +243,7 @@ if(!is_array($meta_array)) $meta_array = array();
233
  </td>
234
  </tr>
235
  <tr>
236
- <th valign="top"><?php _e('Include ads in pages?', 'adrotate'); ?></th>
237
  <td>
238
  <label for="adrotate_page_location">
239
  <select tabindex="14" name="adrotate_page_location">
@@ -280,13 +290,13 @@ if(!is_array($meta_array)) $meta_array = array();
280
  <table class="widefat" style="margin-top: .5em">
281
  <tbody>
282
  <tr>
283
- <th width="15%"><?php _e('Widget:', 'adrotate'); ?></th>
284
  <td colspan="3"><?php _e('Drag the AdRotate widget to the sidebar you want it in, select "Group of Ads" and enter ID', 'adrotate'); ?> "<?php echo $edit_group->id; ?>".</td>
285
  </tr>
286
  <tr>
287
- <th width="15%"><?php _e('In a post or page:', 'adrotate'); ?></th>
288
  <td width="35%">[adrotate group="<?php echo $edit_group->id; ?>"]</td>
289
- <th width="15%"><?php _e('Directly in a theme:', 'adrotate'); ?></th>
290
  <td width="35%">&lt;?php echo adrotate_group(<?php echo $edit_group->id; ?>); ?&gt;</td>
291
  </tr>
292
  </tbody>
@@ -298,11 +308,11 @@ if(!is_array($meta_array)) $meta_array = array();
298
  </p>
299
 
300
  <h3><?php _e('Wrapper code', 'adrotate'); ?></h3>
301
- <p><em><?php _e('Wraps around each ad. HTML/JavaScript allowed, use with care!', 'adrotate'); ?></em></p>
302
  <table class="widefat" style="margin-top: .5em">
303
  <tbody>
304
  <tr>
305
- <th width="15%" valign="top"><?php _e('Before ad', 'adrotate'); ?></strong></th>
306
  <td colspan="2"><textarea tabindex="17" name="adrotate_wrapper_before" cols="65" rows="3"><?php echo stripslashes($edit_group->wrapper_before); ?></textarea></td>
307
  <td width="35%">
308
  <p><strong><?php _e('Example:', 'adrotate'); ?></strong> <em>&lt;span style="background-color:#aaa;"&gt;</em></p>
@@ -310,7 +320,7 @@ if(!is_array($meta_array)) $meta_array = array();
310
  </td>
311
  </tr>
312
  <tr>
313
- <th valign="top"><?php _e('After ad', 'adrotate'); ?></strong></th>
314
  <td colspan="2"><textarea tabindex="18" name="adrotate_wrapper_after" cols="65" rows="3"><?php echo stripslashes($edit_group->wrapper_after); ?></textarea></td>
315
  <td>
316
  <p><strong><?php _e('Example:', 'adrotate'); ?></strong> <em>&lt;/span&gt;</em></p>
@@ -319,7 +329,7 @@ if(!is_array($meta_array)) $meta_array = array();
319
  </tbody>
320
  </table>
321
 
322
- <h3><?php _e('Select Ads', 'adrotate'); ?></h3>
323
  <table class="widefat" style="margin-top: .5em">
324
  <thead>
325
  <tr>
@@ -338,16 +348,16 @@ if(!is_array($meta_array)) $meta_array = array();
338
  <?php if($ads) {
339
  $class = '';
340
  foreach($ads as $ad) {
341
- $stoptime = $wpdb->get_var("SELECT `stoptime` FROM `".$wpdb->prefix."adrotate_schedule`, `".$wpdb->prefix."adrotate_linkmeta` WHERE `ad` = '".$ad->id."' AND `schedule` = `".$wpdb->prefix."adrotate_schedule`.`id` ORDER BY `stoptime` DESC LIMIT 1;");
342
 
343
  if($adrotate_config['stats'] == 1) {
344
  $stats = adrotate_stats($ad->id);
345
  }
346
 
347
  $errorclass = '';
348
- if($ad->type == 'error') $errorclass = ' row_error';
349
- if($ad->type == 'expired') $errorclass = ' row_inactive';
350
- if($ad->type == '2days') $errorclass = ' row_urgent';
351
 
352
  $class = ('alternate' != $class) ? 'alternate' : '';
353
  $class = ($errorclass != '') ? $errorclass : $class;
11
  ?>
12
  <?php if(!$group_edit_id) {
13
  $action = "group_new";
14
+ $edit_id = $wpdb->get_var("SELECT `id` FROM `{$wpdb->prefix}adrotate_groups` WHERE `name` = '' ORDER BY `id` DESC LIMIT 1;");
15
  if($edit_id == 0) {
16
+ $wpdb->insert($wpdb->prefix.'adrotate_groups', array('name' => '', 'modus' => 0, 'fallback' => '0', 'sortorder' => 0, 'cat' => '', 'cat_loc' => 0, 'cat_par' => 0, 'page' => '', 'page_loc' => 0, 'page_par' => 0, 'mobile' => 0, 'geo' => 0, 'wrapper_before' => '', 'wrapper_after' => '', 'gridrows' => 2, 'gridcolumns' => 2, 'admargin' => 0, 'admargin_bottom' => 0, 'admargin_left' => 0, 'admargin_right' => 0, 'adwidth' => '125', 'adheight' => '125', 'adspeed' => 6000));
17
  $edit_id = $wpdb->insert_id;
18
  }
19
  $group_edit_id = $edit_id;
22
  $action = "group_edit";
23
  }
24
 
25
+ $edit_group = $wpdb->get_row("SELECT * FROM `{$wpdb->prefix}adrotate_groups` WHERE `id` = '$group_edit_id';");
26
+ $groups = $wpdb->get_results("SELECT * FROM `{$wpdb->prefix}adrotate_groups` WHERE `name` != '' ORDER BY `id` ASC;");
27
+ $ads = $wpdb->get_results("SELECT `id`, `title`, `tracker`, `weight`, `type` FROM `{$wpdb->prefix}adrotate` WHERE (`type` != 'empty' AND `type` != 'a_empty') ORDER BY `id` ASC;");
28
+ $linkmeta = $wpdb->get_results("SELECT `ad` FROM `{$wpdb->prefix}adrotate_linkmeta` WHERE `group` = '$group_edit_id' AND `user` = 0;");
29
 
30
  $meta_array = '';
31
  foreach($linkmeta as $meta) {
48
  <table class="widefat" style="margin-top: .5em">
49
  <tbody>
50
  <tr>
51
+ <th width="15%"><?php _e('ID', 'adrotate'); ?></th>
52
  <td colspan="2"><?php echo $edit_group->id; ?></td>
53
  </tr>
54
  <tr>
55
+ <th width="15%"><?php _e('Name', 'adrotate'); ?></th>
56
  <td colspan="2">
57
  <label for="adrotate_groupname"><input tabindex="1" name="adrotate_groupname" type="text" class="search-input" size="50" value="<?php echo $edit_group->name; ?>" autocomplete="off" /></label>
58
  </td>
137
  <table class="widefat" style="margin-top: .5em">
138
  <tbody>
139
  <tr>
140
+ <th width="15%"><?php _e('Widget', 'adrotate'); ?></th>
141
  <td colspan="3"><?php _e('Drag the AdRotate widget to the sidebar you want it in, select "Group of Ads" and enter ID', 'adrotate'); ?> "<?php echo $edit_group->id; ?>".</td>
142
  </tr>
143
  <tr>
144
+ <th width="15%"><?php _e('In a post or page', 'adrotate'); ?></th>
145
  <td width="35%">[adrotate group="<?php echo $edit_group->id; ?>"]</td>
146
+ <th width="15%"><?php _e('Directly in a theme', 'adrotate'); ?></th>
147
  <td width="35%">&lt;?php echo adrotate_group(<?php echo $edit_group->id; ?>); ?&gt;</td>
148
  </tr>
149
  </tbody>
158
  <table class="widefat" style="margin-top: .5em">
159
  <tbody>
160
  <tr>
161
+ <th width="15%" valign="top"><?php _e('Advert Margin', 'adrotate'); ?></strong></th>
162
+ <td width="35%">
163
  <label for="adrotate_admargin"><input tabindex="9" name="adrotate_admargin" type="text" class="search-input" size="5" value="<?php echo $edit_group->admargin; ?>" autocomplete="off" /> <?php _e('pixel(s)', 'adrotate'); ?>.</label>
164
  </td>
165
  <td colspan="2">
180
  <p><em><?php _e('Align the group in your post or page. Using \'center\' may affect your margin setting. Not every theme supports this feature.', 'adrotate'); ?></em></p>
181
  </td>
182
  </tr>
183
+ <tr>
184
+ <th width="15%" valign="top"><?php _e('Geo Targeting', 'adrotate'); ?></th>
185
+ <td width="35%"><label for="adrotate_geo"><input type="checkbox" name="adrotate_geo" value="1" disabled /> <?php _e('Enable Geo Targeting for this group.', 'adrotate'); ?></label></td>
186
+ <td><p><em><?php _e('Do not forget to tell the adverts for which areas they should show.', 'adrotate'); ?></em></p></td>
187
+ </tr>
188
+ <tr>
189
+ <th width="15%" valign="top"><?php _e('Mobile support', 'adrotate'); ?></th>
190
+ <td width="35%"><label for="adrotate_mobile"><input type="checkbox" name="adrotate_mobile" value="1" disabled /> <?php _e('Enable mobile support for this group.', 'adrotate'); ?></label></td>
191
+ <td><p><em><?php _e('Do not forget to put at least one mobile advert in this group.', 'adrotate'); ?></em></p></td>
192
+ </tr>
193
  <tr>
194
+ <th valign="top"><?php _e('Sortorder', 'adrotate'); ?></th>
195
  <td><label for="adrotate_sortorder"><input tabindex="11" name="adrotate_sortorder" type="text" size="5" class="search-input" autocomplete="off" value="<?php echo $edit_group->sortorder;?>" /></label></td>
196
  <td><em><?php _e('For administrative purposes set a sortorder.', 'adrotate'); ?> <?php _e('Leave empty or 0 to skip this. Will default to group id.', 'adrotate'); ?></em></td>
197
  </tr>
198
  </tbody>
199
  </table>
200
+ <center><?php _e('Set up mobile support and use Geo Targeting in AdRotate Pro', 'adrotate'); ?> <a href="admin.php?page=adrotate-pro"><?php _e('Upgrade today', 'adrotate'); ?></a>.</center>
201
 
202
  <h3><?php _e('Post Injection', 'adrotate'); ?></h3>
203
  <table class="widefat" style="margin-top: .5em">
204
  <tr>
205
+ <th width="15%"><?php _e('In categories?', 'adrotate'); ?></th>
206
  <td>
207
  <label for="adrotate_cat_location">
208
  <select tabindex="12" name="adrotate_cat_location">
243
  </td>
244
  </tr>
245
  <tr>
246
+ <th valign="top"><?php _e('In pages?', 'adrotate'); ?></th>
247
  <td>
248
  <label for="adrotate_page_location">
249
  <select tabindex="14" name="adrotate_page_location">
290
  <table class="widefat" style="margin-top: .5em">
291
  <tbody>
292
  <tr>
293
+ <th width="15%"><?php _e('Widget', 'adrotate'); ?></th>
294
  <td colspan="3"><?php _e('Drag the AdRotate widget to the sidebar you want it in, select "Group of Ads" and enter ID', 'adrotate'); ?> "<?php echo $edit_group->id; ?>".</td>
295
  </tr>
296
  <tr>
297
+ <th width="15%"><?php _e('In a post or page', 'adrotate'); ?></th>
298
  <td width="35%">[adrotate group="<?php echo $edit_group->id; ?>"]</td>
299
+ <th width="15%"><?php _e('Directly in a theme', 'adrotate'); ?></th>
300
  <td width="35%">&lt;?php echo adrotate_group(<?php echo $edit_group->id; ?>); ?&gt;</td>
301
  </tr>
302
  </tbody>
308
  </p>
309
 
310
  <h3><?php _e('Wrapper code', 'adrotate'); ?></h3>
311
+ <p><em><?php _e('Wraps around each advert. HTML/JavaScript allowed, use with care!', 'adrotate'); ?></em></p>
312
  <table class="widefat" style="margin-top: .5em">
313
  <tbody>
314
  <tr>
315
+ <th width="15%" valign="top"><?php _e('Before advert', 'adrotate'); ?></strong></th>
316
  <td colspan="2"><textarea tabindex="17" name="adrotate_wrapper_before" cols="65" rows="3"><?php echo stripslashes($edit_group->wrapper_before); ?></textarea></td>
317
  <td width="35%">
318
  <p><strong><?php _e('Example:', 'adrotate'); ?></strong> <em>&lt;span style="background-color:#aaa;"&gt;</em></p>
320
  </td>
321
  </tr>
322
  <tr>
323
+ <th valign="top"><?php _e('After advert', 'adrotate'); ?></strong></th>
324
  <td colspan="2"><textarea tabindex="18" name="adrotate_wrapper_after" cols="65" rows="3"><?php echo stripslashes($edit_group->wrapper_after); ?></textarea></td>
325
  <td>
326
  <p><strong><?php _e('Example:', 'adrotate'); ?></strong> <em>&lt;/span&gt;</em></p>
329
  </tbody>
330
  </table>
331
 
332
+ <h3><?php _e('Select adverts', 'adrotate'); ?></h3>
333
  <table class="widefat" style="margin-top: .5em">
334
  <thead>
335
  <tr>
348
  <?php if($ads) {
349
  $class = '';
350
  foreach($ads as $ad) {
351
+ $stoptime = $wpdb->get_var("SELECT `stoptime` FROM `{$wpdb->prefix}adrotate_schedule`, `{$wpdb->prefix}adrotate_linkmeta` WHERE `ad` = '".$ad->id."' AND `schedule` = `{$wpdb->prefix}adrotate_schedule`.`id` ORDER BY `stoptime` DESC LIMIT 1;");
352
 
353
  if($adrotate_config['stats'] == 1) {
354
  $stats = adrotate_stats($ad->id);
355
  }
356
 
357
  $errorclass = '';
358
+ if($ad->type == 'error') $errorclass = ' row_error';
359
+ if($stoptime <= $in2days OR $stoptime <= $in7days) $errorclass = ' row_urgent';
360
+ if($stoptime <= $now) $errorclass = ' row_inactive';
361
 
362
  $class = ('alternate' != $class) ? 'alternate' : '';
363
  $class = ($errorclass != '') ? $errorclass : $class;
dashboard/publisher/adrotate-groups-main.php CHANGED
@@ -62,7 +62,6 @@
62
  if($group->modus == 1) $modus[] = __('Dynamic', 'adrotate').' ('.$adspeed.' '. __('second rotation', 'adrotate').')';
63
  if($group->modus == 2) $modus[] = __('Block', 'adrotate').' ('.$group->gridrows.' x '.$group->gridcolumns.' '. __('grid', 'adrotate').')';
64
  if($group->cat_loc > 0 OR $group->page_loc > 0) $modus[] = __('Post Injection', 'adrotate');
65
- if($group->geo == 1) $modus[] = __('Geolocation', 'adrotate');
66
 
67
  $ads_in_group = $wpdb->get_var("SELECT COUNT(*) FROM `".$wpdb->prefix."adrotate_linkmeta` WHERE `group` = ".$group->id.";");
68
  $class = ('alternate' != $class) ? 'alternate' : ''; ?>
62
  if($group->modus == 1) $modus[] = __('Dynamic', 'adrotate').' ('.$adspeed.' '. __('second rotation', 'adrotate').')';
63
  if($group->modus == 2) $modus[] = __('Block', 'adrotate').' ('.$group->gridrows.' x '.$group->gridcolumns.' '. __('grid', 'adrotate').')';
64
  if($group->cat_loc > 0 OR $group->page_loc > 0) $modus[] = __('Post Injection', 'adrotate');
 
65
 
66
  $ads_in_group = $wpdb->get_var("SELECT COUNT(*) FROM `".$wpdb->prefix."adrotate_linkmeta` WHERE `group` = ".$group->id.";");
67
  $class = ('alternate' != $class) ? 'alternate' : ''; ?>
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-04 16:01+0100\n"
6
- "PO-Revision-Date: 2015-05-04 16:01+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"
@@ -17,19 +17,19 @@ msgstr ""
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
  "X-Poedit-SearchPath-0: .\n"
19
 
20
- #: adrotate-functions.php:800
21
  msgid "No files found"
22
  msgstr "Няма намерени файлове"
23
 
24
- #: adrotate-functions.php:803
25
  msgid "Folder not found or not accessible"
26
  msgstr "Папката не е намерена или не е достъпна"
27
 
28
- #: adrotate-output.php:742
29
  msgid "Oh no! Something went wrong!"
30
  msgstr "О не! Нещо се случи!"
31
 
32
- #: adrotate-output.php:743
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:744
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:745
48
  msgid "Contact support if the issue persists:"
49
  msgstr "Свържете се с поддръжката, ако този проблем продължави да се появява:"
50
 
51
- #: adrotate-output.php:763
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:765
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:772 adrotate-output.php:774
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:780
74
  msgid "Error, no Ad ID set! Check your syntax!"
75
  msgstr "Грешка, не е зададено ID на рекламата! Проверете синтаксиса!"
76
 
77
- #: adrotate-output.php:786
78
  msgid "Error, no group ID set! Check your syntax!"
79
  msgstr "Грешка, не е зададено ID на групата! Проверете синтаксиса!"
80
 
81
- #: adrotate-output.php:791
82
  msgid "Error, group does not exist! Check your syntax!"
83
  msgstr "Грешка, групата не съществува! Проверете синтаксиса!"
84
 
85
- #: adrotate-output.php:797
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:797
94
  msgid "If this does not solve the issue please seek support at"
95
  msgstr "Ако това не решава проблема, моля потърсете помощ на"
96
 
97
- #: adrotate-output.php:803
98
  msgid "An unknown error occured."
99
  msgstr "Възникна неизвестна грешка."
100
 
101
- #: adrotate-output.php:828
102
  msgid "active ad(s) expired."
103
  msgstr "изтекла/и активна/и реклама/и."
104
 
105
- #: adrotate-output.php:828
106
  msgid "Take action now"
107
  msgstr "Предприемане на действия"
108
 
109
- #: adrotate-output.php:830
110
  msgid "active ad(s) are about to expire."
111
  msgstr "изтичаща/и активна/и реклама/и."
112
 
113
- #: adrotate-output.php:830
114
  msgid "Check it out"
115
  msgstr "Проверете го"
116
 
117
- #: adrotate-output.php:832
118
  msgid "active ad(s) with configuration errors."
119
  msgstr "активна(и) реклама(и) с грешни настройки."
120
 
121
- #: adrotate-output.php:832
122
  msgid "Solve this"
123
  msgstr "Разреши това"
124
 
125
- #: adrotate-output.php:834
126
  msgid "ad(s) expired."
127
  msgstr "изтекла/и реклама/и."
128
 
129
- #: adrotate-output.php:834
130
  msgid "ad(s) are about to expire."
131
  msgstr "реклама/и изтича(т)."
132
 
133
- #: adrotate-output.php:834
134
  msgid "ad(s) with configuration errors."
135
  msgstr "реклама/и с грешни настройки."
136
 
137
- #: adrotate-output.php:834
138
  msgid "Fix this as soon as possible"
139
  msgstr "Поправка възможно най-скоро"
140
 
141
- #: adrotate-output.php:846
142
  msgid "Learn More"
143
  msgstr "Научете повече"
144
 
145
- #: adrotate-output.php:847
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:847
154
  msgid "Get more features to even better run your advertising campaigns."
155
  msgstr ""
156
  "Вземете повече опции за дори по-добро управление на вашите рекламни кампании."
157
 
158
- #: adrotate-output.php:847
159
  msgid "Thank you for your consideration!"
160
  msgstr "Благодарим Ви, че го обмислихте!"
161
 
162
- #: adrotate-output.php:891
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:891
169
  msgid "manuals"
170
  msgstr "ръководства"
171
 
172
- #: adrotate-output.php:891 adrotate-output.php:967
173
  #: dashboard/publisher/adrotate-ads-edit.php:151
174
  msgid "and"
175
  msgstr "и"
176
 
177
- #: adrotate-output.php:891
178
  msgid "forums"
179
  msgstr ""
180
 
181
- #: adrotate-output.php:927
182
  msgid "Useful Links"
183
  msgstr "Полезни връзки"
184
 
185
- #: adrotate-output.php:928
186
  msgid "Useful links to learn more about AdRotate"
187
  msgstr "Полезни връзки, за да получите повече информация за AdRotate"
188
 
189
- #: adrotate-output.php:930
190
  msgid "AdRotate Page"
191
  msgstr ""
192
 
193
- #: adrotate-output.php:931
194
  msgid "Getting Started With AdRotate"
195
  msgstr "Започнете от нулата с AdRotate Pro"
196
 
197
- #: adrotate-output.php:932
198
  msgid "AdRotate manuals"
199
  msgstr ""
200
 
201
- #: adrotate-output.php:933
202
  msgid "AdRotate Support Forum"
203
  msgstr "Форум за поддръжка на AdRotate"
204
 
205
- #: adrotate-output.php:959
206
  msgid "Help AdRotate Grow"
207
  msgstr "Помогнете за развитието на AdRotate"
208
 
209
- #: adrotate-output.php:960
210
  msgid "Brought to you by"
211
  msgstr "Достига до Вас благодарение на"
212
 
213
- #: adrotate-output.php:967
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:967
223
  msgid "If you find AdRotate useful please leave your honest"
224
  msgstr "Ако намирате AdRotate за полезен, моля оставете честна"
225
 
226
- #: adrotate-output.php:967
227
  msgid "rating"
228
  msgstr "оценка"
229
 
230
- #: adrotate-output.php:967
231
  msgid "review"
232
  msgstr "мнение"
233
 
234
- #: adrotate-output.php:967
235
  msgid "on WordPress.org to help AdRotate grow in a positive way"
236
  msgstr "на WordPress.org, за да се развива AdRotate"
237
 
238
- #: adrotate-output.php:970
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:970 dashboard/adrotate-info.php:171
247
  msgid "Visit the"
248
  msgstr "Посетете"
249
 
250
- #: adrotate-output.php:970 dashboard/adrotate-info.php:171
251
  msgid "website"
252
  msgstr "уебсайт"
253
 
254
- #: adrotate-output.php:1000
255
  msgid "Available in AdRotate Pro"
256
  msgstr "Налично в AdRotate Pro"
257
 
258
- #: adrotate-output.php:1000
259
  msgid "More information..."
260
  msgstr "Повече информация..."
261
 
262
- #: adrotate-output.php:1001
263
  msgid "This feature is available in AdRotate Pro"
264
  msgstr "Тази функционалност е налична в AdRotate Pro"
265
 
266
- #: adrotate-output.php:1001
267
  msgid "Learn more"
268
  msgstr "Повече информация"
269
 
@@ -375,7 +375,7 @@ msgstr "Група реклами - Използване на ID на група
375
  msgid "Choose what you want to use this widget for"
376
  msgstr "Изберете за какво иската да използвате тази джаджа"
377
 
378
- #: adrotate-widget.php:137 dashboard/publisher/adrotate-groups-edit.php:51
379
  msgid "ID:"
380
  msgstr "ID:"
381
 
@@ -500,7 +500,7 @@ msgid "Group including it's Ads deleted"
500
  msgstr "Групата и съдържащите се в нея реклами са изтрити"
501
 
502
  #: adrotate.php:380 dashboard/publisher/adrotate-ads-main.php:87
503
- #: dashboard/publisher/adrotate-groups-main.php:72
504
  msgid "Report"
505
  msgstr "Доклад"
506
 
@@ -520,7 +520,7 @@ msgstr ""
520
  #: dashboard/publisher/adrotate-ads-edit.php:177
521
  #: dashboard/publisher/adrotate-ads-main.php:114
522
  #: dashboard/publisher/adrotate-groups-edit.php:75
523
- #: dashboard/publisher/adrotate-groups-main.php:92
524
  msgid "More information"
525
  msgstr "Повече информация"
526
 
@@ -541,6 +541,7 @@ msgstr "Напред"
541
  #: adrotate.php:459 dashboard/publisher/adrotate-ads-main-disabled.php:35
542
  #: dashboard/publisher/adrotate-ads-main-error.php:39
543
  #: dashboard/publisher/adrotate-ads-main.php:39
 
544
  #: dashboard/publisher/adrotate-groups-main.php:32
545
  msgid "ID"
546
  msgstr "ID"
@@ -579,12 +580,12 @@ msgid "Upgrade today!"
579
  msgstr "Надградете днес!"
580
 
581
  #: adrotate.php:502 dashboard/publisher/adrotate-ads-main-error.php:74
582
- #: dashboard/publisher/adrotate-groups-edit.php:383
583
  msgid "Expires soon."
584
  msgstr "Изтича скоро."
585
 
586
  #: adrotate.php:503 dashboard/publisher/adrotate-ads-main-error.php:75
587
- #: dashboard/publisher/adrotate-groups-edit.php:384
588
  msgid "Has expired."
589
  msgstr "Изтекла."
590
 
@@ -647,8 +648,8 @@ msgstr ""
647
  "файловете, вместо \".full\"."
648
 
649
  #: adrotate.php:536 dashboard/publisher/adrotate-ads-edit.php:309
650
- #: dashboard/publisher/adrotate-groups-edit.php:308
651
- #: dashboard/publisher/adrotate-groups-edit.php:316
652
  msgid "Example:"
653
  msgstr "Пример:"
654
 
@@ -668,7 +669,8 @@ msgstr "Качването на картинка"
668
  msgid "Available banner images in"
669
  msgstr "Налични картинки за банери в"
670
 
671
- #: adrotate.php:548 dashboard/publisher/adrotate-groups-main.php:33
 
672
  msgid "Name"
673
  msgstr "Име"
674
 
@@ -767,7 +769,7 @@ msgstr "Роля за изтриване на групи."
767
  msgid "Update Options"
768
  msgstr "Опции за обновяване"
769
 
770
- #: adrotate.php:691
771
  msgid "Statistics"
772
  msgstr "Статистики"
773
 
@@ -775,8 +777,8 @@ msgstr "Статистики"
775
  msgid "How to track stats"
776
  msgstr ""
777
 
778
- #: adrotate.php:697 dashboard/publisher/adrotate-groups-edit.php:199
779
- #: dashboard/publisher/adrotate-groups-edit.php:240
780
  msgid "Disabled"
781
  msgstr "Изключено"
782
 
@@ -1569,19 +1571,22 @@ msgid "Edit Advert"
1569
  msgstr "Редакция на реклама"
1570
 
1571
  #: dashboard/publisher/adrotate-ads-edit.php:115
1572
- msgid "Title:"
1573
- msgstr "Заглавие:"
 
 
 
1574
 
1575
  #: dashboard/publisher/adrotate-ads-edit.php:121
1576
- msgid "AdCode:"
1577
- msgstr "AdCode:"
1578
 
1579
  #: dashboard/publisher/adrotate-ads-edit.php:126
1580
  msgid "Basic Examples:"
1581
  msgstr "Основни примери:"
1582
 
1583
  #: dashboard/publisher/adrotate-ads-edit.php:133
1584
- msgid "Useful tags:"
1585
  msgstr ""
1586
 
1587
  #: dashboard/publisher/adrotate-ads-edit.php:135
@@ -1615,8 +1620,8 @@ msgid ""
1615
  msgstr ""
1616
 
1617
  #: dashboard/publisher/adrotate-ads-edit.php:139
1618
- msgid "Banner image:"
1619
- msgstr "Картинка на банера:"
1620
 
1621
  #: dashboard/publisher/adrotate-ads-edit.php:142
1622
  msgid "WordPress media:"
@@ -1650,10 +1655,6 @@ msgstr ""
1650
  "Използвайте падащото меню или текстовото поле. Ако текстовото поле е "
1651
  "попълнено, то ще бъде с преоритет."
1652
 
1653
- #: dashboard/publisher/adrotate-ads-edit.php:156
1654
- msgid "Statistics:"
1655
- msgstr ""
1656
-
1657
  #: dashboard/publisher/adrotate-ads-edit.php:158
1658
  msgid "Enable click and impression tracking for this advert."
1659
  msgstr ""
@@ -1666,8 +1667,9 @@ msgid ""
1666
  msgstr ""
1667
 
1668
  #: dashboard/publisher/adrotate-ads-edit.php:165
1669
- msgid "Activate:"
1670
- msgstr "Активиране:"
 
1671
 
1672
  #: dashboard/publisher/adrotate-ads-edit.php:169
1673
  msgid "Yes, this ad will be used"
@@ -1680,7 +1682,7 @@ msgstr "Не, не показвай тази реклама никъде"
1680
  #: dashboard/publisher/adrotate-ads-edit.php:177
1681
  #: dashboard/publisher/adrotate-ads-main.php:114
1682
  #: dashboard/publisher/adrotate-groups-edit.php:75
1683
- #: dashboard/publisher/adrotate-groups-main.php:92
1684
  msgid "Get more features with AdRotate Pro."
1685
  msgstr "Получете по-голяма функционалност с AdRotate Pro."
1686
 
@@ -1696,8 +1698,8 @@ msgstr "Запиши рекламата"
1696
  #: dashboard/publisher/adrotate-ads-edit.php:396
1697
  #: dashboard/publisher/adrotate-ads-edit.php:437
1698
  #: dashboard/publisher/adrotate-groups-edit.php:154
1699
- #: dashboard/publisher/adrotate-groups-edit.php:297
1700
- #: dashboard/publisher/adrotate-groups-edit.php:389
1701
  msgid "Cancel"
1702
  msgstr "Отказ"
1703
 
@@ -1722,15 +1724,15 @@ msgstr ""
1722
  #: dashboard/publisher/adrotate-ads-edit.php:199
1723
  #: dashboard/publisher/adrotate-ads-edit.php:378
1724
  #: dashboard/publisher/adrotate-groups-edit.php:136
1725
- #: dashboard/publisher/adrotate-groups-edit.php:279
1726
  msgid "Usage"
1727
  msgstr "Употреба"
1728
 
1729
  #: dashboard/publisher/adrotate-ads-edit.php:203
1730
  #: dashboard/publisher/adrotate-ads-edit.php:382
1731
  #: dashboard/publisher/adrotate-groups-edit.php:140
1732
- #: dashboard/publisher/adrotate-groups-edit.php:283
1733
- msgid "Widget:"
1734
  msgstr ""
1735
 
1736
  #: dashboard/publisher/adrotate-ads-edit.php:204
@@ -1743,40 +1745,40 @@ msgstr ""
1743
  #: dashboard/publisher/adrotate-ads-edit.php:207
1744
  #: dashboard/publisher/adrotate-ads-edit.php:386
1745
  #: dashboard/publisher/adrotate-groups-edit.php:144
1746
- #: dashboard/publisher/adrotate-groups-edit.php:287
1747
- msgid "In a post or page:"
1748
- msgstr "И страница или публикация:"
1749
 
1750
  #: dashboard/publisher/adrotate-ads-edit.php:209
1751
  #: dashboard/publisher/adrotate-ads-edit.php:388
1752
  #: dashboard/publisher/adrotate-groups-edit.php:146
1753
- #: dashboard/publisher/adrotate-groups-edit.php:289
1754
- msgid "Directly in a theme:"
1755
- msgstr "Директно в темата:"
1756
 
1757
  #: dashboard/publisher/adrotate-ads-edit.php:215
1758
  msgid "Schedule your advert"
1759
  msgstr ""
1760
 
1761
  #: dashboard/publisher/adrotate-ads-edit.php:219
1762
- msgid "Start date (day/month/year):"
1763
- msgstr "Начална дата (ден/месец/година):"
1764
 
1765
  #: dashboard/publisher/adrotate-ads-edit.php:240
1766
- msgid "End date (day/month/year):"
1767
- msgstr "Крайна дата (ден/месец/година):"
1768
 
1769
  #: dashboard/publisher/adrotate-ads-edit.php:263
1770
- msgid "Start time (hh:mm):"
1771
- msgstr "Начален час (hh:mm):"
1772
 
1773
  #: dashboard/publisher/adrotate-ads-edit.php:270
1774
- msgid "End time (hh:mm):"
1775
- msgstr "Краен час (hh:mm):"
1776
 
1777
  #: dashboard/publisher/adrotate-ads-edit.php:280
1778
- msgid "Maximum Clicks:"
1779
- msgstr "Максимален брой кликове:"
1780
 
1781
  #: dashboard/publisher/adrotate-ads-edit.php:281
1782
  #: dashboard/publisher/adrotate-ads-edit.php:283
@@ -1784,26 +1786,19 @@ msgid "Leave empty or 0 to skip this."
1784
  msgstr "Въведете 0 или оставете празно, за да пропуснете тази опция."
1785
 
1786
  #: dashboard/publisher/adrotate-ads-edit.php:282
1787
- msgid "Maximum Impressions:"
1788
- msgstr "Максимален брой импресии:"
1789
 
1790
- #: dashboard/publisher/adrotate-ads-edit.php:288
1791
- msgid ""
1792
- "Time uses a 24 hour clock. When you're used to the AM/PM system keep this in "
1793
- "mind: If the start or end time is after lunch, add 12 hours. 2PM is 14:00 "
1794
- "hours. 6AM is 6:00 hours."
1795
  msgstr ""
1796
- "Времето използва 24 часов формат. Ако използвате 12 часов формат: За начален "
1797
- "или краен час след обяд, прибавете 12 часа. Напр. 2PM е 14:00 часа. 6AM e "
1798
- "18:00 часа. "
1799
 
1800
  #: dashboard/publisher/adrotate-ads-edit.php:288
1801
  msgid ""
1802
- "The maximum clicks and impressions are measured over the set schedule only. "
1803
- "Every schedule can have it's own limit!"
 
1804
  msgstr ""
1805
- "Максималния брой кликове и импресии се измерва в рамките на зададеното "
1806
- "време. Всеки график може да има собствен лимит!"
1807
 
1808
  #: dashboard/publisher/adrotate-ads-edit.php:292
1809
  msgid "Create multiple schedules for each advert with AdRotate Pro."
@@ -1812,7 +1807,7 @@ msgstr "Създайте множество графици за всяка ре
1812
  #: dashboard/publisher/adrotate-ads-edit.php:292
1813
  #: dashboard/publisher/adrotate-ads-edit.php:332
1814
  #: dashboard/publisher/adrotate-ads-edit.php:376
1815
- #: dashboard/publisher/adrotate-groups-edit.php:190
1816
  msgid "Upgrade today"
1817
  msgstr "Надградете днес"
1818
 
@@ -1826,8 +1821,8 @@ msgid "Everything below is optional."
1826
  msgstr "Всичко по-долу е по желание."
1827
 
1828
  #: dashboard/publisher/adrotate-ads-edit.php:304
1829
- msgid "Responsive:"
1830
- msgstr "Responsive:"
1831
 
1832
  #: dashboard/publisher/adrotate-ads-edit.php:306
1833
  msgid "Enable responsive support for this advert."
@@ -1844,12 +1839,10 @@ msgstr ""
1844
  "картинки е строго препоръчителен."
1845
 
1846
  #: dashboard/publisher/adrotate-ads-edit.php:313
1847
- msgid "Weight:"
1848
- msgstr "Тежест:"
1849
-
1850
- #: dashboard/publisher/adrotate-ads-edit.php:313
1851
- msgid "AdRotate Pro only"
1852
- msgstr "Само AdRotate Pro"
1853
 
1854
  #: dashboard/publisher/adrotate-ads-edit.php:316
1855
  msgid "Barely visible"
@@ -1872,12 +1865,12 @@ msgid "Best visibility"
1872
  msgstr "Най-добра видимост"
1873
 
1874
  #: dashboard/publisher/adrotate-ads-edit.php:325
1875
- #: dashboard/publisher/adrotate-groups-edit.php:184
1876
- msgid "Sortorder:"
1877
- msgstr "Сортиране:"
1878
 
1879
  #: dashboard/publisher/adrotate-ads-edit.php:327
1880
- #: dashboard/publisher/adrotate-groups-edit.php:186
1881
  msgid "For administrative purposes set a sortorder."
1882
  msgstr "За административни цели задайте критерий за сортиране."
1883
 
@@ -1903,8 +1896,8 @@ msgid ""
1903
  msgstr ""
1904
 
1905
  #: dashboard/publisher/adrotate-ads-edit.php:339
1906
- msgid "Cities/States:"
1907
- msgstr "Градове/Щати:"
1908
 
1909
  #: dashboard/publisher/adrotate-ads-edit.php:342
1910
  msgid ""
@@ -1921,8 +1914,8 @@ msgstr ""
1921
  "правилно!"
1922
 
1923
  #: dashboard/publisher/adrotate-ads-edit.php:346
1924
- msgid "Countries:"
1925
- msgstr "Държави:"
1926
 
1927
  #: dashboard/publisher/adrotate-ads-edit.php:371
1928
  msgid "Select the countries you want the adverts to show in."
@@ -1974,19 +1967,18 @@ msgid "grid"
1974
  msgstr "решетка"
1975
 
1976
  #: dashboard/publisher/adrotate-ads-edit.php:418
1977
- #: dashboard/publisher/adrotate-groups-edit.php:192
1978
  #: dashboard/publisher/adrotate-groups-main.php:64
1979
  msgid "Post Injection"
1980
  msgstr "Вмъкване в публикации"
1981
 
1982
  #: dashboard/publisher/adrotate-ads-edit.php:419
1983
- #: dashboard/publisher/adrotate-groups-main.php:65
1984
  msgid "Geolocation"
1985
  msgstr "Геолокация"
1986
 
1987
  #: dashboard/publisher/adrotate-ads-edit.php:425
1988
  #: dashboard/publisher/adrotate-groups-edit.php:61
1989
- #: dashboard/publisher/adrotate-groups-main.php:72
1990
  msgid "Mode"
1991
  msgstr "Режим"
1992
 
@@ -1994,10 +1986,6 @@ msgstr "Режим"
1994
  msgid "Disabled Ads"
1995
  msgstr "Деактивиране на реклами"
1996
 
1997
- #: dashboard/publisher/adrotate-ads-main-disabled.php:21
1998
- msgid "Activate"
1999
- msgstr "Активиране"
2000
-
2001
  #: dashboard/publisher/adrotate-ads-main-disabled.php:23
2002
  #: dashboard/publisher/adrotate-ads-main-error.php:22
2003
  #: dashboard/publisher/adrotate-ads-main.php:23
@@ -2010,15 +1998,9 @@ msgstr "Нулиране на статистиката"
2010
  msgid "Start / End"
2011
  msgstr "Начало / Край"
2012
 
2013
- #: dashboard/publisher/adrotate-ads-main-disabled.php:37
2014
- #: dashboard/publisher/adrotate-ads-main-error.php:41
2015
- #: dashboard/publisher/adrotate-ads-main.php:41
2016
- msgid "Title"
2017
- msgstr "Заглавие"
2018
-
2019
  #: dashboard/publisher/adrotate-ads-main-disabled.php:38
2020
  #: dashboard/publisher/adrotate-ads-report.php:34
2021
- #: dashboard/publisher/adrotate-groups-edit.php:329
2022
  #: dashboard/publisher/adrotate-groups-main.php:36
2023
  #: dashboard/publisher/adrotate-groups-report.php:40
2024
  msgid "Impressions"
@@ -2027,7 +2009,7 @@ msgstr "Импресии"
2027
  #: dashboard/publisher/adrotate-ads-main-disabled.php:39
2028
  #: dashboard/publisher/adrotate-ads-main.php:46
2029
  #: dashboard/publisher/adrotate-ads-report.php:35
2030
- #: dashboard/publisher/adrotate-groups-edit.php:330
2031
  #: dashboard/publisher/adrotate-groups-main.php:38
2032
  #: dashboard/publisher/adrotate-groups-report.php:41
2033
  msgid "Clicks"
@@ -2043,7 +2025,7 @@ msgstr "CTR"
2043
  #: dashboard/publisher/adrotate-ads-main-disabled.php:74
2044
  #: dashboard/publisher/adrotate-ads-main-error.php:64
2045
  #: dashboard/publisher/adrotate-ads-main.php:87
2046
- #: dashboard/publisher/adrotate-groups-main.php:72
2047
  msgid "Edit"
2048
  msgstr "Редакция"
2049
 
@@ -2093,7 +2075,7 @@ msgid "For 7 days"
2093
  msgstr "За 7 дни"
2094
 
2095
  #: dashboard/publisher/adrotate-ads-main-error.php:73
2096
- #: dashboard/publisher/adrotate-groups-edit.php:382
2097
  msgid "Configuration errors."
2098
  msgstr "Грешки при конфигурирането."
2099
 
@@ -2105,11 +2087,6 @@ msgstr "Активиране на рекламите"
2105
  msgid "Export to XML"
2106
  msgstr "Експорт в XML"
2107
 
2108
- #: dashboard/publisher/adrotate-ads-main.php:42
2109
- #: dashboard/publisher/adrotate-groups-edit.php:332
2110
- msgid "Weight"
2111
- msgstr "Тежест"
2112
-
2113
  #: dashboard/publisher/adrotate-ads-main.php:44
2114
  msgid "Shown"
2115
  msgstr "Показана"
@@ -2166,10 +2143,6 @@ msgstr "Нова група"
2166
  msgid "Edit Group"
2167
  msgstr "Редакция на група"
2168
 
2169
- #: dashboard/publisher/adrotate-groups-edit.php:55
2170
- msgid "Name:"
2171
- msgstr "Име:"
2172
-
2173
  #: dashboard/publisher/adrotate-groups-edit.php:64
2174
  msgid "Default - Show one ad at a time"
2175
  msgstr "По подразбиране - показва се само една реклама"
@@ -2258,15 +2231,15 @@ msgstr ""
2258
  "страницата. По подразбиране: 6."
2259
 
2260
  #: dashboard/publisher/adrotate-groups-edit.php:141
2261
- #: dashboard/publisher/adrotate-groups-edit.php:284
2262
  msgid ""
2263
  "Drag the AdRotate widget to the sidebar you want it in, select \"Group of Ads"
2264
  "\" and enter ID"
2265
  msgstr ""
2266
 
2267
  #: dashboard/publisher/adrotate-groups-edit.php:153
2268
- #: dashboard/publisher/adrotate-groups-edit.php:296
2269
- #: dashboard/publisher/adrotate-groups-edit.php:388
2270
  msgid "Save Group"
2271
  msgstr "Запис на групата"
2272
 
@@ -2316,145 +2289,168 @@ msgid ""
2316
  "setting. Not every theme supports this feature."
2317
  msgstr ""
2318
 
 
 
 
 
 
 
 
 
2319
  #: dashboard/publisher/adrotate-groups-edit.php:186
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2320
  msgid "Leave empty or 0 to skip this. Will default to group id."
2321
  msgstr ""
2322
  "Оставете празно или въведете 0, за да пропуснете това. Ще бъде зададено ID "
2323
  "на групата."
2324
 
2325
- #: dashboard/publisher/adrotate-groups-edit.php:190
2326
- msgid "Set up a fallback group and use Geo Location in AdRotate Pro"
2327
  msgstr ""
2328
- "Задайте резервна група и използвайте услуга за местоположение с AdRotate Pro"
2329
 
2330
- #: dashboard/publisher/adrotate-groups-edit.php:195
2331
- msgid "Include ads in categories?"
2332
- msgstr "Включване на реклами в категориите?"
2333
 
2334
- #: dashboard/publisher/adrotate-groups-edit.php:200
2335
- #: dashboard/publisher/adrotate-groups-edit.php:241
2336
  msgid "Before content"
2337
  msgstr "Преди съдържанието"
2338
 
2339
- #: dashboard/publisher/adrotate-groups-edit.php:201
2340
- #: dashboard/publisher/adrotate-groups-edit.php:242
2341
  msgid "After content"
2342
  msgstr "След съдържанието"
2343
 
2344
- #: dashboard/publisher/adrotate-groups-edit.php:202
2345
- #: dashboard/publisher/adrotate-groups-edit.php:243
2346
  msgid "Before and after content"
2347
  msgstr "Преди и след съдържанието"
2348
 
2349
- #: dashboard/publisher/adrotate-groups-edit.php:203
2350
- #: dashboard/publisher/adrotate-groups-edit.php:244
2351
  msgid "After..."
2352
  msgstr "След..."
2353
 
2354
- #: dashboard/publisher/adrotate-groups-edit.php:209
2355
- #: dashboard/publisher/adrotate-groups-edit.php:250
2356
  msgid "the first paragraph"
2357
  msgstr "първия параграф"
2358
 
2359
- #: dashboard/publisher/adrotate-groups-edit.php:210
2360
- #: dashboard/publisher/adrotate-groups-edit.php:251
2361
  msgid "the second paragraph"
2362
  msgstr ""
2363
 
2364
- #: dashboard/publisher/adrotate-groups-edit.php:211
2365
- #: dashboard/publisher/adrotate-groups-edit.php:252
2366
  msgid "the third paragraph"
2367
  msgstr ""
2368
 
2369
- #: dashboard/publisher/adrotate-groups-edit.php:212
2370
- #: dashboard/publisher/adrotate-groups-edit.php:253
2371
  msgid "the fourth paragraph"
2372
  msgstr ""
2373
 
2374
- #: dashboard/publisher/adrotate-groups-edit.php:214
2375
- #: dashboard/publisher/adrotate-groups-edit.php:255
2376
  msgid "every 2nd paragraph"
2377
  msgstr "всеки 2-ри параграф"
2378
 
2379
- #: dashboard/publisher/adrotate-groups-edit.php:215
2380
- #: dashboard/publisher/adrotate-groups-edit.php:256
2381
  msgid "every 3rd paragraph"
2382
  msgstr "всеки 3-ти параграф"
2383
 
2384
- #: dashboard/publisher/adrotate-groups-edit.php:216
2385
- #: dashboard/publisher/adrotate-groups-edit.php:257
2386
  msgid "every 4th paragraph"
2387
  msgstr "всеки 4-ти параграф"
2388
 
2389
- #: dashboard/publisher/adrotate-groups-edit.php:217
2390
- #: dashboard/publisher/adrotate-groups-edit.php:258
2391
  msgid "every 5th paragraph"
2392
  msgstr "всеки 5-ти параграф"
2393
 
2394
- #: dashboard/publisher/adrotate-groups-edit.php:218
2395
- #: dashboard/publisher/adrotate-groups-edit.php:259
2396
  msgid "every 6th paragraph"
2397
  msgstr "всеки 6-ти параграф"
2398
 
2399
- #: dashboard/publisher/adrotate-groups-edit.php:219
2400
- #: dashboard/publisher/adrotate-groups-edit.php:260
2401
  msgid "every 7th paragraph"
2402
  msgstr "всеки 7-ми параграф"
2403
 
2404
- #: dashboard/publisher/adrotate-groups-edit.php:220
2405
- #: dashboard/publisher/adrotate-groups-edit.php:261
2406
  msgid "every 8th paragraph"
2407
  msgstr "всеки 8-ми параграф"
2408
 
2409
- #: dashboard/publisher/adrotate-groups-edit.php:226
2410
  msgid "Which categories?"
2411
  msgstr "Кои категории?"
2412
 
2413
- #: dashboard/publisher/adrotate-groups-edit.php:231
2414
  msgid "Click the categories posts you want the adverts to show in."
2415
  msgstr "Изберете категориите, на които искате да се показват рекламите."
2416
 
2417
- #: dashboard/publisher/adrotate-groups-edit.php:236
2418
- msgid "Include ads in pages?"
2419
- msgstr "Включване на реклами в страниците?"
2420
 
2421
- #: dashboard/publisher/adrotate-groups-edit.php:267
2422
  msgid "Which pages?"
2423
  msgstr "Кои страници?"
2424
 
2425
- #: dashboard/publisher/adrotate-groups-edit.php:272
2426
  msgid "Click the pages you want the adverts to show in."
2427
  msgstr "Изберете страниците, на които искате да се показват рекламите."
2428
 
2429
- #: dashboard/publisher/adrotate-groups-edit.php:300
2430
  msgid "Wrapper code"
2431
  msgstr "Код за обвивката"
2432
 
2433
- #: dashboard/publisher/adrotate-groups-edit.php:301
2434
- msgid "Wraps around each ad. HTML/JavaScript allowed, use with care!"
2435
  msgstr ""
2436
 
2437
- #: dashboard/publisher/adrotate-groups-edit.php:305
2438
- msgid "Before ad"
2439
- msgstr "Преди реклама"
2440
 
2441
- #: dashboard/publisher/adrotate-groups-edit.php:309
2442
  msgid "Options:"
2443
  msgstr "Настройки:"
2444
 
2445
- #: dashboard/publisher/adrotate-groups-edit.php:313
2446
- msgid "After ad"
2447
- msgstr "След реклама"
2448
 
2449
- #: dashboard/publisher/adrotate-groups-edit.php:322
2450
- msgid "Select Ads"
2451
- msgstr "Избор на реклами"
2452
 
2453
- #: dashboard/publisher/adrotate-groups-edit.php:333
2454
  msgid "Visible until"
2455
  msgstr "Да се вижда до"
2456
 
2457
- #: dashboard/publisher/adrotate-groups-edit.php:375
2458
  msgid "No ads created!"
2459
  msgstr "Няма създадени реклами!"
2460
 
@@ -2478,7 +2474,7 @@ msgstr "Това действие е необратимо!"
2478
  msgid "Code"
2479
  msgstr "Код"
2480
 
2481
- #: dashboard/publisher/adrotate-groups-main.php:87
2482
  msgid "No groups created!"
2483
  msgstr "Няма създадени групи!"
2484
 
@@ -2486,6 +2482,99 @@ msgstr "Няма създадени групи!"
2486
  msgid "Statistics for group"
2487
  msgstr "Статистика за групи"
2488
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2489
  #~ msgid "WordPress.org Forum"
2490
  #~ msgstr "WordPress.org форум"
2491
 
@@ -3083,9 +3172,6 @@ msgstr "Статистика за групи"
3083
  #~ msgid "Track clicks from logged in users."
3084
  #~ msgstr "Проследяване на кликове от вписани потребители."
3085
 
3086
- #~ msgid "Geo Targeting"
3087
- #~ msgstr "Таргетиране спрямо местоположението"
3088
-
3089
  #~ msgid "Geographic Tracking"
3090
  #~ msgstr "Проследяване на местоположението"
3091
 
@@ -3137,10 +3223,6 @@ msgstr "Статистика за групи"
3137
  #~ msgid "Enable GeoTargeting for this group."
3138
  #~ msgstr "Включване на Геотаргетирането за тази група."
3139
 
3140
- #~ msgid "Do not forget to tell the adverts for which areas they should show."
3141
- #~ msgstr ""
3142
- #~ "Не забравяйте да кажете на рекламите в кои зони трябва да се показват."
3143
-
3144
  #~ msgid "Fallback group"
3145
  #~ msgstr "Резервна група"
3146
 
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"
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
  "кликнал. Проверете дали адреса е валиден или се впишете посредством браузъра "
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
  "Грешка, рекламата не е налична в момента, поради ограничения в графика/"
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
  "Не могат да бъдат открити таблиците на 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
  "Използвате <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
  "се обърка, докато хиляди хора използват 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
  "Мястото, където да се консултирате и/или да поръчате разработка за "
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
 
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
 
500
  msgstr "Групата и съдържащите се в нея реклами са изтрити"
501
 
502
  #: adrotate.php:380 dashboard/publisher/adrotate-ads-main.php:87
503
+ #: dashboard/publisher/adrotate-groups-main.php:71
504
  msgid "Report"
505
  msgstr "Доклад"
506
 
520
  #: dashboard/publisher/adrotate-ads-edit.php:177
521
  #: dashboard/publisher/adrotate-ads-main.php:114
522
  #: dashboard/publisher/adrotate-groups-edit.php:75
523
+ #: dashboard/publisher/adrotate-groups-main.php:91
524
  msgid "More information"
525
  msgstr "Повече информация"
526
 
541
  #: adrotate.php:459 dashboard/publisher/adrotate-ads-main-disabled.php:35
542
  #: dashboard/publisher/adrotate-ads-main-error.php:39
543
  #: dashboard/publisher/adrotate-ads-main.php:39
544
+ #: dashboard/publisher/adrotate-groups-edit.php:51
545
  #: dashboard/publisher/adrotate-groups-main.php:32
546
  msgid "ID"
547
  msgstr "ID"
580
  msgstr "Надградете днес!"
581
 
582
  #: adrotate.php:502 dashboard/publisher/adrotate-ads-main-error.php:74
583
+ #: dashboard/publisher/adrotate-groups-edit.php:393
584
  msgid "Expires soon."
585
  msgstr "Изтича скоро."
586
 
587
  #: adrotate.php:503 dashboard/publisher/adrotate-ads-main-error.php:75
588
+ #: dashboard/publisher/adrotate-groups-edit.php:394
589
  msgid "Has expired."
590
  msgstr "Изтекла."
591
 
648
  "файловете, вместо \".full\"."
649
 
650
  #: adrotate.php:536 dashboard/publisher/adrotate-ads-edit.php:309
651
+ #: dashboard/publisher/adrotate-groups-edit.php:318
652
+ #: dashboard/publisher/adrotate-groups-edit.php:326
653
  msgid "Example:"
654
  msgstr "Пример:"
655
 
669
  msgid "Available banner images in"
670
  msgstr "Налични картинки за банери в"
671
 
672
+ #: adrotate.php:548 dashboard/publisher/adrotate-groups-edit.php:55
673
+ #: dashboard/publisher/adrotate-groups-main.php:33
674
  msgid "Name"
675
  msgstr "Име"
676
 
769
  msgid "Update Options"
770
  msgstr "Опции за обновяване"
771
 
772
+ #: adrotate.php:691 dashboard/publisher/adrotate-ads-edit.php:156
773
  msgid "Statistics"
774
  msgstr "Статистики"
775
 
777
  msgid "How to track stats"
778
  msgstr ""
779
 
780
+ #: adrotate.php:697 dashboard/publisher/adrotate-groups-edit.php:209
781
+ #: dashboard/publisher/adrotate-groups-edit.php:250
782
  msgid "Disabled"
783
  msgstr "Изключено"
784
 
1571
  msgstr "Редакция на реклама"
1572
 
1573
  #: dashboard/publisher/adrotate-ads-edit.php:115
1574
+ #: dashboard/publisher/adrotate-ads-main-disabled.php:37
1575
+ #: dashboard/publisher/adrotate-ads-main-error.php:41
1576
+ #: dashboard/publisher/adrotate-ads-main.php:41
1577
+ msgid "Title"
1578
+ msgstr "Заглавие"
1579
 
1580
  #: dashboard/publisher/adrotate-ads-edit.php:121
1581
+ msgid "AdCode"
1582
+ msgstr ""
1583
 
1584
  #: dashboard/publisher/adrotate-ads-edit.php:126
1585
  msgid "Basic Examples:"
1586
  msgstr "Основни примери:"
1587
 
1588
  #: dashboard/publisher/adrotate-ads-edit.php:133
1589
+ msgid "Useful tags"
1590
  msgstr ""
1591
 
1592
  #: dashboard/publisher/adrotate-ads-edit.php:135
1620
  msgstr ""
1621
 
1622
  #: dashboard/publisher/adrotate-ads-edit.php:139
1623
+ msgid "Banner image"
1624
+ msgstr ""
1625
 
1626
  #: dashboard/publisher/adrotate-ads-edit.php:142
1627
  msgid "WordPress media:"
1655
  "Използвайте падащото меню или текстовото поле. Ако текстовото поле е "
1656
  "попълнено, то ще бъде с преоритет."
1657
 
 
 
 
 
1658
  #: dashboard/publisher/adrotate-ads-edit.php:158
1659
  msgid "Enable click and impression tracking for this advert."
1660
  msgstr ""
1667
  msgstr ""
1668
 
1669
  #: dashboard/publisher/adrotate-ads-edit.php:165
1670
+ #: dashboard/publisher/adrotate-ads-main-disabled.php:21
1671
+ msgid "Activate"
1672
+ msgstr "Активиране"
1673
 
1674
  #: dashboard/publisher/adrotate-ads-edit.php:169
1675
  msgid "Yes, this ad will be used"
1682
  #: dashboard/publisher/adrotate-ads-edit.php:177
1683
  #: dashboard/publisher/adrotate-ads-main.php:114
1684
  #: dashboard/publisher/adrotate-groups-edit.php:75
1685
+ #: dashboard/publisher/adrotate-groups-main.php:91
1686
  msgid "Get more features with AdRotate Pro."
1687
  msgstr "Получете по-голяма функционалност с AdRotate Pro."
1688
 
1698
  #: dashboard/publisher/adrotate-ads-edit.php:396
1699
  #: dashboard/publisher/adrotate-ads-edit.php:437
1700
  #: dashboard/publisher/adrotate-groups-edit.php:154
1701
+ #: dashboard/publisher/adrotate-groups-edit.php:307
1702
+ #: dashboard/publisher/adrotate-groups-edit.php:399
1703
  msgid "Cancel"
1704
  msgstr "Отказ"
1705
 
1724
  #: dashboard/publisher/adrotate-ads-edit.php:199
1725
  #: dashboard/publisher/adrotate-ads-edit.php:378
1726
  #: dashboard/publisher/adrotate-groups-edit.php:136
1727
+ #: dashboard/publisher/adrotate-groups-edit.php:289
1728
  msgid "Usage"
1729
  msgstr "Употреба"
1730
 
1731
  #: dashboard/publisher/adrotate-ads-edit.php:203
1732
  #: dashboard/publisher/adrotate-ads-edit.php:382
1733
  #: dashboard/publisher/adrotate-groups-edit.php:140
1734
+ #: dashboard/publisher/adrotate-groups-edit.php:293
1735
+ msgid "Widget"
1736
  msgstr ""
1737
 
1738
  #: dashboard/publisher/adrotate-ads-edit.php:204
1745
  #: dashboard/publisher/adrotate-ads-edit.php:207
1746
  #: dashboard/publisher/adrotate-ads-edit.php:386
1747
  #: dashboard/publisher/adrotate-groups-edit.php:144
1748
+ #: dashboard/publisher/adrotate-groups-edit.php:297
1749