page.html.twig 2.72 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
{#
/**
 * @file
 * Default theme implementation to display a single page.
 *
 * The doctype, html, head and body tags are not in this template. Instead they
 * can be found in the html.html.twig template in this directory.
 *
 * Available variables:
 *
 * General utility variables:
 * - base_path: The base URL path of the Drupal installation. Will usually be
 *   "/" unless you have installed Drupal in a sub-directory.
 * - is_front: A flag indicating if the current page is the front page.
 * - logged_in: A flag indicating if the user is registered and signed in.
 * - is_admin: A flag indicating if the user has permission to access
 *   administration pages.
 *
 * Site identity:
 * - front_page: The URL of the front page. Use this instead of base_path when
 *   linking to the front page. This includes the language domain or prefix.
 *
 * Page content (in order of occurrence in the default page.html.twig):
 * - messages: Status and error messages. Should be displayed prominently.
 * - node: Fully loaded node, if there is an automatically-loaded node
 *   associated with the page and the node ID is the second argument in the
 *   page's path (e.g. node/12345 and node/12345/revisions, but not
 *   comment/reply/12345).
 *
 * Regions:
 * - page.header: Items for the header region.
32 33
 * - page.primary_menu: Items for the primary menu region.
 * - page.secondary_menu: Items for the secondary menu region.
34 35 36 37 38 39
 * - page.highlighted: Items for the highlighted content region.
 * - page.help: Dynamic help text, mostly for admin pages.
 * - page.content: The main content of the current page.
 * - page.sidebar_first: Items for the first sidebar.
 * - page.sidebar_second: Items for the second sidebar.
 * - page.footer: Items for the footer region.
40
 * - page.breadcrumb: Items for the breadcrumb region.
41 42 43 44 45 46 47
 *
 * @see template_preprocess_page()
 * @see html.html.twig
 *
 * @ingroup themeable
 */
#}
48
<div class="layout-container">
49

50
  <header role="banner">
51 52 53
    {{ page.header }}
  </header>

54 55
  {{ page.primary_menu }}
  {{ page.secondary_menu }}
56

57
  {{ page.breadcrumb }}
58

59
  {{ page.highlighted }}
60 61 62

  {{ page.help }}

63 64
  <main role="main">
    <a id="main-content" tabindex="-1"></a>{# link is in html.html.twig #}
65

66
    <div class="layout-content">
67
      {{ page.content }}
68
    </div>{# /.layout-content #}
69 70

    {% if page.sidebar_first %}
71
      <aside class="layout-sidebar-first" role="complementary">
72
        {{ page.sidebar_first }}
73
      </aside>
74 75 76
    {% endif %}

    {% if page.sidebar_second %}
77
      <aside class="layout-sidebar-second" role="complementary">
78
        {{ page.sidebar_second }}
79
      </aside>
80 81
    {% endif %}

82
  </main>
83

84 85 86 87 88
  {% if page.footer %}
    <footer role="contentinfo">
      {{ page.footer }}
    </footer>
  {% endif %}
89

90
</div>{# /.layout-container #}