summaryrefslogtreecommitdiffstats
path: root/core/templates/layout.user.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/templates/layout.user.php')
-rw-r--r--core/templates/layout.user.php86
1 files changed, 11 insertions, 75 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index ecb0c614dd4..6fccfb6fa40 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -23,7 +23,8 @@ $getUserAvatar = static function (int $size) use ($_): string {
p($theme->getTitle());
?>
</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+
<?php if ($theme->getiTunesAppId() !== '') { ?>
<meta name="apple-itunes-app" content="app-id=<?php p($theme->getiTunesAppId()); ?>">
<?php } ?>
@@ -50,12 +51,11 @@ $getUserAvatar = static function (int $size) use ($_): string {
<input type="hidden" id="initial-state-<?php p($app); ?>" value="<?php p(base64_encode($initialState)); ?>">
<?php }?>
- <a href="#app-content" class="button primary skip-navigation skip-content"><?php p($l->t('Skip to main content')); ?></a>
- <a href="#app-navigation" class="button primary skip-navigation"><?php p($l->t('Skip to navigation of app')); ?></a>
-
- <div id="notification-container">
- <div id="notification"></div>
+ <div id="skip-actions">
+ <?php if ($_['id-app-content'] !== null) { ?><a href="<?php p($_['id-app-content']); ?>" class="button primary skip-navigation skip-content"><?php p($l->t('Skip to main content')); ?></a><?php } ?>
+ <?php if ($_['id-app-navigation'] !== null) { ?><a href="<?php p($_['id-app-navigation']); ?>" class="button primary skip-navigation"><?php p($l->t('Skip to navigation of app')); ?></a><?php } ?>
</div>
+
<header role="banner" id="header">
<div class="header-left">
<a href="<?php print_unescaped($_['logoUrl'] ?: link_to('', 'index.php')); ?>"
@@ -67,75 +67,12 @@ $getUserAvatar = static function (int $size) use ($_): string {
</div>
</a>
- <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']); ?>"
- <?php if (isset($entry['target']) && $entry['target']): ?> target="_blank" rel="noreferrer noopener"<?php endif; ?>
- <?php if ($entry['active']): ?> class="active"<?php endif; ?>
- 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>
- <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" 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>
- <span>
- <?php p($entry['name']); ?>
- </span>
- </a>
- </li>
- <?php endforeach; ?>
- <li id="more-apps" class="menutoggle"
- aria-haspopup="true" aria-controls="navigation" aria-expanded="false">
- <a href="#" aria-label="<?php p($l->t('More apps')); ?>">
- <div class="icon-more-white"></div>
- <span><?php p($l->t('More')); ?></span>
- </a>
- </li>
- </ul>
-
- <nav role="navigation">
- <div id="navigation" style="display: none;" aria-label="<?php p($l->t('More apps menu')); ?>">
- <div id="apps">
- <ul>
- <?php foreach ($_['navigation'] as $entry): ?>
- <li data-id="<?php p($entry['id']); ?>">
- <a href="<?php print_unescaped($entry['href']); ?>"
- <?php if (isset($entry['target']) && $entry['target']): ?> target="_blank" rel="noreferrer noopener"<?php endif; ?>
- <?php if ($entry['active']): ?> class="active"<?php endif; ?>
- aria-label="<?php p($entry['name']); ?>">
- <svg width="20" height="20" viewBox="0 0 16 16" alt=""<?php if ($entry['unread'] !== 0) { ?> class="has-unread"<?php } ?>>
- <defs>
- <filter id="invertMenuMore-<?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"></feColorMatrix></filter>
- <mask id="hole">
- <rect width="100%" height="100%" fill="white"/>
- <circle r="4.5" cx="17" cy="3" fill="black"/>
- </mask>
- </defs>
- <image x="0" y="0" width="16" height="16" preserveAspectRatio="xMinYMin meet" filter="url(#invertMenuMore-<?php p($entry['id']); ?>)" 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="17" cy="3" fill="red"/>
- </svg>
- <div class="unread-counter" aria-hidden="true"><?php p($entry['unread']); ?></div>
- <span class="app-title"><?php p($entry['name']); ?></span>
- </a>
- </li>
- <?php endforeach; ?>
- </ul>
- </div>
- </div>
- </nav>
-
+ <nav id="header-left__appmenu"></nav>
</div>
<div class="header-right">
- <div id="notifications"></div>
<div id="unified-search"></div>
+ <div id="notifications"></div>
<div id="contactsmenu">
<div class="menutoggle" tabindex="0" role="button"
aria-haspopup="true" aria-controls="contactsmenu-menu" aria-expanded="false">
@@ -146,7 +83,7 @@ $getUserAvatar = static function (int $size) use ($_): string {
</div>
<div id="settings">
<div id="expand" tabindex="0" role="button" class="menutoggle"
- aria-label="<?php p($l->t('Settings'));?>"
+ 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');
@@ -169,12 +106,11 @@ $getUserAvatar = static function (int $size) use ($_): string {
<?php } ?>
</div>
</div>
- <nav class="settings-menu" id="expanddiv" style="display:none;"
- aria-label="<?php p($l->t('Settings menu'));?>">
+ <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']); ?>"
+ <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']) ?>