<div class="comm js-comm<?if($GID$='4')?> comm--admin<?endif?>">
<div class="comm__header d-flex ai-center">
<div class="comm__img img-fixed-size js-comm-avatar"><img src="<?if($AVATAR_URL$)?>$AVATAR_URL$<?else?>/dleimages/noavatar.png<?endif?>" alt="<?if($USERNAME$)?>$USERNAME$<?else?>$NAME$<?endif?>"></div>
<div class="comm__meta flex-grow-1">
<div class="comm__author ws-nowrap js-comm-author"><?if($USERNAME$)?><a href="$PROFILE_URL$" target="_blank">$USERNAME$</a><?else?>$NAME$<?endif?></div>
<div class="comm__date ws-nowrap">$DATE$, $TIME$</div>
</div>

<div class="comm__rating d-flex ai-center ws-nowrap" data-text="Согласны?">
<?if($GOOD_COMMENT_URL$)?><a href="$GOOD_COMMENT_URL$"><span class="fal fa-thumbs-up"></span></a><?else?><a href="javascript://" title="Вы не можете оценить комментарий."><span class="fal fa-thumbs-up"></span></a><?endif?>
<?if($COMMENT_RATING$<0)?> 
<span class="myWinError count"><b>$COMMENT_RATING$</b></span> 
<?else?> 
<?if($COMMENT_RATING$=0)?> 
<span style="color:gray;" class="count"><b>$COMMENT_RATING$</b></span> 
<?else?> 
<span class="myWinSuccess count"><b>+$COMMENT_RATING$</b></span> 
<?endif?> 
<?endif?>
<?if($BAD_COMMENT_URL$)?><a href="$BAD_COMMENT_URL$"><span class="fal fa-thumbs-down"></span></a><?else?><a href="javascript://" title="Вы не можете оценить комментарий."><span class="fal fa-thumbs-down"></span></a><?endif?>
</div>

</div>

<div class="comm__bd">
<?if($MODER_PANEL$)?><div style="float: right;">$MODER_PANEL$</div><?endif?>
<div class="comm__main full-text clearfix">$MESSAGE$</div>

<?if($ANSWER_URL$)?>
<div class="comm__footer d-flex ai-center">
<ul class="comm__action d-flex ai-center">
<li class="comm__action-reply fal fa-chevron-down fa-pull-right"><a href="$ANSWER_URL$">Ответить</a></li>
</ul>
<?endif?>

</div>
</div>