From d0407f8b761f80f1723e7eb72b15ed7de0340103 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Thu, 13 Apr 2017 03:02:53 +0200 Subject: [PATCH 1/2] theme-color meta --- view/theme/frio/php/default.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/view/theme/frio/php/default.php b/view/theme/frio/php/default.php index 87ccf3dc1a..89ee0bd2e0 100644 --- a/view/theme/frio/php/default.php +++ b/view/theme/frio/php/default.php @@ -28,6 +28,27 @@ if(x($page,'htmlhead')) echo $page['htmlhead']; } ?> + profile_uid; + if (is_null($uid)) { + $uid = get_theme_uid(); + } + $schema = get_pconfig($uid, 'frio', 'schema'); + if (($schema) && ($schema != '---')) { + if(file_exists('view/theme/frio/schema/'.$schema.'.php')) { + $schemefile = 'view/theme/frio/schema/'.$schema.'.php'; + require_once($schemefile); + } + } else { + $nav_bg = get_pconfig($uid, 'frio', 'nav_bg'); + } + if(!$nav_bg) { + $nav_bg = "#708fa0"; + } + echo ''; + ?> + Date: Mon, 17 Apr 2017 13:38:55 +0200 Subject: [PATCH 2/2] Updated theme-color code Add comment explaining what the code does Remove unused include Code standards --- view/theme/frio/php/default.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/view/theme/frio/php/default.php b/view/theme/frio/php/default.php index 89ee0bd2e0..c56f63d9e3 100644 --- a/view/theme/frio/php/default.php +++ b/view/theme/frio/php/default.php @@ -29,21 +29,22 @@ } ?> profile_uid; if (is_null($uid)) { $uid = get_theme_uid(); } $schema = get_pconfig($uid, 'frio', 'schema'); if (($schema) && ($schema != '---')) { - if(file_exists('view/theme/frio/schema/'.$schema.'.php')) { + if (file_exists('view/theme/frio/schema/'.$schema.'.php')) { $schemefile = 'view/theme/frio/schema/'.$schema.'.php'; require_once($schemefile); } } else { $nav_bg = get_pconfig($uid, 'frio', 'nav_bg'); } - if(!$nav_bg) { + if (!$nav_bg) { $nav_bg = "#708fa0"; } echo '';