templates/Front/Page/contact.html.twig line 1

Open in your IDE?
  1. {% extends "Global/layout.html.twig" %}
  2. {% set pagetitle = 'Contact us'|trans %}
  3. {% block title %}{{pagetitle}}{% endblock %}
  4. {% block content %}
  5.     {% set navigation = [{"current": (pagetitle)}] %}
  6.     {% include "Global/navigation.html.twig" with navigation %}
  7.     <section class="section-content padding-y bg-white">
  8.         <div class="{{ services.getSetting("app_layout") }}">
  9.             <div class="row">
  10.                 <div class="col-sm-12">
  11.                     <div class="card box">
  12.                         <div class="card-body">
  13.                             <h1 class="text-center mb-5">{{ "FAQ"|trans }}</h1>
  14.                             {% for featuredHelpCenterArticle in services.getHelpCenterArticles({"featured" : true, "limit": 5}).getQuery().getResult() %}
  15.                                 <p class="text-center"><a href="{{ path('help_center_article', {slug: featuredHelpCenterArticle.slug}) }}">{{ featuredHelpCenterArticle.title }}</a></p>
  16.                                 {% endfor %}
  17.                             <h4 class="text-center mt-5"><a href="{{ path('help_center') }}"><i class="fas fa-life-ring"></i> {{ "Help center"|trans }}</a></h4>
  18.                             {% if services.getSetting("contact_email") != "" or services.getSetting("contact_phone") != "" or services.getSetting("contact_fax") != "" or services.getSetting("contact_address") != "" %}
  19.                                 <hr class="mt-5 mb-5">
  20.                                 <h1 class="text-center mb-5">{{ "Contact information"|trans }}</h1>
  21.                                 <div class="row">
  22.                                     {% if services.getSetting("contact_email") != "" %}
  23.                                         <div class="col-12 col-lg-4 card border-0 card-body text-center shadow-none">
  24.                                             <figure class="itemside">
  25.                                                 <div class="aside">
  26.                                                     <span class="icon-wrap icon-md round bg-info">
  27.                                                         <i class="fas fa-envelope-open-text white"></i>
  28.                                                     </span>
  29.                                                 </div>
  30.                                                 <figcaption class="text-wrap align-self-center">
  31.                                                     <h6 class="title">{{ services.getSetting("contact_email") }}</h6>
  32.                                                 </figcaption>
  33.                                             </figure>
  34.                                         </div>
  35.                                     {% endif %}
  36.                                     {% if services.getSetting("contact_phone") != "" %}
  37.                                         <div class="col-12 col-lg-4 card border-0 card-body text-center shadow-none">
  38.                                             <figure class="itemside">
  39.                                                 <div class="aside">
  40.                                                     <span class="icon-wrap icon-md round bg-info">
  41.                                                         <i class="fas fa-phone white"></i>
  42.                                                     </span>
  43.                                                 </div>
  44.                                                 <figcaption class="text-wrap align-self-center">
  45.                                                     <h6 class="title">{{ services.getSetting("contact_phone") }}</h6>
  46.                                                 </figcaption>
  47.                                             </figure>
  48.                                         </div>
  49.                                     {% endif %}
  50.                                     {% if services.getSetting("contact_fax") != "" %}
  51.                                         <div class="col-12 col-lg-4 card border-0 card-body text-center shadow-none">
  52.                                             <figure class="itemside">
  53.                                                 <div class="aside">
  54.                                                     <span class="icon-wrap icon-md round bg-info">
  55.                                                         <i class="fas fa-fax white"></i>
  56.                                                     </span>
  57.                                                 </div>
  58.                                                 <figcaption class="text-wrap align-self-center">
  59.                                                     <h6 class="title">{{ services.getSetting("contact_fax") }}</h6>
  60.                                                 </figcaption>
  61.                                             </figure>
  62.                                         </div>
  63.                                     {% endif %}
  64.                                     {% if services.getSetting("contact_address") != "" %}
  65.                                         <div class="col card border-0 card-body text-center shadow-none">
  66.                                             <figure class="itemside">
  67.                                                 <div class="aside">
  68.                                                     <span class="icon-wrap icon-md round bg-info">
  69.                                                         <i class="fas fa-map-marker white"></i>
  70.                                                     </span>
  71.                                                 </div>
  72.                                                 <figcaption class="text-wrap align-self-center">
  73.                                                     <h6 class="title">{{ services.getSetting("contact_address") }}</h6>
  74.                                                 </figcaption>
  75.                                             </figure>
  76.                                         </div>
  77.                                     {% endif %}
  78.                                 </div>
  79.                                 {% if services.getSetting("contact_email") %}
  80.                                     <hr class="mt-5 mb-5">
  81.                                     <h1 class="text-center mb-5">{{ "Send us an email"|trans }}</h1>
  82.                                     {{ form_start(form, {'attr': {'novalidate': 'novalidate', 'class': 'col-12 col-lg-8 mx-auto'}}) }}
  83.                                     {{ form_widget(form) }}
  84.                                     {{ form_end(form) }}
  85.                                 {% endif %}
  86.                             {% endif %}
  87.                         </div>
  88.                     </div>
  89.                 </div>
  90.             </div>
  91.         </div>
  92.     </section>
  93. {% endblock %}