Added lightbox to Gallery
|
|
@ -44,9 +44,15 @@ class GalleryController extends Controller
|
||||||
$imagelist_orig = Storage::disk('img_storage')->files("tour-$tour_id");
|
$imagelist_orig = Storage::disk('img_storage')->files("tour-$tour_id");
|
||||||
$imagelist=[];
|
$imagelist=[];
|
||||||
foreach($imagelist_orig as $image) {
|
foreach($imagelist_orig as $image) {
|
||||||
|
|
||||||
$arr = explode("/", $image);
|
$arr = explode("/", $image);
|
||||||
$image = end($arr);
|
$image = end($arr);
|
||||||
array_push($imagelist, $image);
|
|
||||||
|
$before = $image;
|
||||||
|
if (str_ends_with($image, "_gross.jpg")) {
|
||||||
|
$image = substr($image, 0, -10); # Remove last 10 characters
|
||||||
|
array_push($imagelist, $image);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//dd($imagelist);
|
//dd($imagelist);
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,22 @@
|
||||||
<h1 class="text-center">Galerie</h1>
|
<h1 class="text-center">Galerie</h1>
|
||||||
|
|
||||||
|
|
||||||
<h1>(Galerie Elemente)</h1>
|
<h1>(Galerie Elemente)</h1>
|
||||||
|
|
||||||
|
<a href="/img_storage/tour-1/awa-ruckkehr-nach-lobeshpng_gross.jpg" data-lightbox="awa-ruckkehr-nach-lobeshpng_gross.jpg" data-title="TestImage">
|
||||||
|
<img class="mt-3 ml-3" src="/img_storage/tour-1/awa-ruckkehr-nach-lobeshpng.jpg">
|
||||||
|
|
||||||
|
</a>
|
||||||
|
|
||||||
<div class="container text-primary" style="display:flex">
|
<div class="container text-primary" style="display:flex">
|
||||||
<ul class="list-group offset-2 col-8">
|
<ul class="list-group offset-2 col-8" style="display:inline">
|
||||||
@foreach($imagelist as $image)
|
@foreach($imagelist as $image)
|
||||||
<img src="/img_storage/tour-{{$tour_id}}/{{$image}}">
|
<a style="display: inline;" href="/img_storage/tour-{{$tour_id}}/{{$image}}_gross.jpg" data-lightbox="/img_storage/tour-{{$tour_id}}/{{$image}}_gross.jpg" data-title="{{$image}}">
|
||||||
|
<img class="mt-3 ml-3" src="/img_storage/tour-{{$tour_id}}/{{$image}}.jpg">
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@endforeach
|
@endforeach
|
||||||
</ul>
|
</ul>
|
||||||
|
|
@ -23,4 +34,6 @@
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
|
||||||
|
|
||||||
|
@endsection
|
||||||
|
After Width: | Height: | Size: 4 KiB |
|
After Width: | Height: | Size: 114 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 142 KiB |
BIN
motorradig/storage/img_storage/tour-1/mont-blanc-infopng.jpg
Normal file
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 37 KiB |
BIN
motorradig/storage/img_storage/tour-1/the7restfulroutespng.jpg
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 131 KiB |
BIN
motorradig/storage/img_storage/tour-1/ultrashort-bond-etfpng.jpg
Normal file
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 143 KiB |
BIN
motorradig/storage/img_storage/tour-1/wer-montags-lacheltjpg.jpg
Normal file
|
After Width: | Height: | Size: 6.2 KiB |
|
After Width: | Height: | Size: 206 KiB |