templates/default/components/organisms/footer/footer.html.twig line 1

Open in your IDE?
  1. <footer class="footer{% block footerClass %}{% endblock %}">
  2. {% block footer_top %}
  3. {% if not isPunchout %}
  4. <div class="footer__top">
  5. <div class="footer__inner-top">
  6. <div class="footer__column-group footer__column-group--news">
  7. {% set follow = '--follow' %}
  8. <div class="footer__column footer__column--newsletter">
  9. {% include('components/atoms/button/button.html.twig') with {
  10. 'class': 'footer__column-headline js-collapse',
  11. 'content': 'footer_column_newsletter'|trans,
  12. 'type': 'button',
  13. 'attributes': {
  14. 'data-collapse-element': 'footer-newsletter',
  15. 'data-btn-active-class': 'footer__column-headline--active',
  16. 'data-collapse-active-class': 'footer__column-content--active',
  17. }
  18. } %}
  19. {% embed 'components/organisms/collapse/collapse.html.twig' with {
  20. 'id': 'footer-newsletter',
  21. 'class': 'footer__column-content',
  22. 'active': false
  23. } %}
  24. {% block content %}
  25. {% include('components/atoms/paragraph/paragraph.html.twig') with {
  26. 'class': 'footer__newsletter-description',
  27. 'text': 'footer_newsletter_description'|trans,
  28. } %}
  29. {% if cms_globals.slot_footer_newsletter is defined %}
  30. {% include 'components/organisms/storyblok/storyblok.html.twig' with {
  31. 'componentData': cms_globals.slot_footer_newsletter,
  32. 'config': {
  33. 'reserveBoldSpace': true,
  34. }
  35. }
  36. %}
  37. {% endif %}
  38. {% endblock %}
  39. {% endembed %}
  40. </div>
  41. <div class="footer__column footer__column{{ follow |default('') }}">
  42. {% include('components/atoms/button/button.html.twig') with {
  43. 'class': 'footer__column-headline js-collapse',
  44. 'content': 'footer_column_follow'|trans,
  45. 'type': 'button',
  46. 'attributes': {
  47. 'data-collapse-element': 'footer-social-media',
  48. 'data-btn-active-class': 'footer__column-headline--active',
  49. 'data-collapse-active-class': 'footer__column-content--active',
  50. }
  51. } %}
  52. {% embed 'components/organisms/collapse/collapse.html.twig' with {
  53. 'id': 'footer-social-media',
  54. 'class': 'footer__column-content',
  55. 'active': false
  56. } %}
  57. {% block content %}
  58. {% if cms_globals.slot_footer_social_links is defined %}
  59. {% include 'components/organisms/storyblok/storyblok.html.twig' with {
  60. 'componentData': cms_globals.slot_footer_social_links,
  61. 'config': {
  62. 'objectFit': 'height'
  63. }
  64. }%}
  65. {% endif %}
  66. {% endblock %}
  67. {% endembed %}
  68. </div>
  69. </div>
  70. <div class="footer__column-group footer__column-group--links">
  71. {% set footerLinkGroups = ['denios', 'service', 'expertise'] %}
  72. {% for group in footerLinkGroups %}
  73. {% set groupHeadlineSnippet = 'footer_column_' ~ group %}
  74. {% set groupSlot = cms_globals['slot_footer_' ~ group]|default([]) %}
  75. {% if groupSlot is not empty %}
  76. <div class="footer__column footer__column--links">
  77. {% include('components/atoms/button/button.html.twig') with {
  78. 'class': 'footer__column-headline js-collapse',
  79. 'content': groupHeadlineSnippet|trans,
  80. 'type': 'button',
  81. 'attributes': {
  82. 'data-collapse-element': 'footer-collapse-link-group-' ~ loop.index,
  83. 'data-btn-active-class': 'footer__column-headline--active',
  84. 'data-collapse-active-class': 'footer__column-content--active',
  85. }
  86. } %}
  87. {% embed 'components/organisms/collapse/collapse.html.twig' with {
  88. 'id': 'footer-collapse-link-group-' ~ loop.index,
  89. 'class': 'footer__column-content',
  90. 'active': false
  91. } %}
  92. {% block content %}
  93. {{ render_storyblok(groupSlot, {
  94. class: 'footer__link-list',
  95. classLink: 'text-link--footer'
  96. }) }}
  97. {% endblock %}
  98. {% endembed %}
  99. </div>
  100. {% endif %}
  101. {% endfor %}
  102. </div>
  103. <div class="footer__column-group footer__column-group--logos">
  104. {% if not isPunchout %}
  105. <div class="footer__column footer__column--payments">
  106. {% include('components/atoms/button/button.html.twig') with {
  107. 'class': 'footer__column-headline js-collapse',
  108. 'content': 'footer_column_payment'|trans,
  109. 'type': 'button',
  110. 'attributes': {
  111. 'data-collapse-element': 'footer-payment',
  112. 'data-btn-active-class': 'footer__column-headline--active',
  113. 'data-collapse-active-class': 'footer__column-content--active',
  114. }
  115. } %}
  116. {% embed 'components/organisms/collapse/collapse.html.twig' with {
  117. 'id': 'footer-payment',
  118. 'class': 'footer__column-content',
  119. 'active': false
  120. } %}
  121. {% block content %}
  122. {% if cms_globals.slot_footer_payment is defined %}
  123. {{ render_storyblok(cms_globals.slot_footer_payment, {
  124. class: 'footer__payment-list',
  125. objectFit: 'height'
  126. }) }}
  127. {% endif %}
  128. {% endblock %}
  129. {% endembed %}
  130. </div>
  131. {% if cms_globals.slot_footer_feedback is defined and cms_globals.slot_footer_feedback is not empty %}
  132. <div class="footer__column footer__column--feedback">
  133. {% include('components/atoms/button/button.html.twig') with {
  134. 'class': 'footer__column-headline js-collapse',
  135. 'content': 'footer_column_feedback'|trans,
  136. 'type': 'button',
  137. 'attributes': {
  138. 'data-collapse-element': 'footer-feedback',
  139. 'data-btn-active-class': 'footer__column-headline--active',
  140. 'data-collapse-active-class': 'footer__column-content--active',
  141. }
  142. } %}
  143. {% embed 'components/organisms/collapse/collapse.html.twig' with {
  144. 'id': 'footer-feedback',
  145. 'class': 'footer__column-content footer__column--etrusted',
  146. 'active': false
  147. } %}
  148. {% block content %}
  149. {% include 'components/organisms/storyblok/storyblok.html.twig' with {
  150. 'componentData': cms_globals.slot_footer_feedback
  151. }%}
  152. {% endblock %}
  153. {% endembed %}
  154. </div>
  155. {% endif %}
  156. {% endif %}
  157. <div class="footer__column footer__column--logos">
  158. {% include('components/atoms/button/button.html.twig') with {
  159. 'class': 'footer__column-headline js-collapse',
  160. 'content': 'footer_column_logos'|trans,
  161. 'type': 'button',
  162. 'attributes': {
  163. 'data-collapse-element': 'footer-logos',
  164. 'data-btn-active-class': 'footer__column-headline--active',
  165. 'data-collapse-active-class': 'footer__column-content--active',
  166. }
  167. } %}
  168. {% embed 'components/organisms/collapse/collapse.html.twig' with {
  169. 'id': 'footer-logos',
  170. 'class': 'footer__column-content',
  171. 'active': false
  172. } %}
  173. {% block content %}
  174. {% if cms_globals.slot_footer_logos is defined %}
  175. {% include 'components/organisms/storyblok/storyblok.html.twig' with {
  176. 'componentData': cms_globals.slot_footer_logos
  177. }%}
  178. {% endif %}
  179. {% endblock %}
  180. {% endembed %}
  181. </div>
  182. </div>
  183. </div>
  184. </div>
  185. {% endif %}
  186. {% endblock %}
  187. {% block footer_bottom %}
  188. <div class="footer__bottom">
  189. <div class="footer__inner-bottom">
  190. {% block footer_bottom_checkout_back %}{% endblock %}
  191. {% block footer_bottom_links %}
  192. {% if cms_globals.slot_footer_legal_information is defined %}
  193. {{ render_storyblok(cms_globals.slot_footer_legal_information, {
  194. class: 'link-list--footer-bottom',
  195. classLink: 'text-link--footer'
  196. }) }}
  197. {% endif %}
  198. {% endblock %}
  199. {% if not isPunchout %}
  200. {% block footer_bottom_vat %}
  201. <div class="footer__vat-toggle">
  202. {% include 'components/molecules/vat-toggle/vat-toggle.html.twig'
  203. with {
  204. 'class': 'vat-toggle--footer',
  205. }
  206. %}
  207. </div>
  208. {% endblock %}
  209. {% endif %}
  210. {% block footer_bottom_language %}{% endblock %}
  211. {% block footer_bottom_country %}{% endblock %}
  212. </div>
  213. </div>
  214. {% endblock %}
  215. </footer>