diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-09-11 15:17:49 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-09-11 15:17:49 +0000 |
commit | 3f61d1a354263bc3b30af243894c3b71942d5c2d (patch) | |
tree | cccb1db947cbe11bde4b3cbfd23be631b09dbfe6 | |
parent | d164384e62e756c128359ee39e1881290679ad90 (diff) | |
download | brdo-3f61d1a354263bc3b30af243894c3b71942d5c2d.tar.gz brdo-3f61d1a354263bc3b30af243894c3b71942d5c2d.tar.bz2 |
- adding doctype to basic theme.
- some minor changes to clean up var initialization.
-rw-r--r-- | includes/theme.inc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index 122e58948..146561014 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -19,6 +19,7 @@ class BaseTheme { } function header($title = "") { + $output = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"DTD/xhtml1-transitional.dtd\">\n"; $output .= "<html><head><title>". variable_get(site_name, "drupal") ."</title></head><body bgcolor=\"$this->background\" text=\"$this->foreground\">"; $output .= "<table border=\"0\" cellspacing=\"4\" cellpadding=\"4\"><tr><td valign=\"top\" width=\"170\">"; @@ -67,7 +68,7 @@ class BaseTheme { } function comment($comment, $link = 0) { - $output .= "<a name=\"$comment->cid\"></a>"; + $output = "<a name=\"$comment->cid\"></a>"; $output .= "<div style=\"border: 1px solid; padding: 10px;\">"; $output .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">"; $output .= " <tr><td><div style=\"font-size: 110%; font-weight: bold;\">". check_output($comment->subject) ."</div></td><td align=\"right\" rowspan=\"2\" valign=\"top\">". comment_moderation($comment) ."</td></tr>"; @@ -80,12 +81,12 @@ class BaseTheme { } function box($subject, $content, $region = "main") { - $output .= "<b>". check_output($subject) ."</b><br />". check_output($content) ."<p />"; + $output = "<b>". check_output($subject) ."</b><br />". check_output($content) ."<p />"; print $output; } function footer() { - $output .= "</td></tr></table>"; + $output = "</td></tr></table>"; $output .= "</body></html>"; print $output; } |