bs-2col.html.twig in Bootstrap Layouts 8.5
Same filename and directory in other branches
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.twigView source
- {#
- /**
- * @file
- * 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.
- */
- #}
- <{{ wrapper }}{{ attributes }}>
- {{ title_suffix.contextual_links }}
-
- {% if left.content %}
- <{{ left.wrapper }}{{ left.attributes }}>
- {{ left.content }}
- </{{ left.wrapper }}>
- {% endif %}
-
- {% if right.content %}
- <{{ right.wrapper }}{{ right.attributes }}>
- {{ right.content }}
- </{{ right.wrapper }}>
- {% endif %}
-
- </{{ wrapper }}>