forked from Public/pics
Pagination: use larger page indices on photo and album index pages
This commit is contained in:
parent
a9a2c64d81
commit
021df2df93
@ -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));
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user