Elgg  Version 4.3
Variables
item.php File Reference

Go to the source code of this file.

Variables

 $item = elgg_extract('item', $vars)
 A single element of a menu. More...
 
if(!$item instanceof ElggMenuItem$item_vars = []
 
 $child_menu_view = ''
 
 $children = $item->getChildren()
 
if(!empty($children)) elseif($item->getData('show_with_empty_children')===false) $deps = $item->getDeps()
 
if(elgg_extract('data-toggle', $item->getValues())) foreach($deps as $module) $item_vars ['data-menu-item'] = $item->getName()
 
 $item_vars ['class'] = elgg_extract_class($vars, $item->getItemClass(), 'item_class')
 
if($item->getSelected()) $item_view
 

Variable Documentation

$child_menu_view = ''

Definition at line 15 of file item.php.

$children = $item->getChildren()

Definition at line 17 of file item.php.

if (!empty($children)) elseif ($item->getData('show_with_empty_children')===false) $deps = $item->getDeps()

Definition at line 51 of file item.php.

$item = elgg_extract('item', $vars)

A single element of a menu.

$vars['item'] ElggMenuItem $vars['item_class'] Additional CSS class for the menu item

Definition at line 9 of file item.php.

if (!$item instanceof ElggMenuItem) $item_vars = []

Definition at line 14 of file item.php.

if (elgg_extract('data-toggle', $item->getValues())) foreach ($deps as $module) $item_vars['data-menu-item'] = $item->getName()

Definition at line 60 of file item.php.

$item_vars['class'] = elgg_extract_class($vars, $item->getItemClass(), 'item_class')

Definition at line 62 of file item.php.

$item_view
Initial value:
= elgg_view($item->getItemContentsView() ?: 'navigation/menu/elements/item/url', [
'item' => $item,
])
$item
A single element of a menu.
Definition: item.php:9
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:179

Definition at line 67 of file item.php.