<{strip}> <{* スレッド表示用テンプレート *}> <{if empty($parents|smarty:nodefaults) && count($action.topics) > 0}> <{assign var="parents" value=$action.topics.0}> <{assign var="depth" value=0}> <{/if}> <{foreach from=$parents|smarty:nodefaults key=postID item=post}>
<{" "|str_repeat:$depth}> <{include file = "bbs_mobile_subject.html"}>
<{if !empty($action.topics.$postID|smarty:nodefaults)}> <{assign var="parents" value=$action.topics.$postID}> <{assign var="depth" value="`$depth+1`"}> <{include file = "bbs_mobile_thread.html"}> <{assign var="depth" value="`$depth-1`"}> <{/if}> <{foreachelse}> <{/foreach}> <{/strip}>