Skip to content

Commit

Permalink
add icons to all-menu
Browse files Browse the repository at this point in the history
  • Loading branch information
juanSTIC committed Oct 9, 2024
1 parent 0ec48ac commit aa97a71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SticInclude/SticAdvancedMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ function generateMenu($items, $isFirstLevel = true, $validTabs = null)
$menuHtml .= '<ul>';
$menuHtml .= '<li><input type="text" id="search-all" placeholder="' . $app_strings['LBL_SEARCH'] . '"></input></li>';
foreach ($validTabs as $key => $value) {
$menuHtml .= "<li><a href='index.php?module={$key}&action=index'>" . $value . '</a></li>';
$lowerModule=str_replace('_','-',strtolower($key));
$iconString = $sugar_config['stic_advanced_menu_icons'] ? "<span class='suitepicon suitepicon-module-{$lowerModule}'></span>" : '';
$menuHtml .= "<li><a href='index.php?module={$key}&action=index'> $iconString $value </a></li>";
}
$menuHtml .= '</ul>';
$menuHtml .= '</li>';
Expand Down

0 comments on commit aa97a71

Please sign in to comment.