私は順番に画像の配列を持っています:
1〜3枚がメイン画像です。3+はサムネイルです。
Q)親指を2行に分割するにはどうすればよいですか。
例えば:
<div class="main-images">
{section name="i" loop=$images.rows}
{assign var="rows" value=$images.rows[i]}
{if $smarty.section.i.index <= 2}
<img />
{/if}
{/section}
</div>
<div class="thumbs-images">
{math assign=thumbs_count equation="total - other" total=$images.rowcount other=3}
{section name="i" loop=$images.rows}
{assign var="rows" value=$images.rows[i]}
{if $smarty.section.i.index >= 3}
<img />
{/if}
{/section}
</div>
{if $thumbs_count >= $smarty.section.i.index}<div style="clear:both" />{/if}
したがって、2番目のループの途中で表示されるように何かを追加する必要があります。