You are here

bootstrap-tabs.html.twig in Bootstrap Quick Tabs 8

Theme for Bootstrap Quick Tabs tab content.

Available variables:

  • content: array of tab-content
  • tabs: array of tabs
  • options: array of user configuration options

File

templates/bootstrap-tabs.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme for Bootstrap Quick Tabs tab content.
  5. *
  6. * Available variables:
  7. * - content: array of tab-content
  8. * - tabs: array of tabs
  9. * - options: array of user configuration options
  10. *
  11. * @ingroup themeable
  12. */
  13. #}
  14. {% if options.position != 'below' %}
  15. {% include 'bootstrap-tabs-tabs.html.twig' with {'options': options, 'tabs': tabs} %}
  16. {% endif %}
  17. <div{{ create_attribute({'class': 'tab-content'}) }}>
  18. {% for block_id, block in content %}
  19. <div{{ create_attribute({'class': [block.classes], 'id': block_id, 'role':'tabpanel'}) }}>
  20. {{ block.content }}
  21. </div>
  22. {% endfor %}
  23. </div>
  24. {% if options.position == 'below' %}
  25. {% include 'bootstrap-tabs-tabs.html.twig' with {'options': options, 'tabs': tabs} %}
  26. {% endif %}