layout.html.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!doctype html>
  2. <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
  3. <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
  4. <!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
  5. <!--[if gt IE 8]><!--> <html class="no-js" lang="<?= $locale ?>"> <!--<![endif]-->
  6. <head>
  7. <meta charset="utf-8">
  8. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  9. <title>Wifi Hotspot <? echo (isset($title)) ? "| ".$title : "" ?></title>
  10. <meta name="viewport" content="width=device-width">
  11. <link media="all" type="text/css" href="<?= PUBLIC_DIR ?>/bootstrap/css/bootstrap.min.css" rel="stylesheet">
  12. <link media="all" type="text/css" href="<?= PUBLIC_DIR ?>/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet">
  13. <link media="all" type="text/css" href="<?= PUBLIC_DIR ?>/css/bootstrap-toggle.min.css" rel="stylesheet">
  14. <link media="all" type="text/css" href="<?= PUBLIC_DIR ?>/css/style.css" rel="stylesheet">
  15. <script src="<?= PUBLIC_DIR ?>/jquery/jquery-2.1.1.min.js"></script>
  16. <script src="<?= PUBLIC_DIR ?>/bootstrap/js/bootstrap.min.js"></script>
  17. <script src="<?= PUBLIC_DIR ?>/js/bootstrap-toggle.min.js"></script>
  18. <script src="<?= PUBLIC_DIR ?>/js/custom.js"></script>
  19. </head>
  20. <body>
  21. <div class="container">
  22. <? if(isset($flash['error'])): ?>
  23. <div class="alert alert-dismissible alert-danger fade in" style="margin-top: 20px" role="alert">
  24. <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  25. <strong><?= T_('Error') ?>:</strong> <?= $flash['error'] ?>
  26. </div>
  27. <? elseif(isset($flash['notice'])): ?>
  28. <div class="alert alert-dismissible alert-info fade in" style="margin-top: 20px" role="alert">
  29. <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  30. <strong><?= T_('Notice') ?>:</strong> <?= $flash['notice'] ?>
  31. </div>
  32. <? elseif(isset($flash['success'])): ?>
  33. <div class="alert alert-dismissible alert-success fade in" style="margin-top: 20px" role="alert">
  34. <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  35. <?= $flash['success'] ?>
  36. </div>
  37. <? endif; ?>
  38. <?= $content?>
  39. <hr />
  40. <div id="github"><a href="https://github.com/jvaubourg/hotspot_ynh"><?= T_('Any problem? Contribute!') ?></a> - AGPL 3.0</div>
  41. </div>
  42. </body>
  43. </html>