]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/php/default.php
Merge pull request #4455 from MrPetovan/task/4176-fix-undeclared-variables-2
[friendica.git] / view / theme / frio / php / default.php
index 768dd122f955b890cea575219bcd30ad81cc52a6..c78fdd265cda6634b36fd014c2d8d7b9ae198538 100644 (file)
@@ -10,6 +10,7 @@
 use Friendica\Core\Config;
 use Friendica\Core\PConfig;
 use Friendica\Core\System;
+use Friendica\Model\Profile;
 
 require_once 'view/theme/frio/php/frio_boot.php';
 
@@ -38,7 +39,7 @@ if (!isset($minimal)) {
        // It makes mobile Chrome UI match Frio's top bar color.
        $uid = $a->profile_uid;
        if (is_null($uid)) {
-               $uid = get_theme_uid();
+               $uid = Profile::getThemeUid();
        }
        $schema = PConfig::get($uid, 'frio', 'schema');
        if (($schema) && ($schema != '---')) {
@@ -54,9 +55,12 @@ if (!isset($minimal)) {
        }
        echo '
                <meta name="theme-color" content="' . $nav_bg . '" />';
+
+       $is_singleuser = Config::get('system','singleuser');
+       $is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser";
 ?>
        </head>
-       <body id="top">
+       <body id="top" class="mod-<?php echo $a->module." ".$is_singleuser_class;?>">
                <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
 <?php
        if (x($page, 'nav') && !$minimal) {