MonitoringMenuItemRenderer: webfont icon support

refs #6936
This commit is contained in:
Thomas Gelf 2014-11-13 15:28:41 +01:00
parent cab89914bb
commit 50869c783d
1 changed files with 10 additions and 0 deletions

View File

@ -79,6 +79,16 @@ class MonitoringMenuItemRenderer implements MenuItemRenderer {
$count
);
}
if ($menu->getIcon() && strpos($menu->getIcon(), '.') === false) {
return sprintf(
'<a href="%s" class="icon-%s">%s%s</a>',
$menu->getUrl() ?: '#',
$menu->getIcon(),
htmlspecialchars($menu->getTitle()),
$badge
);
}
return sprintf(
'<a href="%s">%s%s%s</a>',
$menu->getUrl() ?: '#',