]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/php/default.php
[frio] Add a <section> tag to the home page default template
[friendica.git] / view / theme / frio / php / default.php
index c6092393bdab5989bd93e2ce9785b2e166258f2b..74c30f6f7b4eee0a62a4b5746284be346a059e88 100644 (file)
@@ -35,7 +35,7 @@ if (!isset($minimal)) {
        $minimal = false;
 }
 
-$basepath = DI::baseUrl()->getUrlPath() ? "/" . DI::baseUrl()->getUrlPath() . "/" : "/";
+$basepath = DI::baseUrl()->getPath() ? "/" . DI::baseUrl()->getPath() . "/" : "/";
 $frio = "view/theme/frio";
 $view_mode_class = (DI::mode()->isMobile() || DI::mode()->isMobile()) ? 'mobile-view' : 'desktop-view';
 $is_singleuser = DI::config()->get('system', 'singleuser');
@@ -45,7 +45,7 @@ $is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser";
        <head>
                <title><?php if (!empty($page['title'])) echo $page['title'] ?></title>
                <meta request="<?php echo htmlspecialchars($_REQUEST['pagename'] ?? '') ?>">
-               <script  type="text/javascript">var baseurl = "<?php echo DI::baseUrl(); ?>";</script>
+               <script  type="text/javascript">var baseurl = "<?php echo (string)DI::baseUrl(); ?>";</script>
                <script type="text/javascript">var frio = "<?php echo 'view/theme/frio'; ?>";</script>
 <?php
                // Because we use minimal for modals the header and the included js stuff should be only loaded
@@ -137,12 +137,12 @@ $is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser";
                                                ';
                                } else {
                                        echo '
-                                       <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" id="content" style="margin-top:50px;">';
+                                       <section class="col-lg-12 col-md-12 col-sm-12 col-xs-12" id="content" style="margin-top:50px;">';
                                                if (!empty($page['content'])) {
                                                        echo $page['content'];
                                                }
                                                echo '
-                                       </div>
+                                       </section>
                                        ';
                                }
 ?>