figures simples + outdoor computer club
This commit is contained in:
parent
76dc174fca
commit
868a5b702c
18 changed files with 531 additions and 352 deletions
|
|
@ -5,10 +5,13 @@ $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="<?= $block->id() ?>" class="print-image full-page <?= $block->taille()->esc() ?>">
|
||||
<figure id="<?= $figId ?>">
|
||||
|
||||
<img src="<?= $src ?>" alt="<?= $alt->esc() ?>">
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue