conditions
6 years ago
notices
6 years ago
ad-conditions-string-operators.php
7 years ago
ad-group-edit.php
7 years ago
ad-group-list-ads.php
7 years ago
ad-group-list-form-row.php
6 years ago
ad-group-list-header.php
7 years ago
ad-group-list-row.php
7 years ago
ad-group.php
6 years ago
ad-info-after-textarea.php
7 years ago
ad-info-bottom.php
6 years ago
ad-info-top.php
7 years ago
ad-info.php
7 years ago
ad-list-details-column.php
7 years ago
ad-list-filters.php
6 years ago
ad-list-no-ads.php
6 years ago
ad-list-shortcode-column.php
7 years ago
ad-list-timing-column.php
7 years ago
ad-main-metabox.php
6 years ago
ad-output-metabox.php
6 years ago
ad-parameters-metabox.php
6 years ago
ad-parameters-size.php
6 years ago
ad-submitbox-meta.php
7 years ago
checks.php
6 years ago
feedback-disable.php
6 years ago
gadsense-dashboard.php
6 years ago
index.php
7 years ago
overview-addons-line.php
7 years ago
overview-notice-row.php
6 years ago
overview-notices.php
6 years ago
overview-widget.php
6 years ago
overview.php
6 years ago
pitch-bundle.php
7 years ago
pitch-pro-tab.php
7 years ago
pitch-tracking.php
7 years ago
placement-form.php
6 years ago
placement-injection-top.php
6 years ago
placements-ad-label-position.php
7 years ago
placements-ad-label.php
7 years ago
placements-content-index.php
7 years ago
placements-item.php
6 years ago
placements.php
6 years ago
post-ad-settings-metabox.php
6 years ago
setting-disable-post-types.php
6 years ago
setting-license.php
6 years ago
setting-target.php
7 years ago
settings-disable-ads.php
6 years ago
settings.php
6 years ago
support-callout.php
6 years ago
support.php
7 years ago
checks.php
32 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * a couple of checks to see if there is any critical issue |
| 5 | * listed on support and settings page |
| 6 | */ |
| 7 | |
| 8 | $messages = array(); |
| 9 | |
| 10 | // this check is left here even though we no longer show it here, but we don’t want to check it all the time on each page |
| 11 | Advanced_Ads_Checks::jquery_ui_conflict(); |
| 12 | |
| 13 | if( Advanced_Ads_Ad_Health_Notices::has_visible_problems() ){ |
| 14 | $messages[] = sprintf( esc_attr__( 'Advanced Ads detected potential problems with your ad setup. %1$sShow me these errors%2$s', 'advanced-ads' ), |
| 15 | '<a href="'. admin_url( 'admin.php?page=advanced-ads' ) .'">', '</a>' ); |
| 16 | } |
| 17 | |
| 18 | $messages = apply_filters( 'advanced-ads-support-messages', $messages ); |
| 19 | |
| 20 | if ( count( $messages ) ) : |
| 21 | ?><div class="message error"> |
| 22 | <?php |
| 23 | foreach ( $messages as $_message ) : |
| 24 | ?> |
| 25 | <p><?php echo $_message; ?></p> |
| 26 | <?php |
| 27 | endforeach; |
| 28 | ?> |
| 29 | </div> |
| 30 | <?php |
| 31 | endif; |
| 32 |