annotate core/modules/system/templates/page.html.twig @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 4c8ae668cc8c
children
rev   line source
Chris@0 1 {#
Chris@0 2 /**
Chris@0 3 * @file
Chris@0 4 * Default theme implementation to display a single page.
Chris@0 5 *
Chris@0 6 * The doctype, html, head and body tags are not in this template. Instead they
Chris@0 7 * can be found in the html.html.twig template in this directory.
Chris@0 8 *
Chris@0 9 * Available variables:
Chris@0 10 *
Chris@0 11 * General utility variables:
Chris@0 12 * - base_path: The base URL path of the Drupal installation. Will usually be
Chris@0 13 * "/" unless you have installed Drupal in a sub-directory.
Chris@0 14 * - is_front: A flag indicating if the current page is the front page.
Chris@0 15 * - logged_in: A flag indicating if the user is registered and signed in.
Chris@0 16 * - is_admin: A flag indicating if the user has permission to access
Chris@0 17 * administration pages.
Chris@0 18 *
Chris@0 19 * Site identity:
Chris@0 20 * - front_page: The URL of the front page. Use this instead of base_path when
Chris@0 21 * linking to the front page. This includes the language domain or prefix.
Chris@0 22 *
Chris@0 23 * Page content (in order of occurrence in the default page.html.twig):
Chris@0 24 * - messages: Status and error messages. Should be displayed prominently.
Chris@0 25 * - node: Fully loaded node, if there is an automatically-loaded node
Chris@0 26 * associated with the page and the node ID is the second argument in the
Chris@0 27 * page's path (e.g. node/12345 and node/12345/revisions, but not
Chris@0 28 * comment/reply/12345).
Chris@0 29 *
Chris@0 30 * Regions:
Chris@0 31 * - page.header: Items for the header region.
Chris@0 32 * - page.primary_menu: Items for the primary menu region.
Chris@0 33 * - page.secondary_menu: Items for the secondary menu region.
Chris@0 34 * - page.highlighted: Items for the highlighted content region.
Chris@0 35 * - page.help: Dynamic help text, mostly for admin pages.
Chris@0 36 * - page.content: The main content of the current page.
Chris@0 37 * - page.sidebar_first: Items for the first sidebar.
Chris@0 38 * - page.sidebar_second: Items for the second sidebar.
Chris@0 39 * - page.footer: Items for the footer region.
Chris@0 40 * - page.breadcrumb: Items for the breadcrumb region.
Chris@0 41 *
Chris@0 42 * @see template_preprocess_page()
Chris@0 43 * @see html.html.twig
Chris@0 44 *
Chris@0 45 * @ingroup themeable
Chris@0 46 */
Chris@0 47 #}
Chris@0 48 <div class="layout-container">
Chris@0 49
Chris@0 50 <header role="banner">
Chris@0 51 {{ page.header }}
Chris@0 52 </header>
Chris@0 53
Chris@0 54 {{ page.primary_menu }}
Chris@0 55 {{ page.secondary_menu }}
Chris@0 56
Chris@0 57 {{ page.breadcrumb }}
Chris@0 58
Chris@0 59 {{ page.highlighted }}
Chris@0 60
Chris@0 61 {{ page.help }}
Chris@0 62
Chris@0 63 <main role="main">
Chris@0 64 <a id="main-content" tabindex="-1"></a>{# link is in html.html.twig #}
Chris@0 65
Chris@0 66 <div class="layout-content">
Chris@0 67 {{ page.content }}
Chris@0 68 </div>{# /.layout-content #}
Chris@0 69
Chris@0 70 {% if page.sidebar_first %}
Chris@0 71 <aside class="layout-sidebar-first" role="complementary">
Chris@0 72 {{ page.sidebar_first }}
Chris@0 73 </aside>
Chris@0 74 {% endif %}
Chris@0 75
Chris@0 76 {% if page.sidebar_second %}
Chris@0 77 <aside class="layout-sidebar-second" role="complementary">
Chris@0 78 {{ page.sidebar_second }}
Chris@0 79 </aside>
Chris@0 80 {% endif %}
Chris@0 81
Chris@0 82 </main>
Chris@0 83
Chris@0 84 {% if page.footer %}
Chris@0 85 <footer role="contentinfo">
Chris@0 86 {{ page.footer }}
Chris@0 87 </footer>
Chris@0 88 {% endif %}
Chris@0 89
Chris@0 90 </div>{# /.layout-container #}