]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/style.php
Merge pull request #1 from friendica/develop
[friendica.git] / view / theme / frio / style.php
index 363f7cd44deb827ebaab84acfd59f1b81c2b3463..3d9c7743ab8e1a6161d929b10e887f483e159c85 100644 (file)
@@ -1,9 +1,24 @@
 <?php
 /**
- * @file view/theme/frio/style.php
+ * @copyright Copyright (C) 2020, Friendica
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
+ *
  */
 
-use Friendica\Core\Config;
 use Friendica\DI;
 use Friendica\Util\Strings;
 
@@ -14,20 +29,20 @@ $schemecss = '';
 $schemecssfile = false;
 $scheme_modified = 0;
 
-Config::load('frio');
+DI::config()->load('frio');
 
 // Default to hard-coded values for empty settings
-$scheme           = Config::get('frio', 'scheme', Config::get('frio', 'schema'));
-$nav_bg           = Config::get('frio', 'nav_bg')           ?: '#708fa0';
-$nav_icon_color   = Config::get('frio', 'nav_icon_color')   ?: '#ffffff';
-$link_color       = Config::get('frio', 'link_color')       ?: '#6fdbe8';
-$background_color = Config::get('frio', 'background_color') ?: '#ededed';
-$contentbg_transp = Config::get('frio', 'contentbg_transp') ?: '';
-$background_image = Config::get('frio', 'background_image') ?: 'img/none.png';
-$bg_image_option  = Config::get('frio', 'bg_image_option')  ?: '';
-$login_bg_image   = Config::get('frio', 'login_bg_image')   ?: '';
-$login_bg_color   = Config::get('frio', 'login_bg_color')   ?: '';
-$modified         = Config::get('frio', 'css_modified')     ?: time();
+$scheme           = DI::config()->get('frio', 'scheme', DI::config()->get('frio', 'schema'));
+$nav_bg           = DI::config()->get('frio', 'nav_bg')           ?: '#708fa0';
+$nav_icon_color   = DI::config()->get('frio', 'nav_icon_color')   ?: '#ffffff';
+$link_color       = DI::config()->get('frio', 'link_color')       ?: '#6fdbe8';
+$background_color = DI::config()->get('frio', 'background_color') ?: '#ededed';
+$contentbg_transp = DI::config()->get('frio', 'contentbg_transp') ?: '';
+$background_image = DI::config()->get('frio', 'background_image') ?: 'img/none.png';
+$bg_image_option  = DI::config()->get('frio', 'bg_image_option')  ?: '';
+$login_bg_image   = DI::config()->get('frio', 'login_bg_image')   ?: '';
+$login_bg_color   = DI::config()->get('frio', 'login_bg_color')   ?: '';
+$modified         = DI::config()->get('frio', 'css_modified')     ?: time();
 
 if (!$login_bg_image && !$login_bg_color) {
        $login_bg_image = 'img/login_bg.jpg';