portfolio iyo-bisseck

This commit is contained in:
Julie Blanc 2026-04-12 16:46:06 +02:00
parent e76d9ef0eb
commit 38c510c658
13 changed files with 73 additions and 115 deletions

View file

@ -5,14 +5,10 @@ $alt = $block->alt();
$caption = $block->caption();
$src = $block->image()->toFile()->url();
$GLOBALS['figCount'] = ($GLOBALS['figCount'] ?? 0) + 1;
$figId = 'fig-' . Str::slug($block->parent()?->author() ?? '') . '-' . $GLOBALS['figCount'];
?>
<?php if ($src): ?>
<figure id="<?= $figId ?>">
<figure>
<img src="<?= $src ?>" alt="<?= $alt->esc() ?>">