templates/Default/page.html.twig line 1

  1. {% if page %}
  2. {% set title = page.title %}
  3. {% endif %}
  4. {% set iconColor = "#81B0B1" %}
  5. {% set titleColor = "#1F4878" %}
  6. {% set bgColor = "#ffffff" %}
  7. {% set menu = "ministers" %}
  8. {% extends 'Default/base.html.twig' %}
  9. {% block content %}
  10. <div class='{{desktop("gpadding bottom-60-in")}} {{mobile("hz-20-in vt-30-in")}} '>
  11.     {% if page %}
  12.     {% set content = page.content|summary %}
  13.     <div class='{{desktop("flex row top")}} {{mobile("")}}'>
  14.         {% set hasSidebar = page.picture or page.pictureTitle or page.pictureSubtitle or content.summary|length > 20 %}
  15.         {% if page.picture or page.pictureTitle or page.pictureSubtitle %}
  16.         <figure class='{{desktop("third right-80 ")}} {{mobile("w100 bottom-20")}}'>
  17.             {% if page.picture %}
  18.             <img src='{{asset(page.picture.file)}}' class='block w100 {{desktop("radius-20")}} {{mobile("radius-10")}}' alt="{{page.pictureTitle ? page.pictureTitle : title}}">
  19.             {% endif %}
  20.             <h2 class='h3 success top-20 upper font-alt'>{{page.pictureTitle ? page.pictureTitle}}</h2>
  21.             <h3 class='h6 semibold'>{{page.pictureSubtitle ? page.pictureSubtitle}}</h3>
  22.         </figure>
  23.         {% elseif content.summary|length > 20 %}
  24.         <div class='border-right border-1x border-solid border-gray-alt hoverflow {{desktop("third-40 right-80")}} {{mobile("w100 bottom-20")}}'>
  25.             <ul class='list h4'>
  26.                 {{ content.summary|raw }}
  27.             </ul>
  28.         </div>
  29.         {% endif %}
  30.         <div class='w100 {{desktop(hasSidebar ? "" : "gpadding")}} {{mobile("")}} '>
  31.             <div class='article h5 text-justify'>
  32.             {{ content.content|raw }}
  33.             </div>
  34.         </div>
  35.     </div>
  36.     {% endif %}
  37. </div>
  38. {% endblock %}