master_template/resources/views/shortcodes/gallery.blade.php

25 lines
779 B
PHP
Raw Permalink Normal View History

2024-06-10 12:21:58 +00:00
<div class="{{$css}}">
<div class="row">
@php
$alias = htmlspecialchars_decode($alias);
$Photos = CCMS::getGalleryByAlias($alias);
@endphp
@if ($Photos && count($Photos) > 0)
@foreach ($Photos as $Photo)
<div class="col-md-3">
<a href="{{site_url($Photo->thumb)}}" data-fancybox="gallery1">
<img class="img-fluid" src="{{site_url($Photo->thumb)}}" alt="">
</a>
</div>
@endforeach
@else
@if (!$Photos)
This gallery with alias {!! $alias !!} does not exist.
@else
No photos available in the gallery.
@endif
@endif
</div>
</div>