You are here

bs-2col.html.twig in Bootstrap Layouts 8.4

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

Bootstrap Layouts: "2 Columns" template.

Available layout variables:

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

Available region variables:

  • left
  • 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-2col.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Bootstrap Layouts: "2 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. * - right
  13. *
  14. * Each region variable contains the following properties:
  15. * - wrapper: The HTML element to use to wrap this region.
  16. * - attributes: The HTML attributes to use on the wrapper for this region.
  17. * - content: The content to go inside the wrapper for this region.
  18. */
  19. #}
  20. <{{ wrapper }}{{ attributes }}>
  21. {{ title_suffix.contextual_links }}
  22. {% if left.content %}
  23. <{{ left.wrapper }}{{ left.attributes }}>
  24. {{ left.content }}
  25. </{{ left.wrapper }}>
  26. {% endif %}
  27. {% if right.content %}
  28. <{{ right.wrapper }}{{ right.attributes }}>
  29. {{ right.content }}
  30. </{{ right.wrapper }}>
  31. {% endif %}
  32. </{{ wrapper }}>