mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 08:12:17 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@819 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
cfae38adb5
commit
58f4735c46
11 changed files with 97 additions and 94 deletions
|
|
@ -1,11 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<module version="0.1">
|
||||
<title xml:lang="ko">RSS</title>
|
||||
<title xml:lang="en">RSS</title>
|
||||
<author email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
||||
<name xml:lang="ko">제로</name>
|
||||
<name xml:lang="en">zero</name>
|
||||
<description xml:lang="ko">RSS 관리 모듈</description>
|
||||
<description xml:lang="en">rss management</description>
|
||||
</author>
|
||||
<title xml:lang="ko">RSS</title>
|
||||
<author email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
||||
<name xml:lang="ko">제로</name>
|
||||
<description xml:lang="ko">RSS 출력을 담당하는 모듈</description>
|
||||
</author>
|
||||
</module>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<module>
|
||||
<grants />
|
||||
<actions>
|
||||
<action name="dispConfig" type="view" admin_index="true" standalone="true" />
|
||||
<action name="procInsertConfig" type="controller" standalone="true" />
|
||||
<action name="dispRssAdminConfig" type="view" admin_index="true" standalone="true" />
|
||||
<action name="procRssAdminInsertConfig" type="controller" standalone="true" />
|
||||
</actions>
|
||||
</module>
|
||||
|
|
|
|||
|
|
@ -17,6 +17,11 @@
|
|||
* @brief 설치시 추가 작업이 필요할시 구현
|
||||
**/
|
||||
function moduleInstall() {
|
||||
// action forward에 등록 (관리자 모드에서 사용하기 위함)
|
||||
$oModuleController = &getController('module');
|
||||
$oModuleController->insertActionFoward('rss', 'view', 'dispRssAdminConfig');
|
||||
$oModuleController->insertActionFoward('rss', 'controller', 'dispRssAdminInsertConfig');
|
||||
|
||||
return new Object();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
/**
|
||||
* @brief 설정
|
||||
**/
|
||||
function procInsertConfig() {
|
||||
function procRssAdminInsertConfig() {
|
||||
// 기본 정보를 받음
|
||||
$args = Context::gets('rss_disable', 'rss_type');
|
||||
if($args->rss_disable!='Y') $args->rss_disable = 'N';
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
/**
|
||||
* @brief 설정
|
||||
**/
|
||||
function dispConfig() {
|
||||
function dispRssAdminConfig() {
|
||||
// 설정 정보를 받아옴 (module model 객체를 이용)
|
||||
$oModuleModel = &getModel('module');
|
||||
$config = $oModuleModel->getModuleConfig('rss');
|
||||
|
|
|
|||
|
|
@ -1,27 +1,27 @@
|
|||
{'<?xml version="1.0" encoding="utf-8" ?>'}
|
||||
|
||||
<rdf:RDF xmlns="http://purl.org/rss/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" >
|
||||
<channel rdf:about="http://blog.rss.naver.com/blogRss.nhn?blogId=myyami78&rss=1.0">
|
||||
<title><![CDATA[{$info->title}]]></title>
|
||||
<link><![CDATA[{$info->link}]]></link>
|
||||
<description><![CDATA[{$info->description}]]></description>
|
||||
<items>
|
||||
<rdf:Seq>
|
||||
<!--@foreach($content as $key => $item)-->
|
||||
<rdf:li resource="{$key}" />
|
||||
<!--@end-->
|
||||
</rdf:Seq>
|
||||
</items>
|
||||
<dc:date>{$info->date}</dc:date>
|
||||
<dc:language>{$info->language}</dc:language>
|
||||
<totalCount>{$info->total_count}</totalCount>
|
||||
</channel>
|
||||
<!--@foreach($content as $key => $item)-->
|
||||
<item rdf:about="{$key}">
|
||||
<title><![CDATA[{$item->title}]]></title>
|
||||
<link><![CDATA[{$item->link}]]></link>
|
||||
<description><![CDATA[{$item->description}]]></description>
|
||||
<dc:date>{$item->date}</dc:date>
|
||||
</item>
|
||||
<!--@end-->
|
||||
<channel rdf:about="http://blog.rss.naver.com/blogRss.nhn?blogId=myyami78&rss=1.0">
|
||||
<title><![CDATA[{$info->title}]]></title>
|
||||
<link><![CDATA[{$info->link}]]></link>
|
||||
<description><![CDATA[{$info->description}]]></description>
|
||||
<items>
|
||||
<rdf:Seq>
|
||||
<!--@foreach($content as $key => $item)-->
|
||||
<rdf:li resource="{$key}" />
|
||||
<!--@end-->
|
||||
</rdf:Seq>
|
||||
</items>
|
||||
<dc:date>{$info->date}</dc:date>
|
||||
<dc:language>{$info->language}</dc:language>
|
||||
<totalCount>{$info->total_count}</totalCount>
|
||||
</channel>
|
||||
<!--@foreach($content as $key => $item)-->
|
||||
<item rdf:about="{$key}">
|
||||
<title><![CDATA[{$item->title}]]></title>
|
||||
<link><![CDATA[{$item->link}]]></link>
|
||||
<description><![CDATA[{$item->description}]]></description>
|
||||
<dc:date>{$item->date}</dc:date>
|
||||
</item>
|
||||
<!--@end-->
|
||||
</rdf:RDF>
|
||||
|
|
|
|||
|
|
@ -1,21 +1,21 @@
|
|||
{'<?xml version="1.0" encoding="utf-8" ?>'}
|
||||
|
||||
<rss version="2.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/">
|
||||
<channel>
|
||||
<title><![CDATA[{$info->title}]]></title>
|
||||
<link><![CDATA[{$info->link}]]></link>
|
||||
<description><![CDATA[{$info->description}]]></description>
|
||||
<language>{$info->language}</language>
|
||||
<pubDate>{$info->date}</pubDate>
|
||||
<totalCount>{$info->total_count}</totalCount>
|
||||
<!--@foreach($content as $item)-->
|
||||
<item>
|
||||
<title><![CDATA[{$item->title}]]></title>
|
||||
<author><![CDATA[{$item->author}]]></author>
|
||||
<link><![CDATA[{$item->link}]]></link>
|
||||
<description><![CDATA[{$item->description}]]></description>
|
||||
<pubDate>{$item->date}</pubDate>
|
||||
</item>
|
||||
<!--@end-->
|
||||
</channel>
|
||||
<channel>
|
||||
<title><![CDATA[{$info->title}]]></title>
|
||||
<link><![CDATA[{$info->link}]]></link>
|
||||
<description><![CDATA[{$info->description}]]></description>
|
||||
<language>{$info->language}</language>
|
||||
<pubDate>{$info->date}</pubDate>
|
||||
<totalCount>{$info->total_count}</totalCount>
|
||||
<!--@foreach($content as $item)-->
|
||||
<item>
|
||||
<title><![CDATA[{$item->title}]]></title>
|
||||
<author><![CDATA[{$item->author}]]></author>
|
||||
<link><![CDATA[{$item->link}]]></link>
|
||||
<description><![CDATA[{$item->description}]]></description>
|
||||
<pubDate>{$item->date}</pubDate>
|
||||
</item>
|
||||
<!--@end-->
|
||||
</channel>
|
||||
</rss>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue