Elgg
Version 6.1
|
Go to the source code of this file.
Variables | |
$menu = elgg_extract('menu', $vars) | |
User hover menu. More... | |
if(!$menu instanceof\Elgg\Menu\PreparedMenu) | $actions = $menu->getItems('action') |
$main = $menu->getItems('default') | |
$admin = $menu->getItems('admin') | |
$user = elgg_extract('entity', $vars) | |
$user_info | |
$card = elgg_format_element('div', ['class' => 'elgg-menu-hover-card'], $user_info) | |
$combined_actions = [] | |
if(elgg_is_logged_in()&&!empty($actions)) if(!empty($main)) if(elgg_is_admin_logged_in()&&!empty($admin)) | if (!empty($combined_actions)) |
if (!$menu instanceof\Elgg\Menu\PreparedMenu) $actions = $menu->getItems('action') |
Definition at line 16 of file user_hover.php.
$admin = $menu->getItems('admin') |
Definition at line 18 of file user_hover.php.
$card = elgg_format_element('div', ['class' => 'elgg-menu-hover-card'], $user_info) |
Definition at line 34 of file user_hover.php.
$combined_actions = [] |
Definition at line 37 of file user_hover.php.
$main = $menu->getItems('default') |
Definition at line 17 of file user_hover.php.
$menu = elgg_extract('menu', $vars) |
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.
$user = elgg_extract('entity', $vars) |
Definition at line 20 of file user_hover.php.
$user_info |
Definition at line 27 of file user_hover.php.
if (elgg_is_logged_in()&&!empty($actions)) if (!empty($main)) if (elgg_is_admin_logged_in()&&!empty($admin)) if(!empty($combined_actions)) |
Definition at line 58 of file user_hover.php.