getSelected()) { // @todo switch to addItemClass when that is implemented //$item->setItemClass('elgg-state-selected'); $link_class = 'elgg-menu-opened'; } $children = $item->getChildren(); if ($children) { $item->addLinkClass($link_class); $item->addLinkClass('elgg-menu-parent'); } $item_class = $item->getItemClass(); if ($item->getSelected()) { $item_class = "$item_class elgg-state-selected"; } if (isset($vars['item_class']) && $vars['item_class']) { $item_class .= ' ' . $vars['item_class']; } echo "
  • "; echo elgg_view_menu_item($item); if ($children) { echo elgg_view('navigation/menu/elements/section', array( 'items' => $children, 'class' => 'elgg-menu elgg-child-menu', )); } echo '
  • ';