/** * Need to wrap UL element is extra DIVs * * @return string **/ protected function ul($html, $depth) { $output = parent::ul($html, $depth); $output = "<div class=\"bd\">{$output}</div>\n"; if ($depth != 0) { // Cannot have this div on root list $output = "<div class=\"yuimenu\">{$output}</div>"; } return $output; }