{volist name="data" id="v"} {if condition="in_array($v['id'],$select)"} {else /} {/if} {if condition="isset($v['children']) && !empty($v['children'])"} {else /} {/if} {$v.name} {if condition="isset($v['children']) && !empty($v['children'])"} {:widget_view('org/authtreeapp',['data'=>$v['children'],'select'=>$select,'depth'=>$depth + 1])} {/if} {/volist}