I think I got it IF i CHANGE line 57 :
if ($menuItem->type == 'separator' && !$hasChilds):
$nextMenuItem = isset($flatMenu[$j + 1]) ? $flatMenu[$j + 1] : null ;
if (($nextMenuItem && $nextMenuItem->parent == $parentId) && ($level || $isVertical)):
echo '<li class="li-separator"><span class="separator">'.htmlspecialchars($menuItem->name).'</span></li>';
endif;
continue;
endif;
a screen shot of what I am trying to do -->
and same thing for ariextmenu on line 45
if ($menuItem->parent != $parentId) continue;
if ($menuItem->type == 'separator' && !$hasChilds) echo '<li class="li-separator"><span class="separator">'.htmlspecialchars($menuItem->name).'</span></li>';
it works fine
it will be great to add thids option in your xml file
thank you