From 60c1387a16ea4944674b0c9da2273158d1fbf0b4 Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 22 Aug 2010 23:15:43 +0000 Subject: Merged r6757:6810 from 1.7 branch into trunk git-svn-id: http://code.elgg.org/elgg/trunk@6850 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/page_elements/title.php | 33 +++++++-------------------------- 1 file changed, 7 insertions(+), 26 deletions(-) (limited to 'views/default/page_elements/title.php') diff --git a/views/default/page_elements/title.php b/views/default/page_elements/title.php index c89371013..a340e7a09 100644 --- a/views/default/page_elements/title.php +++ b/views/default/page_elements/title.php @@ -5,37 +5,18 @@ */ $page_owner = page_owner(); -$page_owner_user = get_entity($page_owner); +$page_owner_entity = get_entity($page_owner); -$submenu = get_submenu(); // elgg_view('canvas_header/submenu'); +$display = "

" . $vars['title'] . "

"; + +$submenu = get_submenu(); if (!empty($submenu)) { $submenu = ""; } -if (($_SESSION['guid']) && ($page_owner && $page_owner_user->guid != $_SESSION['user']->getGUID())) { - $info = "

" . $vars['title'] . "

"; - if($page_owner_user instanceOf ElggGroup) { - $display = $info; - } else { - $display = $info; - } - if (!empty($submenu) && $vars['submenu'] == true) { - // plugins can extend this to add menu options - $display .= $submenu; - } -} else { - $info = "

" . $vars['title'] . "

"; - if($page_owner_user instanceOf ElggGroup) { - $display = $info; - } else { - $display = $info; - } - if (!empty($submenu) && $vars['submenu'] == true) { - // plugins can extend this to add menu options - $display .= $submenu; - } +if (!empty($submenu) && $vars['submenu'] == true) { + // plugins can extend this to add menu options + $display .= $submenu; } - -//print to screen echo $display; \ No newline at end of file -- cgit v1.2.3