-
Notifications
You must be signed in to change notification settings - Fork 0
/
nextUp.php
34 lines (21 loc) · 845 Bytes
/
nextUp.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
include_once 'listings.php';
$useSeasonNameForMenuItems = false;
$indexStyle = new IndexStyle(IndexStyleEnum::PosterPopup6x2);
$folderType = ItemType::COLLECTIONFOLDER;
$collectionType = CollectionType::TVSHOWS;
$topParentName = $collectiontypeNames[$collectionType];
$pageObj = new ListingsPage('');
$pageObj->title = 'Next Up';
$rewatching = in_array($pageObj->auth->user_id, $rewatchingUserIDs) ? true : null;
$pageObj->dynamicGridPage = $dynamicGridPage;
if (!$pageObj->dynamicGridPage) {
$StartIndex = ($page - 1) * $indexStyle->Limit;
$Limit = $indexStyle->Limit;
}
$itemsAndCount = getNextUp($Limit, $StartIndex, $rewatching);
$items = $itemsAndCount->Items;
$pageObj->setNumPagesAndIndexCount($itemsAndCount->TotalRecordCount);
$pageObj->indexStyle = $indexStyle;
$pageObj->items = $items;
$pageObj->render();