diff options
-rw-r--r-- | index.php | 6 | ||||
-rw-r--r-- | template/multiview.phtml | 3 | ||||
-rw-r--r-- | view/multiview.php | 1 |
3 files changed, 9 insertions, 1 deletions
@@ -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 @@ <div class="row room-group"> <? foreach($rooms as $room): ?> - <? foreach($room->getStreams() as $stream): ?> + <? foreach($room->getStreams() as $stream): ?> + <? if($selection && $stream->getSelection() != $selection) continue ?> <div class="col-xs-6 col-sm-4 col-md-3 col-lg-2"> <div class="cell"> <h2><?=h($stream->getDisplay())?></h2> 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'], )); |