if (!$menu->is_empty()): // Don't show the menu if it has no choices ?>
if ($menu->is_root): ?>
css_id ? "id='$menu->css_id'" : "" ?> class="= $menu->css_class ?>">
foreach ($menu->elements as $element): ?>
= $element->render() ?>
endforeach ?>
else: ?>
= $menu->label->for_html() ?>
foreach ($menu->elements as $element): ?>
= $element->render() ?>
endforeach ?>
endif ?>
endif ?>