aboutsummaryrefslogtreecommitdiff
path: root/views/default/page_elements/elgg_topbar.php
diff options
context:
space:
mode:
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-16 16:59:51 +0000
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-16 16:59:51 +0000
commit741808bdf03d09c3e5c2ac3865451fade409d892 (patch)
tree3487469bb7ba3f03535b43e60ec6086e8822c61f /views/default/page_elements/elgg_topbar.php
parent4b7edf24875b66b576e595f0eab9e8d87688f2a3 (diff)
downloadelgg-741808bdf03d09c3e5c2ac3865451fade409d892.tar.gz
elgg-741808bdf03d09c3e5c2ac3865451fade409d892.tar.bz2
Friends link removed from primary nav and added to top toolbar.
git-svn-id: http://code.elgg.org/elgg/trunk@5778 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/page_elements/elgg_topbar.php')
-rw-r--r--views/default/page_elements/elgg_topbar.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/views/default/page_elements/elgg_topbar.php b/views/default/page_elements/elgg_topbar.php
index 7db5940cd..c59360a3a 100644
--- a/views/default/page_elements/elgg_topbar.php
+++ b/views/default/page_elements/elgg_topbar.php
@@ -21,8 +21,14 @@
// enable elgg topbar extending
echo elgg_view('elgg_topbar/extend', $vars);
+
+ // add Friends to top toolbar - if profile mod is running
+ if ( is_plugin_enabled('profile') ) {
+ $user = get_loggedin_user();
+ echo "<a class='myfriends' href=\"".$CONFIG->wwwroot . "pg/friends/" . $user->username."\" title=\"".elgg_echo('friends')."\">".elgg_echo('friends')."</a>";
+ }
?>
-
+
<div class="log_out">
<?php echo elgg_view('output/url', array('href' => "{$vars['url']}action/logout", 'text' => elgg_echo('logout'), 'is_action' => TRUE)); ?>
</div>