Version Description
All kinds of small improvements and polish and shine.
Download this release
Release Info
Developer | adegans |
Plugin | AdRotate Banner Manager |
Version | 5.4.1 |
Comparing to | |
See all releases |
Code changes from version 5.4 to 5.4.1
- adrotate-export.php +1 -2
- adrotate-setup.php +2 -2
- adrotate.php +2 -2
- dashboard/publisher/adverts-edit.php +1 -1
- dashboard/publisher/adverts-generator.php +1 -1
- readme.txt +4 -1
adrotate-export.php
CHANGED
@@ -52,7 +52,6 @@ function adrotate_export_ads($ids) {
|
|
52 |
'bannercode' => stripslashes($export['bannercode']),
|
53 |
'imagetype' => (empty($export['imagetype'])) ? null : $export['imagetype'],
|
54 |
'image' => (empty($export['image'])) ? null : $export['image'],
|
55 |
-
'paid' => $export['paid'],
|
56 |
'tracker' => $export['tracker'],
|
57 |
'desktop' => $export['desktop'],
|
58 |
'mobile' => $export['mobile'],
|
@@ -78,7 +77,7 @@ function adrotate_export_ads($ids) {
|
|
78 |
|
79 |
if($fp) {
|
80 |
$generated = array('Generated', date_i18n("M d Y, H:i:s"));
|
81 |
-
$keys = array('id', 'name', 'bannercode', 'imagetype', 'image_url', '
|
82 |
|
83 |
fputcsv($fp, $generated);
|
84 |
fputcsv($fp, $keys);
|
52 |
'bannercode' => stripslashes($export['bannercode']),
|
53 |
'imagetype' => (empty($export['imagetype'])) ? null : $export['imagetype'],
|
54 |
'image' => (empty($export['image'])) ? null : $export['image'],
|
|
|
55 |
'tracker' => $export['tracker'],
|
56 |
'desktop' => $export['desktop'],
|
57 |
'mobile' => $export['mobile'],
|
77 |
|
78 |
if($fp) {
|
79 |
$generated = array('Generated', date_i18n("M d Y, H:i:s"));
|
80 |
+
$keys = array('id', 'name', 'bannercode', 'imagetype', 'image_url', 'enable_stats', 'show_desktop', 'show_mobile', 'show_tablet', 'show_ios', 'show_android', 'show_otheros', 'weight', 'budget', 'click_rate', 'impression_rate', 'geo_cities', 'geo_countries', 'schedule_start', 'schedule_end');
|
81 |
|
82 |
fputcsv($fp, $generated);
|
83 |
fputcsv($fp, $keys);
|
adrotate-setup.php
CHANGED
@@ -347,7 +347,7 @@ function adrotate_dummy_data() {
|
|
347 |
|
348 |
if(is_null($no_ads) AND is_null($no_schedules) AND is_null($no_linkmeta)) {
|
349 |
// Demo ad 1
|
350 |
-
$wpdb->insert("{$wpdb->prefix}adrotate", array('title' => 'Demo ad 468x60', 'bannercode' => '<a href=\"https:\/\/ajdg.solutions\"><img src=\"http://ajdg.solutions/assets/dummy-banners/adrotate-468x60.jpg\" /></a>', 'thetime' => $now, 'updated' => $now, 'author' => $current_user->user_login, 'imagetype' => '', 'image' => '', '
|
351 |
$ad_id = $wpdb->insert_id;
|
352 |
$wpdb->insert("{$wpdb->prefix}adrotate_schedule", array('name' => 'Schedule for ad '.$ad_id, 'starttime' => $now, 'stoptime' => $in84days, 'maxclicks' => 0, 'maximpressions' => 0, 'spread' => 'N', 'daystarttime' => '0000', 'daystoptime' => '0000', 'day_mon' => 'Y', 'day_tue' => 'Y', 'day_wed' => 'Y', 'day_thu' => 'Y', 'day_fri' => 'Y', 'day_sat' => 'Y', 'day_sun' => 'Y'));
|
353 |
$schedule_id = $wpdb->insert_id;
|
@@ -355,7 +355,7 @@ function adrotate_dummy_data() {
|
|
355 |
unset($ad_id, $schedule_id);
|
356 |
|
357 |
// Demo ad 2
|
358 |
-
$wpdb->insert("{$wpdb->prefix}adrotate", array('title' => 'Demo ad 200x200', 'bannercode' => '<a href=\"https:\/\/ajdg.solutions\"><img src=\"http://ajdg.solutions/assets/dummy-banners/adrotate-200x200.jpg\" /></a>', 'thetime' => $now, 'updated' => $now, 'author' => $current_user->user_login, 'imagetype' => '', 'image' => '', '
|
359 |
$ad_id = $wpdb->insert_id;
|
360 |
$wpdb->insert("{$wpdb->prefix}adrotate_schedule", array('name' => 'Schedule for ad '.$ad_id, 'starttime' => $now, 'stoptime' => $in84days, 'maxclicks' => 0, 'maximpressions' => 0, 'spread' => 'N', 'daystarttime' => '0000', 'daystoptime' => '0000', 'day_mon' => 'Y', 'day_tue' => 'Y', 'day_wed' => 'Y', 'day_thu' => 'Y', 'day_fri' => 'Y', 'day_sat' => 'Y', 'day_sun' => 'Y'));
|
361 |
$schedule_id = $wpdb->insert_id;
|
347 |
|
348 |
if(is_null($no_ads) AND is_null($no_schedules) AND is_null($no_linkmeta)) {
|
349 |
// Demo ad 1
|
350 |
+
$wpdb->insert("{$wpdb->prefix}adrotate", array('title' => 'Demo ad 468x60', 'bannercode' => '<a href=\"https:\/\/ajdg.solutions\"><img src=\"http://ajdg.solutions/assets/dummy-banners/adrotate-468x60.jpg\" /></a>', 'thetime' => $now, 'updated' => $now, 'author' => $current_user->user_login, 'imagetype' => '', 'image' => '', 'tracker' => 'N', 'show_everyone' => 'Y', 'desktop' => 'Y', 'mobile' => 'Y', 'tablet' => 'Y', 'os_ios' => 'Y', 'os_android' => 'Y', 'os_other' => 'Y', 'type' => 'active', 'weight' => 6, 'budget' => 0, 'crate' => 0, 'irate' => 0, 'cities' => serialize(array()), 'countries' => serialize(array())));
|
351 |
$ad_id = $wpdb->insert_id;
|
352 |
$wpdb->insert("{$wpdb->prefix}adrotate_schedule", array('name' => 'Schedule for ad '.$ad_id, 'starttime' => $now, 'stoptime' => $in84days, 'maxclicks' => 0, 'maximpressions' => 0, 'spread' => 'N', 'daystarttime' => '0000', 'daystoptime' => '0000', 'day_mon' => 'Y', 'day_tue' => 'Y', 'day_wed' => 'Y', 'day_thu' => 'Y', 'day_fri' => 'Y', 'day_sat' => 'Y', 'day_sun' => 'Y'));
|
353 |
$schedule_id = $wpdb->insert_id;
|
355 |
unset($ad_id, $schedule_id);
|
356 |
|
357 |
// Demo ad 2
|
358 |
+
$wpdb->insert("{$wpdb->prefix}adrotate", array('title' => 'Demo ad 200x200', 'bannercode' => '<a href=\"https:\/\/ajdg.solutions\"><img src=\"http://ajdg.solutions/assets/dummy-banners/adrotate-200x200.jpg\" /></a>', 'thetime' => $now, 'updated' => $now, 'author' => $current_user->user_login, 'imagetype' => '', 'image' => '', 'tracker' => 'N', 'show_everyone' => 'Y', 'desktop' => 'Y', 'mobile' => 'Y', 'tablet' => 'Y', 'os_ios' => 'Y', 'os_android' => 'Y', 'os_other' => 'Y', 'type' => 'active', 'weight' => 6, 'budget' => 0, 'crate' => 0, 'irate' => 0, 'cities' => serialize(array()), 'countries' => serialize(array())));
|
359 |
$ad_id = $wpdb->insert_id;
|
360 |
$wpdb->insert("{$wpdb->prefix}adrotate_schedule", array('name' => 'Schedule for ad '.$ad_id, 'starttime' => $now, 'stoptime' => $in84days, 'maxclicks' => 0, 'maximpressions' => 0, 'spread' => 'N', 'daystarttime' => '0000', 'daystoptime' => '0000', 'day_mon' => 'Y', 'day_tue' => 'Y', 'day_wed' => 'Y', 'day_thu' => 'Y', 'day_fri' => 'Y', 'day_sat' => 'Y', 'day_sun' => 'Y'));
|
361 |
$schedule_id = $wpdb->insert_id;
|
adrotate.php
CHANGED
@@ -6,7 +6,7 @@ Author: Arnan de Gans
|
|
6 |
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 |
-
Version: 5.4
|
10 |
License: GPLv3
|
11 |
*/
|
12 |
|
@@ -21,7 +21,7 @@ License: GPLv3
|
|
21 |
------------------------------------------------------------------------------------ */
|
22 |
|
23 |
/*--- AdRotate values ---------------------------------------*/
|
24 |
-
define("ADROTATE_DISPLAY", '5.4');
|
25 |
define("ADROTATE_VERSION", 393);
|
26 |
define("ADROTATE_DB_VERSION", 65);
|
27 |
$plugin_folder = plugin_dir_path(__FILE__);
|
6 |
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 |
+
Version: 5.4.1
|
10 |
License: GPLv3
|
11 |
*/
|
12 |
|
21 |
------------------------------------------------------------------------------------ */
|
22 |
|
23 |
/*--- AdRotate values ---------------------------------------*/
|
24 |
+
define("ADROTATE_DISPLAY", '5.4.1');
|
25 |
define("ADROTATE_VERSION", 393);
|
26 |
define("ADROTATE_DB_VERSION", 65);
|
27 |
$plugin_folder = plugin_dir_path(__FILE__);
|
dashboard/publisher/adverts-edit.php
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
if(!$ad_edit_id) {
|
13 |
$edit_id = $wpdb->get_var("SELECT `id` FROM `{$wpdb->prefix}adrotate` WHERE `type` = 'empty' ORDER BY `id` DESC LIMIT 1;");
|
14 |
if($edit_id == 0) {
|
15 |
-
$wpdb->insert($wpdb->prefix."adrotate", array('title' => '', 'bannercode' => '', 'thetime' => $now, 'updated' => $now, 'author' => $userdata->user_login, 'imagetype' => 'dropdown', 'image' => '', '
|
16 |
$edit_id = $wpdb->insert_id;
|
17 |
|
18 |
$wpdb->insert($wpdb->prefix.'adrotate_schedule', array('name' => 'Schedule for ad '.$edit_id, 'starttime' => $now, 'stoptime' => $in84days, 'maxclicks' => 0, 'maximpressions' => 0, 'spread' => 'N', 'daystarttime' => '0000', 'daystoptime' => '0000', 'day_mon' => 'Y', 'day_tue' => 'Y', 'day_wed' => 'Y', 'day_thu' => 'Y', 'day_fri' => 'Y', 'day_sat' => 'Y', 'day_sun' => 'Y', 'autodelete' => 'N'));
|
12 |
if(!$ad_edit_id) {
|
13 |
$edit_id = $wpdb->get_var("SELECT `id` FROM `{$wpdb->prefix}adrotate` WHERE `type` = 'empty' ORDER BY `id` DESC LIMIT 1;");
|
14 |
if($edit_id == 0) {
|
15 |
+
$wpdb->insert($wpdb->prefix."adrotate", array('title' => '', 'bannercode' => '', 'thetime' => $now, 'updated' => $now, 'author' => $userdata->user_login, 'imagetype' => 'dropdown', 'image' => '', 'tracker' => 'N', 'show_everyone' => 'Y', 'desktop' => 'Y', 'mobile' => 'Y', 'tablet' => 'Y', 'os_ios' => 'Y', 'os_android' => 'Y', 'os_other' => 'Y', 'type' => 'empty', 'weight' => 6, 'autodelete' => 'N', 'budget' => 0, 'crate' => 0, 'irate' => 0, 'cities' => serialize(array()), 'countries' => serialize(array())));
|
16 |
$edit_id = $wpdb->insert_id;
|
17 |
|
18 |
$wpdb->insert($wpdb->prefix.'adrotate_schedule', array('name' => 'Schedule for ad '.$edit_id, 'starttime' => $now, 'stoptime' => $in84days, 'maxclicks' => 0, 'maximpressions' => 0, 'spread' => 'N', 'daystarttime' => '0000', 'daystoptime' => '0000', 'day_mon' => 'Y', 'day_tue' => 'Y', 'day_wed' => 'Y', 'day_thu' => 'Y', 'day_fri' => 'Y', 'day_sat' => 'Y', 'day_sun' => 'Y', 'autodelete' => 'N'));
|
dashboard/publisher/adverts-generator.php
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
if(!$ad_edit_id) {
|
13 |
$edit_id = $wpdb->get_var("SELECT `id` FROM `{$wpdb->prefix}adrotate` WHERE `type` = 'generator' ORDER BY `id` DESC LIMIT 1;");
|
14 |
if($edit_id == 0) {
|
15 |
-
$wpdb->insert($wpdb->prefix."adrotate", array('title' => '', 'bannercode' => '', 'thetime' => $now, 'updated' => $now, 'author' => $userdata->user_login, 'imagetype' => 'dropdown', 'image' => '', '
|
16 |
$edit_id = $wpdb->insert_id;
|
17 |
|
18 |
$wpdb->insert($wpdb->prefix.'adrotate_schedule', array('name' => 'Schedule for ad '.$edit_id, 'starttime' => $now, 'stoptime' => $in84days, 'maxclicks' => 0, 'maximpressions' => 0, 'spread' => 'N', 'daystarttime' => '0000', 'daystoptime' => '0000', 'day_mon' => 'Y', 'day_tue' => 'Y', 'day_wed' => 'Y', 'day_thu' => 'Y', 'day_fri' => 'Y', 'day_sat' => 'Y', 'day_sun' => 'Y', 'autodelete' => 'N'));
|
12 |
if(!$ad_edit_id) {
|
13 |
$edit_id = $wpdb->get_var("SELECT `id` FROM `{$wpdb->prefix}adrotate` WHERE `type` = 'generator' ORDER BY `id` DESC LIMIT 1;");
|
14 |
if($edit_id == 0) {
|
15 |
+
$wpdb->insert($wpdb->prefix."adrotate", array('title' => '', 'bannercode' => '', 'thetime' => $now, 'updated' => $now, 'author' => $userdata->user_login, 'imagetype' => 'dropdown', 'image' => '', 'tracker' => 'N', 'desktop' => 'Y', 'mobile' => 'Y', 'tablet' => 'Y', 'os_ios' => 'Y', 'os_android' => 'Y', 'os_other' => 'Y', 'type' => 'generator', 'weight' => 6, 'autodelete' => 'N', 'budget' => 0, 'crate' => 0, 'irate' => 0, 'cities' => serialize(array()), 'countries' => serialize(array())));
|
16 |
$edit_id = $wpdb->insert_id;
|
17 |
|
18 |
$wpdb->insert($wpdb->prefix.'adrotate_schedule', array('name' => 'Schedule for ad '.$edit_id, 'starttime' => $now, 'stoptime' => $in84days, 'maxclicks' => 0, 'maximpressions' => 0, 'spread' => 'N', 'daystarttime' => '0000', 'daystoptime' => '0000', 'day_mon' => 'Y', 'day_tue' => 'Y', 'day_wed' => 'Y', 'day_thu' => 'Y', 'day_fri' => 'Y', 'day_sat' => 'Y', 'day_sun' => 'Y', 'autodelete' => 'N'));
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: adverts, ads, banners, advert manager, ad manager, banner manager, adsense
|
|
5 |
Requires at least: 4.6
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 5.2.2
|
8 |
-
Stable tag: 5.4
|
9 |
License: GPLv3
|
10 |
|
11 |
Start making money today! Monetise your website while keeping things simple. Try AdRotate today!
|
@@ -105,6 +105,9 @@ All kinds of small improvements and polish and shine.
|
|
105 |
|
106 |
Be a Professional and go Pro. With [AdRotate Professional](https://ajdg.solutions/plugins/adrotate-for-wordpress/)!
|
107 |
|
|
|
|
|
|
|
108 |
= 5.4 FREE =
|
109 |
* [change] Now uses wp_is_mobile instead of Mobile Detect
|
110 |
* [change] Updated Settings Dashboards
|
5 |
Requires at least: 4.6
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 5.2.2
|
8 |
+
Stable tag: 5.4.1
|
9 |
License: GPLv3
|
10 |
|
11 |
Start making money today! Monetise your website while keeping things simple. Try AdRotate today!
|
105 |
|
106 |
Be a Professional and go Pro. With [AdRotate Professional](https://ajdg.solutions/plugins/adrotate-for-wordpress/)!
|
107 |
|
108 |
+
= 5.4 FREE =
|
109 |
+
* [fix] Properly removed 'paid' status from the plugin when creating adverts
|
110 |
+
|
111 |
= 5.4 FREE =
|
112 |
* [change] Now uses wp_is_mobile instead of Mobile Detect
|
113 |
* [change] Updated Settings Dashboards
|