mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-12 15:02:15 +09:00
관리자가 모든 모듈의 다크모드 설정을 제어하도록 합니다. (#1558)
* 관리자가 다크모드 작동 여부를 선택할 수 있도록 수정
This commit is contained in:
parent
b7856e5683
commit
899fe00dda
9 changed files with 75 additions and 9 deletions
|
|
@ -1113,6 +1113,13 @@ class adminAdminController extends admin
|
|||
$vars->html_header = utf8_trim($vars->html_header);
|
||||
$vars->html_footer = utf8_trim($vars->html_footer);
|
||||
|
||||
// Validate the color scheme setting.
|
||||
$valid_color_scheme_options = array('off_light', 'off_dark', 'auto_light_dark');
|
||||
if (!in_array($vars->color_scheme, $valid_color_scheme_options))
|
||||
{
|
||||
$vars->color_scheme = 'off_light';
|
||||
}
|
||||
|
||||
// Merge all settings into an array.
|
||||
$settings = array(
|
||||
'title' => $vars->title,
|
||||
|
|
@ -1123,6 +1130,7 @@ class adminAdminController extends admin
|
|||
'meta_description' => $vars->meta_description,
|
||||
'html_header' => $vars->html_header,
|
||||
'html_footer' => $vars->html_footer,
|
||||
'color_scheme' => $vars->color_scheme
|
||||
);
|
||||
|
||||
// Get the DB object and begin a transaction.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue