2026-02-04 23:31:53 +01:00
|
|
|
<?php
|
|
|
|
|
$accountUrl = accountUrl();
|
2026-02-11 19:28:12 +01:00
|
|
|
$accountName = currentUserDisplayName();
|
2026-02-04 23:31:53 +01:00
|
|
|
$accountTooltip = $accountName !== '' ? $accountName : t('Account');
|
2026-03-04 15:56:58 +01:00
|
|
|
$layoutAuth = is_array($viewAuth['layout'] ?? null) ? $viewAuth['layout'] : [];
|
2026-03-05 08:26:51 +01:00
|
|
|
$hasAdminPanel = layoutHasAdminPanel($layoutAuth);
|
2026-03-04 15:56:58 +01:00
|
|
|
$canViewAddressBook = (bool) ($layoutAuth['can_view_address_book'] ?? false);
|
2026-02-04 23:31:53 +01:00
|
|
|
$addressBookUrl = lurl('address-book');
|
|
|
|
|
?>
|
|
|
|
|
<aside class="aside-icon-bar" data-aside-storage="app-sidebar-panel">
|
|
|
|
|
<nav>
|
|
|
|
|
<ul class="aside-icon-group" role="tablist">
|
|
|
|
|
<li>
|
|
|
|
|
<button type="button" id="aside-tab-explorer" data-aside-target="explorer" role="tab"
|
|
|
|
|
aria-selected="true" aria-controls="aside-panel-explorer" aria-label="<?php e(t('Explorer')); ?>"
|
|
|
|
|
data-tooltip="<?php e(t('Explorer')); ?>" data-tooltip-pos="right">
|
|
|
|
|
<i class="bi bi-house"></i>
|
|
|
|
|
</button>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<button type="button" id="aside-tab-search" data-aside-target="search" role="tab" aria-selected="false"
|
|
|
|
|
aria-controls="aside-panel-search" aria-label="<?php e(t('Search')); ?>"
|
|
|
|
|
data-tooltip="<?php e(t('Search')); ?>" data-tooltip-pos="right">
|
|
|
|
|
<i class="bi bi-search"></i>
|
|
|
|
|
</button>
|
|
|
|
|
</li>
|
|
|
|
|
<?php if ($canViewAddressBook): ?>
|
|
|
|
|
<li>
|
|
|
|
|
<button type="button" id="aside-tab-people" data-aside-target="people"
|
|
|
|
|
data-aside-href="<?php e($addressBookUrl); ?>" role="tab" aria-selected="false"
|
|
|
|
|
aria-controls="aside-panel-people" aria-label="<?php e(t('Address book')); ?>"
|
|
|
|
|
data-tooltip="<?php e(t('Address book')); ?>" data-tooltip-pos="right">
|
|
|
|
|
<i class="bi bi-people"></i>
|
|
|
|
|
</button>
|
|
|
|
|
</li>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
<li>
|
|
|
|
|
<button type="button" id="aside-tab-files" data-aside-target="files" role="tab" aria-selected="false"
|
|
|
|
|
aria-controls="aside-panel-files" aria-label="<?php e(t('Files')); ?>"
|
|
|
|
|
data-tooltip="<?php e(t('Files')); ?>" data-tooltip-pos="right">
|
|
|
|
|
<i class="bi bi-folder"></i>
|
|
|
|
|
</button>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<ul>
|
2026-03-05 08:26:51 +01:00
|
|
|
<?php if ($hasAdminPanel): ?>
|
2026-02-04 23:31:53 +01:00
|
|
|
<li>
|
|
|
|
|
<button type="button" id="aside-tab-admin" data-aside-target="admin" role="tab" aria-selected="false"
|
|
|
|
|
aria-controls="aside-panel-admin" aria-label="<?php e(t('Admin')); ?>"
|
|
|
|
|
data-tooltip="<?php e(t('Admin')); ?>" data-tooltip-pos="right">
|
|
|
|
|
<i class="bi bi-shield-lock"></i>
|
|
|
|
|
</button>
|
|
|
|
|
</li>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
<li>
|
|
|
|
|
<a href="<?php e($accountUrl); ?>" aria-label="<?php e(t('Account')); ?>"
|
2026-02-11 19:28:12 +01:00
|
|
|
data-tooltip="<?php e($accountTooltip); ?>" data-tooltip-pos="right" data-aside-shortcut="account"><i
|
2026-02-04 23:31:53 +01:00
|
|
|
class="bi bi-person-circle"></i></a>
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
</nav>
|
|
|
|
|
</aside>
|