Skip to content

Commit

Permalink
Merge pull request #65 from ubc-web-services/feature/add-default-head…
Browse files Browse the repository at this point in the history
…er-and-footer-regions

Add header and footer regions from default drupal core
  • Loading branch information
occupant authored Aug 31, 2023
2 parents a30ea43 + 652e97e commit e518ec0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions galactus.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ regions:
breadcrumb: 'Breadcrumb'
help: 'Help'
highlighted: 'Highlighted'
header: 'Header'
content: 'Content'
footer: 'Footer'
sidebar_first: 'Sidebar first'
sidebar_second: 'Sidebar second'
secondary_content: 'Secondary Content'
Expand Down
14 changes: 13 additions & 1 deletion templates/layout/page.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,13 @@
</div>
{% endif %}
{% endif %}

{% if page.header %}
<header role="banner">
{{ page.header }}
</header>
{% endif %}

<div{{ attributes.addClass(content_row_class_option, 'content', 'non-clf').setAttribute('id', 'unit-content') }}>
{% if layout_option == 'full' or 'fluid' %}
<div class="container clearfix">
Expand Down Expand Up @@ -238,13 +245,18 @@
{% if layout_option == 'full' or 'fluid' %}
</div>
{% endif %}
{% if page.footer %}
<footer role="contentinfo">
{{ page.footer }}
</footer>
{% endif %}
</div>
<!-- End of Unit Content Area -->
{% if page.prefooter %}
<div id="prefooter-content" class="non-clf" role="complementary">
{{ page.prefooter }}
</div>
{% endif %}
{% endif %}

{% if mobilenav_option == '' %}
<!-- Footer Area Unit Menu - Mobile Only -->
Expand Down

0 comments on commit e518ec0

Please sign in to comment.