From 5704413298c15cb05e0a55dbaff0274da01ef39a Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Fri, 7 Nov 2014 00:11:21 +0100 Subject: program snimation & styling --- template/assemblies/program.phtml | 50 ++++++++++++++++++++++----------------- template/page.phtml | 1 + 2 files changed, 29 insertions(+), 22 deletions(-) (limited to 'template') diff --git a/template/assemblies/program.phtml b/template/assemblies/program.phtml index 9575d8c..6eb418a 100644 --- a/template/assemblies/program.phtml +++ b/template/assemblies/program.phtml @@ -1,38 +1,44 @@ -$room = 'Grossbaustelle BER'; -foreach($program[$room] as $event) -{ - $width += intval(isset($event['duration']) ? $event['duration'] : 5); -} +foreach(reset($program) as $event) + $width += $event['duration']; + ?> +