portfolio iyo-bisseck
This commit is contained in:
parent
e76d9ef0eb
commit
38c510c658
13 changed files with 73 additions and 115 deletions
|
|
@ -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() ?>">
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue