annotate core/themes/bartik/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 * Bartik's 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 normally located in the
Chris@0 8 * core/modules/system directory.
Chris@0 9 *
Chris@0 10 * Available variables:
Chris@0 11 *
Chris@0 12 * General utility variables:
Chris@0 13 * - base_path: The base URL path of the Drupal installation. Will usually be
Chris@0 14 * "/" unless you have installed Drupal in a sub-directory.
Chris@0 15 * - is_front: A flag indicating if the current page is the front page.
Chris@0 16 * - logged_in: A flag indicating if the user is registered and signed in.
Chris@0 17 * - is_admin: A flag indicating if the user has permission to access
Chris@0 18 * administration pages.
Chris@0 19 *
Chris@0 20 * Site identity:
Chris@0 21 * - front_page: The URL of the front page. Use this instead of base_path when
Chris@0 22 * linking to the front page. This includes the language domain or prefix.
Chris@0 23 *
Chris@0 24 * Page content (in order of occurrence in the default page.html.twig):
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.highlighted: Items for the highlighted region.
Chris@0 33 * - page.primary_menu: Items for the primary menu region.
Chris@0 34 * - page.secondary_menu: Items for the secondary menu region.
Chris@0 35 * - page.featured_top: Items for the featured top region.
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.featured_bottom_first: Items for the first featured bottom region.
Chris@0 40 * - page.featured_bottom_second: Items for the second featured bottom region.
Chris@0 41 * - page.featured_bottom_third: Items for the third featured bottom region.
Chris@0 42 * - page.footer_first: Items for the first footer column.
Chris@0 43 * - page.footer_second: Items for the second footer column.
Chris@0 44 * - page.footer_third: Items for the third footer column.
Chris@0 45 * - page.footer_fourth: Items for the fourth footer column.
Chris@0 46 * - page.footer_fifth: Items for the fifth footer column.
Chris@0 47 * - page.breadcrumb: Items for the breadcrumb region.
Chris@0 48 *
Chris@0 49 * @see template_preprocess_page()
Chris@0 50 * @see html.html.twig
Chris@0 51 */
Chris@0 52 #}
Chris@0 53 <div id="page-wrapper">
Chris@0 54 <div id="page">
Chris@0 55 <header id="header" class="header" role="banner" aria-label="{{ 'Site header'|t }}">
Chris@0 56 <div class="section layout-container clearfix">
Chris@0 57 {{ page.secondary_menu }}
Chris@0 58 {{ page.header }}
Chris@0 59 {{ page.primary_menu }}
Chris@0 60 </div>
Chris@0 61 </header>
Chris@0 62 {% if page.highlighted %}
Chris@0 63 <div class="highlighted">
Chris@0 64 <aside class="layout-container section clearfix" role="complementary">
Chris@0 65 {{ page.highlighted }}
Chris@0 66 </aside>
Chris@0 67 </div>
Chris@0 68 {% endif %}
Chris@0 69 {% if page.featured_top %}
Chris@0 70 <div class="featured-top">
Chris@0 71 <aside class="featured-top__inner section layout-container clearfix" role="complementary">
Chris@0 72 {{ page.featured_top }}
Chris@0 73 </aside>
Chris@0 74 </div>
Chris@0 75 {% endif %}
Chris@0 76 <div id="main-wrapper" class="layout-main-wrapper layout-container clearfix">
Chris@0 77 <div id="main" class="layout-main clearfix">
Chris@0 78 {{ page.breadcrumb }}
Chris@0 79 <main id="content" class="column main-content" role="main">
Chris@0 80 <section class="section">
Chris@0 81 <a id="main-content" tabindex="-1"></a>
Chris@0 82 {{ page.content }}
Chris@0 83 </section>
Chris@0 84 </main>
Chris@0 85 {% if page.sidebar_first %}
Chris@0 86 <div id="sidebar-first" class="column sidebar">
Chris@0 87 <aside class="section" role="complementary">
Chris@0 88 {{ page.sidebar_first }}
Chris@0 89 </aside>
Chris@0 90 </div>
Chris@0 91 {% endif %}
Chris@0 92 {% if page.sidebar_second %}
Chris@0 93 <div id="sidebar-second" class="column sidebar">
Chris@0 94 <aside class="section" role="complementary">
Chris@0 95 {{ page.sidebar_second }}
Chris@0 96 </aside>
Chris@0 97 </div>
Chris@0 98 {% endif %}
Chris@0 99 </div>
Chris@0 100 </div>
Chris@0 101 {% if page.featured_bottom_first or page.featured_bottom_second or page.featured_bottom_third %}
Chris@0 102 <div class="featured-bottom">
Chris@0 103 <aside class="layout-container clearfix" role="complementary">
Chris@0 104 {{ page.featured_bottom_first }}
Chris@0 105 {{ page.featured_bottom_second }}
Chris@0 106 {{ page.featured_bottom_third }}
Chris@0 107 </aside>
Chris@0 108 </div>
Chris@0 109 {% endif %}
Chris@0 110 <footer class="site-footer">
Chris@0 111 <div class="layout-container">
Chris@0 112 {% if page.footer_first or page.footer_second or page.footer_third or page.footer_fourth %}
Chris@0 113 <div class="site-footer__top clearfix">
Chris@0 114 {{ page.footer_first }}
Chris@0 115 {{ page.footer_second }}
Chris@0 116 {{ page.footer_third }}
Chris@0 117 {{ page.footer_fourth }}
Chris@0 118 </div>
Chris@0 119 {% endif %}
Chris@0 120 {% if page.footer_fifth %}
Chris@0 121 <div class="site-footer__bottom">
Chris@0 122 {{ page.footer_fifth }}
Chris@0 123 </div>
Chris@0 124 {% endif %}
Chris@0 125 </div>
Chris@0 126 </footer>
Chris@0 127 </div>
Chris@0 128 </div>