Revert "displayed nextcloud user menu like moodle and wp applications"
This reverts commit 5d5ef2f884
.
main
parent
d4796c0a73
commit
faf3180205
|
@ -22,7 +22,6 @@
|
||||||
*/
|
*/
|
||||||
$api_url = "https://" . preg_replace('/^nextcloud\./', 'api.', $_SERVER['HTTP_HOST']);
|
$api_url = "https://" . preg_replace('/^nextcloud\./', 'api.', $_SERVER['HTTP_HOST']);
|
||||||
$avatar_url = "https://" . preg_replace('/^nextcloud\./', 'sso.', $_SERVER['HTTP_HOST']) . "/auth/realms/master/avatar-provider";
|
$avatar_url = "https://" . preg_replace('/^nextcloud\./', 'sso.', $_SERVER['HTTP_HOST']) . "/auth/realms/master/avatar-provider";
|
||||||
$profile_url = "https://" . preg_replace('/^nextcloud\./', 'sso.', $_SERVER['HTTP_HOST']) . "/auth/realms/master/account";
|
|
||||||
|
|
||||||
// Remove user menu Settings item for non-administrator users
|
// Remove user menu Settings item for non-administrator users
|
||||||
if(!array_key_exists('core_apps', $_["settingsnavigation"])){
|
if(!array_key_exists('core_apps', $_["settingsnavigation"])){
|
||||||
|
@ -68,25 +67,16 @@
|
||||||
.newFileMenu > ul:nth-child(1) > li:nth-child(3) {
|
.newFileMenu > ul:nth-child(1) > li:nth-child(3) {
|
||||||
order: 1;
|
order: 1;
|
||||||
}
|
}
|
||||||
#header .header-right>div>.menu:after {
|
#header .header-right > div > .menu.settings-menu > ul li.onlytext {
|
||||||
display:none;
|
display: inline-flex;
|
||||||
}
|
align-items: center;
|
||||||
.ddicon {
|
height: 44px;
|
||||||
|
color: var(--color-main-text);
|
||||||
|
padding: 10px 35px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
white-space: nowrap;
|
||||||
position: relative;
|
position: relative;
|
||||||
left: 8px;
|
width: 100%;
|
||||||
top: 9px;
|
|
||||||
}
|
|
||||||
.ddiconcontainer {
|
|
||||||
margin-right: 16px;
|
|
||||||
width: 36px;
|
|
||||||
height: 36px;
|
|
||||||
background-color: #f0f0f0;
|
|
||||||
position: relative;
|
|
||||||
border-radius: 5px;
|
|
||||||
left: -7px;
|
|
||||||
}
|
|
||||||
#expanddiv {
|
|
||||||
padding: .5rem .7rem;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
@ -144,25 +134,16 @@
|
||||||
<nav class="settings-menu" id="expanddiv" style="display:none;"
|
<nav class="settings-menu" id="expanddiv" style="display:none;"
|
||||||
aria-label="<?php p($l->t('Settings menu'));?>">
|
aria-label="<?php p($l->t('Settings menu'));?>">
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li class="onlytext"><?php p($_['user_displayname']); ?></li>
|
||||||
<a target="_blank" href="<?php p($profile_url)?>">
|
<?php foreach ($_['settingsnavigation'] as $entry):?>
|
||||||
<div class="ddiconcontainer">
|
<li data-id="<?php p($entry['id']); ?>">
|
||||||
<i class="icon fa fa-user fa-fw ddicon"></i>
|
<a href="<?php print_unescaped($entry['href']); ?>"
|
||||||
</div>
|
<?php if ($entry["active"]): ?> class="active"<?php endif; ?>>
|
||||||
<?php p($_['user_displayname']); ?>
|
<img alt="" src="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>">
|
||||||
|
<?php p($entry['name']) ?>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php foreach ($_['settingsnavigation'] as $entry):?>
|
<?php endforeach; ?>
|
||||||
<?php if ($entry['id'] == 'logout') { ?>
|
|
||||||
<li data-id="<?php p($entry['id']); ?>">
|
|
||||||
<a href="<?php print_unescaped($entry['href']); ?>">
|
|
||||||
<div class="ddiconcontainer">
|
|
||||||
<i class="icon fa fa-sign-out fa-fw ddicon" aria-hidden="true"></i> </div>
|
|
||||||
<?php p($entry['name']) ?>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<?php } ?>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue