This commit is contained in:
Kekskurse 2021-01-12 23:35:21 +01:00
parent 3854df54af
commit e292fa8cc1
4 changed files with 45 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class PublicController extends BaseController
$tenant = Tenant::query()->where("url", "=", $tenant)->firstOrFail();
$gallery = Gallery::getByTenantAndUrl($tenant->id, $gallery);
$images = Image::query()->where("gallery", "=", $gallery->id)->get();
return view("themes.gallery.kuvia-gallery.list", ["gallery" => $gallery, "tenant" => $tenant, "images" => $images]);
return view("themes.gallery.gallery.list", ["gallery" => $gallery, "tenant" => $tenant, "images" => $images]);
}
public function returnImageFile($tenant, $gallery, $image, Request $request) {

1
resources/css/photor.min.css vendored Normal file

File diff suppressed because one or more lines are too long

1
resources/js/photor.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,42 @@
<body style="background-color: #0d0d0d;">
<div class="">
<div class="photor">
<div class="photor__viewport">
<div class="photor__viewportLayer">
<!-- Add photos -->
@foreach($images as $image)
<img src="/{{ $tenant->url }}/{{ $gallery->url }}/{{ $image->id }}/file?size=big" data-thumb="/{{ $tenant->url }}/{{ $gallery->url }}/{{ $image->id }}/file?size=small">
@endforeach
</div>
<div class="photor__viewportControl">
<div class="photor__viewportControlPrev"></div>
<div class="photor__viewportControlNext"></div>
</div>
</div>
<div class="photor__thumbs">
<div class="photor__thumbsWrap"></div>
</div>
</div>
</div>
<link href="/css/photor.min.css" rel="stylesheet"> <!-- 1.4 KB in gzip -->
<script src="/js/jquery-3.5.1.min.js"></script>
<script src="/js/photor.min.js"></script> <!-- 5 KB in gzip -->
<script>
$(document).ready(function() {
$('.photor').photor();
});
</script>
</body>