mirror of https://github.com/1099438829/apeblog
修正评论列表显示
This commit is contained in:
parent
8f28bb8b58
commit
12d64668c6
|
|
@ -662,7 +662,7 @@ function tpl_get_comment_list($id, $type, $pageSize = 10, $orderBy)
|
|||
switch ($type) {
|
||||
case 'top':
|
||||
//根据自定义条件获取文章(where语句)
|
||||
$commentModel = $commentModel->where('document_id', $id);
|
||||
$commentModel = $commentModel->where('document_id', $id)->where('pid', 0);
|
||||
break;
|
||||
case 'son':
|
||||
//获取栏目下文章
|
||||
|
|
|
|||
|
|
@ -208,7 +208,7 @@
|
|||
</div>
|
||||
|
||||
<ol class="commentlist">
|
||||
{ape:comment typeId="$apeField['id']" void='field'}
|
||||
{ape:comment type="top" typeId="$apeField['id']" void='field'}
|
||||
<li class="comment">
|
||||
<div class="comment-item" id="comment-{$field['id']}">
|
||||
<div class="comment-media">
|
||||
|
|
@ -229,7 +229,7 @@
|
|||
</span>
|
||||
</div>
|
||||
</div>
|
||||
{ape:comment type="top" typeId="$field['id']" void="vo"}
|
||||
{ape:comment type="son" typeId="$field['id']" void="vo"}
|
||||
<ol class="children">
|
||||
<li class="comment">
|
||||
<div class="comment-item" id="comment-{$vo.id}">
|
||||
|
|
|
|||
Loading…
Reference in New Issue