diff options
Diffstat (limited to 'settings/templates/admin/frame.php')
-rw-r--r-- | settings/templates/admin/frame.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/settings/templates/admin/frame.php b/settings/templates/admin/frame.php index 761d76c4434..7ae6b5fa012 100644 --- a/settings/templates/admin/frame.php +++ b/settings/templates/admin/frame.php @@ -29,13 +29,16 @@ script('files', 'jquery.fileupload'); ?> <div id="app-navigation"> - <ul> + <ul class="with-icon"> <?php foreach($_['forms'] as $form) { if (isset($form['anchor'])) { $anchor = \OC::$server->getURLGenerator()->linkToRoute('settings.AdminSettings.index', ['section' => $form['anchor']]); + $class = 'nav-icon-' . $form['anchor']; $sectionName = $form['section-name']; $active = $form['active'] ? ' class="active"' : ''; - print_unescaped(sprintf("<li%s><a href='%s'>%s</a></li>", $active, \OCP\Util::sanitizeHTML($anchor), \OCP\Util::sanitizeHTML($sectionName))); + print_unescaped(sprintf("<li%s><a href='%s' class='%s'>%s</a></li>", $active, \OCP\Util::sanitizeHTML($anchor), + \OCP\Util::sanitizeHTML($class), + \OCP\Util::sanitizeHTML($sectionName))); } }?> </ul> |