]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/php/standard.php
Merge pull request #5438 from MrPetovan/task/5410-remove-dbm-class
[friendica.git] / view / theme / frio / php / standard.php
index 5535b9ed71340a9b5a628dfb2bbb56cde2af5dac..64c4544cd877b1c7df4337fe394c94e54f95247e 100644 (file)
@@ -4,29 +4,25 @@
  * @brief The default site template
  */
 ?>
-
 <!DOCTYPE html >
-
 <html>
 <head>
        <title><?php if(x($page,'title')) echo $page['title'] ?></title>
        <meta name="viewport" content="initial-scale=1.0">
-       <meta request="<?php echo $_REQUEST['pagename'] ?> ">
-       <script>var baseurl="<?php echo $a->get_baseurl() ?>";</script>
-       <script>var frio="<?php echo "view/theme/frio"; ?>";</script>
-       <?php $baseurl = $a->get_baseurl(); ?>
+       <meta request="<?php echo htmlspecialchars($_REQUEST['pagename']) ?>">
+       <script type="text/javascript">var baseurl="<?php echo Friendica\Core\System::baseUrl() ?>";</script>
+       <script type="text/javascript">var frio="<?php echo "view/theme/frio"; ?>";</script>
+       <?php $baseurl = Friendica\Core\System::baseUrl(); ?>
        <?php $frio = "view/theme/frio"; ?>
        <?php if(x($page,'htmlhead')) echo $page['htmlhead']; ?>
-       
-
 </head>
-<body id=\"top\">";
+<body id="top">
 <?php if($_SERVER['REQUEST_URI'] == "/"){header('Location: /login');} ?>
 <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
 <?php
        if(x($page,'nav')) {
-       echo    str_replace("~config.sitename~",get_config('config','sitename'),
-                       str_replace("~system.banner~",get_config('system','banner'),
+       echo    str_replace("~config.sitename~",Friendica\Core\Config::get('config','sitename'),
+                       str_replace("~system.banner~",Friendica\Core\Config::get('system','banner'),
                        $page['nav']
        ));};
 ?>
@@ -54,7 +50,6 @@
                                        </div>
                                                ";
 ?>
-               
                        </div><!--row-->
                </div><!-- container -->
 
@@ -80,7 +75,7 @@
                        })
                })
        }
-       
+
        $('textarea').enterKey(function() {$(this).closest('form').submit(); }, 'ctrl')
        $('input').enterKey(function() {$(this).closest('form').submit(); }, 'ctrl')
 </script>
@@ -111,7 +106,7 @@ $("nav").bind('nav-update', function(e,data)
 <script src="<?=$frio?>/frameworks/justifiedGallery/jquery.justifiedGallery.min.js"></script>
 
 <!-- Modal  -->
-<div id="modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="plan-info" aria-hidden="true">
+<div id="modal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog modal-full-screen">
                <div class="modal-content">
                        <div id="modal-header" class="modal-header">
@@ -126,7 +121,5 @@ $("nav").bind('nav-update', function(e,data)
                </div>
        </div>
 </div>
-
-
 </footer>
 </body>