header.php 849 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. require_once "../config/config.php";
  3. if (!isset($config["title"]))
  4. $config["title"] = "Tent";
  5. if (isset($title) && !empty($title))
  6. $title = $config["title"] . " · " . $title;
  7. else
  8. $title = $config["title"];
  9. ?>
  10. <!doctype html>
  11. <html>
  12. <head>
  13. <meta charset="utf-8">
  14. <meta name="viewport" content="width=device-width, initial-scale=1">
  15. <title><?= $title ?></title>
  16. <link rel="icon" href="asset.php?file=icon.svg">
  17. <link rel="stylesheet" href="asset.php?file=style.css">
  18. </head>
  19. <body>
  20. <header>
  21. <div class="wrapper">
  22. <a href=".">
  23. <img id="icon" src="asset.php?file=icon.svg">
  24. </a>
  25. <form action="search.php">
  26. <input name="query" placeholder="Search..." required>
  27. </form>
  28. </div>
  29. </header>
  30. <main>
  31. <div class="wrapper">