username}"; } if (isset($vars['friend_link'])) { $friend_link = $vars['friend_link']; } else { $friend_link = "{$vars['url']}pg/$type/{$_SESSION['user']->username}/friends"; } // must be logged in to see the filter menu and any action buttons if ( isloggedin() ) { // if we're not on an action page (add a bookmark, create a blog, upload a file etc), or a group page if ( ($filter_context != 'action') && (get_context() != 'groups') ) { $title = elgg_echo($type); $title = "