aboutsummaryrefslogtreecommitdiff
path: root/template/room.phtml
diff options
context:
space:
mode:
authorMaZderMind2014-11-09 22:53:16 +0100
committerMaZderMind2014-11-09 22:53:16 +0100
commit7da876b75ee3307e400eab65e6206c8dca7cf56a (patch)
tree75eb1fa9701b54bb9b0a87533915949fe81fbe3e /template/room.phtml
parentffbff5eb16a30b673d0c8296068cce230c510ca3 (diff)
minirooms (aka sendezentrum)
Diffstat (limited to 'template/room.phtml')
-rw-r--r--template/room.phtml52
1 files changed, 33 insertions, 19 deletions
diff --git a/template/room.phtml b/template/room.phtml
index 6c26730..78d470d 100644
--- a/template/room.phtml
+++ b/template/room.phtml
@@ -2,7 +2,13 @@
<h1><?=h($title)?></h1>
<ul class="nav nav-tabs nav-justified">
- <? foreach(array('video', 'audio', 'slides') as $iter): ?>
+ <?
+ if($miniroom)
+ $tabs = array('video', 'audio', 'slides');
+ else
+ $tabs = array('video', 'audio');
+ ?>
+ <? foreach($tabs as $iter): ?>
<li
<? if($type == $iter):?>class="active"<? endif ?>
>
@@ -17,27 +23,35 @@
<? include("assemblies/player/$type.phtml") ?>
</div>
- <ul class="nav nav-tabs nav-justified" role="tablist">
- <li class="active">
- <a href="#switcher" role="tab" data-toggle="tab">Formats</a>
- </li>
- <li>
- <a href="#irc" role="tab" data-toggle="tab">IRC</a>
- </li>
- <li>
- <a href="#program" role="tab" data-toggle="tab">Program</a>
- </li>
- </ul>
+ <? if(!$miniroom): ?>
+ <ul class="nav nav-tabs nav-justified" role="tablist">
+ <li class="active">
+ <a href="#switcher" role="tab" data-toggle="tab">Formats</a>
+ </li>
+ <li>
+ <a href="#irc" role="tab" data-toggle="tab">IRC</a>
+ </li>
+ <li>
+ <a href="#program" role="tab" data-toggle="tab">Program</a>
+ </li>
+ </ul>
+ <? endif ?>
<div class="tab-content">
<div class="tab-pane active" id="switcher">
- <? include("assemblies/switcher/$type.phtml") ?>
- </div>
- <div class="tab-pane" id="irc">
- <? include("assemblies/irc.phtml") ?>
- </div>
- <div class="tab-pane" id="program">
- <? include("assemblies/program.phtml") ?>
+ <? if($miniroom): ?>
+ <? include("assemblies/switcher/miniroom-$type.phtml") ?>
+ <? else: ?>
+ <? include("assemblies/switcher/$type.phtml") ?>
+ <? endif ?>
</div>
+ <? if(!$miniroom): ?>
+ <div class="tab-pane" id="irc">
+ <? include("assemblies/irc.phtml") ?>
+ </div>
+ <div class="tab-pane" id="program">
+ <? include("assemblies/program.phtml") ?>
+ </div>
+ <? endif ?>
</div>
</div>