<!doctype html>
<html lang="{{ app.request.locale }}">
<head>
<meta charset="UTF-8">
{% if url('front_homepage') == "https://www.jihoceskejerky.cz/" or url('front_homepage') == "http://www.jihoceskejerky.cz/" %}
<meta name="robots" content="index,follow"/>
{% else %}
<meta name="robots" content="noindex,nofollow"/>
{% endif %}
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
{% if meta is defined %}
<title>{{ meta.title|raw }}</title>
<meta property="og:title" content="{{- meta.title|raw }}"/>
{% endif %}
{% if meta is defined %}
<meta name="description" content="{{ meta.description|raw }}">
<meta property="og:description" content="{{ meta.description|raw }}" />
{% endif %}
{% if meta is defined %}
<meta name="keywords" content="{{ meta.keywords|raw }}">
{% endif %}
<meta property="og:type" content="website" />
<meta name="author" content="NexGen IT s.r.o. (info@nexgen.cz)"/>
<link rel="stylesheet" href="{{ asset('assets/theme/dist/all.min.css') }}">
<link rel="shortcut icon" href="{{ asset('assets/theme/favicon.ico') }}">
{% if app.request.getSchemeAndHttpHost() == "http://localhost:8000" %}
<script src="http://localhost:35731/livereload.js"></script>
{% endif %}
{{ marketing('head_end') }}
</head>
<body>
{{ marketing('body_start') }}
<header class="header">
<div class="container">
<a href="{{ path('front_homepage') }}" class="header__logo">
<img src="{{ asset('assets/theme/img/logo/logo.svg') }}" alt="logo">
</a>
{% include 'front/snippet/basket.html.twig' %}
{% set nonActiveLangs = [] %}
{% set activeLang = {} %}
{% for lang in app.request.get('nexsys.langs')|default([])%}
{%- if app.request.locale == lang.iso2 -%}
{% set activeLang = lang %}
{%- else -%}
{% set nonActiveLangs = nonActiveLangs|merge([lang]) %}
{%- endif -%}
{% endfor %}
<nav class="nav">
<div class="nav__scroll">
<ul>
{% for menu in menus['header_menu']|filter(menu => menu.parent is empty) %}
<li>
<a href="{{ menu|get_url|raw }}">{{ menu.translate.name }}</a>
</li>
{% endfor %}
<li><a href="{% if pt['shop'] is defined %}{{ pt['shop']|trans_path }}{% endif %}"><span class="button button--buy">{{ 'Koupit'|trans }}</span></a>
<li><span>{{ activeLang.iso2 }}</span>
<ul>
{% for lang in nonActiveLangs %}
{% if lang.active %}
<li>
<a href="{% if page is defined %}{{ page|trans_path(lang.iso2) }}{% else %}{{ path('front_basket', {'_locale': lang.iso2}) }}{% endif %}">
{{ lang.iso2 }}
</a>
</li>
{% endif %}
{% endfor %}
</ul>
</li>
</ul>
</div>
</nav>
<div class="burger">
<a href='#' class="burger__nav js-burger">
<span></span>
</a>
</div>
</div>
</header>