Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
Variables
user_hover.php File Reference

Go to the source code of this file.

Variables

 $user = $vars['entity']
 User hover menu. More...
 
 $actions = elgg_extract('action', $vars['menu'], null)
 
 $main = elgg_extract('default', $vars['menu'], null)
 
 $admin = elgg_extract('admin', $vars['menu'], null)
 
 $name_link
 
if(elgg_is_logged_in()&&$actions)
if($main) 
if (elgg_is_admin_logged_in()&&$admin)
 

Variable Documentation

$actions = elgg_extract('action', $vars['menu'], null)

Definition at line 12 of file user_hover.php.

$admin = elgg_extract('admin', $vars['menu'], null)

Definition at line 14 of file user_hover.php.

$main = elgg_extract('default', $vars['menu'], null)

Definition at line 13 of file user_hover.php.

$name_link
Initial value:
= elgg_view('output/url', array(
'href' => $user->getURL(),
'text' => "<span class=\"elgg-heading-basic\">$user->name</span>&#64;$user->username",
'is_trusted' => true,
))
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:342
$user
User hover menu.
Definition: user_hover.php:11

Definition at line 19 of file user_hover.php.

$user = $vars['entity']

User hover menu.

Register for the 'register', 'menu:user_hover' plugin hook to add to the user hover menu. There are three sections: action, default, and admin.

$vars['menu'] Menu array provided by elgg_view_menu()

Definition at line 11 of file user_hover.php.

if (elgg_is_logged_in()&&$actions) if ($main) if(elgg_is_admin_logged_in()&&$admin)

Definition at line 49 of file user_hover.php.