{l}カテゴリ一覧{/l} |
{* ----- 配列の要素数取得 ----- *} {assign var="arcnt" value=$_lcatrecs|@count} {if $_lcatrecs > 0} {* ----- 取得した要素数から分割して出力する件数を算出 ----- *} {math equation=x/2+1 x=$arcnt format=%.0f assign=sepcnt} {foreach from=$_lcatrecs name='_lcatrec' item='_lcatrec'} {if $smarty.foreach._lcatrec.iteration == $sepcnt} | ![]() |
{/if}
{if $_lcatrec.child|@count > 0} {/if}
{foreach from=$_lcatrec.child name='_mcatrec' item='_mcatrec'}
{if $smarty.foreach._mcatrec.index > 0}|{/if}
{$_mcatrec.category_name|word_breaker|neo_emoji}
{/foreach}
{if $_lcatrec.child|@count > 0} {/if}
{/foreach}
{else}
{l}カテゴリはありません{/l}
{/if}
|