first commit
This commit is contained in:
24
resources/views/shortcodes/gallery.blade.php
Normal file
24
resources/views/shortcodes/gallery.blade.php
Normal file
@ -0,0 +1,24 @@
|
||||
<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>
|
Reference in New Issue
Block a user