mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
\#1558 보완
- 설정값 명칭을 기존에 사용하던 쿠키값과 동일하게 auto, light, dark로 통일하여 혼동을 방지합니다. - 지나치게 긴 설명문보다는 옵션 명칭 자체가 충분히 의미를 전달할 수 있도록 합니다. - 설명문을 길게 써야 할 경우 매뉴얼에 넣어 주세요. - 설정을 변경하지 않고 저장할 경우, 자동 감지를 기본값으로 합니다.
This commit is contained in:
parent
899fe00dda
commit
c18e0a7225
5 changed files with 15 additions and 28 deletions
|
|
@ -761,14 +761,9 @@ class ModuleHandler extends Handler
|
|||
*/
|
||||
protected function _setModuleColorScheme($site_module_info)
|
||||
{
|
||||
$color_scheme = null;
|
||||
|
||||
$color_scheme_array = array('off_light'=>'light', 'off_dark' => 'dark');
|
||||
if (isset($color_scheme_array[$site_module_info->settings->color_scheme]))
|
||||
if (isset($site_module_info->settings->color_scheme) && $site_module_info->settings->color_scheme !== 'auto')
|
||||
{
|
||||
Rhymix\Framework\UA::setColorScheme('auto');
|
||||
$color_scheme = $color_scheme_array[$site_module_info->settings->color_scheme];
|
||||
Context::addBodyClass('color_scheme_' . $color_scheme);
|
||||
Context::addBodyClass('color_scheme_' . $site_module_info->settings->color_scheme);
|
||||
}
|
||||
elseif (($color_scheme = Rhymix\Framework\UA::getColorScheme()) !== 'auto')
|
||||
{
|
||||
|
|
@ -776,7 +771,6 @@ class ModuleHandler extends Handler
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set SEO information to Context.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue