{* * $Revision: 1.3 $ * If you want to customize this file, do not edit it directly since future upgrades * may overwrite it. Instead, copy it into a new directory called "local" and edit that * version. Gallery will look for that file first and use it if it exists. *} {g->callback type="core.LoadPeers" item=$item|default:$theme.item windowSize=$windowSize|default:null} {assign var="data" value=$block.core.LoadPeers} {if !empty($data.peers)}

{$data.parent.title|default:$data.parent.pathComponent|markup}

{assign var="lastIndex" value=0} {foreach from=$data.peers item=peer} {assign var="title" value=$peer.title|default:$peer.pathComponent} {if ($peer.peerIndex - $lastIndex > 1)} ... {/if} {if ($peer.peerIndex == $data.thisPeerIndex)} {g->text text="%d. %s" arg1=$peer.peerIndex arg2=$title|markup:strip|entitytruncate:14} {else} {g->text text="%d. %s" arg1=$peer.peerIndex arg2=$title|markup:strip|entitytruncate:14} {/if} {assign var="lastIndex" value=$peer.peerIndex} {/foreach}
{/if}