- WordPress core y plugins - Tema Twenty Twenty-Four configurado - Plugin allow-unfiltered-html.php simplificado - .gitignore configurado para excluir wp-config.php y uploads 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
28 lines
1.0 KiB
PHP
Executable File
28 lines
1.0 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* Ad debug output template.
|
|
*
|
|
* @package AdvancedAds
|
|
* @author Advanced Ads <info@wpadvancedads.com>
|
|
* @since 1.x.x
|
|
*
|
|
* @var string $wrapper_id Wrapper ID.
|
|
* @var string $style Wrapper style.
|
|
* @var array $content Debug content.
|
|
*/
|
|
|
|
use AdvancedAds\Utilities\Conditional;
|
|
|
|
if ( ! Conditional::is_amp() ) :
|
|
ob_start();
|
|
echo Advanced_Ads_Utils::get_inline_asset( ob_get_clean() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
|
endif;
|
|
?>
|
|
<div id="<?php echo esc_attr( $wrapper_id ); ?>" style="<?php echo esc_attr( $style ); ?>">
|
|
<strong><?php esc_html_e( 'Ad debug output', 'advanced-ads' ); ?></strong>
|
|
<br><br>
|
|
<?php echo implode( '<br><br>', $content ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
|
<br><br>
|
|
<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>
|
|
</div>
|