diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-09-18 14:03:08 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-09-18 14:03:08 +0000 |
commit | 796a70de15b74d8df0bb02dea643dd024d2f7161 (patch) | |
tree | 4d4cead37ffdbff0aaad672bc0909fe4127ba86a | |
parent | ac39d41053169e5199c2e807df80129ea96039db (diff) | |
download | brdo-796a70de15b74d8df0bb02dea643dd024d2f7161.tar.gz brdo-796a70de15b74d8df0bb02dea643dd024d2f7161.tar.bz2 |
- XHTML fixes in the base theme. Patch by Chris Johnson.
-rw-r--r-- | includes/theme.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index b087b8f83..5f5c69c49 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -21,8 +21,9 @@ class BaseTheme { function header($title = "") { global $base_url; - $output = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"DTD/xhtml1-transitional.dtd\">\n"; - $output .= "<html><head><title>". $title ? $title : variable_get(site_name, "drupal") ."</title>"; + $output = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"; + $output = "<html xmlns=\"http://www.w3.org/1999/xhtml\">"; + $output .= "<head><title>". $title ? $title : variable_get(site_name, "drupal") ."</title>"; $output .= theme_head($main); $output .= "</head><body style=\"background-color: $this->background; color: $this->foreground;\"". theme_onload_attribute(). "\">"; $output .= "<table border=\"0\" cellspacing=\"4\" cellpadding=\"4\"><tr><td style=\"vertical-align: top; width: 170px;\">"; |