annotate themes/isobartik/templates/page.html.twig @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents e11175134f4e
children
rev   line source
Chris@3 1 {#
Chris@3 2 /**
Chris@3 3 * @file
Chris@3 4 * Bartik's theme implementation to display a single page.
Chris@3 5 *
Chris@3 6 * The doctype, html, head and body tags are not in this template. Instead they
Chris@3 7 * can be found in the html.html.twig template normally located in the
Chris@3 8 * core/modules/system directory.
Chris@3 9 *
Chris@3 10 * Available variables:
Chris@3 11 *
Chris@3 12 * General utility variables:
Chris@3 13 * - base_path: The base URL path of the Drupal installation. Will usually be
Chris@3 14 * "/" unless you have installed Drupal in a sub-directory.
Chris@3 15 * - is_front: A flag indicating if the current page is the front page.
Chris@3 16 * - logged_in: A flag indicating if the user is registered and signed in.
Chris@3 17 * - is_admin: A flag indicating if the user has permission to access
Chris@3 18 * administration pages.
Chris@3 19 *
Chris@3 20 * Site identity:
Chris@3 21 * - front_page: The URL of the front page. Use this instead of base_path when
Chris@3 22 * linking to the front page. This includes the language domain or prefix.
Chris@3 23 *
Chris@3 24 * Page content (in order of occurrence in the default page.html.twig):
Chris@3 25 * - node: Fully loaded node, if there is an automatically-loaded node
Chris@3 26 * associated with the page and the node ID is the second argument in the
Chris@3 27 * page's path (e.g. node/12345 and node/12345/revisions, but not
Chris@3 28 * comment/reply/12345).
Chris@3 29 *
Chris@3 30 * Regions:
Chris@3 31 * - page.header: Items for the header region.
Chris@3 32 * - page.highlighted: Items for the highlighted region.
Chris@3 33 * - page.primary_menu: Items for the primary menu region.
Chris@3 34 * - page.secondary_menu: Items for the secondary menu region.
Chris@3 35 * - page.featured_top: Items for the featured top region.
Chris@3 36 * - page.content: The main content of the current page.
Chris@3 37 * - page.sidebar_first: Items for the first sidebar.
Chris@3 38 * - page.sidebar_second: Items for the second sidebar.
Chris@3 39 * - page.featured_bottom_first: Items for the first featured bottom region.
Chris@3 40 * - page.featured_bottom_second: Items for the second featured bottom region.
Chris@3 41 * - page.featured_bottom_third: Items for the third featured bottom region.
Chris@3 42 * - page.footer_first: Items for the first footer column.
Chris@3 43 * - page.footer_second: Items for the second footer column.
Chris@3 44 * - page.footer_third: Items for the third footer column.
Chris@3 45 * - page.footer_fourth: Items for the fourth footer column.
Chris@3 46 * - page.footer_fifth: Items for the fifth footer column.
Chris@3 47 * - page.breadcrumb: Items for the breadcrumb region.
Chris@3 48 *
Chris@3 49 * @see template_preprocess_page()
Chris@3 50 * @see html.html.twig
Chris@3 51 */
Chris@3 52 #}
Chris@3 53 <div id="page-wrapper">
Chris@3 54 <div id="page">
Chris@3 55 <header id="header" class="header" role="banner" aria-label="{{ 'Site header'|t }}">
Chris@3 56 <div class="section layout-container clearfix">
Chris@3 57 {{ page.secondary_menu }}
Chris@3 58 {{ page.header }}
Chris@3 59 {{ page.primary_menu }}
Chris@3 60 </div>
Chris@3 61 </header>
Chris@3 62 {% if page.highlighted %}
Chris@3 63 <div class="highlighted">
Chris@3 64 <aside class="layout-container section clearfix" role="complementary">
Chris@3 65 {{ page.highlighted }}
Chris@3 66 </aside>
Chris@3 67 </div>
Chris@3 68 {% endif %}
Chris@3 69 {% if page.featured_top %}
Chris@3 70 <div class="featured-top">
Chris@3 71 <aside class="featured-top__inner section layout-container clearfix" role="complementary">
Chris@3 72 {{ page.featured_top }}
Chris@3 73 </aside>
Chris@3 74 </div>
Chris@3 75 {% endif %}
Chris@3 76 <div id="main-wrapper" class="layout-main-wrapper layout-container clearfix">
Chris@3 77 <div id="main" class="layout-main clearfix">
Chris@3 78 {{ page.breadcrumb }}
Chris@3 79 <main id="content" class="column main-content" role="main">
Chris@3 80 <section class="section">
Chris@3 81 <a id="main-content" tabindex="-1"></a>
Chris@3 82 {{ page.content }}
Chris@3 83 </section>
Chris@3 84 </main>
Chris@3 85 {% if page.sidebar_first %}
Chris@3 86 <div id="sidebar-first" class="column sidebar">
Chris@3 87 <aside class="section" role="complementary">
Chris@3 88 {{ page.sidebar_first }}
Chris@3 89 </aside>
Chris@3 90 </div>
Chris@3 91 {% endif %}
Chris@3 92 {% if page.sidebar_second %}
Chris@3 93 <div id="sidebar-second" class="column sidebar">
Chris@3 94 <aside class="section" role="complementary">
Chris@3 95 {{ page.sidebar_second }}
Chris@3 96 </aside>
Chris@3 97 </div>
Chris@3 98 {% endif %}
Chris@3 99 </div>
Chris@3 100 </div>
Chris@3 101 {% if page.featured_bottom_first or page.featured_bottom_second or page.featured_bottom_third %}
Chris@3 102 <div class="featured-bottom">
Chris@3 103 <aside class="layout-container clearfix" role="complementary">
Chris@3 104 {{ page.featured_bottom_first }}
Chris@3 105 {{ page.featured_bottom_second }}
Chris@3 106 {{ page.featured_bottom_third }}
Chris@3 107 </aside>
Chris@3 108 </div>
Chris@3 109 {% endif %}
Chris@3 110 <footer class="site-footer">
Chris@3 111 <div class="layout-container">
Chris@3 112 {% if page.footer_first or page.footer_second or page.footer_third or page.footer_fourth %}
Chris@3 113 <div class="site-footer__top clearfix">
Chris@3 114 {{ page.footer_first }}
Chris@3 115 {{ page.footer_second }}
Chris@3 116 {{ page.footer_third }}
Chris@3 117 {{ page.footer_fourth }}
Chris@3 118 </div>
Chris@3 119 {% endif %}
Chris@3 120 {% if page.footer_fifth %}
Chris@3 121 <div class="site-footer__bottom">
Chris@3 122 {{ page.footer_fifth }}
Chris@3 123 </div>
Chris@3 124 {% endif %}
Chris@3 125 </div>
Chris@3 126 </footer>
Chris@3 127 </div>
Chris@3 128 </div>