page253.tpl.php 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?php // BEGIN PHP
  2. $websitekey=basename(__DIR__); if (empty($websitepagefile)) $websitepagefile=__FILE__;
  3. if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) {
  4. $pathdepth = count(explode('/', $_SERVER['SCRIPT_NAME'])) - 2;
  5. require_once ($pathdepth ? str_repeat('../', $pathdepth) : './').'master.inc.php';
  6. } // Not already loaded
  7. require_once DOL_DOCUMENT_ROOT.'/core/lib/website.lib.php';
  8. require_once DOL_DOCUMENT_ROOT.'/core/website.inc.php';
  9. ob_start();
  10. // END PHP ?>
  11. <html lang="en">
  12. <head>
  13. <title>Header</title>
  14. <meta charset="utf-8">
  15. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  16. <meta name="robots" content="index, follow" />
  17. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  18. <meta name="keywords" content="" />
  19. <meta name="title" content="Header" />
  20. <meta name="description" content="" />
  21. <meta name="generator" content="Dolibarr 17.0.0-beta (https://www.dolibarr.org)" />
  22. <meta name="dolibarr:pageid" content="253" />
  23. <?php if ($website->use_manifest) { print '<link rel="manifest" href="/manifest.json.php" />'."\n"; } ?>
  24. <!-- Include link to CSS file -->
  25. <link rel="stylesheet" href="/styles.css.php?website=<?php echo $websitekey; ?>" type="text/css" />
  26. <!-- Include link to JS file -->
  27. <script async src="/javascript.js.php"></script>
  28. <!-- Include HTML header from common file -->
  29. <?php if (file_exists(DOL_DATA_ROOT."/website/".$websitekey."/htmlheader.html")) include DOL_DATA_ROOT."/website/".$websitekey."/htmlheader.html"; ?>
  30. <!-- Include HTML header from page header block -->
  31. </head>
  32. <!-- File generated by Dolibarr website module editor -->
  33. <body id="bodywebsite" class="bodywebsite bodywebpage-header">
  34. <section id="header" contenteditable="true">
  35. <nav class="navbar navbar-expand-lg bg-white shadow-lg">
  36. <div class="container">
  37. <button
  38. class="navbar-toggler"
  39. type="button"
  40. data-bs-toggle="collapse"
  41. data-bs-target="#navbarNav"
  42. aria-controls="navbarNav"
  43. aria-expanded="false"
  44. aria-label="Toggle navigation"
  45. >
  46. <span class="navbar-toggler-icon"></span>
  47. </button>
  48. <a class="navbar-brand" href="index.html"><?php echo $mysoc->name; ?></a>
  49. <div class="d-lg-none">
  50. <a href="contact.php#reservation"
  51. type="button"
  52. class="custom-btn btn btn-danger"
  53. data-bs-toggle="modal"
  54. data-bs-target="#BookingModal"
  55. ><?php $langs->trans("Reservation"); ?></a>
  56. </div>
  57. <div class="collapse navbar-collapse" id="navbarNav">
  58. <ul class="navbar-nav mx-auto">
  59. <li class="nav-item">
  60. <a class="nav-link<?php echo ($websitepage->ref == 'index' ? ' active' : ''); ?>" href="index.php"><?php echo $weblangs->trans("Home"); ?></a>
  61. </li>
  62. <li class="nav-item">
  63. <a class="nav-link<?php echo ($websitepage->ref == 'about' ? ' active' : ''); ?>" href="about.php"><?php echo $weblangs->trans("About"); ?></a>
  64. </li>
  65. <li class="nav-item">
  66. <a class="nav-link<?php echo ($websitepage->ref == 'menu' ? ' active' : ''); ?>" href="menu.php"><?php echo $weblangs->trans("Menu"); ?></a>
  67. </li>
  68. <li class="nav-item">
  69. <a class="nav-link<?php echo ($websitepage->ref == 'contact' ? ' active' : ''); ?>" href="contact.php"><?php echo $weblangs->trans("Contact"); ?></a>
  70. </li>
  71. </ul>
  72. </div>
  73. <div class="d-none d-lg-block">
  74. <a href="contact.php#reservation"
  75. type="button"
  76. class="custom-btn btn btn-danger"
  77. data-bs-toggle="modal"
  78. data-bs-target="#BookingModal"
  79. ><?php echo $weblangs->trans("Reservation"); ?></a>
  80. </div>
  81. </div>
  82. </nav>
  83. </section>
  84. </body>
  85. </html>
  86. <?php // BEGIN PHP
  87. $tmp = ob_get_contents(); ob_end_clean(); dolWebsiteOutput($tmp, "html", 253);
  88. // END PHP ?>