{if $post->hasOpenComments && $post->hasSupportFor('comments')}
	
	{ifset $themeOptions->advertising->showBox3}
	<div id="advertising-box-3" class="advertising-box">
	    {!$themeOptions->advertising->box3Content}
	</div>
	{/ifset}

	<div class="comments-container{if !$post->hasOpenComments && $post->hasSupportFor('comments')} closed{/if}">

		{ifset $closeable}
		<div class="closeable">
			<div class="open-button {if $defaultState == 'opened'}comments-opened{else}comments-closed{/if}" data-show="{__ 'Show Comments'}" data-close="{__ 'Close Comments'}">
				{if $defaultState == 'opened'}
					{__ "Close Comments"}
				{else}
					{__ "Show Comments"}
				{/if}
			</div>
		{/ifset}

		<div id="comments">
		{if !$post->isPasswordRequired}

			{if $post->comments}

				<h2 id="comments-title">
					{_n 'Comment', 'Comments', $post->commentsCount} ({$post->commentsCount})
				</h2>

				{include snippets/comments-pagination.php, location => 'above'}

				{listComments comments => $post->comments}
					{if $comment->type == 'pingback' or $comment->type == 'trackback'}
					<li class="post pingback">
						<p>
						{__ 'Pingback'}
						{!$comment->author->link}
						{editCommentLink $comment->id}
						</p>
					{else}

					<li class="{$comment->classes}">

						<article id="comment-{$comment->id}" class="comment">
							
							<div class="left controls clearfix">
								<div class="comment-avatar">{!$comment->author->avatar}</div>
							</div>

							<div class="body clearfix">
								<div class="arrow left"><!--  --></div>
								<div class="content ">
								
									<div>
										<span class="author vcard"><cite class="fn">{!$comment->author->nameWithLink}</cite></span><span class="eh">&nbsp;&nbsp;|&nbsp;&nbsp;</span><span class="date"><a href="{$comment->url}" class="comment-date"><time pubdate datetime="{$comment->date|date:'c'}">{$comment->date|date:$site->dateFormat} {_x 'at', 'comment publish time'} {$comment->date|date:$site->timeFormat}</time></a></span>
										
										<div class="reply">
											{capture $replyTitle} {!__ 'Reply <span>&darr;</span>'} {/capture}
											{commentReplyLink $replyTitle, $comment->args, $comment->depth, $comment->id}
										</div>
										{editCommentLink $comment->id}
									</div>
								
									{if !$comment->approved}
										<em class="comment-awaiting-moderation">{__ 'Your comment is awaiting moderation.'}</em>
									{/if}
									{!$comment->content}
								</div>
							</div>

						</article>
					{/if}
				{/listComments}

				{include snippets/comments-pagination.php, location => 'below'}

			{elseif !$post->hasOpenComments && $post->hasSupportFor('comments')}

				<p class="nocomments">{__ 'Comments are closed.'}</p>

			{/if}

			{commentForm}

		{else}
			<p class="nopassword">{__ 'This post is password protected. Enter the password to view any comments.'}</p>
		{/if}
		</div><!-- #comments -->

		{ifset $closeable}
		</div><!-- .closeable -->
		{/ifset}

	</div><!-- .comments-container -->
{/if}