Version Description
FREE = * [new] Borlabs Cache support * [change] Dashboard notifications improved * [change] Dashboard updates and improvements
Download this release
Release Info
Developer | adegans |
Plugin | AdRotate Banner Manager |
Version | 4.9 |
Comparing to | |
See all releases |
Code changes from version 4.8 to 4.9
- adrotate-functions.php +18 -0
- adrotate-manage-publisher.php +1 -0
- adrotate-output.php +22 -48
- adrotate-setup.php +1 -0
- adrotate-widget.php +16 -0
- adrotate.php +15 -13
- dashboard/adrotatepro.php +1 -15
- dashboard/info.php +4 -16
- dashboard/settings/misc.php +4 -0
- dashboard/settings/statistics.php +1 -1
- images/arnan-left.jpg +0 -0
- images/arnan-right.jpg +0 -0
- readme.txt +15 -11
adrotate-functions.php
CHANGED
@@ -40,6 +40,24 @@ function adrotate_shortcode($atts, $content = null) {
|
|
40 |
}
|
41 |
|
42 |
$output .= '<!-- /mfunc '.W3TC_DYNAMIC_SECURITY.' -->';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
} else {
|
44 |
if($banner_id > 0 AND ($group_ids == 0 OR $group_ids > 0)) { // Show one Ad
|
45 |
$output .= adrotate_ad($banner_id, true, 0, 0);
|
40 |
}
|
41 |
|
42 |
$output .= '<!-- /mfunc '.W3TC_DYNAMIC_SECURITY.' -->';
|
43 |
+
} else if($adrotate_config['borlabscache'] == "Y") {
|
44 |
+
if(class_exists('\Borlabs\Factory')) {
|
45 |
+
$borlabsphrase = \Borlabs\Factory::get('Cache\Config')->get('fragmentCachingMaskPhrase');
|
46 |
+
|
47 |
+
$output .= '<!--[borlabs cache start: '.$borlabsphrase.']-->';
|
48 |
+
|
49 |
+
if($banner_id > 0 AND ($group_ids == 0 OR $group_ids > 0)) { // Show one Ad
|
50 |
+
$output .= 'echo adrotate_ad('.$banner_id.', true, 0, 0);';
|
51 |
+
}
|
52 |
+
|
53 |
+
if($banner_id == 0 AND $group_ids > 0) { // Show group
|
54 |
+
$output .= 'echo adrotate_group('.$group_ids.', 0, 0, 0);';
|
55 |
+
}
|
56 |
+
|
57 |
+
$output .= '<!--[borlabs cache end: '.$borlabsphrase.']-->';
|
58 |
+
} else {
|
59 |
+
$output .= '<!-- Borlabs Cache does not appear to be active -->';
|
60 |
+
}
|
61 |
} else {
|
62 |
if($banner_id > 0 AND ($group_ids == 0 OR $group_ids > 0)) { // Show one Ad
|
63 |
$output .= adrotate_ad($banner_id, true, 0, 0);
|
adrotate-manage-publisher.php
CHANGED
@@ -765,6 +765,7 @@ function adrotate_options_submit() {
|
|
765 |
$config['adminbar'] = (isset($_POST['adrotate_adminbar'])) ? 'Y' : 'N';
|
766 |
$config['hide_schedules'] = (isset($_POST['adrotate_hide_schedules'])) ? 'Y' : 'N';
|
767 |
$config['w3caching'] = (isset($_POST['adrotate_w3caching'])) ? 'Y' : 'N';
|
|
|
768 |
|
769 |
update_option('adrotate_config', $config);
|
770 |
}
|
765 |
$config['adminbar'] = (isset($_POST['adrotate_adminbar'])) ? 'Y' : 'N';
|
766 |
$config['hide_schedules'] = (isset($_POST['adrotate_hide_schedules'])) ? 'Y' : 'N';
|
767 |
$config['w3caching'] = (isset($_POST['adrotate_w3caching'])) ? 'Y' : 'N';
|
768 |
+
$config['borlabscache'] = (isset($_POST['adrotate_borlabscache'])) ? 'Y' : 'N';
|
769 |
|
770 |
update_option('adrotate_config', $config);
|
771 |
}
|
adrotate-output.php
CHANGED
@@ -625,6 +625,7 @@ function adrotate_dashboard_error() {
|
|
625 |
// Adverts
|
626 |
$status = get_option('adrotate_advert_status');
|
627 |
$adrotate_notifications = get_option("adrotate_notifications");
|
|
|
628 |
if($adrotate_notifications['notification_dash'] == "Y") {
|
629 |
if($status['expired'] > 0 AND $adrotate_notifications['notification_dash_expired'] == "Y") {
|
630 |
$error['advert_expired'] = sprintf(_n('One advert is expired.', '%1$s adverts expired!', $status['expired'], 'adrotate'), $status['expired']).' <a href="'.admin_url('admin.php?page=adrotate-ads').'">'.__('Check adverts', 'adrotate').'</a>!';
|
@@ -638,13 +639,32 @@ function adrotate_dashboard_error() {
|
|
638 |
}
|
639 |
|
640 |
// Caching
|
|
|
|
|
|
|
641 |
if($adrotate_config['w3caching'] == "Y" AND !is_plugin_active('w3-total-cache/w3-total-cache.php')) {
|
642 |
-
$error['w3tc_not_active'] = __('You have
|
643 |
}
|
644 |
if($adrotate_config['w3caching'] == "Y" AND !defined('W3TC_DYNAMIC_SECURITY')) {
|
645 |
$error['w3tc_no_hash'] = __('You have enable caching support but the W3TC_DYNAMIC_SECURITY definition is not set.', 'adrotate').' <a href="'.admin_url('/admin.php?page=adrotate-settings&tab=misc').'">'.__('How to configure W3 Total Cache', 'adrotate').'</a>.';
|
646 |
}
|
647 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
648 |
// Misc
|
649 |
if(!is_writable(WP_CONTENT_DIR."/".$adrotate_config['banner_folder'])) {
|
650 |
$error['banners_folder'] = __('Your AdRotate Banner folder is not writable or does not exist.', 'adrotate').' <a href="https://ajdg.solutions/manuals/adrotate-manuals/manage-banner-images/?utm_campaign=adrotate-manual&utm_medium=dashboard-notification&utm_source=adrotate-free" target="_blank">'.__('Set up your banner folder', 'adrotate').'</a>.';
|
@@ -793,46 +813,11 @@ function adrotate_help_info() {
|
|
793 |
'id' => 'adrotate_thanks',
|
794 |
'title' => 'Thank You',
|
795 |
'content' => '<h4>Thank you for using AdRotate</h4><p>AdRotate is growing to be one of the most popular WordPress plugins for Advertising and is a household name for many companies around the world. AdRotate wouldn\'t be possible without your support and my life wouldn\'t be what it is today without your help.</p><p><em>- Arnan</em></p>'.
|
796 |
-
'<p><strong>
|
797 |
)
|
798 |
);
|
799 |
}
|
800 |
|
801 |
-
/*-------------------------------------------------------------
|
802 |
-
Name: adrotate_credits
|
803 |
-
Purpose: Promotional stuff shown throughout the plugin
|
804 |
-
Since: 3.7
|
805 |
-
-------------------------------------------------------------*/
|
806 |
-
function adrotate_credits() {
|
807 |
-
echo '<table class="widefat" style="margin-top: .5em">';
|
808 |
-
|
809 |
-
echo '<thead>';
|
810 |
-
echo '<tr valign="top">';
|
811 |
-
echo ' <th>'.__('Support AdRotate', 'adrotate').'</th>';
|
812 |
-
echo ' <th width="25%">'.__('Follow me on Facebook', 'adrotate').'</th>';
|
813 |
-
echo '</tr>';
|
814 |
-
echo '</thead>';
|
815 |
-
|
816 |
-
echo '<tbody>';
|
817 |
-
echo '<tr>';
|
818 |
-
echo '<td><a href="https://ajdg.solutions/products/adrotate-for-wordpress/?utm_campaign=adrotate-page&utm_medium=credits&utm_source=adrotate-free" title="AdRotate plugin for WordPress"><img src="'.plugins_url('/images/logo-60x60.png', __FILE__).'" alt="AdRotate logo" width="60" height="60" align="left" style="padding:0 5px 0 0;" /></a>'.__("Many users only think to review AdRotate when something goes wrong while thousands of people happily use AdRotate.", 'adrotate').' <strong>'. __("If you find AdRotate useful please leave your", 'adrotate').' <a href="https://wordpress.org/support/view/plugin-reviews/adrotate?rate=5#postform" target="_blank">'.__('rating','adrotate').'</a> '.__('and','adrotate').' <a href="https://wordpress.org/support/view/plugin-reviews/adrotate" target="_blank">'.__('review','adrotate').'</a> '.__('on WordPress.org to help AdRotate grow!', 'adrotate').'</strong></td>';
|
819 |
-
|
820 |
-
echo '<td><div id="fb-root"></div>
|
821 |
-
<script>(function(d, s, id) {
|
822 |
-
var js, fjs = d.getElementsByTagName(s)[0];
|
823 |
-
if (d.getElementById(id)) return;
|
824 |
-
js = d.createElement(s); js.id = id;
|
825 |
-
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.10&appId=1534701246592586";
|
826 |
-
fjs.parentNode.insertBefore(js, fjs);
|
827 |
-
}(document, \'script\', \'facebook-jssdk\'));</script>';
|
828 |
-
echo '<center><div class="fb-page" data-href="https://www.facebook.com/Arnandegans/" data-width="250" data-height="70" data-small-header="true" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="false"></div></center></td>';
|
829 |
-
echo '</tr>';
|
830 |
-
echo '</tbody>';
|
831 |
-
|
832 |
-
echo '</table>';
|
833 |
-
echo adrotate_trademark();
|
834 |
-
}
|
835 |
-
|
836 |
/*-------------------------------------------------------------
|
837 |
Name: adrotate_trademark
|
838 |
Purpose: Trademark notice
|
@@ -841,15 +826,4 @@ function adrotate_credits() {
|
|
841 |
function adrotate_trademark() {
|
842 |
return '<center><small>AdRotate<sup>®</sup> is a registered trademark.</small></center>';
|
843 |
}
|
844 |
-
|
845 |
-
/*-------------------------------------------------------------
|
846 |
-
Name: adrotate_pro_notice
|
847 |
-
Purpose: Credits shown on user statistics
|
848 |
-
Since: 3.8
|
849 |
-
-------------------------------------------------------------*/
|
850 |
-
function adrotate_pro_notice($d = '') {
|
851 |
-
|
852 |
-
if($d == "t") echo __('Available in AdRotate Pro', 'adrotate').'. <a href="admin.php?page=adrotate-pro">'.__('More information...', 'adrotate').'</a>';
|
853 |
-
else echo __('This feature is available in AdRotate Pro', 'adrotate').'. <a href="admin.php?page=adrotate-pro">'.__('Learn more', 'adrotate').'</a>!';
|
854 |
-
}
|
855 |
?>
|
625 |
// Adverts
|
626 |
$status = get_option('adrotate_advert_status');
|
627 |
$adrotate_notifications = get_option("adrotate_notifications");
|
628 |
+
|
629 |
if($adrotate_notifications['notification_dash'] == "Y") {
|
630 |
if($status['expired'] > 0 AND $adrotate_notifications['notification_dash_expired'] == "Y") {
|
631 |
$error['advert_expired'] = sprintf(_n('One advert is expired.', '%1$s adverts expired!', $status['expired'], 'adrotate'), $status['expired']).' <a href="'.admin_url('admin.php?page=adrotate-ads').'">'.__('Check adverts', 'adrotate').'</a>!';
|
639 |
}
|
640 |
|
641 |
// Caching
|
642 |
+
if($adrotate_config['w3caching'] == "N" AND is_plugin_active('w3-total-cache/w3-total-cache.php')) {
|
643 |
+
$error['w3tc_active'] = __('You are using W3 Total Cache but W3 Total Cache support is not enabled. This may affect rotation of adverts, statistics and other dynamic elements in the plugin.', 'adrotate').' <a href="'.admin_url('/admin.php?page=adrotate-settings&tab=misc').'">'.__('Enable W3 Total Cache Support', 'adrotate').'</a>.';
|
644 |
+
}
|
645 |
if($adrotate_config['w3caching'] == "Y" AND !is_plugin_active('w3-total-cache/w3-total-cache.php')) {
|
646 |
+
$error['w3tc_not_active'] = __('You have enabled caching support but W3 Total Cache is not active on your site!', 'adrotate').' <a href="'.admin_url('/admin.php?page=adrotate-settings&tab=misc').'">'.__('Disable W3 Total Cache Support', 'adrotate').'</a>.';
|
647 |
}
|
648 |
if($adrotate_config['w3caching'] == "Y" AND !defined('W3TC_DYNAMIC_SECURITY')) {
|
649 |
$error['w3tc_no_hash'] = __('You have enable caching support but the W3TC_DYNAMIC_SECURITY definition is not set.', 'adrotate').' <a href="'.admin_url('/admin.php?page=adrotate-settings&tab=misc').'">'.__('How to configure W3 Total Cache', 'adrotate').'</a>.';
|
650 |
}
|
651 |
|
652 |
+
if($adrotate_config['borlabscache'] == "N" AND is_plugin_active('borlabs-cache/borlabs-cache.php')) {
|
653 |
+
$error['borlabs_active'] = __('You are using Borlabs Cache but Borlabs Cache support is not enabled. This may affect rotation of adverts, statistics and other dynamic elements in the plugin.', 'adrotate').' <a href="'.admin_url('/admin.php?page=adrotate-settings&tab=misc').'">'.__('Enable Borlabs Cache Support', 'adrotate').'</a>.';
|
654 |
+
}
|
655 |
+
if($adrotate_config['borlabscache'] == "Y" AND !is_plugin_active('borlabs-cache/borlabs-cache.php')) {
|
656 |
+
$error['borlabs_not_active'] = __('You have enable caching support but Borlabs Cache is not active on your site!', 'adrotate').' <a href="'.admin_url('/admin.php?page=adrotate-settings&tab=misc').'">'.__('Disable Borlabs Cache Support', 'adrotate').'</a>.';
|
657 |
+
}
|
658 |
+
if(is_plugin_active('borlabs-cache/borlabs-cache.php')) {
|
659 |
+
$borlabscache = $borlabsphrase = '';
|
660 |
+
if(class_exists('\Borlabs\Factory')) {
|
661 |
+
$borlabscache = \Borlabs\Factory::get('Cache\Config')->get('fragmentCaching');
|
662 |
+
}
|
663 |
+
if($adrotate_config['borlabscache'] == "Y" AND $borlabscache == '') {
|
664 |
+
$error['borlabs_fragment_error'] = __('You have enabled Borlabs Cache support but Fragment caching is not enabled!', 'adrotate').' <a href="'.admin_url('/admin.php?page=borlabs-cache-fragments').'">'.__('Enable Fragment Caching', 'adrotate').'</a>.';
|
665 |
+
}
|
666 |
+
}
|
667 |
+
|
668 |
// Misc
|
669 |
if(!is_writable(WP_CONTENT_DIR."/".$adrotate_config['banner_folder'])) {
|
670 |
$error['banners_folder'] = __('Your AdRotate Banner folder is not writable or does not exist.', 'adrotate').' <a href="https://ajdg.solutions/manuals/adrotate-manuals/manage-banner-images/?utm_campaign=adrotate-manual&utm_medium=dashboard-notification&utm_source=adrotate-free" target="_blank">'.__('Set up your banner folder', 'adrotate').'</a>.';
|
813 |
'id' => 'adrotate_thanks',
|
814 |
'title' => 'Thank You',
|
815 |
'content' => '<h4>Thank you for using AdRotate</h4><p>AdRotate is growing to be one of the most popular WordPress plugins for Advertising and is a household name for many companies around the world. AdRotate wouldn\'t be possible without your support and my life wouldn\'t be what it is today without your help.</p><p><em>- Arnan</em></p>'.
|
816 |
+
'<p><strong>Facebook:</strong> <a href="https://www.facebook.com/adegans/" target="_blank">Facebook</a>. <strong>Business:</strong> <a href="https://ajdg.solutions/" target="_blank">ajdg.solutions</a> <strong>Personal:</strong> <a href="http://www.arnan.me" target="_blank">arnan.me</a>.</p>'
|
817 |
)
|
818 |
);
|
819 |
}
|
820 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
821 |
/*-------------------------------------------------------------
|
822 |
Name: adrotate_trademark
|
823 |
Purpose: Trademark notice
|
826 |
function adrotate_trademark() {
|
827 |
return '<center><small>AdRotate<sup>®</sup> is a registered trademark.</small></center>';
|
828 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
829 |
?>
|
adrotate-setup.php
CHANGED
@@ -263,6 +263,7 @@ function adrotate_check_config() {
|
|
263 |
if(!isset($config['widgetalign']) OR ($config['widgetalign'] != 'Y' AND $config['widgetalign'] != 'N')) $config['widgetalign'] = 'N';
|
264 |
if(!isset($config['widgetpadding']) OR ($config['widgetpadding'] != 'Y' AND $config['widgetpadding'] != 'N')) $config['widgetpadding'] = 'N';
|
265 |
if(!isset($config['w3caching']) OR ($config['w3caching'] != 'Y' AND $config['w3caching'] != 'N')) $config['w3caching'] = 'N';
|
|
|
266 |
if(!isset($config['textwidget_shortcodes']) OR ($config['textwidget_shortcodes'] != 'Y' AND $config['textwidget_shortcodes'] != 'N')) $config['textwidget_shortcodes'] = 'N';
|
267 |
if(!isset($config['mobile_dynamic_mode']) OR ($config['mobile_dynamic_mode'] != 'Y' AND $config['mobile_dynamic_mode'] != 'N')) $config['mobile_dynamic_mode'] = 'N';
|
268 |
if(!isset($config['jquery']) OR ($config['jquery'] != 'Y' AND $config['jquery'] != 'N')) $config['jquery'] = 'N';
|
263 |
if(!isset($config['widgetalign']) OR ($config['widgetalign'] != 'Y' AND $config['widgetalign'] != 'N')) $config['widgetalign'] = 'N';
|
264 |
if(!isset($config['widgetpadding']) OR ($config['widgetpadding'] != 'Y' AND $config['widgetpadding'] != 'N')) $config['widgetpadding'] = 'N';
|
265 |
if(!isset($config['w3caching']) OR ($config['w3caching'] != 'Y' AND $config['w3caching'] != 'N')) $config['w3caching'] = 'N';
|
266 |
+
if(!isset($config['borlabscache']) OR ($config['borlabscache'] != 'Y' AND $config['borlabscache'] != 'N')) $config['borlabscache'] = 'N';
|
267 |
if(!isset($config['textwidget_shortcodes']) OR ($config['textwidget_shortcodes'] != 'Y' AND $config['textwidget_shortcodes'] != 'N')) $config['textwidget_shortcodes'] = 'N';
|
268 |
if(!isset($config['mobile_dynamic_mode']) OR ($config['mobile_dynamic_mode'] != 'Y' AND $config['mobile_dynamic_mode'] != 'N')) $config['mobile_dynamic_mode'] = 'N';
|
269 |
if(!isset($config['jquery']) OR ($config['jquery'] != 'Y' AND $config['jquery'] != 'N')) $config['jquery'] = 'N';
|
adrotate-widget.php
CHANGED
@@ -58,6 +58,22 @@ class adrotate_widgets extends WP_Widget {
|
|
58 |
echo 'echo adrotate_group('.$instance['adid'].', 0, 0, 0);';
|
59 |
}
|
60 |
echo '<!-- /mfunc '.W3TC_DYNAMIC_SECURITY.' -->';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
} else {
|
62 |
if($instance['type'] == "single") {
|
63 |
echo adrotate_ad($instance['adid'], true, 0, 0, 0);
|
58 |
echo 'echo adrotate_group('.$instance['adid'].', 0, 0, 0);';
|
59 |
}
|
60 |
echo '<!-- /mfunc '.W3TC_DYNAMIC_SECURITY.' -->';
|
61 |
+
} else if($adrotate_config['borlabscache'] == 'Y') {
|
62 |
+
if(class_exists('\Borlabs\Factory')) {
|
63 |
+
$borlabsphrase = \Borlabs\Factory::get('Cache\Config')->get('fragmentCachingMaskPhrase');
|
64 |
+
|
65 |
+
echo '<!--[borlabs cache start: '.$borlabsphrase.']-->';
|
66 |
+
if($instance['type'] == "single") {
|
67 |
+
echo adrotate_ad($instance['adid'], true, 0, 0, 0);
|
68 |
+
}
|
69 |
+
|
70 |
+
if($instance['type'] == "group") {
|
71 |
+
echo adrotate_group($instance['adid'], 0, 0, 0);
|
72 |
+
}
|
73 |
+
echo '<!--[borlabs cache end: '.$borlabsphrase.']-->';
|
74 |
+
} else {
|
75 |
+
$output .= '<!-- Borlabs Cache does not appear to be active -->';
|
76 |
+
}
|
77 |
} else {
|
78 |
if($instance['type'] == "single") {
|
79 |
echo adrotate_ad($instance['adid'], true, 0, 0, 0);
|
adrotate.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
Plugin Name: AdRotate
|
4 |
Plugin URI: https://ajdg.solutions/products/adrotate-for-wordpress/
|
5 |
Author: Arnan de Gans
|
6 |
-
Author URI: http://
|
7 |
Description: Monetise your website with adverts while keeping things simple. Start making money today!
|
8 |
Text Domain: adrotate
|
9 |
Domain Path: /languages/
|
10 |
-
Version: 4.
|
11 |
License: GPLv3
|
12 |
*/
|
13 |
|
@@ -22,7 +22,7 @@ License: GPLv3
|
|
22 |
------------------------------------------------------------------------------------ */
|
23 |
|
24 |
/*--- AdRotate values ---------------------------------------*/
|
25 |
-
define("ADROTATE_DISPLAY", '4.
|
26 |
define("ADROTATE_VERSION", 391);
|
27 |
define("ADROTATE_DB_VERSION", 64);
|
28 |
$plugin_folder = plugin_dir_path(__FILE__);
|
@@ -273,9 +273,9 @@ function adrotate_manage() {
|
|
273 |
include("dashboard/publisher/adverts-generator.php");
|
274 |
}
|
275 |
?>
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
|
280 |
</div>
|
281 |
<?php
|
@@ -330,7 +330,7 @@ function adrotate_manage_group() {
|
|
330 |
?>
|
331 |
<br class="clear" />
|
332 |
|
333 |
-
<?php
|
334 |
|
335 |
</div>
|
336 |
<?php
|
@@ -355,9 +355,8 @@ function adrotate_manage_schedules() {
|
|
355 |
|
356 |
<br class="clear" />
|
357 |
|
358 |
-
<?php
|
359 |
|
360 |
-
<br class="clear" />
|
361 |
</div>
|
362 |
<?php
|
363 |
}
|
@@ -413,9 +412,8 @@ function adrotate_statistics() {
|
|
413 |
?>
|
414 |
<br class="clear" />
|
415 |
|
416 |
-
<?php
|
417 |
|
418 |
-
<br class="clear" />
|
419 |
</div>
|
420 |
<?php
|
421 |
}
|
@@ -453,9 +451,8 @@ function adrotate_manage_media() {
|
|
453 |
|
454 |
<br class="clear" />
|
455 |
|
456 |
-
<?php
|
457 |
|
458 |
-
<br class="clear" />
|
459 |
</div>
|
460 |
<?php
|
461 |
}
|
@@ -536,6 +533,11 @@ function adrotate_options() {
|
|
536 |
include("dashboard/settings/license.php");
|
537 |
}
|
538 |
?>
|
|
|
|
|
|
|
|
|
|
|
539 |
</div>
|
540 |
<?php
|
541 |
}
|
3 |
Plugin Name: AdRotate
|
4 |
Plugin URI: https://ajdg.solutions/products/adrotate-for-wordpress/
|
5 |
Author: Arnan de Gans
|
6 |
+
Author URI: http://www.arnan.me/
|
7 |
Description: Monetise your website with adverts while keeping things simple. Start making money today!
|
8 |
Text Domain: adrotate
|
9 |
Domain Path: /languages/
|
10 |
+
Version: 4.9
|
11 |
License: GPLv3
|
12 |
*/
|
13 |
|
22 |
------------------------------------------------------------------------------------ */
|
23 |
|
24 |
/*--- AdRotate values ---------------------------------------*/
|
25 |
+
define("ADROTATE_DISPLAY", '4.9');
|
26 |
define("ADROTATE_VERSION", 391);
|
27 |
define("ADROTATE_DB_VERSION", 64);
|
28 |
$plugin_folder = plugin_dir_path(__FILE__);
|
273 |
include("dashboard/publisher/adverts-generator.php");
|
274 |
}
|
275 |
?>
|
276 |
+
<br class="clear" />
|
277 |
+
|
278 |
+
<?php echo adrotate_trademark(); ?>
|
279 |
|
280 |
</div>
|
281 |
<?php
|
330 |
?>
|
331 |
<br class="clear" />
|
332 |
|
333 |
+
<?php echo adrotate_trademark(); ?>
|
334 |
|
335 |
</div>
|
336 |
<?php
|
355 |
|
356 |
<br class="clear" />
|
357 |
|
358 |
+
<?php echo adrotate_trademark(); ?>
|
359 |
|
|
|
360 |
</div>
|
361 |
<?php
|
362 |
}
|
412 |
?>
|
413 |
<br class="clear" />
|
414 |
|
415 |
+
<?php echo adrotate_trademark(); ?>
|
416 |
|
|
|
417 |
</div>
|
418 |
<?php
|
419 |
}
|
451 |
|
452 |
<br class="clear" />
|
453 |
|
454 |
+
<?php echo adrotate_trademark(); ?>
|
455 |
|
|
|
456 |
</div>
|
457 |
<?php
|
458 |
}
|
533 |
include("dashboard/settings/license.php");
|
534 |
}
|
535 |
?>
|
536 |
+
|
537 |
+
<br class="clear" />
|
538 |
+
|
539 |
+
<?php echo adrotate_trademark(); ?>
|
540 |
+
|
541 |
</div>
|
542 |
<?php
|
543 |
}
|
dashboard/adrotatepro.php
CHANGED
@@ -48,21 +48,7 @@
|
|
48 |
<h3><?php _e('AdRotate is brought to you by', 'adrotate'); ?></h3>
|
49 |
<div class="postbox-ajdg">
|
50 |
<div class="inside">
|
51 |
-
<
|
52 |
-
var js, fjs = d.getElementsByTagName(s)[0];
|
53 |
-
if (d.getElementById(id)) return;
|
54 |
-
js = d.createElement(s); js.id = id;
|
55 |
-
js.src = "https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5";
|
56 |
-
fjs.parentNode.insertBefore(js, fjs);
|
57 |
-
}(document, 'script', 'facebook-jssdk'));
|
58 |
-
</script>
|
59 |
-
<p><center><div class="fb-page"
|
60 |
-
data-href="https://www.facebook.com/Arnandegans"
|
61 |
-
data-width="490"
|
62 |
-
data-adapt-container-width="true"
|
63 |
-
data-hide-cover="false"
|
64 |
-
data-show-facepile="false">
|
65 |
-
</div></center></p>
|
66 |
</div>
|
67 |
</div>
|
68 |
|
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://m.me/adegans" target="_blank" title="Connect with Arnan on Facebook"><img src="<?php echo plugins_url("/images/arnan-left.jpg", dirname(__FILE__)); ?>" alt="Connect with Arnan" /></a><a href="http://www.arnan.me" title="Visit Arnan's website"><img src="<?php echo plugins_url("/images/arnan-right.jpg", dirname(__FILE__)); ?>" alt="Arnan.me website" /></a></center></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
</div>
|
53 |
</div>
|
54 |
|
dashboard/info.php
CHANGED
@@ -59,24 +59,10 @@ $partner = mt_rand(1,3);
|
|
59 |
<h3><?php _e('Arnan de Gans News & Updates', 'adrotate'); ?></h3>
|
60 |
<div class="postbox-ajdg">
|
61 |
<div class="inside">
|
62 |
-
<
|
63 |
-
var js, fjs = d.getElementsByTagName(s)[0];
|
64 |
-
if (d.getElementById(id)) return;
|
65 |
-
js = d.createElement(s); js.id = id;
|
66 |
-
js.src = "https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5";
|
67 |
-
fjs.parentNode.insertBefore(js, fjs);
|
68 |
-
}(document, 'script', 'facebook-jssdk'));
|
69 |
-
</script>
|
70 |
-
<p><center><div class="fb-page"
|
71 |
-
data-href="https://www.facebook.com/Arnandegans"
|
72 |
-
data-width="490"
|
73 |
-
data-adapt-container-width="true"
|
74 |
-
data-hide-cover="false"
|
75 |
-
data-show-facepile="false">
|
76 |
-
</div></center></p>
|
77 |
<?php wp_widget_rss_output(array(
|
78 |
'url' => 'http://ajdg.solutions/feed/',
|
79 |
-
'items' =>
|
80 |
'show_summary' => 1,
|
81 |
'show_author' => 0,
|
82 |
'show_date' => 1)
|
@@ -143,5 +129,7 @@ $partner = mt_rand(1,3);
|
|
143 |
</div>
|
144 |
|
145 |
<div class="clear"></div>
|
|
|
146 |
<p><?php echo adrotate_trademark(); ?></p>
|
|
|
147 |
</div>
|
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://m.me/adegans" target="_blank" title="Connect with Arnan on Facebook"><img src="<?php echo plugins_url("/images/arnan-left.jpg", dirname(__FILE__)); ?>" alt="Connect with Arnan" /></a><a href="http://www.arnan.me" title="Visit Arnan's website"><img src="<?php echo plugins_url("/images/arnan-right.jpg", dirname(__FILE__)); ?>" alt="Arnan.me website" /></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)
|
129 |
</div>
|
130 |
|
131 |
<div class="clear"></div>
|
132 |
+
|
133 |
<p><?php echo adrotate_trademark(); ?></p>
|
134 |
+
|
135 |
</div>
|
dashboard/settings/misc.php
CHANGED
@@ -33,6 +33,10 @@
|
|
33 |
<th valign="top"><?php _e('W3 Total Caching', 'adrotate'); ?></th>
|
34 |
<td><label for="adrotate_w3caching"><input type="checkbox" name="adrotate_w3caching" <?php if($adrotate_config['w3caching'] == 'Y') { ?>checked="checked" <?php } ?> /> <?php _e('Check this box if you use W3 Total Caching on your site.', 'adrotate'); ?></label></td>
|
35 |
</tr>
|
|
|
|
|
|
|
|
|
36 |
<tr>
|
37 |
<th valign="top"> </th>
|
38 |
<td><span class="description"><?php _e('It may take a while for the ad to start rotating. The caching plugin needs to refresh the cache. This can take up to a week if not done manually.', 'adrotate'); ?> <?php _e('Caching support only works for [shortcodes] and the AdRotate Widget. If you use a PHP Snippet you need to wrap your PHP in the exclusion code yourself.', 'adrotate'); ?></span></td>
|
33 |
<th valign="top"><?php _e('W3 Total Caching', 'adrotate'); ?></th>
|
34 |
<td><label for="adrotate_w3caching"><input type="checkbox" name="adrotate_w3caching" <?php if($adrotate_config['w3caching'] == 'Y') { ?>checked="checked" <?php } ?> /> <?php _e('Check this box if you use W3 Total Caching on your site.', 'adrotate'); ?></label></td>
|
35 |
</tr>
|
36 |
+
<tr>
|
37 |
+
<th valign="top"><?php _e('Borlabs Cache', 'adrotate'); ?></th>
|
38 |
+
<td><label for="adrotate_borlabscache"><input type="checkbox" name="adrotate_borlabscache" <?php if($adrotate_config['borlabscache'] == 'Y') { ?>checked="checked" <?php } ?> /> <?php _e('Check this box if you use Borlabs Caching on your site.', 'adrotate'); ?></label></td>
|
39 |
+
</tr>
|
40 |
<tr>
|
41 |
<th valign="top"> </th>
|
42 |
<td><span class="description"><?php _e('It may take a while for the ad to start rotating. The caching plugin needs to refresh the cache. This can take up to a week if not done manually.', 'adrotate'); ?> <?php _e('Caching support only works for [shortcodes] and the AdRotate Widget. If you use a PHP Snippet you need to wrap your PHP in the exclusion code yourself.', 'adrotate'); ?></span></td>
|
dashboard/settings/statistics.php
CHANGED
@@ -31,7 +31,7 @@
|
|
31 |
<strong>Supports:</strong> <em><?php _e('Click and Impression recording, Click and impression limits, impression spread for schedules, local stats display. Javascript/HTML5/Flash adverts will only track impressions.', 'adrotate'); ?></em><br /><br />
|
32 |
<strong>Piwik Analytics (<?php _e('In AdRotate Pro!', 'adrotate'); ?>)</strong> - <?php _e('Requires Piwik Analytics tracker installed in your sites footer! Uses data attributes', 'adrotate'); ?>, <a href="https://ajdg.solutions/manuals/adrotate-manuals/piwik-analytics/?utm_campaign=adrotate-manual&utm_medium=settings&utm_source=adrotate-freepk_campaign=adrotatepro_settings" target="_blank"><?php _e('manual', 'adrotate'); ?></a>.<br />
|
33 |
<strong>Supports:</strong> <em><?php _e('Click and Impression recording via Cookie, stats are displayed in Actions > Contents.', 'adrotate'); ?></em><br /><br />
|
34 |
-
<strong>Google Analytics (<?php _e('In AdRotate Pro!', 'adrotate'); ?>)</strong> - <?php _e('Requires Google
|
35 |
<strong>Supports:</strong> <em><?php _e('Click and Impression recording via Cookie, stats are displayed in Events > Banner.', 'adrotate'); ?></em>
|
36 |
</span>
|
37 |
</td>
|
31 |
<strong>Supports:</strong> <em><?php _e('Click and Impression recording, Click and impression limits, impression spread for schedules, local stats display. Javascript/HTML5/Flash adverts will only track impressions.', 'adrotate'); ?></em><br /><br />
|
32 |
<strong>Piwik Analytics (<?php _e('In AdRotate Pro!', 'adrotate'); ?>)</strong> - <?php _e('Requires Piwik Analytics tracker installed in your sites footer! Uses data attributes', 'adrotate'); ?>, <a href="https://ajdg.solutions/manuals/adrotate-manuals/piwik-analytics/?utm_campaign=adrotate-manual&utm_medium=settings&utm_source=adrotate-freepk_campaign=adrotatepro_settings" target="_blank"><?php _e('manual', 'adrotate'); ?></a>.<br />
|
33 |
<strong>Supports:</strong> <em><?php _e('Click and Impression recording via Cookie, stats are displayed in Actions > Contents.', 'adrotate'); ?></em><br /><br />
|
34 |
+
<strong>Google Analytics (<?php _e('In AdRotate Pro!', 'adrotate'); ?>)</strong> - <?php _e('Requires Google Analytics tracker installed in your sites footer! uses onClick() and onload() in adverts', 'adrotate'); ?>, <a href="https://ajdg.solutions/manuals/adrotate-manuals/google-analytics/?utm_campaign=adrotate-manual&utm_medium=settings&utm_source=adrotate-free" target="_blank"><?php _e('manual', 'adrotate'); ?></a>.<br />
|
35 |
<strong>Supports:</strong> <em><?php _e('Click and Impression recording via Cookie, stats are displayed in Events > Banner.', 'adrotate'); ?></em>
|
36 |
</span>
|
37 |
</td>
|
images/arnan-left.jpg
ADDED
Binary file
|
images/arnan-right.jpg
ADDED
Binary file
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.arnan.me/#donate
|
|
4 |
Tags: ad, advert, adsense, advertising, doubleclick, responsive, ad rotator, ad manager, banner manager, advert manager, analytics, advertisement,
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.9
|
7 |
-
Stable tag: 4.
|
8 |
License: GPLv3
|
9 |
|
10 |
Monetise your website with adverts while keeping things simple. Start making money today!
|
@@ -99,23 +99,27 @@ You can also post your questions on the [forum](https://ajdg.solutions/forums/?u
|
|
99 |
Be a Professional and go Pro. With [AdRotate Professional](https://ajdg.solutions/plugins/adrotate-for-wordpress/?utm_campaign=adrotate-page&utm_medium=readme&utm_source=adrotate-free)!
|
100 |
|
101 |
|
102 |
-
= 4.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
* [new] Support Jetpack Photon for certain advert assets
|
|
|
|
|
|
|
104 |
* [fix] Incorrect function call to advert preview when editing
|
105 |
-
* [fix] Today stats displaying wrong number in Adverts dashboard
|
106 |
-
* [fix] Today stats in single Advert stats showing wrong number
|
107 |
-
|
108 |
-
= 4.10.1 PRO =
|
109 |
-
* [i18n] Corrected/included some of missing strings
|
110 |
|
111 |
All recent changes are available on the [AdRotate website](https://ajdg.solutions/plugins/adrotate-for-wordpress/development/?utm_campaign=development&utm_medium=readme&utm_source=adrotate-free).
|
112 |
|
113 |
== Upgrade Notice ==
|
114 |
|
115 |
-
* [new]
|
116 |
-
* [
|
117 |
-
* [
|
118 |
-
* [fix] Today stats in single Advert stats showing wrong number
|
119 |
|
120 |
== Screenshots ==
|
121 |
|
4 |
Tags: ad, advert, adsense, advertising, doubleclick, responsive, ad rotator, ad manager, banner manager, advert manager, analytics, advertisement,
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 4.9
|
8 |
License: GPLv3
|
9 |
|
10 |
Monetise your website with adverts while keeping things simple. Start making money today!
|
99 |
Be a Professional and go Pro. With [AdRotate Professional](https://ajdg.solutions/plugins/adrotate-for-wordpress/?utm_campaign=adrotate-page&utm_medium=readme&utm_source=adrotate-free)!
|
100 |
|
101 |
|
102 |
+
= 4.9 FREE =
|
103 |
+
* [new] Borlabs Cache support
|
104 |
+
* [change] Dashboard notifications improved
|
105 |
+
* [change] Dashboard updates and improvements
|
106 |
+
|
107 |
+
= 4.11 PRO =
|
108 |
+
* [new] Borlabs Cache support
|
109 |
+
* [new] Google Analytics Global Tag support
|
110 |
* [new] Support Jetpack Photon for certain advert assets
|
111 |
+
* [new] FreegeoIP support for Geo Targeting
|
112 |
+
* [change] Dashboard updates and improvements
|
113 |
+
* [change] Dashboard notifications improved
|
114 |
* [fix] Incorrect function call to advert preview when editing
|
|
|
|
|
|
|
|
|
|
|
115 |
|
116 |
All recent changes are available on the [AdRotate website](https://ajdg.solutions/plugins/adrotate-for-wordpress/development/?utm_campaign=development&utm_medium=readme&utm_source=adrotate-free).
|
117 |
|
118 |
== Upgrade Notice ==
|
119 |
|
120 |
+
* [new] Borlabs Cache support
|
121 |
+
* [change] Dashboard notifications improved
|
122 |
+
* [change] Dashboard updates and improvements
|
|
|
123 |
|
124 |
== Screenshots ==
|
125 |
|