templates/default/components/molecules/hotline/hotline.html.twig line 1

Open in your IDE?
  1. <div class="hotline {{ class|default }}">
  2. {% if icon|default(false) != false %}
  3. <div class="hotline__icon">
  4. {% include 'components/atoms/image/image.html.twig' with {
  5. 'src': icon|default(asset('build/images/icons/hotline.svg')),
  6. 'class': 'image--full-width',
  7. 'lazyload': false
  8. } %}
  9. </div>
  10. {% endif %}
  11. <div class="hotline__info">
  12. <div class="hotline__head">
  13. <span class="hotline__title">{{ title|default('expert_advice_hotline_title'|trans)|raw }}</span>
  14. {% if phone|default(false) != false %}
  15. <span class="hotline__phone">{{ phone|default('hotline_company'|trans)|raw }}</span>
  16. {% endif %}
  17. </div>
  18. {% if openings is not defined or (openings is defined and openings is not same as(false)) %}
  19. <div class="hotline__opening-hours">
  20. {{ openings|default('expert_advice_hotline_opening_hours'|trans)|raw }}
  21. </div>
  22. {% endif %}
  23. </div>
  24. </div>