[% for $item in $menu?items?* %]
[% if $item?url or $item?url = ''%]
[% let $url = if (starts-with($item?url, 'http')) then $item?url else $context-path || '/' || $item?url %]
[[ $item?id ]]
[% endlet %]
[% elif exists($item?subitems) %]
[[ $item?id ]]
[% endif %]
[% endfor %]
[# display download menu if in document view #]
[% if exists($context?doc) and $menu?download %]
Download
Edit XML
View XML
[% if empty($context?media) or "print" = $context?media %]
Print CSS
[% endif %]
[% if empty($context?media) or "latex" = $context?media %]
Download
[% endif %]
[% if empty($context?media) or "latex" = $context?media %]
[% endif %]
[% if empty($context?media) or "fo" = $context?media %]
[% endif %]
[% if empty($context?media) or "fo" = $context?media %]
[% endif %]
[% if empty($context?media) or "epub" = $context?media %]
ePUB
[% endif %]
[% block menu.download %][% endblock %]
[% endif %]
Admin
[% block menu.left %][% endblock %]
[% if $menu?search %]
[% if $context('isStatic') %]
[% else %]
[% endif %]
[% endif %]
[% if $menu?language %]
[% for $lang in filter(map:keys($languages), function($lang) { contains($context?defaults?languages?*, $lang) }) %]
[[ $languages?($lang) ]]
[% endfor %]
[% endif %]
[% block menu.toggles %][% endblock %]
[% if $menu?login and not($context?isStatic) %]
[% endif %]