From 48659bcb317bcee84928b09d2eb76f65877aa124 Mon Sep 17 00:00:00 2001 From: Eoin Kilfeather <ekilfeather@gmail.com> Date: Fri, 23 Feb 2018 17:47:46 +0000 Subject: [PATCH] Improve highlighting in collection browse jump menu (#1120) --- themes/bootstrap3/templates/collections/home.phtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/bootstrap3/templates/collections/home.phtml b/themes/bootstrap3/templates/collections/home.phtml index 3140eaa4dab..74462f12b23 100644 --- a/themes/bootstrap3/templates/collections/home.phtml +++ b/themes/bootstrap3/templates/collections/home.phtml @@ -55,7 +55,7 @@ <ul class="pagination"> <? foreach ($letters as $letter): ?> - <li<? if($letter === $from): ?> class="active"<?endif?>><a href="<?=$this->url('collections-home')?>?from=<?=urlencode($letter)?><?=$this->escapeHtmlAttr($filterString)?>"><?=$this->escapeHtml($letter)?></a></li> + <li<? if (strcasecmp($letter, $from) == 0): ?> class="active"<?endif?>><a href="<?=$this->url('collections-home')?>?from=<?=urlencode($letter)?><?=$this->escapeHtmlAttr($filterString)?>"><?=$this->escapeHtml($letter)?></a></li> <? endforeach; ?> </ul> <?=$pageLinks ?> -- GitLab