/header.php

https://bitbucket.org/NyZo/decoupe-litchi-tree · PHP · 127 lines · 118 code · 9 blank · 0 comment · 55 complexity · 896a8283709d629f73ec2825be1d8963 MD5 · raw file

  1. <!-- HEADER START -->
  2. <header id="header" <?php if ($namePage != "Home") echo("class='page'"); ?>>
  3. <nav>
  4. <div class="right">
  5. <div class="openToogle wow fadeInRight"">MENU<span></span></div>
  6. <div class="menu">
  7. <div class="closeToogle"></div>
  8. <?php if ($lang == "fr") { ?>
  9. <a href="accueil.php" title="The Litchi Tree" class="logo-menu"><img src="images/logo-menu.png" alt="The Litchi Tree"></a>
  10. <?php } else { ?>
  11. <a href="index.php" title="The Litchi Tree" class="logo-menu"><img src="images/logo-menu.png" alt="The Litchi Tree"></a>
  12. <?php } ?>
  13. <ul>
  14. <?php if ($lang == "fr") { ?>
  15. <li><a href="page-decouvrir.php" title="Découvrir">Découvrir</a></li>
  16. <li><a href="page-fr-coktail-lounge.php" title="Cocktail & lounge">Cocktail & lounge</a></li>
  17. <li><a href="page-notre-table.php" title="Notre Table">Notre Table</a></li>
  18. <li><a href="page-reserver.php" title="Réserver">Réserver</a></li>
  19. <li><a href="page-explorer.php" title="Explorer">Explorer</a></li>
  20. <li><a href="page-itineraire.php" title="Itinéraire">Itinéraire</a></li>
  21. <?php } else { ?>
  22. <li><a href="page-take-the-journey.php" title="Take the journey">Take the journey</a></li>
  23. <li><a href="page-coktail-lounge.php" title="Cocktail & lounge">Cocktail & lounge</a></li>
  24. <li><a href="page-dine.php" title="Dine">Dine</a></li>
  25. <li><a href="page-stay.php" title="Stay with us">Stay with us</a></li>
  26. <li><a href="page-area.php" title="Area attractions">Area attractions</a></li>
  27. <li><a href="page-location.php" title="Location">Location</a></li>
  28. <?php } ?>
  29. </ul>
  30. <div class="contactRight">
  31. <div>
  32. <a href="tel:+261330342272" class="tel" title="00 261 33 03 422 72">00 261 33 03 422 72</a>
  33. <a href="mailto:thelitchitree@hotmail.com" class="mail" title="thelitchitree@hotmail.com">thelitchitree@hotmail.com</a>
  34. <div class="clear"></div>
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. </nav>
  40. </header>
  41. <div class="content">
  42. <?php if ($namePage !== "Home") { ?>
  43. <?php if ( !in_array($namePage , array("pageLocation", "pageItineraire", "pageStay", "pageReserver")) ) { ?>
  44. <div id="banner"
  45. <?php if ($namePage == "pageJourney") { ?> class="bannerJourney"<?php } ?>
  46. <?php if ($namePage == "pageDecouvrir") { ?> class="bannerJourney"<?php } ?>
  47. <?php if ($namePage == "pageCocktail") { ?> class="bannerCocktail" <?php } ?>
  48. <?php if ($namePage == "pageCocktail-fr") { ?> class="bannerCocktail" <?php } ?>
  49. <?php if ($namePage == "pageDine") { ?> class="bannerDine" <?php } ?>
  50. <?php if ($namePage == "pageTable") { ?> class="bannerDine" <?php } ?>
  51. <?php if ($namePage == "pageArea") { ?> class="bannerArea"<?php } ?>
  52. <?php if ($namePage == "pageExplorer") { ?> class="bannerArea"<?php } ?>
  53. >
  54. <div class="wow fadeIn">
  55. <?php if ($lang == "fr") { ?>
  56. <a href="accueil.php" title="The Litchi Tree" class="logo"><img src="images/logo-menu.png" alt="The Litchi Tree"></a>
  57. <?php } else { ?>
  58. <a href="index.php" title="The Litchi Tree" class="logo"><img src="images/logo-menu.png" alt="The Litchi Tree"></a>
  59. <?php } ?>
  60. </div>
  61. <div class="caption wow fadeInUp">
  62. <div class="titrePage">
  63. <?php if ($namePage == "pageJourney") { ?><span>The Litchi Tree boutique hotel</span>Take the journey<?php } ?>
  64. <?php if ($namePage == "pageDecouvrir") { ?><span>The Litchi Tree boutique hotel</span>Découvrir<?php } ?>
  65. <?php if ($namePage == "pageCocktail") { ?><span>After a day in the park</span>Cocktail & lounge<?php } ?>
  66. <?php if ($namePage == "pageCocktail-fr") { ?><span>Après une journée dans le parc</span>Cocktail & lounge<?php } ?>
  67. <?php if ($namePage == "pageDine") { ?><span>Original flavours mixed cuisine</span>Dine<?php } ?>
  68. <?php if ($namePage == "pageTable") { ?><span>Saveurs originales cuisine métissée</span>Notre Table<?php } ?>
  69. <?php if ($namePage == "pageArea") { ?><span>Explore the north of Madagascar</span>area attractions<?php } ?>
  70. <?php if ($namePage == "pageExplorer") { ?><span>Explorez le nord de Madagascar</span>attractions de la région<?php } ?>
  71. <?php if ($namePage == "pageLocation") { ?><?php } ?>
  72. </div>
  73. </div>
  74. <a href="contentPage" class="scroll scrollBot"></a>
  75. </div>
  76. <?php if ($namePage == "pageCocktail") { ?>
  77. <div class="cocktail-bg"></div>
  78. <div id="videoFond">
  79. <video autoplay loop id="video">
  80. <source src="video/video-cocktail.mp4" type="video/mp4"/>
  81. <source src="video/video-cocktail.webm" type="video/webm"/>
  82. <source src="video/video-cocktail.ogv" type="video/ogg"/>
  83. </video>
  84. </div>
  85. <?php } ?>
  86. <?php if ($namePage == "pageCocktail-fr") { ?>
  87. <div class="cocktail-bg"></div>
  88. <div id="videoFond">
  89. <video autoplay loop id="video">
  90. <source src="video/video-cocktail.mp4" type="video/mp4"/>
  91. <source src="video/video-cocktail.webm" type="video/webm"/>
  92. <source src="video/video-cocktail.ogv" type="video/ogg"/>
  93. </video>
  94. </div>
  95. <?php } ?>
  96. <?php if ($namePage == "pageDine") { ?>
  97. <div class="dine-bg"></div>
  98. <div id="videoFond">
  99. <video autoplay loop id="video">
  100. <source src="video/video-dine.mp4" type="video/mp4"/>
  101. <source src="video/video-dine.webm" type="video/webm"/>
  102. <source src="video/video-dine.ogv" type="video/ogg"/>
  103. </video>
  104. </div>
  105. <?php } ?>
  106. <?php if ($namePage == "pageTable") { ?>
  107. <div class="dine-bg"></div>
  108. <div id="videoFond">
  109. <video autoplay loop id="video">
  110. <source src="video/video-dine.mp4" type="video/mp4"/>
  111. <source src="video/video-dine.webm" type="video/webm"/>
  112. <source src="video/video-dine.ogv" type="video/ogg"/>
  113. </video>
  114. </div>
  115. <?php } ?>
  116. <?php } ?>
  117. <?php } ?>
  118. <!-- HEADER END -->