]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/php/default.php
theme-color meta
[friendica.git] / view / theme / frio / php / default.php
index 6f9c1a4b063b74ea8d4fe47287182c4a23676d92..89ee0bd2e0f87e0566068b084fc3603192417c12 100644 (file)
@@ -4,23 +4,20 @@
  * @brief The default site template
  */
 ?>
-
 <!DOCTYPE html >
-
-<?php 
+<?php
        require_once('view/theme/frio/php/frio_boot.php');
 
 //     $minimal = is_modal();
 
 ?>
-
 <html>
 <head>
        <title><?php if(x($page,'title')) echo $page['title'] ?></title>
-       <meta request="<?php echo $_REQUEST['pagename'] ?> ">
-       <script>var baseurl="<?php echo $a->get_baseurl() ?>";</script>
+       <meta request="<?php echo htmlspecialchars($_REQUEST['pagename']) ?>">
+       <script>var baseurl="<?php echo App::get_baseurl() ?>";</script>
        <script>var frio="<?php echo "view/theme/frio"; ?>";</script>
-       <?php $baseurl = $a->get_baseurl(); ?>
+       <?php $baseurl = App::get_baseurl(); ?>
        <?php $frio = "view/theme/frio"; ?>
        <?php 
                // Because we use minimal for modals the header and the included js stuff should be only loaded
                        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
@@ -73,16 +89,6 @@ else
                                                "; if(x($page,'right_aside')) echo $page['right_aside']; echo"
                                        </aside>
 
-                                       <!-- The following paragraph can maybe deleted because we don't need it anymore -->
-                                       <div id=\"NavAside\" class=\"navmenu navmenu-default navmenu-fixed-left offcanvas hidden-lg hidden-md\">
-                                               <div class=\"nav-container\">
-                                                       <div class=\"list-group\">
-                                                               "; if(x($page,'aside')) echo $page['aside']; echo"
-                                                               "; if(x($page,'right_aside')) echo $page['right_aside']; echo"
-                                                       </div>
-                                               </div>
-                                       </div><!--/.sidebar-offcanvas-->
-
                                        <div class=\"col-lg-7 col-md-7 col-sm-12 col-xs-12\" id=\"content\">
                                                <section class=\"sectiontop "; echo $a->argv[0]; echo "-content-wrapper\">";
                                                                if(x($page,'content')) echo $page['content']; echo"
@@ -100,7 +106,6 @@ else
                                        ";
                                }
 ?>
-               
                        </div><!--row-->
                </div><!-- container -->