aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/assemblies/schedule.phtml61
1 files changed, 32 insertions, 29 deletions
diff --git a/template/assemblies/schedule.phtml b/template/assemblies/schedule.phtml
index b749e0b..2d5fc21 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>
+
+ <? else: ?>
- <? $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: ?>
+ <h4><?=h(strftime('%H:%M', $event['start']))?>
+ &ndash;
+ <?=h(strftime('%H:%M', $event['end']))?>
+ &nbsp;in&nbsp;
<?=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: ?>
+ </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>