diff options
author | MaZderMind | 2015-03-30 21:18:09 +0200 |
---|---|---|
committer | MaZderMind | 2015-03-30 21:18:09 +0200 |
commit | fc4cf5793cbe6561347067eb7b25c60a6fc50f77 (patch) | |
tree | 357e60e443244c3438e3a3d692c91868363712f0 /template/assemblies/schedule.phtml | |
parent | f7d9d592745d1cb5cb2de76ed6ae99be974f1807 (diff) |
Rename program to schedule
Diffstat (limited to 'template/assemblies/schedule.phtml')
-rw-r--r-- | template/assemblies/schedule.phtml | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/template/assemblies/schedule.phtml b/template/assemblies/schedule.phtml new file mode 100644 index 0000000..d2bb9e6 --- /dev/null +++ b/template/assemblies/schedule.phtml @@ -0,0 +1,59 @@ +<div class="schedule scroll-container"> + <div class="scroll-element"> + <div class="now"><span>now</span></div> + <? foreach($schedule->getSchedule() as $roomname => $events): ?> + <div class="room <? if($roomname == $room->getSlug()): ?>highlight<? endif ?>" style="width: <?=ceil($schedule->getDurationSum() / $schedule->getScale())?>px"> + <? foreach($events as $event): ?> + <div + class="block <?=h(@$event['special'] ?: 'event')?>" + style="width: <?=h(round($event['duration'] / $schedule->getScale()))?>px" + data-start="<?=intval($event['start'])?>" + data-end="<?=intval($event['end'])?>" + > + <? if(@$event['special'] == 'daychange'): ?> + + <h3><?=h($event['title'])?></h3> + + <? elseif(@$event['special'] == 'gap'): ?> + + <!--h3>Gap</h3--> + + <? elseif(@$event['special'] == 'pause'): ?> + + <h3><?=h($event['title'])?></h3> + + <? else: ?> + + <h4><?=h(strftime('%H:%M', $event['start']))?> + – + <?=h(strftime('%H:%M', $event['end']))?> + in + <? /*if(has("ROOMS.$roomname")): ?> + <a href="<?=h(link_player($roomname))?>"> + <?=h(get("ROOMS.$roomname.DISPLAY"))?> + </a> + <? else:*/ ?> + <?=h($roomname) ?> + <? /*endif*/ ?> + </h4> + <h3> + <? /*if(has("ROOMS.$roomname")): ?> + <a + href="<?=h(link_player($roomname))?>" + title="Switch to <?=h(get("ROOMS.$roomname.DISPLAY"))?>" + ><?=h($event['title'])?></a> + <? else:*/ ?> + <?=h($event['title'])?> + <? /*endif*/ ?> + </h3> + <? if($event['speaker']): ?> + <h5>by <?=h($event['speaker'])?></h5> + <? endif ?> + <? endif ?> + </div> + + <? endforeach ?> + </div> + <? endforeach ?> + </div> +</div> |