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_menu($menu, array $vars=[])
Render a menu.
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
$entity
Outputs entity previous/next navigation elements.
if(!$entity instanceof\ElggEntity) if(!elgg_extract('show_navigation', $vars, false)) $vars['sort_by']