templates/app/activites/activite_show.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% import 'app/_inc/macros.html.twig' as m %}
  3. {% block css %}
  4.     {{ encore_entry_link_tags('app-pages-css') }}
  5.     {{ encore_entry_link_tags('app-gallery-css') }}
  6. {% endblock %}
  7. {% block js %}
  8.     {{ encore_entry_script_tags('app-gallery-js') }}
  9.     {% include('app/_inc/_beforeafter.html.twig') %}
  10. {% endblock %}
  11. {% block content %}
  12.     {% if category.pictures|length == 2 %}
  13.         {{ m.titleCoord(category.translate.title, 'nav.sablage', asset(category.pictures.1.path)) }}
  14.     {% else %}
  15.         {{ m.titleCoord(category.translate.title, 'nav.sablage', asset(category.firstPicture.path)) }}
  16.     {% endif %}
  17.     <main class="main-default">
  18.         <!-- --------- Sablage bois ------- -->
  19.         {% for paragraphe in category.categoryParagraphes %}
  20.             {% if paragraphe.pictures|length > 0 %}
  21.                 {% if paragraphe.pictures|length == 2 %}
  22.                     <section class="activites-block block-even">
  23.                         <div class="container">
  24.                             <div class="activites-img">
  25.                                 {{ m.beforeAfter(asset(paragraphe.pictures.0.path), asset(paragraphe.pictures.1.path)) }}
  26.                             </div>
  27.                             <div class="activites-content">
  28.                                 <h2 class="h2">{{ paragraphe.titre }}</h2>
  29.                                 <div class="paragraphe">
  30.                                     {{ paragraphe.texte|raw }}
  31.                                 </div>
  32.                                 {{ m.bn('nav.contact', path('contact')) }}
  33.                             </div>
  34.                         </div>
  35.                     </section>
  36.                 {% else %}
  37.                     <section class="activites-block">
  38.                         <div class="container">
  39.                             <div class="activites-img">
  40.                                 {{ m.img(asset(paragraphe.pictures.0.path)) }}
  41.                             </div>
  42.                             <div class="activites-content">
  43.                                 <h2 class="h2">{{ paragraphe.titre }}</h2>
  44.                                 <div class="paragraphe">
  45.                                     {{ paragraphe.texte|raw }}
  46.                                 </div>
  47.                                 {{ m.bn('nav.contact', path('contact')) }}
  48.                             </div>
  49.                         </div>
  50.                     </section>
  51.                 {% endif %}
  52.             {% else %}
  53.                 <section class="activites-block block-even">
  54.                     <div class="container">
  55.                         <div class="activites-content">
  56.                             <h2 class="h2">{{ paragraphe.titre }}</h2>
  57.                             <div class="paragraphe">
  58.                                 {{ paragraphe.texte|raw }}
  59.                             </div>
  60.                             {{ m.bn('nav.contact', path('contact')) }}
  61.                         </div>
  62.                     </div>
  63.                 </section>
  64.             {% endif %}
  65.         {% endfor %}
  66.         <!-- --------- Scratch card ------- -->
  67.         <section>
  68.             <div class="container">
  69.                 <div class="rea-wrapper">
  70.                     <div class="rea-list">
  71.                         {{ m.bn('Voir toutes nos rĂ©alisations', path('realisations')) }}
  72.                     </div>
  73.                 </div>
  74.         </section>
  75.     </main>
  76. {% endblock %}