blocks : rename jeu → game (snippet, blueprint, CSS, content)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-04-21 14:25:54 +02:00
parent 618c8d79c4
commit 58e77f9181
5 changed files with 3 additions and 3 deletions

View file

@ -0,0 +1,21 @@
<?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 ?>