annotate core/themes/classy/templates/layout/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 * Theme override 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 * - node: Fully loaded node, if there is an automatically-loaded node
Chris@0 25 * associated with the page and the node ID is the second argument in the
Chris@0 26 * page's path (e.g. node/12345 and node/12345/revisions, but not
Chris@0 27 * comment/reply/12345).
Chris@0 28 *
Chris@0 29 * Regions:
Chris@0 30 * - page.header: Items for the header region.
Chris@0 31 * - page.primary_menu: Items for the primary menu region.
Chris@0 32 * - page.secondary_menu: Items for the secondary menu region.
Chris@0 33 * - page.highlighted: Items for the highlighted content region.
Chris@0 34 * - page.help: Dynamic help text, mostly for admin pages.
Chris@0 35 * - page.content: The main content of the current page.
Chris@0 36 * - page.sidebar_first: Items for the first sidebar.
Chris@0 37 * - page.sidebar_second: Items for the second sidebar.
Chris@0 38 * - page.footer: Items for the footer region.
Chris@0 39 * - page.breadcrumb: Items for the breadcrumb region.
Chris@0 40 *
Chris@0 41 * @see template_preprocess_page()
Chris@0 42 * @see html.html.twig
Chris@0 43 */
Chris@0 44 #}
Chris@0 45 <div class="layout-container">
Chris@0 46
Chris@0 47 <header role="banner">
Chris@0 48 {{ page.header }}
Chris@0 49 </header>
Chris@0 50
Chris@0 51 {{ page.primary_menu }}
Chris@0 52 {{ page.secondary_menu }}
Chris@0 53
Chris@0 54 {{ page.breadcrumb }}
Chris@0 55
Chris@0 56 {{ page.highlighted }}
Chris@0 57
Chris@0 58 {{ page.help }}
Chris@0 59
Chris@0 60 <main role="main">
Chris@0 61 <a id="main-content" tabindex="-1"></a>{# link is in html.html.twig #}
Chris@0 62
Chris@0 63 <div class="layout-content">
Chris@0 64 {{ page.content }}
Chris@0 65 </div>{# /.layout-content #}
Chris@0 66
Chris@0 67 {% if page.sidebar_first %}
Chris@0 68 <aside class="layout-sidebar-first" role="complementary">
Chris@0 69 {{ page.sidebar_first }}
Chris@0 70 </aside>
Chris@0 71 {% endif %}
Chris@0 72
Chris@0 73 {% if page.sidebar_second %}
Chris@0 74 <aside class="layout-sidebar-second" role="complementary">
Chris@0 75 {{ page.sidebar_second }}
Chris@0 76 </aside>
Chris@0 77 {% endif %}
Chris@0 78
Chris@0 79 </main>
Chris@0 80
Chris@0 81 {% if page.footer %}
Chris@0 82 <footer role="contentinfo">
Chris@0 83 {{ page.footer }}
Chris@0 84 </footer>
Chris@0 85 {% endif %}
Chris@0 86
Chris@0 87 </div>{# /.layout-container #}