diff --git a/modules/ncenterlite/m.skins/default/userconfig.html b/modules/ncenterlite/m.skins/default/userconfig.html
index 3375bc6a7..140b4e787 100644
--- a/modules/ncenterlite/m.skins/default/userconfig.html
+++ b/modules/ncenterlite/m.skins/default/userconfig.html
@@ -17,26 +17,17 @@
diff --git a/modules/ncenterlite/ncenterlite.view.php b/modules/ncenterlite/ncenterlite.view.php
index 85bd44dcd..7309ec39c 100644
--- a/modules/ncenterlite/ncenterlite.view.php
+++ b/modules/ncenterlite/ncenterlite.view.php
@@ -70,13 +70,35 @@ class ncenterliteView extends ncenterlite
$user_config = NcenterliteModel::getUserConfig($member_srl) ?: new stdClass;
$notify_types = NcenterliteModel::getUserSetNotifyTypes();
- foreach ($notify_types as $type => $srl)
+
+ $userConfigArray = get_object_vars($user_config);
+
+ $otherNotifyType = [
+ 'web',
+ 'mail',
+ 'sms',
+ 'push',
+ ];
+
+ $user_selected = [];
+ foreach($notify_types as $notify_type => $notify_srl)
{
- $user_config->{$type . '_notify'} = $user_config->{$type} ? 'Y' : 'N';
+ $user_config->{$notify_type . '_notify'} = $user_config->{$notify_type} ? 'Y' : 'N';
+ $user_selected[$notify_type] = [];
+ foreach ($otherNotifyType as $item)
+ {
+ $available = isset($config->use[$notify_type][$item]) && $config->use[$notify_type][$item] !== 'N';
+ $selected = (is_array($userConfigArray[$notify_type]) && in_array($item, $userConfigArray[$notify_type]));
+ $user_selected[$notify_type][$item] = new stdClass();
+ $user_selected[$notify_type][$item]->available = $available;
+ $user_selected[$notify_type][$item]->selected = $selected;
+ }
}
+
Context::set('member_info', $member_info);
Context::set('notify_types', $notify_types);
Context::set('user_config', $user_config);
+ Context::set('user_selected', $user_selected);
Context::set('module_config', NcenterliteModel::getConfig());
Context::set('sms_available', Rhymix\Framework\SMS::getDefaultDriver()->getName() !== 'Dummy');
Context::set('push_available', count(Rhymix\Framework\Config::get('push.types') ?? []) > 0);
diff --git a/modules/ncenterlite/skins/default/userconfig.html b/modules/ncenterlite/skins/default/userconfig.html
index db0c60a58..91cf2eb8a 100644
--- a/modules/ncenterlite/skins/default/userconfig.html
+++ b/modules/ncenterlite/skins/default/userconfig.html
@@ -19,30 +19,21 @@
{$lang->ncenterlite_userconfig_about} ({$lang->ncenterlite_userconfig_about_warning})
- {@ $uc = get_object_vars($user_config)}
-
-
-
+
+
+
+
diff --git a/modules/ncenterlite/skins/default_bottom/userconfig.html b/modules/ncenterlite/skins/default_bottom/userconfig.html
index db0c60a58..0039565b5 100644
--- a/modules/ncenterlite/skins/default_bottom/userconfig.html
+++ b/modules/ncenterlite/skins/default_bottom/userconfig.html
@@ -19,30 +19,21 @@
{$lang->ncenterlite_userconfig_about} ({$lang->ncenterlite_userconfig_about_warning})
- {@ $uc = get_object_vars($user_config)}
-
-
-
+
+
+
+
@@ -53,3 +44,5 @@
+
+