2026-01-05 19:33:15 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/** @var \Kirby\Cms\Block $block */
|
|
|
|
|
$alt = $block->alt();
|
|
|
|
|
$caption = $block->caption();
|
2026-02-21 17:52:13 +01:00
|
|
|
$src = $block->image()->toFile()->url();
|
2026-01-05 19:33:15 +01:00
|
|
|
|
|
|
|
|
?>
|
2026-02-21 17:52:13 +01:00
|
|
|
|
2026-01-05 19:33:15 +01:00
|
|
|
<?php if ($src): ?>
|
2026-02-21 17:52:13 +01:00
|
|
|
<figure class="web-image">
|
|
|
|
|
|
2026-01-05 19:33:15 +01:00
|
|
|
<img src="<?= $src ?>" alt="<?= $alt->esc() ?>">
|
2026-02-21 17:52:13 +01:00
|
|
|
|
|
|
|
|
<?php if ($caption->isNotEmpty()): ?>
|
|
|
|
|
<figcaption>
|
|
|
|
|
<?= $caption->kt() ?>
|
|
|
|
|
</figcaption>
|
2026-01-05 19:33:15 +01:00
|
|
|
<?php endif ?>
|
2026-02-21 17:52:13 +01:00
|
|
|
</figure>
|
|
|
|
|
|
2026-03-18 08:44:44 +01:00
|
|
|
<figure class="print-image full-page <?= $block->taille()->esc() ?>" style="height:<?= $block->image()->toFile()->height()?>px">
|
2026-02-21 17:52:13 +01:00
|
|
|
<?php if($srcred = $block->imagered()->toFile()):?>
|
|
|
|
|
<div class="print-red red-layer">
|
|
|
|
|
<img src="<?= $srcred->url() ?>" alt="<?= $alt->esc() ?>">
|
|
|
|
|
</div>
|
|
|
|
|
<?php endif ?>
|
|
|
|
|
<?php if($srcgreen = $block->imagegreen()->toFile()):?>
|
|
|
|
|
<div class="print-green green-layer">
|
|
|
|
|
<img src="<?= $srcgreen->url() ?>" alt="<?= $alt->esc() ?>">
|
|
|
|
|
</div>
|
|
|
|
|
<?php endif ?>
|
|
|
|
|
<?php if($srcblue = $block->imageblue()->toFile()):?>
|
|
|
|
|
<div class="print-blue blue-layer">
|
|
|
|
|
<img src="<?= $srcblue->url() ?>" alt="<?= $alt->esc() ?>">
|
|
|
|
|
</div>
|
|
|
|
|
<?php endif ?>
|
|
|
|
|
|
2026-01-05 19:33:15 +01:00
|
|
|
|
|
|
|
|
<?php if ($caption->isNotEmpty()): ?>
|
|
|
|
|
<figcaption>
|
|
|
|
|
<?= $caption->kt() ?>
|
|
|
|
|
</figcaption>
|
|
|
|
|
<?php endif ?>
|
|
|
|
|
</figure>
|
|
|
|
|
<?php endif ?>
|