custom/static-plugins/NdTheme/src/Resources/views/storefront/element/cms-element-contact-options.html.twig line 1

Open in your IDE?
  1. {% block element_contact_options %}
  2.     <section class="mx-10 boxed-layout">
  3.         {% block contact_options %}
  4.             <div class="flex lg:flex-row flex-col">
  5.                 <div class="flex flex-col w-full lg:w-5/12">
  6.                     <div class="text-2xl text-black font-bold">{{ element.config.title.value }}</div>
  7.                     <div class="text-base text-black">{{ element.config.description.value }}</div>
  8.                 </div>
  9.                 <div class="contact-options grid grid-cols-1 lg:grid-cols-2 md:grid-gap-8 w-full justify-start grid-gap-4 overflow-x-auto xl:grid-gap-6 xl:col-start-6 xl:col-end-13 xl:mt-0 xl:overflow-hidden">
  10.                     {% if element.config.options.value %}
  11.                         {% for option in element.config.options.value %}
  12.                             {% set icon %}
  13.                                 {% if option.type == 'mail' %}
  14.                                     {% sw_icon 'mail' style{'pack': 'theme-icons', 'class': 'text-red-300 w-5 xl:w-10 3xl:w-16'} %}
  15.                                 {% elseif option.type == 'facebook' %}
  16.                                     {% sw_icon 'facebook' style{'pack': 'theme-icons', 'class': 'w-5 xl:w-10 3xl:w-16'} %}
  17.                                 {% elseif option.type == 'instagram' %}
  18.                                     {% sw_icon 'instagram' style{'pack': 'theme-icons', 'class': 'w-5 xl:w-10 3xl:w-16'} %}
  19.                                 {% elseif option.type == 'phone' %}
  20.                                     {% sw_icon 'phone' style{'pack': 'theme-icons', 'class': 'w-5 xl:w-10 3xl:w-16'} %}
  21.                                 {% elseif option.type == 'store' %}
  22.                                     {% sw_icon 'locator' style{'pack': 'default', 'class': 'w-5 xl:w-10 3xl:w-16'} %}
  23.                                 {% endif %}
  24.                             {% endset %}
  25.                             <div class="flex flex-col justify-between flex-shrink-0 flex-grow xl:ml-10 xl:mt-0">
  26.                                 <div class="contact-option-icon mb-4 flex justify-start flex-shrink-0 text-black"
  27.                                      data-icon="{{ option.type }}">
  28.                                     {{ icon }}
  29.                                 </div>
  30.                                 <div class="text-base">
  31.                                     <p class="uppercase font-bold"> {{ option.title }} </p>
  32.                                     <p> {{ option.subtitle|raw }} </p>
  33.                                 </div>
  34.                                 {% if option.url and option.actionText %}
  35.                                     <a href="{{ option.url }}"
  36.                                        role="button"
  37.                                             {% if option.newTab %}
  38.                                                 target="_blank"
  39.                                             {% endif %}
  40.                                        class="contact-option content py-2 flex flex-col justify-start bg-grey-200">
  41.                                         <span class="contact-option-title leading-none font-medium">{{ option.actionText }}</span>
  42.                                     </a>
  43.                                 {% endif %}
  44.                             </div>
  45.                         {% endfor %}
  46.                     {% endif %}
  47.                 </div>
  48.             </div>
  49.         {% endblock %}
  50.     </section>
  51. {% endblock %}