You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
2.7 KiB

15 years ago
15 years ago
15 years ago
15 years ago
15 years ago
  1. <?php /* -*- mode: html -*- */
  2. ?><!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8" />
  6. <title><?php $this->title();?></title>
  7. <link rel="shortcut icon" href="<?php $this->link_file('img/favicon.ico');?>" />
  8. <link rel="stylesheet" href="<?php echo BASE_URI; ?>app/assets/js/leaflet.css" />
  9. <script src="<?php echo BASE_URI; ?>app/assets/js/leaflet.js"></script>
  10. <meta name="viewport" content="width=device-width, user-scalable=no";>
  11. <?php
  12. $this->addCss('css/animations.css');
  13. $this->addCss('css/fonts.css');
  14. $this->addCss('css/forms.css');
  15. $this->addCss('css/submitform.css');
  16. $this->addCss('css/style.css');
  17. $this->addCss('css/posts.css');
  18. $this->addCss('css/template.css');
  19. $this->scripts();
  20. $this->addCss('css/mobile.css');
  21. $user = new User();
  22. $color = $user->getConfig('color');
  23. $pattern = $user->getConfig('pattern');
  24. if(!isset($pattern))
  25. $pattern = 'empty';
  26. if(isset($color)) {
  27. echo '
  28. <style type="text/css">
  29. body, nav {
  30. background-color: #'.$color.';
  31. animation: none;
  32. -webkit-animation: none;
  33. }
  34. </style>';
  35. }
  36. $size = $user->getConfig('size');
  37. if(isset($size)) {
  38. echo '
  39. <style type="text/css">
  40. body { font-size: '.$size.'px; }
  41. </style>';
  42. }
  43. ?>
  44. <?php $this->widget('System');?>
  45. </head>
  46. <body class="<?php echo $pattern; ?>">
  47. <noscript>
  48. <style type="text/css">
  49. nav {display:none;} #content {display: none;}
  50. </style>
  51. <div class="warning" style="width: 500px; margin: 0 auto;">
  52. <?php echo t("You don't have javascript enabled. Good luck with that."); ?>
  53. </div>
  54. </noscript>
  55. <nav>
  56. <div class="wrapper">
  57. <?php $this->menu();?>
  58. </div>
  59. </nav>
  60. <!--<div id="baseline"></div>-->
  61. <div id="content">
  62. <?php $this->widget('Notification');?>
  63. <?php $this->widget('Ack');?>
  64. <?php $this->content();?>
  65. <footer>
  66. © <a href="http://www.movim.eu">Movim</a> • 2008 - 2013 • Under <a href="http://www.gnu.org/licenses/agpl-3.0.html">GNU Affero General Public License</a>
  67. </footer>
  68. </div>
  69. <script type="text/javascript">
  70. movim_onload();
  71. </script>
  72. <?php
  73. $this->displayFooterDebug();
  74. ?>
  75. </body>
  76. </html>