-
Aspectis authored
* for details see issue/18965 co-authored by: Dorian Merz <merz@ub.uni-leipzig.de>
052c0faf
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
nav.phtml 4.30 KiB
<!-- fid_bbi: nav -->
<nav class="nav">
<button
class="nav-toggle -search"
type="button"
aria-controls="search"
aria-label="<?=$this->transEsc('Open search')?>"
>
<?=$this->icon('magnifier')?>
<?=$this->transEsc('Search')?>
</button>
<button
class="nav-toggle -menu"
type="button"
aria-controls="menu"
aria-label="<?=$this->transEsc('Open navigation')?>"
>
<?=$this->icon('menu')?>
<?=$this->transEsc('Info')?>
</button>
<div class="nav-main" id="menu">
<div class="nav-header">
<h2><?=$this->translate('Info Pages')?></h2>
<button
class="-icon-only -small"
type="button"
aria-controls="menu"
aria-label="<?=$this->transEsc('Close functions & filters')?>"
>
<?=$this->icon('x')?>
<span class="sr-only"><?=$this->transEsc('Close')?></span>
</button>
</div>
<ul>
<?php $fallbackUrl = $this->config()->get('config')->RssConsumer['fallback_url'] ?? ''; ?>
<li class="nav-home">
<a href="<?=$this->url('home')?>">
<?=$this->icon('home')?>
<span class="sr-only"><?=$this->transEsc('Home')?></span>
</a>
</li>
<li>
<a href="<?=$this->translate('bbi_blog_url')?>">
<?=$this->transEsc('BBI Blog')?>
</a>
</li>
<li>
<a href="<?=$this->url('content-page', ['page' => 'faq'])?>">
<?=$this->transEsc('FAQs')?>
</a>
</li>
<li>
<a href="<?=$this->url('content-page', ['page' => 'subject-librarians'])?>">
<?=$this->transEsc('For Subject Librarians')?>
</a>
</li>
<li>
<a href="<?=$this->url('content-page', ['page' => 'about'])?>">
<?=$this->transEsc('About Us')?>
</a>
</li>
</ul>
</div>
<div class="nav-aside">
<ul>
<?php $account = $this->auth()->getManager(); ?>
<?php if (is_object($account) && $account->loginEnabled()): ?>
<li>
<?php if ($account->isLoggedIn()): ?>
<a href="<?=$this->url('myresearch-home', [], ['query' => ['redirect' => 0]])?>">
<span>
<?=$this->icon('person')?>
<?=$this->transEsc("Your Account")?>
</span>
</a>
<?php else : ?>
<?php if ($account->getSessionInitiator($this->serverUrl($this->url('myresearch-home')))): ?>
<a href="<?=$this->url('myresearch-userlogin')?>">
<span>
<?=$this->icon('login')?>
<?=$this->transEsc('Institutional Login')?>
</span>
</a>
<?php else: ?>
<a href="<?=$this->url('myresearch-userlogin')?>" data-lightbox>
<span>
<?=$this->icon('login')?>
<?=$this->transEsc('Login')?>
</span>
</a>
<?php endif; ?>
<?php endif; ?>
</li>
<li>
<?php if ($account->isLoggedIn()): ?>
<a href="<?=$this->url('myresearch-logout')?>">
<span>
<?=$this->icon('logout')?>
<?=$this->transEsc('Log Out')?>
</span>
</a>
<?php else: ?>
<a href="<?=$this->url('myresearch-account')?>?auth_method=<?=$account->getAuthMethod()?>">
<span>
<?=$this->icon('signup')?>
<?=$this->transEsc('Create New Account')?>
</span>
</a>
<?php endif; ?>
</li>
<?php endif; ?>
<?php if (isset($this->layout()->allLangs) && count($this->layout()->allLangs) > 1): ?>
<?php foreach ($this->layout()->allLangs as $langCode => $langName): ?>
<li>
<a
class="nav-lang <?=$this->layout()->userLang == $langCode ? '-current' : ''?>"
href="javascript:document.langForm.mylang.value='<?=$langCode?>';document.langForm.submit()"
title="<?=$this->displayLanguageOption($langName)?>"
>
<span><?=$langCode?></span>
</a>
</li>
<?php endforeach; ?>
<?php endif; ?>
</ul>
<form method="post" name="langForm" id="langForm">
<input type="hidden" name="mylang">
</form>
</div>
</nav>
<!-- fid_bbi: nav - END -->