ad-list
1 year ago
conditions
1 year ago
notices
1 year ago
upgrades
1 year ago
ad-conditions-string-operators.php
1 year ago
checks.php
1 year ago
frontend-picker-script.php
5 years ago
index.php
7 years ago
modal.php
1 year ago
overview-addons-line.php
6 years ago
overview-notice-row.php
1 year ago
overview-widget.php
1 year ago
placement-form.php
1 year ago
placement-injection-top.php
1 year ago
placement-types.php
3 years ago
placements-ad-label.php
1 year ago
placements-content-index.php
1 year ago
placements-inline-css.php
1 year ago
placements-item.php
1 year ago
post-list-filter-dropdown.php
3 years ago
setting-license.php
1 year ago
support-callout.php
1 year ago
support.php
1 year ago
support.php
97 lines
| 1 | <?php |
| 2 | /** |
| 3 | * The view for the support page |
| 4 | * |
| 5 | * @package AdvancedAds |
| 6 | * @author Advanced Ads <info@wpadvancedads.com> |
| 7 | */ |
| 8 | |
| 9 | use AdvancedAds\Utilities\Conditional; |
| 10 | |
| 11 | ?> |
| 12 | <div class="wrap"> |
| 13 | <?php if ( Advanced_Ads_Admin_Notices::get_instance()->can_display( 'nl_first_steps' ) && Conditional::user_can_subscribe( 'nl_first_steps' ) ) : ?> |
| 14 | <div class="notice notice-info advads-admin-notice inline is-dismissible" data-notice="nl_first_steps"> |
| 15 | <p> |
| 16 | <?php |
| 17 | printf( |
| 18 | /* translators: %s: number of free add-ons. */ |
| 19 | esc_html__( |
| 20 | 'Subscribe to our free First Steps email course, receive our newsletter for periodic tutorials, and get %s for Advanced Ads.', |
| 21 | 'advanced-ads' |
| 22 | ), |
| 23 | '<strong>' . esc_html__( '2 free add-ons', 'advanced-ads' ) . '</strong>' |
| 24 | ); |
| 25 | ?> |
| 26 | <button type="button" class="button-primary advads-notices-button-subscribe" data-notice="nl_first_steps"><?php esc_html_e( 'Subscribe me now', 'advanced-ads' ); ?></button> |
| 27 | </p> |
| 28 | </div> |
| 29 | <?php endif; ?> |
| 30 | |
| 31 | <p><?php esc_html_e( 'Please fix the red highlighted issues on this page or try to understand their consequences before contacting support.', 'advanced-ads' ); ?></p> |
| 32 | <h2><?php esc_html_e( 'Possible Issues', 'advanced-ads' ); ?></h2> |
| 33 | <ul> |
| 34 | <li><a href="https://wpadvancedads.com/manual/ads-not-showing-up/?utm_source=advanced-ads&utm_medium=link&utm_campaign=support"><?php esc_html_e( 'Ads not showing up', 'advanced-ads' ); ?></a></li> |
| 35 | <li><a href="https://wpadvancedads.com/manual/purchase-licenses/?utm_source=advanced-ads&utm_medium=link&utm_campaign=support"><?php esc_html_e( 'Purchase & Licenses', 'advanced-ads' ); ?></a></li> |
| 36 | <li><a href="https://wpadvancedads.com/manual/issues-after-updates/?utm_source=advanced-ads&utm_medium=link&utm_campaign=support"><?php esc_html_e( 'Issues after updating', 'advanced-ads' ); ?></a></li> |
| 37 | <li><a href="https://wpadvancedads.com/manual-category/troubleshooting/?utm_source=advanced-ads&utm_medium=link&utm_campaign=support"><?php esc_html_e( 'General Issues', 'advanced-ads' ); ?></a></li> |
| 38 | <li><a href="https://wpadvancedads.com/manual-category/add-on-issues/?utm_source=advanced-ads&utm_medium=link&utm_campaign=support"><?php esc_html_e( 'Issues with Add-Ons', 'advanced-ads' ); ?></a></li> |
| 39 | </ul> |
| 40 | <p><?php esc_html_e( 'Use the following form to search for solutions in the manual on wpadvancedads.com', 'advanced-ads' ); ?></p> |
| 41 | <form action="https://wpadvancedads.com/?utm_source=advanced-ads&utm_medium=link&utm_campaign=support-form" method="get" class="advads-support-form"> |
| 42 | <input type="search" name="s"/> |
| 43 | <input type="submit" class="button button-primary" value="<?php esc_html_e( 'search', 'advanced-ads' ); ?>"> |
| 44 | </form> |
| 45 | <?php if ( Advanced_Ads_Admin_Licenses::any_license_valid() ) : ?> |
| 46 | <p> |
| 47 | <?php |
| 48 | printf( |
| 49 | wp_kses( |
| 50 | /* translators: %s is a URL. */ |
| 51 | __( 'Take a look at more common issues or contact us directly through the <a href="%s" target="_blank">support page</a>.', 'advanced-ads' ), |
| 52 | [ |
| 53 | 'a' => [ |
| 54 | 'href' => [], |
| 55 | 'target' => [], |
| 56 | ], |
| 57 | ] |
| 58 | ), |
| 59 | 'https://wpadvancedads.com/support/?utm_source=advanced-ads&utm_medium=link&utm_campaign=support' |
| 60 | ); |
| 61 | ?> |
| 62 | </p> |
| 63 | <?php else : ?> |
| 64 | <p> |
| 65 | <?php |
| 66 | printf( |
| 67 | wp_kses( |
| 68 | /* translators: %s is a URL. */ |
| 69 | __( 'Upgrade to any premium add-on and get <strong>priority email support</strong> or reach out through the <a href="%s" target="_blank">support forum</a> for individual help.', 'advanced-ads' ), |
| 70 | [ |
| 71 | 'a' => [ |
| 72 | 'href' => [], |
| 73 | 'target' => [], |
| 74 | ], |
| 75 | ] |
| 76 | ), |
| 77 | 'https://wordpress.org/support/plugin/advanced-ads' |
| 78 | ); |
| 79 | ?> |
| 80 | </p> |
| 81 | <?php endif; ?> |
| 82 | <?php $constants = Advanced_Ads_Checks::get_defined_constants(); ?> |
| 83 | <?php if ( $constants ) : ?> |
| 84 | <h2><?php esc_html_e( 'Advanced Ads related constants enabled', 'advanced-ads' ); ?></h2> |
| 85 | <ul> |
| 86 | <li> |
| 87 | <?php |
| 88 | echo wp_kses( |
| 89 | implode( '</li><li>', $constants ), |
| 90 | [ 'li' => [] ] |
| 91 | ); |
| 92 | ?> |
| 93 | </li> |
| 94 | </ul> |
| 95 | <?php endif; ?> |
| 96 | </div> |
| 97 |