{function review_comments} {$depth=-1} {foreach $comments as $comment} {if $comment.depth < $depth} {$loop=($depth-$comment.depth)} {section name="end-comment" loop=$loop} {/section} {$depth=$comment.depth} {/if} {if $comment.depth == $depth}
  • {/if} {if $comment.depth > $depth} {/section} {/function} {if empty($no_wrapped)} {/if}