portfolio iyo-bisseck
This commit is contained in:
parent
e76d9ef0eb
commit
38c510c658
13 changed files with 73 additions and 115 deletions
|
|
@ -13,14 +13,11 @@ if ($block->location() == 'web') {
|
|||
$src = $image->url();
|
||||
}
|
||||
|
||||
$GLOBALS['figCount'] = ($GLOBALS['figCount'] ?? 0) + 1;
|
||||
$figId = 'fig-' . Str::slug($block->parent()?->author() ?? '') . '-' . $GLOBALS['figCount'];
|
||||
|
||||
?>
|
||||
|
||||
<?php if ($src): ?>
|
||||
<div class="spread-image">
|
||||
<figure id="<?= $figId ?>" class="<?= $fullWidth ? 'full-width' : '' ?>">
|
||||
<figure class="<?= $fullWidth ? 'full-width' : '' ?>">
|
||||
<img src="<?= $src ?>" alt="<?= $alt->esc() ?>">
|
||||
<?php if ($caption->isNotEmpty()): ?>
|
||||
<figcaption><?= $caption ?></figcaption>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue