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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. {{content.top}}
  27. <div class='top_top'>
  28. {{ content.top_left }}
  29. <div class='top_right'>
  30. {{content.top_right}}
  31. </div>
  32. </div>
  33. <div class='top_bottom'>
  34. {{content.top_bottom}}
  35. <div class='top_bottom_left'>
  36. {{content.top_bottom_left}}
  37. </div>
  38. </div>
  39. </div>
  40. {% endif %}
  41. {% if content.first %}
  42. <div {{ region_attributes.first.addClass('layout__region', 'layout__region--first') }}>
  43. {{ content.first }}
  44. </div>
  45. {% endif %}
  46. {% if content.second %}
  47. <div {{ region_attributes.second.addClass('layout__region', 'layout__region--second') }}>
  48. {{ content.second }}
  49. </div>
  50. {% endif %}
  51. {% if content.third %}
  52. <div {{ region_attributes.third.addClass('layout__region', 'layout__region--third') }}>
  53. {{ content.third }}
  54. </div>
  55. {% endif %}
  56. {% if content.bottom %}
  57. <div {{ region_attributes.bottom.addClass('layout__region', 'layout__region--bottom') }}>
  58. {{ content.bottom }}
  59. </div>
  60. {% endif %}
  61. </div>
  62. {% endif %}