Add pager in gallery

Load 40 images for each pager.
This commit is contained in:
danpros 2024-03-03 17:26:08 +07:00
commit 675cf51259
8 changed files with 125 additions and 71 deletions

View file

@ -1824,6 +1824,14 @@ post('/admin/menu', function () {
}
});
post('/admin/gallery', function () {
if (login()) {
$page = from($_REQUEST, 'page');
$images = image_gallery(null, $page, 40);
echo json_encode(array('images' => $images));
}
});
// Show category page
get('/admin/categories', function () {