From af697567987abba8c9f37dcfadda20e5d90cad65 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 10 Jul 2008 16:05:08 +0000 Subject: elgg_view_title can now suppress the submenu git-svn-id: https://code.elgg.org/elgg/trunk@1393 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/page_elements/title.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'views') diff --git a/views/default/page_elements/title.php b/views/default/page_elements/title.php index 74bd16a9d..e2e397aea 100644 --- a/views/default/page_elements/title.php +++ b/views/default/page_elements/title.php @@ -25,14 +25,14 @@ $display = "
"; $display .= "
" . $icon . "
"; $display .= "
" . $info . "
"; - if (!empty($submenu)) + if (!empty($submenu) && $vars['submenu'] == true) $display .= "
" . $submenu . "
"; // plugins can extend this to add menu options $display .= "
"; } else { $info = "

" . $vars['title'] . "

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