kuvia/resources/views/themes/gallery/default/list.blade.php

29 lines
855 B
PHP
Raw Normal View History

2021-01-12 14:49:45 +00:00
@extends('layout/template')
@section('content')
<div class="row">
<div class="col-md-12">
<h1>Galleries {{ $gallery->name }}</h1>
<div id="mygallery">
@foreach($images as $image)
2021-01-12 20:01:14 +00:00
<a href="/{{ $tenant->url }}/{{ $gallery->url }}/{{ $image->id }}/file?size=big">
2021-01-12 17:17:36 +00:00
<img style="height: 200px;" alt="{{ $image->filename }}" src="{{$image->domain}}/{{ $tenant->url }}/{{ $gallery->url }}/{{ $image->id }}/file"/>
2021-01-12 14:49:45 +00:00
</a>
@endforeach
</div>
</div>
</div>
@endsection
@section('js')
2021-01-12 18:26:00 +00:00
<link rel="stylesheet" href="/css/justifiedGallery.css" />
<script src="/js/jquery.justifiedGallery.js"></script>
2021-01-12 14:49:45 +00:00
<script>
$("#mygallery").justifiedGallery({
2021-01-12 18:26:00 +00:00
rowHeight: 250,
2021-01-12 14:49:45 +00:00
});
</script>
@endsection