From 05def0b596a06ce9256ea47e415fd128019280b2 Mon Sep 17 00:00:00 2001 From: nickw Date: Tue, 4 May 2010 16:23:15 +0000 Subject: Extending topbar view to include My Friends link. git-svn-id: http://code.elgg.org/elgg/trunk@5968 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/start.php | 1 + mod/profile/views/default/profile/topbar_extend.php | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 mod/profile/views/default/profile/topbar_extend.php (limited to 'mod') diff --git a/mod/profile/start.php b/mod/profile/start.php index 1b47445d7..f83f10869 100644 --- a/mod/profile/start.php +++ b/mod/profile/start.php @@ -23,6 +23,7 @@ function profile_init() { register_entity_url_handler('profile_url', 'user', 'all'); // Set up the menu for logged-in users + elgg_extend_view('elgg_topbar/extend', 'profile/topbar_extend'); //if (isloggedin()) { // add_menu(elgg_echo('profile:yours'), $_SESSION['user']->getURL() . '/extend'); //} diff --git a/mod/profile/views/default/profile/topbar_extend.php b/mod/profile/views/default/profile/topbar_extend.php new file mode 100644 index 000000000..c1c4e13bb --- /dev/null +++ b/mod/profile/views/default/profile/topbar_extend.php @@ -0,0 +1,11 @@ +guid > 0)) { + $friends = elgg_echo('friends'); + echo "username}\" title=\"$friends\">$friends"; +} -- cgit v1.2.3