Use this for ver 3.5.0 and it works with filesystem images too.
Displays two images per row.
Quote:
{if $images ne ""}
{capture name=dialog}
<table border=0 width=100%>
<tr>
{section name=image loop=$images}
{if $smarty.section.image.index is div by 2}
</tr>
<tr valign="top">
{/if}
<td valign="top">
<table border=0 width=100%>
<tr>
<td align=center valign=top>
{if $images[image].avail eq "Y"}
{if $images[image].tmbn_url}
[img]{$images[image].tmbn_url}[/img]
{else}
[img]{$xcart_web_dir}/product_image.php?imageid={$images[image].imageid}[/img]
{/if}
{/if}
</td>
</tr>
<tr>
<td align=center valign=top>
{$images[image].alt}
</td>
</tr>
</table>
</td>
{/section}
</td>
</tr>
</table>
{/capture}
{include file="dialog.tpl" title=$lng.lbl_detailed_images content=$smarty.capture.dialog extra="width=100%"}
{/if}
|