mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
#471 rss출력시 Context::transContent()를 거치도록 하고 이미지갤러리/인용구의 결과물 방식에 따른 결과물 형태를 다르게 하는 코드를 삽입
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4265 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f6537987f5
commit
5260252282
4 changed files with 29 additions and 4 deletions
|
|
@ -126,11 +126,21 @@
|
|||
// 결과 출력을 XMLRPC로 강제 지정
|
||||
Context::setResponseMethod("XMLRPC");
|
||||
|
||||
// 템플릿 파일 지정
|
||||
$this->setTemplatePath($this->module_path.'tpl/');
|
||||
// 결과물을 얻어와서 에디터 컴포넌트등의 전처리 기능을 수행시킴
|
||||
$path = $this->module_path.'tpl/';
|
||||
if($args->start_date || $args->end_date) $file = 'xe_rss';
|
||||
else $file = 'rss20';
|
||||
|
||||
if($args->start_date || $args->end_date) $this->setTemplateFile('xe_rss');
|
||||
else $this->setTemplateFile('rss20');
|
||||
$oTemplate = new TemplateHandler();
|
||||
$oContext = &Context::getInstance();
|
||||
|
||||
$content = $oTemplate->compile($path, $file);
|
||||
$content = $oContext->transContent($content);
|
||||
Context::set('content', $content);
|
||||
|
||||
// 템플릿 파일 지정
|
||||
$this->setTemplatePath($path);
|
||||
$this->setTemplateFile('display');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
1
modules/rss/tpl/display.html
Normal file
1
modules/rss/tpl/display.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
{$content}
|
||||
Loading…
Add table
Add a link
Reference in a new issue