From: Joey Schulze Date: Mon, 28 Jul 2008 16:29:51 +0000 (+0000) Subject: Improve layout for the front page, use CSS instead of HTML X-Git-Url: https://git.infodrom.org/?p=infodrom.org%2Foldenburg.linux.de;a=commitdiff_plain;h=b77e1284b24bc508652db04ab570bd9a6d25cc7b Improve layout for the front page, use CSS instead of HTML --- diff --git a/src/index.wml b/src/index.wml index 529b3eb..ad7a71e 100644 --- a/src/index.wml +++ b/src/index.wml @@ -15,10 +15,10 @@ function next_date() global $max_days; global $datedb; - $head = '

%s

'; - $head .= ''; + $head = '

%s

'; + $head .= '
WannWasWo
'; $foot = '
WannWasWo
'; - $row = '%s%s%s'; + $row = '%s%s%s'; $pivot = time() + 60*60*24*$max_days; $now = mktime(0,0,0, date('m'), date('d'), date('Y')); @@ -49,10 +49,10 @@ function next_date() if ($when == $now) { $date = 'heute, ' . $match[4].''; - $color = ' bgcolor="#ffff00"'; + $class = 'today'; } else { $date = strftime("%e.%m.%y", $when) . ', ' . $match[4]; - $color = ''; + $class = ($class == 'row0'?'row1':'row0'); } if (empty($match[7])) @@ -60,7 +60,7 @@ function next_date() else $what = ''.$match[5].''; - printf($row, $color, $date, $what, $match[6]); + printf($row, $class, $date, $what, $match[6]); } } echo $foot;