| Server IP : 104.21.58.90 / Your IP : 162.159.114.23 Web Server : nginx/1.30.6 System : Linux alexhost1 7.0.0-44-generic #44-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 6 02:38:04 UTC 2026 x86_64 User : xxbet_company_com ( 1133) PHP Version : 8.5.4 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /data/pbn/satellite/resources/for-satellite-main/themes/main/layouts/partials/ |
Upload File : |
{{- /*
Renders a menu for the given menu ID.
@context {page} page The current page.
@context {string} menuID The menu ID.
@example: {{ partial "menu.html" (dict "menuID" "main" "page" .) }}
*/}}
{{- $page := .page -}}
{{- $menuID := .menuID -}}
{{- with index site.Menus $menuID -}}
{{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) -}}
{{- end -}}
{{- define "partials/inline/menu/walk.html" -}}
{{- $page := .page -}}
{{- range .menuEntries -}}
{{- $attrs := dict "href" .URL -}}
{{- if $page.IsMenuCurrent .Menu . -}}
{{- $attrs = merge $attrs (dict "class" "active" "aria-current" "page") -}}
{{- else if $page.HasMenuCurrent .Menu . -}}
{{- $attrs = merge $attrs (dict "class" "ancestor" "aria-current" "true") -}}
{{- end -}}
{{- $name := .Name -}}
{{- with .Identifier -}}
{{- with T . -}}
{{- $name = . -}}
{{- end -}}
{{- end -}}
<li><a
{{- range $k, $v := $attrs -}}
{{- with $v -}}
{{- printf " %s=%q" $k $v | safeHTMLAttr -}}
{{- end -}}
{{- end -}}
>{{- $name -}}</a>
{{- with .Children -}}
<ul>
{{ partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) }}
</ul>
{{- end -}}
</li>
{{ end }}
{{- end -}}