page.html.twig 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. {% set main_menu = page.primary_menu|render %}
  2. {% set secondary_menu = page.secondary_menu|render %}
  3. <div{{ attributes.addClass(
  4. 'layout-container',
  5. main_menu or secondary_menu ? 'with-navigation',
  6. secondary_menu ? 'with-subnav'
  7. ) }}>
  8. <!-- ______________________ HEADER _______________________ -->
  9. <header id="header">
  10. <div class="container">
  11. {% if page.header %}
  12. <div id="header-region">
  13. {{ page.header }}
  14. </div>
  15. {% endif %}
  16. </div>
  17. </header><!-- /#header -->
  18. {% if main_menu or secondary_menu %}
  19. <nav id="navigation" class="menu{% if main_menu %} with-primary{% endif %}{% if secondary_menu %} with-secondary{% endif %}">
  20. <div class="container">
  21. {{ main_menu }}
  22. {{ secondary_menu }}
  23. </div>
  24. </nav><!-- /#navigation -->
  25. {% endif %}
  26. <!-- ______________________ MAIN _______________________ -->
  27. <div id="main">
  28. <div class="container">
  29. <section id="content">
  30. <div id="content-header">
  31. {{ page.breadcrumb }}
  32. {% if page.highlighted|render %}
  33. <div id="highlighted">{{ page.highlighted }}</div>
  34. {% endif %}
  35. {{ title_prefix }}
  36. {% if title %}
  37. <h1 class="title">{{ title }}</h1>
  38. {% endif %}
  39. {{ title_suffix }}
  40. {{ page.help }}
  41. {% if tabs %}
  42. <div class="tabs">{{ tabs }}</div>
  43. {% endif %}
  44. {% if action_links %}
  45. <ul class="action-links">{{ action_links }}</ul>
  46. {% endif %}
  47. </div><!-- /#content-header -->
  48. <div id="content-area">
  49. {{ page.content }}
  50. </div>
  51. </section><!-- /#content -->
  52. {% if page.sidebar_first|render %}
  53. <aside id="sidebar-first" class="column sidebar first">
  54. {{ page.sidebar_first }}
  55. </aside><!-- /#sidebar-first -->
  56. {% endif %}
  57. {% if page.sidebar_second|render %}
  58. <aside id="sidebar-second" class="column sidebar second">
  59. {{ page.sidebar_second }}
  60. </aside><!-- /#sidebar-second -->
  61. {% endif %}
  62. </div><!-- /.container -->
  63. </div><!-- /#main -->
  64. <!-- ______________________ FOOTER _______________________ -->
  65. {% if page.footer|render %}
  66. <footer id="footer">
  67. <div class="container">
  68. {{ page.footer }}
  69. </div>
  70. </footer><!-- /#footer -->
  71. {% endif %}
  72. </div><!-- /.layout-container -->