Allow custom theme for mobile template

This commit is contained in:
Hadi Nategh 2018-02-08 10:10:00 +01:00
parent e9d29852ad
commit 0bbbad3a8c

View File

@ -841,6 +841,7 @@ abstract class Framework extends Framework\Extra
$themes_to_check = array(); $themes_to_check = array();
if (Header\UserAgent::mobile() || $GLOBALS['egw_info']['user']['preferences']['common']['theme'] == 'fw_mobile') if (Header\UserAgent::mobile() || $GLOBALS['egw_info']['user']['preferences']['common']['theme'] == 'fw_mobile')
{ {
$themes_to_check[] = $this->template_dir.'/mobile/'.$GLOBALS['egw_info']['user']['preferences']['common']['theme'].'.css';
$themes_to_check[] = $this->template_dir.'/mobile/fw_mobile.css'; $themes_to_check[] = $this->template_dir.'/mobile/fw_mobile.css';
} }
$themes_to_check[] = $this->template_dir.'/css/'.$GLOBALS['egw_info']['user']['preferences']['common']['theme'].'.css'; $themes_to_check[] = $this->template_dir.'/css/'.$GLOBALS['egw_info']['user']['preferences']['common']['theme'].'.css';