';
// name and username
$name_link = elgg_view('output/url', array(
'href' => $user->getURL(),
'text' => "$user->name@$user->username",
));
echo "
$name_link";
// actions
if (elgg_is_logged_in() && $actions) {
echo '';
foreach ($actions as $menu_item) {
echo elgg_view('navigation/menu/elements/section', array(
'class' => "elgg-menu elgg-menu-hover-actions",
'items' => $actions,
));
}
echo '';
}
// main
if ($main) {
echo '';
echo elgg_view('navigation/menu/elements/section', array(
'class' => 'elgg-menu elgg-menu-hover-default',
'items' => $main,
));
echo '';
}
// admin
if (elgg_is_admin_logged_in() && $admin) {
echo '';
echo elgg_view('navigation/menu/elements/section', array(
'class' => 'elgg-menu elgg-menu-hover-admin',
'items' => $admin,
));
echo '';
}
echo '';