function render() { $out = "<ul class='admin_menu_section' id='" . htmlentities($this->id) . "'>\n<li class='sect_head'>"; if ($this->url) { $out .= "<a href='" . AdminMenu::formatUrl($this->url) . "'>" . $this->title . "</a>"; } else { $out .= $this->title; } $out .= "\n<ul class='admin_menu_indent'>\n"; foreach ($this->_items as $i) { if (is_string($i)) { $out .= $i; } else { $out .= $i->render(); } } $out .= "</ul></li>\n</ul>\n"; return $out; }