mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
문자메세지 관련 설정을 알림센터에 추가
This commit is contained in:
parent
5075e9d875
commit
26de6cebd8
6 changed files with 50 additions and 0 deletions
|
|
@ -37,6 +37,7 @@ $lang->ncenterlite_message_mention = '<strong>%1$s</strong> sent you a message,
|
|||
$lang->ncenterlite_test_noti = 'Hello, <strong>%s</strong>! This is a test notification.';
|
||||
$lang->ncenterlite_vote = '<strong>%1$s</strong> upvoted your %3$s, "%2$s".';
|
||||
$lang->ncenterlite_admin_content_message = '<strong>%1$s</strong> wrote "%3$s" on <strong>%2$s</strong>.';
|
||||
$lang->ncenterlite_insert_member_message = '<strong>%s!</strong> Welcome to the <strong>membership!!</strong>';
|
||||
$lang->ncenterlite_ago = 'ago';
|
||||
$lang->ncenterlite_date['0'] = 'year';
|
||||
$lang->ncenterlite_date['1'] = 'month';
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ $lang->ncenterlite_my_list = '내 알림 목록';
|
|||
$lang->ncenterlite_my_settings = '내 알림 설정';
|
||||
$lang->ncenterlite_user_settings = '사용자 알림 설정';
|
||||
$lang->ncenterlite_userconfig_title = '%s님의 알림센터 설정';
|
||||
$lang->ncenterlite_sms_message_use = 'SMS 문자알림';
|
||||
$lang->ncenterlite_userconfig_about = '알림센터의 개인의 설정을 저장하도록 합니다.';
|
||||
$lang->ncenterlite_comment_noti = '댓글 알림';
|
||||
$lang->ncenterlite_comment_noti_about = '내 게시물의 혹은 내 댓글에 댓글이 달릴경우 알림을 받습니다.';
|
||||
|
|
@ -47,6 +48,7 @@ $lang->ncenterlite_message_mention = '<strong>%s</strong>님이 <strong>"%s"</st
|
|||
$lang->ncenterlite_test_noti = '<strong>%s</strong>님! 테스트 알림입니다.';
|
||||
$lang->ncenterlite_vote = '<strong>%s</strong>님이 회원님의 <strong>"%s"</strong> %s을 추천하였습니다.';
|
||||
$lang->ncenterlite_admin_content_message = '<strong>%1$s</strong>님이 <strong>"%2$s"</strong> 게시판에 <strong>"%3$s"</strong>라고 글을 남겼습니다.';
|
||||
$lang->ncenterlite_insert_member_message = '<strong>%s</strong>님 <strong>회원가입</strong>을 환영합니다!!';
|
||||
$lang->ncenterlite_ago = '전';
|
||||
$lang->ncenterlite_date['0'] = '년';
|
||||
$lang->ncenterlite_date['1'] = '개월';
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ class ncenterliteAdminController extends ncenterlite
|
|||
'document_read',
|
||||
'layout_srl',
|
||||
'mlayout_srl',
|
||||
'use_sms'
|
||||
);
|
||||
|
||||
foreach($config_vars as $val)
|
||||
|
|
|
|||
|
|
@ -11,8 +11,19 @@ class ncenterliteAdminView extends ncenterlite
|
|||
{
|
||||
$oNcenterliteModel = getModel('ncenterlite');
|
||||
|
||||
$sms = new Rhymix\Framework\SMS;
|
||||
|
||||
if($sms::getDefaultDriver()->getName() === 'Dummy')
|
||||
{
|
||||
$sms_available = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
$sms_available = true;
|
||||
}
|
||||
$config = $oNcenterliteModel->getConfig();
|
||||
Context::set('config', $config);
|
||||
Context::set('sms_available', $sms_available);
|
||||
}
|
||||
|
||||
function dispNcenterliteAdminSeletedmid()
|
||||
|
|
|
|||
|
|
@ -491,4 +491,29 @@ class ncenterliteModel extends ncenterlite
|
|||
|
||||
return $output->data;
|
||||
}
|
||||
|
||||
public static function getSmsHandler()
|
||||
{
|
||||
static $oSmsHandler = null;
|
||||
|
||||
if($oSmsHandler === null)
|
||||
{
|
||||
$config = self::getConfig();
|
||||
if($config->use_sms != 'Y')
|
||||
{
|
||||
$oSmsHandler = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
$oSmsHandler = new Rhymix\Framework\SMS;
|
||||
|
||||
if($oSmsHandler::getDefaultDriver()->getName() === 'Dummy')
|
||||
{
|
||||
$oSmsHandler = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $oSmsHandler;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,6 +20,16 @@
|
|||
<p class="x_help-block">{$lang->about_admin_content}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label class="x_control-label" for="use_sms">{$lang->ncenterlite_sms_message_use}</label>
|
||||
<div class="x_controls">
|
||||
<select name="use_sms" disabled="disabled"|cond="!$sms_available" id="use_sms">
|
||||
<option value="Y" selected="selected"|cond="$config->use_sms=='Y' && $sms_available">{$lang->ncenterlite_activate}</option>
|
||||
<option value="N" selected="selected"|cond="$config->use_sms=='N' || !$sms_available">{$lang->ncenterlite_inactivate}</option>
|
||||
</select>
|
||||
<p>{$lang->use_sms_help}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label class="x_control-label" for="display_use">{$lang->ncenterlite_display}</label>
|
||||
<div class="x_controls">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue