notices
10 years ago
ad-display-metabox.php
10 years ago
ad-group-edit.php
10 years ago
ad-group-list-form-row.php
10 years ago
ad-group-list-header.php
10 years ago
ad-group-list-row.php
10 years ago
ad-group.php
10 years ago
ad-info-bottom.php
10 years ago
ad-info-top.php
10 years ago
ad-info.php
10 years ago
ad-list-details-column.php
10 years ago
ad-list-filters.php
10 years ago
ad-list-timing-column.php
10 years ago
ad-main-metabox.php
10 years ago
ad-output-metabox.php
10 years ago
ad-parameters-metabox.php
10 years ago
ad-parameters-size.php
10 years ago
ad-submitbox-meta.php
10 years ago
ad-visitor-metabox.php
10 years ago
debug.php
10 years ago
feedback_disable.php
10 years ago
index.php
12 years ago
intro.php
10 years ago
overview.php
10 years ago
placements.php
10 years ago
post-ad-settings-metabox.php
10 years ago
setting-license.php
10 years ago
settings-disable-ads.php
10 years ago
settings.php
10 years ago
support.php
10 years ago
support.php
86 lines
| 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 | <h2>1. <?php _e( 'Possible Issues', 'advanced-ads' ); ?></h2> |
| 9 | <p><?php _e( 'Please fix the red highlighted issues on this page or try to understand their consequences before contacting support.', 'advanced-ads' ); ?></p> |
| 10 | |
| 11 | <?php $messages = array(); |
| 12 | if( ! Advanced_Ads_Checks::php_version_minimum() ) : |
| 13 | $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() ); |
| 14 | endif; |
| 15 | if( Advanced_Ads_Checks::cache() && ! defined( 'AAP_VERSION' ) ) : |
| 16 | $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' ); |
| 17 | endif; |
| 18 | if( Advanced_Ads_Checks::wp_update_available() ) : |
| 19 | $messages[] = __( 'There is a <strong>new WordPress version available</strong>. Please update.', 'advanced-ads' ); |
| 20 | endif; |
| 21 | if( Advanced_Ads_Checks::plugin_updates_available() ) : |
| 22 | $messages[] = __( 'There are <strong>plugin updates available</strong>. Please update.', 'advanced-ads' ); |
| 23 | endif; |
| 24 | if( Advanced_Ads_Checks::licenses_invalid() ) : |
| 25 | $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' ) ); |
| 26 | endif; |
| 27 | if( Advanced_Ads_Checks::licenses_expired() ) : |
| 28 | $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' ) ); |
| 29 | endif; |
| 30 | if( Advanced_Ads_Checks::active_autoptimize() && ! defined( 'AAP_VERSION' ) ) : |
| 31 | $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'); |
| 32 | endif; |
| 33 | if( count( Advanced_Ads_Checks::conflicting_plugins() ) ) : |
| 34 | $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'); |
| 35 | endif; |
| 36 | $options = Advanced_Ads::get_instance()->options(); |
| 37 | if( isset( $options['disabled-ads']) ){ |
| 38 | $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') ); |
| 39 | } |
| 40 | Advanced_Ads_Checks::jquery_ui_conflict(); |
| 41 | |
| 42 | $messages = apply_filters( 'advanced-ads-support-messages', $messages ); |
| 43 | |
| 44 | if( count( $messages )) : |
| 45 | foreach( $messages as $_message ) : |
| 46 | ?><div class="message error"><p><?php echo $_message; ?></p></div><?php |
| 47 | endforeach; |
| 48 | endif; ?> |
| 49 | <h2>2. <?php _e( 'Search', 'advanced-ads' ); ?></h2> |
| 50 | <p><?php _e( 'Use the following form to search for solutions in the manual on wpadvancedads.com', 'advanced-ads' ); ?></p> |
| 51 | <form action="https://wpadvancedads.com/" method="get"> |
| 52 | <input type="search" name="s"/> |
| 53 | <input type="submit" value="<?php _e( 'search', 'advanced-ads' ); ?>"> |
| 54 | </form> |
| 55 | <h2>3. <?php _e( 'Contact', 'advanced-ads' ); ?></h2> |
| 56 | <p><?php printf(__( 'Please search the manual for a solution and take a look at <a href="%s" target="_blank">Ads not showing up?</a> before contacting me for help.', 'advanced-ads' ), ADVADS_URL . 'manual/ads-not-showing-up/#utm_source=advanced-ads&utm_medium=link&utm_campaign=support' ); ?></p> |
| 57 | <?php if( isset( $_POST['advads_support']['email'] ) && array() === $sent_errors ) : ?> |
| 58 | <p class="advads-success-message"><?php _e( 'Email was successfully sent.', 'advanced-ads' ); ?></p> |
| 59 | <?php else : ?> |
| 60 | <?php if( isset( $_POST['advads_support']['email'] ) && count( $sent_errors ) ) : ?> |
| 61 | <p class="advads-error-message"><?php echo implode( $sent_errors, '</p><p class="advads-error-message">' ); ?></p> |
| 62 | <?php endif; ?> |
| 63 | <form action="" method="post"> |
| 64 | <table class="form-table advads-support-form"> |
| 65 | <tbody> |
| 66 | <tr> |
| 67 | <th scope="row"><label for="advads-support-email"><?php _e( 'your email', 'advanced-ads' ); ?></label></th> |
| 68 | <td scope="row"><input id="advads-support-email" class="regular-text" type="email" name="advads_support[email]" value="<?php echo $email; ?>"/></td> |
| 69 | </tr> |
| 70 | <tr> |
| 71 | <th scope="row"><label for="advads-support-name"><?php _e( 'your name', 'advanced-ads' ); ?></label></th> |
| 72 | <td scope="row"><input type="text" class="regular-text" name="advads_support[name]" value="<?php echo $name; ?>"/></td> |
| 73 | </tr> |
| 74 | <tr> |
| 75 | <th scope="row"><label for="advads-support-text"><?php _e( 'your message', 'advanced-ads' ); ?></label></th> |
| 76 | <td scope="row"><textarea name="advads_support[message]"><?php echo $message; ?></textarea></td> |
| 77 | </tr> |
| 78 | <tr> |
| 79 | <td></td> |
| 80 | <td><input type="submit" class="button button-primary" value="<?php _e( 'send', 'advanced-ads' ); ?>"></td> |
| 81 | </tr> |
| 82 | </tbody> |
| 83 | </table> |
| 84 | </form> |
| 85 | <?php endif; ?> |
| 86 | </div> |