streaming-website/template/room.phtml

68 lines
1.9 KiB
PHTML
Raw Normal View History

<div class="container <?=h($stream->getTab())?> <?=h($stream->getSelection())?> <?=h($stream->getLanguage())?>">
2015-02-27 16:21:51 +00:00
<div class="row headline">
<div class="col-xs-12">
<h1 data-room="<?=h($room->getDisplay())?>"><?=h($stream->getDisplay())?></h1>
2015-02-27 16:21:51 +00:00
</div>
</div>
2015-02-28 18:12:27 +00:00
<ul class="nav nav-player nav-tabs nav-justified">
<? foreach($room->getTabs() as $tab): ?>
<li
<? if($tab->getTab() == $stream->getTab()): ?>class="active"<? endif ?>
>
<a href="<?=h($tab->getLink())?>">
<?=h($tab->getDisplay())?>
</a>
</li>
<? endforeach ?>
</ul>
2015-02-27 16:21:51 +00:00
<div class="player-wrap tab-content">
2015-03-01 10:17:27 +00:00
<div role="tabpanel" class="tab-pane active">
<? require("$assemblies/player/".$stream->getPlayerType().".phtml") ?>
2015-02-27 16:21:51 +00:00
</div>
2014-10-20 19:20:08 +00:00
</div>
2015-02-28 18:12:27 +00:00
<ul class="nav nav-functions nav-tabs nav-justified" role="tablist">
2014-12-20 10:57:09 +00:00
<li class="active">
<a href="#switcher" role="tab" data-toggle="tab">Formats</a>
</li>
<? if($room->hasChat()): ?>
2014-11-09 21:53:16 +00:00
<li>
2015-03-01 10:17:27 +00:00
<a href="#chat" role="tab" data-toggle="tab">Chat</a>
2014-11-09 21:53:16 +00:00
</li>
2015-02-27 16:21:51 +00:00
<? endif ?>
<? if($room->hasSchedule()): ?>
2014-11-09 21:53:16 +00:00
<li>
<a href="#schedule" role="tab" data-toggle="tab">Schedule</a>
2014-11-09 21:53:16 +00:00
</li>
2014-12-20 10:57:09 +00:00
<? endif ?>
<? if($room->hasFeedback()): ?>
2015-02-27 16:21:51 +00:00
<li>
<a href="#feedback" role="tab" data-toggle="tab">Feedback</a>
</li>
<? endif ?>
2014-12-20 10:57:09 +00:00
</ul>
2015-02-28 18:12:27 +00:00
<div class="functions-wrap tab-content">
2015-03-01 10:17:27 +00:00
<div role="tabpanel" class="tab-pane active" id="switcher">
<? require("$assemblies/switcher/".$stream->getPlayerType().".phtml") ?>
2014-10-20 19:20:08 +00:00
</div>
<? if($room->hasChat()): ?>
2015-03-01 10:17:27 +00:00
<div role="tabpanel" class="tab-pane" id="chat">
<? require("$assemblies/chat.phtml") ?>
2014-11-09 21:53:16 +00:00
</div>
2015-02-27 16:21:51 +00:00
<? endif ?>
<? if($room->hasSchedule()): ?>
2015-03-30 19:18:09 +00:00
<div role="tabpanel" class="tab-pane" id="schedule">
<? require("$assemblies/schedule.phtml") ?>
2014-11-09 21:53:16 +00:00
</div>
<? endif ?>
<? if($room->hasFeedback()): ?>
2015-03-01 10:17:27 +00:00
<div role="tabpanel" class="tab-pane" id="feedback">
<? require("$assemblies/feedback.phtml") ?>
2015-02-27 16:21:51 +00:00
</div>
<? endif ?>
</div>
</div>