You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
495 B
20 lines
495 B
<?php
|
|
/** @var \Kirby\Cms\Block $block */
|
|
$caption = $block->caption();
|
|
$crop = $block->crop()->isTrue();
|
|
$ratio = $block->ratio()->or('auto');
|
|
?>
|
|
<figure<?= Html::attr(['data-ratio' => $ratio, 'data-crop' => $crop], null, ' ') ?>>
|
|
<ul>
|
|
<?php foreach ($block->images()->toFiles() as $image): ?>
|
|
<li>
|
|
<?= $image ?>
|
|
</li>
|
|
<?php endforeach ?>
|
|
</ul>
|
|
<?php if ($caption->isNotEmpty()): ?>
|
|
<figcaption>
|
|
<?= $caption ?>
|
|
</figcaption>
|
|
<?php endif ?>
|
|
</figure>
|
|
|