{* * $Revision: 15342 $ * 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:$theme.params.maxMicroThumbs addEnds=false loadThumbnails=true} {assign var="data" value=$block.core.LoadPeers} {if !empty($data.peers)}
{assign var="lastIndex" value=0} {assign var="columnIndex" value=0} {foreach from=$data.peers item=peer} {assign var="title" value=$peer.title|default:$peer.pathComponent} {if ($columnIndex == 4)} {assign var="columnIndex" value=0} {/if} {if (!$peer.canContainChildren && $peer.entityType != 'GalleryLinkItem')} {if ($peer.peerIndex == $data.thisPeerIndex)} {else} {/if} {assign var="lastIndex" value=$peer.peerIndex} {assign var="columnIndex" value=$columnIndex+1} {/if} {/foreach}
{if isset($peer.thumbnail)} {g->image item=$peer image=$peer.thumbnail maxSize=40 title="$title"} {else} {g->text text="no thumbnail"} {/if} {strip} {if isset($peer.thumbnail)} {g->image item=$peer image=$peer.thumbnail maxSize=40 title="$title"} {else} {g->text text="no thumbnail"} {/if} {/strip}
{/if}