diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-12-02 21:46:12 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-12-02 21:46:12 +0000 |
commit | 5a9c77e8e1f67e886c128ae014722a14b0818535 (patch) | |
tree | ca76d10d834bba56cf8615cd9e7053415a8bb8ed | |
parent | cd58e22e3e7bbda2600165db563976e54c83194f (diff) | |
download | brdo-5a9c77e8e1f67e886c128ae014722a14b0818535.tar.gz brdo-5a9c77e8e1f67e886c128ae014722a14b0818535.tar.bz2 |
- Display the current node's title in the <title></title>-tag.
-rw-r--r-- | node.php | 8 | ||||
-rw-r--r-- | themes/marvin/marvin.theme | 9 |
2 files changed, 11 insertions, 6 deletions
@@ -19,7 +19,7 @@ function node_render($node) { break; case t("Post comment"): comment_post($edit); - $theme->header(); + $theme->header(check_output($node->title)); node_view($node); comment_render($edit[id], $cid); $theme->footer(); @@ -36,20 +36,20 @@ function node_render($node) { break; case t("Update settings"): comment_settings(check_query($mode), check_query($order), check_query($threshold)); - $theme->header(); + $theme->header(check_output($node->title)); node_view($node); comment_render($id, $cid); $theme->footer(); break; case t("Update ratings"): comment_moderate($moderate["comment"]); - $theme->header(); + $theme->header(check_output($node->title)); node_view($node); comment_render($id, $cid); $theme->footer(); break; default: - $theme->header(); + $theme->header(check_output($node->title)); node_view($node); comment_render($id, $cid); $theme->footer(); diff --git a/themes/marvin/marvin.theme b/themes/marvin/marvin.theme index 37f9211da..774a25399 100644 --- a/themes/marvin/marvin.theme +++ b/themes/marvin/marvin.theme @@ -18,7 +18,7 @@ var $foreground = "#000000"; var $background = "#EAEAEA"; - function header() { + function header($title = 0) { global $HTTP_USER_AGENT; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> @@ -27,7 +27,12 @@ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title> <?php - print variable_get("site_name", "drupal") ." - ". variable_get("site_slogan", ""); + if ($title) { + print variable_get("site_name", "drupal") ." - $title"; + } + else { + print variable_get("site_name", "drupal") ." - ". variable_get("site_slogan", ""); + } ?> </title> <style type="text/css"> |