base.html.twig 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. {% set body_classes = body_class(['header-fixed', 'header-animated', 'header-dark', 'header-transparent', 'sticky-footer']) %}
  2. {% set grid_size = theme_var('grid-size') %}
  3. {% set compress = theme_var('production-mode') ? '.min.css' : '.css' %}
  4. <!DOCTYPE html>
  5. <html lang="{{ grav.language.getActive ?: grav.config.site.default_lang }}">
  6. <head>
  7. {% block head %}
  8. <meta charset="utf-8" />
  9. <title>{% if header.title %}{{ header.title|e('html') }} | {% endif %}{{ site.title|e('html') }}</title>
  10. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  11. <meta name="viewport" content="width=device-width, initial-scale=1">
  12. {% include 'partials/metadata.html.twig' %}
  13. <link rel="icon" type="image/png" href="{{ url('theme://images/favicon.png') }}" />
  14. <link rel="canonical" href="{{ page.url(true, true) }}" />
  15. {% block stylesheets %}
  16. {% do assets.addCss('theme://css-compiled/spectre'~compress) %}
  17. {% do assets.addCss('theme://css-compiled/theme'~compress) %}
  18. {% do assets.addCss('theme://css/leaflet.css') %}
  19. {% do assets.addCss('theme://css/jquery.bxslider.min.css') %}
  20. {% endblock %}
  21. {% block javascripts %}
  22. {% do assets.addJs('jquery', 101) %}
  23. {% do assets.addJs('theme://js/leaflet.js', {group:'bottom'}) %}
  24. {% do assets.addJs('theme://js/imagesloaded.pkgd.min.js', {group:'bottom'}) %}
  25. {% do assets.addJs('theme://js/masonry.filter.js', {group:'bottom'}) %}
  26. {% do assets.addJs('theme://js/masonry.pkgd.min.js', {group:'bottom'}) %}
  27. {% do assets.addJs('theme://js/jquery.bxslider.min.js', {group:'bottom'}) %}
  28. {% do assets.addJs('theme://js/site.js', {group:'bottom'}) %}
  29. {% endblock %}
  30. {% block assets deferred %}
  31. {{ assets.css()|raw }}
  32. {{ assets.js()|raw }}
  33. {% endblock %}
  34. <meta property="og:url" content="https://www.your-domain.com/your-page.html" />
  35. <meta property="og:type" content="website" />
  36. <meta property="og:title" content="Your Website Title" />
  37. <meta property="og:description" content="Your description" />
  38. <meta property="og:image" content="/user/themes/lecampus/images/fb.svg" />
  39. {% endblock head %}
  40. </head>
  41. <body id="top" class="{% block body_classes %}{{ body_classes }}{% endblock %}">
  42. {% block header %}
  43. <section id="header" class="section">
  44. <nav class="navbar">
  45. <div class="logo">
  46. <a href="/"><img src="/user/themes/lecampus/images/logo_lecampus.svg" alt="logo_lecampus"></a>
  47. </div>
  48. <nav class="dropmenu animated">
  49. {% block header_navigation %}
  50. {% include 'partials/navigation.html.twig' %}
  51. {% endblock %}
  52. </nav>
  53. {% if config.plugins.login.enabled and grav.user.username %}
  54. <span class="login-status-wrapper"><i class="fa fa-user"></i> {% include 'partials/login-status.html.twig' %}</span>
  55. {% endif %}
  56. <div class="reso">
  57. <a href="https://www.facebook.com/Lecampus.Valdedrome" target="_blank"><img src="/user/themes/lecampus/images/fb.svg" alt="logo-facebook"></a>
  58. <a href="https://www.youtube.com/user/CCVDful" target="_blank"><img src="/user/themes/lecampus/images/yt.svg" alt="logo-youtube"></a>
  59. <a href="#" target="_blank"><img src="/user/themes/lecampus/images/in.svg" alt="logo-link"></a>
  60. </div>
  61. </nav>
  62. </section>
  63. {% endblock %}
  64. {% block hero %}{% endblock %}
  65. <section id="{{page.template}}" class="start">
  66. {% block body %}
  67. <section class="header-wrapper" class="section">
  68. {% block header_body %}{% endblock %}
  69. </section>
  70. <section class="body-wrapper" class="section">
  71. {% block content %}{% endblock %}
  72. {% block sidebar %}{% endblock %}
  73. </section>
  74. {% endblock %}
  75. </section>
  76. {% block newsletter %}
  77. {% include 'partials/newsletters.html.twig' %}
  78. {% endblock %}
  79. {% block devis %}{% endblock %}
  80. {% block reco %}{% endblock %}
  81. {% block footer %}
  82. {% include 'partials/footer.html.twig' %}
  83. {% endblock %}
  84. {% block bottom %}
  85. {{ assets.js('bottom')|raw }}
  86. {% endblock %}
  87. </body>
  88. </html>