templates/website/page/contact.html.twig line 1

  1. {% extends '@web/base.html.twig' %}
  2. {% if page is defined and page is not empty %}
  3.     {% set metaParams = {
  4.         'title': page.metaTitle ? page.metaTitle : page.title,
  5.         'metaDescription': page.metaDescription,
  6.         'metaKeywords': page.metaKeywords,
  7.         'image':(page.metaImage is defined ? page.metaImage : page.image is defined ? page.image : null)
  8.     } %}
  9. {% else %}
  10.     {% set metaParams = {} %}
  11. {% endif %}
  12.     {% block meta %}
  13.         {% include '@web/parts/meta.html.twig' with metaParams %}
  14.     {% endblock meta %}
  15. {% block content %}
  16.     <section class="section-contact"
  17.              {% if page and page.backgroundImage is not null %}
  18.         style="background-image: url('{{ page.backgroundImage }}');"
  19.     {% endif %}>
  20.         {% block header %}
  21.             {% include '@web/parts/header.html.twig' %}
  22.         {% endblock %}
  23.         <div class="contact-wrapper  my-container-fluid">
  24.             <div class="standard-title text-center color-darkblue">{{ page.title }}</div>
  25.             {% if contact is not empty %}
  26.                 <div class="info-wrapper">
  27.                     {% for item in contact %}
  28.                         <div class="info">
  29.                             <div class="title color-darkblue">{{ item.title }}</div>
  30.                             {% if item.id == 1 %}
  31.                                 <div class="text color-darkblue">{{ item.description|raw }}</div>
  32.                             {% elseif item.id == 2 %}
  33.                                 <div class="text color-darkblue"><a
  34.                                             href="mailto:{{ item.description|striptags }}">{{ item.description|raw }}</a>
  35.                                 </div>
  36.                             {% else %}
  37.                                 <div class="text color-darkblue"><a
  38.                                             href="tel:{{ item.description|striptags }}">{{ item.description|raw }}</a>
  39.                                 </div>
  40.                             {% endif %}
  41.                         </div>
  42.                     {% endfor %}
  43.                 </div>
  44.             {% endif %}
  45.         </div>
  46.         {% block footer %}
  47.             {% include '@web/parts/footer.html.twig' %}
  48.         {% endblock %}
  49.     </section>
  50. {% endblock %}