base.twig 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. {% block html_head_container %}
  2. {% include 'html-header.twig' %}
  3. {% block head %}
  4. {% endblock %}
  5. </head>
  6. {% endblock %}
  7. <body class="container-fluid {{post.slug}} {{post.post_type}}" data-template="base.twig">
  8. <header class="header d-flex ">
  9. {% block header %}
  10. <div class="logoLamine mr-auto">
  11. <a class="hdr-logo-link" href="{{site.url}}"><img src="{{theme.link}}/asset/images/logo_lamine_vect.svg"/>
  12. <div id="fond_logo"></div>
  13. </a>
  14. </div>
  15. <div class="nav-wrapper d-flex align-items-center">
  16. <div class="rs d-flex">
  17. <div class="facebook">
  18. <a target="_blank" href="{{options.facebook.lien_facebook}}">
  19. <img src="{{ Image(options.facebook.logo_facebook).src }}" />
  20. </a>
  21. </div>
  22. <div class="insta">
  23. <a target="_blank" href="{{options.instagram.lien_instagram}}">
  24. <img src="{{ Image(options.instagram.logo_instagram).src }}" />
  25. </a>
  26. </div>
  27. </div>
  28. <div class="burger">
  29. <div class="fond_burger">
  30. <button class="hamburger hamburger--slider" type="button">
  31. <span class="hamburger-box">
  32. <span class="hamburger-inner"></span>
  33. </span>
  34. </button>
  35. </div>
  36. </div>
  37. </div>
  38. <nav id="nav-main" class="nav-main" role="navigation">
  39. {% include "menu.twig" with {'items': menu.get_items} %}
  40. </nav>
  41. {% endblock %}
  42. </header>
  43. {% if post.slug == "accueil" %}
  44. {% include "components/hero/hero.twig" %}
  45. {% endif %}
  46. <section id="content" role="main" class="content-wrapper container-md">
  47. {% if title %}<h1>{{title}}</h1>{% endif %}
  48. <div class="wrapper {{sidebar_class}}">
  49. {% block content %}
  50. {% endblock %}
  51. </div>
  52. {% if sidebar %}
  53. <aside class="layout-sidebar">
  54. {{sidebar}}
  55. </aside>
  56. {% endif %}
  57. </section>
  58. {% block footer %}
  59. <footer id="footer" class="d-flex flex-wrap">
  60. {% include 'footer.twig' %}
  61. </footer>
  62. {{ function('wp_footer') }}
  63. {% endblock %}
  64. </body>
  65. </html>