templates/Default/profession.html.twig line 1

Open in your IDE?
  1. {% set title = item.name %}
  2. {% set desc = item.description %}
  3. {% set menu = 'professions' %}
  4. {% if item.banner %}
  5. {% set thumbnail = item.banner.thumbnail %}
  6. {% set banner = asset(item.banner.file) %}
  7. {% endif %}
  8. {% extends 'Default/base.html.twig' %}
  9. {% import "Default/macros.html.twig" as macros %}
  10. {% block titlebox %}
  11. <div class='relative white w100 {{desktop("vt-40-in")}} {{mobile("")}}'>
  12.     {% block title %}
  13.     <h1 class='h3 upper lh-1 text-center'>{{title is defined ? title}}</h1>
  14.     {% endblock title %}
  15. </div>
  16. {% endblock titlebox %}
  17. {% block content %}
  18. <div class='{{desktop("gpadding vt-40-in")}} {{mobile("gpadding vt-30-in")}} '>
  19.     <div class='{{desktop("gpadding flex col center top")}} {{mobile("")}}'>
  20.         <div id='article' class='w100 {{desktop("")}} {{mobile("vt-20-in")}}'>
  21.             <figure class="w100 {{desktop('')}}">
  22.                 <img src="{{asset(item.banner)}}" class="block w100"/>
  23.             </figure>
  24.             <article  class='p article black {{desktop("top-30")}}'>
  25.             {{ item.content|raw }}
  26.             </article>
  27.         </div>
  28.         {% set list = [] %}
  29.         {% set list = list|merge([{id:1,title:"LA CORRUPTION : DÉTECTION, PRÉVENTION, RÉPRESSION", slug:"article", date:"now"|date, banner:"images/formation-1.png"}]) %}
  30.         {% set list = list|merge([{id:1,title:"DÉPISTAGE, IDENTIFICATION, SAISIE ET CONFISCATION DES AVOIRS CRIMINELS", slug:"article", date:"now"|date, banner:"images/formation-2.png"}]) %}
  31.         {% set list = list|merge([{id:1,title:"PREUVE PÉNALE ET PROGRÈS SCIENTIFIQUE", slug:"article", date:"now"|date, banner:"images/formation-3.png"}]) %}
  32.     </div>
  33.     <div class="w100 {{desktop('top-60')}}{{mobile('top-20')}}">
  34.         <h2 class="h2 special-alt left-30-in extrabold {{desktop('half')}}">Formations liées à cette profession</h2>
  35.         <div class='list {{desktop("flex row space wrap")}} {{mobile("")}}'>
  36.             {% for o in list %}
  37.             {{macros.formation(o)}}
  38.             {% endfor %}
  39.             {% if isDesktop() and (list|length % 3) %}
  40.             {% for o in 1..(3 - list|length % 3) %}
  41.             <i class="third-20"></i>
  42.             {% endfor %}
  43.             {% endif %}
  44.         </div>
  45.         </div>
  46. </div>
  47. {% endblock %}