world-game/site/snippets/blocks/game.php
isUnknown 58e77f9181 blocks : rename jeu → game (snippet, blueprint, CSS, content)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 14:25:54 +02:00

21 lines
731 B
PHP

<?php if ($block->url()->isNotEmpty()):
$iframeUrl = preg_replace('/\s+/', '', $block->url()->value());
?>
<div class="iframe-game-container">
<iframe
loading="eager"
importance="high"
width="400"
height="650"
style="border: none; overflow: hidden; pointer-events: none; display: block; width: 100%;"
src="<?= htmlspecialchars($iframeUrl, ENT_QUOTES, 'UTF-8') ?>"
></iframe>
<div class="iframe-click-overlay" data-state="initial">
<div class="overlay-content">
<div class="play-icon">▶</div>
<p class="overlay-message">Cliquez pour jouer</p>
</div>
</div>
<button class="iframe-deactivate-btn" title="Deactivate game (restore scrolling)">✕</button>
</div>
<?php endif ?>