39 $section_class_selector = preg_replace(
'/[^a-z0-9\-]/i',
'-',
elgg_strtolower($section->getID()));
40 $section_class[] =
"elgg-menu-{$name_class_selector}-{$section_class_selector}";
43 'items' => $section->all(),
44 'class' => $section_class,
45 'section' => $section->getID(),
65 'elgg-menu-container',
66 "elgg-menu-{$name_class_selector}-container",
68 'data-menu-name' =>
$name,
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
elgg_strtolower()
Wrapper function for mb_strtolower().
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
elgg_language_key_exists(string $key, string $language= 'en')
Check if a given language key exists.
if(!array_key_exists($size, $icon_sizes)) $vars['size']
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
elgg_extract_class(array $array, array|string $existing=[], string $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
if(!array_key_exists($size, $icon_sizes)) $name