diff --git a/themes/finc/templates/header.phtml b/themes/finc/templates/header.phtml new file mode 100644 index 0000000000000000000000000000000000000000..7a2af1eb44ba80a022e21549ac7b0a7836b1d1a9 --- /dev/null +++ b/themes/finc/templates/header.phtml @@ -0,0 +1,77 @@ +<!-- HEADER.PHTML begin --> +<? $account = $this->auth()->getManager(); ?> + <nav class="top-bar" data-topbar data-options="sticky_on:all"> + <ul class="title-area"> + <li class="name"> + <h1><a role="logo" class="navbar-brand" href="<?=$this->url('home')?>"><span class="hide-for-medium-up"><?= $this->transEsc("LibraryName") ?></span><img src="<?=$this->imageLink('headerlogo.png')?>" class="hide-for-small" alt="Logo <?= $this->transEsc("LibraryName") ?>" title="<?= $this->transEsc("LibraryName") ?>"></a></h1> + </li> + <? /*Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone */ ?> + <li class="toggle-topbar menu-icon"><a href="#"><span></span></a></li> + </ul> + <section class="top-bar-section"> + <? if ($this->layout()->searchbox !== false): ?> + <ul class="left list-unstyled show-for-medium-up"> + <?=$this->layout()->searchbox ?> + </ul> + <? endif; ?> + <? if (!isset($this->layout()->renderingError)): ?> + <? /* Right-hand Nav Section */ ?> + <ul class="right"> + <? if ($this->feedback()->tabEnabled()): ?> + <li> + <a id="feedbackLink" class="modal-link" href="<?=$this->url('feedback-home') ?>"><i class="fa fa-envelope"></i> <?=$this->transEsc("Feedback")?></a> + </li> + <? endif; ?> + <? $cart = $this->cart(); if ($cart->isActive()): ?> + <li id="cartSummary"> + <a id="cartItems" class="modal-link" title="<?=$this->transEsc('View Book Bag')?>" href="<?=$this->url('cart-home')?>"><i class="fa fa-clipboard"></i> <strong><?=count($cart->getItems())?></strong> <?=$this->transEsc('items')?><?=$cart->isFull() ? ' (' . $this->transEsc('bookbag_full') . ')' : ''?></a> + </li> + <? endif; ?> + <? if (is_object($account) && $account->loginEnabled()): // hide login/logout if unavailable ?> + <li class="logoutOptions<? if(!$account->isLoggedIn()): ?> hide<? endif ?>"> + <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> + <li class="logoutLink logoutOptions<? if(!$account->isLoggedIn()): ?> hide<? endif ?>"> + <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> + <li id="loginOptions" class="<? if($account->isLoggedIn()): ?> hide<? endif ?>"> + <? if ($sessionInitiator = $account->getSessionInitiator($this->serverUrl($this->url('myresearch-home')))): ?> + <a href="<?=$this->escapeHtmlAttr($sessionInitiator)?>"><i class="fa fa-sign-in"></i> <?=$this->transEsc("Institutional Login")?></a> + <? else: ?> + <a href="<?=$this->url('myresearch-userlogin')?>" class="modal-link" title="<?=$this->transEsc("Login")?>"><i class="fa fa-sign-in"></i> <?=$this->transEsc("Login")?></a> + <? endif; ?> + </li> + <? endif; ?> + + <? if (isset($this->layout()->themeOptions) && count($this->layout()->themeOptions) > 1): ?> + <li class="has-dropdown"> + <form method="post" name="themeForm" id="themeForm"> + <input type="hidden" name="ui"/> + </form> + <a href="#"><?=$this->transEsc("Theme")?></a> + <ul class="dropdown"> + <? 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> + <? endforeach; ?> + </ul> + </li> + <? endif; ?> + + <? if (isset($this->layout()->allLangs) && count($this->layout()->allLangs) > 1): ?> + <li class="has-dropdown"> + <form method="post" name="langForm" id="langForm"> + <input type="hidden" name="mylang"/> + </form> + <a href="#" aria-controls="langmenu" aria-expanded="false"><?=$this->transEsc("Language")?></a> + <ul id="langmenu" class="dropdown"> + <? 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> + <? endforeach; ?> + </ul> + </li> + <? endif; ?> + </ul> + <? endif; ?> + </section> + </nav> +<!-- HEADER.PHTML end --> \ No newline at end of file