layout--threecol-25-50-25.html.twig 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a three column layout.
  5. *
  6. * This template provides a three column 25%-50%-25% 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. * @ingroup themeable
  14. */
  15. #}
  16. {%
  17. set classes = [
  18. 'layout',
  19. 'layout--threecol-25-50-25',
  20. ]
  21. %}
  22. {% if content %}
  23. <div{{ attributes.addClass(classes) }}>
  24. {% if content.top %}
  25. <div {{ region_attributes.top.addClass('layout__region', 'layout__region--top') }}>
  26. <div class='top_top'>
  27. {{ content.top_left }}
  28. <div class='top_right'>
  29. {{content.top_right}}
  30. </div>
  31. </div>
  32. <div class='top_bottom'>
  33. {{content.top_bottom}}
  34. </div>
  35. </div>
  36. {% endif %}
  37. {% if content.first %}
  38. <div {{ region_attributes.first.addClass('layout__region', 'layout__region--first') }}>
  39. {{ content.first }}
  40. </div>
  41. {% endif %}
  42. {% if content.second %}
  43. <div {{ region_attributes.second.addClass('layout__region', 'layout__region--second') }}>
  44. {{ content.second }}
  45. </div>
  46. {% endif %}
  47. {% if content.third %}
  48. <div {{ region_attributes.third.addClass('layout__region', 'layout__region--third') }}>
  49. {{ content.third }}
  50. </div>
  51. {% endif %}
  52. {% if content.bottom %}
  53. <div {{ region_attributes.bottom.addClass('layout__region', 'layout__region--bottom') }}>
  54. {{ content.bottom }}
  55. </div>
  56. {% endif %}
  57. </div>
  58. {% endif %}