-
Notifications
You must be signed in to change notification settings - Fork 0
/
latest.php
24 lines (17 loc) · 825 Bytes
/
latest.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
<?php
include_once 'listings.php';
$GroupItems = 'true';
$Limit = 27;
$collectionTypeToItemType = array(CollectionType::TVSHOWS => ItemType::EPISODE,
CollectionType::MOVIES => ItemType::MOVIE, CollectionType::BOXSETS => ItemType::BOXSET,
CollectionType::PLAYLISTS => ItemType::PLAYLIST, CollectionType::MUSICVIDEOS => ItemType::MUSICVIDEO);
$collectionType = htmlspecialchars($_GET['collectionType']);
$folderType = ItemType::COLLECTIONFOLDER;
$pageObj = new ListingsPage('');
$items = getLatest($collectionTypeToItemType[$collectionType], $Limit, $topParentId);
$indexStyle = new IndexStyle(IndexStyleEnum::PosterPopupDynamic);
$pageObj->setNumPagesAndIndexCount(count($items));
$pageObj->title = $name . ' ' . $topParentName;
$pageObj->indexStyle = $indexStyle;
$pageObj->items = $items;
$pageObj->render();