Elgg  Version master
Variables
default.php File Reference

Go to the source code of this file.

Variables

 $menu = elgg_extract('menu', $vars)
 
if(!$menu instanceof PreparedMenu$name = elgg_extract('name', $vars, '')
 
 $name_class_selector = preg_replace('/[^a-z0-9\-]/i', '-', elgg_strtolower($name))
 
 $show_section_headers = elgg_extract('show_section_headers', $vars, false)
 
 $item_class = elgg_extract_class($vars, [], 'item_class')
 
 $class = elgg_extract_class($vars, ['elgg-menu', "elgg-menu-{$name_class_selector}"])
 
 $menu_view = ''
 
foreach($menu as $section) if(!$menu_view) $aria_label = $name
 
 if (elgg_language_key_exists("menu:{$name}:header"))
 

Variable Documentation

foreach ($menu as $section) if (!$menu_view) $aria_label = $name

Definition at line 58 of file default.php.

$class = elgg_extract_class($vars, ['elgg-menu', "elgg-menu-{$name_class_selector}"])

Definition at line 29 of file default.php.

$item_class = elgg_extract_class($vars, [], 'item_class')

Definition at line 27 of file default.php.

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

Definition at line 16 of file default.php.

$menu_view = ''
Examples:
/root/Elgg/engine/lib/views.php.

Definition at line 31 of file default.php.

if (!$menu instanceof PreparedMenu) $name = elgg_extract('name', $vars, '')

Definition at line 22 of file default.php.

$name_class_selector = preg_replace('/[^a-z0-9\-]/i', '-', elgg_strtolower($name))

Definition at line 24 of file default.php.

$show_section_headers = elgg_extract('show_section_headers', $vars, false)

Definition at line 26 of file default.php.

if(elgg_language_key_exists("menu:{$name}:header"))

Definition at line 59 of file default.php.