From 741808bdf03d09c3e5c2ac3865451fade409d892 Mon Sep 17 00:00:00 2001 From: pete Date: Fri, 16 Apr 2010 16:59:51 +0000 Subject: 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 --- views/default/css.php | 9 +++++++++ views/default/page_elements/elgg_topbar.php | 8 +++++++- 2 files changed, 16 insertions(+), 1 deletion(-) (limited to 'views/default') diff --git a/views/default/css.php b/views/default/css.php index 57b5e688b..2afe89dbd 100644 --- a/views/default/css.php +++ b/views/default/css.php @@ -387,6 +387,15 @@ h2 { #elgg_topbar_contents .log_out a:hover { color:#71cbff; } +#elgg_topbar_contents a.myfriends { + background:transparent url(_graphics/elgg_sprites.png) no-repeat left -297px; + margin-right:30px; + text-indent: -900em; + width:36px; +} +#elgg_topbar_contents a.myfriends:hover { + background-position: left -337px; +} #elgg_topbar_contents a.settings { background:transparent url(_graphics/elgg_sprites.png) no-repeat -300px -41px; padding-left:20px !important; 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 "wwwroot . "pg/friends/" . $user->username."\" title=\"".elgg_echo('friends')."\">".elgg_echo('friends').""; + } ?> - +
"{$vars['url']}action/logout", 'text' => elgg_echo('logout'), 'is_action' => TRUE)); ?>
-- cgit v1.2.3