rendered paste bodyfunction phptemplate_menu_links($links) { if (!count($links)) { return ''; } $level_tmp = explode('-', key($links)); $level = $level_tmp[0]; $output = "<ul class=\"links-$level\">\n"; foreach ($links as $index => $link) { $output .= '<li'; if (stristr($index, 'active')) { $output .= ' class="active"'; } $output .= ">". l('<span>'.$link['title'].'</span>', $link['href'], $link['attributes'], $link['query'], $link['fragment'], $absolute, $html = TRUE) ."</li>\n"; } $output .= '</ul>'; return $output;}