25 lines
779 B
PHP
25 lines
779 B
PHP
|
<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>
|