mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
RSS 오류 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5411 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ebfbd573b6
commit
3b5a54c012
5 changed files with 17 additions and 5 deletions
|
|
@ -43,7 +43,7 @@
|
|||
<!--@if($rss_url)-->
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="{$rss_url}" />
|
||||
<link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{$atom_url}" />
|
||||
<!--@elseif(Context::get('site_module_info')->mid==Context::get('mid'))-->
|
||||
<!--@elseif($site_module_info->mid == $mid)-->
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="{getUrl('','module','rss','act','rss')}" />
|
||||
<link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{getUrl('','module','rss','act','atom')}" />
|
||||
<!--@end-->
|
||||
|
|
|
|||
|
|
@ -282,6 +282,18 @@
|
|||
return $content;
|
||||
}
|
||||
|
||||
/**
|
||||
* 에디터 코드가 변환된 내용 반환
|
||||
**/
|
||||
function getTransContent($add_popup_menu = true, $add_content_info = true, $resource_realpath = false, $add_xe_content_class = true) {
|
||||
$oContext = &Context::getInstance();
|
||||
|
||||
$content = $this->getContent($add_popup_menu, $add_content_info, $resource_realpath, $add_xe_content_class);
|
||||
$content = $oContext->transContent($content);
|
||||
|
||||
return $content;
|
||||
}
|
||||
|
||||
function getSummary($str_size = 50) {
|
||||
// 영문이나 숫자가 연결되어서 20개 이상으로 연결시에 강제 띄움 시도 - {20,}으로 길이를 정하면, 20개 이상 문자열 맨 마지막에 스페이스를 추가할 뿐 원하는 의도는 달성되지 못함
|
||||
$content = preg_replace('/([a-z0-9\+:\/\.\~,\|\!\@\#\$\%\^\&\*\(\)\_]){20}/is',"$0-",$this->getContent(false,false));
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
<!--@end-->
|
||||
</author>
|
||||
<!--@if($rss_config[$oDocument->get('module_srl')]=='Y')-->
|
||||
<content type="html">{str_replace('\'', ''', htmlspecialchars(Context::getInstance()->transContent($oDocument->getContent(false,false,true))))}</content>
|
||||
<content type="html">{str_replace('\'', ''', htmlspecialchars($oDocument->getTransContent(false,false,true)))}</content>
|
||||
<!--@else-->
|
||||
<summary type="text">{str_replace('\'', ''', htmlspecialchars($oDocument->getContentText(100)))}</summary>
|
||||
<!--@end-->
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
<comments>{$oDocument->getPermanentUrl()}#comment</comments>
|
||||
<!--@end-->
|
||||
<!--@if($rss_config[$oDocument->get('module_srl')]=='Y')-->
|
||||
<description>{str_replace('\'', ''', htmlspecialchars(Context::getInstance()->transContent($oDocument->getContent(false,false,true))))}</description>
|
||||
<description>{str_replace('\'', ''', htmlspecialchars($oDocument->getTransContent(false,false,true)))}</description>
|
||||
<!--@else-->
|
||||
<description>{str_replace('\'', ''', htmlspecialchars($oDocument->getContentText(100)))}</description>
|
||||
<!--@end-->
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@
|
|||
<title>{str_replace('\'', ''',$oDocument->getTitle())}</title>
|
||||
<author>{str_replace('\'', ''',$oDocument->getNickName())}</author>
|
||||
<link>{$oDocument->getPermanentUrl()}</link>
|
||||
<!--@if($rss_config[$oDocument->get('module_srl')]->open_rss=='Y')-->
|
||||
<description>{str_replace('\'', ''', htmlspecialchars($oDocument->getContent(false)))}</description>
|
||||
<!--@if($rss_config[$oDocument->get('module_srl')]=='Y')-->
|
||||
<description>{str_replace('\'', ''', htmlspecialchars($oDocument->getTransContent(false,false,true)))}</description>
|
||||
<!--@else-->
|
||||
<description>{str_replace('\'', ''', htmlspecialchars($oDocument->getContentText(100)))}</description>
|
||||
<!--@end-->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue