diff options
author | MaZderMind | 2015-03-01 13:01:15 +0100 |
---|---|---|
committer | MaZderMind | 2015-03-01 13:01:15 +0100 |
commit | 911e7ac836aa61641c90e3bdb10b96c614b2aa2f (patch) | |
tree | 0ed467dfd4f27327ab422ec9f7a9ea24ccfc50b3 /template | |
parent | 787b5b657f6fa3251f8b0b4a770784f0ddaed407 (diff) |
program view
Diffstat (limited to '')
-rw-r--r-- | template/assemblies/program.phtml | 16 | ||||
-rw-r--r-- | template/page.phtml | 2 |
2 files changed, 10 insertions, 8 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']))?> - – + – <?=h(strftime('%H:%M', $event['end']))?> in - <?=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 <?=h($event['speaker'])?></h5> diff --git a/template/page.phtml b/template/page.phtml index 2815c77..bebc64b 100644 --- a/template/page.phtml +++ b/template/page.phtml @@ -57,7 +57,7 @@ <? include("$assemblies/footer.phtml") ?> <span class="js-settings" - data-scheduleoffset="<?=h(get('SCHEDULE.OFFSET', 0))?>" + data-scheduleoffset="<?=h(get('SCHEDULE.SIMULATE_OFFSET', 0))?>" ></span> </body> </html> |