git-svn-id: http://xe-core.googlecode.com/svn/trunk@819 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-03-30 07:11:26 +00:00
parent cfae38adb5
commit 58f4735c46
11 changed files with 97 additions and 94 deletions

View file

@ -1,3 +1,4 @@
@charset "utf-8";
.plugin_detail_info_window { .plugin_detail_info_window {
width:600px; width:600px;
clear:both; clear:both;

View file

@ -1,33 +1,33 @@
<!-- 플러그인의 목록 --> <!-- 플러그인의 목록 -->
<div> <div>
<table border="1" width="100%"> <table border="1" width="100%">
<tr> <tr>
<td>{$lang->plugin_name}</td> <td>{$lang->plugin_name}</td>
<td>{$lang->version}</td> <td>{$lang->version}</td>
<td>{$lang->author}</td> <td>{$lang->author}</td>
<td>{$lang->date}</td> <td>{$lang->date}</td>
<td>{$lang->path}</td> <td>{$lang->path}</td>
<td>{$lang->cmd_generate_code}</td> <td>{$lang->cmd_generate_code}</td>
<td>{$lang->plugin_info}</td> <td>{$lang->plugin_info}</td>
</tr> </tr>
<!--@foreach($plugin_list as $key => $val)--> <!--@foreach($plugin_list as $key => $val)-->
<tr> <tr>
<td rowspan="2"> <td rowspan="2">
{$val->title} <br /> {$val->title} <br />
({$val->plugin}) ({$val->plugin})
</td> </td>
<td>{$val->version}</td> <td>{$val->version}</td>
<td><a href="#" onclick="window.open('{$val->author->homepage}')">{$val->author->name}</a></td> <td><a href="#" onclick="window.open('{$val->author->homepage}')">{$val->author->name}</a></td>
<td>{$val->author->date}</td> <td>{$val->author->date}</td>
<td>{$val->path}</td> <td>{$val->path}</td>
<td><a href="#" onclick="winopen('{getUrl('','module','plugin','act','dispGenerateCode','selected_plugin',$val->plugin)}','plugin_code_generate','width=10,height=10,toolbars=no,scrollbars=no,resizable=yes,left=10,top=10');return false">{$lang->cmd_generate_code}</a></td> <td><a href="#" onclick="winopen('{getUrl('','module','plugin','act','dispPluginGenerateCode','selected_plugin',$val->plugin)}','plugin_code_generate','width=10,height=10,toolbars=no,scrollbars=no,resizable=yes,left=10,top=10');return false">{$lang->cmd_generate_code}</a></td>
<td><a href="#" onclick="winopen('{getUrl('','module','plugin','act','dispPluginInfo','selected_plugin',$val->plugin)}','plugin_info','width=10,height=10,toolbars=no,scrollbars=no,resizable=yes,left=10,top=10');return false">{$lang->cmd_view}</a></td> <td><a href="#" onclick="winopen('{getUrl('','module','plugin','act','dispPluginInfo','selected_plugin',$val->plugin)}','plugin_info','width=10,height=10,toolbars=no,scrollbars=no,resizable=yes,left=10,top=10');return false">{$lang->cmd_view}</a></td>
</tr> </tr>
<tr> <tr>
<td colspan="6"> <td colspan="6">
{nl2br($val->author->description)} {nl2br($val->author->description)}
</td> </td>
</tr> </tr>
<!--@end--> <!--@end-->
</table> </table>
</div> </div>

View file

@ -1,7 +1,7 @@
<filter name="generate_code" module="plugin" act="procGenerateCode"> <filter name="generate_code" module="plugin" act="procPluginGenerateCode">
<response callback_func="completeGenerateCode"> <response callback_func="completeGenerateCode">
<tag name="error" /> <tag name="error" />
<tag name="message" /> <tag name="message" />
<tag name="plugin_code" /> <tag name="plugin_code" />
</response> </response>
</filter> </filter>

View file

@ -1,7 +1,7 @@
<filter name="generate_code_in_page" module="plugin" act="procGenerateCode"> <filter name="generate_code_in_page" module="plugin" act="procPluginGenerateCode">
<response callback_func="completeGenerateCodeInPage"> <response callback_func="completeGenerateCodeInPage">
<tag name="error" /> <tag name="error" />
<tag name="message" /> <tag name="message" />
<tag name="plugin_code" /> <tag name="plugin_code" />
</response> </response>
</filter> </filter>

View file

@ -1,11 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<module version="0.1"> <module version="0.1">
<title xml:lang="ko">RSS</title> <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">
<author email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28"> <name xml:lang="ko">제로</name>
<name xml:lang="ko">제로</name> <description xml:lang="ko">RSS 출력을 담당하는 모듈</description>
<name xml:lang="en">zero</name> </author>
<description xml:lang="ko">RSS 관리 모듈</description>
<description xml:lang="en">rss management</description>
</author>
</module> </module>

View file

@ -2,7 +2,7 @@
<module> <module>
<grants /> <grants />
<actions> <actions>
<action name="dispConfig" type="view" admin_index="true" standalone="true" /> <action name="dispRssAdminConfig" type="view" admin_index="true" standalone="true" />
<action name="procInsertConfig" type="controller" standalone="true" /> <action name="procRssAdminInsertConfig" type="controller" standalone="true" />
</actions> </actions>
</module> </module>

View file

@ -17,6 +17,11 @@
* @brief 설치시 추가 작업이 필요할시 구현 * @brief 설치시 추가 작업이 필요할시 구현
**/ **/
function moduleInstall() { function moduleInstall() {
// action forward에 등록 (관리자 모드에서 사용하기 위함)
$oModuleController = &getController('module');
$oModuleController->insertActionFoward('rss', 'view', 'dispRssAdminConfig');
$oModuleController->insertActionFoward('rss', 'controller', 'dispRssAdminInsertConfig');
return new Object(); return new Object();
} }

View file

@ -19,7 +19,7 @@
/** /**
* @brief 설정 * @brief 설정
**/ **/
function procInsertConfig() { function procRssAdminInsertConfig() {
// 기본 정보를 받음 // 기본 정보를 받음
$args = Context::gets('rss_disable', 'rss_type'); $args = Context::gets('rss_disable', 'rss_type');
if($args->rss_disable!='Y') $args->rss_disable = 'N'; if($args->rss_disable!='Y') $args->rss_disable = 'N';

View file

@ -19,7 +19,7 @@
/** /**
* @brief 설정 * @brief 설정
**/ **/
function dispConfig() { function dispRssAdminConfig() {
// 설정 정보를 받아옴 (module model 객체를 이용) // 설정 정보를 받아옴 (module model 객체를 이용)
$oModuleModel = &getModel('module'); $oModuleModel = &getModel('module');
$config = $oModuleModel->getModuleConfig('rss'); $config = $oModuleModel->getModuleConfig('rss');

View file

@ -1,27 +1,27 @@
{'<?xml version="1.0" encoding="utf-8" ?>'} {'<?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/" > <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&amp;rss=1.0"> <channel rdf:about="http://blog.rss.naver.com/blogRss.nhn?blogId=myyami78&amp;rss=1.0">
<title><![CDATA[{$info->title}]]></title> <title><![CDATA[{$info->title}]]></title>
<link><![CDATA[{$info->link}]]></link> <link><![CDATA[{$info->link}]]></link>
<description><![CDATA[{$info->description}]]></description> <description><![CDATA[{$info->description}]]></description>
<items> <items>
<rdf:Seq> <rdf:Seq>
<!--@foreach($content as $key => $item)--> <!--@foreach($content as $key => $item)-->
<rdf:li resource="{$key}" /> <rdf:li resource="{$key}" />
<!--@end--> <!--@end-->
</rdf:Seq> </rdf:Seq>
</items> </items>
<dc:date>{$info->date}</dc:date> <dc:date>{$info->date}</dc:date>
<dc:language>{$info->language}</dc:language> <dc:language>{$info->language}</dc:language>
<totalCount>{$info->total_count}</totalCount> <totalCount>{$info->total_count}</totalCount>
</channel> </channel>
<!--@foreach($content as $key => $item)--> <!--@foreach($content as $key => $item)-->
<item rdf:about="{$key}"> <item rdf:about="{$key}">
<title><![CDATA[{$item->title}]]></title> <title><![CDATA[{$item->title}]]></title>
<link><![CDATA[{$item->link}]]></link> <link><![CDATA[{$item->link}]]></link>
<description><![CDATA[{$item->description}]]></description> <description><![CDATA[{$item->description}]]></description>
<dc:date>{$item->date}</dc:date> <dc:date>{$item->date}</dc:date>
</item> </item>
<!--@end--> <!--@end-->
</rdf:RDF> </rdf:RDF>

View file

@ -1,21 +1,21 @@
{'<?xml version="1.0" encoding="utf-8" ?>'} {'<?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/"> <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> <channel>
<title><![CDATA[{$info->title}]]></title> <title><![CDATA[{$info->title}]]></title>
<link><![CDATA[{$info->link}]]></link> <link><![CDATA[{$info->link}]]></link>
<description><![CDATA[{$info->description}]]></description> <description><![CDATA[{$info->description}]]></description>
<language>{$info->language}</language> <language>{$info->language}</language>
<pubDate>{$info->date}</pubDate> <pubDate>{$info->date}</pubDate>
<totalCount>{$info->total_count}</totalCount> <totalCount>{$info->total_count}</totalCount>
<!--@foreach($content as $item)--> <!--@foreach($content as $item)-->
<item> <item>
<title><![CDATA[{$item->title}]]></title> <title><![CDATA[{$item->title}]]></title>
<author><![CDATA[{$item->author}]]></author> <author><![CDATA[{$item->author}]]></author>
<link><![CDATA[{$item->link}]]></link> <link><![CDATA[{$item->link}]]></link>
<description><![CDATA[{$item->description}]]></description> <description><![CDATA[{$item->description}]]></description>
<pubDate>{$item->date}</pubDate> <pubDate>{$item->date}</pubDate>
</item> </item>
<!--@end--> <!--@end-->
</channel> </channel>
</rss> </rss>