Skip to content
Snippets Groups Projects
Commit 6da131d5 authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Move MyResearch menu icons to the left side for better responsiveness.

parent a4e7b8d7
No related merge requests found
...@@ -2,64 +2,54 @@ ...@@ -2,64 +2,54 @@
<div class="list-group"> <div class="list-group">
<? if ($this->userlist()->getMode() !== 'disabled'): ?> <? if ($this->userlist()->getMode() !== 'disabled'): ?>
<a href="<?=$this->url('myresearch-favorites')?>" class="list-group-item<?=$this->active == 'favorites' ? ' active' : ''?>"> <a href="<?=$this->url('myresearch-favorites')?>" class="list-group-item<?=$this->active == 'favorites' ? ' active' : ''?>">
<?=$this->transEsc('Favorites')?> <i class="fa fa-fw fa-star"></i> <?=$this->transEsc('Favorites')?>
<span class="pull-right flip"><i class="fa fa-fw fa-star"></i></span>
</a> </a>
<? endif; ?> <? endif; ?>
<? if ('ils-none' !== $this->ils()->getOfflineMode()): ?> <? if ('ils-none' !== $this->ils()->getOfflineMode()): ?>
<? if ($this->ils()->checkCapability('getMyTransactions')): ?> <? if ($this->ils()->checkCapability('getMyTransactions')): ?>
<a href="<?=$this->url('myresearch-checkedout')?>" class="list-group-item<?=$this->active == 'checkedout' ? ' active' : ''?>"> <a href="<?=$this->url('myresearch-checkedout')?>" class="list-group-item<?=$this->active == 'checkedout' ? ' active' : ''?>">
<?=$this->transEsc('Checked Out Items')?> <i class="fa fa-fw fa-book"></i> <?=$this->transEsc('Checked Out Items')?>
<span class="pull-right flip"><i class="fa fa-fw fa-book"></i></span>
</a> </a>
<? endif; ?> <? endif; ?>
<? if ($this->ils()->checkCapability('getMyHolds')): ?> <? if ($this->ils()->checkCapability('getMyHolds')): ?>
<a href="<?=$this->url('myresearch-holds')?>" class="list-group-item<?=$this->active == 'holds' ? ' active' : ''?>"> <a href="<?=$this->url('myresearch-holds')?>" class="list-group-item<?=$this->active == 'holds' ? ' active' : ''?>">
<?=$this->transEsc('Holds and Recalls')?> <i class="fa fa-fw fa-flag"></i> <?=$this->transEsc('Holds and Recalls')?>
<span class="pull-right flip"><i class="fa fa-fw fa-flag"></i></span>
</a> </a>
<? endif; ?> <? endif; ?>
<? if ($this->ils()->checkFunction('StorageRetrievalRequests')): ?> <? if ($this->ils()->checkFunction('StorageRetrievalRequests')): ?>
<a href="<?=$this->url('myresearch-storageretrievalrequests')?>" class="list-group-item<?=$this->active == 'storageRetrievalRequests' ? ' active' : ''?>"> <a href="<?=$this->url('myresearch-storageretrievalrequests')?>" class="list-group-item<?=$this->active == 'storageRetrievalRequests' ? ' active' : ''?>">
<?=$this->transEsc('Storage Retrieval Requests')?> <i class="fa fa-fw fa-archive"></i> <?=$this->transEsc('Storage Retrieval Requests')?>
<span class="pull-right flip"><i class="fa fa-fw fa-archive"></i></span>
</a> </a>
<? endif; ?> <? endif; ?>
<? if ($this->ils()->checkFunction('ILLRequests')): ?> <? if ($this->ils()->checkFunction('ILLRequests')): ?>
<a href="<?=$this->url('myresearch-illrequests')?>" class="list-group-item<?=$this->active == 'ILLRequests' ? ' active' : ''?>"> <a href="<?=$this->url('myresearch-illrequests')?>" class="list-group-item<?=$this->active == 'ILLRequests' ? ' active' : ''?>">
<?=$this->transEsc('Interlibrary Loan Requests')?> <i class="fa fa-fw fa-exchange"></i> <?=$this->transEsc('Interlibrary Loan Requests')?>
<span class="pull-right flip"><i class="fa fa-fw fa-exchange"></i></span>
</a> </a>
<? endif; ?> <? endif; ?>
<? if ($this->ils()->checkCapability('getMyFines')): ?> <? if ($this->ils()->checkCapability('getMyFines')): ?>
<a href="<?=$this->url('myresearch-fines')?>" class="list-group-item<?=$this->active == 'fines' ? ' active' : ''?>"> <a href="<?=$this->url('myresearch-fines')?>" class="list-group-item<?=$this->active == 'fines' ? ' active' : ''?>">
<?=$this->transEsc('Fines')?> <i class="fa fa-fw fa-usd"></i> <?=$this->transEsc('Fines')?>
<span class="pull-right flip"><i class="fa fa-fw fa-usd"></i></span>
</a> </a>
<? endif; ?> <? endif; ?>
<? if ($this->ils()->checkCapability('getMyProfile')): ?> <? if ($this->ils()->checkCapability('getMyProfile')): ?>
<a href="<?=$this->url('myresearch-profile')?>" class="list-group-item<?=$this->active == 'profile' ? ' active' : ''?>"> <a href="<?=$this->url('myresearch-profile')?>" class="list-group-item<?=$this->active == 'profile' ? ' active' : ''?>">
<?=$this->transEsc('Profile')?> <i class="fa fa-fw fa-user"></i> <?=$this->transEsc('Profile')?>
<span class="pull-right flip"><i class="fa fa-fw fa-user"></i></span>
</a> </a>
<? endif; ?> <? endif; ?>
<? $user = $this->auth()->isLoggedIn(); if ($user && $user->libraryCardsEnabled()): ?> <? $user = $this->auth()->isLoggedIn(); if ($user && $user->libraryCardsEnabled()): ?>
<a href="<?=$this->url('librarycards-home')?>" class="list-group-item<?=$this->active == 'librarycards' ? ' active' : ''?>"> <a href="<?=$this->url('librarycards-home')?>" class="list-group-item<?=$this->active == 'librarycards' ? ' active' : ''?>">
<?=$this->transEsc('Library Cards')?> <i class="fa fa-fw fa-barcode"></i> <?=$this->transEsc('Library Cards')?>
<span class="pull-right flip"><i class="fa fa-fw fa-barcode"></i></span>
</a> </a>
<? endif; ?> <? endif; ?>
<? endif; ?> <? endif; ?>
<? if ($this->accountCapabilities()->getSavedSearchSetting() === 'enabled'): ?> <? if ($this->accountCapabilities()->getSavedSearchSetting() === 'enabled'): ?>
<a href="<?=$this->url('search-history')?>?require_login" class="list-group-item<?=$this->active == 'history' ? ' active' : ''?>"> <a href="<?=$this->url('search-history')?>?require_login" class="list-group-item<?=$this->active == 'history' ? ' active' : ''?>">
<?=$this->transEsc('history_saved_searches')?> <i class="fa fa-fw fa-search"></i> <?=$this->transEsc('history_saved_searches')?>
<span class="pull-right flip"><i class="fa fa-fw fa-search"></i></span>
</a> </a>
<? endif; ?> <? endif; ?>
<? if ($user = $this->auth()->isLoggedIn()): ?> <? if ($user = $this->auth()->isLoggedIn()): ?>
<a href="<?=$this->url('myresearch-logout')?>" class="list-group-item"> <a href="<?=$this->url('myresearch-logout')?>" class="list-group-item">
<?=$this->transEsc("Log Out")?> <i class="fa fa-fw fa-sign-out"></i> <?=$this->transEsc("Log Out")?>
<span class="pull-right flip"><i class="fa fa-fw fa-sign-out"></i></span>
</a> </a>
<? endif; ?> <? endif; ?>
</div> </div>
...@@ -67,8 +57,7 @@ ...@@ -67,8 +57,7 @@
<h4><?=$this->transEsc('Preferences')?></h4> <h4><?=$this->transEsc('Preferences')?></h4>
<div class="list-group"> <div class="list-group">
<a href="<?=$this->url('myresearch-changepassword') ?>" class="list-group-item<?=$this->active == 'newpassword' ? ' active' : ''?>"> <a href="<?=$this->url('myresearch-changepassword') ?>" class="list-group-item<?=$this->active == 'newpassword' ? ' active' : ''?>">
<?=$this->transEsc('Change Password') ?> <i class="fa fa-fw fa-lock"></i> <?=$this->transEsc('Change Password') ?>
<span class="pull-right flip"><i class="fa fa-fw fa-lock"></i></span>
</a> </a>
</div> </div>
<? endif; ?> <? endif; ?>
...@@ -76,8 +65,7 @@ ...@@ -76,8 +65,7 @@
<h4><?=$this->transEsc('Your Lists')?></h4> <h4><?=$this->transEsc('Your Lists')?></h4>
<div class="list-group"> <div class="list-group">
<a href="<?=$this->url('myresearch-favorites')?>" class="list-group-item<?=$this->active == 'favorites' ? ' active' : ''?>"> <a href="<?=$this->url('myresearch-favorites')?>" class="list-group-item<?=$this->active == 'favorites' ? ' active' : ''?>">
<?=$this->transEsc('Your Favorites')?> <i class="fa fa-fw fa-star"></i> <?=$this->transEsc('Your Favorites')?>
<span class="pull-right flip"><i class="fa fa-fw fa-star"></i></span>
</a> </a>
<? $lists = $user->getLists() ?> <? $lists = $user->getLists() ?>
<? foreach ($lists as $list): ?> <? foreach ($lists as $list): ?>
...@@ -87,8 +75,7 @@ ...@@ -87,8 +75,7 @@
</a> </a>
<? endforeach; ?> <? endforeach; ?>
<a href="<?=$this->url('editList', array('id'=>'NEW'))?>" title="<?=$this->transEsc('Create a List') ?>" class="list-group-item"> <a href="<?=$this->url('editList', array('id'=>'NEW'))?>" title="<?=$this->transEsc('Create a List') ?>" class="list-group-item">
<?=$this->transEsc('Create a List') ?> <i class="fa fa-fw fa-plus"></i> <?=$this->transEsc('Create a List') ?>
<span class="pull-right flip"><i class="fa fa-fw fa-plus"></i></span>
</a> </a>
</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