Skip to content
Snippets Groups Projects
Commit e7c45f1b authored by samueloph's avatar samueloph Committed by Demian Katz
Browse files
parent e7a3edc2
No related merge requests found
...@@ -13,60 +13,62 @@ ...@@ -13,60 +13,62 @@
<? endif; ?> <? endif; ?>
<? if (!isset($this->layout()->renderingError)): ?> <? if (!isset($this->layout()->renderingError)): ?>
<div class="collapse navbar-collapse" id="header-collapse"> <div class="collapse navbar-collapse" id="header-collapse">
<ul role="navigation" class="nav navbar-nav navbar-right flip"> <nav>
<? if ($this->feedback()->tabEnabled()): ?> <ul class="nav navbar-nav navbar-right flip">
<li> <? if ($this->feedback()->tabEnabled()): ?>
<a id="feedbackLink" class="modal-link" href="<?=$this->url('feedback-home') ?>"><i class="fa fa-envelope"></i> <?=$this->transEsc("Feedback")?></a> <li>
</li> <a id="feedbackLink" class="modal-link" href="<?=$this->url('feedback-home') ?>"><i class="fa fa-envelope"></i> <?=$this->transEsc("Feedback")?></a>
<? endif; ?> </li>
<? $cart = $this->cart(); if ($cart->isActive()): ?> <? endif; ?>
<li id="cartSummary"> <? $cart = $this->cart(); if ($cart->isActive()): ?>
<a id="cartItems" class="modal-link" title="<?=$this->transEsc('View Book Bag')?>" href="<?=$this->url('cart-home')?>"><i class="fa fa-suitcase"></i> <strong><?=count($cart->getItems())?></strong> <?=$this->transEsc('items')?><?=$cart->isFull() ? ' (' . $this->transEsc('bookbag_full') . ')' : ''?></a> <li id="cartSummary">
</li> <a id="cartItems" class="modal-link" title="<?=$this->transEsc('View Book Bag')?>" href="<?=$this->url('cart-home')?>"><i class="fa fa-suitcase"></i> <strong><?=count($cart->getItems())?></strong> <?=$this->transEsc('items')?><?=$cart->isFull() ? ' (' . $this->transEsc('bookbag_full') . ')' : ''?></a>
<? endif; ?> </li>
<? if (is_object($account) && $account->loginEnabled()): // hide login/logout if unavailable ?> <? endif; ?>
<li class="logoutOptions<? if(!$account->isLoggedIn()): ?> hidden<? endif ?>"> <? if (is_object($account) && $account->loginEnabled()): // hide login/logout if unavailable ?>
<a href="<?=$this->url('myresearch-home', array(), array('query' => array('redirect' => 0)))?>" class="modal-link" title="<?=$this->transEsc("Your Account")?>"><i class="fa fa-home"></i> <?=$this->transEsc("Your Account")?></a> <li class="logoutOptions<? if(!$account->isLoggedIn()): ?> hidden<? endif ?>">
</li> <a href="<?=$this->url('myresearch-home', array(), array('query' => array('redirect' => 0)))?>" class="modal-link" title="<?=$this->transEsc("Your Account")?>"><i class="fa fa-home"></i> <?=$this->transEsc("Your Account")?></a>
<li class="logoutOptions<? if(!$account->isLoggedIn()): ?> hidden<? endif ?>"> </li>
<a href="<?=$this->url('myresearch-logout')?>" class="modal-link" title="<?=$this->transEsc("Log Out")?>"><i class="fa fa-sign-out"></i> <?=$this->transEsc("Log Out")?></a> <li class="logoutOptions<? if(!$account->isLoggedIn()): ?> hidden<? endif ?>">
</li> <a href="<?=$this->url('myresearch-logout')?>" class="modal-link" title="<?=$this->transEsc("Log Out")?>"><i class="fa fa-sign-out"></i> <?=$this->transEsc("Log Out")?></a>
<li id="loginOptions"<? if($account->isLoggedIn()): ?> class="hidden"<? endif ?>> </li>
<? if ($sessionInitiator = $account->getSessionInitiator($this->serverUrl($this->url('myresearch-home')))): ?> <li id="loginOptions"<? if($account->isLoggedIn()): ?> class="hidden"<? endif ?>>
<a href="<?=$this->escapeHtmlAttr($sessionInitiator)?>"><i class="fa fa-sign-in"></i> <?=$this->transEsc("Institutional Login")?></a> <? if ($sessionInitiator = $account->getSessionInitiator($this->serverUrl($this->url('myresearch-home')))): ?>
<? else: ?> <a href="<?=$this->escapeHtmlAttr($sessionInitiator)?>"><i class="fa fa-sign-in"></i> <?=$this->transEsc("Institutional Login")?></a>
<a href="<?=$this->url('myresearch-userlogin')?>" class="modal-link" title="<?=$this->transEsc("Login")?>"><i class="fa fa-sign-in"></i> <?=$this->transEsc("Login")?></a> <? else: ?>
<? endif; ?> <a href="<?=$this->url('myresearch-userlogin')?>" class="modal-link" title="<?=$this->transEsc("Login")?>"><i class="fa fa-sign-in"></i> <?=$this->transEsc("Login")?></a>
</li> <? endif; ?>
<? endif; ?> </li>
<? endif; ?>
<? if (isset($this->layout()->themeOptions) && count($this->layout()->themeOptions) > 1): ?> <? if (isset($this->layout()->themeOptions) && count($this->layout()->themeOptions) > 1): ?>
<li class="dropdown"> <li class="dropdown">
<form method="post" name="themeForm" id="themeForm"> <form method="post" name="themeForm" id="themeForm">
<input type="hidden" name="ui"/> <input type="hidden" name="ui"/>
</form> </form>
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><?=$this->transEsc("Theme")?> <b class="caret"></b></a> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><?=$this->transEsc("Theme")?> <b class="caret"></b></a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<? foreach ($this->layout()->themeOptions as $current): ?> <? foreach ($this->layout()->themeOptions as $current): ?>
<li<?=$current['selected'] ? ' class="active"' : ''?>><a href="#" onClick="document.themeForm.ui.value='<?=$this->escapeHtmlAttr($current['name'])?>';document.themeForm.submit()"><?=$this->transEsc($current['desc'])?></a></li> <li<?=$current['selected'] ? ' class="active"' : ''?>><a href="#" onClick="document.themeForm.ui.value='<?=$this->escapeHtmlAttr($current['name'])?>';document.themeForm.submit()"><?=$this->transEsc($current['desc'])?></a></li>
<? endforeach; ?> <? endforeach; ?>
</ul> </ul>
</li> </li>
<? endif; ?> <? endif; ?>
<? if (isset($this->layout()->allLangs) && count($this->layout()->allLangs) > 1): ?> <? if (isset($this->layout()->allLangs) && count($this->layout()->allLangs) > 1): ?>
<li class="dropdown"> <li class="dropdown">
<form method="post" name="langForm" id="langForm"> <form method="post" name="langForm" id="langForm">
<input type="hidden" name="mylang"/> <input type="hidden" name="mylang"/>
</form> </form>
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><?=$this->transEsc("Language")?> <b class="caret"></b></a> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><?=$this->transEsc("Language")?> <b class="caret"></b></a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<? foreach ($this->layout()->allLangs as $langCode => $langName): ?> <? foreach ($this->layout()->allLangs as $langCode => $langName): ?>
<li<?=$this->layout()->userLang == $langCode ? ' class="active"' : ''?>><a href="#" onClick="document.langForm.mylang.value='<?=$langCode?>';document.langForm.submit()"><?=$this->displayLanguageOption($langName)?></a></li> <li<?=$this->layout()->userLang == $langCode ? ' class="active"' : ''?>><a href="#" onClick="document.langForm.mylang.value='<?=$langCode?>';document.langForm.submit()"><?=$this->displayLanguageOption($langName)?></a></li>
<? endforeach; ?> <? endforeach; ?>
</ul> </ul>
</li> </li>
<? endif; ?> <? endif; ?>
</ul> </ul>
</nav>
</div> </div>
<? endif; ?> <? endif; ?>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment