]> git.mxchange.org Git - friendica.git/commitdiff
theme-color meta
authorPierre Rudloff <contact@rudloff.pro>
Thu, 13 Apr 2017 01:02:53 +0000 (03:02 +0200)
committerPierre Rudloff <contact@rudloff.pro>
Thu, 13 Apr 2017 10:03:02 +0000 (12:03 +0200)
view/theme/frio/php/default.php

index 87ccf3dc1a85114da47094bf9c7066cced5f36e7..89ee0bd2e0f87e0566068b084fc3603192417c12 100644 (file)
                        if(x($page,'htmlhead')) echo $page['htmlhead'];
                }
        ?>
+       <?php
+               require_once("view/theme/frio/php/schema.php");
+               $uid = $a->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 '<meta name="theme-color" content="'.$nav_bg.'" />';
+       ?>
+
 </head>
 <?php
 if(($_SERVER['REQUEST_URI'] != "/register") && ($_SERVER['REQUEST_URI'] != "/lostpass") && ($_SERVER['REQUEST_URI'] != "/login"))