AdRotate Banner Manager - Version 5.0

Version Description

FREE = * [new] Advertising Partners dashboard * [update] Better localized dates for stats * [update] Dashboard formatting and layout

Download this release

Release Info

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

Code changes from version 4.15.2 to 5.0

adrotate.php CHANGED
@@ -7,7 +7,7 @@ Author URI: https://www.arnan.me/
7
Description: AdRotate Banner Manager - Monetise your website with adverts while keeping things simple. Start making money today!
8
Text Domain: adrotate
9
Domain Path: /languages/
10
- Version: 4.15.2
11
License: GPLv3
12
*/
13
@@ -22,7 +22,7 @@ License: GPLv3
22
------------------------------------------------------------------------------------ */
23
24
/*--- AdRotate values ---------------------------------------*/
25
- define("ADROTATE_DISPLAY", '4.15.2');
26
define("ADROTATE_VERSION", 392);
27
define("ADROTATE_DB_VERSION", 64);
28
$plugin_folder = plugin_dir_path(__FILE__);
@@ -382,8 +382,8 @@ function adrotate_statistics() {
382
$month = date("m");
383
$year = date("Y");
384
}
385
- $monthstart = mktime(0, 0, 0, $month, 1, $year);
386
- $monthend = mktime(0, 0, 0, $month+1, 0, $year);
387
$today = adrotate_date_start('day');
388
?>
389
<div class="wrap">
7
Description: AdRotate Banner Manager - Monetise your website with adverts while keeping things simple. Start making money today!
8
Text Domain: adrotate
9
Domain Path: /languages/
10
+ Version: 5.0
11
License: GPLv3
12
*/
13
22
------------------------------------------------------------------------------------ */
23
24
/*--- AdRotate values ---------------------------------------*/
25
+ define("ADROTATE_DISPLAY", '5.0');
26
define("ADROTATE_VERSION", 392);
27
define("ADROTATE_DB_VERSION", 64);
28
$plugin_folder = plugin_dir_path(__FILE__);
382
$month = date("m");
383
$year = date("Y");
384
}
385
+ $monthstart = get_date_from_gmt(gmmktime(0, 0, 0, $month, 1, $year), 'U');
386
+ $monthend = get_date_from_gmt(gmmktime(0, 0, 0, $month+1, 0, $year), 'U');
387
$today = adrotate_date_start('day');
388
?>
389
<div class="wrap">
dashboard/adrotatepro.php CHANGED
@@ -9,109 +9,104 @@
9
* liability that might arise from it's use.
10
------------------------------------------------------------------------------------ */
11
?>
12
- <div id="dashboard-widgets-wrap">
13
- <p><center>Take a peek into professional advertising for WordPress websites and discover how you can benefit from the powerful features <a href="https://ajdg.solutions/products/adrotate-for-wordpress/" target="_blank">AdRotate Professional</a> has to offer.</center></p>
14
15
<div id="dashboard-widgets" class="metabox-holder">
16
17
- <div id="postbox-container-1" class="postbox-container" style="width:50%;">
18
- <div id="normal-sortables" class="meta-box-sortables ui-sortable">
19
-
20
- <h3><?php _e('Satisfy your advertisers', 'adrotate'); ?></h3>
21
- <div class="postbox-ajdg">
22
- <div class="inside">
23
- <p><a href="https://ajdg.solutions/products/adrotate-for-wordpress/" target="_blank"><img src="<?php echo plugins_url('/images/pro/demo-satisfy.png', dirname(__FILE__)); ?>" class="alignleft pro-image" /></a><?php _e('Set up advertisers and let them log in to their statistics or even create their own adverts. Created adverts go into a moderation queue for your staff to review. Advertisers have access to their own little dashboard where they can see their adverts performance.', 'adrotate'); ?></p>
24
- </div>
25
</div>
26
27
- <h3><?php _e('Mobile campaigns', 'adrotate'); ?></h3>
28
- <div class="postbox-ajdg">
29
- <div class="inside">
30
- <p><a href="https://ajdg.solutions/products/adrotate-for-wordpress/" target="_blank"><img src="<?php echo plugins_url('/images/pro/demo-mobile.png', dirname(__FILE__)); ?>" class="alignleft pro-image" /></a><?php _e('Target mobile users with ease and show the right adverts to smartphones, tablets and computers. Mix and match as you please and offer adverts that suit the device or mobile operating system. Create as many mobile adverts as you want without effort and with a few easy to use options they show up where you want them to!', 'adrotate'); ?></p>
31
- </div>
32
</div>
33
34
- <h3><?php _e('Localize your ad campaigns with Geo Targeting', 'adrotate'); ?></h3>
35
- <div class="postbox-ajdg">
36
- <div class="inside">
37
- <p><a href="https://ajdg.solutions/products/adrotate-for-wordpress/" target="_blank"><img src="<?php echo plugins_url('/images/pro/demo-geo-targeting.png', dirname(__FILE__)); ?>" class="alignleft pro-image" /></a><?php _e('Go nationwide or global with localized adverts for your various audiences. Set up adverts for countries and cities and sell impressions per general area. Connect your site to MaxMind GeoIP2: Precision or AdRotate Geo. AdRotate Geo is an exclusive Geo Lookup service for AdRotate Pro users.', 'adrotate'); ?></p>
38
- </div>
39
</div>
40
41
- <h3><?php _e('Get Fast Support almost all year round', 'adrotate'); ?></h3>
42
- <div class="postbox-ajdg">
43
- <div class="inside">
44
- <p><a href="https://ajdg.solutions/products/adrotate-for-wordpress/" target="_blank"><img src="<?php echo plugins_url('/images/pro/demo-support.png', dirname(__FILE__)); ?>" class="alignleft pro-image" /></a><?php _e('When you activate your AdRotate Pro license you can use the more personal email support. No more queueing up in the forums. AdRotate support takes priority over the forums and is checked once or twice a day. Get a solution (usually) within two business days.', 'adrotate'); ?></p>
45
- </div>
46
</div>
47
48
- <h3><?php _e('AdRotate is brought to you by', 'adrotate'); ?></h3>
49
- <div class="postbox-ajdg">
50
- <div class="inside">
51
- <p><center><a href="https://www.arnan.me" title="Visit Arnan's website" target="_blank"><img src="<?php echo plugins_url("/images/buttons/1.png", dirname(__FILE__)); ?>" alt="Arnan de Gans website" /></a><a href="https://ajdg.solutions" title="Visit the AdRotate website" target="_blank"><img src="<?php echo plugins_url("/images/buttons/2.png", dirname(__FILE__)); ?>" alt="AJdG Solutions website" /></a><a href="https://www.facebook.com/ajdgsolutions/" title="AJdG Solutions on Facebook" target="_blank"><img src="<?php echo plugins_url("/images/buttons/4.png", dirname(__FILE__)); ?>" alt="AJdG Solutions on Facebook" /></a></center></p>
52
- </div>
53
</div>
54
-
55
</div>
56
- </div>
57
58
- <div id="postbox-container-3" class="postbox-container" style="width:50%;">
59
- <div id="side-sortables" class="meta-box-sortables ui-sortable">
60
61
- <h3><?php _e('Schedule all campaigns with ease', 'adrotate'); ?></h3>
62
- <div class="postbox-ajdg">
63
- <div class="inside">
64
- <p><a href="https://ajdg.solutions/products/adrotate-for-wordpress/" target="_blank"><img src="<?php echo plugins_url('/images/pro/demo-schedule.png', dirname(__FILE__)); ?>" class="alignleft pro-image" /></a><?php _e('Schedule your adverts and set up advertising campaigns based on dates you or your advertisers specify without hassle. Seasonal adverts, weekly adverts, specific days in the week. You name it, AdRotate schedules it. This makes planning your revenue stream very flexible. You can set one or many schedules for adverts.', 'adrotate'); ?></p>
65
- </div>
66
</div>
67
68
- <h3><?php _e('Avoid adblockers', 'adrotate'); ?></h3>
69
- <div class="postbox-ajdg">
70
- <div class="inside">
71
- <p><a href="https://ajdg.solutions/products/adrotate-for-wordpress/" target="_blank"><img src="<?php echo plugins_url('/images/pro/demo-adblock.png', dirname(__FILE__)); ?>" class="alignleft pro-image" /></a><?php _e('Try and avoid adblockers so your adverts get the exposure you want them to have. AdRotate Pro offers some advanced tools to deceive adblockers so your adverts are less likely to be removed. Of-course make sure you create your adverts smartly so these features reach their full potential!', 'adrotate'); ?></p>
72
- </div>
73
</div>
74
75
- <h3><?php _e('Stay up-to-date with notifications', 'adrotate'); ?></h3>
76
- <div class="postbox-ajdg">
77
- <div class="inside">
78
- <p><a href="https://ajdg.solutions/products/adrotate-for-wordpress/" target="_blank"><img src="<?php echo plugins_url('/images/pro/demo-notifications.png', dirname(__FILE__)); ?>" class="alignleft pro-image" /></a><?php _e('Stay in touch with Email notifications. Have AdRotate send you an alert when adverts expire or need your attention. Get notified when adverts expire, have errors or when advertisers create new adverts. Select up to three email addresses to be notified. Never miss an expiration date again.', 'adrotate'); ?></p>
79
- </div>
80
</div>
81
82
- <h3><?php _e('Buy AdRotate Professional', 'adrotate'); ?></h3>
83
- <div class="postbox-ajdg">
84
- <div class="inside">
85
- <a href="https://ajdg.solutions/products/adrotate-for-wordpress/"><img src="<?php echo plugins_url('/images/adrotate-product.png', dirname(__FILE__)); ?>" alt="adrotate-product" width="150" height="150" align="right" style="padding: 0 0 10px 10px;" /></a>
86
- <p><h4><?php _e('Single License', 'adrotate'); ?> (&euro; 29.00)</h4><?php _e('One WordPress installation.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1124" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
87
- <p><h4><?php _e('Duo License', 'adrotate'); ?> (&euro; 39.00)</h4><?php _e('Two WordPress installations.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1126" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
88
- <p><h4><?php _e('Multi License', 'adrotate'); ?> (&euro; 89.00)</h4><?php _e('Five WordPress installations.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1128" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
89
- <p><h4><?php _e('Developer License', 'adrotate'); ?> (&euro; 199.00)</h4><?php _e('Unlimited WordPress installations and/or networks.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1130" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
90
- <p><h4><?php _e('Compare licenses', 'adrotate'); ?></h4> <?php _e('Not sure which license is for you? Compare them...', 'adrotate'); ?> <a href="https://ajdg.solutions/products/adrotate-for-wordpress/" target="_blank"><?php _e('All Licenses', 'adrotate'); ?> &raquo;</a></p>
91
- </div>
92
</div>
93
<!--
94
- <h3><?php _e('Buy AdRotate Professional', 'adrotate'); ?></h3>
95
- <div class="postbox-ajdg">
96
- <div class="inside">
97
- <img src="<?php echo WP_CONTENT_URL; ?>/plugins/adrotate/images/adrotate-product.png" alt="adrotate-product" width="150" height="150" align="right" style="padding: 0 0 10px 10px;" />
98
- <p><h4><?php _e('Lifetime License', 'adrotate'); ?> (&euro; 59.00)</h4><?php _e('Single installation.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1124" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
99
- <p><h4><?php _e('Duo License', 'adrotate'); ?> (&euro; 29.00 p/year)</h4><?php _e('Up to 2 installations.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1126" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
100
- <p><h4><?php _e('Multi License', 'adrotate'); ?> (&euro; 99.00 p/year)</h4><?php _e('Up to 10 installations.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1128" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
101
- <p><h4><?php _e('Developer License', 'adrotate'); ?> (&euro; 199.00 p/year)</h4><?php _e('Up to 25 installations or multisite networks.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1130" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
102
- <p><em><?php _e('Subscriptions get 1 year access to updates, email support & AdRotate Geo.', 'adrotate'); ?></em></p>
103
- <p><h4><?php _e('Compare licenses', 'adrotate'); ?></h4> <?php _e("Not sure which license is for you?", 'adrotate'); ?> <a href="https://ajdg.solutions/products/adrotate-for-wordpress/" target="_blank"><?php _e('Compare Licenses', 'adrotate'); ?> &raquo;</a></p>
104
- </div>
105
</div>
106
-->
107
108
- </div>
109
</div>
110
-
111
</div>
112
113
- <div class="clear"></div>
114
115
- <p><center>A grasp of the features AdRotate Pro has to offer over the free version. Check out the <a href="https://ajdg.solutions/products/adrotate-for-wordpress/" target="_blank">AdRotate website</a> for more information.</center></p>
116
- <p><?php echo adrotate_trademark(); ?></p>
117
- </div>
9
* liability that might arise from it's use.
10
------------------------------------------------------------------------------------ */
11
?>
12
+ <p><center>Take a peek into professional advertising for WordPress websites and discover how you can benefit from the powerful features <a href="https://ajdg.solutions/products/adrotate-for-wordpress/" target="_blank">AdRotate Professional</a> has to offer.</center></p>
13
14
+ <div id="dashboard-widgets-wrap">
15
<div id="dashboard-widgets" class="metabox-holder">
16
+ <div id="left-column" class="postbox-container">
17
18
+ <div class="ajdg-postbox">
19
+ <h2 class="ajdg-postbox-title"><?php _e('Satisfy your advertisers', 'adrotate'); ?></h2>
20
+ <div id="satisfaction" class="ajdg-postbox-content">
21
+ <p><a href="https://ajdg.solutions/products/adrotate-for-wordpress/" target="_blank"><img src="<?php echo plugins_url('/images/pro/demo-satisfy.png', dirname(__FILE__)); ?>" class="alignleft pro-image" /></a><?php _e('Set up advertisers and let them log in to their statistics or even create their own adverts. Created adverts go into a moderation queue for your staff to review. Advertisers have access to their own little dashboard where they can see their adverts performance.', 'adrotate'); ?></p>
22
</div>
23
+ </div>
24
25
+ <div class="ajdg-postbox">
26
+ <h2 class="ajdg-postbox-title"><?php _e('Mobile campaigns', 'adrotate'); ?></h2>
27
+ <div id="mobile" class="ajdg-postbox-content">
28
+ <p><a href="https://ajdg.solutions/products/adrotate-for-wordpress/" target="_blank"><img src="<?php echo plugins_url('/images/pro/demo-mobile.png', dirname(__FILE__)); ?>" class="alignleft pro-image" /></a><?php _e('Target mobile users with ease and show the right adverts to smartphones, tablets and computers. Mix and match as you please and offer adverts that suit the device or mobile operating system. Create as many mobile adverts as you want without effort and with a few easy to use options they show up where you want them to!', 'adrotate'); ?></p>
29
</div>
30
+ </div>
31
32
+ <div class="ajdg-postbox">
33
+ <h2 class="ajdg-postbox-title"><?php _e('Localize your ad campaigns with Geo Targeting', 'adrotate'); ?></h2>
34
+ <div id="geo-targeting" class="ajdg-postbox-content">
35
+ <p><a href="https://ajdg.solutions/products/adrotate-for-wordpress/" target="_blank"><img src="<?php echo plugins_url('/images/pro/demo-geo-targeting.png', dirname(__FILE__)); ?>" class="alignleft pro-image" /></a><?php _e('Go nationwide or global with localized adverts for your various audiences. Set up adverts for countries and cities and sell impressions per general area. Connect your site to MaxMind GeoIP2: Precision or AdRotate Geo. AdRotate Geo is an exclusive Geo Lookup service for AdRotate Pro users.', 'adrotate'); ?></p>
36
</div>
37
+ </div>
38
39
+ <div class="ajdg-postbox">
40
+ <h2 class="ajdg-postbox-title"><?php _e('Get Fast Support almost all year round', 'adrotate'); ?></h2>
41
+ <div id="support" class="ajdg-postbox-content">
42
+ <p><a href="https://ajdg.solutions/products/adrotate-for-wordpress/" target="_blank"><img src="<?php echo plugins_url('/images/pro/demo-support.png', dirname(__FILE__)); ?>" class="alignleft pro-image" /></a><?php _e('When you activate your AdRotate Pro license you can use the more personal email support. No more queueing up in the forums. AdRotate support takes priority over the forums and is checked once or twice a day. Get a solution (usually) within two business days.', 'adrotate'); ?></p>
43
</div>
44
+ </div>
45
46
+ <div class="ajdg-postbox">
47
+ <h2 class="ajdg-postbox-title"><?php _e('AdRotate is brought to you by', 'adrotate'); ?></h2>
48
+ <div id="developed-by" class="ajdg-postbox-content">
49
+ <p><?php _e('AdRotate Pro is developed by Arnan de Gans, while primarily making WordPress plugins Arnan is also available as a freelance developer for all kinds of WordPress related things and he makes HTML Profile pages. Check out his websites via the links below or check out Arnan his Facebook profile.', 'adrotate'); ?></p>
50
+ <p><center><a href="https://www.arnan.me" title="Visit Arnan's website" target="_blank"><img src="<?php echo plugins_url("/images/buttons/1.png", dirname(__FILE__)); ?>" alt="Arnan de Gans website" /></a><a href="https://ajdg.solutions" title="Visit the AdRotate website" target="_blank"><img src="<?php echo plugins_url("/images/buttons/2.png", dirname(__FILE__)); ?>" alt="AJdG Solutions website" /></a><a href="https://www.facebook.com/ajdgsolutions/" title="AJdG Solutions on Facebook" target="_blank"><img src="<?php echo plugins_url("/images/buttons/4.png", dirname(__FILE__)); ?>" alt="AJdG Solutions on Facebook" /></a></center></p>
51
</div>
52
</div>
53
54
+ </div>
55
+ <div id="right-column" class="postbox-container">
56
57
+ <div class="ajdg-postbox">
58
+ <h2 class="ajdg-postbox-title"><?php _e('Schedule all campaigns with ease', 'adrotate'); ?></h2>
59
+ <div id="schedules" class="ajdg-postbox-content">
60
+ <p><a href="https://ajdg.solutions/products/adrotate-for-wordpress/" target="_blank"><img src="<?php echo plugins_url('/images/pro/demo-schedule.png', dirname(__FILE__)); ?>" class="alignleft pro-image" /></a><?php _e('Schedule your adverts and set up advertising campaigns based on dates you or your advertisers specify without hassle. Seasonal adverts, weekly adverts, specific days in the week. You name it, AdRotate schedules it. This makes planning your revenue stream very flexible. You can set one or many schedules for adverts.', 'adrotate'); ?></p>
61
</div>
62
+ </div>
63
64
+ <div class="ajdg-postbox">
65
+ <h2 class="ajdg-postbox-title"><?php _e('Avoid adblockers', 'adrotate'); ?></h2>
66
+ <div id="adblockers" class="ajdg-postbox-content">
67
+ <p><a href="https://ajdg.solutions/products/adrotate-for-wordpress/" target="_blank"><img src="<?php echo plugins_url('/images/pro/demo-adblock.png', dirname(__FILE__)); ?>" class="alignleft pro-image" /></a><?php _e('Try and avoid adblockers so your adverts get the exposure you want them to have. AdRotate Pro offers some advanced tools to deceive adblockers so your adverts are less likely to be removed. Of-course make sure you create your adverts smartly so these features reach their full potential!', 'adrotate'); ?></p>
68
</div>
69
+ </div>
70
71
+ <div class="ajdg-postbox">
72
+ <h2 class="ajdg-postbox-title"><?php _e('Stay up-to-date with notifications', 'adrotate'); ?></h2>
73
+ <div id="notifications" class="ajdg-postbox-content">
74
+ <p><a href="https://ajdg.solutions/products/adrotate-for-wordpress/" target="_blank"><img src="<?php echo plugins_url('/images/pro/demo-notifications.png', dirname(__FILE__)); ?>" class="alignleft pro-image" /></a><?php _e('Stay in touch with Email notifications. Have AdRotate send you an alert when adverts expire or need your attention. Get notified when adverts expire, have errors or when advertisers create new adverts. Select up to three email addresses to be notified. Never miss an expiration date again.', 'adrotate'); ?></p>
75
</div>
76
+ </div>
77
78
+ <div class="ajdg-postbox">
79
+ <h2 class="ajdg-postbox-title"><?php _e('Buy AdRotate Professional', 'adrotate'); ?></h2>
80
+ <div id="get-pro" class="ajdg-postbox-content">
81
+ <p><a href="https://ajdg.solutions/products/adrotate-for-wordpress/" target="_blank"><img src="<?php echo plugins_url('/images/logo-60x60.png', dirname(__FILE__)); ?>" class="alignleft pro-image" /></a><?php _e('AdRotate Pro has a whole lote more functions for even better advertising management. Some of which are highlighted on this page. Check out the feature comparison page to see what AdRotate Pro has to offer for you!', 'adrotate'); ?></p>
82
+ <a href="https://ajdg.solutions/products/adrotate-for-wordpress/"><img src="<?php echo plugins_url('/images/adrotate-product.png', dirname(__FILE__)); ?>" alt="adrotate-product" width="150" height="150" align="right" style="padding: 0 0 10px 10px;" /></a>
83
+ <p><h4><?php _e('Single License', 'adrotate'); ?> (&euro; 29.00)</h4><?php _e('One WordPress installation.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1124" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
84
+ <p><h4><?php _e('Duo License', 'adrotate'); ?> (&euro; 39.00)</h4><?php _e('Two WordPress installations.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1126" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
85
+ <p><h4><?php _e('Multi License', 'adrotate'); ?> (&euro; 89.00)</h4><?php _e('Five WordPress installations.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1128" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
86
+ <p><h4><?php _e('Developer License', 'adrotate'); ?> (&euro; 199.00)</h4><?php _e('Unlimited WordPress installations and/or networks.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1130" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
87
+ <p><h4><?php _e('Compare licenses', 'adrotate'); ?></h4> <?php _e('Not sure which license is for you? Compare them...', 'adrotate'); ?> <a href="https://ajdg.solutions/products/adrotate-for-wordpress/" target="_blank"><?php _e('All Licenses', 'adrotate'); ?> &raquo;</a></p>
88
</div>
89
+ </div>
90
<!--
91
+ <div class="ajdg-postbox">
92
+ <h2 class="ajdg-postbox-title"><?php _e('Buy AdRotate Professional', 'adrotate'); ?></h2>
93
+ <div id="get-pro" class="ajdg-postbox-content">
94
+ <img src="<?php echo WP_CONTENT_URL; ?>/plugins/adrotate/images/adrotate-product.png" alt="adrotate-product" width="150" height="150" align="right" style="padding: 0 0 10px 10px;" />
95
+ <p><h4><?php _e('Lifetime License', 'adrotate'); ?> (&euro; 59.00)</h4><?php _e('Single installation.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1124" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
96
+ <p><h4><?php _e('Duo License', 'adrotate'); ?> (&euro; 29.00 p/year)</h4><?php _e('Up to 2 installations.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1126" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
97
+ <p><h4><?php _e('Multi License', 'adrotate'); ?> (&euro; 99.00 p/year)</h4><?php _e('Up to 10 installations.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1128" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
98
+ <p><h4><?php _e('Developer License', 'adrotate'); ?> (&euro; 199.00 p/year)</h4><?php _e('Up to 25 installations or multisite networks.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1130" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
99
+ <p><em><?php _e('Subscriptions get 1 year access to updates, email support & AdRotate Geo.', 'adrotate'); ?></em></p>
100
+ <p><h4><?php _e('Compare licenses', 'adrotate'); ?></h4> <?php _e("Not sure which license is for you?", 'adrotate'); ?> <a href="https://ajdg.solutions/products/adrotate-for-wordpress/" target="_blank"><?php _e('Compare Licenses', 'adrotate'); ?> &raquo;</a></p>
101
</div>
102
+ </div>
103
-->
104
105
</div>
106
</div>
107
+ </div>
108
109
+ <div class="clear"></div>
110
111
+ <p><center>A grasp of the features AdRotate Pro has to offer over the free version. Check out the <a href="https://ajdg.solutions/products/adrotate-for-wordpress/" target="_blank">AdRotate website</a> for more information.</center></p>
112
+ <p><?php echo adrotate_trademark(); ?></p>
dashboard/info.php CHANGED
@@ -17,110 +17,135 @@ $data = get_option("adrotate_advert_status");
17
// Random banner for Media.net
18
$partner = mt_rand(1,3);
19
?>
20
-
21
<div id="dashboard-widgets-wrap">
22
<div id="dashboard-widgets" class="metabox-holder">
23
-
24
- <div id="postbox-container-1" class="postbox-container" style="width:50%;">
25
- <div id="normal-sortables" class="meta-box-sortables ui-sortable">
26
-
27
- <h3><?php _e('Currently', 'adrotate'); ?></h3>
28
- <div class="postbox-ajdg">
29
- <div class="inside">
30
- <table width="100%">
31
- <thead>
32
- <tr class="first">
33
- <td width="50%"><strong><?php _e('Your setup', 'adrotate'); ?></strong></td>
34
- <td width="50%"><strong><?php _e('Adverts that need you', 'adrotate'); ?></strong></td>
35
- </tr>
36
- </thead>
37
-
38
- <tbody>
39
- <tr class="first">
40
- <td class="first b"><a href="admin.php?page=adrotate-ads"><?php echo $banners; ?> <?php _e('Adverts', 'adrotate'); ?></a></td>
41
- <td class="b"><a href="admin.php?page=adrotate-ads"><?php echo $data['expiressoon'] + $data['expired']; ?> <?php _e('(Almost) Expired', 'adrotate'); ?></a></td>
42
- </tr>
43
- <tr>
44
- <td class="first b"><a href="admin.php?page=adrotate-groups"><?php echo $groups; ?> <?php _e('Groups', 'adrotate'); ?></a></td>
45
- <td class="b"><a href="admin.php?page=adrotate-ads"><?php echo $data['error']; ?> <?php _e('Have errors', 'adrotate'); ?></a></td>
46
- </tr>
47
- <tr>
48
- <td colspan="2">
49
- <p><strong><?php _e('Support AdRotate', 'adrotate'); ?></strong></p>
50
- <p><?php _e('Consider writing a review if you like AdRotate. Also follow my Facebook page for updates about me and my plugins. Thank you!', 'adrotate'); ?><br />
51
- <center><a class="button-primary" href="https://paypal.me/arnandegans/10usd" target="_blank">Donate $10 via Paypal</a> <a class="button" target="_blank" href="https://wordpress.org/support/plugin/adrotate/reviews/?rate=5#new-post">Write review on WordPress.org</a></center></p>
52
- </td>
53
- </tr>
54
- </tbody>
55
- </table>
56
- </div>
57
</div>
58
59
- <h3><?php _e('Arnan de Gans News & Updates', 'adrotate'); ?></h3>
60
- <div class="postbox-ajdg">
61
- <div class="inside">
62
- <p><center><a href="https://www.arnan.me" title="Visit Arnan's website" target="_blank"><img src="<?php echo plugins_url("/images/buttons/1.png", dirname(__FILE__)); ?>" alt="Arnan de Gans website" /></a><a href="https://ajdg.solutions" title="Visit the AdRotate website" target="_blank"><img src="<?php echo plugins_url("/images/buttons/2.png", dirname(__FILE__)); ?>" alt="AJdG Solutions website" /></a><a href="https://www.facebook.com/ajdgsolutions/" title="AJdG Solutions on Facebook" target="_blank"><img src="<?php echo plugins_url("/images/buttons/4.png", dirname(__FILE__)); ?>" alt="AJdG Solutions on Facebook" /></a></center></p>
63
- <?php wp_widget_rss_output(array(
64
- 'url' => 'http://ajdg.solutions/feed/',
65
- 'items' => 3,
66
- 'show_summary' => 1,
67
- 'show_author' => 0,
68
- 'show_date' => 1)
69
- ); ?>
70
- </div>
71
</div>
72
73
- <h3><?php _e('Sponsored offers', 'adrotate'); ?></h3>
74
- <div class="postbox-ajdg">
75
- <div class="inside">
76
- <p><center><a rel="nofollow" href="https://ajdg.solutions/go/dropbox/"><img src="<?php echo plugins_url("/images/offers/dropbox.jpg", dirname(__FILE__)); ?>" width="440" alt="Dropbox.com"></a></center></p>
77
- <p><center><a rel="nofollow" href="https://ajdg.solutions/go/namecheap/"><img src="<?php echo plugins_url("/images/offers/namecheap-ssl.jpg", dirname(__FILE__)); ?>" width="440" alt="Namecheap.com"></a></center></p>
78
-
79
- <center><small><em><?php _e('These are affiliate banners, clicking them costs you nothing but it helps me and AdRotate a lot!', 'adrotate'); ?></em></small></center>
80
81
- </div>
82
</div>
83
-
84
</div>
85
</div>
86
87
- <div id="postbox-container-3" class="postbox-container" style="width:50%;">
88
- <div id="side-sortables" class="meta-box-sortables ui-sortable">
89
-
90
- <h3><?php _e('Buy AdRotate Professional', 'adrotate'); ?></h3>
91
- <div class="postbox-ajdg">
92
- <div class="inside">
93
- <a href="https://ajdg.solutions/products/adrotate-for-wordpress/"><img src="<?php echo plugins_url('/images/adrotate-product.png', dirname(__FILE__)); ?>" alt="adrotate-product" width="150" height="150" align="right" style="padding: 0 0 10px 10px;" /></a>
94
- <p><h4><?php _e('Single License', 'adrotate'); ?> (&euro; 29.00)</h4><?php _e('One WordPress installation.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1124" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
95
- <p><h4><?php _e('Duo License', 'adrotate'); ?> (&euro; 39.00)</h4><?php _e('Two WordPress installations.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1126" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
96
- <p><h4><?php _e('Multi License', 'adrotate'); ?> (&euro; 89.00)</h4><?php _e('Five WordPress installations.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1128" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
97
- <p><h4><?php _e('Developer License', 'adrotate'); ?> (&euro; 199.00)</h4><?php _e('Unlimited WordPress installations and/or networks.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1130" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
98
- <p><h4><?php _e('Compare licenses', 'adrotate'); ?></h4> <?php _e('Not sure which license is for you? Compare them...', 'adrotate'); ?> <a href="https://ajdg.solutions/products/adrotate-for-wordpress/" target="_blank"><?php _e('All Licenses', 'adrotate'); ?> &raquo;</a></p>
99
- </div>
100
- </div>
101
102
- <h3><?php _e('Join the Media.net advertising network', 'adrotate'); ?></h3>
103
- <div class="postbox-ajdg">
104
- <div class="inside">
105
- <center><a href="https://ajdg.solutions/go/medianet/" target="_blank"><img src="<?php echo plugins_url("/images/offers/medianet-large-$partner.jpg", dirname(__FILE__)); ?>" width="440" /></a></center>
106
- <p><a href="https://ajdg.solutions/go/medianet/" target="_blank">Media.net</a> is the <strong>#2 largest contextual ads platform</strong> in the world that provides its publishers with an <strong>exclusive access to the Yahoo! Bing Network of advertisers and $6bn worth of search demand.</strong></p>
107
108
- <p><a href="https://ajdg.solutions/go/medianet/" target="_blank">Media.net</a> <strong>ads are contextual</strong> and hence always relevant to your content. They are also <strong>native by design</strong> and highly customizable, delivering a great user experience and higher CTRs.</p>
109
110
- <strong><u>Exclusive offer for AdRotate users</u></strong>
111
- <p>As an AdRotate user, sign up with <a href="https://ajdg.solutions/go/medianet/" target="_blank">Media.net</a> and you'll earn 10% more, over and above your regular earnings for your first 3 months.</p>
112
-
113
- <p><a class="button-primary" href="https://ajdg.solutions/go/medianet/" target="_blank">Sign up with Media.net now &raquo;</a>&nbsp;&nbsp;<a class="button" target="_blank" href="https://ajdg.solutions/go/medianet/">Learn more &raquo;</a></p>
114
- </div>
115
</div>
116
117
- </div>
118
</div>
119
120
- </div>
121
-
122
- <div class="clear"></div>
123
124
- <p><?php echo adrotate_trademark(); ?></p>
125
126
- </div>
17
// Random banner for Media.net
18
$partner = mt_rand(1,3);
19
?>
20
<div id="dashboard-widgets-wrap">
21
<div id="dashboard-widgets" class="metabox-holder">
22
+ <div id="left-column" class="postbox-container">
23
+
24
+ <div class="ajdg-postbox">
25
+ <h2 class="ajdg-postbox-title"><?php _e('Currently', 'adrotate'); ?></h2>
26
+ <div id="currently" class="ajdg-postbox-content">
27
+ <table width="100%">
28
+ <thead>
29
+ <tr class="first">
30
+ <td width="50%"><strong><?php _e('Your setup', 'adrotate'); ?></strong></td>
31
+ <td width="50%"><strong><?php _e('Adverts that need you', 'adrotate'); ?></strong></td>
32
+ </tr>
33
+ </thead>
34
+
35
+ <tbody>
36
+ <tr class="first">
37
+ <td class="first b"><a href="admin.php?page=adrotate-ads"><?php echo $banners; ?> <?php _e('Adverts', 'adrotate'); ?></a></td>
38
+ <td class="b"><a href="admin.php?page=adrotate-ads"><?php echo $data['expiressoon'] + $data['expired']; ?> <?php _e('(Almost) Expired', 'adrotate'); ?></a></td>
39
+ </tr>
40
+ <tr>
41
+ <td class="first b"><a href="admin.php?page=adrotate-groups"><?php echo $groups; ?> <?php _e('Groups', 'adrotate'); ?></a></td>
42
+ <td class="b"><a href="admin.php?page=adrotate-ads"><?php echo $data['error']; ?> <?php _e('Have errors', 'adrotate'); ?></a></td>
43
+ </tr>
44
+ <tr>
45
+ <td colspan="2">
46
+ <p><strong><?php _e('Support AdRotate', 'adrotate'); ?></strong></p>
47
+ <p><?php _e('Consider writing a review if you like AdRotate. Also follow my Facebook page for updates about me and my plugins. Thank you!', 'adrotate'); ?><br />
48
+ <center><a class="button-primary" href="https://paypal.me/arnandegans/10usd" target="_blank">Donate $10 via Paypal</a> <a class="button" target="_blank" href="https://wordpress.org/support/plugin/adrotate/reviews/?rate=5#new-post">Write review on WordPress.org</a></center></p>
49
+ </td>
50
+ </tr>
51
+ </tbody>
52
+ </table>
53
</div>
54
+ </div>
55
56
+ <div class="ajdg-postbox">
57
+ <h2 class="ajdg-postbox-title"><?php _e('Buy AdRotate Professional', 'adrotate'); ?></h2>
58
+ <div id="get-pro" class="ajdg-postbox-content">
59
+ <p><a href="https://ajdg.solutions/products/adrotate-for-wordpress/" target="_blank"><img src="<?php echo plugins_url('/images/logo-60x60.png', dirname(__FILE__)); ?>" class="alignleft pro-image" /></a><?php _e('AdRotate Pro has a whole lote more functions for even better advertising management. Check out the feature comparison page to see what AdRotate Pro has to offer for you!', 'adrotate'); ?></p>
60
+ <a href="https://ajdg.solutions/products/adrotate-for-wordpress/"><img src="<?php echo plugins_url('/images/adrotate-product.png', dirname(__FILE__)); ?>" alt="adrotate-product" width="150" height="150" align="right" style="padding: 0 0 10px 10px;" /></a>
61
+ <p><h4><?php _e('Single License', 'adrotate'); ?> (&euro; 29.00)</h4><?php _e('One WordPress installation.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1124" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
62
+ <p><h4><?php _e('Duo License', 'adrotate'); ?> (&euro; 39.00)</h4><?php _e('Two WordPress installations.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1126" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
63
+ <p><h4><?php _e('Multi License', 'adrotate'); ?> (&euro; 89.00)</h4><?php _e('Five WordPress installations.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1128" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
64
+ <p><h4><?php _e('Developer License', 'adrotate'); ?> (&euro; 199.00)</h4><?php _e('Unlimited WordPress installations and/or networks.', 'adrotate'); ?> <a href="https://ajdg.solutions/cart/?add-to-cart=1130" target="_blank"><?php _e('Buy now', 'adrotate'); ?> &raquo;</a></p>
65
+ <p><h4><?php _e('Compare licenses', 'adrotate'); ?></h4> <?php _e('Not sure which license is for you? Compare them...', 'adrotate'); ?> <a href="https://ajdg.solutions/products/adrotate-for-wordpress/" target="_blank"><?php _e('All Licenses', 'adrotate'); ?> &raquo;</a></p>
66
</div>
67
+ </div>
68
69
+ </div>
70
+ <div id="right-column" class="postbox-container">
71
72
+ <div class="ajdg-postbox">
73
+ <h2 class="ajdg-postbox-title"><?php _e('News & Updates', 'adrotate'); ?></h2>
74
+ <div id="news" class="ajdg-postbox-content">
75
+ <p><center><a href="https://www.arnan.me" title="Visit Arnan's website" target="_blank"><img src="<?php echo plugins_url("/images/buttons/1.png", dirname(__FILE__)); ?>" alt="Arnan de Gans website" /></a><a href="https://ajdg.solutions" title="Visit the AdRotate website" target="_blank"><img src="<?php echo plugins_url("/images/buttons/2.png", dirname(__FILE__)); ?>" alt="AJdG Solutions website" /></a><a href="https://www.facebook.com/ajdgsolutions/" title="AJdG Solutions on Facebook" target="_blank"><img src="<?php echo plugins_url("/images/buttons/4.png", dirname(__FILE__)); ?>" alt="AJdG Solutions on Facebook" /></a></center></p>
76
+ <?php wp_widget_rss_output(array(
77
+ 'url' => 'http://ajdg.solutions/feed/',
78
+ 'items' => 5,
79
+ 'show_summary' => 1,
80
+ 'show_author' => 0,
81
+ 'show_date' => 1)
82
+ ); ?>
83
</div>
84
</div>
85
+
86
</div>
87
+ </div>
88
+ </div>
89
90
+ <div class="clear"></div>
91
92
+ <hr>
93
+ <h1><?php _e('Advertising Partners & Affiliates', 'adrotate'); ?></h1>
94
+ <em><?php _e('A selection of quality advertiser networks and useful products. If you need adverts or just want more or more diverse adverts. Check out these great options!', 'adrotate'); ?></em>
95
96
+ <div id="dashboard-widgets-wrap">
97
+ <div id="dashboard-widgets" class="metabox-holder">
98
+ <div id="left-column" class="postbox-container">
99
+
100
+ <div class="ajdg-postbox">
101
+ <h2 class="ajdg-postbox-title"><?php _e('Join the Media.net advertising network', 'adrotate'); ?></h2>
102
+ <div id="medianet" class="ajdg-postbox-content">
103
+ <center><a href="https://ajdg.solutions/go/medianet/" target="_blank"><img src="<?php echo plugins_url("/images/offers/medianet-large-$partner.jpg", dirname(__FILE__)); ?>" width="440" /></a></center>
104
+ <p><a href="https://ajdg.solutions/go/medianet/" target="_blank">Media.net</a> is the <strong>#2 largest contextual ads platform</strong> in the world that provides its publishers with an <strong>exclusive access to the Yahoo! Bing Network of advertisers and $6bn worth of search demand.</strong></p>
105
+
106
+ <p><a href="https://ajdg.solutions/go/medianet/" target="_blank">Media.net</a> <strong>ads are contextual</strong> and hence always relevant to your content. They are also <strong>native by design</strong> and highly customizable, delivering a great user experience and higher CTRs.</p>
107
+
108
+ <strong><u>Exclusive offer for AdRotate users</u></strong>
109
+ <p>As an AdRotate user, sign up with <a href="https://ajdg.solutions/go/medianet/" target="_blank">Media.net</a> and you'll earn 10% more, over and above your regular earnings for your first 3 months. <strong>Sign up now!</strong></p>
110
+
111
+ <p><a class="button-primary" href="https://ajdg.solutions/go/medianet/" target="_blank">Sign up with Media.net &raquo;</a>&nbsp;&nbsp;<a class="button" target="_blank" href="https://ajdg.solutions/go/medianet/">Learn more &raquo;</a></p>
112
+ </div>
113
+ </div>
114
115
+ <div class="ajdg-postbox">
116
+ <h2 class="ajdg-postbox-title"><?php _e('DropBox online storage solutions', 'adrotate'); ?></h2>
117
+ <div id="dropbox" class="ajdg-postbox-content">
118
+ <p>Easily share and synchronise files between computers and devices. Get a FREE account today and get started within minutes. I use Dropbox to for many development purposes as a sort of back-up. But also to sync important documents to my phone for immigration services and hotel bookings.</p>
119
+ <p><center><a rel="nofollow" href="https://ajdg.solutions/go/dropbox/"><img src="<?php echo plugins_url("/images/offers/dropbox.jpg", dirname(__FILE__)); ?>" width="440" alt="Dropbox.com"></a></center></p>
120
</div>
121
+ </div>
122
123
</div>
124
+ <div id="right-column" class="postbox-container">
125
+
126
+ <div class="ajdg-postbox">
127
+ <h2 class="ajdg-postbox-title"><?php _e('Sign up with Blind Ferret', 'adrotate'); ?></h2>
128
+ <div id="blind-ferret" class="ajdg-postbox-content">
129
+ <center><a href="https://ajdg.solutions/go/blindferret/" target="_blank"><img src="<?php echo plugins_url("/images/offers/blindferret.jpg", dirname(__FILE__)); ?>" width="440" /></a></center>
130
+ <p>At <a href="https://ajdg.solutions/go/blindferret/" target="_blank">Blind Ferret</a>, we are publishers too, which means we know what's needed to create successful campaigns! We know that advertising isn't just "set it and forget it" anymore. Our Publisher Network features a wide range of creative and comic sites, is simple to take advantage of and intensely UI/UX focused.</p>
131
+
132
+ <p>With over 15 years of experience, <a href="https://ajdg.solutions/go/blindferret/" target="_blank">Blind Ferret</a> can offer great ads at top dollar via header bidding, ensuring advertisers vie for your ad space, which brings in higher quality ads and makes you more money! Ahead of the industry curve, we take care of the details, leaving you more time to do what you do best: run your business!</p>
133
+
134
+ <p><a class="button-primary" href="https://ajdg.solutions/go/blindferret/" target="_blank">Sign up with Blind Ferret &raquo;</a>&nbsp;&nbsp;<a class="button" target="_blank" href="https://ajdg.solutions/go/blindferret/">Learn more &raquo;</a></p>
135
+ </div>
136
+ </div>
137
138
+ <div class="ajdg-postbox">
139
+ <h2 class="ajdg-postbox-title"><?php _e('Namecheap SSL Certificates', 'adrotate'); ?></h2>
140
+ <div id="namecheap" class="ajdg-postbox-content">
141
+ <p>With the increasing risks on the internet it's smart to earn back the trust of your visitors by installing a SSL certificate on your website. Show them that you care about their privacy with a good and solid certificate. NameCheap has plenty of affordable options for all kinds of protection. I've been a customer of NameCheap for many years - So far no complaints.</p>
142
+ <p><center><a rel="nofollow" href="https://ajdg.solutions/go/namecheap/"><img src="<?php echo plugins_url("/images/offers/namecheap-ssl.jpg", dirname(__FILE__)); ?>" width="440" alt="Namecheap.com"></a></center></p>
143
+ </div>
144
+ </div>
145
146
+ </div>
147
+ </div>
148
+ </div>
149
150
+ <div class="clear"></div>
151
+ <p><?php echo adrotate_trademark(); ?></p>
dashboard/publisher/adverts-edit.php CHANGED
@@ -1,7 +1,7 @@
1
<?php
2
/* ------------------------------------------------------------------------------------
3
* COPYRIGHT AND TRADEMARK NOTICE
4
- * Copyright 2008-2017 Arnan de Gans. All Rights Reserved.
5
* ADROTATE is a trademark of Arnan de Gans.
6
7
* COPYRIGHT NOTICES AND ALL THE COMMENTS SHOULD REMAIN INTACT.
@@ -27,17 +27,13 @@ $groups = $wpdb->get_results("SELECT * FROM `{$wpdb->prefix}adrotate_groups` WHE
27
$schedule = $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;");
28
$linkmeta = $wpdb->get_results("SELECT `group` FROM `{$wpdb->prefix}adrotate_linkmeta` WHERE `ad` = {$edit_banner->id} AND `user` = 0 AND `schedule` = 0;");
29
30
wp_enqueue_media();
31
wp_enqueue_script('uploader-hook', plugins_url().'/adrotate/library/uploader-hook.js', array('jquery'));
32
33
// Set up start and end date
34
- /*
35
- list($start_day, $start_month, $start_year) = explode(" ", date("d m Y", $schedule->starttime));
36
- list($end_day, $end_month, $end_year) = explode(" ", date("d m Y", $schedule->stoptime));
37
- $start_date = $start_day.'/'.$start_month.'/'.$start_year;
38
- $end_date = $end_day.'/'.$end_month.'/'.$end_year;
39
- $start_hour = $start_minute = $end_hour = $end_minute = '00';
40
- */
41
list($start_day, $start_month, $start_year, $start_hour, $start_minute) = explode(" ", date("d m Y H i", $schedule->starttime));
42
list($end_day, $end_month, $end_year, $end_hour, $end_minute) = explode(" ", date("d m Y H i", $schedule->stoptime));
43
$start_date = $start_day.'-'.$start_month.'-'.$start_year;
@@ -48,9 +44,6 @@ foreach($linkmeta as $meta) {
48
$meta_array[] = $meta->group;
49
}
50
51
- // Random banner for Media.net
52
- $partner = mt_rand(1,3);
53
-
54
if($ad_edit_id) {
55
if($edit_banner->type != 'empty') {
56
// Errors
@@ -105,7 +98,7 @@ if($edit_banner->imagetype == "field") {
105
}
106
?>
107
108
- <form method="post" action="admin.php?page=adrotate-ads">
109
<?php wp_nonce_field('adrotate_save_ad','adrotate_nonce'); ?>
110
<input type="hidden" name="adrotate_username" value="<?php echo $userdata->user_login;?>" />
111
<input type="hidden" name="adrotate_id" value="<?php echo $edit_banner->id;?>" />
@@ -121,23 +114,27 @@ if($edit_banner->imagetype == "field") {
121
<table class="widefat" style="margin-top: .5em;">
122
<tbody>
123
<tr>
124
- <th width="15%"><?php _e('Title', 'adrotate'); ?></th>
125
- <td colspan="2">
126
- <label for="adrotate_title"><input tabindex="1" name="adrotate_title" type="text" size="70" class="search-input" value="<?php echo stripslashes($edit_banner->title);?>" autocomplete="off" /></label>
127
</td>
128
</tr>
129
<tr>
130
<th valign="top"><?php _e('AdCode', 'adrotate'); ?></th>
131
- <td colspan="2">
132
- <label for="adrotate_bannercode"><textarea tabindex="2" id="adrotate_bannercode" name="adrotate_bannercode" cols="70" rows="15"><?php echo stripslashes($edit_banner->bannercode); ?></textarea></label>
133
</td>
134
- <td width="35%" rowspan="2">
135
<p><strong><?php _e('Basic Examples:', 'adrotate'); ?></strong></p>
136
<p><em><a href="#" onclick="textatcursor('adrotate_bannercode','&lt;a href=&quot;https://ajdg.solutions/&quot;&gt;&lt;img src=&quot;%asset%&quot; /&gt;&lt;/a&gt;');return false;">&lt;a href="https://ajdg.solutions/"&gt;&lt;img src="%asset%" /&gt;&lt;/a&gt;</a></em></p>
137
<p><em><a href="#" onclick="textatcursor('adrotate_bannercode','&lt;iframe src=&quot;%asset%&quot; height=&quot;250&quot; frameborder=&quot;0&quot; style=&quot;border:none;&quot;&gt;&lt;/iframe&gt;');return false;">&lt;iframe src=&quot;%asset%&quot; height=&quot;250&quot; frameborder=&quot;0&quot; style=&quot;border:none;&quot;&gt;&lt;/iframe&gt;</a></em></p>
138
-
139
- <p><strong><?php _e('Get adverts from Media.net', 'adrotate'); ?></strong></p>
140
- <p><a href="https://ajdg.solutions/go/medianet/" target="_blank"><img src="<?php echo plugins_url("../images/offers/medianet-small-$partner.jpg", dirname(__FILE__)); ?>" width="250" /></a></p>
141
</td>
142
</tr>
143
<tr>
@@ -160,7 +157,7 @@ if($edit_banner->imagetype == "field") {
160
<th valign="top"><?php _e('Banner asset', 'adrotate'); ?></th>
161
<td colspan="3">
162
<label for="adrotate_image">
163
- <?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'); ?>" />
164
</label><br />
165
<?php _e('- OR -', 'adrotate'); ?><br />
166
<label for="adrotate_image_dropdown">
@@ -213,47 +210,79 @@ if($edit_banner->imagetype == "field") {
213
<th width="15%"><?php _e('In a post or page', 'adrotate'); ?></th>
214
<td width="35%">[adrotate banner="<?php echo $edit_banner->id; ?>"]</td>
215
<th width="15%"><?php _e('Directly in a theme', 'adrotate'); ?></th>
216
- <td width="35%">&lt;?php echo adrotate_ad(<?php echo $edit_banner->id; ?>); ?&gt;</td>
217
</tr>
218
</tbody>
219
</table>
220
221
<h2><?php _e('Schedule your advert', 'adrotate'); ?></h2>
222
<p><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'); ?></em></p>
223
<table class="widefat" style="margin-top: .5em">
224
<tbody>
225
<tr>
226
- <th><?php _e('Start date', 'adrotate'); ?></th>
227
- <td>
228
- <input tabindex="9" type="text" id="startdate_picker" name="adrotate_start_date" value="<?php echo $start_date; ?>" class="datepicker" autocomplete="off" />
229
</td>
230
- <th><?php _e('End date', 'adrotate'); ?></th>
231
<td>
232
- <input tabindex="10" type="text" id="enddate_picker" name="adrotate_end_date" value="<?php echo $end_date; ?>" class="datepicker" autocomplete="off" />
233
</td>
234
</tr>
235
<tr>
236
- <th><?php _e('Start time (hh:mm)', 'adrotate'); ?></th>
237
<td>
238
<label for="adrotate_sday">
239
- <input tabindex="11" name="adrotate_start_hour" class="search-input" type="text" size="2" maxlength="4" value="<?php echo $start_hour; ?>" autocomplete="off" /> :
240
- <input tabindex="12" name="adrotate_start_minute" class="search-input" type="text" size="2" maxlength="4" value="<?php echo $start_hour; ?>" autocomplete="off" />
241
</label>
242
</td>
243
- <th><?php _e('End time (hh:mm)', 'adrotate'); ?></th>
244
<td>
245
<label for="adrotate_eday">
246
- <input tabindex="13" name="adrotate_end_hour" class="search-input" type="text" size="2" maxlength="4" value="<?php echo $end_hour; ?>" autocomplete="off" /> :
247
- <input tabindex="14" name="adrotate_end_minute" class="search-input" type="text" size="2" maxlength="4" value="<?php echo $end_minute; ?>" autocomplete="off" />
248
</label>
249
</td>
250
</tr>
251
<?php if($adrotate_config['stats'] == 1) { ?>
252
<tr>
253
<th><?php _e('Maximum Clicks', 'adrotate'); ?></th>
254
- <td><input tabindex="19" name="adrotate_maxclicks" type="text" size="5" class="search-input" autocomplete="off" value="<?php echo $schedule->maxclicks;?>" /> <em><?php _e('Leave empty or 0 to skip this.', 'adrotate'); ?></em></td>
255
<th><?php _e('Maximum Impressions', 'adrotate'); ?></th>
256
- <td><input tabindex="20" name="adrotate_maxshown" type="text" size="5" class="search-input" autocomplete="off" value="<?php echo $schedule->maximpressions;?>" /> <em><?php _e('Leave empty or 0 to skip this.', 'adrotate'); ?></em></td>
257
</tr>
258
<?php } ?>
259
</tbody>
@@ -270,6 +299,13 @@ if($edit_banner->imagetype == "field") {
270
<table class="widefat" style="margin-top: .5em">
271
272
<tbody>
273
<tr>
274
<th width="15%" valign="top"><?php _e('Weight', 'adrotate'); ?></th>
275
<td width="17%">
@@ -301,7 +337,7 @@ if($edit_banner->imagetype == "field") {
301
<tr>
302
<th width="15%" valign="top"><?php _e('Mobile', 'adrotate'); ?></th>
303
<td>
304
- <label for="adrotate_desktop"><center><input disabled type="checkbox" name="adrotate_desktop" checked="1" /><br /><?php _e('Computers', 'adrotate'); ?></center></label>
305
</td>
306
<td>
307
<label for="adrotate_mobile"><center><input disabled type="checkbox" name="adrotate_mobile" checked="1" /><br /><?php _e('Smartphones', 'adrotate'); ?></center></label>
@@ -310,7 +346,7 @@ if($edit_banner->imagetype == "field") {
310
<label for="adrotate_tablet"><center><input disabled type="checkbox" name="adrotate_tablet" checked="1" /><br /><?php _e('Tablets', 'adrotate'); ?></center></label>
311
</td>
312
<td colspan="2" rowspan="2">
313
- <em><?php _e('Also enable mobile support in the group this advert goes in or these are ignored.', 'adrotate'); ?><br /><?php _e('Operating system detection only detects iOS/Android/Other or neither.', 'adrotate'); ?></em>
314
</td>
315
</tr>
316
<tr>
@@ -322,7 +358,13 @@ if($edit_banner->imagetype == "field") {
322
<label for="adrotate_android"><center><input disabled type="checkbox" name="adrotate_android" checked="1" /><br /><?php _e('Android', 'adrotate'); ?></center></label>
323
</td>
324
<td>
325
- <label for="adrotate_other"><center><input disabled type="checkbox" name="adrotate_other" checked="1" /><br /><?php _e('Others', 'adrotate'); ?></center></label>
326
</td>
327
</tr>
328
</tbody>
@@ -334,69 +376,62 @@ if($edit_banner->imagetype == "field") {
334
335
<div id="dashboard-widgets-wrap">
336
<div id="dashboard-widgets" class="metabox-holder">
337
338
- <div id="postbox-container-1" class="postbox-container" style="width:50%;">
339
- <div class="meta-box-sortables">
340
-
341
- <div class="postbox-ajdg">
342
- <div class="inside">
343
- <p><strong>Select Countries and or Regions</strong></p>
344
- <div class="adrotate-select">
345
- <table width="100%">
346
- <tbody>
347
- <tr>
348
- <td class="check-column" style="padding: 0px;"><input type="checkbox" name="adrotate_geo_countries[]" value="" disabled></td><td style="padding: 0px;">United States</td>
349
- </tr>
350
- <tr>
351
- <td class="check-column" style="padding: 0px;"><input type="checkbox" name="adrotate_geo_countries[]" value="" disabled></td><td style="padding: 0px;">Australia</td>
352
- </tr>
353
- <tr>
354
- <td class="check-column" style="padding: 0px;"><input type="checkbox" name="adrotate_geo_countries[]" value="" disabled></td><td style="padding: 0px;">Germany</td>
355
- </tr>
356
- <tr>
357
- <td class="check-column" style="padding: 0px;"><input type="checkbox" name="adrotate_geo_countries[]" value="" disabled></td><td style="padding: 0px;">Brazil</td>
358
- </tr>
359
- <tr>
360
- <td class="check-column" style="padding: 0px;"><input type="checkbox" name="adrotate_geo_countries[]" value="" disabled></td><td style="padding: 0px;">Japan</td>
361
- </tr>
362
- <tr>
363
- <td class="check-column" style="padding: 0px;"><input type="checkbox" name="adrotate_geo_countries[]" value="" disabled></td><td style="padding: 0px;">Netherlands</td>
364
- </tr>
365
- <tr>
366
- <td class="check-column" style="padding: 0px;"><input type="checkbox" name="adrotate_geo_countries[]" value="" disabled></td><td style="padding: 0px;">Mexico</td>
367
- </tr>
368
- <tr>
369
- <td class="check-column" style="padding: 0px;"><input type="checkbox" name="adrotate_geo_countries[]" value="" disabled></td><td style="padding: 0px;">Canada</td>
370
- </tr>
371
- <tr>
372
- <td class="check-column" style="padding: 0px;"><input type="checkbox" name="adrotate_geo_countries[]" value="" disabled></td><td style="padding: 0px;">South Africa</td>
373
- </tr>
374
- </tbody>
375
- </table>
376
- </div>
377
</div>
378
</div>
379
-
380
</div>
381
</div>
382
-
383
- <div id="postbox-container-3" class="postbox-container" style="width:50%;">
384
- <div class="meta-box-sortables">
385
-
386
- <div class="postbox-ajdg">
387
- <div class="inside">
388
-
389
- <p><strong>Enter cities, metro IDs, States or State ISO codes</strong></p>
390
- <textarea name="adrotate_geo_cities" cols="40" rows="6" disabled>Amsterdam, 29022, Noord Holland, New York, California, Tokyo, London, CA, NY, Ohio</textarea><br />
391
- <p><em><?php _e('A comma separated list of items:', 'adrotate'); ?> (Alkmaar, New York, Manila, Tokyo) <?php _e('AdRotate does not check the validity of names so make sure you spell them correctly!', 'adrotate'); ?></em></p>
392
- </div>
393
</div>
394
-
395
</div>
396
</div>
397
398
- </div>
399
- </div>
400
<div class="clear"></div>
401
<center><?php _e('Target your audience with Geo Targeting in AdRotate Pro', 'adrotate'); ?>, <a href="admin.php?page=adrotate-pro"><?php _e('Upgrade now', 'adrotate'); ?></a>!</center>
402
@@ -409,7 +444,7 @@ if($edit_banner->imagetype == "field") {
409
</tr>
410
<tr>
411
<th width="15%"><?php _e('In a post or page', 'adrotate'); ?></th>
412
- <td>[adrotate banner="<?php echo $edit_banner->id; ?>"]</td>
413
<th width="15%"><?php _e('Directly in a theme', 'adrotate'); ?></th>
414
<td>&lt;?php echo adrotate_ad(<?php echo $edit_banner->id; ?>); ?&gt;</td>
415
</tr>
@@ -426,8 +461,9 @@ if($edit_banner->imagetype == "field") {
426
<table class="widefat" style="margin-top: .5em">
427
<thead>
428
<tr>
429
- <td scope="col" class="manage-column column-cb check-column"><input type="checkbox" /></td>
430
- <th><?php _e('ID - Name', 'adrotate'); ?></th>
431
<th width="5%"><center><?php _e('Adverts', 'adrotate'); ?></center></th>
432
</tr>
433
</thead>
@@ -446,8 +482,9 @@ if($edit_banner->imagetype == "field") {
446
$ads_in_group = $wpdb->get_var("SELECT COUNT(*) FROM `{$wpdb->prefix}adrotate_linkmeta` WHERE `group` = ".$group->id." AND `user` = 0 AND `schedule` = 0;");
447
$class = ('alternate' != $class) ? 'alternate' : ''; ?>
448
<tr id='group-<?php echo $group->id; ?>' class=' <?php echo $class; ?>'>
449
- <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>
450
- <td><?php echo $group->id; ?> - <strong><?php echo $group->name; ?></strong><span style="color:#999;"><?php echo '<br /><span style="font-weight:bold;">'.__('Mode', 'adrotate').':</span> '.implode(', ', $modus); ?></span></td>
451
<td><center><?php echo $ads_in_group; ?></center></td>
452
</tr>
453
<?php
1
<?php
2
/* ------------------------------------------------------------------------------------
3
* COPYRIGHT AND TRADEMARK NOTICE
4
+ * Copyright 2008-2019 Arnan de Gans. All Rights Reserved.
5
* ADROTATE is a trademark of Arnan de Gans.
6
7
* COPYRIGHT NOTICES AND ALL THE COMMENTS SHOULD REMAIN INTACT.
27
$schedule = $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;");
28
$linkmeta = $wpdb->get_results("SELECT `group` FROM `{$wpdb->prefix}adrotate_linkmeta` WHERE `ad` = {$edit_banner->id} AND `user` = 0 AND `schedule` = 0;");
29
30
+ // Random banner for Media.net
31
+ $partner = mt_rand(1,3);
32
+
33
wp_enqueue_media();
34
wp_enqueue_script('uploader-hook', plugins_url().'/adrotate/library/uploader-hook.js', array('jquery'));
35
36
// Set up start and end date
37
list($start_day, $start_month, $start_year, $start_hour, $start_minute) = explode(" ", date("d m Y H i", $schedule->starttime));
38
list($end_day, $end_month, $end_year, $end_hour, $end_minute) = explode(" ", date("d m Y H i", $schedule->stoptime));
39
$start_date = $start_day.'-'.$start_month.'-'.$start_year;
44
$meta_array[] = $meta->group;
45
}
46
47
if($ad_edit_id) {
48
if($edit_banner->type != 'empty') {
49
// Errors
98
}
99
?>
100
101
+ <form method="post" action="admin.php?page=adrotate-ads">
102
<?php wp_nonce_field('adrotate_save_ad','adrotate_nonce'); ?>
103
<input type="hidden" name="adrotate_username" value="<?php echo $userdata->user_login;?>" />
104
<input type="hidden" name="adrotate_id" value="<?php echo $edit_banner->id;?>" />
114
<table class="widefat" style="margin-top: .5em;">
115
<tbody>
116
<tr>
117
+ <th width="15%"><?php _e('Name', 'adrotate'); ?></th>
118
+ <td>
119
+ <input tabindex="1" name="adrotate_title" type="text" class="ajdg-fullwidth ajdg-inputfield" value="<?php echo stripslashes($edit_banner->title);?>" autocomplete="off" />
120
+ </td>
121
+ <td width="35%">
122
+ &nbsp;
123
</td>
124
</tr>
125
<tr>
126
<th valign="top"><?php _e('AdCode', 'adrotate'); ?></th>
127
+ <td>
128
+ <label for="adrotate_bannercode"><textarea tabindex="2" id="adrotate_bannercode" name="adrotate_bannercode" cols="80" rows="15" class="ajdg-fullwidth"><?php echo stripslashes($edit_banner->bannercode); ?></textarea></label>
129
</td>
130
+ <td width="35%" rowspan="2">
131
<p><strong><?php _e('Basic Examples:', 'adrotate'); ?></strong></p>
132
+ <p><em><?php _e('Click any of the examples to use it.', 'adrotate'); ?></em></p>
133
<p><em><a href="#" onclick="textatcursor('adrotate_bannercode','&lt;a href=&quot;https://ajdg.solutions/&quot;&gt;&lt;img src=&quot;%asset%&quot; /&gt;&lt;/a&gt;');return false;">&lt;a href="https://ajdg.solutions/"&gt;&lt;img src="%asset%" /&gt;&lt;/a&gt;</a></em></p>
134
<p><em><a href="#" onclick="textatcursor('adrotate_bannercode','&lt;iframe src=&quot;%asset%&quot; height=&quot;250&quot; frameborder=&quot;0&quot; style=&quot;border:none;&quot;&gt;&lt;/iframe&gt;');return false;">&lt;iframe src=&quot;%asset%&quot; height=&quot;250&quot; frameborder=&quot;0&quot; style=&quot;border:none;&quot;&gt;&lt;/iframe&gt;</a></em></p>
135
+ <p><em><a href="#" onclick="textatcursor('adrotate_bannercode','&lt;a href=&quot;http://www.arnan.me/&quot;&gt;Visit arnan.me&lt;/a&gt;');return false;">&lt;a href="http://www.arnan.me/"&gt;Visit arnan.me&lt;/a&gt;</a></em></p>
136
+ <p><em><a href="#" onclick="textatcursor('adrotate_bannercode','&lt;a href=&quot;https://ajdg.solutions/&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;%asset%&quot; /&gt;&lt;/a&gt;');return false;">&lt;a href="https://ajdg.solutions/" target=&quot;_blank&quot;&gt;&lt;img src="%asset%" /&gt;&lt;/a&gt;</a></em></p>
137
+ <p><em><a href="#" onclick="textatcursor('adrotate_bannercode','&lt;a href=&quot;https://ajdg.solutions/?timestamp=%random%&quot;&gt;&lt;img src=&quot;%asset%&quot; /&gt;&lt;/a&gt;');return false;">&lt;a href="https://ajdg.solutions/?timestamp=%random%"&gt;&lt;img src="%asset%" /&gt;&lt;/a&gt;</a></em></p>
138
</td>
139
</tr>
140
<tr>
157
<th valign="top"><?php _e('Banner asset', 'adrotate'); ?></th>
158
<td colspan="3">
159
<label for="adrotate_image">
160
+ <?php _e('WordPress media:', 'adrotate'); ?> <input tabindex="3" id="adrotate_image" type="text" size="50" name="adrotate_image" value="<?php echo $image_field; ?>" class="ajdg-inputfield" /> <input tabindex="4" id="adrotate_image_button" class="button" type="button" value="<?php _e('Select Banner', 'adrotate'); ?>" />
161
</label><br />
162
<?php _e('- OR -', 'adrotate'); ?><br />
163
<label for="adrotate_image_dropdown">
210
<th width="15%"><?php _e('In a post or page', 'adrotate'); ?></th>
211
<td width="35%">[adrotate banner="<?php echo $edit_banner->id; ?>"]</td>
212
<th width="15%"><?php _e('Directly in a theme', 'adrotate'); ?></th>
213
+ <td>&lt;?php echo adrotate_ad(<?php echo $edit_banner->id; ?>); ?&gt;</td>
214
+ </tr>
215
+ </tbody>
216
+ </table>
217
+
218
+ <?php
219
+ $partner = mt_rand(1,4);
220
+ if($partner < 4) {
221
+ ?>
222
+ <h2><?php _e('Get adverts from Media.net', 'adrotate'); ?></h2>
223
+ <table class="widefat" style="margin-top: .5em">
224
+ <tbody>
225
+ <tr>
226
+ <th width="40%"><center><a href="https://ajdg.solutions/go/medianet/" target="_blank"><img src="<?php echo plugins_url("../images/offers/medianet-large-$partner.jpg", dirname(__FILE__)); ?>" width="440" /></a></center></th>
227
+ <td>
228
+ <p><a href="https://ajdg.solutions/go/medianet/" target="_blank">Media.net</a> is the <strong>#2 largest contextual ads platform</strong> in the world that provides its publishers with an <strong>exclusive access to the Yahoo! Bing Network of advertisers and $6bn worth of search demand.</strong></p>
229
+ <p><a href="https://ajdg.solutions/go/medianet/" target="_blank">Media.net</a> <strong>ads are contextual</strong> and hence always relevant to your content. They are also <strong>native by design</strong> and highly customizable, delivering a great user experience and higher CTRs.</p>
230
+ </td>
231
+ </tr>
232
+ </tbody>
233
+ </table>
234
+ <?php } else { ?>
235
+ <h2><?php _e('Sign up with Blind Ferret', 'adrotate'); ?></h2>
236
+ <table class="widefat" style="margin-top: .5em">
237
+ <tbody>
238
+ <tr>
239
+ <th width="40%"><center><a href="https://ajdg.solutions/go/blindferret/" target="_blank"><img src="<?php echo plugins_url("../images/offers/blindferret.jpg", dirname(__FILE__)); ?>" width="440" /></a></center></th>
240
+ <td>
241
+ <p>At <a href="https://ajdg.solutions/go/blindferret/" target="_blank">Blind Ferret</a>, we are publishers too, which means we know what's needed to create successful campaigns! We know that advertising isn't just "set it and forget it" anymore. Our Publisher Network features a wide range of creative and comic sites, is simple to take advantage of and intensely UI/UX focused.</p>
242
+
243
+ <p>With over 15 years of experience, <a href="https://ajdg.solutions/go/blindferret/" target="_blank">Blind Ferret</a> can offer great ads at top dollar via header bidding, ensuring advertisers vie for your ad space, which brings in higher quality ads and makes you more money!</p>
244
+ </td>
245
</tr>
246
</tbody>
247
</table>
248
+ <?php } ?>
249
250
<h2><?php _e('Schedule your advert', 'adrotate'); ?></h2>
251
<p><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'); ?></em></p>
252
<table class="widefat" style="margin-top: .5em">
253
<tbody>
254
<tr>
255
+ <th width="15%"><?php _e('Start date', 'adrotate'); ?> (dd-mm-yyyy)</th>
256
+ <td width="35%">
257
+ <input tabindex="9" type="text" id="startdate_picker" name="adrotate_start_date" value="<?php echo $start_date; ?>" class="datepicker ajdg-inputfield" autocomplete="off" />
258
</td>
259
+ <th width="15%"><?php _e('End date', 'adrotate'); ?> (dd-mm-yyyy)</th>
260
<td>
261
+ <input tabindex="10" type="text" id="enddate_picker" name="adrotate_end_date" value="<?php echo $end_date; ?>" class="datepicker ajdg-inputfield" autocomplete="off" />
262
</td>
263
</tr>
264
<tr>
265
+ <th><?php _e('Start time', 'adrotate'); ?> (hh:mm)</th>
266
<td>
267
<label for="adrotate_sday">
268
+ <input tabindex="11" name="adrotate_start_hour" class="ajdg-inputfield" type="text" size="2" maxlength="4" value="<?php echo $start_hour; ?>" autocomplete="off" /> :
269
+ <input tabindex="12" name="adrotate_start_minute" class="ajdg-inputfield" type="text" size="2" maxlength="4" value="<?php echo $start_hour; ?>" autocomplete="off" />
270
</label>
271
</td>
272
+ <th><?php _e('End time', 'adrotate'); ?> (hh:mm)</th>
273
<td>
274
<label for="adrotate_eday">
275
+ <input tabindex="13" name="adrotate_end_hour" class="ajdg-inputfield" type="text" size="2" maxlength="4" value="<?php echo $end_hour; ?>" autocomplete="off" /> :
276
+ <input tabindex="14" name="adrotate_end_minute" class="ajdg-inputfield" type="text" size="2" maxlength="4" value="<?php echo $end_minute; ?>" autocomplete="off" />
277
</label>
278
</td>
279
</tr>
280
<?php if($adrotate_config['stats'] == 1) { ?>
281
<tr>
282
<th><?php _e('Maximum Clicks', 'adrotate'); ?></th>
283
+ <td><input tabindex="19" name="adrotate_maxclicks" type="text" size="5" class="ajdg-inputfield" autocomplete="off" value="<?php echo $schedule->maxclicks;?>" /> <em><?php _e('Leave empty or 0 to skip this.', 'adrotate'); ?></em></td>
284
<th><?php _e('Maximum Impressions', 'adrotate'); ?></th>
285
+ <td><input tabindex="20" name="adrotate_maxshown" type="text" size="5" class="ajdg-inputfield" autocomplete="off" value="<?php echo $schedule->maximpressions;?>" /> <em><?php _e('Leave empty or 0 to skip this.', 'adrotate'); ?></em></td>
286
</tr>
287
<?php } ?>
288
</tbody>
299
<table class="widefat" style="margin-top: .5em">
300
301
<tbody>
302
+ <tr>
303
+ <th width="15%" valign="top"><?php _e('Show to everyone', 'adrotate-pro'); ?></th>
304
+ <td colspan="5">
305
+ <label for="adrotate_show_everyone"><input type="checkbox" name="adrotate_show_everyone" checked disabled /> <?php _e('Disable this option to hide the advert from logged-in visitors.', 'adrotate-pro'); ?>
306
+ </label>
307
+ </td>
308
+ </tr>
309
<tr>
310
<th width="15%" valign="top"><?php _e('Weight', 'adrotate'); ?></th>
311
<td width="17%">
337
<tr>
338
<th width="15%" valign="top"><?php _e('Mobile', 'adrotate'); ?></th>
339
<td>
340
+ <label for="adrotate_desktop"><center><input disabled type="checkbox" name="adrotate_desktop" checked="1" /><br /><?php _e('Desktops/Laptops', 'adrotate'); ?></center></label>
341
</td>
342
<td>
343
<label for="adrotate_mobile"><center><input disabled type="checkbox" name="adrotate_mobile" checked="1" /><br /><?php _e('Smartphones', 'adrotate'); ?></center></label>
346
<label for="adrotate_tablet"><center><input disabled type="checkbox" name="adrotate_tablet" checked="1" /><br /><?php _e('Tablets', 'adrotate'); ?></center></label>
347
</td>
348
<td colspan="2" rowspan="2">
349
+ <em><?php _e("Also enable 'Mobile Support' in the group this advert goes in or 'Device' and 'Operating System' are ignored!", 'adrotate'); ?><br /><?php _e("Operating system detection only detects iOS and Android, select 'Not Mobile/Other' for everything else.", 'adrotate'); ?></em>
350
</td>
351
</tr>
352
<tr>
358
<label for="adrotate_android"><center><input disabled type="checkbox" name="adrotate_android" checked="1" /><br /><?php _e('Android', 'adrotate'); ?></center></label>
359
</td>
360
<td>
361
+ <label for="adrotate_other"><center><input disabled type="checkbox" name="adrotate_other" checked="1" /><br /><?php _e('Not mobile/Others', 'adrotate'); ?></center></label>
362
+ </td>
363
+ </tr>
364
+ <tr>
365
+ <th valign="top"><?php _e('Auto-delete', 'adrotate'); ?></th>
366
+ <td colspan="5">
367
+ <label for="adrotate_autodelete"><input tabindex="31" type="checkbox" name="adrotate_autodelete" disabled /></label> <?php _e('Automatically delete the advert 1 day after it expires?', 'adrotate'); ?><br /><em><?php _e('This is useful for short running campaigns that do not require attention after they finish.', 'adrotate'); ?></em>
368
</td>
369
</tr>
370
</tbody>
376
377
<div id="dashboard-widgets-wrap">
378
<div id="dashboard-widgets" class="metabox-holder">
379
+ <div id="left-column" class="postbox-container">
380
381
+ <div class="ajdg-postbox">
382
+ <h2 class="ajdg-postbox-title"><?php _e('Select Countries and or Regions', 'adrotate'); ?></h2>
383
+ <div id="countries" class="ajdg-postbox-content">
384
+ <div class="adrotate-select ajdg-fullwidth">
385
+ <table width="100%">
386
+ <tbody>
387
+ <tr>
388
+ <td class="check-column" style="padding: 0px;"><input type="checkbox" name="adrotate_geo_countries[]" value="" disabled></td><td style="padding: 0px;">United States</td>
389
+ </tr>
390
+ <tr>
391
+ <td class="check-column" style="padding: 0px;"><input type="checkbox" name="adrotate_geo_countries[]" value="" disabled></td><td style="padding: 0px;">Australia</td>
392
+ </tr>
393
+ <tr>
394
+ <td class="check-column" style="padding: 0px;"><input type="checkbox" name="adrotate_geo_countries[]" value="" disabled></td><td style="padding: 0px;">Germany</td>
395
+ </tr>
396
+ <tr>
397
+ <td class="check-column" style="padding: 0px;"><input type="checkbox" name="adrotate_geo_countries[]" value="" disabled></td><td style="padding: 0px;">Brazil</td>
398
+ </tr>
399
+ <tr>
400
+ <td class="check-column" style="padding: 0px;"><input type="checkbox" name="adrotate_geo_countries[]" value="" disabled></td><td style="padding: 0px;">Japan</td>
401
+ </tr>
402
+ <tr>
403
+ <td class="check-column" style="padding: 0px;"><input type="checkbox" name="adrotate_geo_countries[]" value="" disabled></td><td style="padding: 0px;">Netherlands</td>
404
+ </tr>
405
+ <tr>
406
+ <td class="check-column" style="padding: 0px;"><input type="checkbox" name="adrotate_geo_countries[]" value="" disabled></td><td style="padding: 0px;">Mexico</td>
407
+ </tr>
408
+ <tr>
409
+ <td class="check-column" style="padding: 0px;"><input type="checkbox" name="adrotate_geo_countries[]" value="" disabled></td><td style="padding: 0px;">Canada</td>
410
+ </tr>
411
+ <tr>
412
+ <td class="check-column" style="padding: 0px;"><input type="checkbox" name="adrotate_geo_countries[]" value="" disabled></td><td style="padding: 0px;">South Africa</td>
413
+ </tr>
414
+ </tbody>
415
+ </table>
416
</div>
417
</div>
418
</div>
419
+
420
</div>
421
+ <div id="right-column" class="postbox-container">
422
+
423
+ <div class="ajdg-postbox">
424
+ <h2 class="ajdg-postbox-title"><?php _e('Enter cities, metro IDs, States or State ISO codes', 'adrotate'); ?></h2>
425
+ <div id="cities" class="ajdg-postbox-content">
426
+ <textarea name="adrotate_geo_cities" cols="40" rows="6" class="ajdg-fullwidth" disabled>Amsterdam, 29022, Noord Holland, New York, California, Tokyo, London, CA, NY, Ohio</textarea><br />
427
+ <p><em><?php _e('A comma separated list of items:', 'adrotate'); ?> (Alkmaar, New York, Manila, Tokyo) <?php _e('AdRotate does not check the validity of names so make sure you spell them correctly!', 'adrotate'); ?></em></p>
428
</div>
429
</div>
430
+
431
</div>
432
+ </div>
433
+ </div>
434
435
<div class="clear"></div>
436
<center><?php _e('Target your audience with Geo Targeting in AdRotate Pro', 'adrotate'); ?>, <a href="admin.php?page=adrotate-pro"><?php _e('Upgrade now', 'adrotate'); ?></a>!</center>
437
444
</tr>
445
<tr>
446
<th width="15%"><?php _e('In a post or page', 'adrotate'); ?></th>
447
+ <td width="35%">[adrotate banner="<?php echo $edit_banner->id; ?>"]</td>
448
<th width="15%"><?php _e('Directly in a theme', 'adrotate'); ?></th>
449
<td>&lt;?php echo adrotate_ad(<?php echo $edit_banner->id; ?>); ?&gt;</td>
450
</tr>
461
<table class="widefat" style="margin-top: .5em">
462
<thead>
463
<tr>
464
+ <td width="2%" scope="col" class="manage-column column-cb check-column"><input type="checkbox" /></td>
465
+ <th width="2%"><center><?php _e('ID', 'adrotate'); ?></center></th>
466
+ <th><?php _e('Name', 'adrotate'); ?></th>
467
<th width="5%"><center><?php _e('Adverts', 'adrotate'); ?></center></th>
468
</tr>
469
</thead>
482
$ads_in_group = $wpdb->get_var("SELECT COUNT(*) FROM `{$wpdb->prefix}adrotate_linkmeta` WHERE `group` = ".$group->id." AND `user` = 0 AND `schedule` = 0;");
483
$class = ('alternate' != $class) ? 'alternate' : ''; ?>
484
<tr id='group-<?php echo $group->id; ?>' class=' <?php echo $class; ?>'>
485
+ <th class="check-column"><input type="checkbox" name="groupselect[]" value="<?php echo $group->id; ?>" <?php if(in_array($group->id, $meta_array)) echo "checked"; ?> /></th>
486
+ <td><center><?php echo $group->id; ?></center></td>
487
+ <td><?php echo $group->name; ?><span style="color:#999;"><?php echo '<br /><span style="font-weight:bold;">'.__('Mode', 'adrotate').':</span> '.implode(', ', $modus); ?></span></td>
488
<td><center><?php echo $ads_in_group; ?></center></td>
489
</tr>
490
<?php
dashboard/publisher/adverts-generator.php CHANGED
@@ -41,6 +41,12 @@ wp_enqueue_script('uploader-hook', plugins_url().'/adrotate-pro/library/uploader
41
<em><?php _e('This is a regular advert consisting of an image and a link, made up from HTML code.', 'adrotate'); ?></em>
42
<table class="widefat" style="margin-top: .5em">
43
44
<tbody>
45
<tr>
46
<th valign="top"><?php _e('Banner asset', 'adrotate'); ?></th>
@@ -51,17 +57,26 @@ wp_enqueue_script('uploader-hook', plugins_url().'/adrotate-pro/library/uploader
51
<?php echo adrotate_folder_contents('', 'image'); ?>
52
</select> <?php _e('Is your file not listed? Upload it via the AdRotate Media Manager.', 'adrotate'); ?></label><br />
53
<?php _e('- OR -', 'adrotate'); ?><br />
54
- <label for="adrotate_text"><input tabindex="2" id="adrotate_text" name="adrotate_text" type="text" size="60" class="search-input" value="" autocomplete="off" /> <?php _e('Visible text if this is a text link banner.', 'adrotate'); ?><br /><em><?php _e('Use either the dropdown or the text field. If the dropdown is used, that field has priority.', 'adrotate'); ?></em></label>
55
56
</td>
57
</tr>
58
<tr>
59
<th width="15%" valign="top"><?php _e('Target website', 'adrotate'); ?></th>
60
<td>
61
- <label for="adrotate_targeturl"><input tabindex="3" id="adrotate_targeturl" name="adrotate_targeturl" type="text" size="60" class="search-input" value="" autocomplete="off" /> <?php _e('Where does the person clicking the advert go?', 'adrotate'); ?></label>
62
</td>
63
</tr>
64
- <tr>
65
<th valign="top"><?php _e('Target window', 'adrotate'); ?></th>
66
<td>
67
<label for="adrotate_newwindow_disabled"><input tabindex="4" type="checkbox" name="adrotate_newwindow_disabled" disabled="1" /></label> <?php _e('Available in AdRotate Pro.', 'adrotate'); ?> <?php _e('Open the target website in a new window?', 'adrotate'); ?>
@@ -76,9 +91,9 @@ wp_enqueue_script('uploader-hook', plugins_url().'/adrotate-pro/library/uploader
76
<tr>
77
<th valign="top"><?php _e('Advert size', 'adrotate'); ?></strong></th>
78
<td>
79
- <label for="adrotate_width"><input tabindex="6" name="adrotate_width" type="text" class="search-input" size="5" value="" autocomplete="off" /> <?php _e('px wide', 'adrotate'); ?>,</label>
80
- <label for="adrotate_height"><input tabindex="7" name="adrotate_height" type="text" class="search-input" size="5" value="" autocomplete="off" /> <?php _e('px high.', 'adrotate'); ?></label>
81
- <?php _e('Define the maximum size of the adverts in pixels.', 'adrotate'); ?> <?php _e('(Optional)', 'adrotate'); ?>
82
</td>
83
</tr>
84
</tbody>
@@ -105,8 +120,8 @@ wp_enqueue_script('uploader-hook', plugins_url().'/adrotate-pro/library/uploader
105
<tr>
106
<th valign="top"><?php _e('Advert size', 'adrotate'); ?></strong></th>
107
<td>
108
- <label for="adrotate_html5_width"><input tabindex="9" name="adrotate_html5_width" type="text" class="search-input" size="5" value="" autocomplete="off" /> <?php _e('px wide', 'adrotate'); ?>,</label>
109
- <label for="adrotate_html5_height"><input tabindex="10" name="adrotate_html5_height" type="text" class="search-input" size="5" value="" autocomplete="off" /> <?php _e('px high.', 'adrotate'); ?></label>
110
<?php _e('Define the maximum size of the adverts in pixels.', 'adrotate'); ?>
111
</td>
112
</tr>
@@ -116,7 +131,7 @@ wp_enqueue_script('uploader-hook', plugins_url().'/adrotate-pro/library/uploader
116
<label for="adrotate_html5_clicktag">
117
<?php _e('Parameter', 'adrotate'); ?> <select tabindex="11" id="adrotate_html5_clicktag_disabled" name="adrotate_html5_clicktag_disabled" style="min-width: 200px;" disabled="1">
118
<option value=""><?php _e('No clickTAG', 'adrotate'); ?></option>
119
- </select> <?php _e('URL', 'adrotate'); ?> <input tabindex="12" id="adrotate_html5_clicktag_disabled" name="adrotate_html5_clicktag_disabled" type="text" size="50" class="search-input" value="" autocomplete="off" disabled="1" /> <?php _e('(Optional)', 'adrotate'); ?><br /><em><?php _e('Available in AdRotate Pro.', 'adrotate'); ?> <?php _e('This option is ignored for HTML5 adverts. All choices do the exact same, but some developers write the parameter differently.', 'adrotate'); ?></em>
120
</label>
121
</td>
122
</tr>
41
<em><?php _e('This is a regular advert consisting of an image and a link, made up from HTML code.', 'adrotate'); ?></em>
42
<table class="widefat" style="margin-top: .5em">
43
44
+ <thead>
45
+ <tr>
46
+ <th colspan="2"><strong><?php _e('Required', 'adrotate-pro'); ?></strong></th>
47
+ </tr>
48
+ </thead>
49
+
50
<tbody>
51
<tr>
52
<th valign="top"><?php _e('Banner asset', 'adrotate'); ?></th>
57
<?php echo adrotate_folder_contents('', 'image'); ?>
58
</select> <?php _e('Is your file not listed? Upload it via the AdRotate Media Manager.', 'adrotate'); ?></label><br />
59
<?php _e('- OR -', 'adrotate'); ?><br />
60
+ <label for="adrotate_text"><input tabindex="2" id="adrotate_text" name="adrotate_text" type="text" size="60" class="ajdg-inputfield" value="" autocomplete="off" /> <?php _e('Visible text if this is a text link banner.', 'adrotate'); ?><br /><em><?php _e('Use either the dropdown or the text field. If the dropdown is used, that field has priority.', 'adrotate'); ?></em></label>
61
62
</td>
63
</tr>
64
<tr>
65
<th width="15%" valign="top"><?php _e('Target website', 'adrotate'); ?></th>
66
<td>
67
+ <label for="adrotate_targeturl"><input tabindex="3" id="adrotate_targeturl" name="adrotate_targeturl" type="text" size="60" class="ajdg-inputfield" value="" autocomplete="off" /> <?php _e('Where does the person clicking the advert go?', 'adrotate'); ?></label>
68
</td>
69
</tr>
70
+ </tbody>
71
+
72
+ <thead>
73
+ <tr>
74
+ <th colspan="2"><strong><?php _e('Optional', 'adrotate-pro'); ?></strong></th>
75
+ </tr>
76
+ </thead>
77
+
78
+ <tbody>
79
+ <tr>
80
<th valign="top"><?php _e('Target window', 'adrotate'); ?></th>
81
<td>
82
<label for="adrotate_newwindow_disabled"><input tabindex="4" type="checkbox" name="adrotate_newwindow_disabled" disabled="1" /></label> <?php _e('Available in AdRotate Pro.', 'adrotate'); ?> <?php _e('Open the target website in a new window?', 'adrotate'); ?>
91
<tr>
92
<th valign="top"><?php _e('Advert size', 'adrotate'); ?></strong></th>
93
<td>
94
+ <label for="adrotate_width"><input tabindex="6" name="adrotate_width" type="text" class="ajdg-inputfield" size="5" value="" autocomplete="off" /> <?php _e('px wide', 'adrotate'); ?>,</label>
95
+ <label for="adrotate_height"><input tabindex="7" name="adrotate_height" type="text" class="ajdg-inputfield" size="5" value="" autocomplete="off" /> <?php _e('px high.', 'adrotate'); ?></label>
96
+ <?php _e('Define the maximum size of the adverts in pixels.', 'adrotate'); ?>
97
</td>
98
</tr>
99
</tbody>
120
<tr>
121
<th valign="top"><?php _e('Advert size', 'adrotate'); ?></strong></th>
122
<td>
123
+ <label for="adrotate_html5_width"><input tabindex="9" name="adrotate_html5_width" type="text" class="ajdg-inputfield" size="5" value="" autocomplete="off" /> <?php _e('px wide', 'adrotate'); ?>,</label>
124
+ <label for="adrotate_html5_height"><input tabindex="10" name="adrotate_html5_height" type="text" class="ajdg-inputfield" size="5" value="" autocomplete="off" /> <?php _e('px high.', 'adrotate'); ?></label>
125
<?php _e('Define the maximum size of the adverts in pixels.', 'adrotate'); ?>
126
</td>
127
</tr>
131
<label for="adrotate_html5_clicktag">
132
<?php _e('Parameter', 'adrotate'); ?> <select tabindex="11" id="adrotate_html5_clicktag_disabled" name="adrotate_html5_clicktag_disabled" style="min-width: 200px;" disabled="1">
133
<option value=""><?php _e('No clickTAG', 'adrotate'); ?></option>
134
+ </select> <?php _e('URL', 'adrotate'); ?> <input tabindex="12" id="adrotate_html5_clicktag_disabled" name="adrotate_html5_clicktag_disabled" type="text" size="50" class="ajdg-inputfield" value="" autocomplete="off" disabled="1" /> <?php _e('(Optional)', 'adrotate'); ?><br /><em><?php _e('Available in AdRotate Pro.', 'adrotate'); ?> <?php _e('This option is ignored for HTML5 adverts. All choices do the exact same, but some developers write the parameter differently.', 'adrotate'); ?></em>
135
</label>
136
</td>
137
</tr>
dashboard/publisher/groups-edit.php CHANGED
@@ -49,14 +49,17 @@ if(!is_array($meta_array)) $meta_array = array();
49
<tbody>
50
<tr>
51
<th width="15%"><?php _e('Name', 'adrotate'); ?></th>
52
- <td colspan="2">
53
- <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>
54
</td>
55
</tr>
56
<tr>
57
<th valign="top"><?php _e('Mode', 'adrotate'); ?></strong></th>
58
- <td width="35%">
59
- <select tabindex="2" name="adrotate_modus">
60
<option value="0" <?php if($edit_group->modus == 0) { echo 'selected'; } ?>><?php _e('Default - Show one ad at a time', 'adrotate'); ?></option>
61
<option value="1" <?php if($edit_group->modus == 1) { echo 'selected'; } ?>><?php _e('Dynamic Mode - Show a different ad every few seconds', 'adrotate'); ?></option>
62
<option value="2" <?php if($edit_group->modus == 2) { echo 'selected'; } ?>><?php _e('Block Mode - Show a block of adverts', 'adrotate'); ?></option>
@@ -66,12 +69,19 @@ if(!is_array($meta_array)) $meta_array = array();
66
<p><em><?php _e('Dynamic mode requires jQuery. You can enable this in AdRotate Settings.', 'adrotate'); ?></em></p>
67
</td>
68
</tr>
69
</tbody>
70
</table>
71
- <center><?php _e('Get more features with AdRotate Pro.', 'adrotate'); ?> <a href="admin.php?page=adrotate-pro"><?php _e('Upgrade now', 'adrotate'); ?></a>!</center>
72
73
<h3><?php _e('Dynamic and Block Mode', 'adrotate'); ?></h3>
74
- <p><em><?php _e('Only required if your group is in Dynamic or Block mode.', 'adrotate'); ?></em></p>
75
<table class="widefat" style="margin-top: .5em">
76
<tbody>
77
<tr>
@@ -91,15 +101,6 @@ if(!is_array($meta_array)) $meta_array = array();
91
<p><em><?php _e('Block Mode', 'adrotate'); ?> - <?php _e('Larger blocks will degrade your sites performance! Default: 2/2.', 'adrotate'); ?></em></p>
92
</td>
93
</tr>
94
- <tr>
95
- <th valign="top"><?php _e('Advert size', 'adrotate'); ?></strong></th>
96
- <td>
97
- <label for="adrotate_adwidth"><input tabindex="5" name="adrotate_adwidth" type="text" class="search-input" size="3" value="<?php echo $edit_group->adwidth; ?>" autocomplete="off" /> <?php _e('pixel(s) wide', 'adrotate'); ?>,</label> <label for="adrotate_adheight"><input tabindex="6" name="adrotate_adheight" type="text" class="search-input" size="3" value="<?php echo $edit_group->adheight; ?>" autocomplete="off" /> <?php _e('pixel(s) high.', 'adrotate'); ?></label>
98
- </td>
99
- <td colspan="2">
100
- <p><em><?php _e('Dynamic and Block Mode', 'adrotate'); ?> - <?php _e('Define the maximum size of the adverts in pixels. Size can be \'auto\' (Not recommended). Default: 125/125.', 'adrotate'); ?></em></p>
101
- </td>
102
- </tr>
103
<tr>
104
<th valign="top"><?php _e('Automated refresh', 'adrotate'); ?></strong></th>
105
<td>
@@ -126,8 +127,18 @@ if(!is_array($meta_array)) $meta_array = array();
126
<p><em><?php _e('Dynamic Mode', 'adrotate'); ?> - <?php _e('Load a new advert in this interval without reloading the page. Default: 6.', 'adrotate'); ?></em></p>
127
</td>
128
</tr>
129
</tbody>
130
</table>
131
132
<h3><?php _e('Usage', 'adrotate'); ?></h3>
133
<table class="widefat" style="margin-top: .5em">
@@ -156,9 +167,9 @@ if(!is_array($meta_array)) $meta_array = array();
156
<tr>
157
<th width="15%" valign="top"><?php _e('Advert Margin', 'adrotate'); ?></strong></th>
158
<td width="35%">
159
- <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>
160
</td>
161
- <td colspan="2">
162
<p><em><?php _e('A transparent area outside the advert in pixels. Default: 0.', 'adrotate'); ?> <?php _e('Set to 0 to disable.', 'adrotate'); ?> <?php _e('Margins are automatically disabled for blocks where required.', 'adrotate'); ?></em></p>
163
</td>
164
</tr>
@@ -172,7 +183,7 @@ if(!is_array($meta_array)) $meta_array = array();
172
<option value="3" <?php if($edit_group->align == 3) { echo 'selected'; } ?>><?php _e('Center', 'adrotate'); ?></option>
173
</select></label>
174
</td>
175
- <td colspan="2">
176
<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>
177
</td>
178
</tr>
@@ -182,100 +193,105 @@ if(!is_array($meta_array)) $meta_array = array();
182
<td><p><em><?php _e('Do not forget to tell the adverts for which areas they should show.', 'adrotate'); ?></em></p></td>
183
</tr>
184
<tr>
185
- <th width="15%" valign="top"><?php _e('Mobile support', 'adrotate'); ?></th>
186
<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>
187
<td><p><em><?php _e('Do not forget to put at least one mobile advert in this group.', 'adrotate'); ?></em></p></td>
188
</tr>
189
</tbody>
190
</table>
191
- <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 now', 'adrotate'); ?></a>!</center>
192
193
<div id="dashboard-widgets-wrap">
194
<div id="dashboard-widgets" class="metabox-holder">
195
196
- <div id="postbox-container-1" class="postbox-container" style="width:50%;">
197
- <div class="meta-box-sortables">
198
-
199
- <h2><?php _e('Post Injection', 'adrotate'); ?></h2>
200
- <div class="postbox-ajdg">
201
- <div class="inside">
202
- <p><label for="adrotate_cat_location">
203
- <select tabindex="18" name="adrotate_cat_location">
204
- <option value="0" <?php if($edit_group->cat_loc == 0) { echo 'selected'; } ?>><?php _e('Disabled', 'adrotate'); ?></option>
205
- <option value="0" disabled><?php _e('Widget (Pro only)', 'adrotate'); ?></option>
206
- <option value="1" <?php if($edit_group->cat_loc == 1) { echo 'selected'; } ?>><?php _e('Before content', 'adrotate'); ?></option>
207
- <option value="2" <?php if($edit_group->cat_loc == 2) { echo 'selected'; } ?>><?php _e('After content', 'adrotate'); ?></option>
208
- <option value="3" <?php if($edit_group->cat_loc == 3) { echo 'selected'; } ?>><?php _e('Before and after content', 'adrotate'); ?></option>
209
- <option value="4" <?php if($edit_group->cat_loc == 4) { echo 'selected'; } ?>><?php _e('Inside the content...', 'adrotate'); ?></option>
210
- </select>
211
- </label>
212
- <label for="adrotate_cat_paragraph">
213
- <select tabindex="19" name="adrotate_cat_paragraph">
214
- <option value="0" <?php if($edit_group->cat_par == 0) { echo 'selected'; } ?>>...</option>
215
- <option value="99" <?php if($edit_group->cat_par == 99) { echo 'selected'; } ?>><?php _e('after the middle paragraph', 'adrotate'); ?></option>
216
- <option value="1" <?php if($edit_group->cat_par == 1) { echo 'selected'; } ?>><?php _e('after the 1st paragraph', 'adrotate'); ?></option>
217
- <option value="2" <?php if($edit_group->cat_par == 2) { echo 'selected'; } ?>><?php _e('after the 2nd paragraph', 'adrotate'); ?></option>
218
- <option value="3" <?php if($edit_group->cat_par == 3) { echo 'selected'; } ?>><?php _e('after the 3rd paragraph', 'adrotate'); ?></option>
219
- <option value="4" <?php if($edit_group->cat_par == 4) { echo 'selected'; } ?>><?php _e('after the 4th paragraph', 'adrotate'); ?></option>
220
- <option value="5" <?php if($edit_group->cat_par == 5) { echo 'selected'; } ?>><?php _e('after the 5th paragraph', 'adrotate'); ?></option>
221
- <option value="6" <?php if($edit_group->cat_par == 6) { echo 'selected'; } ?>><?php _e('after the 6th paragraph', 'adrotate'); ?></option>
222
- <option value="7" <?php if($edit_group->cat_par == 7) { echo 'selected'; } ?>><?php _e('after the 7th paragraph', 'adrotate'); ?></option>
223
- <option value="8" <?php if($edit_group->cat_par == 8) { echo 'selected'; } ?>><?php _e('after the 8th paragraph', 'adrotate'); ?></option>
224
- </select>
225
- </label></p>
226
- <p><strong>Select Categories</strong></p>
227
- <div class="adrotate-select">
228
- <?php echo adrotate_select_categories($edit_group->cat, 0, 0, 0); ?>
229
- </div>
230
</div>
231
</div>
232
-
233
</div>
234
</div>
235
236
- <div id="postbox-container-3" class="postbox-container" style="width:50%;">
237
- <div class="meta-box-sortables">
238
-
239
- <h2><?php _e('Page Injection', 'adrotate'); ?></h2>
240
- <div class="postbox-ajdg">
241
- <div class="inside">
242
- <p><label for="adrotate_page_location">
243
- <select tabindex="20" name="adrotate_page_location">
244
- <option value="0" <?php if($edit_group->page_loc == 0) { echo 'selected'; } ?>><?php _e('Disabled', 'adrotate'); ?></option>
245
- <option value="0" disabled><?php _e('Widget (Pro only)', 'adrotate'); ?></option>
246
- <option value="1" <?php if($edit_group->page_loc == 1) { echo 'selected'; } ?>><?php _e('Before content', 'adrotate'); ?></option>
247
- <option value="2" <?php if($edit_group->page_loc == 2) { echo 'selected'; } ?>><?php _e('After content', 'adrotate'); ?></option>
248
- <option value="3" <?php if($edit_group->page_loc == 3) { echo 'selected'; } ?>><?php _e('Before and after content', 'adrotate'); ?></option>
249
- <option value="4" <?php if($edit_group->page_loc == 4) { echo 'selected'; } ?>><?php _e('Inside the content...', 'adrotate'); ?></option>
250
- </select>
251
- </label>
252
- <label for="adrotate_page_paragraph">
253
- <select tabindex="21" name="adrotate_page_paragraph">
254
- <option value="0" <?php if($edit_group->page_par == 0) { echo 'selected'; } ?>>...</option>
255
- <option value="99" <?php if($edit_group->page_par == 99) { echo 'selected'; } ?>><?php _e('after the middle paragraph', 'adrotate'); ?></option>
256
- <option value="1" <?php if($edit_group->page_par == 1) { echo 'selected'; } ?>><?php _e('after the 1st paragraph', 'adrotate'); ?></option>
257
- <option value="2" <?php if($edit_group->page_par == 2) { echo 'selected'; } ?>><?php _e('after the 2nd paragraph', 'adrotate'); ?></option>
258
- <option value="3" <?php if($edit_group->page_par == 3) { echo 'selected'; } ?>><?php _e('after the 3rd paragraph', 'adrotate'); ?></option>
259
- <option value="4" <?php if($edit_group->page_par == 4) { echo 'selected'; } ?>><?php _e('after the 4th paragraph', 'adrotate'); ?></option>
260
- <option value="5" <?php if($edit_group->page_par == 5) { echo 'selected'; } ?>><?php _e('after the 5th paragraph', 'adrotate'); ?></option>
261
- <option value="6" <?php if($edit_group->page_par == 6) { echo 'selected'; } ?>><?php _e('after the 6th paragraph', 'adrotate'); ?></option>
262
- <option value="7" <?php if($edit_group->page_par == 7) { echo 'selected'; } ?>><?php _e('after the 7th paragraph', 'adrotate'); ?></option>
263
- <option value="8" <?php if($edit_group->page_par == 8) { echo 'selected'; } ?>><?php _e('after the 8th paragraph', 'adrotate'); ?></option>
264
- </select>
265
- </label></p>
266
-
267
- <p><strong>Select Pages</strong></p>
268
- <div class="adrotate-select">
269
- <?php echo adrotate_select_pages($edit_group->page, 0, 0, 0); ?>
270
- </div>
271
</div>
272
</div>
273
-
274
</div>
275
</div>
276
-
277
- </div>
278
- </div>
279
<div class="clear"></div>
280
281
<h3><?php _e('Usage', 'adrotate'); ?></h3>
@@ -289,7 +305,7 @@ if(!is_array($meta_array)) $meta_array = array();
289
<th width="15%"><?php _e('In a post or page', 'adrotate'); ?></th>
290
<td width="35%">[adrotate group="<?php echo $edit_group->id; ?>"]</td>
291
<th width="15%"><?php _e('Directly in a theme', 'adrotate'); ?></th>
292
- <td width="35%">&lt;?php echo adrotate_group(<?php echo $edit_group->id; ?>); ?&gt;</td>
293
</tr>
294
</tbody>
295
</table>
@@ -305,15 +321,15 @@ if(!is_array($meta_array)) $meta_array = array();
305
<tbody>
306
<tr>
307
<th width="15%" valign="top"><?php _e('Before advert', 'adrotate'); ?></strong></th>
308
- <td colspan="2"><textarea tabindex="17" name="adrotate_wrapper_before" cols="65" rows="3"><?php echo stripslashes($edit_group->wrapper_before); ?></textarea></td>
309
- <td width="35%">
310
<p><strong><?php _e('Example:', 'adrotate'); ?></strong> <em>&lt;span style="background-color:#aaa;"&gt;</em></p>
311
<p><strong><?php _e('Options:', 'adrotate'); ?></strong> <em>%id%</em></p>
312
</td>
313
</tr>
314
<tr>
315
<th valign="top"><?php _e('After advert', 'adrotate'); ?></strong></th>
316
- <td colspan="2"><textarea tabindex="18" name="adrotate_wrapper_after" cols="65" rows="3"><?php echo stripslashes($edit_group->wrapper_after); ?></textarea></td>
317
<td>
318
<p><strong><?php _e('Example:', 'adrotate'); ?></strong> <em>&lt;/span&gt;</em></p>
319
</td>
@@ -325,8 +341,9 @@ if(!is_array($meta_array)) $meta_array = array();
325
<table class="widefat" style="margin-top: .5em">
326
<thead>
327
<tr>
328
- <td scope="col" class="manage-column column-cb check-column"><input type="checkbox" /></td>
329
- <th><?php _e('Choose adverts', 'adrotate'); ?></th>
330
<th width="15%"><?php _e('Visible until', 'adrotate'); ?></th>
331
<th width="5%"><center><?php _e('Weight', 'adrotate'); ?></center></th>
332
<?php if($adrotate_config['stats'] == 1) { ?>
@@ -355,8 +372,9 @@ if(!is_array($meta_array)) $meta_array = array();
355
$class = ($errorclass != '') ? $errorclass : $class;
356
?>
357
<tr class='<?php echo $class; ?>'>
358
- <th class="check-column" width="2%"><input type="checkbox" name="adselect[]" value="<?php echo $ad->id; ?>" <?php if(in_array($ad->id, $meta_array)) echo "checked"; ?> /></th>
359
- <td><?php echo $ad->id; ?> - <strong><?php echo stripslashes(html_entity_decode($ad->title)); ?></strong></td>
360
<td><span style="color: <?php echo adrotate_prepare_color($stoptime);?>;"><?php echo date_i18n("F d, Y", $stoptime); ?></span></td>
361
<td><center><?php echo $ad->weight; ?></center></td>
362
<?php if($adrotate_config['stats'] == 1) {
49
<tbody>
50
<tr>
51
<th width="15%"><?php _e('Name', 'adrotate'); ?></th>
52
+ <td width="35%">
53
+ <label for="adrotate_groupname"><input tabindex="1" name="adrotate_groupname" type="text" class="ajdg-fullwidth ajdg-inputfield" size="70" value="<?php echo $edit_group->name; ?>" autocomplete="off" /></label>
54
+ </td>
55
+ <td>
56
+ &nbsp;
57
</td>
58
</tr>
59
<tr>
60
<th valign="top"><?php _e('Mode', 'adrotate'); ?></strong></th>
61
+ <td>
62
+ <select tabindex="2" name="adrotate_modus" class="ajdg-fullwidth">
63
<option value="0" <?php if($edit_group->modus == 0) { echo 'selected'; } ?>><?php _e('Default - Show one ad at a time', 'adrotate'); ?></option>
64
<option value="1" <?php if($edit_group->modus == 1) { echo 'selected'; } ?>><?php _e('Dynamic Mode - Show a different ad every few seconds', 'adrotate'); ?></option>
65
<option value="2" <?php if($edit_group->modus == 2) { echo 'selected'; } ?>><?php _e('Block Mode - Show a block of adverts', 'adrotate'); ?></option>
69
<p><em><?php _e('Dynamic mode requires jQuery. You can enable this in AdRotate Settings.', 'adrotate'); ?></em></p>
70
</td>
71
</tr>
72
+ <tr>
73
+ <th valign="top"><?php _e('Advert size', 'adrotate'); ?></strong></th>
74
+ <td>
75
+ <label for="adrotate_adwidth"><input tabindex="5" name="adrotate_adwidth" type="text" class="search-input" size="3" value="<?php echo $edit_group->adwidth; ?>" autocomplete="off" /> <?php _e('pixel(s) wide', 'adrotate'); ?>,</label> <label for="adrotate_adheight"><input tabindex="6" name="adrotate_adheight" type="text" class="search-input" size="3" value="<?php echo $edit_group->adheight; ?>" autocomplete="off" /> <?php _e('pixel(s) high.', 'adrotate'); ?></label>
76
+ </td>
77
+ <td>
78
+ <em><?php _e('Define the maximum size of the adverts in pixels. Size can be \'auto\' (Not recommended).', 'adrotate'); ?></em>
79
+ </td>
80
+ </tr>
81
</tbody>
82
</table>
83
84
<h3><?php _e('Dynamic and Block Mode', 'adrotate'); ?></h3>
85
<table class="widefat" style="margin-top: .5em">
86
<tbody>
87
<tr>
101
<p><em><?php _e('Block Mode', 'adrotate'); ?> - <?php _e('Larger blocks will degrade your sites performance! Default: 2/2.', 'adrotate'); ?></em></p>
102
</td>
103
</tr>
104
<tr>
105
<th valign="top"><?php _e('Automated refresh', 'adrotate'); ?></strong></th>
106
<td>
127
<p><em><?php _e('Dynamic Mode', 'adrotate'); ?> - <?php _e('Load a new advert in this interval without reloading the page. Default: 6.', 'adrotate'); ?></em></p>
128
</td>
129
</tr>
130
+ <tr>
131
+ <th valign="top"><?php _e('Repeat impressions', 'adrotate'); ?></th>
132
+ <td>
133
+ <label for="adrotate_repeat_impressions"><input type="checkbox" name="adrotate_repeat_impressions" checked disabled /> <?php _e('Count impressions for every cycle of adverts?', 'adrotate'); ?></label>
134
+ </td>
135
+ <td>
136
+ <em><?php _e('Dynamic Mode', 'adrotate'); ?> - <?php _e('Uncheck this option to only count impressions for the first cycle of adverts.', 'adrotate'); ?></em>
137
+ </td>
138
+ </tr>
139
</tbody>
140
</table>
141
+ <center><?php _e('Get access to all features in AdRotate Pro.', 'adrotate'); ?> <a href="admin.php?page=adrotate-pro"><?php _e('Upgrade today', 'adrotate'); ?></a>!</center>
142
143
<h3><?php _e('Usage', 'adrotate'); ?></h3>
144
<table class="widefat" style="margin-top: .5em">
167
<tr>
168
<th width="15%" valign="top"><?php _e('Advert Margin', 'adrotate'); ?></strong></th>
169
<td width="35%">
170
+ <label for="adrotate_admargin"><input tabindex="9" name="adrotate_admargin" type="text" class="ajdg-inputfield" size="5" value="<?php echo $edit_group->admargin; ?>" autocomplete="off" /> <?php _e('pixel(s)', 'adrotate'); ?>.</label>
171
</td>
172
+ <td>
173
<p><em><?php _e('A transparent area outside the advert in pixels. Default: 0.', 'adrotate'); ?> <?php _e('Set to 0 to disable.', 'adrotate'); ?> <?php _e('Margins are automatically disabled for blocks where required.', 'adrotate'); ?></em></p>
174
</td>
175
</tr>
183
<option value="3" <?php if($edit_group->align == 3) { echo 'selected'; } ?>><?php _e('Center', 'adrotate'); ?></option>
184
</select></label>
185
</td>
186
+ <td>
187
<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>
188
</td>
189
</tr>
193
<td><p><em><?php _e('Do not forget to tell the adverts for which areas they should show.', 'adrotate'); ?></em></p></td>
194
</tr>
195
<tr>
196
+ <th width="15%" valign="top"><?php _e('Mobile Support', 'adrotate'); ?></th>
197
<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>
198
<td><p><em><?php _e('Do not forget to put at least one mobile advert in this group.', 'adrotate'); ?></em></p></td>
199
</tr>
200
+ <tr>
201
+ <th valign="top"><?php _e('Fallback Group', 'adrotate-pro'); ?></th>
202
+ <td>
203
+ <label for="adrotate_fallback">
204
+ <select tabindex="16" name="adrotate_fallback" disabled>
205
+ <option value="0"><?php _e('Available in AdRotate Pro', 'adrotate-pro'); ?></option>
206
+ </select>
207
+ </td>
208
+ <td>
209
+ <em><?php _e('Select another group to fall back on when all adverts are expired, not in the visitors geographic area or are otherwise unavailable.', 'adrotate-pro'); ?></em>
210
+ </td>
211
+ </tr>
212
</tbody>
213
</table>
214
+ <center><?php _e('Get access to all features in AdRotate Pro.', 'adrotate'); ?> <a href="admin.php?page=adrotate-pro"><?php _e('Upgrade now', 'adrotate'); ?></a>!</center>
215
216
<div id="dashboard-widgets-wrap">
217
<div id="dashboard-widgets" class="metabox-holder">
218
+ <div id="left-column" class="postbox-container">
219
220
+ <div class="ajdg-postbox">
221
+ <h2 class="ajdg-postbox-title"><?php _e('Post Injection', 'adrotate'); ?></h2>
222
+ <div id="postinjection" class="ajdg-postbox-content">
223
+ <p><label for="adrotate_cat_location">
224
+ <select tabindex="18" name="adrotate_cat_location">
225
+ <option value="0" <?php if($edit_group->cat_loc == 0) { echo 'selected'; } ?>><?php _e('Disabled', 'adrotate'); ?></option>
226
+ <option value="0" disabled><?php _e('Widget (Pro only)', 'adrotate'); ?></option>
227
+ <option value="1" <?php if($edit_group->cat_loc == 1) { echo 'selected'; } ?>><?php _e('Before content', 'adrotate'); ?></option>
228
+ <option value="2" <?php if($edit_group->cat_loc == 2) { echo 'selected'; } ?>><?php _e('After content', 'adrotate'); ?></option>
229
+ <option value="3" <?php if($edit_group->cat_loc == 3) { echo 'selected'; } ?>><?php _e('Before and after content', 'adrotate'); ?></option>
230
+ <option value="4" <?php if($edit_group->cat_loc == 4) { echo 'selected'; } ?>><?php _e('Inside the content...', 'adrotate'); ?></option>
231
+ </select>
232
+ </label>
233
+ <label for="adrotate_cat_paragraph">
234
+ <select tabindex="19" name="adrotate_cat_paragraph">
235
+ <option value="0" <?php if($edit_group->cat_par == 0) { echo 'selected'; } ?>>...</option>
236
+ <option value="99" <?php if($edit_group->cat_par == 99) { echo 'selected'; } ?>><?php _e('after the middle paragraph', 'adrotate'); ?></option>
237
+ <option value="1" <?php if($edit_group->cat_par == 1) { echo 'selected'; } ?>><?php _e('after the 1st paragraph', 'adrotate'); ?></option>
238
+ <option value="2" <?php if($edit_group->cat_par == 2) { echo 'selected'; } ?>><?php _e('after the 2nd paragraph', 'adrotate'); ?></option>
239
+ <option value="3" <?php if($edit_group->cat_par == 3) { echo 'selected'; } ?>><?php _e('after the 3rd paragraph', 'adrotate'); ?></option>
240
+ <option value="4" <?php if($edit_group->cat_par == 4) { echo 'selected'; } ?>><?php _e('after the 4th paragraph', 'adrotate'); ?></option>
241
+ <option value="5" <?php if($edit_group->cat_par == 5) { echo 'selected'; } ?>><?php _e('after the 5th paragraph', 'adrotate'); ?></option>
242
+ <option value="6" <?php if($edit_group->cat_par == 6) { echo 'selected'; } ?>><?php _e('after the 6th paragraph', 'adrotate'); ?></option>
243
+ <option value="7" <?php if($edit_group->cat_par == 7) { echo 'selected'; } ?>><?php _e('after the 7th paragraph', 'adrotate'); ?></option>
244
+ <option value="8" <?php if($edit_group->cat_par == 8) { echo 'selected'; } ?>><?php _e('after the 8th paragraph', 'adrotate'); ?></option>
245
+ </select>
246
+ </label></p>
247
+ <p><strong>Select Categories</strong></p>
248
+ <div class="adrotate-select">
249
+ <?php echo adrotate_select_categories($edit_group->cat, 0, 0, 0); ?>
250
</div>
251
</div>
252
</div>
253
+
254
</div>
255
+ <div id="right-column" class="postbox-container">
256
+
257
+ <div class="ajdg-postbox">
258
+ <h2 class="ajdg-postbox-title"><?php _e('Page Injection', 'adrotate'); ?></h2>
259
+ <div id="pageinjection" class="ajdg-postbox-content">
260
+ <p><label for="adrotate_page_location">
261
+ <select tabindex="20" name="adrotate_page_location">
262
+ <option value="0" <?php if($edit_group->page_loc == 0) { echo 'selected'; } ?>><?php _e('Disabled', 'adrotate'); ?></option>
263
+ <option value="0" disabled><?php _e('Widget (Pro only)', 'adrotate'); ?></option>
264
+ <option value="1" <?php if($edit_group->page_loc == 1) { echo 'selected'; } ?>><?php _e('Before content', 'adrotate'); ?></option>
265
+ <option value="2" <?php if($edit_group->page_loc == 2) { echo 'selected'; } ?>><?php _e('After content', 'adrotate'); ?></option>
266
+ <option value="3" <?php if($edit_group->page_loc == 3) { echo 'selected'; } ?>><?php _e('Before and after content', 'adrotate'); ?></option>
267
+ <option value="4" <?php if($edit_group->page_loc == 4) { echo 'selected'; } ?>><?php _e('Inside the content...', 'adrotate'); ?></option>
268
+ </select>
269
+ </label>
270
+ <label for="adrotate_page_paragraph">
271
+ <select tabindex="21" name="adrotate_page_paragraph">
272
+ <option value="0" <?php if($edit_group->page_par == 0) { echo 'selected'; } ?>>...</option>
273
+ <option value="99" <?php if($edit_group->page_par == 99) { echo 'selected'; } ?>><?php _e('after the middle paragraph', 'adrotate'); ?></option>
274
+ <option value="1" <?php if($edit_group->page_par == 1) { echo 'selected'; } ?>><?php _e('after the 1st paragraph', 'adrotate'); ?></option>
275
+ <option value="2" <?php if($edit_group->page_par == 2) { echo 'selected'; } ?>><?php _e('after the 2nd paragraph', 'adrotate'); ?></option>
276
+ <option value="3" <?php if($edit_group->page_par == 3) { echo 'selected'; } ?>><?php _e('after the 3rd paragraph', 'adrotate'); ?></option>
277
+ <option value="4" <?php if($edit_group->page_par == 4) { echo 'selected'; } ?>><?php _e('after the 4th paragraph', 'adrotate'); ?></option>
278
+ <option value="5" <?php if($edit_group->page_par == 5) { echo 'selected'; } ?>><?php _e('after the 5th paragraph', 'adrotate'); ?></option>
279
+ <option value="6" <?php if($edit_group->page_par == 6) { echo 'selected'; } ?>><?php _e('after the 6th paragraph', 'adrotate'); ?></option>
280
+ <option value="7" <?php if($edit_group->page_par == 7) { echo 'selected'; } ?>><?php _e('after the 7th paragraph', 'adrotate'); ?></option>
281
+ <option value="8" <?php if($edit_group->page_par == 8) { echo 'selected'; } ?>><?php _e('after the 8th paragraph', 'adrotate'); ?></option>
282
+ </select>
283
+ </label></p>
284
285
+ <p><strong>Select Pages</strong></p>
286
+ <div class="adrotate-select">
287
+ <?php echo adrotate_select_pages($edit_group->page, 0, 0, 0); ?>
288
</div>
289
</div>
290
</div>
291
+
292
</div>
293
+ </div>
294
+ </div>
295
<div class="clear"></div>
296
297
<h3><?php _e('Usage', 'adrotate'); ?></h3>
305
<th width="15%"><?php _e('In a post or page', 'adrotate'); ?></th>
306
<td width="35%">[adrotate group="<?php echo $edit_group->id; ?>"]</td>
307
<th width="15%"><?php _e('Directly in a theme', 'adrotate'); ?></th>
308
+ <td>&lt;?php echo adrotate_group(<?php echo $edit_group->id; ?>); ?&gt;</td>
309
</tr>
310
</tbody>
311
</table>
321
<tbody>
322
<tr>
323
<th width="15%" valign="top"><?php _e('Before advert', 'adrotate'); ?></strong></th>
324
+ <td width="35%"><textarea tabindex="17" name="adrotate_wrapper_before" rows="3" class="ajdg-fullwidth"><?php echo stripslashes($edit_group->wrapper_before); ?></textarea></td>
325
+ <td>
326
<p><strong><?php _e('Example:', 'adrotate'); ?></strong> <em>&lt;span style="background-color:#aaa;"&gt;</em></p>
327
<p><strong><?php _e('Options:', 'adrotate'); ?></strong> <em>%id%</em></p>
328
</td>
329
</tr>
330
<tr>
331
<th valign="top"><?php _e('After advert', 'adrotate'); ?></strong></th>
332
+ <td width="35%"><textarea tabindex="18" name="adrotate_wrapper_after" rows="3" class="ajdg-fullwidth"><?php echo stripslashes($edit_group->wrapper_after); ?></textarea></td>
333
<td>
334
<p><strong><?php _e('Example:', 'adrotate'); ?></strong> <em>&lt;/span&gt;</em></p>
335
</td>
341
<table class="widefat" style="margin-top: .5em">
342
<thead>
343
<tr>
344
+ <td width="2%" scope="col" class="manage-column column-cb check-column"><input type="checkbox" /></td>
345
+ <th width="2%"><center><?php _e('ID', 'adrotate'); ?></center></th>
346
+ <th><?php _e('Name', 'adrotate'); ?></th>
347
<th width="15%"><?php _e('Visible until', 'adrotate'); ?></th>
348
<th width="5%"><center><?php _e('Weight', 'adrotate'); ?></center></th>
349
<?php if($adrotate_config['stats'] == 1) { ?>
372
$class = ($errorclass != '') ? $errorclass : $class;
373
?>
374
<tr class='<?php echo $class; ?>'>
375
+ <th class="check-column"><input type="checkbox" name="adselect[]" value="<?php echo $ad->id; ?>" <?php if(in_array($ad->id, $meta_array)) echo "checked"; ?> /></th>
376
+ <td><center><?php echo $ad->id; ?></center></td>
377
+ <td><?php echo stripslashes(html_entity_decode($ad->title)); ?></td>
378
<td><span style="color: <?php echo adrotate_prepare_color($stoptime);?>;"><?php echo date_i18n("F d, Y", $stoptime); ?></span></td>
379
<td><center><?php echo $ad->weight; ?></center></td>
380
<?php if($adrotate_config['stats'] == 1) {
dashboard/publisher/statistics-advert.php CHANGED
@@ -13,8 +13,8 @@ $banner = $wpdb->get_row("SELECT `title`, `tracker`, `type` FROM `{$wpdb->prefix
13
14
$stats = adrotate_stats($id, false);
15
$stats_today = adrotate_stats($id, false, adrotate_date_start('day'));
16
- $stats_last_month = adrotate_stats($id, false, mktime(0, 0, 0, date("m")-1, 1, date("Y")), mktime(0, 0, 0, date("m"), 0, date("Y")));
17
- $stats_this_month = adrotate_stats($id, false, mktime(0, 0, 0, date("m"), 1, date("Y")), mktime(0, 0, 0, date("m"), date("t"), date("Y")));
18
$stats_graph_month = adrotate_stats($id, false, $monthstart, $monthend);
19
20
// Prevent gaps in display
13
14
$stats = adrotate_stats($id, false);
15
$stats_today = adrotate_stats($id, false, adrotate_date_start('day'));
16
+ $stats_last_month = adrotate_stats($id, false, get_date_from_gmt(gmmktime(0, 0, 0, gmdate("m")-1, 1, gmdate("Y")), 'U'), get_date_from_gmt(gmmktime(0, 0, 0, gmdate("m"), 0, gmdate("Y")), 'U'));
17
+ $stats_this_month = adrotate_stats($id, false, get_date_from_gmt(gmmktime(0, 0, 0, gmdate("m"), 1, gmdate("Y")), 'U'), get_date_from_gmt(gmmktime(0, 0, 0, gmdate("m"), gmdate("t"), gmdate("Y")), 'U'));
18
$stats_graph_month = adrotate_stats($id, false, $monthstart, $monthend);
19
20
// Prevent gaps in display
dashboard/publisher/statistics-group.php CHANGED
@@ -13,12 +13,12 @@ $title = $wpdb->get_var("SELECT `name` FROM `{$wpdb->prefix}adrotate_groups` WHE
13
$stats = $wpdb->get_row("SELECT SUM(`clicks`) as `clicks`, SUM(`impressions`) as `impressions` FROM `{$wpdb->prefix}adrotate_stats` WHERE `group` = {$id};", ARRAY_A);
14
$stats_today = $wpdb->get_row("SELECT `clicks`, `impressions` FROM `{$wpdb->prefix}adrotate_stats` WHERE `group` = {$id} AND `thetime` = {$today};", ARRAY_A);
15
16
- $start_last_month = mktime(0, 0, 0, date("m")-1, 1, date("Y"));
17
- $end_last_month = mktime(0, 0, 0, date("m")-1, date("t"), date("Y"));
18
$stats_last_month = $wpdb->get_row("SELECT SUM(`clicks`) as `clicks`, SUM(`impressions`) as `impressions` FROM `{$wpdb->prefix}adrotate_stats` WHERE `group` = {$id} AND `thetime` >= {$start_last_month} AND `thetime` <= {$end_last_month};", ARRAY_A);
19
20
- $start_this_month = mktime(0, 0, 0, date("m"), 1, date("Y"));
21
- $end_this_month = mktime(0, 0, 0, date("m"), date("t"), date("Y"));
22
$stats_this_month = $wpdb->get_row("SELECT SUM(`clicks`) as `clicks`, SUM(`impressions`) as `impressions` FROM `{$wpdb->prefix}adrotate_stats` WHERE `group` = {$id} AND `thetime` >= {$start_this_month} AND `thetime` <= {$end_this_month};", ARRAY_A);
23
24
$stats_graph_month = $wpdb->get_row("SELECT SUM(`clicks`) as `clicks`, SUM(`impressions`) as `impressions` FROM `{$wpdb->prefix}adrotate_stats` WHERE `group` = {$id} AND `thetime` >= {$monthstart} AND `thetime` <= {$monthend};", ARRAY_A);
13
$stats = $wpdb->get_row("SELECT SUM(`clicks`) as `clicks`, SUM(`impressions`) as `impressions` FROM `{$wpdb->prefix}adrotate_stats` WHERE `group` = {$id};", ARRAY_A);
14
$stats_today = $wpdb->get_row("SELECT `clicks`, `impressions` FROM `{$wpdb->prefix}adrotate_stats` WHERE `group` = {$id} AND `thetime` = {$today};", ARRAY_A);
15
16
+ $start_last_month = get_date_from_gmt(gmmktime(0, 0, 0, gmdate("m")-1, 1, gmdate("Y")), 'U');
17
+ $end_last_month = get_date_from_gmt(gmmktime(0, 0, 0, gmdate("m")-1, gmdate("t"), gmdate("Y")), 'U');
18
$stats_last_month = $wpdb->get_row("SELECT SUM(`clicks`) as `clicks`, SUM(`impressions`) as `impressions` FROM `{$wpdb->prefix}adrotate_stats` WHERE `group` = {$id} AND `thetime` >= {$start_last_month} AND `thetime` <= {$end_last_month};", ARRAY_A);
19
20
+ $start_this_month = get_date_from_gmt(gmmktime(0, 0, 0, gmdate("m"), 1, gmdate("Y")), 'U');
21
+ $end_this_month = get_date_from_gmt(gmmktime(0, 0, 0, gmdate("m"), gmdate("t"), gmdate("Y")), 'U');
22
$stats_this_month = $wpdb->get_row("SELECT SUM(`clicks`) as `clicks`, SUM(`impressions`) as `impressions` FROM `{$wpdb->prefix}adrotate_stats` WHERE `group` = {$id} AND `thetime` >= {$start_this_month} AND `thetime` <= {$end_this_month};", ARRAY_A);
23
24
$stats_graph_month = $wpdb->get_row("SELECT SUM(`clicks`) as `clicks`, SUM(`impressions`) as `impressions` FROM `{$wpdb->prefix}adrotate_stats` WHERE `group` = {$id} AND `thetime` >= {$monthstart} AND `thetime` <= {$monthend};", ARRAY_A);
images/offers/blindferret.jpg ADDED
Binary file
library/dashboard.css CHANGED
@@ -12,8 +12,8 @@
12
.stats_large { display: block; margin-bottom: 10px; margin-top: 10px; text-align: center; font-weight: bold; }
13
.number_large { margin: 20px; font-size: 28px; }
14
15
- /* Fancy select box for Post/Page injection */
16
- .adrotate-select { padding:3px; border:1px solid #efefef; max-width:500px; max-height:200px; overflow-y:scroll; background-color:#fff; }
17
.adrotate-select .check-column { width: 7%; text-align: center; }
18
.postbox-ajdg textarea { border:1px solid #efefef; width:100%; margin:3px 0; padding:3px; }
19
@@ -31,11 +31,15 @@
31
.ajdg_notification .close_notification { float:right; margin:8px; cursor:pointer; }
32
33
/* Dashboard styles */
34
- .postbox-ajdg { margin-bottom:20px; padding:0; min-width:255px; border:#dfdfdf 1px solid; background-color:#fff; -moz-box-shadow:inset 0 1px 0 #fff; -webkit-box-shadow:inset 0 1px 0 #fff; box-shadow:inset 0 1px 0 #fff; }
35
- .postbox-ajdg h3 { margin:0; padding:7px 10px 7px 10px; box-shadow:#ddd 0px 1px 0px 0px; -moz-box-shadow:inset 0 1px 0 #ddd; -webkit-box-shadow:#ddd 0px 1px 0px 0px; line-height:15px; }
36
- .postbox-ajdg .inside { margin:10px 10px 0px 10px; padding:0px 10px 12px 10px; clear:both; min-height:40px; position:relative; }
37
.pro-image { padding:0px 3px 0px 0px; }
38
.ajdg-photo { border-radius: 5px; }
39
40
/* Tablesorter */
41
table.tablesorter thead tr .header { text-decoration: underline; cursor: pointer; }
12
.stats_large { display: block; margin-bottom: 10px; margin-top: 10px; text-align: center; font-weight: bold; }
13
.number_large { margin: 20px; font-size: 28px; }
14
15
+ /* Fancy select box for Post/Page injection and Geo Targeting */
16
+ .adrotate-select { padding:3px; border:1px solid #efefef; min-width:400px; max-height:200px; overflow-y:scroll; background-color:#fff; }
17
.adrotate-select .check-column { width: 7%; text-align: center; }
18
.postbox-ajdg textarea { border:1px solid #efefef; width:100%; margin:3px 0; padding:3px; }
19
31
.ajdg_notification .close_notification { float:right; margin:8px; cursor:pointer; }
32
33
/* Dashboard styles */
34
+ h2.ajdg-postbox-title { font-size: 14px; padding: 8px 12px; margin: 0; line-height: 1.4; }
35
+ .ajdg-postbox { margin: 0 8px; min-height: 100px; box-sizing: border-box; }
36
+ .ajdg-postbox-content { margin-bottom: 20px; padding: 10px 20px 20px 20px; min-height: 40px; min-width:255px; border:#dfdfdf 1px solid; background-color:#fff; -moz-box-shadow:inset 0 1px 0 #fff; -webkit-box-shadow:inset 0 1px 0 #fff; box-shadow:inset 0 1px 0 #fff; clear: both; position: relative; }
37
+ .ajdg-postbox-content h3 { margin:0; padding:7px 10px 7px 10px; box-shadow:#ddd 0px 1px 0px 0px; -moz-box-shadow:inset 0 1px 0 #ddd; -webkit-box-shadow:#ddd 0px 1px 0px 0px; line-height:15px; }
38
+ .ajdg-postbox-content textarea.noborder { border: none; box-shadow: none; resize: none; }
39
.pro-image { padding:0px 3px 0px 0px; }
40
.ajdg-photo { border-radius: 5px; }
41
+ .ajdg-fullwidth { width: 100%; }
42
+ .ajdg-inputfield { height: 28px; margin: 0 4px 0 0; }
43
44
/* Tablesorter */
45
table.tablesorter thead tr .header { text-decoration: underline; cursor: pointer; }
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: adegans
3
Donate link: https://www.arnan.me/donate.html
4
Tags: ads, advert, adsense, advertising, doubleclick, responsive adverts, ad manager, banner manager, advert manager, monetise, advertisement, banner
5
Requires at least: 3.8
6
- Tested up to: 5.0
7
- Stable tag: 4.15.2
8
License: GPLv3
9
10
Monetise your website with adverts while keeping things simple. Start making money today!
@@ -97,9 +97,10 @@ You can also post your questions on the [forum](https://ajdg.solutions/forums/)!
97
98
Be a Professional and go Pro. With [AdRotate Professional](https://ajdg.solutions/plugins/adrotate-for-wordpress/)!
99
100
- = 4.15.2 FREE =
101
- * [fix] Typos in the dashboard
102
- * [i18n] Updated translation files
103
104
= 4.18.2 PRO =
105
* [fix] Incorrect slug for updates
@@ -109,7 +110,7 @@ All recent changes are available on the [AdRotate website](https://ajdg.solution
109
110
== Upgrade Notice ==
111
112
- Improved Post Injection and updated translation files.
113
114
== Screenshots ==
115
3
Donate link: https://www.arnan.me/donate.html
4
Tags: ads, advert, adsense, advertising, doubleclick, responsive adverts, ad manager, banner manager, advert manager, monetise, advertisement, banner
5
Requires at least: 3.8
6
+ Tested up to: 5.1
7
+ Stable tag: 5.0
8
License: GPLv3
9
10
Monetise your website with adverts while keeping things simple. Start making money today!
97
98
Be a Professional and go Pro. With [AdRotate Professional](https://ajdg.solutions/plugins/adrotate-for-wordpress/)!
99
100
+ = 5.0 FREE =
101
+ * [new] Advertising Partners dashboard
102
+ * [update] Better localized dates for stats
103
+ * [update] Dashboard formatting and layout
104
105
= 4.18.2 PRO =
106
* [fix] Incorrect slug for updates
110
111
== Upgrade Notice ==
112
113
+ A lot of polish for the dashboard, visual updates and stability improvements.
114
115
== Screenshots ==
116