ubuntu:latest ist inzwischen 26.04 mit PHP 8.5, das Kirby 4.6 nicht unterstuetzt. 24.04 liefert php8.3 8.3.6-0ubuntu0.24.04.13 mit dem Fix fuer CVE-2026-109618/-109619. Image neu bauen mit --pull. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
24 lines
593 B
PHP
24 lines
593 B
PHP
<?php
|
|
/** @var \Kirby\Cms\Block $block */
|
|
?>
|
|
<figure class="gallery">
|
|
<ul>
|
|
<?php foreach ($block->images()->toFiles() as $image): ?>
|
|
<li>
|
|
<?php snippet('image', [
|
|
'alt' => $image->alt(),
|
|
'contain' => $block->crop()->isTrue(),
|
|
'lightbox' => true,
|
|
'ratio' => $block->ratio()->or('auto'),
|
|
'src' => $image->url(),
|
|
]) ?>
|
|
</li>
|
|
<?php endforeach ?>
|
|
</ul>
|
|
<?php if ($block->caption()->isNotEmpty()): ?>
|
|
<figcaption>
|
|
<?= $block->caption() ?>
|
|
</figcaption>
|
|
<?php endif ?>
|
|
</figure>
|