1{strip} 2{foreach from=$colorboxFiles.data item=file name=files} 3 {capture name=url}{$colorboxUrl}{$file.$colorboxColumn}{/capture} 4 <a href="{$smarty.capture.url}{if $colorboxColumn eq "id"}&display{/if}" data-box="shadowbox[colorbox{$iColorbox}];type=img" title="{$file.elTitle|escape}"> 5 {if $smarty.foreach.files.first or $params.showallthumbs eq 'y'} 6 <img src="{$smarty.capture.url}{if !empty($colorboxThumb)}&{$colorboxThumb}{/if}"> 7 {/if} 8 </a> 9{/foreach} 10{/strip} 11