diff options
author | kondou <kondou@ts.unde.re> | 2014-03-15 15:27:48 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-10-23 23:17:18 +0200 |
commit | 729dffed5ec924492962a41b4697ca05ad40da79 (patch) | |
tree | ac9cf4391a14953c03cab1564a2ff1e4c0e0cd6a /core/templates | |
parent | e26a16afea14df7428dd614906fc94521538dfe3 (diff) | |
download | nextcloud-server-729dffed5ec924492962a41b4697ca05ad40da79.tar.gz nextcloud-server-729dffed5ec924492962a41b4697ca05ad40da79.zip |
Load avatar in header via PHP
* fix #7484
* use UID, css, and div instead of span
Diffstat (limited to 'core/templates')
-rw-r--r-- | core/templates/layout.user.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index 9445175efcf..09630435b77 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -65,13 +65,17 @@ </a> <div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div> <div id="settings" class="svg"> - <span id="expand" tabindex="0" role="link"> + <div id="expand" tabindex="0" role="link"> <?php if ($_['enableAvatars']): ?> - <div class="avatardiv"></div> + <div class="avatardiv"<?php if (!$_['userAvatarSet']) { print_unescaped(' style="display: none"'); } ?>> + <?php if ($_['userAvatarSet']): ?> + <img src="<?php p(link_to('', 'index.php').'/avatar/'.$_['user_uid'].'/32?requesttoken='.$_['requesttoken']); ?>"> + <?php endif; ?> + </div> <?php endif; ?> <span id="expandDisplayName"><?php p(trim($_['user_displayname']) != '' ? $_['user_displayname'] : $_['user_uid']) ?></span> <img class="svg" alt="" src="<?php print_unescaped(image_path('', 'actions/caret.svg')); ?>" /> - </span> + </div> <div id="expanddiv"> <ul> <?php foreach($_['settingsnavigation'] as $entry):?> |