<!-- e-shop header --><a name="top"></a><div class="eshopHeaderContainer"><div class="eshopHeaderPanel"><div class="eshopHeaderMenu"> <div class="eshopHeaderMenuCell"> <a href="{{ path('root') }}eshop/{{ eshop.eshopId }}" class="eshopHeaderLink eshopHeaderHomeLink">{{ 'eshop.home'|trans }}</a> </div> {% if app.session.get('contact') is defined and app.session.get('contact') != '' %} <!-- customer home page --> <div class="eshopHeaderMenuCell"> <span class="eshopHeaderText">{{ 'eshop.customer'|trans }}:</span> <a href="{{ path('root') }}eshop/{{ eshop.eshopId }}/eshopHomeContact" class="eshopHeaderLink">{{ app.session.get('contact').contactUserName }}</a> </div> <!-- logout --> <div class="eshopHeaderMenuCell"> <a href="{{ path('root') }}eshop/{{ eshop.eshopId }}/logout" class="eshopHeaderLink">{{ 'eshop.logout'|trans }}</a> </div> {% else %} <!-- login --> <div class="eshopHeaderMenuCell"> <a href="{{ path('root') }}eshop/{{ eshop.eshopId }}/login" class="eshopHeaderLink">{{ 'eshop.login'|trans }}</a> </div> <!-- register --> <div class="eshopHeaderMenuCell"> <a href="{{ path('root') }}eshop/{{ eshop.eshopId }}/register" class="eshopHeaderLink">{{ 'eshop.register'|trans }}</a> </div> {% endif %}</div> <!-- basket panel --> <div class="basketPanel" id="basketPanel"> <div class="eshopBasket"> <a href="{{ path('root') }}eshop/{{ eshop.eshopId }}/basket" class="eshopBasketLink" id="eshopBasketLink">{{ 'eshop.basket'|trans }} <span id="eshop_basket_count" class="eshopBasketCount"> {% if app.session.get('order') is defined and app.session.get('order').orderItems is defined and app.session.get('order').orderItems|length > 0 and app.session.get('order').eshopId == eshop.eshopId %} {{ app.session.get('order').orderItems|length }} {% else %} 0 {% endif %} </span> </a> </div> </div> {% if eshopHeader is not defined %} {% if app.request.get('searchstring') is defined and app.request.get('searchstring') != '' %} {% set searchString = app.request.get('searchstring') %} {% endif %} {% if searchString is not defined %} {% set searchString = '' %} {% endif %} <div class="searchPanelHeader"> <form method="GET" action="{{ path('root') }}eshop/{{ eshop.eshopId }}/search"> <input type="text" name="searchstring" class="searchHeader" value="{{ searchString }}"> <input type="submit" name="searchSubmit" value="{{ 'eshop.search'|trans }}" class="searchButtonHeader"> </form> </div> {% endif %} <div class="optionsPanel"> <!-- select language --> <div class="languagesPanel"> <div class="languageSelectorPanel"> <form method="GET" action="{{ path('root') }}eshop/{{ eshop.eshopId }}/eshopNewlang"> <select name="newlang" onchange="this.form.submit()" class="languageSelector" title="{{ 'system.language_select'|trans }}"> <!-- languages list --> {% for lang in eshop.languages %} {% if lang.langKey == app.session.get('lang').langKey %} {% set selected="selected" %} {% else %} {% set selected="" %} {% endif %} <option value="{{ lang.langKey }}" class="languageSelectorOption" {{ selected }}>{{ lang.langName }}</option> {% endfor %} </select> </form> </div> </div> <!-- select currency --> <div class="currencyPanel"> <div class="currencySelectorPanel"> {% if app.session.get('order') is not defined %} {% set disabled = "" %} {% set title = 'system.currency_select'|trans %} {% else %} {% set disabled = " disabled" %} {% set title = 'system.currency_disabled'|trans %} {% endif %} <form method="GET" action="{{ path('root') }}eshop/{{ eshop.eshopId }}/eshopNewcurr"> <select name="newEshopCurrency" onchange="this.form.submit()" class="currencySelector" title="{{ title }}" {{ disabled }}> <!-- currency list --> {% for currency in eshop.currencies %} {% if currency.currencyKey == app.session.get('eshopCurrency').currencyKey %} {% set selected="selected" %} {% else %} {% set selected="" %} {% endif %} <option value="{{ currency.currencyKey }}" class="currencySelectorOption" {{ selected }}>{{ currency.currencyKey }}</option> {% endfor %} </select> </form> </div> <!-- <div class="currencySymbolPanel"> <?= $view['session']->get('currency')->getCurrencyKey() ?> </div> --> </div> </div> </div></div>{% if eshopHeader is defined %} {% if app.request.get('searchstring') is defined and app.request.get('searchstring') != '' %} {% set searchString = app.request.get('searchstring') %} {% endif %} {% if searchString is not defined %} {% set searchString = '' %} {% endif %}{% else %}{% endif %}<div class="eshopLogoContainer"> <div class="eshopHeaderLogo"> {% if eshopHeader.webPageContent is defined %} {{ eshopHeader.webPageContent|raw }} {% endif %} </div> <div class="searchPanel"> <form method="GET" action="{{ path('root') }}eshop/{{ eshop.eshopId }}/search"> <input type="text" name="searchstring" class="search" value="{{ searchString }}"> <input type="submit" name="searchSubmit" value="{{ 'eshop.search'|trans }}" class="searchButton"> </form> </div> </div>