[#escape x as (x)!?html] [#assign commentIndex = 1/] [#macro printComment parent]
[#if parent.parent??] [@printComment parent=parent.parent/] [/#if]
[#if parent.creator.id==0]匿名网友[#else]${parent.creator.username}[/#if]
${commentIndex}[#assign commentIndex = commentIndex+1/]
[#noescape]${bbcode(parent.text)}[/#noescape]
[/#macro]
[#assign info=getInfo(Param.fid)/] [#assign status=info.getCommentStatus(user,groups)/] [#assign conf = site.getConf('com.jspxcms.core.domain.SiteComment')/] [#if status != 0] [@CommentList fid=Param.fid sort='score desc,creationDate desc' limit=5;list] [#if list?size > 0]
热门评论 （${info.bufferComments}人评论）

[#list list as comment]
- [#if comment.creator.id!=0][/#if][#if comment.creator.id!=0][/#if]
  [#if comment.creator.id==0]匿名网友[#else]${comment.creator.username}[/#if]
  ${comment.creationDate?string("yyyy-MM-dd HH:mm:ss")}
  [#if comment.parent??]
  [#assign commentIndex = 1/] [@printComment parent=comment.parent/]
  [/#if]
  [#noescape]${bbcode(comment.text)}[/#noescape]
  点赞(${comment.score})回复
  [#if status == 1]
  您没有评论的权限
  [#elseif status == 2]
  请登录后再发表评论
  [#elseif status == 3]
  [/#if]
[/#list]

[/#if] [/@CommentList]
网友评论
[#if status == 1]
您没有评论的权限
[#elseif status == 2]
请登录后再发表评论
[#elseif status == 3]
[/#if] [/#if] [/#escape]