mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-21 03:12:55 +09:00
관리자가 모든 모듈의 다크모드 설정을 제어하도록 합니다. (#1558)
* 관리자가 다크모드 작동 여부를 선택할 수 있도록 수정
This commit is contained in:
parent
b7856e5683
commit
899fe00dda
9 changed files with 75 additions and 9 deletions
|
|
@ -743,6 +743,14 @@ class adminAdminView extends admin
|
|||
Context::set('favicon_url', $oAdminAdminModel->getFaviconUrl($domain_info->domain_srl));
|
||||
Context::set('mobicon_url', $oAdminAdminModel->getMobileIconUrl($domain_info->domain_srl));
|
||||
Context::set('default_image_url', $oAdminAdminModel->getSiteDefaultImageUrl($domain_info->domain_srl));
|
||||
|
||||
// Get color scheme setting.
|
||||
$valid_color_scheme_options = array('off_light', 'off_dark', 'auto_light_dark');
|
||||
if (!in_array($domain_info->settings->color_scheme, $valid_color_scheme_options))
|
||||
{
|
||||
$domain_info->settings->color_scheme = 'off_light';
|
||||
}
|
||||
Context::set('color_scheme', $domain_info->settings->color_scheme);
|
||||
}
|
||||
|
||||
$this->setTemplateFile('config_domains_edit');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue