layout.html.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <!doctype html>
  2. <!--
  3. PirateBox app for YunoHost
  4. Copyright (C) 2015 Julien Vaubourg <julien@vaubourg.com>
  5. Contribute at https://github.com/labriqueinternet/piratebox_ynh
  6. This program is free software: you can redistribute it and/or modify
  7. it under the terms of the GNU Affero General Public License as published by
  8. the Free Software Foundation, either version 3 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU Affero General Public License for more details.
  14. You should have received a copy of the GNU Affero General Public License
  15. along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. -->
  17. <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
  18. <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
  19. <!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
  20. <!--[if gt IE 8]><!--> <html class="no-js" lang="<?= $locale ?>"> <!--<![endif]-->
  21. <head>
  22. <title><?= _("PirateBox") ?><?= isset($title) ? " | $title" : '' ?></title>
  23. <meta charset="utf-8">
  24. <meta name="viewport" content="width=device-width">
  25. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  26. <link media="all" type="text/css" href="<?= PUBLIC_DIR ?>/bootstrap/css/bootstrap.min.css" rel="stylesheet">
  27. <link media="all" type="text/css" href="<?= PUBLIC_DIR ?>/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet">
  28. <link media="all" type="text/css" href="<?= PUBLIC_DIR ?>/css/bootstrap-toggle.min.css" rel="stylesheet">
  29. <link media="all" type="text/css" href="<?= PUBLIC_DIR ?>/css/bootstrap-slider.css" rel="stylesheet">
  30. <link media="all" type="text/css" href="<?= PUBLIC_DIR ?>/css/style.css" rel="stylesheet">
  31. <script src="<?= PUBLIC_DIR ?>/jquery/jquery-2.1.1.min.js"></script>
  32. <script src="<?= PUBLIC_DIR ?>/bootstrap/js/bootstrap.min.js"></script>
  33. <script src="<?= PUBLIC_DIR ?>/js/bootstrap-toggle.min.js"></script>
  34. <script src="<?= PUBLIC_DIR ?>/js/bootstrap-slider.js"></script>
  35. <script src="<?= PUBLIC_DIR ?>/js/custom.js"></script>
  36. </head>
  37. <body>
  38. <div class="container">
  39. <?php if(isset($flash['error'])): ?>
  40. <div class="alert alert-dismissible alert-danger fade in" style="margin-top: 20px" role="alert">
  41. <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  42. <strong><?= _('Error') ?>:</strong> <?= $flash['error'] ?>
  43. </div>
  44. <?php elseif(isset($flash['notice'])): ?>
  45. <div class="alert alert-dismissible alert-info fade in" style="margin-top: 20px" role="alert">
  46. <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  47. <strong><?= _('Notice') ?>:</strong> <?= $flash['notice'] ?>
  48. </div>
  49. <?php elseif(isset($flash['success'])): ?>
  50. <div class="alert alert-dismissible alert-success fade in" style="margin-top: 20px" role="alert">
  51. <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  52. <?= $flash['success'] ?>
  53. </div>
  54. <?php endif; ?>
  55. <?= $content ?>
  56. <hr />
  57. <div id="github"><a href="https://github.com/labriqueinternet/piratebox_ynh"><?= _('Any problem? Contribute!') ?></a> - AGPL 3.0</div>
  58. </div>
  59. </body>
  60. </html>