diff options
Diffstat (limited to '')
-rw-r--r-- | template/room.phtml | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/template/room.phtml b/template/room.phtml index 35e38a1..236ccc5 100644 --- a/template/room.phtml +++ b/template/room.phtml @@ -24,7 +24,12 @@ </div> <ul class="nav nav-functions nav-tabs nav-justified" role="tablist"> - <li class="active"> + <? if($room->hasSchedule()): ?> + <li class="active"> + <a href="#schedule" role="tab" data-toggle="tab">Fahrplan</a> + </li> + <? endif ?> + <li> <a href="#switcher" role="tab" data-toggle="tab">Formats</a> </li> <? if($room->hasChat()): ?> @@ -32,11 +37,6 @@ <a href="#chat" role="tab" data-toggle="tab">Chat</a> </li> <? endif ?> - <? if($room->hasSchedule()): ?> - <li> - <a href="#schedule" role="tab" data-toggle="tab">Fahrplan</a> - </li> - <? endif ?> <? if($room->hasFeedback()): ?> <li> <a href="#feedback" role="tab" data-toggle="tab">Feedback</a> @@ -50,7 +50,12 @@ </ul> <div class="functions-wrap tab-content"> - <div role="tabpanel" class="tab-pane active" id="switcher"> + <? if($room->hasSchedule()): ?> + <div role="tabpanel" class="tab-pane active" id="schedule"> + <? require("$assemblies/schedule.phtml") ?> + </div> + <? endif ?> + <div role="tabpanel" class="tab-pane" id="switcher"> <? require("$assemblies/switcher/".$stream->getPlayerType().".phtml") ?> </div> <? if($room->hasChat()): ?> @@ -58,11 +63,6 @@ <? 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") ?> |