diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-01-26 19:05:21 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-01-26 19:05:21 +0000 |
commit | 667022830ee203a5779ca44d82e2a9d93a1b21f8 (patch) | |
tree | 25e32f751a772e033f68b6be0c563169339c60fb /themes/chameleon | |
parent | a2055ae9d9b28b011d4c8253eee7eaa4240b2f2a (diff) | |
download | brdo-667022830ee203a5779ca44d82e2a9d93a1b21f8.tar.gz brdo-667022830ee203a5779ca44d82e2a9d93a1b21f8.tar.bz2 |
- Patch 5140 by Moshe: removed the theme("header") and theme("footer") functions.
Diffstat (limited to 'themes/chameleon')
-rw-r--r-- | themes/chameleon/chameleon.theme | 40 |
1 files changed, 23 insertions, 17 deletions
diff --git a/themes/chameleon/chameleon.theme b/themes/chameleon/chameleon.theme index 0bb52adb0..c9f2ada39 100644 --- a/themes/chameleon/chameleon.theme +++ b/themes/chameleon/chameleon.theme @@ -32,7 +32,13 @@ function chameleon_settings() { return $output; } -function chameleon_header($title = "") { +function chameleon_page($content, $title = NULL, $breadcrumb = NULL) { + if (isset($title)) { + drupal_set_title($title); + } + if (isset($breadcrumb)) { + drupal_set_breadcrumb($breadcrumb); + } $output = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n"; $output .= "<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\" xml:lang=\"en\">\n"; @@ -70,6 +76,22 @@ function chameleon_header($title = "") { $output .= "<strong>". t("Status") ."</strong>: $message<hr />"; } + $output .= "\n<!-- begin content -->\n"; + $output .= $content; + $output .= "\n<!-- end content -->\n"; + + $output .= " </td>\n"; + + if ($blocks = theme_blocks("right")) { + $output .= " <td id=\"sidebar-right\">$blocks</td>\n"; + } + + $output .= " </tr>\n"; + $output .= " </table>\n"; + $output .= theme_closure(); + $output .= " </body>\n"; + $output .= "</html>\n"; + return $output; } @@ -121,20 +143,4 @@ function chameleon_comment($comment, $link = "") { return $output; } -function chameleon_footer() { - - $output = " </td>\n"; - - if ($blocks = theme_blocks("right")) { - $output .= " <td id=\"sidebar-right\">$blocks</td>\n"; - } - - $output .= " </tr>\n"; - $output .= " </table>\n"; - $output .= theme_closure(); - $output .= " </body>\n"; - $output .= "</html>\n"; - - return $output; -} ?> |