diff options
author | Joas Schilling <coding@schilljs.com> | 2022-03-29 22:18:40 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2022-04-21 09:29:33 +0200 |
commit | b3cf312edcefec3fb26bad8637f3a0969504be87 (patch) | |
tree | 43397a079ea2b558e23cef722d6abbca11bc7cfb /core/templates | |
parent | 12ed5c9ff3e9dac25b43a1ad934a97a86037000b (diff) | |
download | nextcloud-server-b3cf312edcefec3fb26bad8637f3a0969504be87.tar.gz nextcloud-server-b3cf312edcefec3fb26bad8637f3a0969504be87.zip |
Start theming providers
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/templates')
-rw-r--r-- | core/templates/layout.user.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index 2b84c89fca6..f5ac783b340 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -64,7 +64,7 @@ $getUserAvatar = static function (int $size) use ($_): string { </div> </a> - <ul id="appmenu" <?php if ($_['themingInvertMenu']) { ?>class="inverted"<?php } ?>> + <ul id="appmenu"> <?php foreach ($_['navigation'] as $entry): ?> <li data-id="<?php p($entry['id']); ?>" class="hidden" tabindex="-1"> <a href="<?php print_unescaped($entry['href']); ?>" @@ -73,13 +73,12 @@ $getUserAvatar = static function (int $size) use ($_): string { aria-label="<?php p($entry['name']); ?>"> <svg width="24" height="20" viewBox="0 0 24 20" alt=""<?php if ($entry['unread'] !== 0) { ?> class="has-unread"<?php } ?>> <defs> - <?php if ($_['themingInvertMenu']) { ?><filter id="invertMenuMain-<?php p($entry['id']); ?>"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0" /></filter><?php } ?> <mask id="hole"> <rect width="100%" height="100%" fill="white"/> <circle r="4.5" cx="21" cy="3" fill="black"/> </mask> </defs> - <image x="2" y="0" width="20" height="20" preserveAspectRatio="xMinYMin meet"<?php if ($_['themingInvertMenu']) { ?> filter="url(#invertMenuMain-<?php p($entry['id']); ?>)"<?php } ?> xlink:href="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>" style="<?php if ($entry['unread'] !== 0) { ?>mask: url("#hole");<?php } ?>" class="app-icon"></image> + <image x="2" y="0" width="20" height="20" preserveAspectRatio="xMinYMin meet" xlink:href="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>" style="<?php if ($entry['unread'] !== 0) { ?>mask: url("#hole");<?php } ?>" class="app-icon"></image> <circle class="app-icon-notification" r="3" cx="21" cy="3" fill="red"/> </svg> <div class="unread-counter" aria-hidden="true"><?php p($entry['unread']); ?></div> |