diff options
author | Christopher Ng <chrng8@gmail.com> | 2023-02-09 17:54:59 -0800 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2023-02-09 17:54:59 -0800 |
commit | c77998209f779dfccd86afeeafd43a7bbd886ff2 (patch) | |
tree | ff1b5fc33b1d5115f0f62eb4ea02848cdf468bc6 /core/templates | |
parent | e47d56ac36d0f1d3e47392a7d9688decf847e1bc (diff) | |
download | nextcloud-server-c77998209f779dfccd86afeeafd43a7bbd886ff2.tar.gz nextcloud-server-c77998209f779dfccd86afeeafd43a7bbd886ff2.zip |
Port user menu to Vue
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'core/templates')
-rw-r--r-- | core/templates/layout.user.php | 40 |
1 files changed, 1 insertions, 39 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index 951f0dabe21..80182068ca8 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -70,45 +70,7 @@ p($theme->getTitle()); <div id="unified-search"></div> <div id="notifications"></div> <div id="contactsmenu"></div> - <div id="settings"> - <div id="expand" tabindex="0" role="button" class="menutoggle" - aria-label="<?php p($l->t('Open settings menu'));?>" - aria-haspopup="true" aria-controls="expanddiv" aria-expanded="false"> - <div id="avatardiv-menu" class="avatardiv<?php if ($_['userAvatarSet']) { - print_unescaped(' avatardiv-shown'); - } else { - print_unescaped('" style="display: none'); - } ?>" - data-user="<?php p($_['user_uid']); ?>" - data-displayname="<?php p($_['user_displayname']); ?>" - <?php - if ($_['userAvatarSet']) { - $avatar32 = $getUserAvatar(32); ?> data-avatar="<?php p($avatar32); ?>" - <?php - } ?>> - <?php - if ($_['userAvatarSet']) {?> - <img alt="" width="32" height="32" - src="<?php p($avatar32);?>" - srcset="<?php p($getUserAvatar(64));?> 2x, <?php p($getUserAvatar(128));?> 4x" - > - <?php } ?> - </div> - </div> - <nav class="settings-menu" id="expanddiv" style="display:none;"> - <ul> - <?php foreach ($_['settingsnavigation'] as $entry):?> - <li data-id="<?php p($entry['id']); ?>"> - <a href="<?php print_unescaped($entry['href'] !== '' ? $entry['href'] : '#'); ?>" - <?php if ($entry["active"]): ?> class="active"<?php endif; ?>> - <img alt="" src="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>"> - <?php p($entry['name']) ?> - </a> - </li> - <?php endforeach; ?> - </ul> - </nav> - </div> + <div id="user-menu"></div> </div> </header> |