mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 00:04:04 +02:00
parent
1aa8858dca
commit
29c7c2e707
@ -114,6 +114,14 @@ class MenuRenderer extends RecursiveIteratorIterator
|
||||
Logger::error('Could not invoke custom renderer. Exception: '. $e->getMessage());
|
||||
}
|
||||
}
|
||||
if ($child->getIcon() && strpos($child->getIcon(), '.') === false) {
|
||||
return sprintf(
|
||||
'<a href="%s" class="icon-%s">%s</a>',
|
||||
$child->getUrl() ?: '#',
|
||||
$child->getIcon(),
|
||||
htmlspecialchars($child->getTitle())
|
||||
);
|
||||
}
|
||||
return sprintf(
|
||||
'<a href="%s">%s%s</a>',
|
||||
$child->getUrl() ?: '#',
|
||||
|
Loading…
x
Reference in New Issue
Block a user