templates/includes/shared/contact.html.twig line 1

Open in your IDE?
  1. <div class="flex items-center justify-center w-16 h-16 mb-4 mr-6 bg-blue-200 rounded-full md:mb-0 shrink-0">
  2.     <span class="w-8 h-8">
  3.         <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 31"><path fill="#0071BB" fill-rule="evenodd" d="M23.251.6a2.668 2.668 0 0 1 2.666 2.665v3.038h3.418A2.668 2.668 0 0 1 32 8.968v12.928a2.668 2.668 0 0 1-2.665 2.665h-2.006v6.328l-6.327-6.328H8.732a.288.288 0 0 1-.041-.002l-.153-.006v-.02a.712.712 0 0 1-.519-.683c0-.321.218-.597.517-.682v-.032l.164.002h.049l.018.003H21.59l4.318 4.318v-4.318h3.427c.686 0 1.245-.559 1.245-1.245V8.968c0-.686-.559-1.245-1.245-1.245h-3.418v8.47a2.668 2.668 0 0 1-2.666 2.665H10.998l-6.327 6.327v-6.327H2.665A2.668 2.668 0 0 1 0 16.193V3.265A2.668 2.668 0 0 1 2.665.6Zm0 1.42H2.665c-.686 0-1.245.559-1.245 1.245v12.928c0 .686.559 1.245 1.245 1.245h3.426v4.318l4.319-4.318h12.841c.687 0 1.245-.559 1.245-1.245V3.265c0-.686-.558-1.245-1.245-1.245Zm-1.733 10.804c.233 0 .423.19.423.423v.776c0 .233-.19.423-.423.423H4.43a.423.423 0 0 1-.423-.423v-.776c0-.233.19-.423.423-.423Zm0-3.868c.233 0 .423.19.423.423v.776c0 .233-.19.423-.423.423H4.43a.423.423 0 0 1-.423-.423V9.38c0-.233.19-.423.423-.423Zm0-3.868c.233 0 .423.19.423.423v.776c0 .233-.19.423-.423.423H4.43a.423.423 0 0 1-.423-.423v-.776c0-.233.19-.423.423-.423Z"/></svg>
  4.     </span>
  5. </div>
  6. <div class="pt-2">
  7.     <h3 class="mb-4 text-2xl mb:text-3xl">
  8.         {% if editmode or not pimcore_input('shared_contact_title').isEmpty() %}
  9.             {{ pimcore_input('shared_contact_title', {placeholder: 'Heeft u nog vragen?'|trans} ) }}
  10.         {% else %}
  11.             {{ 'Heeft u nog vragen?'|trans }}
  12.         {% endif %}
  13.     </h3>
  14.     <p class="mb-8 text-large">
  15.         {% if editmode or not pimcore_textarea('shared_contact_text').isEmpty() %}
  16.             {{ pimcore_textarea('shared_contact_text', {placeholder: 'Onze experts staan voor u klaar'|trans} ) }}
  17.         {% else %}
  18.             {{ 'Onze experts staan voor u klaar'|trans }}
  19.         {% endif %}
  20.     </p>
  21.     <div class="mb-8">
  22.         <strong class="mb-2 text-lg">
  23.             {% if editmode or not pimcore_textarea('shared_contact_call_us').isEmpty() %}
  24.                 {{ pimcore_textarea('shared_contact_call_us', {placeholder: 'Bel ons op'|trans} ) }}
  25.             {% else %}
  26.                 {{ 'Bel ons op'|trans }}
  27.             {% endif %}
  28.             {% if editmode %}
  29.                 {{ pimcore_input('shared_contact_phone_number', {placeholder: 'Telefoonnummer'} ) }}
  30.             {% elseif not pimcore_input('shared_contact_phone_number').isEmpty() %}
  31.                 <a href="tel:{{ pimcore_input('shared_contact_phone_number').data | phone }}" class="underline">
  32.                     {{ pimcore_input('shared_contact_phone_number').data }}
  33.                 </a>
  34.             {% endif %}
  35.         </strong>
  36.         <p class="text-gray-800">
  37.             {% if editmode or not pimcore_textarea('shared_contact_phone_number_subline').isEmpty() %}
  38.                 {{ pimcore_textarea('shared_contact_phone_number_subline', {placeholder: 'Op werkdagen tussen 08:30 en 17:30'|trans} ) }}
  39.             {% else %}
  40.                 {{ 'Op werkdagen tussen 08:30 en 17:30'|trans }}
  41.             {% endif %}
  42.         </p>
  43.     </div>
  44.     <div>
  45.         <strong class="mb-2 text-lg">
  46.             {% if editmode or not pimcore_input('shared_contact_mail_us').isEmpty() %}
  47.                 {{ pimcore_input('shared_contact_mail_us', {placeholder: 'Mail ons op'|trans} ) }}
  48.             {% else %}
  49.                 {{ 'Mail ons op'|trans }}
  50.             {% endif %}
  51.             {% if editmode %}
  52.                 {{ pimcore_input('shared_contact_mail', {placeholder: 'sales@coolworld-rentals.nl'|trans} ) }}
  53.             {% elseif pimcore_input('shared_contact_mail').isEmpty() %}
  54.                 {# TODO is this e-mail string with trans the correct solution?  #}
  55.                 <a href="mailto:{{ 'sales@coolworld-rentals.nl'|trans }}"
  56.                    target="_blank"
  57.                    class="underline">
  58.                     {{ 'sales@coolworld-rentals.nl'|trans }}
  59.                 </a>
  60.             {% else %}
  61.                 <a href="mailto:{{ pimcore_input('shared_contact_mail').data }}"
  62.                    target="_blank"
  63.                    class="underline">
  64.                     {{ pimcore_input('shared_contact_mail').data }}
  65.                 </a>
  66.             {% endif %}
  67.         </strong>
  68.         <p class="text-gray-800">
  69.             {% if editmode or not pimcore_textarea('shared_contact_mail_subline').isEmpty() %}
  70.                 {{ pimcore_textarea('shared_contact_mail_subline', {placeholder: 'We reageren binnen 24 uur'|trans} ) }}
  71.             {% else %}
  72.                 {{ 'We reageren binnen 24 uur'|trans }}
  73.             {% endif %}
  74.         </p>
  75.     </div>
  76. </div>