/* Menu TreeWeb STORM */
menu(ControllerPage::getNode(),11, true);
function menu($node, $max_id = 1,$show_parent=false, $sel_id=0) {
if ($node->getId() == $max_id) {
$array = array(
'level'=>1,
'path'=>'/'.$node->getUrl()
);
} else {
$array = menu($node->getParent(), $max_id, $show_parent, $node->getId());
$array['level']++;
$array['path'].='/'.$node->getUrl();
}
$children = $node->getChildren();
if (count($children)) {
echo '';
}
return $array;
}