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 @@ -

Formats

- - -
- -

Directlinks

- +
+

Audio

+
+ +
+
+
Audio
+ + + + + + native + + + + translated + + + + + + + video + + + +
+
+ +
+ + +

Directlinks

+
+ + +
+ + +
+ + +
+
\ No newline at end of file diff --git a/template/assemblies/switcher/slides.phtml b/template/assemblies/switcher/slides.phtml index 401b4e7..45af0d0 100644 --- a/template/assemblies/switcher/slides.phtml +++ b/template/assemblies/switcher/slides.phtml @@ -1,31 +1,67 @@ -

Slides

- - -

Directlinks

- +
+

Slides

+
+ +
+
+
Slides
+ + + + + + native + + + + translated + + + + + + + native + + + +
+
+ +
+ +

Directlinks

+
+ + +
+ +
+ + +
+ +
\ No newline at end of file diff --git a/template/assemblies/switcher/video.phtml b/template/assemblies/switcher/video.phtml index 653847c..2017b2e 100644 --- a/template/assemblies/switcher/video.phtml +++ b/template/assemblies/switcher/video.phtml @@ -1,6 +1,7 @@
-

Formats

+

Video

+
@@ -28,6 +29,7 @@
+
@@ -35,6 +37,7 @@
-- cgit v1.2.3