public static function getNavigation($type = 'page', $parentId = 0, $depth = null, $excludeIds = null, $template = '/Core/Layout/Templates/Navigation.html.twig')
{
// build excludeIds
if ($excludeIds !== null) {
$excludeIds = (array) explode('-', $excludeIds);
}
// get HTML
try {
$return = (string) Navigation::getNavigationHTML($type, $parentId, $depth, $excludeIds, $template);
} catch (Exception $e) {
// if something goes wrong just return as fallback
return '';
}
// return the var
if ($return != '') {
return $return;
}
// fallback
return '';
}