templates/public/pages/blog.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {# VARIBLES SEO #}
  3. {% block title %}{{ parent() }} - {{ seo.seotitre }}{% endblock %}
  4. {% block metadescription %}{{ seo.seometa }}{% endblock %}
  5. {% block metadescriptionogg %}{{ seo.seometa }}{% endblock %}
  6. {# CSS #}
  7. {% block stylesheets %}
  8.     {{ parent() }}
  9.     <!-- Slider feature (by setting slider: 'glide') -->
  10.     <link href="{{ absolute_url(asset('build/contentbox/assets/scripts/glide/css/glide.core.css')) }}" rel="stylesheet" type="text/css" />
  11.     <link href="{{ absolute_url(asset('build/contentbox/assets/scripts/glide/css/glide.theme.css')) }}" rel="stylesheet" type="text/css" />
  12.     <!-- Required css for production -->
  13.     <link href="{{ absolute_url(asset('build/contentbox/assets/minimalist-blocks/content.css')) }}" rel="stylesheet" type="text/css" />
  14.     <link href="{{ absolute_url(asset('build/contentbox/box/box-flex.css')) }}" rel="stylesheet" type="text/css" /> <!-- Box Framework css include (contains a simple css for sections) -->
  15.     {% if pageInfo.couleur is not null %}
  16.         <style>
  17.             #headerPage {
  18.                 position: relative;
  19.             }
  20.             #bgTopHeaderFx {
  21.                 position: absolute;
  22.                 left: 0;
  23.                 top: 0;
  24.                 width: 100%;
  25.                 height: 100%;
  26.                 background-color: {{ pageInfo.couleur }};
  27.             }
  28.         </style>
  29.     {% endif %}
  30. {% endblock %}
  31. {# JS #}
  32. {% block javascripts %}
  33.     {{ parent() }}
  34.     <!-- Slider feature (by setting slider: 'glide') -->
  35.     <script src="{{ absolute_url(asset('build/contentbox/assets/scripts/glide/glide.js')) }}" type="text/javascript"></script>
  36. {% endblock %}
  37. {# CONTENU #}
  38. {% block body %}
  39.     <div class="cell large-12">
  40.         <div id="headerPage" class="grid-x align-center-middle grid-padding-x" {% if pageInfo.cover is not null %}style="background-image: url('{{ asset(pageInfo.cover) }}')"{% endif %}>
  41.             {% if pageInfo.couleur is not null %}
  42.                 <span id="bgTopHeaderFx"></span>
  43.             {% endif %}
  44.             <div class="cell large-12" style="position: relative; z-index: 2;">
  45.                 {% if pageInfo.id == 7 %}
  46.                     <h1>{{ nom_normalise }}</h1>
  47.                     <h2>{{ pageInfo.titre }}</h2>
  48.                 {% else %}
  49.                     <h1>{{ pageInfo.titre }}</h1>
  50.                     {#<h2>{{ pageInfo.titre }}</h2>#}
  51.                 {% endif %}
  52.                 <div class="grid-x align-center-middle">
  53.                     <div class="cell large-6 small-12 text-center">
  54.                         <p class="text-center">{{ pageInfo.excerpt | nl2br }}</p>
  55.                     </div>
  56.                 </div>
  57.             </div>
  58.         </div>
  59.         {#<div id="blockDynamic" class="grid-x grid-padding-x">
  60.             <div class="cell large-6 small-12"></div>
  61.             <div class="cell large-6 small-12">
  62.                 <h3 class="titrePage">Nos prestations</h3>
  63.                 <h4 class="sstitrePage">Système de sécurité incendie</h4>
  64.                 <div class="blocTxt">
  65.                     <p>Autrement dit, une centrale gérant des déclencheurs manuels et/ou des détecteurs de fumée et de chaleur.</p>
  66.                     <p>Système Conventionnel : adapté pour les petites structures. Une installation où l'ensemble des points de détection d'une ligne sont assimilés à une zone.</p>
  67.                     <p>Système Adressable : adapté pour les grandes structures. Une installation où chaque point de détection peut avoir sa propre adresse / identité, jusque 1024 points.</p>
  68.                 </div>
  69.                 <div class="blocBt">
  70.                     <a href="">En savoir plus</a>
  71.                 </div>
  72.             </div>
  73.         </div>#}
  74.         <div class="is-wrapper">
  75.             {% if PagesContentEntity is not null %}
  76.                 {{ PagesContentEntity.getContenu() | raw }}
  77.             {% else %}
  78.             {% endif %}
  79.         </div>
  80.     </div>
  81.     <!-- Required js for production -->
  82.     <script src="{{ absolute_url(asset('build/contentbox/box/box-flex.js')) }}" type="text/javascript"></script>
  83. {% endblock %}