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

Open in your IDE?
  1. {% set string = app.request.cookies.get('last-seen') %}
  2. <div class="tabs {% if background|default %} tabs--{{ background }}{% endif %}">
  3. <div class="tabs__inner">
  4. {% if headline is defined %}
  5. <div class="tabs__headline">
  6. {{ render_storyblok(headline) }}
  7. </div>
  8. {% endif %}
  9. {% if entries|length > 0 %}
  10. <div class="tabs__entries" role="radiogroup" aria-label="Tabs">
  11. {% for entry in entries %}
  12. {% block entry %}
  13. {% if entry.component != 'last-seen-product-slider' or string is not null and string is not empty%}
  14. {% set id = entry._uid|default(entry.id|default()) %}
  15. <input class="tabs__input" type="radio" id="{{ id }}" name="css-tabs-{{ _uid|default }}" {% if (loop.index == 1) %}checked {% endif %}>
  16. {% else %}
  17. {% endif %}
  18. {% endblock %}
  19. {% endfor %}
  20. <div class="tabs__scroll">
  21. {% for entry in entries %}
  22. {% if entry.component != 'last-seen-product-slider' or string is not null and string is not empty%}
  23. {% set id = entry._uid|default(entry.id|default()) %}
  24. <label for="{{ id }}" class="tabs__entry-label tabs__headline">
  25. {{ entry.headline.text|default(entry.headline[0].text|default) }}
  26. </label>
  27. {% endif %}
  28. {% endfor %}
  29. </div>
  30. {% for entry in entries %}
  31. <div class="tabs__content tabs__content--position" >
  32. {% block entryContent %}
  33. {% if html_content is defined and html_content is not empty %}
  34. {{ html_content }}
  35. {% else %}
  36. {{ render_storyblok(entry, {
  37. 'headline': [],
  38. }) }}
  39. {% endif %}
  40. {% endblock %}
  41. </div>
  42. {% endfor %}
  43. </div>
  44. {% endif %}
  45. </div>
  46. </div>