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

View choice icons are now clickable.

parent 4da91154
No related merge requests found
<div class="pull-right">
<? $viewList = $this->params->getViewList(); if (count($viewList) > 1): ?>
<? foreach ($viewList as $viewType => $viewData): ?>
<img src="<?=$this->imageLink('view_'.$viewType.'.png') ?>"<? if($viewData['selected']): ?> title="<?=$this->transEsc($viewData['desc']) ?> <?=$this->transEsc('view already selected') ?>" <? endif ?> alt="<?=$this->transEsc($viewData['desc'])?>"/>
<? if (!$viewData['selected']): ?>
<a href="<?=$this->results->getUrlQuery()->setViewParam($viewType)?>" title="<?=$this->transEsc('Switch view to')?> <?=$this->transEsc($viewData['desc'])?>" >
<? endif; ?>
<img src="<?=$this->imageLink('view_'.$viewType.'.png') ?>"<? if($viewData['selected']): ?> title="<?=$this->transEsc($viewData['desc']) ?> <?=$this->transEsc('view already selected') ?>" <? endif ?> alt="<?=$this->transEsc($viewData['desc'])?>"/>
<?=ucfirst($this->transEsc($viewType)) ?> <?=$this->transEsc('view') ?><? if (!$viewData['selected']): ?></a><? endif; ?>&nbsp;
<? endforeach; ?>
<? 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