mirror of
https://github.com/danpros/htmly.git
synced 2026-04-17 11:16:00 +05:30
Add pager in gallery
Load 40 images for each pager.
This commit is contained in:
parent
a749ef2d73
commit
675cf51259
8 changed files with 125 additions and 71 deletions
|
|
@ -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 () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue