-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomment_list.tpl
executable file
·37 lines (29 loc) · 1.16 KB
/
comment_list.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<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">
<a href="{$oUser->getUserWebPath()}"><img src="{$oUser->getProfileAvatarPath(48)}" alt="avatar" width="40px" class="avatar" /></a>
<div class="path">
<a href="{$oTopic->getUrl()}">{$oTopic->getTitle()|escape:'html'}</a>
<a href="{$oTopic->getUrl()}#comments">{$oTopic->getCountComment()}</a>
<a href="{$oTopic->getUrl()}#comment{$oComment->getId()}">#</a>
</div>
<div class="info">
<span class="username"><a href="{$oUser->getUserWebPath()}">{$oUser->getLogin()}</a></span>
<span class="date">{date_format date=$oComment->getDate()}</span>
</div>
<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"}