part of a submenu. * * @uses $vars['group'] * @uses $vars['item'] * @uses $vars['children_html'] * @package Elgg * @subpackage Core * @author Curverider Ltd * @link http://elgg.org/ */ $group = (isset($vars['group'])) ? $vars['group'] : 'default'; $item = (isset($vars['item'])) ? $vars['item'] : FALSE; $children_html = (isset($vars['children_html'])) ? $vars['children_html'] : ''; if ($item) { $has_children = (isset($item->children) && $item->children) ? TRUE : FALSE; $selected = (isset($item->selected) && $item->selected == TRUE) ? 'class="selected"' : ''; $js = (isset($vars['js'])) ? $vars['js'] : ''; $child_indicator = ''; if ($has_children) { if ($selected) { $child_indicator = '-'; $child_indicator .= ''; } else { $child_indicator = ''; $child_indicator .= '+'; } $child_indicator = "$child_indicator "; } $url = htmlentities($item->href); $text = $child_indicator . htmlentities($item->text); $link_vars = array_merge($vars, array( 'href' => $item->href, 'text' => $text, 'encode_text' => FALSE )); $link = elgg_view('output/url', $link_vars); } echo "
  • $link$children_html
  • ";