From 1fc8a18c2d74ec4ce5247b6abedddaadbcde3e34 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 29 May 2003 10:18:38 +0000 Subject: - Al's CSS patches. This commit improves the themability of some core components such as lists, form items, removes an ugly hack from the archive module and should fix the poll problem (although it doesn't Opera/Konqueror). --- includes/common.inc | 4 ++-- includes/theme.inc | 18 +++++++++++++----- 2 files changed, 15 insertions(+), 7 deletions(-) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index 35af870e2..80d842c03 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -427,7 +427,7 @@ function drupal_goto($url) { /* ** The "Location" header sends a REDIRECT status code to the http - ** deamon. In some cases this can go wrong, so we make sure none + ** daemon. In some cases this can go wrong, so we make sure none ** of the code /below/ gets executed when we redirect. */ @@ -773,7 +773,7 @@ function form($form, $method = "post", $action = 0, $options = 0) { } function form_item($title, $value, $description = 0) { - return "

". ($title ? "$title:
" : "") . $value . ($description ? "
$description" : "") ."

\n"; + return "
". ($title ? "
$title:
" : "") . $value . ($description ? "
$description
" : "") ."
\n"; } function form_radio($title, $name, $value = 1, $checked = 0, $description = 0) { diff --git a/includes/theme.inc b/includes/theme.inc index 2f1569b44..f85412621 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -99,17 +99,19 @@ function theme_item_list($items = array(), $title = NULL) { /* ** Return a formatted array of items. */ - + $output .= "
"; if (isset($title)) { - $output .= "$title
"; + $output .= "
$title
"; } if (isset($items)) { + $output .= ""; } - + $output .= "
"; return $output; } @@ -141,8 +143,14 @@ function theme_list($refresh = 0) { } function theme_head($main = 0) { + global $base_url; $head = module_invoke_all("head", $main); - return implode($head, "\n"); + $output .= "\n"; + $output .= "\n"; + $output .= implode($head, "\n"); + return $output; } /* -- cgit v1.2.3