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,
|
'start' => $start,
|
||||||
'base_url' => BASEURL . '/people/',
|
'base_url' => BASEURL . '/people/',
|
||||||
'page_slug' => 'page/%PAGE%/',
|
'page_slug' => 'page/%PAGE%/',
|
||||||
|
'index_class' => 'pagination-lg justify-content-center',
|
||||||
]);
|
]);
|
||||||
$this->page->adopt(new PageIndexWidget($pagination));
|
$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,
|
'start' => (isset($_GET['page']) ? $_GET['page'] - 1 : 0) * self::PER_PAGE,
|
||||||
'base_url' => BASEURL . '/' . (isset($_GET['tag']) ? $_GET['tag'] . '/' : ''),
|
'base_url' => BASEURL . '/' . (isset($_GET['tag']) ? $_GET['tag'] . '/' : ''),
|
||||||
'page_slug' => 'page/%PAGE%/',
|
'page_slug' => 'page/%PAGE%/',
|
||||||
|
'index_class' => 'pagination-lg justify-content-center',
|
||||||
]);
|
]);
|
||||||
$this->page->adopt(new PageIndexWidget($index));
|
$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,
|
'start' => (isset($_GET['page']) ? $_GET['page'] - 1 : 0) * self::PER_PAGE,
|
||||||
'base_url' => BASEURL . '/timeline/',
|
'base_url' => BASEURL . '/timeline/',
|
||||||
'page_slug' => 'page/%PAGE%/',
|
'page_slug' => 'page/%PAGE%/',
|
||||||
|
'index_class' => 'pagination-lg justify-content-center',
|
||||||
]);
|
]);
|
||||||
$this->page->adopt(new PageIndexWidget($index));
|
$this->page->adopt(new PageIndexWidget($index));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user