Multi-images component, refactoring medias functions
This commit is contained in:
14
resources/views/components/multi-images.blade.php
Normal file
14
resources/views/components/multi-images.blade.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<div class="sp-loading"><img src="images/sp-loading.gif" alt=""><br>LOADING IMAGES</div>
|
||||
<div class="sp-wrap" style="width: 100%;">
|
||||
@foreach ($images as $image)
|
||||
<a href="{{ App\Repositories\Core\Images::getImageSrc($image) }}"><img src="{{ App\Repositories\Core\Images::getNormalSrc($image) }}"></a>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(window).load(function() {
|
||||
$('.sp-wrap').smoothproducts();
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
Reference in New Issue
Block a user