You are here

bs-3col.html.twig in Bootstrap Layouts 8.5

Same filename and directory in other branches
  1. 8.4 templates/3.0.0/bs-3col.html.twig

Bootstrap Layouts: "3 Columns" template.

Available layout variables:

  • wrapper: Wrapper element for the layout container.
  • attributes: Wrapper attributes for the layout container.

Available region variables:

  • left
  • middle
  • right

Each region variable contains the following properties:

  • wrapper: The HTML element to use to wrap this region.
  • attributes: The HTML attributes to use on the wrapper for this region.
  • content: The content to go inside the wrapper for this region.

File

templates/3.0.0/bs-3col.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Bootstrap Layouts: "3 Columns" template.
  5. *
  6. * Available layout variables:
  7. * - wrapper: Wrapper element for the layout container.
  8. * - attributes: Wrapper attributes for the layout container.
  9. *
  10. * Available region variables:
  11. * - left
  12. * - middle
  13. * - right
  14. *
  15. * Each region variable contains the following properties:
  16. * - wrapper: The HTML element to use to wrap this region.
  17. * - attributes: The HTML attributes to use on the wrapper for this region.
  18. * - content: The content to go inside the wrapper for this region.
  19. */
  20. #}
  21. <{{ wrapper }}{{ attributes }}>
  22. {{ title_suffix.contextual_links }}
  23. {% if left.content %}
  24. <{{ left.wrapper }}{{ left.attributes }}>
  25. {{ left.content }}
  26. </{{ left.wrapper }}>
  27. {% endif %}
  28. {% if middle.content %}
  29. <{{ middle.wrapper }}{{ middle.attributes }}>
  30. {{ middle.content }}
  31. </{{ middle.wrapper }}>
  32. {% endif %}
  33. {% if right.content %}
  34. <{{ right.wrapper }}{{ right.attributes }}>
  35. {{ right.content }}
  36. </{{ right.wrapper }}>
  37. {% endif %}
  38. </{{ wrapper }}>