fix(vignette): Tamaños 16:9 para video + sin botón cerrar
- Agregados tamaños video: 1280x720, 960x540, 854x480, 800x450, 640x360, 560x315 - Eliminado botón de cerrar (usuario cierra haciendo clic fuera) - Default cambiado a 960x540 (qHD) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -902,21 +902,15 @@ final class AdsensePlacementRenderer
|
||||
$adFormat = '';
|
||||
}
|
||||
|
||||
$closeDelayClass = $closeDelay > 0 ? ' delayed' : '';
|
||||
|
||||
// Sin boton de cerrar - el usuario cierra haciendo clic fuera del modal
|
||||
$html .= sprintf(
|
||||
'<div id="roi-vignette-overlay" class="roi-vignette-overlay">
|
||||
<div class="roi-vignette-modal">
|
||||
<button class="roi-vignette-close%s" data-action="close-vignette" title="Cerrar" data-delay="%d">
|
||||
<i class="bi bi-x"></i>
|
||||
</button>
|
||||
<ins class="adsbygoogle" style="%s"
|
||||
data-ad-client="%s" data-ad-slot="%s"%s></ins>
|
||||
<script type="%s"%s>(adsbygoogle = window.adsbygoogle || []).push({});</script>
|
||||
</div>
|
||||
</div>',
|
||||
$closeDelayClass,
|
||||
$closeDelay,
|
||||
$adStyle,
|
||||
esc_attr($publisherId),
|
||||
esc_attr($slotId),
|
||||
@@ -947,15 +941,16 @@ final class AdsensePlacementRenderer
|
||||
private function parseVignetteSize(string $size): array
|
||||
{
|
||||
return match($size) {
|
||||
'300x250' => [300, 250],
|
||||
'1280x720' => [1280, 720],
|
||||
'960x540' => [960, 540],
|
||||
'854x480' => [854, 480],
|
||||
'800x450' => [800, 450],
|
||||
'640x360' => [640, 360],
|
||||
'560x315' => [560, 315],
|
||||
'336x280' => [336, 280],
|
||||
'728x90' => [728, 90],
|
||||
'970x250' => [970, 250],
|
||||
'970x90' => [970, 90],
|
||||
'468x60' => [468, 60],
|
||||
'320x100' => [320, 100],
|
||||
'300x250' => [300, 250],
|
||||
'auto', 'responsive' => [0, 0], // Tamaños dinamicos
|
||||
default => [300, 250],
|
||||
default => [960, 540], // Default a tamaño video qHD
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user