From 0d583634a8f905395dcbc716a3386a1ac8fbcb52 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 1 Oct 2015 14:45:50 +0000 Subject: [PATCH] support themes on application level: $app/templates/$template/app-$theme.css --- phpgwapi/inc/class.egw_framework.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.egw_framework.inc.php b/phpgwapi/inc/class.egw_framework.inc.php index 730450f89e..c01886263d 100644 --- a/phpgwapi/inc/class.egw_framework.inc.php +++ b/phpgwapi/inc/class.egw_framework.inc.php @@ -1397,7 +1397,8 @@ abstract class egw_framework self::includeCSS($theme_css); // search for app specific css file, so it can customize the theme - self::includeCSS($GLOBALS['egw_info']['flags']['currentapp'], 'app'); + self::includeCSS($GLOBALS['egw_info']['flags']['currentapp'], 'app-'.$GLOBALS['egw_info']['user']['preferences']['common']['theme']) || + self::includeCSS($GLOBALS['egw_info']['flags']['currentapp'], 'app'); // sending print css last, so it can overwrite anything $print_css = $this->template_dir.'/print.css';