layout.html.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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>VPN Client <? 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/style.css" rel="stylesheet">
  14. <script src="<?= PUBLIC_DIR ?>/jquery/jquery-2.1.1.min.js"></script>
  15. <script src="<?= PUBLIC_DIR ?>/bootstrap/js/bootstrap.min.js"></script>
  16. </head>
  17. <body>
  18. <div class="container">
  19. <? if (isset($flash['error'])) { ?>
  20. <div class="alert alert-dismissible alert-error fade in" role="alert">
  21. <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  22. <strong><?= T_('Error') ?>:</strong> <?= $flash['error'] ?>
  23. </div>
  24. <? } elseif (isset($flash['notice'])) { ?>
  25. <div class="alert alert-dismissible alert-info fade in" role="alert">
  26. <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  27. <strong><?= T_('Notice') ?>:</strong> <?= $flash['notice'] ?>
  28. </div>
  29. <? } elseif (isset($flash['success'])) { ?>
  30. <div class="alert alert-dismissible alert-success fade in" role="alert">
  31. <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  32. <?= $flash['success'] ?>
  33. </div>
  34. <? } ?>
  35. <?= $content?>
  36. </body>
  37. </html>