Elgg  Version 6.0
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 52 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 61 of file item.php.

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

Definition at line 63 of file item.php.

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

Definition at line 68 of file item.php.