page.html.twig 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. {#
  2. /**
  3. * @file
  4. * Rorschach's theme implementation to display a single page.
  5. *
  6. * The doctype, html, head and body tags are not in this template. Instead they
  7. * can be found in the html.html.twig template normally located in the
  8. * core/modules/system directory.
  9. *
  10. * Available variables:
  11. *
  12. * General utility variables:
  13. * - base_path: The base URL path of the Drupal installation. Will usually be
  14. * "/" unless you have installed Drupal in a sub-directory.
  15. * - is_front: A flag indicating if the current page is the front page.
  16. * - logged_in: A flag indicating if the user is registered and signed in.
  17. * - is_admin: A flag indicating if the user has permission to access
  18. * administration pages.
  19. *
  20. * Site identity:
  21. * - front_page: The URL of the front page. Use this instead of base_path when
  22. * linking to the front page. This includes the language domain or prefix.
  23. *
  24. * Page content (in order of occurrence in the default page.html.twig):
  25. * - node: Fully loaded node, if there is an automatically-loaded node
  26. * associated with the page and the node ID is the second argument in the
  27. * page's path (e.g. node/12345 and node/12345/revisions, but not
  28. * comment/reply/12345).
  29. *
  30. * Regions:
  31. * - page.header: Items for the header region.
  32. * - page.highlighted: Items for the highlighted region.
  33. * - page.primary_menu: Items for the primary menu region.
  34. * - page.secondary_menu: Items for the secondary menu region.
  35. * - page.content: The main content of the current page.
  36. * - page.sidebar: Items for the first sidebar.
  37. * - page.featured_bottom_first: Items for the first featured bottom region.
  38. * - page.featured_bottom_second: Items for the second featured bottom region.
  39. * - page.footer_first: Items for the first footer column.
  40. * - page.footer_second: Items for the second footer column.
  41. * - page.breadcrumb: Items for the breadcrumb region.
  42. * - page.social: Items for the social region.
  43. *
  44. * @see template_preprocess_page()
  45. * @see html.html.twig
  46. */
  47. #}
  48. <div id="page-wrapper" class="page-wrapper">
  49. <div id="page">
  50. {% if page.header or page.primary_menu or page.secondary_menu %}
  51. <header id="header" class="site-header" data-drupal-selector="site-header" role="banner">
  52. {# Gets fixed by JavaScript at wide widths. #}
  53. <div class="site-header__fixable" data-drupal-selector="site-header-fixable">
  54. {# <div class="site-header__initial">
  55. <button class="sticky-header-toggle" data-drupal-selector="sticky-header-toggle" role="switch" aria-controls="site-header__inner" aria-label="{{ 'Sticky header'|t }}" aria-checked="false">
  56. <span class="sticky-header-toggle__icon">
  57. <span></span>
  58. <span></span>
  59. <span></span>
  60. </span>
  61. </button>
  62. </div> #}
  63. {# Needs to extend full width so box shadow will also extend. #}
  64. <div id="site-header__inner" class="site-header__inner" data-drupal-selector="site-header-inner">
  65. <div class="container site-header__inner__container">
  66. {{ page.header }}
  67. {# {{ page.header_top_left }}
  68. {{ page.header_top_middle }}
  69. {{ page.header_top_right }} #}
  70. {% if page.primary_menu or page.secondary_menu %}
  71. <div class="mobile-buttons" data-drupal-selector="mobile-buttons">
  72. <button class="mobile-nav-button" data-drupal-selector="mobile-nav-button" aria-label="{{ 'Main Menu'|t }}" aria-controls="header-nav" aria-expanded="false">
  73. <span class="mobile-nav-button__label">{{ 'Menu'|t }}</span>
  74. <span class="mobile-nav-button__icon"></span>
  75. </button>
  76. </div>
  77. <div id="header-nav" class="header-nav" data-drupal-selector="header-nav">
  78. {{ page.primary_menu }}
  79. {{ page.secondary_menu }}
  80. </div>
  81. {% endif %}
  82. </div>
  83. </div>
  84. </div>
  85. </header>
  86. {% endif %}
  87. <div id="main-wrapper" class="layout-main-wrapper layout-container">
  88. <div id="main" class="layout-main">
  89. <div class="main-content">
  90. <a id="main-content" tabindex="-1"></a>
  91. {{ page.hero }}
  92. <div class="main-content__container container">
  93. {{ page.highlighted }}
  94. {{ page.breadcrumb }}
  95. {% if page.sidebar %}
  96. <div class="sidebar-grid grid-full">
  97. <main role="main" class="site-main ie11-autorow">
  98. {{ page.content_above }}
  99. {{ page.content }}
  100. </main>
  101. {{ page.sidebar }}
  102. </div>
  103. {% else %}
  104. <main role="main">
  105. {{ page.content_above }}
  106. {{ page.content }}
  107. </main>
  108. {% endif %}
  109. {{ page.content_below }}
  110. </div>
  111. </div>
  112. {# <div class="social-bar">
  113. {{ page.social }}
  114. </div> #}
  115. </div>
  116. </div>
  117. <footer class="site-footer">
  118. <div class="site-footer__inner container">
  119. {{ page.footer_top }}
  120. {{ page.footer_bottom }}
  121. </div>
  122. </footer>
  123. <div class="overlay" data-drupal-selector="overlay"></div>
  124. </div>
  125. </div>