diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-05-29 10:18:38 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-05-29 10:18:38 +0000 |
commit | 1fc8a18c2d74ec4ce5247b6abedddaadbcde3e34 (patch) | |
tree | 746f550c09c4a827c859d32384b055e35db1fcd0 /includes/theme.inc | |
parent | f7e11d3bb763d0f8c3b0551b7f5848f72c557ac0 (diff) | |
download | brdo-1fc8a18c2d74ec4ce5247b6abedddaadbcde3e34.tar.gz brdo-1fc8a18c2d74ec4ce5247b6abedddaadbcde3e34.tar.bz2 |
- 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).
Diffstat (limited to 'includes/theme.inc')
-rw-r--r-- | includes/theme.inc | 18 |
1 files changed, 13 insertions, 5 deletions
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 .= "<div class=\"item-list\">"; if (isset($title)) { - $output .= "<b>$title</b><br />"; + $output .= "<div class=\"title\">$title</div>"; } if (isset($items)) { + $output .= "<ul>"; foreach ($items as $item) { - $output .= "- $item<br />"; + $output .= "<li>$item</li>"; } + $output .= "</ul>"; } - + $output .= "</div>"; 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 .= "<base href=\"$base_url/\" />\n"; + $output .= "<style type=\"text/css\">\n"; + $output .= "@import url(misc/drupal.css);\n"; + $output .= "</style>\n"; + $output .= implode($head, "\n"); + return $output; } /* |