调用当前信息的评论

来源: https://destoon.cc/ 日期: 2019-03-01 19:57:06 人气: - 评论: 0

调用当前信息的评论

<!--{tag("table=destoot_comment&condition=status=3 and item_id=$itemid&pagesize=10&datetype=6&order=addtime desc&template=list_comment",-1)}-->


在tag下新建一个list_comment.htm,模板里写

<link rel="stylesheet" type="text/css" href="{SKIN_PATH}comment.css" />
{loop $tags $i $t}
<div class="comment comment_sp">
<div class="comment_title"> 
<span id="i_{$t[itemid]}">{if $t[username]}{$t[username]}{else}Guest{/if} 于 <span class="comment_time">{timetodate($t['addtime'], $datetype)}</span> 评论道:</span> </div>
<div class="comment_content" id="c_{$t[itemid]}">{$t[content]}</div>
</div>
{/loop}

喜欢就点赞,转发加评论