mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-09 01:44:25 +03:00
40 lines
1.8 KiB
Smarty
40 lines
1.8 KiB
Smarty
<div class="comments comment-list">
|
|
{foreach from=$aComments item=oComment}
|
|
{assign var="oUser" value=$oComment->getUser()}
|
|
{assign var="oTopic" value=$oComment->getTarget()}
|
|
{assign var="oBlog" value=$oTopic->getBlog()}
|
|
|
|
|
|
<div class="comment">
|
|
<div class="comment-inner">
|
|
<div class="path">
|
|
<a href="{$oBlog->getUrlFull()}" class="blog-name">{$oBlog->getTitle()|escape:'html'}</a> →
|
|
<a href="{$oTopic->getUrl()}">{$oTopic->getTitle()|escape:'html'}</a>
|
|
<a href="{$oTopic->getUrl()}#comments">{$oTopic->getCountComment()}</a>
|
|
</div>
|
|
|
|
|
|
<ul class="info">
|
|
<li class="avatar"><a href="{$oUser->getUserWebPath()}"><img src="{$oUser->getProfileAvatarPath(24)}" alt="avatar" /></a></li>
|
|
<li class="username"><a href="{$oUser->getUserWebPath()}">{$oUser->getLogin()}</a></li>
|
|
<li class="date">{date_format date=$oComment->getDate()}</li>
|
|
<li><a href="{if $oConfig->GetValue('module.comment.nested_per_page')}{router page='comments'}{else}{$oTopic->getUrl()}#comment{/if}{$oComment->getId()}">#</a></li>
|
|
<li class="voting {if $oComment->getRating()>0}positive{elseif $oComment->getRating()<0}negative{/if} {if !$oUserCurrent || $oComment->getUserId()==$oUserCurrent->getId() || strtotime($oComment->getDate())<$smarty.now-$oConfig->GetValue('acl.vote.comment.limit_time')}guest{/if} {if $oVote} voted {if $oVote->getDirection()>0}plus{else}minus{/if}{/if} ">
|
|
<span class="total">{if $oComment->getRating()>0}+{/if}{$oComment->getRating()}</span>
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
<div class="content">
|
|
{if $oComment->isBad()}
|
|
<div style="color: #aaa;">{$oComment->getText()}</div>
|
|
{else}
|
|
{$oComment->getText()}
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/foreach}
|
|
</div>
|
|
|
|
{include file='paging.tpl' aPaging="$aPaging"} |