Skip to content
Snippets Groups Projects
Commit e59a4ebf authored by Eric Bremner's avatar Eric Bremner Committed by Kevin Paxman
Browse files

ISTWCMS-6171: adding page display additional options for nodes

parent 33023c4d
No related branches found
No related tags found
1 merge request!95ISTWCMS-6171: adding page display additional options for nodes
......@@ -3,6 +3,10 @@
{% set faculty = faculty ? faculty : 'org-art' %}
{% endif %}
{% if not uwoption %}
{% set uwoption = 'all' %}
{% endif %}
<header class="uw-header {{ faculty }}" role="banner">
{% if global_message %}
<div id="global-message">
......@@ -12,7 +16,7 @@
<div class="uw-header__masthead">
{% include '@components/site-logo/site-logo.twig' %}
{% if branding_level == 'full' %}
{% if branding_level == 'full' and uwoption != 'none' %}
{% include "@components/menu/menu--header/menu--header.twig" with {
'modifier_classes': 'header',
'include_home': false,
......@@ -29,34 +33,37 @@
'faculty': faculty
}%}
{% endif %}
<!-- Main header horizontal navigation -->
<nav class="uw-header__nav">
<div class="uw-header__center">
<div class="uw-header__site-name">
{% include '@components/site-name/site-name.twig' with {
'site_name': site_name,
'home_link': home_link
} %}
</div>
<button class="uw-navigation-button" aria-controls="uw-header__navigation" aria-expanded="false">
<span class="uw-navigation-button__text">Menu</span>
<span class="uw-navigation-button__lines"></span>
</button>
</div>
<div id="uw-header__navigation" class="uw-header__navigation">
{% include "@components/menu/menu--horizontal/menu--horizontal.twig" with {
'modifier_classes': 'main',
'menu_name': 'horizontal',
'items': nav_items,
'home_link': home_link,
'include_home': true,
}%}
{% include "@components/menu/menu--secondary/menu--secondary.twig" with {
'modifier_classes': 'secondary',
'items': secondary_items,
'include_home': false,
}%}
</div>
</nav>
{% if uwoption == 'all' %}
<!-- Main header horizontal navigation -->
<nav class="uw-header__nav">
<div class="uw-header__center">
<div class="uw-header__site-name">
{% include '@components/site-name/site-name.twig' with {
'site_name': site_name,
'home_link': home_link
} %}
</div>
<button class="uw-navigation-button" aria-controls="uw-header__navigation" aria-expanded="false">
<span class="uw-navigation-button__text">Menu</span>
<span class="uw-navigation-button__lines"></span>
</button>
</div>
<div id="uw-header__navigation" class="uw-header__navigation">
{% include "@components/menu/menu--horizontal/menu--horizontal.twig" with {
'modifier_classes': 'main',
'menu_name': 'horizontal',
'items': nav_items,
'home_link': home_link,
'include_home': true,
}%}
{% include "@components/menu/menu--secondary/menu--secondary.twig" with {
'modifier_classes': 'secondary',
'items': secondary_items,
'include_home': false,
}%}
</div>
</nav>
{% endif %}
</header>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment