{% set referer = app.request.server.get('http-referer')|default('/') %}{{ setCookie(referer) }}<header id="header"> <div class="container"> <!-- page logo --> <div class="logo"> <a href="/{{ locale }}/"> <img id="logo" src="/logo_image.jpg" width="80" alt="image description"> </a> </div> <div class="sitetitle"> <ul> <li class="active site-title"><a href="/{{ locale }}/">DEMO ITHRA DAM</a></li> </ul> </div> {% set navStartNode = getNavStartNode() %} {{ pimcore_inc('/' ~ navStartNode.getKey() ~ '/' ~ locale ~ '/shared/top-nav-cart') }} </div> <nav id="nav"> <!-- menu opener of the page --> <a href="#" class="nav-opener"><span></span></a> <div class="nav-drop"> <div class="nav-wrap"> <!-- navigation of the page --> <ul class="navigation"> <li class="country"> <img alt="flag" src="{{ country.getFlagIconImage().getUrl() }}"></img> {{ (country.GetName() == 'International') ? country.GetName() : getRegionBundle(country.GetName()) }} </li> <li><a href="/{{ locale|lower }}/brand/list">Categories A-Z</a> {% if not editmode %} <li><a href="{{ pimcore_url({'prefix': locale|lower}, 'product-landing', {'absolute': false}) }}">Documents</a> <div class="dropdown"> <div class="container"> <div class="top-block"> </div> <div class="bottom-block"> <div class="row"> {% set filterDefinition2 = getFilterDefinitions() %} {% set products2 = getProductList(filterDefinition2, app.request) %} {% set valuesIndex = getValueIndex(filterDefinition2,products2) %} {% set showcount = 0 %} {% set subCategories = getsubCategories() %} {% set x = 0 %} {% if subCategories %} {% for subCategory in subCategories %} {% if valuesIndex[subCategory.getId()] is defined and valuesIndex[subCategory.getId()] > 0 %} {% set url = subCategory.getDetailUrl({"rootCategory" : subCategory.getParent(), "document" : document}) %} {% set x = x + 1 %} <div class="col-sm-2 col-sm-2-{{ x }}"> <ul class="liquor-type"> <li> <a href="{{ url|lower }}">{{ subCategory.getName() }}</a> {% if subCategory.getChildren() %} <ul> {% for sub in subCategory.getChildren() %} {% set suburl = sub.getDetailUrl({"rootCategory" : sub.parent, "document" : document}) %} {% set subId = sub.getId() %} {% if subId in valuesIndex and valuesIndex[subId] > 0 %} <li><a href="{{ suburl|lower }}">{{ sub.getName() }}</a></li> {% endif %} {% endfor %} </ul> {% endif %} </li> </ul> </div> {% endif %} {% endfor %} {% endif %} </div> </div> </div> </div> </li> {% endif %} </ul> <!-- search form of the page --> <form class="search-form" action="/{{ app.request.getLocale()|lower }}/product/list" method="GET"> <input type="search" name="search" id="search" placeholder="{{ (search is defined) ? search : 'espirits.header.search'|trans }}" class="form-control"> <button type="submit"><span class="icon-search"></span></button> </form> </div> </div> </nav></header>