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'] : FALSE; 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->url); $text = $child_indicator . htmlentities($item->text); } ?>