{#
/**
* @file
* LocalGovDrupal theme implementation to display a single page.
*
* The doctype, html, head and body tags are not in this template. Instead they
* can be found in the html.html.twig template in this directory.
*
* Available variables:
*
* General utility variables:
* - base_path: The base URL path of the Drupal installation. Will usually be
*   "/" unless you have installed Drupal in a sub-directory.
* - 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.
* - has_sidebar_first: Can we expect any content in the first sidebar?
* - has_sidebar_second: See above.
*
* Site identity:
* - front_page: The URL of the front page. Use this instead of base_path when
*   linking to the front page. This includes the language domain or prefix.
*
* Page content (in order of occurrence in the default page.html.twig):
* - messages: Status and error messages. Should be displayed prominently.
* - node: Fully loaded node, if there is an automatically-loaded node
*   associated with the page and the node ID is the second argument in the
*   page's path (e.g. node/12345 and node/12345/revisions, but not
*   comment/reply/12345).
*
* Regions:
* - page.header
* - page.search
* - page.mobile_search
* - page.primary_menu
* - page.secondary_menu
* - page.banner
* - page.breadcrumb
* - page.messages
* - page.content_top
* - page.content
* - page.content_bottom
* - page.sidebar_first
* - page.sidebar_second
* - page.footer_first
* - page.footer_second
* - page.disabled
* @see template_preprocess_page()
* @see html.html.twig
*
* @ingroup themeable
*/
#}

{{ attach_library('localgov_microsites_base/header') }}
{{ attach_library('localgov_microsites_base/header-js') }}
{{ attach_library('localgov_microsites_base/footer') }}
{{ attach_library('localgov_microsites_base/preview') }}

{% if has_tabs %}
  {{ page.tabs }}
{% endif %}

<div class="off-canvas" id="off-canvas" data-expanded="false">
  {{ page.off_canvas }}
</div>

{% block header %}
  <header class="microsite-header">
    {% include "@localgov_microsites_base/layout/includes/microsites-header.html.twig" %}
  </header>
{% endblock %}

{% if has_header %}
  {{ page.header }}
{% endif %}

{% if has_messages %}
  {{ page.messages }}
{% endif %}

<main class="main" id="main-content"> {# The "skip to content" link jumps to here. #}

  {% if has_content_top %}
    {{ page.content_top }}
  {% endif %}

  {% if not node %}
    <div class="lgd-container">
        <div class="lgd-row">
          <div class="lgd-row__full">
            <div class="padding-horizontal">
  {% endif %}
            {{ page.content }}
  {% if not node %}
            </div>
          </div>
        </div>
    </div>
  {% endif %}

  {% if has_content_bottom %}
    {{ page.content_bottom }}
  {% endif %}
</main>

{% block footer %}
  <footer class="microsite-footer">
    {% include "@localgov_microsites_base/layout/includes/microsites-footer.html.twig" %}
    {% if has_footer %}
      {{ page.footer }}
    {% endif %}
  </footer>
{% endblock %}
