mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
RSS 모듈 재정비
This commit is contained in:
parent
cc21af669f
commit
2440058557
27 changed files with 613 additions and 764 deletions
|
|
@ -1,37 +0,0 @@
|
|||
{'<?xml version="1.0" encoding="UTF-8" ?>'}
|
||||
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<title type="text">{$info->title}</title>
|
||||
<!--@if($info->description)-->
|
||||
<subtitle type="html">{escape($info->description, false)}</subtitle>
|
||||
<!--@end-->
|
||||
<updated>{$info->date}</updated>
|
||||
<id>{$info->id}</id>
|
||||
<link rel="alternate" type="text/html" hreflang="{$info->language}" href="{$info->link}"/>
|
||||
<link rel="self" type="application/atom+xml" href="{$info->id}"/>
|
||||
<generator uri="https://www.xpressengine.com/">XpressEngine</generator>
|
||||
<!--@foreach($document_list as $oDocument)--> <entry>
|
||||
<title>{$oDocument->getTitleText()}</title>
|
||||
<id>{$oDocument->getPermanentUrl()}</id>
|
||||
<published>{$oDocument->getRegdate('Y-m-d\TH:i:sP')}</published>
|
||||
<updated>{zdate($oDocument->get('last_update'),'Y-m-d\TH:i:sP')}</updated>
|
||||
<link rel="alternate" type="text/html" href="{$oDocument->getPermanentUrl()}"/>
|
||||
<link rel="replies" type="text/html" href="{$oDocument->getPermanentUrl()}#comment"/>
|
||||
<author>
|
||||
<name>{str_replace('\'', ''',$oDocument->getNickName())}</name>
|
||||
<!--@if($oDocument->isExistsHomepage())-->
|
||||
<uri>{$oDocument->getHomepageUrl()}</uri>
|
||||
<!--@end-->
|
||||
</author>
|
||||
<!--@if($open_rss_config[$oDocument->get('module_srl')]=='Y')-->
|
||||
<content type="html">{$oDocument->getTransContent(false,false,true)}</content>
|
||||
<!--@else-->
|
||||
<summary type="text">{$oDocument->getContentText(100)}</summary>
|
||||
<!--@end-->
|
||||
<!--@foreach($oDocument->get('tag_list') as $tag)-->
|
||||
<category term="{escape($tag, false)}"/>
|
||||
<!--@end-->
|
||||
|
||||
</entry>
|
||||
<!--@end-->
|
||||
</feed>
|
||||
|
|
@ -1 +0,0 @@
|
|||
{$content}
|
||||
28
modules/rss/tpl/format/atom10.html
Normal file
28
modules/rss/tpl/format/atom10.html
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{'<?xml version="1.0" encoding="UTF-8" ?>'}
|
||||
|
||||
<config autoescape="on" />
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<title>{$info->title}</title>
|
||||
<subtitle cond="$info->description">{$info->description}</subtitle>
|
||||
<link rel="alternate" type="text/html" hreflang="{$info->language}" href="{$info->link}"/>
|
||||
<link rel="self" type="application/atom+xml" href="{$info->id}"/>
|
||||
<updated>{$info->date}</updated>
|
||||
<id>{$info->id}</id>
|
||||
<generator>Rhymix</generator>
|
||||
<rights cond="$info->feed_copyright">{$info->feed_copyright}</rights>
|
||||
<entry loop="$document_list=>$oDocument">
|
||||
<title>{$oDocument->getTitleText()}</title>
|
||||
<link rel="alternate" type="text/html" href="{$oDocument->getPermanentUrl()}"/>
|
||||
<link cond="$oDocument->allowComment()" rel="replies" type="text/html" href="{$oDocument->getPermanentUrl()}#comment"/>
|
||||
<id>{$oDocument->getPermanentUrl()}</id>
|
||||
<published>{$oDocument->getRegdateDT()}</published>
|
||||
<updated>{$oDocument->getUpdateDT()}</updated>
|
||||
<author>
|
||||
<name>{$oDocument->getNickName()}</name>
|
||||
</author>
|
||||
<summary type="text">{$oDocument->getSummary(400)}</summary>
|
||||
<content type="html" cond="$target_modules[$oDocument->get('module_srl')] == 'Y'">{utf8_trim(utf8_normalize_spaces($oDocument->get('content')))|escape}</content>
|
||||
<category cond="$oDocument->get('category_srl') && $category_name = $category_list[$oDocument->get('module_srl')][$oDocument->get('category_srl')]->title" term="{$oDocument->get('category_srl')}" label="{$category_name}"/>
|
||||
<category loop="$oDocument->get('tag_list')=>$tag" term="{$tag}"/>
|
||||
</entry>
|
||||
</feed>
|
||||
35
modules/rss/tpl/format/rss10.html
Normal file
35
modules/rss/tpl/format/rss10.html
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{'<?xml version="1.0" encoding="UTF-8" ?>'}
|
||||
|
||||
<config autoescape="on" />
|
||||
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
|
||||
<channel rdf:about="{$info->id}">
|
||||
<title>{$info->title}</title>
|
||||
<link>{$info->link}</link>
|
||||
<description>{$info->description}</description>
|
||||
<dc:language>{$info->language}</dc:language>
|
||||
<dc:date>{$info->date}</dc:date>
|
||||
<!--@if($info->feed_copyright)-->
|
||||
<dc:rights>{$info->feed_copyright}</dc:rights>
|
||||
<!--@end-->
|
||||
<image cond="$info->image" rdf:resource="{$info->image}"/>
|
||||
<items>
|
||||
<rdf:Seq>
|
||||
<!--@foreach($document_list as $oDocument)-->
|
||||
<rdf:li resource="{$oDocument->getPermanentUrl()}"/>
|
||||
<!--@end-->
|
||||
</rdf:Seq>
|
||||
</items>
|
||||
</channel>
|
||||
<image cond="$info->image" rdf:about="{$info->image}">
|
||||
<title>{$info->feed_title}</title>
|
||||
<link>{$info->link}</link>
|
||||
<url>{$info->image}</url>
|
||||
</image>
|
||||
<item loop="$document_list=>$oDocument" rdf:about="{$oDocument->getPermanentUrl()}">
|
||||
<title>{$oDocument->getTitleText()}</title>
|
||||
<link>{$oDocument->getPermanentUrl()}</link>
|
||||
<description>{$oDocument->getSummary(400)}</description>
|
||||
<dc:creator>{$oDocument->getNickName()}</dc:creator>
|
||||
<dc:date>{$oDocument->getRegdateDT()}</dc:date>
|
||||
</item>
|
||||
</rdf:RDF>
|
||||
35
modules/rss/tpl/format/rss20.html
Normal file
35
modules/rss/tpl/format/rss20.html
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{'<?xml version="1.0" encoding="UTF-8" ?>'}
|
||||
|
||||
<config autoescape="on" />
|
||||
<rss version="2.0">
|
||||
<channel>
|
||||
<title>{$info->title}</title>
|
||||
<link>{$info->link}</link>
|
||||
<description>{$info->description}</description>
|
||||
<language>{$info->language}</language>
|
||||
<pubDate>{$info->date}</pubDate>
|
||||
<generator>Rhymix</generator>
|
||||
<copyright cond="$info->feed_copyright">{$info->feed_copyright}</copyright>
|
||||
<image cond="$info->image">
|
||||
<url>{$info->image}</url>
|
||||
<title>{$info->feed_title}</title>
|
||||
<link>{$info->site_url}</link>
|
||||
</image>
|
||||
<item loop="$document_list=>$oDocument">
|
||||
<title>{$oDocument->getTitleText()}</title>
|
||||
<link>{$oDocument->getPermanentUrl()}</link>
|
||||
<!--@if($target_modules[$oDocument->get('module_srl')]->open_rss == 'Y')-->
|
||||
<description>{utf8_trim(utf8_normalize_spaces($oDocument->get('content')))|escape}</description>
|
||||
<!--@else-->
|
||||
<description>{$oDocument->getSummary(400)}</description>
|
||||
<!--@end-->
|
||||
<category cond="$oDocument->getModuleName()">{$oDocument->getModuleName()}</category>
|
||||
<category cond="$oDocument->get('category_srl') && $category_name = $category_list[$oDocument->get('module_srl')][$oDocument->get('category_srl')]->title">{$category_name}</category>
|
||||
<category loop="$oDocument->get('tag_list')=>$tag">{$tag}</category>
|
||||
<author>{$oDocument->getNickName()}</author>
|
||||
<guid isPermaLink="true">{$oDocument->getPermanentUrl()}</guid>
|
||||
<comments cond="$oDocument->allowComment()">{$oDocument->getPermanentUrl()}#comment</comments>
|
||||
<pubDate>{$oDocument->getRegdateDT()}</pubDate>
|
||||
</item>
|
||||
</channel>
|
||||
</rss>
|
||||
29
modules/rss/tpl/format/xe.html
Normal file
29
modules/rss/tpl/format/xe.html
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{'<?xml version="1.0" encoding="UTF-8" ?>'}
|
||||
|
||||
<config autoescape="on" />
|
||||
<rss version="1.0">
|
||||
<channel>
|
||||
<title>{$info->title}</title>
|
||||
<link>{$info->link}</link>
|
||||
<description>{$info->description}</description>
|
||||
<language>{$info->language}</language>
|
||||
<pubDate>{$info->date}</pubDate>
|
||||
<totalCount>{$info->total_count}</totalCount>
|
||||
<totalPage>{$info->total_page}</totalPage>
|
||||
<item loop="$document_list=>$oDocument">
|
||||
<title>{$oDocument->getTitleText()}</title>
|
||||
<author>{$oDocument->getNickName()}</author>
|
||||
<link>{$oDocument->getPermanentUrl()}</link>
|
||||
<!--@if($target_modules[$oDocument->get('module_srl')]->open_rss == 'Y')-->
|
||||
<description>{utf8_trim(utf8_normalize_spaces($oDocument->get('content')))|escape}</description>
|
||||
<!--@else-->
|
||||
<description>{$oDocument->getSummary(400)}</description>
|
||||
<!--@end-->
|
||||
<tags>{$oDocument->get('tags')}</tags>
|
||||
<comment_count>{$oDocument->getCommentCount()}</comment_count>
|
||||
<trackback_count>{$oDocument->getTrackbackCount()}</trackback_count>
|
||||
<pubDate>{$oDocument->getRegdateDT()}</pubDate>
|
||||
<upDate>{$oDocument->getUpdateDT()}</upDate>
|
||||
</item>
|
||||
</channel>
|
||||
</rss>
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
<!--%import("filter/insert_config.xml")-->
|
||||
|
||||
<form action="./" method="get" onsubmit="return procFilter(this, insert_config)">
|
||||
<table border="1">
|
||||
<tr>
|
||||
<th rowspan="2">{$lang->rss_disable}</th>
|
||||
<td><input type="checkbox" name="rss_disable" value="Y" <!--@if($config->rss_disable=="Y")-->checked="checked"<!--@end--> />
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lang->about_rss_disable}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th rowspan="2">{$lang->rss_type}</th>
|
||||
<td>
|
||||
<select name="rss_type">
|
||||
<!--@foreach($rss_types as $key => $val)-->
|
||||
<option value="{$key}" <!--@if($key==$config->rss_type)-->selected="selected"<!--@end-->>{$val}</option>
|
||||
<!--@end-->
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lang->about_rss_type}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<input type="button" value="{$lang->cmd_cancel}" onclick="location.href='{getUrl('act','')}'" />
|
||||
<input type="submit" value="{$lang->cmd_registration}" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
{'<?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="{getUrl('','mid',$mid,'module','rss','act','rss','format','rss1.0','page',Context::get('page'),'start_date',Context::get('start_date'),'end_date',Context::get('end_date'))}">
|
||||
<title>{$info->title}</title>
|
||||
<link>{$info->link}</link>
|
||||
<description>{$info->description}</description>
|
||||
<items>
|
||||
<rdf:Seq>
|
||||
<!--@foreach($document_list as $oDocument)-->
|
||||
<rdf:li resource="{$oDocument->getPermanentUrl()}" />
|
||||
<!--@end-->
|
||||
</rdf:Seq>
|
||||
</items>
|
||||
<dc:date>{$info->date}</dc:date>
|
||||
<dc:language>{$info->language}</dc:language>
|
||||
</channel>
|
||||
<!--@foreach($document_list as $oDocument)-->
|
||||
<item rdf:about="{$oDocument->getPermanentUrl()}">
|
||||
<title>{$oDocument->getTitleText()}</title>
|
||||
<link>{$oDocument->getPermanentUrl()}</link>
|
||||
<!--@if($open_rss_config[$oDocument->get('module_srl')]=='Y')-->
|
||||
<description>{$oDocument->getContentPlainText()}</description>
|
||||
<!--@else-->
|
||||
<description>{$oDocument->getContentText(100)}</description>
|
||||
<!--@end-->
|
||||
<dc:date>{$oDocument->getRegdate('Y-m-d\TH:i:sP')}</dc:date>
|
||||
</item>
|
||||
<!--@end-->
|
||||
</rdf:RDF>
|
||||
|
|
@ -1,46 +0,0 @@
|
|||
{'<?xml version="1.0" encoding="UTF-8" ?>'}
|
||||
|
||||
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
|
||||
<channel>
|
||||
<title>{$info->title}</title>
|
||||
<link>{$info->link}</link>
|
||||
<description>{$info->description}</description>
|
||||
<language>{$info->language}</language>
|
||||
<pubDate>{$info->date}</pubDate>
|
||||
<lastBuildDate>{$info->date}</lastBuildDate>
|
||||
<generator>Rhymix</generator>
|
||||
<!--@if($info->feed_copyright)-->
|
||||
<copyright>{$info->feed_copyright}</copyright>
|
||||
<!--@end-->
|
||||
<!--@if($info->image)-->
|
||||
<image>
|
||||
<url>{$info->image}</url>
|
||||
<title>{$info->title}</title>
|
||||
<link>{$info->link}</link>
|
||||
</image>
|
||||
<!--@end-->
|
||||
<!--@foreach($document_list as $oDocument)-->
|
||||
<item>
|
||||
<title>{$oDocument->getTitleText()}</title>
|
||||
<dc:creator>{escape($oDocument->getNickName(), false)}</dc:creator>
|
||||
<link>{$oDocument->getPermanentUrl()}</link>
|
||||
<guid isPermaLink="true">{$oDocument->getPermanentUrl()}</guid>
|
||||
<!--@if($oDocument->allowComment()) -->
|
||||
<comments>{$oDocument->getPermanentUrl()}#comment</comments>
|
||||
<!--@end-->
|
||||
<!--@if($open_rss_config[$oDocument->get('module_srl')]=='Y')-->
|
||||
<description>{escape($oDocument->getTransContent(false,false,true))}</description>
|
||||
<!--@else-->
|
||||
<description>{$oDocument->getContentText(100)}</description>
|
||||
<!--@end-->
|
||||
<pubDate>{$oDocument->getRegdateGM()}</pubDate>
|
||||
<!--@foreach($oDocument->get('tag_list') as $tag)-->
|
||||
<category>{escape($tag, false)}</category>
|
||||
<!--@end-->
|
||||
<!--@if($oDocument->getCommentcount()>0)-->
|
||||
<slash:comments>{$oDocument->getCommentcount()}</slash:comments>
|
||||
<!--@end-->
|
||||
</item>
|
||||
<!--@end-->
|
||||
</channel>
|
||||
</rss>
|
||||
|
|
@ -12,58 +12,54 @@
|
|||
<input type="hidden" name="xe_validator_id" value="modules/rss/tpl/rss_admin_index/1" />
|
||||
<div class="x_control-group">
|
||||
<div class="x_control-label">{$lang->url}</div>
|
||||
<div class="x_controls" style="padding-top:5px"><a href="{$total_config->url}" target="_blank">{$total_config->url}</a></div>
|
||||
<div class="x_controls" style="padding-top:5px"><a href="{$general_rss_url}" target="_blank">{$general_rss_url}</a></div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label class="x_control-label">{$lang->total_feed}</label>
|
||||
<div class="x_controls">
|
||||
<label class="x_inline">
|
||||
<input type="radio" name="use_total_feed" value="Y" id="use_total_feed_yes" checked="checked"|cond="!$total_config->use_total_feed || $total_config->use_total_feed == 'Y'" /> {$lang->use}
|
||||
<input type="radio" name="use_total_feed" value="Y" id="use_total_feed_yes" checked="checked"|cond="$config->use_total_feed == 'Y'" /> {$lang->use}
|
||||
</label>
|
||||
<label class="x_inline">
|
||||
<input type="radio" name="use_total_feed" value="N" id="use_total_feed_no" checked="checked"|cond="$total_config->use_total_feed == 'N'" /> {$lang->notuse}
|
||||
<input type="radio" name="use_total_feed" value="N" id="use_total_feed_no" checked="checked"|cond="$config->use_total_feed == 'N'" /> {$lang->notuse}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label class="x_control-label" for="feed_title">{$lang->title}</label>
|
||||
<div class="x_controls">
|
||||
<input type="text" name="feed_title" value="{htmlspecialchars($total_config->feed_title, ENT_COMPAT | ENT_HTML401, 'UTF-8', false)}" id="feed_title" />
|
||||
<input type="text" name="feed_title" value="{escape($config->feed_title)}" id="feed_title" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label class="x_control-label" for="feed_description">{$lang->description}</label>
|
||||
<div class="x_controls">
|
||||
<textarea name="feed_description" id="feed_description" rows="4" cols="42" style="float:left;margin-right:8px">{$total_config->feed_description}</textarea>
|
||||
<textarea name="feed_description" id="feed_description" rows="4" cols="42" style="float:left;margin-right:8px">{$config->feed_description}</textarea>
|
||||
<p class="x_help-block">{$lang->about_feed_description}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label class="x_control-label" for="image">{$lang->feed_image}</label>
|
||||
<div class="x_controls">
|
||||
|
||||
<!--@if($total_config->image)-->
|
||||
<div class="_rss_image_container">
|
||||
<div class="x_thumbnail" cond="$total_config->image" style="display:inline-block;margin:0 0 5px 0">
|
||||
<img src="../../../{$total_config->image}" alt="image" style="max-width:210px;max-height:150px" />
|
||||
<input type="button" class="_delete_rss_image x_icon-remove" value="{$lang->cmd_delete}" style="width:14px" />
|
||||
<div class="_rss_image_container" cond="$config->image">
|
||||
<div class="x_thumbnail" style="display:inline-block;margin:0 0 5px 0">
|
||||
<img src="{$config->image_url}" alt="image" style="max-width:210px;max-height:150px" />
|
||||
<input type="button" class="_delete_rss_image x_icon-remove" value="{$lang->cmd_delete}" style="width:14px" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!--@end-->
|
||||
<p><input type="file" name="image" value="" id="image" /></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label class="x_control-label" for="feed_copyright">{$lang->feed_copyright}</label>
|
||||
<div class="x_controls">
|
||||
<input type="text" name="feed_copyright" value="{htmlspecialchars($total_config->feed_copyright, ENT_COMPAT | ENT_HTML401, 'UTF-8', false)}" id="feed_copyright" />
|
||||
<input type="text" name="feed_copyright" value="{escape($config->feed_copyright)}" id="feed_copyright" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label class="x_control-label" for="feed_document_count">{$lang->feed_document_count}</label>
|
||||
<div class="x_controls">
|
||||
<input type="number" min="1" max="100" name="feed_document_count" value="{$total_config->feed_document_count}" id="feed_document_count" />
|
||||
<input type="number" min="1" max="100" name="feed_document_count" value="{$config->feed_document_count}" id="feed_document_count" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="btnArea x_clearfix">
|
||||
|
|
@ -77,6 +73,7 @@
|
|||
<input type="hidden" name="act" value="procRssAdminInsertModuleConfig" />
|
||||
<input type="hidden" name="success_return_url" value="{getUrl('', 'module', $module, 'act', 'dispRssAdminIndex')}" />
|
||||
<input type="hidden" name="xe_validator_id" value="modules/rss/tpl/rss_admin_index/1" />
|
||||
|
||||
<table class="x_table x_table-striped x_table-hover" style="border-top:0;margin-top:0">
|
||||
<thead>
|
||||
<tr>
|
||||
|
|
@ -87,27 +84,33 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr loop="$feed_config => $key,$value">
|
||||
<th cond="!$value['url']">
|
||||
{$value['mid']}
|
||||
</th>
|
||||
<th cond="$value['url']">
|
||||
<a href="{$value['url']}" target="_blank">{$value['mid']}</a>
|
||||
</th>
|
||||
<td class="title">{$value['feed_description']}<textarea name="feed_description[{$key}]" hidden>{$value['feed_description']}</textarea></td>
|
||||
<tr loop="$rss_list => $module_srl,$module_config">
|
||||
<td>
|
||||
<label class="x_inline" loop="$lang->open_rss_types => $key2,$value2"><input type="radio" name="open_rss[{$key}]" value="{$key2}" checked="checked"|cond="$key2 == $value['open_feed']" /> {$value2}</label>
|
||||
<a href="{$module_config->url}" target="_blank">{$module_config->mid}</a>
|
||||
</td>
|
||||
<td class="title">
|
||||
<textarea name="feed_description[{$module_srl}]">{escape($module_config->feed_description)}</textarea>
|
||||
</td>
|
||||
<td>
|
||||
<label class="x_inline"><input type="radio" name="open_total_feed[{$key}]" value="N" checked="checked"|cond="$value['open_total_feed'] != 'T_N'" /> {$lang->use}</label>
|
||||
<label class="x_inline"><input type="radio" name="open_total_feed[{$key}]" value="T_N" checked="checked"|cond="$value['open_total_feed'] == 'T_N'" /> {$lang->notuse}</label>
|
||||
<label class="x_inline" loop="$lang->open_rss_types => $key,$value">
|
||||
<input type="radio" name="open_rss[{$module_srl}]" value="{$key}" checked="checked"|cond="$module_config->open_feed == $key" /> {$value}
|
||||
</label>
|
||||
</td>
|
||||
<td>
|
||||
<label class="x_inline">
|
||||
<input type="radio" name="open_total_feed[{$module_srl}]" value="N" checked="checked"|cond="$module_config->open_total_feed != 'T_N'" /> {$lang->use}
|
||||
</label>
|
||||
<label class="x_inline">
|
||||
<input type="radio" name="open_total_feed[{$module_srl}]" value="T_N" checked="checked"|cond="$module_config->open_total_feed == 'T_N'" /> {$lang->notuse}
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr cond="!$feed_config">
|
||||
<td style="text-align:center">{$lang->no_data}</td>
|
||||
<tr cond="!$rss_list">
|
||||
<td colspan="4" style="text-align:center">{$lang->no_data}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="x_clearfix">
|
||||
<button type="submit" class="x_btn x_btn-primary x_pull-right">{$lang->cmd_save}</button>
|
||||
</div>
|
||||
|
|
@ -116,7 +119,7 @@
|
|||
<script>
|
||||
jQuery(function($){
|
||||
$("._delete_rss_image").click(function(){
|
||||
$.exec_json('rss.procRssAdminDeleteFeedImage', {del_image:'Y'}, function(){
|
||||
$.exec_json('rss.procRssAdminDeleteFeedImage', {}, function(){
|
||||
$("._rss_image_container").hide();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,18 +1,18 @@
|
|||
<section class="section">
|
||||
<h1>{$lang->open_rss}</h1>
|
||||
<p>{$lang->about_open_rss}</p>
|
||||
|
||||
|
||||
<form ruleset="insertRssModuleConfig" action="./" method="post" class="x_form-horizontal">
|
||||
<input type="hidden" name="module" value="rss" />
|
||||
<input type="hidden" name="act" value="procRssAdminInsertModuleConfig" />
|
||||
<input type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" />
|
||||
<input type="hidden" name="target_module_srl" value="{$rss_config->module_srl?$rss_config->module_srl:$module_srls}" />
|
||||
<input type="hidden" name="target_module_srl" value="{$module_config->module_srl ?: $module_srls}" />
|
||||
|
||||
<div class="x_control-group">
|
||||
<label for="open_rss" class="x_control-label">{$lang->open_rss}</label>
|
||||
<div class="x_controls">
|
||||
<select name="open_rss" id="open_rss">
|
||||
<option loop="$lang->open_rss_types => $key, $val" value="{$key}" selected="selected"|cond="(!$rss_config->open_rss && $key == 'N') || ($rss_config->open_rss == $key)">{$val}</option>
|
||||
<option loop="$lang->open_rss_types => $key, $val" value="{$key}" selected="selected"|cond="$module_config->open_rss == $key">{$val}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -20,22 +20,22 @@
|
|||
<label for="open_total_feed" class="x_control-label">{$lang->open_feed_to_total}</label>
|
||||
<div class="x_controls">
|
||||
<select name="open_total_feed" id="open_total_feed">
|
||||
<option value="N" selected="selected"|cond="!$rss_config->open_total_feed || $rss_config->open_total_feed == 'N'">{$lang->use}</option>
|
||||
<option value="T_N" selected="selected"|cond="$rss_config->open_total_feed == 'T_N'">{$lang->notuse}</option>
|
||||
<option value="N" selected="selected"|cond="$module_config->open_total_feed == 'N'">{$lang->use}</option>
|
||||
<option value="T_N" selected="selected"|cond="$module_config->open_total_feed == 'T_N'">{$lang->notuse}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label for="feed_description" class="x_control-label">{$lang->description}</label>
|
||||
<div class="x_controls">
|
||||
<textarea name="feed_description" id="feed_description" rows="4" cols="42" style="float:left;margin-right:8px">{htmlspecialchars($rss_config->feed_description, ENT_COMPAT | ENT_HTML401, 'UTF-8', false)}</textarea>
|
||||
<textarea name="feed_description" id="feed_description" rows="4" cols="42" style="float:left;margin-right:8px">{escape($module_config->feed_description)}</textarea>
|
||||
<p class="x_help-block">{$lang->about_feed_description}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label for="feed_copyright" class="x_control-label">{$lang->feed_copyright}</label>
|
||||
<div class="x_controls">
|
||||
<textarea name="feed_copyright" id="feed_copyright" rows="4" cols="42" style="float:left;margin-right:8px">{htmlspecialchars($rss_config->feed_copyright, ENT_COMPAT | ENT_HTML401, 'UTF-8', false)}</textarea>
|
||||
<textarea name="feed_copyright" id="feed_copyright" rows="4" cols="42" style="float:left;margin-right:8px">{escape($module_config->feed_copyright)}</textarea>
|
||||
<p class="x_help-block">{$lang->about_feed_copyright}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
<script>//<![CDATA[
|
||||
alert('{$msg}');
|
||||
top.location.href = top.location.href;
|
||||
//]]></script>
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
{'<?xml version="1.0" encoding="UTF-8" ?>'}
|
||||
|
||||
<rss version="1.0">
|
||||
<channel>
|
||||
<title>{$info->title}</title>
|
||||
<link>{$info->link}</link>
|
||||
<description>{escape($info->description, false)}</description>
|
||||
<language>{$info->language}</language>
|
||||
<pubDate>{$info->date}</pubDate>
|
||||
<totalCount>{$info->total_count}</totalCount>
|
||||
<totalPage>{$info->total_page}</totalPage>
|
||||
<!--@foreach($document_list as $oDocument)-->
|
||||
<item>
|
||||
<title>{$oDocument->getTitleText()}</title>
|
||||
<author>{escape($oDocument->getNickName(), false)}</author>
|
||||
<link>{$oDocument->getPermanentUrl()}</link>
|
||||
<!--@if($open_rss_config[$oDocument->get('module_srl')]->open_rss=='Y')-->
|
||||
<description>{escape($oDocument->getTransContent(false, false, true), false)}</description>
|
||||
<!--@else-->
|
||||
<description>{escape($oDocument->getContentText(100), false)}</description>
|
||||
<!--@end-->
|
||||
<tags>{escape($oDocument->get('tags'), false)}</tags>
|
||||
<comment_count>{$oDocument->getCommentCount()}</comment_count>
|
||||
<trackback_count>{$oDocument->getTrackbackCount()}</trackback_count>
|
||||
<pubDate>{$oDocument->getRegdateGM()}</pubDate>
|
||||
<upDate>{$oDocument->getUpdateGM()}</upDate>
|
||||
</item>
|
||||
<!--@end-->
|
||||
</channel>
|
||||
</rss>
|
||||
Loading…
Add table
Add a link
Reference in a new issue