kuvia/resources/views/themes/tenant/kuvia-gallery/list.blade.php

29 lines
831 B
PHP
Raw Permalink Normal View History

2021-01-12 21:46:12 +00:00
@extends('layout/template')
@section('content')
<div class="row">
<div class="col-md-12">
<h1>Galleries</h1>
<div id="mygallery">
@foreach($galleries as $gallery)
<a href="/{{ $tenant->url }}/{{ $gallery->url }}/">
2021-01-21 17:56:30 +00:00
<img style="height: 200px;" alt="{{ $gallery->name }}" src="/{{ $tenant->url }}/{{ $gallery->url }}/{{ $gallery->main_image }}/file?size=medium"/>
2021-01-12 21:46:12 +00:00
</a>
@endforeach
</div>
</div>
</div>
@endsection
@section('js')
<link rel="stylesheet" href="/css/justifiedGallery.css" />
<script src="/js/jquery.justifiedGallery.js"></script>
<script>
$("#mygallery").justifiedGallery({
rowHeight: 250,
});
</script>
@endsection