From 9f5dad12d109fcd29eda813af9cd15e610dfcecf Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sun, 1 Mar 2015 14:49:26 +0100 Subject: Switcher-Styles --- lib/helper.php | 2 +- template/assemblies/switcher/audio.phtml | 101 ++++++++++++++++++++---------- template/assemblies/switcher/slides.phtml | 98 ++++++++++++++++++++--------- template/assemblies/switcher/video.phtml | 6 +- 4 files changed, 141 insertions(+), 66 deletions(-) diff --git a/lib/helper.php b/lib/helper.php index fdd472e..699c44e 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -16,7 +16,7 @@ function link_player($room, $format = 'hd', $translated = false) { $defaultformat = room_has_hd($room) ? 'hd' : 'sd'; - return rawurlencode($room).'/'.($defaultformat == $format ? '' : rawurlencode($format).'/').($translated ? 'translated/' : ''); + return rawurlencode($room).'/'.(($defaultformat == $format || 'video' == $format) ? '' : rawurlencode($format).'/').($translated ? 'translated/' : ''); } function link_stream($protocol, $room, $format, $translated = false) diff --git a/template/assemblies/switcher/audio.phtml b/template/assemblies/switcher/audio.phtml index fb12e60..9e42e0b 100644 --- a/template/assemblies/switcher/audio.phtml +++ b/template/assemblies/switcher/audio.phtml @@ -1,33 +1,68 @@ -