diff --git a/src/patterns/03-layouts/header/header.twig b/src/patterns/03-layouts/header/header.twig index b4c274a8e5db9b9a1c5c343a697733b66951ef1b..ebb77cb86707421f3a6defd856bcc2e6ccc6c06e 100644 --- a/src/patterns/03-layouts/header/header.twig +++ b/src/patterns/03-layouts/header/header.twig @@ -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>