diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-09 16:59:00 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-09 16:59:00 +0000 |
commit | c94eb1a1cc386d58980357c63300e3479487f475 (patch) | |
tree | 2bd890a21456cec120794ef10710129988302477 /views/default/page_elements/title.php | |
parent | 55bc92537a7bd0fde6e860551ee70edd4fae34a3 (diff) | |
download | elgg-c94eb1a1cc386d58980357c63300e3479487f475.tar.gz elgg-c94eb1a1cc386d58980357c63300e3479487f475.tar.bz2 |
Introducing the submenu
git-svn-id: https://code.elgg.org/elgg/trunk@1371 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/page_elements/title.php')
-rw-r--r-- | views/default/page_elements/title.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/views/default/page_elements/title.php b/views/default/page_elements/title.php index aa1946514..aac3babae 100644 --- a/views/default/page_elements/title.php +++ b/views/default/page_elements/title.php @@ -16,19 +16,22 @@ $page_owner = page_owner();
$page_owner_user = get_user($page_owner);
+ $submenu = get_submenu(); // elgg_view('canvas_header/submenu');
+ if (!empty($submenu)) $submenu = "<ul>" . $submenu . "</ul>";
+
if($page_owner && $page_owner_user->guid != $_SESSION['user']->getGUID()) {
$info = "<h2>" . $vars['title'] . "</h2>";
$icon = elgg_view("profile/icon",array('entity' => $page_owner_user, 'size' => 'tiny'));
$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\">" . elgg_view("canvas_header/submenu") . "</div>"; // plugins can extend this to add menu options
+ $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\">" . elgg_view("canvas_header/submenu") . "</div>"; // plugins can extend this to add menu options
+ $display .= "<div id=\"canvas_header_submenu\">" . $submenu . "</div>"; // plugins can extend this to add menu options
$display .= "</div>";
}
|