From f7d9d592745d1cb5cb2de76ed6ae99be974f1807 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Mon, 30 Mar 2015 16:20:30 +0200 Subject: Implement MVT Pattern based on simple Config options --- view/room.php | 118 +++------------------------------------------------------- 1 file changed, 6 insertions(+), 112 deletions(-) (limited to 'view/room.php') diff --git a/view/room.php b/view/room.php index 4484a14..505be95 100644 --- a/view/room.php +++ b/view/room.php @@ -1,121 +1,15 @@ selectStream( + $_GET['selection'], $_GET['language']); echo $tpl->render(array( 'page' => 'room', - 'title' => get("ROOMS.$room.DISPLAY").' – '.$title, + 'title' => $stream->getDisplay(), 'room' => $room, + 'stream' => $stream, - 'program' => program(), - - 'tab' => $tab, - 'tabs' => $tabs, - - 'width' => @$width, - 'height' => @$height, - 'language' => $language, - 'translated' => ($language == 'translated'), - 'selection' => $selection, - 'hlsformat' => ($selection == 'hd' ? 'auto' : $selection), - - 'has_translation' => $has_translation, - 'formats' => $formats, - 'protos' => $protos, - 'videores' => $videores, + 'schedule' => new Schedule(), )); -- cgit v1.2.3