Fix #2413 include module title in RSS config screen

This commit is contained in:
Kijin Sung 2024-10-11 22:18:06 +09:00
parent 574e89b028
commit 5936ec9e8d
4 changed files with 9 additions and 5 deletions

View file

@ -6,6 +6,7 @@ $lang->feed_copyright = 'Copyright';
$lang->feed_document_count = 'Number of articles per page';
$lang->feed_image = 'Feed Image';
$lang->rss_type = 'RSS feed type';
$lang->module_feed_management = 'Feeds for Each Module';
$lang->open_rss = 'Open RSS';
$lang->open_rss_types['Y'] = 'Open all';
$lang->open_rss_types['H'] = 'Open summary';

View file

@ -6,6 +6,7 @@ $lang->feed_copyright = '저작권';
$lang->feed_document_count = '한 페이지당 글 수';
$lang->feed_image = '피드 이미지';
$lang->rss_type = '출력할 피드(Feed) 형식';
$lang->module_feed_management = '모듈별 피드 관리';
$lang->open_rss = '피드(Feed) 공개';
$lang->open_rss_types['Y'] = '전문 공개 ';
$lang->open_rss_types['H'] = '요약 공개';

View file

@ -36,6 +36,7 @@ class RssAdminView extends Rss
$module_info = ModuleModel::getModuleInfoByModuleSrl($module_srl);
$args = new stdClass;
$args->browser_title = $module_info->browser_title;
$args->mid = $module_info->mid;
$args->url = $oRssModel->getRssURL('rss', $module_info->mid);
$args->open_feed = $module_config->open_rss;

View file

@ -42,7 +42,7 @@
<label class="x_control-label" for="image">{$lang->feed_image}</label>
<div class="x_controls">
<div class="_rss_image_container" cond="$config->image">
<div class="x_thumbnail" style="display:inline-block;margin:0 0 5px 0">
<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" />
<button type="button" class="_delete_rss_image">{$lang->cmd_delete}</button>
</div>
@ -68,12 +68,12 @@
</form>
</section>
<section class="section">
<h1 style="margin-bottom:0">{$lang->feed} {$lang->cmd_management}</h1>
<h1 style="margin-bottom:0">{$lang->module_feed_management}</h1>
<form action="./" method="post">
<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>
@ -86,7 +86,8 @@
<tbody>
<tr loop="$rss_list => $module_srl,$module_config">
<td>
<a href="{$module_config->url}" target="_blank">{$module_config->mid}</a>
<b>{$module_config->browser_title}</b>
<br><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>
@ -110,7 +111,7 @@
</tr>
</tbody>
</table>
<div class="x_clearfix">
<button type="submit" class="x_btn x_btn-primary x_pull-right">{$lang->cmd_save}</button>
</div>