{if $post->hasOpenComments}
{ifset $themeOptions->advertising->showBox3}
<div id="advertising-box-3" class="advertising-box">
    {!$themeOptions->advertising->box3Content}
</div>
{/ifset}
{/if}

{if isset($closeable) && ($post->hasOpenComments)}
<div class="closeable">
	<div class="open-button item {if $defaultState == 'opened'}comments-opened{else}comments-closed{/if}">
		{if $defaultState == 'opened'}
			{__ "Close Comments"}
		{else}
			{__ "Show Comments"}
		{/if}
	</div>
{/if}

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

{if $post->comments}

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

	{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->type != 'page' && $post->hasSupportFor('comments')}

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

{/if}

{* translations for parameters *}

{capture $reviewNoun}{_x 'Comment', 'noun'}{/capture}
{capture $reviewLoggedIn}{!__ 'You must be <a href="%s">logged in</a> to post a comment.'|printf: wp_login_url(apply_filters('the_permalink', get_permalink()))}{/capture}
{capture $reviewLeave}{__ 'Leave a Comment'}{/capture}
{capture $reviewReplyTo}{__ 'Leave a Comment to %s'}{/capture}
{capture $reviewCancel}{__ 'Cancel Comment'}{/capture}
{capture $reviewPost}{__ 'Post Comment'}{/capture}

{commentForm
	comment_field => '<p class="comment-form-comment"><label for="comment">' . $reviewNoun . '</label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>',
	must_log_in => '<p class="must-log-in">' .  $reviewLoggedIn . '</p>',
	title_reply => $reviewLeave,
	title_reply_to => $reviewReplyTo,
	cancel_reply_link => $reviewCancel,
	label_submit => $reviewPost
}

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

{if isset($closeable) && ($post->hasOpenComments)}
</div> 			<!-- /.closeable -->
{/if}