{strip}
<br />
<div class="display comment">
	<div class="header">
		{if !( $smarty.request.post_comment_request || $post_comment_preview )}
			<a name="editcomments"></a>
		{/if}
		<h2>{tr}Comments{/tr}</h2>
	</div>

	<div class="body">
		<div id="edit_comments" {if $comments_ajax}style="display:none"{/if}>
			{include file="bitpackage:liberty/comments_post_inc.tpl" post_title="Post Comment"}
		</div>

		{include file="bitpackage:liberty/comments_display_option_bar.tpl"}

		{if $comments_ajax && $gBitUser->hasPermission( 'p_liberty_post_comments' )}
			<div class="row">
				<input type="submit" name="post_comment_request" value="{tr}Add Comment{/tr}" onclick="LibertyComment.attachForm('comment_{$gContent->mContentId}', '{$gContent->mContentId}', {if $gContent->mContentId}{$gContent->mContentId}{elseif $commentsParentId}{$commentsParentId}{else}null{/if})"/>
			</div>
		{/if}
		
		<div id="comment_{$gContent->mContentId}"></div>
			{foreach name=comments_loop key=key item=item from=$comments}
				{displaycomment comment="$item"}
			{/foreach}		
		<div id="comment_{$gContent->mContentId}_footer"></div>

		{libertypagination ihash=$commentsPgnHash}
	</div><!-- end .body -->
</div><!-- end .comment -->
{/strip}