	<p>{t}Всего комментариев{/t}: {$comments_item->counter}</p>
	<div id="comments" class="comments">
		{if !getModulePath('lc_comments')}
			<span style="color:red">{t}Модуль комментариев не установлен{/t}</span>
		{else}
			<a class="btn btn-default" title="{t}добавить комментарий{/t}" href="{url action="add" href=getModulePath('lc_comments') var1=$comments_item->id}"><img src="/skins/default/images/icons/add.png" alt="{t}добавить комментарий{/t}" /></a>
		{/if}
		{foreach $comments as $comment}
			{if $level<$comment->level}
				<ul class="hcomments">
			{/if}
			<li class="comment_wrapper">
			{include file="lc_comments/comment_item.tpl"}
			{$next_level=$comments[$key+1]->level|default:1}
			{if $next_level<=$comment->level}
				</li>
			{/if}
			{if $comment->level>$next_level}
				{for $i=$next_level to $comment->level-1}
					</ul>
					</li>
				{/for}
			{/if}
		
			{$level=$comment->level}
		{/foreach}
	</div>
{if $_cfg.module.lc_comments.rating_enable}
	<script type="text/javascript">
		voter.url['comment']='{url href=getModulePath('lc_comments') action="json" type='json'}';
		voter.token='{$_user->token}';
	</script>
{/if}