From 6be05f60903348f4690249052c98a15ca10ab3ed Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Mon, 28 Dec 2015 11:26:17 +0100 Subject: add audio-only multiview --- index.php | 6 ++++++ template/multiview.phtml | 3 ++- view/multiview.php | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index d044cfe..eeaca82 100644 --- a/index.php +++ b/index.php @@ -210,6 +210,12 @@ try { require('view/multiview.php'); } + else if($route == 'multiview/audio') + { + $_GET['selection'] = 'audio'; + require('view/multiview.php'); + } + else if($route == 'feedback') { require('view/feedback.php'); diff --git a/template/multiview.phtml b/template/multiview.phtml index e07446b..4f8597f 100644 --- a/template/multiview.phtml +++ b/template/multiview.phtml @@ -7,7 +7,8 @@
- getStreams() as $stream): ?> + getStreams() as $stream): ?> + getSelection() != $selection) continue ?>

getDisplay())?>

diff --git a/view/multiview.php b/view/multiview.php index 5951ff1..eebf81e 100644 --- a/view/multiview.php +++ b/view/multiview.php @@ -5,4 +5,5 @@ echo $tpl->render(array( 'title' => 'Stream-Übersicht', 'rooms' => Room::rooms(), + 'selection' => @$_GET['selection'], )); -- cgit v1.2.3