notices
8 years ago
ad-display-metabox.php
8 years ago
ad-group-edit.php
8 years ago
ad-group-list-ads.php
8 years ago
ad-group-list-form-row.php
8 years ago
ad-group-list-header.php
10 years ago
ad-group-list-row.php
10 years ago
ad-group.php
8 years ago
ad-info-after-textarea.php
8 years ago
ad-info-bottom.php
8 years ago
ad-info-top.php
8 years ago
ad-info.php
10 years ago
ad-list-details-column.php
10 years ago
ad-list-filters.php
8 years ago
ad-list-no-ads.php
8 years ago
ad-list-timing-column.php
8 years ago
ad-main-metabox.php
8 years ago
ad-output-metabox.php
8 years ago
ad-parameters-metabox.php
8 years ago
ad-parameters-size.php
8 years ago
ad-submitbox-meta.php
8 years ago
ad-visitor-metabox.php
8 years ago
feedback-disable.php
8 years ago
index.php
12 years ago
overview-addons-line.php
8 years ago
overview-widget.php
8 years ago
overview.php
8 years ago
placement-injection-top.php
8 years ago
placements-ad-label-position.php
8 years ago
placements-ad-label.php
8 years ago
placements-content-index.php
8 years ago
placements-item.php
8 years ago
placements.php
8 years ago
post-ad-settings-metabox.php
8 years ago
setting-license.php
8 years ago
setting-target.php
8 years ago
settings-disable-ads.php
10 years ago
settings.php
8 years ago
support.php
8 years ago
support.php
58 lines
| 1 | <?php |
| 2 | /** |
| 3 | * the view for the support page |
| 4 | */ |
| 5 | ?><div class="wrap"> |
| 6 | <h1><?php echo esc_html( get_admin_page_title() ); ?></h1> |
| 7 | <p><?php _e( 'Please fix the red highlighted issues on this page or try to understand their consequences before contacting support.', 'advanced-ads' ); ?></p> |
| 8 | |
| 9 | <?php $messages = array(); |
| 10 | if( ! Advanced_Ads_Checks::php_version_minimum() ) : |
| 11 | $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() ); |
| 12 | endif; |
| 13 | if( Advanced_Ads_Checks::cache() && ! defined( 'AAP_VERSION' ) ) : |
| 14 | $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' ); |
| 15 | endif; |
| 16 | if( Advanced_Ads_Checks::wp_update_available() ) : |
| 17 | $messages[] = __( 'There is a <strong>new WordPress version available</strong>. Please update.', 'advanced-ads' ); |
| 18 | endif; |
| 19 | if( Advanced_Ads_Checks::plugin_updates_available() ) : |
| 20 | $messages[] = __( 'There are <strong>plugin updates available</strong>. Please update.', 'advanced-ads' ); |
| 21 | endif; |
| 22 | /* if( Advanced_Ads_Checks::licenses_invalid() ) : |
| 23 | $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' ) ); |
| 24 | endif; |
| 25 | if( Advanced_Ads_Checks::licenses_expired() ) : |
| 26 | $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' ) ); |
| 27 | endif;*/ |
| 28 | if( Advanced_Ads_Checks::active_autoptimize() && ! defined( 'AAP_VERSION' ) ) : |
| 29 | $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'); |
| 30 | endif; |
| 31 | if( count( Advanced_Ads_Checks::conflicting_plugins() ) ) : |
| 32 | $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'); |
| 33 | endif; |
| 34 | if( Advanced_Ads_Checks::ads_disabled() ) : |
| 35 | $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') ); |
| 36 | endif; |
| 37 | Advanced_Ads_Checks::jquery_ui_conflict(); |
| 38 | |
| 39 | $messages = apply_filters( 'advanced-ads-support-messages', $messages ); |
| 40 | |
| 41 | if( count( $messages )) : |
| 42 | foreach( $messages as $_message ) : |
| 43 | ?><div class="message error"><p><?php echo $_message; ?></p></div><?php |
| 44 | endforeach; |
| 45 | endif; ?> |
| 46 | <h2><?php _e( 'Possible Issues', 'advanced-ads' ); ?></h2> |
| 47 | <ul> |
| 48 | <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> |
| 49 | <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> |
| 50 | <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> |
| 51 | <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> |
| 52 | </ul> |
| 53 | <p><?php _e( 'Use the following form to search for solutions in the manual on wpadvancedads.com', 'advanced-ads' ); ?></p> |
| 54 | <form action="https://wpadvancedads.com/" method="get" class="advads-support-form"> |
| 55 | <input type="search" name="s"/> |
| 56 | <input type="submit" class="button button-primary" value="<?php _e( 'search', 'advanced-ads' ); ?>"> |
| 57 | </form> |
| 58 | <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> |