Commit ff02c628 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-3504: adding tempaltes for global html and page

parent 891a84b3
{#
/**
* @file
* Theme override for the basic structure of a single Drupal page.
*
* Variables:
* - logged_in: A flag indicating if user is logged in.
* - root_path: The root path of the current page (e.g., node, admin, user).
* - node_type: The content type for the current node, if the page is a node.
* - head_title: List of text elements that make up the head_title variable.
* May contain or more of the following:
* - title: The title of the page.
* - name: The name of the site.
* - slogan: The slogan of the site.
* - page_top: Initial rendered markup. This should be printed before 'page'.
* - page: The rendered page markup.
* - page_bottom: Closing rendered markup. This variable should be printed after 'page'.
* - db_offline: A flag indicating if the database is offline.
* - placeholder_token: The token for generating head, css, js and js-bottom placeholders.
*
* @see template_preprocess_html()
*/
#}
{% set body_classes = [
logged_in ? 'user-logged-in',
not root_path ? 'path-frontpage' : 'path-' ~ root_path|clean_class,
not root_path ? 'front' : 'not-front',
node_type ? 'node-page node-page--node-type-' ~ node_type|clean_class,
] %}
<!DOCTYPE html>
<html{{ html_attributes }} class="no-js">
<head>
<head-placeholder token="{{ placeholder_token|raw }}">
<title>{{ head_title|safe_join(' | ') }}</title>
<css-placeholder token="{{ placeholder_token|raw }}">
<js-placeholder token="{{ placeholder_token|raw }}">
</head>
<body{{ attributes.addClass(body_classes) }}>
{% include '@components/skiplinks/skiplinks.twig' %}
{{ page_top }}
{{ page }}
{{ page_bottom }}
<js-bottom-placeholder token="{{ placeholder_token|raw }}">
</body>
</html>
{#
/**
* @file
* Theme override to display a single page.
*
* Available variables:
*
* General utility variables:
* - base_path: The base URL path of the Drupal installation.
* - 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.
*
* Page content (in order of occurrence in the default page.html.twig):
* - node: Fully loaded node
*
* Regions:
* - page.header: Items for the header region.
* - page.highlighted: Items for the highlighted region.
* - page.primary_menu: Items for the primary menu region.
* - page.secondary_menu: Items for the secondary menu region.
* - 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.
* - page.breadcrumb: Items for the breadcrumb region.
*
* @see template_preprocess_page()
* @see html.html.twig
*/
#}
{% extends '@layouts/site-container/site-container.twig' %}
{% block site_content %}
{{ page.header }}
{{ page.navigation }}
{{ page.breadcrumb }}
{{ page.highlighted }}
{{ page.help }}
<main id="main" class="main" role="main" tabindex="-1">
{{ page.preface }}
{{ page.content }}
{{ page.postscript }}
</main>
{{ page.footer }}
{% endblock %}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment