%PDF- %PDF-
Direktori : /www/specpages-backup/themes/dawn/layout/_partials/header/ |
Current File : /www/specpages-backup/themes/dawn/layout/_partials/header/menu.njk |
{% import 'menu-item.njk' as menu_item with context %} {%- if theme.menu or theme.algolia_search.enable or theme.local_search.enable %} <nav class="site-nav"> <ul class="main-menu menu"> {%- for name, path in theme.menu %} {%- set respath = path %} {%- if path == '[object Object]' %} {# Main Menu (default menu item for Submenu) #} {%- for subname, subpath in path %} {%- set itemName = subname | lower %} {%- set respath = subpath %} {%- if itemName == 'default' %} {%- set itemName = name | lower %} {{ menu_item.render(name, itemName, respath) }} {%- endif %} {%- endfor %} {% else %} {# Main Menu (standard menu items) #} {%- set itemName = name | lower %} {{- menu_item.render(name, itemName, respath) | trim }} {%- endif %} {%- endfor %} {%- if theme.algolia_search.enable or theme.local_search.enable %} <li class="menu-item menu-item-search"> <a role="button" class="popup-trigger"> {%- if theme.menu_settings.icons %}<i class="fa fa-search fa-fw"></i>{%- endif %}{{ __('menu.search') }} </a> </li> {%- endif %} </ul> </nav> {%- endif %}