Skip to content
Snippets Groups Projects
Commit c2121558 authored by Demian Katz's avatar Demian Katz
Browse files

Added support for collections on home page.

parent 669f638a
No related merge requests found
......@@ -49,6 +49,16 @@
<ul class="span-5">
<? endif; ?>
<? endforeach; ?>
<? /* Special case: collections */ ?>
<? elseif ($field == 'hierarchy_top_title'): ?>
<? $i = 0; foreach ($sortedList as $url => $value): ?>
<? if (++$i > 12): ?>
<li><a href="<?=$this->url('collections-home')?>"><strong><?=$this->transEsc("More options")?>...</strong></a></li>
<? break; ?>
<? else: ?>
<li><a href="<?=$this->url('collections-bytitle')?>?title=<?=urlencode($value)?>"><?=$this->escapeHtml($value)?></a></li>
<? endif; ?>
<? endforeach; ?>
<? else: ?>
<? $i = 0; foreach ($sortedList as $url => $value): ?>
<? if (++$i > 12): ?>
......
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