mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
알림센터 목록 수 조정 옵션 추가
This commit is contained in:
parent
34db077871
commit
e7f3f75839
4 changed files with 39 additions and 0 deletions
|
|
@ -133,6 +133,8 @@ $lang->ncenterlite_mid_use = '모듈별 사용 설정';
|
|||
$lang->ncenterlite_to_unsubscribe = '수신 거부';
|
||||
$lang->ncenterlite_subscribe = '수신 거부 안함';
|
||||
$lang->ncenterlite_cmd_unsubscribe_settings = '알림 수신 설정';
|
||||
$lang->ncenterlite_notify_count = '알림 갯수';
|
||||
$lang->ncenterlite_notify_count_about = '알림 리스트의 알림 갯수를 설정합니다.';
|
||||
$lang->this_message_unsubscribe = '이 게시글/댓글의 알림 수신 거부';
|
||||
$lang->about_this_message_unsubscribe = '이 게시글/댓글의 알림을 수신 거부합니다.';
|
||||
$lang->unsubscribe_list = '수신 거부 리스트';
|
||||
|
|
|
|||
|
|
@ -36,8 +36,17 @@ class ncenterliteAdminController extends ncenterlite
|
|||
'comment_all',
|
||||
'comment_all_notify_module_srls',
|
||||
'unsubscribe',
|
||||
'notify_count',
|
||||
);
|
||||
|
||||
if($obj->disp_act == 'dispNcenterliteAdminSkinsetting')
|
||||
{
|
||||
if(intval($obj->notify_count) !== intval($config->notify_count))
|
||||
{
|
||||
Rhymix\Framework\Cache::clearGroup($this->module);
|
||||
}
|
||||
}
|
||||
|
||||
foreach($config_vars as $val)
|
||||
{
|
||||
if($obj->{$val})
|
||||
|
|
@ -98,6 +107,14 @@ class ncenterliteAdminController extends ncenterlite
|
|||
$config->comment_all_notify_module_srls = array();
|
||||
}
|
||||
}
|
||||
|
||||
if($obj->disp_act == 'dispNcenterliteAdminSkinsetting')
|
||||
{
|
||||
if(!$obj->notify_count)
|
||||
{
|
||||
$config->notify_count = 0;
|
||||
}
|
||||
}
|
||||
|
||||
$output = $oModuleController->insertModuleConfig('ncenterlite', $config);
|
||||
if(!$output->toBool())
|
||||
|
|
|
|||
|
|
@ -80,6 +80,11 @@ class ncenterliteModel extends ncenterlite
|
|||
$config->highlight_effect = 'Y';
|
||||
}
|
||||
|
||||
if(!$config->notify_count)
|
||||
{
|
||||
$config->notify_count = 5;
|
||||
}
|
||||
|
||||
self::$_config = $config;
|
||||
}
|
||||
|
||||
|
|
@ -385,11 +390,19 @@ class ncenterliteModel extends ncenterlite
|
|||
|
||||
$args = new stdClass();
|
||||
$args->member_srl = $member_srl;
|
||||
|
||||
$args->page = $page ? $page : 1;
|
||||
if ($readed)
|
||||
{
|
||||
$args->readed = $readed;
|
||||
}
|
||||
|
||||
$notify_count = intval(self::getConfig()->notify_count);
|
||||
if($notify_count)
|
||||
{
|
||||
$args->list_count = $notify_count;
|
||||
}
|
||||
|
||||
$output = executeQueryArray('ncenterlite.getNotifyList', $args);
|
||||
if (!$output->data)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -79,6 +79,13 @@
|
|||
<p class="x_help-block">{$lang->ncenterlite_zindex_about}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label class="x_control-label" for="notify_count">{$lang->ncenterlite_notify_count}</label>
|
||||
<div class="x_controls">
|
||||
<input type="number" name="notify_count" id="notify_count" value="{$config->notify_count}" style="width:100px" />
|
||||
<p class="x_help-block">{$lang->ncenterlite_notify_count_about}</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<div class="x_clearfix btnArea">
|
||||
<div class="x_pull-right">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue