|
|
@ -1627,7 +1627,6 @@ function reorder_subpages($subpages = null) |
|
|
rebuilt_cache(); |
|
|
rebuilt_cache(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Return image gallery in pager.
|
|
|
|
|
|
// Return image gallery in pager.
|
|
|
// Return image gallery in pager.
|
|
|
function image_gallery($images, $page = 1, $perpage = 0) |
|
|
function image_gallery($images, $page = 1, $perpage = 0) |
|
|
{ |
|
|
{ |
|
|
@ -1635,8 +1634,8 @@ function image_gallery($images, $page = 1, $perpage = 0) |
|
|
$images = scan_images(); |
|
|
$images = scan_images(); |
|
|
} |
|
|
} |
|
|
$tmp = ''; |
|
|
$tmp = ''; |
|
|
$images = array_slice($images, ($page - 1) * $perpage, $perpage); |
|
|
|
|
|
$pagination = has_pagination(count($images), $perpage, $page); |
|
|
|
|
|
|
|
|
$pagination = has_pagination(count($images), $perpage, $page); |
|
|
|
|
|
$images = array_slice($images, ($page - 1) * $perpage, $perpage); |
|
|
$tmp .= '<div class="cover-container">'; |
|
|
$tmp .= '<div class="cover-container">'; |
|
|
foreach ($images as $index => $v) { |
|
|
foreach ($images as $index => $v) { |
|
|
$tmp .= '<div class="cover-item"><img loading="lazy" class="img-thumbnail the-img" src="' . site_url() . $v['dirname'] . '/'. $v['basename'].'"></div>'; |
|
|
$tmp .= '<div class="cover-item"><img loading="lazy" class="img-thumbnail the-img" src="' . site_url() . $v['dirname'] . '/'. $v['basename'].'"></div>'; |
|
|
|