aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorMaZderMind2015-03-30 21:40:22 +0200
committerMaZderMind2015-03-30 21:40:22 +0200
commite6b64e9ef4ba03ee9cf8ea0dbf575c6979c79a45 (patch)
treea0281d137ddaef7e500d63a1b134a8d959886ed1 /template
parent4d638aa9fb3081742bd85c9396e9204f36a5e9f2 (diff)
Link to Rooms
Diffstat (limited to 'template')
-rw-r--r--template/assemblies/schedule.phtml21
1 files changed, 11 insertions, 10 deletions
diff --git a/template/assemblies/schedule.phtml b/template/assemblies/schedule.phtml
index d2bb9e6..8d749ec 100644
--- a/template/assemblies/schedule.phtml
+++ b/template/assemblies/schedule.phtml
@@ -24,27 +24,28 @@
<? else: ?>
+ <? $scheduleRoom = Room::createIfExists($roomname) ?>
<h4><?=h(strftime('%H:%M', $event['start']))?>
&ndash;
<?=h(strftime('%H:%M', $event['end']))?>
&nbsp;in&nbsp;
- <? /*if(has("ROOMS.$roomname")): ?>
- <a href="<?=h(link_player($roomname))?>">
- <?=h(get("ROOMS.$roomname.DISPLAY"))?>
+ <? if($scheduleRoom): ?>
+ <a href="<?=h($scheduleRoom->createTabObject()->getLink($roomname))?>">
+ <?=h($scheduleRoom->getDisplay())?>
</a>
- <? else:*/ ?>
+ <? else: ?>
<?=h($roomname) ?>
- <? /*endif*/ ?>
+ <? endif ?>
</h4>
<h3>
- <? /*if(has("ROOMS.$roomname")): ?>
+ <? if($scheduleRoom): ?>
<a
- href="<?=h(link_player($roomname))?>"
- title="Switch to <?=h(get("ROOMS.$roomname.DISPLAY"))?>"
+ href="<?=h($scheduleRoom->createTabObject()->getLink($roomname))?>"
+ title="Switch to <?=h($scheduleRoom->getDisplay())?>"
><?=h($event['title'])?></a>
- <? else:*/ ?>
+ <? else: ?>
<?=h($event['title'])?>
- <? /*endif*/ ?>
+ <? endif ?>
</h3>
<? if($event['speaker']): ?>
<h5>by&nbsp;<?=h($event['speaker'])?></h5>