aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies
diff options
context:
space:
mode:
authorMaZderMind2015-03-01 13:01:15 +0100
committerMaZderMind2015-03-01 13:01:15 +0100
commit911e7ac836aa61641c90e3bdb10b96c614b2aa2f (patch)
tree0ed467dfd4f27327ab422ec9f7a9ea24ccfc50b3 /template/assemblies
parent787b5b657f6fa3251f8b0b4a770784f0ddaed407 (diff)
program view
Diffstat (limited to 'template/assemblies')
-rw-r--r--template/assemblies/program.phtml16
1 files changed, 9 insertions, 7 deletions
diff --git a/template/assemblies/program.phtml b/template/assemblies/program.phtml
index 496fa83..ce69c51 100644
--- a/template/assemblies/program.phtml
+++ b/template/assemblies/program.phtml
@@ -4,16 +4,16 @@ foreach(reset($program) as $event)
$width += $event['duration'];
?>
-<div class="program scroll-container" data-offset="<?=h($GLOBALS['CONFIG']['SCHEDULE_OFFSET'])?>">
+<div class="program scroll-container">
<div class="scroll-element">
<div class="now"><span>now</span></div>
<? foreach($program as $name => $events): ?>
- <div class="room <? if($name == $room): ?>highlight<? endif ?>" style="width: <?=$width * $GLOBALS['CONFIG']['SCHEDULE_SCALE'] ?>px">
+ <div class="room <? if($name == get("ROOMS.$room.SCHEDULE_NAME", $room)): ?>highlight<? endif ?>" style="width: <?=$width / get('SCHEDULE.SCALE')?>px">
<? foreach($events as $event): ?>
<div
class="block <?=h(@$event['special'] ?: 'event')?>"
- style="width: <?=h($event['duration'] * $GLOBALS['CONFIG']['SCHEDULE_SCALE'])?>px"
+ style="width: <?=h($event['duration'] / get('SCHEDULE.SCALE'))?>px"
data-start="<?=intval($event['start'])?>"
data-end="<?=intval($event['end'])?>"
>
@@ -32,15 +32,17 @@ foreach(reset($program) as $event)
<? else: ?>
<h4><?=h(strftime('%H:%M', $event['start']))?>
- &nbsp;&ndash;&nbsp;
+ &ndash;
<?=h(strftime('%H:%M', $event['end']))?>
&nbsp;in&nbsp;
- <?=h($GLOBALS['CONFIG']['ROOMS'][$name])?>
+ <a href="<?=h(link_player($room))?>">
+ <?=h(get("ROOMS.$room.DISPLAY"))?>
+ </a>
</h4>
<h3>
<a
- href="<?=h(link_player($name))?>"
- title="Switch to <?=h($GLOBALS['CONFIG']['ROOMS'][$name])?>"
+ href="<?=h(link_player($room))?>"
+ title="Switch to <?=h(get("ROOMS.$room.DISPLAY"))?>"
><?=h($event['title'])?></a>
</h3>
<h5>by&nbsp;<?=h($event['speaker'])?></h5>