templates/default/components/molecules/contact-bar/contact-bar.html.twig line 1

Open in your IDE?
  1. <div class="contact-bar">
  2. <div class="contact-bar__inner">
  3. {% if headline is defined or text is defined%}
  4. <div class="contact-bar__description">
  5. {% if headline is defined %}
  6. <div class="contact-bar__title">
  7. {# atoms/headline #}
  8. {{ render_storyblok(headline, {
  9. class: 'headline--no-spacing contact-bar__headline',
  10. }) }}
  11. </div>
  12. {% endif %}
  13. {% if text is defined %}
  14. <div class="contact-bar__text">
  15. {# atoms/paragraph #}
  16. {{ render_storyblok(text, {
  17. class: 'paragraph--no-margin paragraph--desktop-margin-auto',
  18. }) }}
  19. </div>
  20. {% endif %}
  21. </div>
  22. {% endif %}
  23. {% if contactIcon is defined and contactTitle is defined and contactPhone is defined %}
  24. <div class="contact-bar__hotline">
  25. {% include('components/molecules/hotline/hotline.html.twig') with {
  26. class: 'hotline--simple',
  27. icon: contactIcon,
  28. title: contactTitle,
  29. phone: contactPhone,
  30. openings: false,
  31. } %}
  32. </div>
  33. {% endif %}
  34. {% if button is defined %}
  35. <div class="contact-bar__action">
  36. {# atoms/text-link #}
  37. {{ render_storyblok(button, {
  38. class: 'button button--multitool button--full-width button--transparent',
  39. modifier: 'js-modal'
  40. }) }}
  41. </div>
  42. {% endif %}
  43. </div>
  44. </div>