php - Showing images from multi-page galery in continuus lightbox -
i looking solution using lightbox possible see images while these images spread on multiple pages in multi-paged gallery (page 1-2-3-...).
now can see images in lightbox on current page - offcourse - normal. tips or tricks there still able scroll on images have?
<div class="row" id="gallery"> <?php $page = isset($_get['page']) ? $_get['page'] : 1; $start = ($page - 1) * $images_per_page; $end = $start + $images_per_page; if ($end > $total) { $end = $total; } ($i = $start; $i < $end; $i++) { ?> <div class="col-lg-4 col-md-4 col-xs-6"> <a class="fancybox" rel="group" href="<?php print '/upload/files/'.basename($images[$i]); ?>"> <img src="<?php print '/upload/.thumbs/files/'.basename($images[$i]); ?>" alt="restaurant de clochard"/> </a> </div> <?php } ?> </div> <div class="row"> <div class="col-lg-6 text-left"> <?php if ($page > 1) { ?> <a href="/galerij?page=<?php print $page - 1; ?>"> <span class="fa fa-arrow-left"></span> vorige pagina </a> <?php } ?> </div> <div class="col-lg-6 text-right"> <?php if ($total_pages > $page) { ?> <a href="/galerij?page=<?php print $page + 1; ?>"> volgende pagina <span class="fa fa-arrow-right"></span> </a> <?php } ?> </div> </div>
Comments
Post a Comment