ad-debug.php
28 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Ad debug output template. |
| 4 | * |
| 5 | * @package AdvancedAds |
| 6 | * @author Advanced Ads <info@wpadvancedads.com> |
| 7 | * @since 1.x.x |
| 8 | * |
| 9 | * @var string $wrapper_id Wrapper ID. |
| 10 | * @var string $style Wrapper style. |
| 11 | * @var array $content Debug content. |
| 12 | */ |
| 13 | |
| 14 | use AdvancedAds\Utilities\Conditional; |
| 15 | |
| 16 | if ( ! Conditional::is_amp() ) : |
| 17 | ob_start(); |
| 18 | echo Advanced_Ads_Utils::get_inline_asset( ob_get_clean() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 19 | endif; |
| 20 | ?> |
| 21 | <div id="<?php echo esc_attr( $wrapper_id ); ?>" style="<?php echo esc_attr( $style ); ?>"> |
| 22 | <strong><?php esc_html_e( 'Ad debug output', 'advanced-ads' ); ?></strong> |
| 23 | <br><br> |
| 24 | <?php echo implode( '<br><br>', $content ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 25 | <br><br> |
| 26 | <a style="color: green;" href="https://wpadvancedads.com/manual/ad-debug-mode/?utm_source=advanced-ads&utm_medium=link&utm_campaign=ad-debug-mode" target="_blank" rel="nofollow"><?php esc_html_e( 'Find solutions in the manual', 'advanced-ads' ); ?></a> |
| 27 | </div> |
| 28 |