templates/Default/formation.html.twig line 1

Open in your IDE?
  1. {% set title = item.title %}
  2. {% set desc = item.description %}
  3. {% set menu = 'formations' %}
  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 ? item.banner : os_param('banner'))}}" class="block w100"/>
  23.             </figure>
  24.             <article  class='p article black {{desktop("top-30")}}'>
  25.             {{ item.content|raw }}
  26.             </article>
  27.         </div>
  28.     </div>
  29. </div>
  30. {% endblock %}