From 02655718a299fd4cd4e54faca34e4d312ea4f216 Mon Sep 17 00:00:00 2001 From: Gabor Hojtsy Date: Thu, 7 Aug 2003 11:12:44 +0000 Subject: [PATCH] Add credits page syles to the sitewide CSS rules, and move the credits page to the new CSS based layout... --- credits.php | 37 +++++++++++++------------------------ sitewide.css | 19 +++++++++++++++++++ 2 files changed, 32 insertions(+), 24 deletions(-) diff --git a/credits.php b/credits.php index cc8d5b22b..5e82913fc 100644 --- a/credits.php +++ b/credits.php @@ -3,32 +3,21 @@ $_SERVER['BASE_PAGE'] = 'credits.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; -// Output buffering supported -if (function_exists('ob_start')) { - - // Put credits information to $credits - ob_start(); - phpcredits(); - $credits = ob_get_contents(); - ob_end_clean(); +// Put credits information to $credits +ob_start(); +phpcredits(); +$credits = ob_get_contents(); +ob_end_clean(); - // Strip all but the body - preg_match('!(.*)!ims', $credits, $m); +// Strip all but the body and drop styles +preg_match('!(.*)!ims', $credits, $m); +$credits = preg_replace('!.*!ims', '', $m[1]); - // Strip out any style - $credits = preg_replace('!.*!ims', '', $m[1]); - - // If there is something left, print it out - if ($credits) { - commonHeader("Credits"); - echo $credits; - commonFooter(); - } -} - -// No output buffer support, standard credits page -else { - phpcredits(); +// If there is something left, print it out +if ($credits) { + site_header("Credits"); + echo $credits; + site_footer(); } ?> diff --git a/sitewide.css b/sitewide.css index 1ad4a411a..82fd266aa 100644 --- a/sitewide.css +++ b/sitewide.css @@ -111,3 +111,22 @@ h1 { font-size: 75%; text-decoration: none; } + +/* Credits page styles ---------------------------------------------------- */ +.e { + background-color: #ccccff; + color: inherit; + font-weight: bold; +} +.h { + background-color: #9999cc; + color: inherit; + font-weight: bold; +} +.v, .vr { + background-color: #cccccc; + color: inherit; +} +.vr { + text-align: right; +}