From 5a9c77e8e1f67e886c128ae014722a14b0818535 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 2 Dec 2001 21:46:12 +0000 Subject: - Display the current node's title in the -tag. --- themes/marvin/marvin.theme | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'themes') 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; ?> @@ -27,7 +27,12 @@ <?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", ""); + } ?>