You are here

bs-2col-bricked.html.twig in Bootstrap Layouts 8.5

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

Bootstrap Layouts: "2 Columns (stacked)" template.

Available layout variables:

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

Available region variables:

  • top
  • top_left
  • top_right
  • middle
  • bottom_left
  • bottom_right
  • bottom

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-bricked.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Bootstrap Layouts: "2 Columns (stacked)" 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. * - top
  12. * - top_left
  13. * - top_right
  14. * - middle
  15. * - bottom_left
  16. * - bottom_right
  17. * - bottom
  18. *
  19. * Each region variable contains the following properties:
  20. * - wrapper: The HTML element to use to wrap this region.
  21. * - attributes: The HTML attributes to use on the wrapper for this region.
  22. * - content: The content to go inside the wrapper for this region.
  23. */
  24. #}
  25. <{{ wrapper }}{{ attributes }}>
  26. {{ title_suffix.contextual_links }}
  27. {% if top.content %}
  28. <{{ top.wrapper }}{{ top.attributes }}>
  29. {{ top.content }}
  30. </{{ top.wrapper }}>
  31. {% endif %}
  32. {% if top_left.content %}
  33. <{{ top_left.wrapper }}{{ top_left.attributes }}>
  34. {{ top_left.content }}
  35. </{{ top_left.wrapper }}>
  36. {% endif %}
  37. {% if top_right.content %}
  38. <{{ top_right.wrapper }}{{ top_right.attributes }}>
  39. {{ top_right.content }}
  40. </{{ top_right.wrapper }}>
  41. {% endif %}
  42. {% if middle.content %}
  43. <{{ middle.wrapper }}{{ middle.attributes }}>
  44. {{ middle.content }}
  45. </{{ middle.wrapper }}>
  46. {% endif %}
  47. {% if bottom_left.content %}
  48. <{{ bottom_left.wrapper }}{{ bottom_left.attributes }}>
  49. {{ bottom_left.content }}
  50. </{{ bottom_left.wrapper }}>
  51. {% endif %}
  52. {% if bottom_right.content %}
  53. <{{ bottom_right.wrapper }}{{ bottom_right.attributes }}>
  54. {{ bottom_right.content }}
  55. </{{ bottom_right.wrapper }}>
  56. {% endif %}
  57. {% if bottom.content %}
  58. <{{ bottom.wrapper }}{{ bottom.attributes }}>
  59. {{ bottom.content }}
  60. </{{ bottom.wrapper }}>
  61. {% endif %}
  62. </{{ wrapper }}>