ImageGallery-omeka-module/view/common/block-layout/imageGallery.phtml

44 lines
986 B
PHTML

<?php
$this->headLink()->appendStylesheet($this->assetUrl('css/gallery.css', 'ImageGallery'));
?>
<?php $image_id = 0; ?>
<div class="archive-gallery">
<?php if ($renderSourceLink) { ?>
<div class="source-link">
<a href="<?= $item_url ?>">Source</a>
</div>
<?php } ?>
<section id="<?= $gallery_id ?>"
class="gallery" style="padding-top: 330px;">
<?php foreach ($images as $image) { ?>
<?php $image_id = $image_id +1;
$img_id = $gallery_id . '-' . $image_id;
?>
<div class="gallery__item">
<input type="radio"
id="<?= $img_id ?>"
checked name="gallery"
class="gallery__selector"/>
<img class="gallery__img"
style="height: 330px;"
src="<?= $image->primaryMedia()->thumbnailUrl('large') ?>"
alt=""
/>
<label for="<?= $img_id ?>" class="gallery__thumb">
<img src="<?= $image->primaryMedia()->thumbnailUrl('large') ?>"
alt=""
/>
</label>
</div>
<?php } ?>
</section>
</div>