aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies/schedule.phtml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--template/assemblies/schedule.phtml63
1 files changed, 33 insertions, 30 deletions
diff --git a/template/assemblies/schedule.phtml b/template/assemblies/schedule.phtml
index b749e0b..b47f30d 100644
--- a/template/assemblies/schedule.phtml
+++ b/template/assemblies/schedule.phtml
@@ -10,46 +10,49 @@
data-start="<?=intval($event['start'])?>"
data-end="<?=intval($event['end'])?>"
>
- <? if(@$event['special'] == 'daychange'): ?>
+ <? $scheduleRoom = Room::createIfExists($roomname) ?>
+ <? if($scheduleRoom): ?>
+ <a
+ class="inner"
+ href="<?=h($scheduleRoom->createTabObject()->getLink($roomname))?>"
+ title="Switch to <?=h($scheduleRoom->getDisplay())?>"
+ >
+ <? else: ?>
+ <div class="inner">
+ <? endif ?>
- <h3><?=h($event['title'])?></h3>
+ <? if(@$event['special'] == 'daychange'): ?>
- <? elseif(@$event['special'] == 'gap'): ?>
+ <h3><?=h($event['title'])?></h3>
- <!--h3>Gap</h3-->
+ <? elseif(@$event['special'] == 'gap'): ?>
- <? elseif(@$event['special'] == 'pause'): ?>
+ <!--h3>Gap</h3-->
- <h3><?=h($event['title'])?></h3>
+ <? elseif(@$event['special'] == 'pause'): ?>
- <? else: ?>
+ <h3><?=h($event['title'])?></h3>
- <? $scheduleRoom = Room::createIfExists($roomname) ?>
- <h4><?=h(strftime('%H:%M', $event['start']))?>
- &ndash;
- <?=h(strftime('%H:%M', $event['end']))?>
- &nbsp;in&nbsp;
- <? if($scheduleRoom): ?>
- <a href="<?=h($scheduleRoom->createTabObject()->getLink($roomname))?>">
- <?=h($scheduleRoom->getDisplay())?>
- </a>
- <? else: ?>
- <?=h($roomname) ?>
- <? endif ?>
- </h4>
- <h3>
- <? if($scheduleRoom): ?>
- <a
- href="<?=h($scheduleRoom->createTabObject()->getLink($roomname))?>"
- title="Switch to <?=h($scheduleRoom->getDisplay())?>"
- ><?=h($event['title'])?></a>
- <? else: ?>
+ <? else: ?>
+
+ <h4><?=h(strftime('%H:%M', $event['start']))?>
+ &ndash;
+ <?=h(strftime('%H:%M', $event['end']))?>
+ &nbsp;in&nbsp;
+ <?=h($scheduleRoom->getDisplay()) ?>
+ </h4>
+ <h3>
<?=h($event['title'])?>
+ </h3>
+ <? if($event['speaker']): ?>
+ <h5>by&nbsp;<?=h($event['speaker'])?></h5>
<? endif ?>
- </h3>
- <? if($event['speaker']): ?>
- <h5>by&nbsp;<?=h($event['speaker'])?></h5>
<? endif ?>
+
+ <? if($scheduleRoom): ?>
+ </a>
+ <? else: ?>
+ </div>
<? endif ?>
</div>