index-main/site/snippets/blocks/image.php
antonin gallon d9409e689a investigation-summary : rendu des layouts avec blocs
- Création des snippets de blocs (text, heading, image)
- Implémentation du rendu des layouts avec colonnes
- Structure en grille pour layouts multi-colonnes

NOTE : Cette implémentation est à revoir selon la maquette finale.
Le rendu actuel utilise une structure basique en attendant les spécifications de design.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-07 17:50:44 +01:00

8 lines
297 B
PHP

<?php if ($image = $block->image()->toFile()): ?>
<figure>
<img src="<?= $image->url() ?>" alt="<?= $block->alt()->or($image->alt()) ?>">
<?php if ($block->caption()->isNotEmpty()): ?>
<figcaption><?= $block->caption() ?></figcaption>
<?php endif; ?>
</figure>
<?php endif; ?>