diff --git a/modules/planet/conf/module.xml b/modules/planet/conf/module.xml
index 4ff90a523..f63cf1d28 100644
--- a/modules/planet/conf/module.xml
+++ b/modules/planet/conf/module.xml
@@ -48,6 +48,7 @@
+
diff --git a/modules/planet/planet.api.php b/modules/planet/planet.api.php
index e23d70bf3..b4fda7a44 100644
--- a/modules/planet/planet.api.php
+++ b/modules/planet/planet.api.php
@@ -37,12 +37,30 @@
$oModule->add('pageNavigation', Context::get('page_navigation'));
}
+ function dispReplyList(&$oModule){
+ $reply_list = Context::get('reply_list');
+ $output = array();
+ if(count($reply_list)) {
+ foreach($reply_list as $key => $val) {
+ unset($obj);
+ $obj->mid = $val->mid;
+ $obj->document_srl = $val->document_srl;
+ $obj->nick_name = $val->nick_name;
+ $obj->content = $val->content;
+ $obj->regdate = $val->regdate;
+ $output[] = $obj;
+ }
+ }
+ $oModule->add('planetReplyList', $output );
+ $oModule->add('pageNavigation', Context::get('page_navigation'));
+ }
+
function arrangeContentList($content_list) {
$output = array();
if(count($content_list)) {
foreach($content_list as $key => $val) {
$item = null;
- $item = $val->gets('mid','document_srl','nick_name','content','postscript','voted_count','regdate','tag_list');
+ $item = $val->gets('mid','document_srl','nick_name','content','postscript','voted_count','regdate','tag_list','comment_count');
$item->photo = $val->getPlanetPhotoSrc();
$output[] = $item;
}
@@ -50,6 +68,7 @@
return $output;
}
+
function arrangePlanetList($planet_list) {
$output = array();
if(count($planet_list)) {
diff --git a/modules/planet/planet.view.php b/modules/planet/planet.view.php
index 4c724bcbf..297698e45 100644
--- a/modules/planet/planet.view.php
+++ b/modules/planet/planet.view.php
@@ -339,6 +339,14 @@
$this->setTemplateFile('search_planet');
}
+ function dispReplyList(){
+ $page = Context::get('page');
+ $document_srl = Context::get('document_srl');
+ $oPlanetModel = &getModel('planet');
+ $output = $oPlanetModel->getReplyList($document_srl,$page);
+ Context::set('reply_list',$output->data);
+ }
+
}
?>
diff --git a/modules/planet/skins/xe_planet/content_list.html b/modules/planet/skins/xe_planet/content_list.html
index 7c48ca1c6..1cb229736 100644
--- a/modules/planet/skins/xe_planet/content_list.html
+++ b/modules/planet/skins/xe_planet/content_list.html
@@ -1,5 +1,5 @@
-