templates/frontend/partials/_footer_entry.html.twig line 1

Open in your IDE?
  1. {% if class is not defined %}
  2.     {% set class = '' %}
  3. {% endif %}
  4. {% if entry.type == constant('App\\Entity\\FooterEntry::TYPE_HEADQUARTER') %}
  5. <div class="d-flex mb-2">
  6.     <div class="text-white me-3">
  7.         <i data-feather="home"></i>
  8.     </div>
  9.     <p class="text-white">
  10.         <span class="fw-medium d-block text-uppercase">{{ entry.headquarterType|trans }}</span>
  11.         <span class="d-block">{{ entry.callToAction|nl2br }}</span>
  12.     </p>
  13. </div>
  14. {% endif %}
  15. {% if entry.type == constant('App\\Entity\\FooterEntry::TYPE_LINK') %}
  16. <div class="w-100 mb-3 px-2">
  17.     <a {% if entry.blank %}target="_blank"{% endif %} href="{{ entry.link }}" class="link fw-medium text-white fs-sm text-uppercase {{ class }}" aria-label="{{ entry.callToAction }}">{{ entry.callToAction }}</a>
  18. </div>
  19. {% endif %}
  20. {% if entry.type == constant('App\\Entity\\FooterEntry::TYPE_BUTTON') %}
  21. <a {% if entry.blank %}target="_blank"{% endif %} href="{{ entry.link }}" aria-label="{{ entry.link }}" class="btn btn-outline-white text-uppercase w-100 mb-3">{{ entry.callToAction }}</a>
  22. {% endif %}