From: Jeroen De Meerleer Date: Sat, 13 Jul 2019 21:27:54 +0000 (+0200) Subject: Default theme = login theme X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=43625b437bb0e09abc461c468a39c2dc1c76913d;p=friendica.git Default theme = login theme --- diff --git a/view/theme/frio/style.php b/view/theme/frio/style.php index d6336ae3dd..57abd77114 100644 --- a/view/theme/frio/style.php +++ b/view/theme/frio/style.php @@ -93,7 +93,14 @@ if (!$scheme) { $schemecssfile = 'view/theme/frio/scheme/default.css'; } } - +//If no scheme was set default to login theme. +$nav_bg = (empty($nav_bg) ? Config::get('frio', 'nav_bg') : $nav_bg); +$nav_icon_color = (empty($nav_icon_color) ? Config::get('frio', 'nav_icon_color') : $nav_icon_color); +$link_color = (empty($link_color) ? Config::get('frio', 'link_color') : $link_color); +$background_color = (empty($background_color) ? Config::get('frio', 'background_color') : $background_color); +$background_image = (empty($background_image) ? Config::get('frio', 'background_image') : $background_image); + +//If login theme unset default to master default //Set some defaults - we have to do this after pulling owner settings, and we have to check for each setting //individually. If we don't, we'll have problems if a user has set one, but not all options. $nav_bg = (empty($nav_bg) ? '#708fa0' : $nav_bg);