{strip}
{if $imagelist}
{section name=i loop=$imagelist}
<table cellpadding="0" cellspacing="0" class="gallery_imagelist_table">
<tr>
{section name=o loop=$imagelist[i]}
<td{if $imagelist[i][o.index_prev] && $imagelist[i][o].wide} class="gallery_imagelist_image_not_first_wide"{elseif $imagelist[i][o.index_prev]} class="gallery_imagelist_image_not_first"{elseif $imagelist[i][o].wide} class="gallery_imagelist_image_wide"{/if}>
<a href="{$imagelist[i][o].link}" title="{if #c_lightbox_imagelist#}{$imagelist[i][o].header}{else}{$imagelist[i][o].title}{/if}"{if #c_lightbox_imagelist#} rel="lightbox[]"{/if}>
<img src="{$imagelist[i][o].image}"{if $imagelist[i][o].width && $imagelist[i][o].height} width="{$imagelist[i][o].width}" height="{$imagelist[i][o].height}"{/if} class="gallery_imagelist_image" alt="{$imagelist[i][o].title}">
</a>
</td>
{/section}
</tr>
{if $imagelist[i.index_next]}
<tr>
{section name=o loop=$imagelist[i]}
<td class="gallery_imagelist_divider"></td>
{/section}
</tr>
{/if}
</table>
{/section}
{else}
<div id="error_empty">
{#l_error_empty_no_images#}
</div>
{/if}
{/strip}