Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_wcms_ohana
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_wcms_ohana
Merge requests
!95
ISTWCMS-6171: adding page display additional options for nodes
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
ISTWCMS-6171: adding page display additional options for nodes
feature/ISTWCMS-6171-ebremner-page-display-options
into
1.0.x
Overview
0
Commits
4
Pipelines
0
Changes
1
Merged
Eric Bremner
requested to merge
feature/ISTWCMS-6171-ebremner-page-display-options
into
1.0.x
1 year ago
Overview
0
Commits
4
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
1.0.x
version 5
d1401bd5
1 year ago
version 4
68956805
1 year ago
version 3
70acf5b9
1 year ago
version 2
49953d18
1 year ago
version 1
040dcf0b
1 year ago
1.0.x (base)
and
latest version
latest version
66dced4b
4 commits,
1 year ago
version 5
d1401bd5
4 commits,
1 year ago
version 4
68956805
3 commits,
1 year ago
version 3
70acf5b9
3 commits,
1 year ago
version 2
49953d18
2 commits,
1 year ago
version 1
040dcf0b
1 commit,
1 year ago
1 file
+
41
−
30
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/patterns/03-layouts/header/header.twig
+
41
−
30
Options
@@ -3,6 +3,10 @@
{%
set
faculty
=
faculty
?
faculty
:
'org-art'
%}
{%
endif
%}
{%
if
not
uw_option
%}
{%
set
uw_option
=
'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,41 @@
'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
uw_option
!=
'none'
%}
<!-- 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>
{%
if
uw_option
==
'all'
%}
<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>
{%
endif
%}
</div>
{%
if
uw_option
==
'all'
%}
<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>
{%
endif
%}
</nav>
{%
endif
%}
</header>
Loading