PluginProbe
Advanced Ads – Ad Manager & AdSense / 1.7.21
Advanced Ads – Ad Manager & AdSense v1.7.21
2.0.26 2.0.25 2.0.24 2.0.23 2.0.22 2.0.21 1.38.0 1.39.0 1.39.1 1.39.2 1.39.3 1.39.4 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.40.0 1.40.1 1.40.2 All 348 releases
advanced-ads / admin / views / support.php

support.php in Advanced Ads – Ad Manager & AdSense 1.7.21, at admin/views/support.php

59 lines 5.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * the view for the support page
4 */
5 ?><div class="wrap">
6 <?php screen_icon(); ?>
7 <h1><?php echo esc_html( get_admin_page_title() ); ?></h1>
8 <p><?php _e( 'Please fix the red highlighted issues on this page or try to understand their consequences before contacting support.', 'advanced-ads' ); ?></p>
9
10 <?php $messages = array();
11 if( ! Advanced_Ads_Checks::php_version_minimum() ) :
12 $messages[] = sprintf(__( 'Your <strong>PHP version (%s) is too low</strong>. Advanced Ads is built for PHP 5.3 and higher. It might work, but updating PHP is highly recommended. Please ask your hosting provider for more information.', 'advanced-ads' ), phpversion() );
13 endif;
14 if( Advanced_Ads_Checks::cache() && ! defined( 'AAP_VERSION' ) ) :
15 $messages[] = sprintf(__( 'Your <strong>website uses cache</strong>. Some dynamic features like ad rotation or visitor conditions might not work properly. Use the cache-busting feature of <a href="%s" target="_blank">Advanced Ads Pro</a> to load ads dynamically.', 'advanced-ads' ), ADVADS_URL . 'add-ons/advanced-ads-pro/#utm_source=advanced-ads&utm_medium=link&utm_campaign=support' );
16 endif;
17 if( Advanced_Ads_Checks::wp_update_available() ) :
18 $messages[] = __( 'There is a <strong>new WordPress version available</strong>. Please update.', 'advanced-ads' );
19 endif;
20 if( Advanced_Ads_Checks::plugin_updates_available() ) :
21 $messages[] = __( 'There are <strong>plugin updates available</strong>. Please update.', 'advanced-ads' );
22 endif;
23 /* if( Advanced_Ads_Checks::licenses_invalid() ) :
24 $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' ) );
25 endif;
26 if( Advanced_Ads_Checks::licenses_expired() ) :
27 $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' ) );
28 endif;*/
29 if( Advanced_Ads_Checks::active_autoptimize() && ! defined( 'AAP_VERSION' ) ) :
30 $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/#utm_source=advanced-ads&utm_medium=link&utm_campaign=support');
31 endif;
32 if( count( Advanced_Ads_Checks::conflicting_plugins() ) ) :
33 $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/#utm_source=advanced-ads&utm_medium=link&utm_campaign=support');
34 endif;
35 if( Advanced_Ads_Checks::ads_disabled() ) :
36 $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') );
37 endif;
38 Advanced_Ads_Checks::jquery_ui_conflict();
39
40 $messages = apply_filters( 'advanced-ads-support-messages', $messages );
41
42 if( count( $messages )) :
43 foreach( $messages as $_message ) :
44 ?><div class="message error"><p><?php echo $_message; ?></p></div><?php
45 endforeach;
46 endif; ?>
47 <h2><?php _e( 'Possible Issues', 'advanced-ads' ); ?></h2>
48 <ul>
49 <li><a href="<?php echo ADVADS_URL; ?>manual/ads-not-showing-up/#utm_source=advanced-ads&utm_medium=link&utm_campaign=support"><?php _e( 'Ads not showing up', 'advanced-ads' ); ?></a></li>
50 <li><a href="<?php echo ADVADS_URL; ?>manual-category/purchase-licenses/#utm_source=advanced-ads&utm_medium=link&utm_campaign=support"><?php _e( 'Purchase & Licenses', 'advanced-ads' ); ?></a></li>
51 <li><a href="<?php echo ADVADS_URL; ?>manual-category/troubleshooting/#utm_source=advanced-ads&utm_medium=link&utm_campaign=support"><?php _e( 'General Issues', 'advanced-ads' ); ?></a></li>
52 <li><a href="<?php echo ADVADS_URL; ?>manual-category/add-on-issues/#utm_source=advanced-ads&utm_medium=link&utm_campaign=support"><?php _e( 'Issues with Add-Ons', 'advanced-ads' ); ?></a></li>
53 </ul>
54 <p><?php _e( 'Use the following form to search for solutions in the manual on wpadvancedads.com', 'advanced-ads' ); ?></p>
55 <form action="https://wpadvancedads.com/" method="get" class="advads-support-form">
56 <input type="search" name="s"/>
57 <input type="submit" class="button button-primary" value="<?php _e( 'search', 'advanced-ads' ); ?>">
58 </form>
59 <p><?php printf(__( 'Take a look at more common issues or contact us directly through the <a href="%s" target="_blank">support page</a>.', 'advanced-ads' ), ADVADS_URL . 'support/#utm_source=advanced-ads&utm_medium=link&utm_campaign=support' ); ?></p>