-<!DOCTYPE html >\r
-<html>\r
-<head>\r
- <title><?php if(x($page,'title')) echo $page['title'] ?></title>\r
- <script>var baseurl="<?php echo App::get_baseurl() ?>";</script>\r
- <?php if(x($page,'htmlhead')) echo $page['htmlhead'] ?>\r
-</head>\r
-<body>\r
- <section class="minimal" style="margin:0px!important; padding:0px!important; float:none!important;display:block!important;"><?php if(x($page,'content')) echo $page['content']; ?>\r
- <div id="page-footer"></div>\r
- </section>\r
-</body>\r
-</html>\r
-\r
+<!DOCTYPE html >
+<html>
+<head>
+ <title><?php if(!empty($page['title'])) echo $page['title'] ?></title>
+ <script>var baseurl="<?php echo Friendica\DI::baseUrl() ?>";</script>
+ <?php if(!empty($page['htmlhead'])) echo $page['htmlhead'] ?>
+</head>
+<body class="minimal">
+ <section><?php if(!empty($page['content'])) echo $page['content']; ?>
+ <div id="page-footer">
+ <?php echo $page['footer'] ?? ''; ?>
+ </div>
+ </section>
+</body>
+</html>