aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/views/default
diff options
context:
space:
mode:
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-04 16:23:15 +0000
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-04 16:23:15 +0000
commit05def0b596a06ce9256ea47e415fd128019280b2 (patch)
tree8b4a94cec0d4fbf37ecb194f71a0f6f1b3961aeb /mod/profile/views/default
parent8e56ebfaa05eb987e65bbff91aae268c479301de (diff)
downloadelgg-05def0b596a06ce9256ea47e415fd128019280b2.tar.gz
elgg-05def0b596a06ce9256ea47e415fd128019280b2.tar.bz2
Extending topbar view to include My Friends link.
git-svn-id: http://code.elgg.org/elgg/trunk@5968 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/views/default')
-rw-r--r--mod/profile/views/default/profile/topbar_extend.php11
1 files changed, 11 insertions, 0 deletions
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 @@
+<?php
+/**
+ *
+ */
+
+$user = get_loggedin_user();
+
+if (($user instanceof ElggUser) && ($user->guid > 0)) {
+ $friends = elgg_echo('friends');
+ echo "<a class='myfriends' href=\"{$vars['url']}pg/friends/{$user->username}\" title=\"$friends\">$friends</a>";
+}