Browse Source

Update admin.php

pull/698/head
danpros 1 year ago
parent
commit
886ff883a9
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      system/admin/admin.php

+ 2
- 3
system/admin/admin.php View File

@ -1627,7 +1627,6 @@ function reorder_subpages($subpages = null)
rebuilt_cache();
}
// Return image gallery in pager.
// Return image gallery in pager.
function image_gallery($images, $page = 1, $perpage = 0)
{
@ -1635,8 +1634,8 @@ function image_gallery($images, $page = 1, $perpage = 0)
$images = scan_images();
}
$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">';
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>';


Loading…
Cancel
Save