Stuff
This commit is contained in:
parent
5285d2c046
commit
3c4386250a
1 changed files with 9 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
||||||
<div>
|
<div>
|
||||||
<div class="fotorama" data-nav="thumbs" data-keyboard="true" data-ratio="800/600" data-width="1200" data-maxheight="80%" data-allowfullscreen="true">
|
<div class="fotorama" data-nav="thumbs" data-keyboard="true" data-ratio="800/600" data-width="1200" data-maxheight="80%" data-allowfullscreen="true">
|
||||||
@foreach($images as $image)
|
@foreach($images as $image)
|
||||||
<a href="/{{ $tenant->url }}/{{ $gallery->url }}/{{ $image->id }}/file?size=big" data-description="{{ $image->description }}" data-name="{{ $image->name }}"><img src="/{{ $tenant->url }}/{{ $gallery->url }}/{{ $image->id }}/file?size=pixel"></a>
|
<a href="/{{ $tenant->url }}/{{ $gallery->url }}/{{ $image->id }}/file?size=big" data-taken="{{ $image->DateTimeOriginal }}" data-description="{{ $image->description }}" data-name="{{ $image->name }}"><img src="/{{ $tenant->url }}/{{ $gallery->url }}/{{ $image->id }}/file?size=pixel"></a>
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -14,8 +14,14 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-2"></div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<h1>Gallery: <?php echo $gallery->name; ?></h1>
|
||||||
|
<p><?php echo $gallery->description; ?></p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
<h1 id="filename"></h1>
|
<h1 id="filename"></h1>
|
||||||
|
<i>Picture take <span id="taken"></span></i>
|
||||||
<p id="description"></p>
|
<p id="description"></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -28,6 +34,7 @@
|
||||||
console.log(e.type, fotorama.activeFrame);
|
console.log(e.type, fotorama.activeFrame);
|
||||||
$("#filename").html(fotorama.activeFrame.name);
|
$("#filename").html(fotorama.activeFrame.name);
|
||||||
$("#description").html(fotorama.activeFrame.description);
|
$("#description").html(fotorama.activeFrame.description);
|
||||||
|
$("#taken").html(fotorama.activeFrame.taken);
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue