Pagination: use larger page indices on photo and album index pages

This commit is contained in:
Aaron van Geffen 2023-03-11 14:12:56 +01:00
parent a9a2c64d81
commit 021df2df93
3 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,7 @@ class ViewPeople extends HTMLController
'start' => $start,
'base_url' => BASEURL . '/people/',
'page_slug' => 'page/%PAGE%/',
'index_class' => 'pagination-lg justify-content-center',
]);
$this->page->adopt(new PageIndexWidget($pagination));

View File

@ -111,6 +111,7 @@ class ViewPhotoAlbum extends HTMLController
'start' => (isset($_GET['page']) ? $_GET['page'] - 1 : 0) * self::PER_PAGE,
'base_url' => BASEURL . '/' . (isset($_GET['tag']) ? $_GET['tag'] . '/' : ''),
'page_slug' => 'page/%PAGE%/',
'index_class' => 'pagination-lg justify-content-center',
]);
$this->page->adopt(new PageIndexWidget($index));
}

View File

@ -46,6 +46,7 @@ class ViewTimeline extends HTMLController
'start' => (isset($_GET['page']) ? $_GET['page'] - 1 : 0) * self::PER_PAGE,
'base_url' => BASEURL . '/timeline/',
'page_slug' => 'page/%PAGE%/',
'index_class' => 'pagination-lg justify-content-center',
]);
$this->page->adopt(new PageIndexWidget($index));
}