{* $Id: comment.tpl 19638 2009-06-16 20:46:27Z changi67 $ *}
{if $comment.doNotShow != 1 }
<div class="post {$thread_style}{if $prefs.feature_comments_moderation eq 'y'} post-approved-{$comment.approved}{/if}" id="threadId{$comment.threadId}">
	<div class="inner"><span class="corners-top"><span></span></span>

	<div class="clearfix postbody">
		{include file='comment-header.tpl'}
		{include file='comment-body.tpl'}
	</div>

{if $thread_style != 'commentStyle_headers'}
	{include file='comment-footer.tpl'}
	<br style="clear: both;" />
{/if}

	<span class="corners-bottom"><span></span></span></div>
</div>
{/if}

{if $first neq 'y' and $comment.replies_info.numReplies > 0 && $comment.replies_info.numReplies != ''}
	{foreach from=$comment.replies_info.replies item="comment"}
		{if $comment.doNotShow != 1 && $thread_style != 'commentStyle_plain' }
		<div class="sub_comment_area">
			<div class="sub_comment">
		{/if}
		{include file='comment.tpl' comment=$comment}
		{if $comment.doNotShow != 1  && $thread_style != 'commentStyle_plain' }
			</div>
		</div>
		{/if}
	{/foreach}
{/if}
