diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-09-17 18:12:15 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-09-21 14:00:38 +0200 |
commit | 3ff60c3af87075d01a860d1daaacca6741c1ab95 (patch) | |
tree | e137094047e524b37a22a8b9c50e4f11e9d6761a /apps/files/templates | |
parent | 231e475a7ba7d3baa970dd4a243c4e7e0ff349a3 (diff) | |
download | nextcloud-server-3ff60c3af87075d01a860d1daaacca6741c1ab95.tar.gz nextcloud-server-3ff60c3af87075d01a860d1daaacca6741c1ab95.zip |
create special class forst first pinned class occurrence
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/templates')
-rw-r--r-- | apps/files/templates/appnavigation.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/files/templates/appnavigation.php b/apps/files/templates/appnavigation.php index c6c0ba36518..09b02943688 100644 --- a/apps/files/templates/appnavigation.php +++ b/apps/files/templates/appnavigation.php @@ -1,7 +1,10 @@ <div id="app-navigation"> <ul class="with-icon"> - <?php foreach ($_['navigationItems'] as $item) { ?> - <li data-id="<?php p($item['id']) ?>" class="nav-<?php p($item['id']) ?> <?php p($item['classes']) ?>"> + <?php $pinned = 0 ?> + <?php foreach ($_['navigationItems'] as $item) { + strpos($item['classes'], 'pinned')!==false ? $pinned++ : ''; + ?> + <li data-id="<?php p($item['id']) ?>" class="nav-<?php p($item['id']) ?> <?php p($item['classes']) ?> <?php p($pinned===1?'first-pinned':'') ?>"> <a href="<?php p(isset($item['href']) ? $item['href'] : '#') ?>" class="nav-icon-<?php p($item['icon'] !== '' ? $item['icon'] : $item['id']) ?> svg"> <?php p($item['name']);?> |