aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies/switcher
diff options
context:
space:
mode:
authorMaZderMind2014-10-19 12:12:20 +0200
committerMaZderMind2014-10-19 12:12:20 +0200
commitf652ae2be38e74796ed63ba72e23fcb632818118 (patch)
treefac87e88a3928b789c0d9b7f4a9a2ac5b6cbb77e /template/assemblies/switcher
parentc2f7758004a9016910168ad47c1a4300e107f2c2 (diff)
restructure room site to produce a unique room/player/formats page
Diffstat (limited to 'template/assemblies/switcher')
-rw-r--r--template/assemblies/switcher/audio.phtml14
-rw-r--r--template/assemblies/switcher/slides.phtml14
-rw-r--r--template/assemblies/switcher/video.phtml16
3 files changed, 44 insertions, 0 deletions
diff --git a/template/assemblies/switcher/audio.phtml b/template/assemblies/switcher/audio.phtml
new file mode 100644
index 0000000..31bb3f0
--- /dev/null
+++ b/template/assemblies/switcher/audio.phtml
@@ -0,0 +1,14 @@
+<h3>Audio</h3>
+<ul>
+ <li>
+ <span class="label filetype">MP3</span>
+ <a href="<?=h(link_player($room, 'audio'))?>">
+ <span class="fa fa-download"></span>
+ native
+ </a>
+ <a href="<?=h(link_player($room, 'audio', true))?>">
+ <span class="fa fa-download"></span>
+ translated
+ </a>
+ </li>
+</ul>
diff --git a/template/assemblies/switcher/slides.phtml b/template/assemblies/switcher/slides.phtml
new file mode 100644
index 0000000..42573fa
--- /dev/null
+++ b/template/assemblies/switcher/slides.phtml
@@ -0,0 +1,14 @@
+<h3>Slides</h3>
+<ul>
+ <li>
+ <span class="label filetype">JPG &amp; MP3</span>
+ <a href="<?=h(link_player($room, 'slides'))?>">
+ <span class="fa fa-download"></span>
+ native
+ </a>
+ <a href="<?=h(link_player($room, 'slides', true))?>">
+ <span class="fa fa-download"></span>
+ translated
+ </a>
+ </li>
+</ul>
diff --git a/template/assemblies/switcher/video.phtml b/template/assemblies/switcher/video.phtml
new file mode 100644
index 0000000..bceb93c
--- /dev/null
+++ b/template/assemblies/switcher/video.phtml
@@ -0,0 +1,16 @@
+<h3>Video</h3>
+<ul>
+ <? foreach(array('hd', 'hq', 'lq') as $iter): ?>
+ <li>
+ <span class="label filetype"><?=h(strtoupper($iter))?></span>
+ <a href="<?=h(link_player($room, $iter))?>">
+ <span class="fa fa-download"></span>
+ native
+ </a>
+ <a href="<?=h(link_player($room, $iter, true))?>">
+ <span class="fa fa-download"></span>
+ translated
+ </a>
+ </li>
+ <? endforeach ?>
+</ul>