getSelected()) { $class = 'class="selected"'; $link_class = 'elgg-menu-opened'; } $link_vars = array(); $children = $item->getChildren(); if ($children) { $link_vars['class'] = "elgg-menu-parent $link_class"; } echo "