blocks : rename jeu → game (snippet, blueprint, CSS, content)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
618c8d79c4
commit
58e77f9181
5 changed files with 3 additions and 3 deletions
21
site/snippets/blocks/game.php
Normal file
21
site/snippets/blocks/game.php
Normal 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 ?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue