Allow custom theme for mobile template

This commit is contained in:
Hadi Nategh 2018-02-08 10:10:00 +01:00
parent a8ffe5ab05
commit 4e0be8a887

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';