diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-10 09:31:56 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-10 09:31:56 +0000 |
commit | 8f038a7b45525537345245123252f8fb2a94b801 (patch) | |
tree | 8b4e93148f2c66d96196a38743a4c813ba56d461 /views/default/page_elements | |
parent | 370bd44782258ca90e45672243da5808f362aab6 (diff) | |
download | elgg-8f038a7b45525537345245123252f8fb2a94b801.tar.gz elgg-8f038a7b45525537345245123252f8fb2a94b801.tar.bz2 |
The submenu div doesn't appear if there is no submenu.
git-svn-id: https://code.elgg.org/elgg/trunk@1384 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/page_elements')
-rw-r--r-- | views/default/page_elements/title.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/views/default/page_elements/title.php b/views/default/page_elements/title.php index aac3babae..74bd16a9d 100644 --- a/views/default/page_elements/title.php +++ b/views/default/page_elements/title.php @@ -25,13 +25,15 @@ $display = "<div id=\"canvas_header\">";
$display .= "<div id=\"canvas_header_icon\">" . $icon . "</div>";
$display .= "<div id=\"canvas_header_content\">" . $info . "</div>";
- $display .= "<div id=\"canvas_header_submenu\">" . $submenu . "</div>"; // plugins can extend this to add menu options
+ if (!empty($submenu))
+ $display .= "<div id=\"canvas_header_submenu\">" . $submenu . "</div>"; // plugins can extend this to add menu options
$display .= "</div>";
} else {
$info = "<h2>" . $vars['title'] . "</h2>";
$display = "<div id=\"canvas_header\">";
$display .= "<div id=\"canvas_header_content\">" . $info . "</div>";
- $display .= "<div id=\"canvas_header_submenu\">" . $submenu . "</div>"; // plugins can extend this to add menu options
+ if (!empty($submenu))
+ $display .= "<div id=\"canvas_header_submenu\">" . $submenu . "</div>"; // plugins can extend this to add menu options
$display .= "</div>";
}
|