From d1fdb6237750d0553b26b0726428d28507141aa6 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Mon, 28 Dec 2015 11:21:51 +0100 Subject: force protocol on urls coming from relive --- lib/helper.php | 8 ++++++++ template/assemblies/player/relive.phtml | 2 +- template/relive-player.phtml | 4 ++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/lib/helper.php b/lib/helper.php index 6635fb1..c23d211 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -37,6 +37,14 @@ function forceslash($url) return $url; } +function forceproto($url) +{ + if(startswith('//', $url)) + $url = proto().':'.$url; + + return $url; +} + function startswith($needle, $haystack) { return substr($haystack, 0, strlen($needle)) == $needle; diff --git a/template/assemblies/player/relive.phtml b/template/assemblies/player/relive.phtml index 718b249..e9fe89c 100644 --- a/template/assemblies/player/relive.phtml +++ b/template/assemblies/player/relive.phtml @@ -8,7 +8,7 @@ class="relive" > diff --git a/template/relive-player.phtml b/template/relive-player.phtml index 2ee9ace..0fdee88 100644 --- a/template/relive-player.phtml +++ b/template/relive-player.phtml @@ -21,7 +21,7 @@

Download

-

Click here to Download this Relive recording. Beware! This is an unprocessed streamdump – a final release will follow soon.

+

Click here to Download this Relive recording. Beware! This is an unprocessed streamdump – a final release will follow soon.

@@ -42,7 +42,7 @@

Sorry about the Flash

As there is no desktop player which supports time-shifting, we chose embed a Flash player here which does. - If you still want to watch with a desktop player, use this URL: + If you still want to watch with a desktop player, use this URL:

Note: Downloading this file is useless because of the way HLS works. You need to play the URL from your player. -- cgit v1.2.3 From 327cbb3cae07b2463f3bc466db4814dee368928e Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Mon, 28 Dec 2015 11:26:07 +0100 Subject: fix multiview style --- assets/css/_multiview.less | 1 + configs/conferences/32c3/main.less | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/assets/css/_multiview.less b/assets/css/_multiview.less index 59b8e37..66dc25d 100644 --- a/assets/css/_multiview.less +++ b/assets/css/_multiview.less @@ -1,6 +1,7 @@ body.multiview { .cell { background-color: white; + margin-top: 15px; h2 { font-size: 14px; diff --git a/configs/conferences/32c3/main.less b/configs/conferences/32c3/main.less index 1f9f6fa..012b8a4 100644 --- a/configs/conferences/32c3/main.less +++ b/configs/conferences/32c3/main.less @@ -152,3 +152,7 @@ nav .button-wrapper > .about { color: @state-danger-text; } } + +body.multiview .cell { + color: black; +} -- cgit v1.2.3 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 From a69ef76e8c73a240d260cd60077dfcd42a6f284e Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Mon, 28 Dec 2015 15:51:14 +0100 Subject: provide Radio Fairydust on the streaming-page --- configs/conferences/32c3/config.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configs/conferences/32c3/config.php b/configs/conferences/32c3/config.php index 04a630c..7578c52 100644 --- a/configs/conferences/32c3/config.php +++ b/configs/conferences/32c3/config.php @@ -121,6 +121,7 @@ $GLOBALS['CONFIG']['OVERVIEW'] = array( 'ambient', 'dome', 'chaos-west', + 'radio', ), 'Live Podcasts' => array( 'sendezentrum', @@ -503,6 +504,12 @@ $GLOBALS['CONFIG']['ROOMS'] = array( 'MUSIC' => true, 'EMBED' => true, ), + 'radio' => array( + 'DISPLAY' => 'Radio Fairydust', + 'STREAM' => 'radio', + 'MUSIC' => true, + 'EMBED' => true, + ), ); -- cgit v1.2.3 From f271e140787d58a8aaa6815344501f8ccb09f27e Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Mon, 28 Dec 2015 16:36:06 +0100 Subject: make the click-targets in he schedule bigger, thanks @sebastian --- assets/css/_schedule.less | 14 +++++---- template/assemblies/schedule.phtml | 61 ++++++++++++++++++++------------------ 2 files changed, 41 insertions(+), 34 deletions(-) diff --git a/assets/css/_schedule.less b/assets/css/_schedule.less index 0151154..72ea294 100644 --- a/assets/css/_schedule.less +++ b/assets/css/_schedule.less @@ -40,8 +40,16 @@ height: 75px; } + a:hover { + text-decoration: none; + } + + .inner { + display: block; + padding: 10px; + height: 100%; + } - padding: 10px; border: 1px solid @schedule-border; h3 { @@ -64,10 +72,6 @@ @media (max-width: @screen-xs-max) { font-size: 15px; } - - a { - color: @schedule-room; - } } h5 { diff --git a/template/assemblies/schedule.phtml b/template/assemblies/schedule.phtml index b749e0b..2d5fc21 100644 --- a/template/assemblies/schedule.phtml +++ b/template/assemblies/schedule.phtml @@ -10,46 +10,49 @@ data-start="" data-end="" > - + + + + +
+ -

+ - +

- + - + -

+ - +

+ + - -

- – - -  in  - - - getDisplay())?> - - +

+ – + +  in  - -

-

- - - +

+

+

+ +
by 
- - -
by 
+ + + + +
-- cgit v1.2.3 From de21ef94cc0a529a8c7195994a56bb70772d9e4e Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Mon, 28 Dec 2015 16:42:03 +0100 Subject: use locally configured display name for room in schedule --- template/assemblies/schedule.phtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/assemblies/schedule.phtml b/template/assemblies/schedule.phtml index 2d5fc21..b47f30d 100644 --- a/template/assemblies/schedule.phtml +++ b/template/assemblies/schedule.phtml @@ -39,7 +39,7 @@ –  in  - + getDisplay()) ?>

-- cgit v1.2.3