mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
알림이 없을 경우 출력하는 기능 추가.
옵션 제공합니다. 기본값은 사용하지 않도록 되어있습니다.
This commit is contained in:
parent
011918066f
commit
2edb8fd2b5
8 changed files with 30 additions and 3 deletions
|
|
@ -50,6 +50,7 @@ $lang->ncenterlite_date['5'] = 'second';
|
|||
$lang->ncenterlite_sir = ' ';
|
||||
$lang->ncenterlite_message = 'You have <strong class="num">%s</strong> new notification.';
|
||||
$lang->ncenterlite_messages = 'You have <strong class="num">%s</strong> new notifications.';
|
||||
$lang->ncenterlite_not_have_message = 'You have read all the notifications.';
|
||||
$lang->ncenterlite_thisistest = '[*] This is a test notice.';
|
||||
$lang->ncenterlite_delete_all = 'delete all';
|
||||
$lang->ncenterlite_more = 'More';
|
||||
|
|
@ -72,6 +73,8 @@ $lang->ncenterlite_display_pc = 'Only PC';
|
|||
$lang->ncenterlite_display_mobile = 'Only Mobile';
|
||||
$lang->ncenterlite_display_none = 'Not display.';
|
||||
$lang->ncenterlite_display_about = 'You can hide notifications from Notification Center Lite if you are using a layout or widget that handles notifications for you.';
|
||||
$lang->ncenterlite_always_display = 'Always ncenterlite display';
|
||||
$lang->ncenterlite_always_display_about = 'This feature allows there to display the Notification Center even if there is no notification of the user.';
|
||||
$lang->ncenterlite_mention_target = 'Mention target';
|
||||
$lang->ncenterlite_mention_target_about = 'Mention target can be nicknames or IDs (@Nickname or @ID).';
|
||||
$lang->ncenterlite_skin_settings = 'Skin settings';
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ $lang->ncenterlite_date['5'] = '초';
|
|||
$lang->ncenterlite_sir = '님';
|
||||
$lang->ncenterlite_message = '<strong class="num">%s</strong>개의 알림이 있습니다.';
|
||||
$lang->ncenterlite_messages = '<strong class="num">%s</strong>개의 알림이 있습니다.';
|
||||
$lang->ncenterlite_not_have_message = '알림을 모두 읽으셨습니다.';
|
||||
$lang->ncenterlite_thisistest = '[*] 시험용 알림입니다';
|
||||
$lang->ncenterlite_delete_all = '모두 삭제';
|
||||
$lang->ncenterlite_more = '더보기';
|
||||
|
|
@ -82,6 +83,8 @@ $lang->ncenterlite_display_pc = 'PC만 표시';
|
|||
$lang->ncenterlite_display_mobile = '모바일만 표시';
|
||||
$lang->ncenterlite_display_none = '표시하지 않음';
|
||||
$lang->ncenterlite_display_about = '사용하는 레이아웃이나 위젯에 알림을 표시하는 기능이 있는 경우 중복을 막기 위해 알림센터의 알림을 숨길 수 있습니다.';
|
||||
$lang->ncenterlite_always_display = '알림센터 항상 표기';
|
||||
$lang->ncenterlite_always_display_about = '이 기능을 사용할 경우 유저들의 알림이 없을 경우에도 알림센터를 출력합니다.';
|
||||
$lang->ncenterlite_mention_target = '멘션 타겟';
|
||||
$lang->ncenterlite_mention_target_about = '멘션 알림을 @아이디 소유자에게 보낼지 @닉네임 소유자에게 보낼지 선택할 수 있습니다.';
|
||||
$lang->ncenterlite_skin_settings = '스킨 설정';
|
||||
|
|
|
|||
|
|
@ -12,6 +12,8 @@
|
|||
<a class="notify" href="#">
|
||||
<!--@if($_ncenterlite_num > 1)-->
|
||||
{sprintf($lang->ncenterlite_messages, $ncenterlite_page_navigation->total_count)}
|
||||
<!--@else if($_ncenterlite_num < 1)-->
|
||||
{$lang->ncenterlite_not_have_message}
|
||||
<!--@else-->
|
||||
{sprintf($lang->ncenterlite_message, $ncenterlite_page_navigation->total_count)}
|
||||
<!--@endif-->
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ class ncenterliteAdminController extends ncenterlite
|
|||
$config_vars = array(
|
||||
'use',
|
||||
'display_use',
|
||||
'always_display',
|
||||
'user_config_list',
|
||||
'mention_names',
|
||||
'mention_suffixes',
|
||||
|
|
|
|||
|
|
@ -795,10 +795,12 @@ class ncenterliteController extends ncenterlite
|
|||
$logged_info = Context::get('logged_info');
|
||||
$_output = $oNcenterliteModel->getMyNotifyList($logged_info->member_srl);
|
||||
|
||||
// TODO : 메세지 없더라도 표시하도록 하는 옵션 추가
|
||||
if(!$_output->data)
|
||||
if($config->always_display !== 'Y')
|
||||
{
|
||||
return;
|
||||
if(!$_output->data)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
$_latest_notify_id = array_slice($_output->data, 0, 1);
|
||||
|
|
|
|||
|
|
@ -12,6 +12,8 @@
|
|||
<a class="notify" href="#">
|
||||
<!--@if($_ncenterlite_num > 1)-->
|
||||
{sprintf($lang->ncenterlite_messages, $ncenterlite_page_navigation->total_count)}
|
||||
<!--@else if($_ncenterlite_num < 1)-->
|
||||
{$lang->ncenterlite_not_have_message}
|
||||
<!--@else-->
|
||||
{sprintf($lang->ncenterlite_message, $ncenterlite_page_navigation->total_count)}
|
||||
<!--@endif-->
|
||||
|
|
|
|||
|
|
@ -12,6 +12,8 @@
|
|||
<a class="notify" href="#">
|
||||
<!--@if($_ncenterlite_num > 1)-->
|
||||
{sprintf($lang->ncenterlite_messages, $ncenterlite_page_navigation->total_count)}
|
||||
<!--@else if($_ncenterlite_num < 1)-->
|
||||
{$lang->ncenterlite_not_have_message}
|
||||
<!--@else-->
|
||||
{sprintf($lang->ncenterlite_message, $ncenterlite_page_navigation->total_count)}
|
||||
<!--@endif-->
|
||||
|
|
|
|||
|
|
@ -68,6 +68,18 @@
|
|||
<p class="x_help-block">{$lang->ncenterlite_display_about}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label class="x_control-label">{$lang->ncenterlite_always_display}</label>
|
||||
<div class="x_controls">
|
||||
<label class="x_inline">
|
||||
<input type="radio" id="always_display_y" name="always_display" value="Y" checked="checked"|cond="$config->always_display == 'Y'" /> {$lang->use}
|
||||
</label>
|
||||
<label class="x_inline">
|
||||
<input type="radio" id="always_display_n" name="always_display" value="N" checked="checked"|cond="$config->always_display != 'Y'" /> {$lang->notuse}
|
||||
</label>
|
||||
<p class="x_help-block">{$lang->ncenterlite_always_display_about}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label class="x_control-label">{$lang->member_menu_view}</label>
|
||||
<div class="x_controls">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue