mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-21 12:19:56 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1289 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
8547547704
commit
3df305be0f
7 changed files with 42 additions and 115 deletions
|
|
@ -77,7 +77,7 @@
|
|||
$this->setTemplatePath($template_path);
|
||||
|
||||
// rss url
|
||||
if($this->module_info->open_rss != 'N') Context::set('rss_url', getUrl('','mid',$this->mid,'act','dispBoardRss'));
|
||||
if($this->module_info->open_rss != 'N') Context::set('rss_url', getUrl('','mid',$this->mid,'act','dispRss'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -354,46 +354,6 @@
|
|||
$this->setTemplateFile('message');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief RSS 출력
|
||||
**/
|
||||
function dispBoardRss() {
|
||||
// 권한 체크
|
||||
if(!$this->grant->list) return $this->dispBoardMessage('msg_not_permitted');
|
||||
|
||||
// 컨텐츠 추출
|
||||
$args->module_srl = $this->module_srl; ///< 현재 모듈의 module_srl
|
||||
$args->page = Context::get('page'); ///< 페이지
|
||||
$args->list_count = $this->list_count; ///< 한페이지에 보여줄 글 수
|
||||
$args->page_count = $this->page_count; ///< 페이지 네비게이션에 나타날 페이지의 수
|
||||
|
||||
$args->search_target = Context::get('search_target'); ///< 검색 대상 (title, contents...)
|
||||
$args->search_keyword = Context::get('search_keyword'); ///< 검색어
|
||||
if($this->module_info->use_category=='Y') $args->category_srl = Context::get('category'); ///< 카테고리 사용시 선택된 카테고리
|
||||
|
||||
$args->sort_index = 'list_order'; ///< 소팅 값
|
||||
|
||||
$oDocumentModel = &getModel('document');
|
||||
$output = $oDocumentModel->getDocumentList($args);
|
||||
$document_list = $output->data;
|
||||
|
||||
// rss 제목 및 정보등을 추출
|
||||
$info->title = Context::getBrowserTitle();
|
||||
$info->description = $this->module_info->description;
|
||||
$info->language = Context::getLangType();
|
||||
$info->date = gmdate("D, d M Y H:i:s");
|
||||
$info->link = sprintf("%s?mid=%s", Context::getRequestUri(), Context::get('mid'));
|
||||
$info->total_count = $output->total_count;
|
||||
|
||||
// RSS 모듈을 불러서 출력할 내용을 지정
|
||||
$oRssView = &getView('rss');
|
||||
$oRssView->dispRss($info, $document_list);
|
||||
|
||||
// RSS 모듈의 tempate을 가져옴
|
||||
$this->setTemplatePath($oRssView->getTemplatePath());
|
||||
$this->setTemplateFile($oRssView->getTemplateFile());
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 댓글의 editor 를 세팅
|
||||
* 댓글의 경우 수정하는 경우가 아니라면 고유값이 없음.\n
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue