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.

base.php 1.6KB

2 years ago
2 years ago
2 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>
  8. <?= $this->renderSection('title') ?>
  9. </title>
  10. <!-- Bootstrap -->
  11. <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous">
  12. <!-- Fontawesome -->
  13. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g==" crossorigin="anonymous" referrerpolicy="no-referrer" />
  14. <?= $this->renderSection('head') ?>
  15. </head>
  16. <body>
  17. <!-- navbar -->
  18. <?= $this->include('templates/navbar') ?>
  19. <div class="container mt-4">
  20. <?php if (session('msg')) : ?>
  21. <div class="alert alert-<?= session('msg')['type'] ?> alert-dismissible fade show" role="alert">
  22. <?= session('msg')['body'] ?>
  23. <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
  24. </div>
  25. <?php endif ?>
  26. <?= $this->renderSection('content') ?>
  27. </div>
  28. <!-- Bootstrap -->
  29. <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/js/bootstrap.bundle.min.js" integrity="sha384-pprn3073KE6tl6bjs2QrFaJGz5/SUsLqktiwsUTF55Jfv3qYSDhgCecCxMW52nD2" crossorigin="anonymous"></script>
  30. </body>
  31. </html>