layout--threecol-33-34-33.html.twig

Same filename in this branch
  1. 8.9.x core/modules/layout_discovery/layouts/threecol_33_34_33/layout--threecol-33-34-33.html.twig
Same filename in other branches
  1. 9 core/themes/stable9/layouts/layout_discovery/threecol_33_34_33/layout--threecol-33-34-33.html.twig
  2. 9 core/themes/stable/templates/layout/layout--threecol-33-34-33.html.twig
  3. 9 core/modules/layout_discovery/layouts/threecol_33_34_33/layout--threecol-33-34-33.html.twig
  4. 10 core/themes/stable9/layouts/layout_discovery/threecol_33_34_33/layout--threecol-33-34-33.html.twig
  5. 10 core/modules/layout_discovery/layouts/threecol_33_34_33/layout--threecol-33-34-33.html.twig
  6. 11.x core/themes/stable9/layouts/layout_discovery/threecol_33_34_33/layout--threecol-33-34-33.html.twig
  7. 11.x core/modules/layout_discovery/layouts/threecol_33_34_33/layout--threecol-33-34-33.html.twig

Theme override for a three column layout.

This template provides a three column 33%-34%-33% display layout, with additional areas for the top and the bottom.

Available variables:

  • content: The content for this layout.
  • attributes: HTML attributes for the layout <div>.

File

core/themes/stable/templates/layout/layout--threecol-33-34-33.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for a three column layout.
  5. *
  6. * This template provides a three column 33%-34%-33% display layout, with
  7. * additional areas for the top and the bottom.
  8. *
  9. * Available variables:
  10. * - content: The content for this layout.
  11. * - attributes: HTML attributes for the layout <div>.
  12. */
  13. #}
  14. {%
  15. set classes = [
  16. 'layout',
  17. 'layout--threecol-33-34-33',
  18. ]
  19. %}
  20. {% if content %}
  21. <div{{ attributes.addClass(classes) }}>
  22. {% if content.top %}
  23. <div {{ region_attributes.top.addClass('layout__region', 'layout__region--top') }}>
  24. {{ content.top }}
  25. </div>
  26. {% endif %}
  27. {% if content.first %}
  28. <div {{ region_attributes.first.addClass('layout__region', 'layout__region--first') }}>
  29. {{ content.first }}
  30. </div>
  31. {% endif %}
  32. {% if content.second %}
  33. <div {{ region_attributes.second.addClass('layout__region', 'layout__region--second') }}>
  34. {{ content.second }}
  35. </div>
  36. {% endif %}
  37. {% if content.third %}
  38. <div {{ region_attributes.third.addClass('layout__region', 'layout__region--third') }}>
  39. {{ content.third }}
  40. </div>
  41. {% endif %}
  42. {% if content.bottom %}
  43. <div {{ region_attributes.bottom.addClass('layout__region', 'layout__region--bottom') }}>
  44. {{ content.bottom }}
  45. </div>
  46. {% endif %}
  47. </div>
  48. {% endif %}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.