From 8f038a7b45525537345245123252f8fb2a94b801 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 10 Jul 2008 09:31:56 +0000 Subject: 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 --- views/default/page_elements/title.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'views') 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 = "
"; $display .= "
" . $icon . "
"; $display .= "
" . $info . "
"; - $display .= "
" . $submenu . "
"; // plugins can extend this to add menu options + if (!empty($submenu)) + $display .= "
" . $submenu . "
"; // plugins can extend this to add menu options $display .= "
"; } else { $info = "

" . $vars['title'] . "

"; $display = "
"; $display .= "
" . $info . "
"; - $display .= "
" . $submenu . "
"; // plugins can extend this to add menu options + if (!empty($submenu)) + $display .= "
" . $submenu . "
"; // plugins can extend this to add menu options $display .= "
"; } -- cgit v1.2.3