layout.html.php 3.4 KB

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