{{.Scratch.Set "theme" "default"}} {{with .CurrentSection}} {{with .Param "theme"}} {{$.Scratch.Set "theme" .}} {{end}} {{end}} {{- with .Param "header" -}} {{- $.Scratch.Set "header" . -}} {{- end -}} {{- if eq (.Scratch.Get "header") "modal" -}}
{{- partial "logo" . -}} Cancel
{{- end -}} {{- if ne (.Scratch.Get "header") "modal" -}}
{{- partial "logo" . -}}
{{- $menu := .Site.Menus.top_bar -}} {{- $linkcss := "hidden-md hidden-sm visible-desktop mr2 inv medium" -}} {{- if eq (.Scratch.Get "theme") "brand" -}} {{- $linkcss = "hidden-md hidden-sm visible-desktop wh mr2 inv medium" -}} {{- end -}} {{- partial "linksmenu.html" (dict "page" . "site" .Site "ctx" $ "css" $linkcss "menu" $menu) -}} {{- range .Site.Params.links -}}{{- .name -}}{{- end -}}
{{partial "login-logout" .}} {info.cartCount}
{{if eq .RelPermalink "/search/"}}
{{end}} {{if eq (.FirstSection.Permalink) "/help/"}}{{ if ne (.CurrentSection.Permalink) "/help/" }}
{{ partial "help/search-header" .}}
{{end}}{{end}} {{- if eq (.Page.Param "headersubmenu") true -}} {{- partial "submenu" . -}} {{- end -}} {{- if eq (.Page.Param "headerbreadcrumb") true -}} {{- $linkclass := "normal" -}} {{- $leafclass := "" -}} {{- if eq (.Page.Param "theme") "brand" -}} {{- $linkclass = "wh normal" -}} {{- $leafclass = "ga-text" -}} {{- end -}} {{- end -}} {{- partial "logout" . -}}
{{- end -}}