mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-22 03:42:18 +09:00
댓글을 관리자가 정한 수만큼 페이징을 하여 보여주도록 기능 추가. 모듈의 업데이트 필요
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3757 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d122c1a0b4
commit
21dcd2d191
37 changed files with 490 additions and 45 deletions
|
|
@ -375,9 +375,24 @@
|
|||
if(!$this->allowComment() || !$this->getCommentCount()) return;
|
||||
if(!$this->isGranted() && $this->isSecret()) return;
|
||||
|
||||
$cpage = Context::get('cpage');
|
||||
if(!$cpage) $cpage = 1;
|
||||
|
||||
$oCommentModel = &getModel('comment');
|
||||
$output = $oCommentModel->getCommentList($this->document_srl, $is_admin);
|
||||
return $output;
|
||||
$output = $oCommentModel->getCommentList($this->document_srl, $cpage, $is_admin);
|
||||
if(!$output->toBool() || !count($output->data)) return;
|
||||
|
||||
$oCommentModel = &getModel('comment');
|
||||
foreach($output->data as $key => $val) {
|
||||
$oCommentItem = new commentItem();
|
||||
$oCommentItem->setAttribute($val);
|
||||
$comment_list[$val->comment_srl] = $oCommentItem;
|
||||
}
|
||||
|
||||
Context::set('comment_page_navigation', $output->page_navigation);
|
||||
Context::set('cpage', $output->page_navigation->cur_page);
|
||||
|
||||
return $comment_list;
|
||||
}
|
||||
|
||||
function getTrackbackCount() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue