Files
roi-theme/wp-content/plugins/advanced-ads/admin/views/ad-list/preview-image.php
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- 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>
2025-11-03 21:04:30 -06:00

23 lines
910 B
PHP
Executable File

<?php
/**
* Render preview information for the image ad type
*
* @var string $src image source URL.
* @var string $alt alt attribute value.
* @var string $preview_hwstring width and height information for the smaller preview icon.
* @var string $tooltip_hwstring width and height information for the larger version in the tooltip.
*/
?>
<span class="advads-ad-list-tooltip">
<span class="advads-ad-list-tooltip-content">
<?php
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- $hwstring is not something we can escape.
printf( '<img src="%s" alt="%s" %s/>', esc_url( $src ), esc_attr( $alt ), $tooltip_hwstring );
?>
</span>
<?php
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- $hwstring is not something we can escape.
printf( '<img src="%s" alt="%s" %s/>', esc_url( $src ), esc_attr( $alt ), $preview_hwstring );
?>
</span>