{if $m['comment']==1 || $t['comment']==1}
{php} $count=Db('comment') ->where(array('open'=>1,'tid'=>0,'fid'=>$t['id'],'m'=>$t['m'])) ->count(); $comment=Db('comment') ->where(array('open'=>1,'tid'=>0,'fid'=>$t['id'],'m'=>$t['m'])) ->order('id desc') ->paginate(20); {/php} {if $count}
{$comment->render()}
{/if}
{/if}