Files
plugi/themes/theme-one/blocks/gallery-item/view.php
T
deepDiverPaul ed8ae3200b refresh theme-one starter blocks and layout
Redesign the master layout and content blocks with responsive styling, accessible navigation, and configurable CTA and quote sections. Add about-me, embedded-code, and FAQ blocks, and update the generated theme assets. Replace Alpine-based locale handling with vanilla JavaScript for locale flags and gallery lightboxes, and remove Alpine and DaisyUI dependencies.
2026-11-25 17:50:12 +01:00

10 lines
794 B
PHP

<figure class="overflow-hidden rounded-xl bg-slate-100">
<?php if (strlen($block->setting('image_src')) > 0) : ?>
<a class="group block focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-slate-700" href="<?= $block->setting('image_src') ?>" target="_blank" rel="noopener noreferrer" data-gallery-trigger>
<img class="aspect-square w-full object-cover transition duration-300 group-hover:scale-105" src="<?= $block->setting('image_src') ?>" alt="<?= $block->setting('image_alt') ?>" loading="lazy" decoding="async">
</a>
<?php endif; ?>
<?php if (strlen($block->setting('caption')) > 0) : ?>
<figcaption class="px-3 py-2 text-sm text-slate-600"><?= $block->setting('caption') ?></figcaption>
<?php endif; ?>
</figure>