templates/Default/page.html.twig line 1

Open in your IDE?
  1. {% if page %}
  2. {% set title = page.title %}
  3. {% set description = page.description %}
  4. {% endif %}
  5. {% set menu = menu ? menu : 'about' %}
  6. {% extends 'Default/base.html.twig' %}
  7. {% block content %}
  8. <style>
  9.     .title-header.title-h2{
  10.         border-bottom: var(--3px) solid var(--white-color);
  11.         padding-left: 0px;
  12.         padding-bottom: var(--10px)
  13.     }
  14. </style>
  15. <div class='relative gpadding {{desktop("vt-80-in")}} {{mobile("vt-30-in")}} '>
  16.     {% if page and page.content and page.content|length > 20 %}
  17.     {% set content = page.content|summary %}
  18.     <div class='{{desktop("flex row top")}} {{mobile("")}}'>
  19.         {% set hasSidebar = page.picture or page.pictureTitle or page.pictureSubtitle or content.summary|length > 20 %}
  20.         {% if page.picture or page.pictureTitle or page.pictureSubtitle %}
  21.         <figure class='{{desktop("third-20 right-60 ")}} {{mobile("w100 bottom-20")}}'>
  22.             {% if page.picture %}
  23.             <img src='{{asset(page.picture.thumbnail)}}' class='block w100 {{desktop("")}} {{mobile("")}}' alt="{{page.pictureTitle ? page.pictureTitle : title}}">
  24.             {% endif %}
  25.             <h2 class='h3 success top-20'>{{page.pictureTitle ? page.pictureTitle}}</h2>
  26.             <h3 class='h4 semibold'>{{page.pictureSubtitle ? page.pictureSubtitle}}</h3>
  27.         </figure>
  28.         {% elseif content.summary|length > 20 %}
  29.         <div class='bg-gray {{desktop("third-20 right-60 vt-20-in hz-20-in")}} {{mobile("w100 bottom-20")}}' style="max-height: calc(100vh - var(--header-height) - var(--60px)); overflow-y: auto">
  30.             <ul class='list p padding-20'>
  31.                 {{ content.summary|raw }}
  32.             </ul>
  33.         </div>
  34.         {% endif %}
  35.         <div class='w100 {{desktop(hasSidebar ? "" : "gpadding")}} {{mobile("")}} '>
  36.             <div class='article h6 text-justify'>
  37.             {{ content.content|raw }}
  38.             </div>
  39.         </div>
  40.     </div>
  41.     {% endif %}
  42.     {% if page and page.slug =="a-propos" %}
  43.     <div class='w100 {{desktop("top-40")}} {{mobile("")}} '>
  44.         <h2 class="h3 {{desktop('bottom-10')}}">Partenaires</h2>
  45.         <div class="">
  46.             {{render(controller('App\\Controller\\DefaultController::partners',{}))}}
  47.         </div>
  48.     </div>
  49.     {% endif %}
  50. </div>
  51. {% endblock %}