16 echo
'<ul class="elgg-menu elgg-menu-hover">';
20 'href' =>
$user->getURL(),
21 'text' =>
"<span class=\"elgg-heading-basic\">$user->name</span>@$user->username",
24 echo
"<li>$name_link</li>";
29 echo
elgg_view(
'navigation/menu/elements/section', array(
30 'class' =>
"elgg-menu elgg-menu-hover-actions",
40 echo
elgg_view(
'navigation/menu/elements/section', array(
41 'class' =>
'elgg-menu elgg-menu-hover-default',
52 echo
elgg_view(
'navigation/menu/elements/section', array(
53 'class' =>
'elgg-menu elgg-menu-hover-admin',
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype='')
Return a parsed view.
elgg_is_admin_logged_in()
Returns whether or not the viewer is currently logged in and an admin user.
elgg_is_logged_in()
Returns whether or not the user is currently logged in.