diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2017-01-19 02:26:43 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-01-19 10:42:21 +0100 |
commit | 6697415d499ebebf157794802f77b65ea59fd8e8 (patch) | |
tree | 8fe792ba96f0b3490867d3f8f5dee438351f00dc /settings/templates | |
parent | 2cfedb3623f532e22b007680c2978be1542600af (diff) | |
download | nextcloud-server-6697415d499ebebf157794802f77b65ea59fd8e8.tar.gz nextcloud-server-6697415d499ebebf157794802f77b65ea59fd8e8.zip |
add icons to personal settings navigation
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'settings/templates')
-rw-r--r-- | settings/templates/personal.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/settings/templates/personal.php b/settings/templates/personal.php index a14982b9b74..d3a835c4a16 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -9,12 +9,14 @@ ?> <div id="app-navigation"> - <ul> + <ul class="with-icon"> <?php foreach($_['forms'] as $form) { if (isset($form['anchor'])) { $anchor = '#' . $form['anchor']; + $class = 'nav-icon-' . $form['anchor']; $sectionName = $form['section-name']; - print_unescaped(sprintf("<li><a href='%s'>%s</a></li>", \OCP\Util::sanitizeHTML($anchor), \OCP\Util::sanitizeHTML($sectionName))); + print_unescaped(sprintf("<li><a href='%s' class='%s'>%s</a></li>", \OCP\Util::sanitizeHTML($anchor), + \OCP\Util::sanitizeHTML($class), \OCP\Util::sanitizeHTML($sectionName))); } }?> </ul> |