[% if $menu?search %]
  • [% if $context('isStatic') %]
    [% else %] [% endif %]
  • [% endif %]
    [% if $menu?language %]
  • [% for $lang in map:keys($languages) %] [% endfor %]
  • [% endif %] [% if $menu?login and not($context?isStatic) %]
  • [% endif %]
    [% 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 ]]
      [% for $subitem in $item?subitems?* %]
    • [[ $subitem?id ]]
    • [% endfor %]
  • [% endif %] [% endfor %] [# display download menu items if in document view #] [% if exists($context?doc) and $menu?download %]
  • 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 %]