';
// Elgg logo
echo '
';
echo "";
echo '';
// avatar
$user_link = $user->getURL();
$user_image = $user->getIcon('topbar');
echo "
";
// logout link
echo '
';
echo elgg_view('output/url', array(
'href' => "{$vars['url']}action/logout",
'text' => elgg_echo('logout'),
'is_action' => TRUE
));
echo '
';
// 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";
}
// 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);
echo '