} ?> </tbody></table> <input type="hidden" id="advads-visitor-conditions-index" value="<?php echo isset($options) ? count($options) : 0; ?> "/> </div> <?php if (!isset($options) || count($options) == 0) { ?> <p><?php _e('Visitor conditions limit the number of users who can see your ad. There is no need to set visitor conditions if you want all users to see the ad.', 'advanced-ads'); ?> </p><?php } elseif (Advanced_Ads_Checks::cache() && !defined('AAP_VERSION')) { ?> <p><?php printf(__('Check out cache-busting in <a href="%s" target="_blank">Advanced Ads Pro</a> if dynamic features get cached.', 'advanced-ads'), ADVADS_URL . 'add-ons/advanced-ads-pro/#utm_source=advanced-ads&utm_medium=link&utm_campaign=edit-visitor'); ?> </p><?php } ?> <hr/> <fieldset> <legend><?php _e('New condition', 'advanced-ads'); ?> </legend> <div id="advads-visitor-conditions-new"> <div class="advads-buttonset"<?php
/** * register license key notices */ public function register_license_notices() { if (Advanced_Ads_Admin::screen_belongs_to_advanced_ads()) { $options = $this->options(); $queue = isset($options['queue']) ? $options['queue'] : array(); // check license keys if (Advanced_Ads_Checks::licenses_invalid() && !in_array('license_invalid', $queue)) { $this->notices[] = 'license_invalid'; } else { $this->remove_from_queue('license_invalid'); } // check expiring licenses if (Advanced_Ads_Checks::licenses_expire() && !in_array('license_expires', $queue)) { $this->notices[] = 'license_expires'; } else { $this->remove_from_queue('license_expires'); } // check expired licenses if (Advanced_Ads_Checks::licenses_expired() && !in_array('license_expired', $queue)) { $this->notices[] = 'license_expired'; } else { $this->remove_from_queue('license_expired'); } } }
$messages[] = sprintf(__('One or more license keys for <strong>Advanced Ads add-ons are invalid or missing</strong>. Please add valid license keys <a href="%s">here</a>.', 'advanced-ads'), admin_url('admin.php?page=advanced-ads-settings#top#licenses')); } if (Advanced_Ads_Checks::licenses_expired()) { $messages[] = sprintf(__('<strong>Advanced Ads</strong> license(s) expired. Support and updates are disabled. Please visit <a href="%s"> the license page</a> for more information.', 'advanced-ads'), admin_url('admin.php?page=advanced-ads-settings#top#licenses')); } if (Advanced_Ads_Checks::active_autoptimize() && !defined('AAP_VERSION')) { $messages[] = sprintf(__('<strong>Autoptimize plugin detected</strong>. While this plugin is great for site performance, it is known to alter code, including scripts from ad networks. <a href="%s" target="_blank">Advanced Ads Pro</a> has a build-in support for Autoptimize.', 'advanced-ads'), ADVADS_URL . 'add-ons/advanced-ads-pro'); } if (count(Advanced_Ads_Checks::conflicting_plugins())) { $messages[] = sprintf(__('Plugins that are known to cause (partial) problems: <strong>%1$s</strong>. <a href="%2$s" target="_blank">Learn more</a>.', 'advanced-ads'), implode(', ', Advanced_Ads_Checks::conflicting_plugins()), ADVADS_URL . 'manual/known-plugin-conflicts/'); } $options = Advanced_Ads::get_instance()->options(); if (isset($options['disabled-ads'])) { $messages[] = sprintf(__('Ads are disabled for all or some pages. See "disabled ads" in <a href="%s">settings</a>.', 'advanced-ads'), admin_url('admin.php?page=advanced-ads-settings#top#general')); } Advanced_Ads_Checks::jquery_ui_conflict(); if (count($messages)) { foreach ($messages as $_message) { ?> <div class="message error"><p><?php echo $_message; ?> </p></div><?php } } ?> <h2><?php _e('Contact', 'advanced-ads'); ?> </h2> <p><?php