#17641849 이미지 마진 설정 가능하게, Feed에서 에디터 컴포넌트 코드 치환

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5380 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
misol 2009-01-16 06:06:14 +00:00
parent 098d763755
commit a7a5b73d7a
13 changed files with 48 additions and 24 deletions

View file

@ -4,7 +4,7 @@
* @author zero (zero@nzeo.com)
* @brief rss module의 view class
*
* RSS 2.0형식으로 문서 출력
* Feed 문서 출력
*
**/
@ -132,13 +132,10 @@
$file = 'rss20';
break;
}
$oTemplate = new TemplateHandler();
$oContext = &Context::getInstance();
$content = $oTemplate->compile($path, $file);
$content = $oContext->transContent($content);
Context::set('content', $content);
// 템플릿 파일 지정
@ -146,6 +143,7 @@
$this->setTemplateFile('display');
}
/** @brief ATOM 출력 **/
function atom() {
Context::set('format', 'atom');
$this->rss();

View file

@ -23,7 +23,7 @@
<!--@end-->
</author>
<!--@if($rss_config[$oDocument->get('module_srl')]=='Y')-->
<content type="html">{str_replace('\'', '&apos;', htmlspecialchars($oDocument->getContent(false,false,true)))}</content>
<content type="html">{str_replace('\'', '&apos;', htmlspecialchars(Context::getInstance()->transContent($oDocument->getContent(false,false,true))))}</content>
<!--@else-->
<summary type="text">{str_replace('\'', '&apos;', htmlspecialchars($oDocument->getContentText(100)))}</summary>
<!--@end-->

View file

@ -18,7 +18,7 @@
<comments>{$oDocument->getPermanentUrl()}#comment</comments>
<!--@end-->
<!--@if($rss_config[$oDocument->get('module_srl')]=='Y')-->
<description>{str_replace('\'', '&apos;', htmlspecialchars($oDocument->getContent(false,false,true)))}</description>
<description>{str_replace('\'', '&apos;', htmlspecialchars(Context::getInstance()->transContent($oDocument->getContent(false,false,true))))}</description>
<!--@else-->
<description>{str_replace('\'', '&apos;', htmlspecialchars($oDocument->getContentText(100)))}</description>
<!--@end-->