aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-10 09:31:56 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-10 09:31:56 +0000
commit8f038a7b45525537345245123252f8fb2a94b801 (patch)
tree8b4e93148f2c66d96196a38743a4c813ba56d461
parent370bd44782258ca90e45672243da5808f362aab6 (diff)
downloadelgg-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
-rw-r--r--views/default/page_elements/title.php6
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>";
}