mirror of
https://github.com/voc/streaming-website
synced 2024-11-14 16:37:18 +00:00
77 lines
2.2 KiB
PHTML
77 lines
2.2 KiB
PHTML
<div class="container <?=h($stream->getTab())?> <?=h($stream->getSelection())?> <?=h($stream->getLanguage())?>">
|
|
<div class="row headline">
|
|
<div class="col-xs-12">
|
|
<h1 data-room="<?=h($room->getDisplay())?>"><?=h($stream->getDisplay())?></h1>
|
|
</div>
|
|
</div>
|
|
|
|
<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>
|
|
|
|
<div class="player-wrap tab-content">
|
|
<div role="tabpanel" class="tab-pane active">
|
|
<? require("$assemblies/player/".$stream->getPlayerType().".phtml") ?>
|
|
</div>
|
|
</div>
|
|
|
|
<ul class="nav nav-functions nav-tabs nav-justified" role="tablist">
|
|
<li class="active">
|
|
<a href="#switcher" role="tab" data-toggle="tab">Formats</a>
|
|
</li>
|
|
<? if($room->hasChat()): ?>
|
|
<li>
|
|
<a href="#chat" role="tab" data-toggle="tab">Chat</a>
|
|
</li>
|
|
<? endif ?>
|
|
<? if($room->hasSchedule()): ?>
|
|
<li>
|
|
<a href="#schedule" role="tab" data-toggle="tab">Schedule</a>
|
|
</li>
|
|
<? endif ?>
|
|
<? if($room->hasFeedback()): ?>
|
|
<li>
|
|
<a href="#feedback" role="tab" data-toggle="tab">Feedback</a>
|
|
</li>
|
|
<? endif ?>
|
|
<? if($room->hasEmbed()): ?>
|
|
<li>
|
|
<a href="#embed" role="tab" data-toggle="tab">Embed</a>
|
|
</li>
|
|
<? endif ?>
|
|
</ul>
|
|
|
|
<div class="functions-wrap tab-content">
|
|
<div role="tabpanel" class="tab-pane active" id="switcher">
|
|
<? require("$assemblies/switcher/".$stream->getPlayerType().".phtml") ?>
|
|
</div>
|
|
<? if($room->hasChat()): ?>
|
|
<div role="tabpanel" class="tab-pane" id="chat">
|
|
<? require("$assemblies/chat.phtml") ?>
|
|
</div>
|
|
<? endif ?>
|
|
<? if($room->hasSchedule()): ?>
|
|
<div role="tabpanel" class="tab-pane" id="schedule">
|
|
<? require("$assemblies/schedule.phtml") ?>
|
|
</div>
|
|
<? endif ?>
|
|
<? if($room->hasFeedback()): ?>
|
|
<div role="tabpanel" class="tab-pane" id="feedback">
|
|
<? require("$assemblies/feedback.phtml") ?>
|
|
</div>
|
|
<? endif ?>
|
|
<? if($room->hasEmbed()): ?>
|
|
<div role="tabpanel" class="tab-pane" id="embed">
|
|
<? require("$assemblies/embed-form.phtml") ?>
|
|
</div>
|
|
<? endif ?>
|
|
</div>
|
|
</div>
|