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

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