';
// Elgg logo
echo '
';
echo "";
echo '';
// avatar
$user_link = $user->getURL();
$user_image = $user->getIcon('topbar');
echo "
";
// logout link
echo elgg_view('page/elements/topbar_logout', $vars);
// elgg tools menu
// need to echo this empty view for backward compatibility.
echo elgg_view("navigation/topbar_tools");
// enable elgg topbar extending
echo elgg_view('elgg_topbar/extend', $vars);
// user settings
$settings = elgg_echo('settings');
echo "
$settings";
// The administration link is for admin or site admin users only
if ($user->isAdmin()) {
$admin = elgg_echo("admin");
echo "
$admin";
}
echo '