diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-12-22 11:45:04 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-12-22 11:45:04 +0000 |
commit | 1c03a576840011a14d2e07de3d94de477ff3dfb9 (patch) | |
tree | f82de7dc788a0ad0366f816bdf343e83e58bb5da | |
parent | 1080e6c04bf69f109a3081142425e85c07868b7a (diff) | |
download | brdo-1c03a576840011a14d2e07de3d94de477ff3dfb9.tar.gz brdo-1c03a576840011a14d2e07de3d94de477ff3dfb9.tar.bz2 |
- Don't display the title when there is no title.
-rw-r--r-- | themes/marvin/marvin.theme | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/themes/marvin/marvin.theme b/themes/marvin/marvin.theme index 91f0a6b6d..404e692d3 100644 --- a/themes/marvin/marvin.theme +++ b/themes/marvin/marvin.theme @@ -22,8 +22,8 @@ function marvin_header() { $output .= theme_head($main); $output .= "<title>"; - if (drupal_get_title()) { - $output .= drupal_get_title() ." - ". variable_get("site_name", "drupal"); + if ($title = drupal_get_title()) { + $output .= "$title - ". variable_get("site_name", "drupal"); } else { $output .= variable_get("site_name", "drupal"); @@ -56,8 +56,11 @@ function marvin_header() { } $output .= " <td style=\"vertical-align: top; width: 85%;\">\n"; - $output .= theme("breadcrumb", drupal_get_breadcrumb()); - $output .= "<h2>" . drupal_get_title() . "</h2>"; + if ($title = drupal_get_title()) { + $output .= theme("breadcrumb", drupal_get_breadcrumb()); + $output .= "<h2>$title</h2>"; + } + if ($help = menu_get_active_help()) { $output .= "<small>$help</small><hr />"; } |