File: //home/retile.ru/public_html/catalog/view/theme/unishop2/template/common/header.twig
<!DOCTYPE html>
<html dir="{{ direction }}" lang="{{ lang }}">
<head>
<title>{{ title }}</title>
<meta charset="UTF-8" >
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=3" >
<meta http-equiv="X-UA-Compatible" content="IE=edge" >
<meta name="yandex-verification" content="b5ee5cdacf2451fc" >
<meta name="google-site-verification" content="J1GVWGoVFnH3FRcOQhoixWrIBzY2K58aZMJUxkUi6-4" >
<base href="{{ base }}" >
{% if robots %}
<meta name="robots" content="{{ robots }}" >
{% endif %}
{% if description %}
<meta name="description" content="{{ description }}" >
{% endif %}
{% if keywords %}
<meta name="keywords" content="{{ keywords }}" >
{% endif %}
<meta property="og:title" content="{{ title }}" >
<meta property="og:type" content="website" >
{% if og_url%}
<meta property="og:url" content="{{ og_url }}" >
{% endif %}
{% if og_image %}
<meta property="og:image" content="{{ og_image }}" >
{% else %}
<meta property="og:image" content="{{ logo }}" >
{% endif %}
<meta property="og:site_name" content="{{ name }}" >
<meta name="theme-color" content="#{{ theme_color }}" >
{% for link in links %}
<link href="{{ link.href }}" rel="{{ link.rel }}" >
{% endfor %}
{% for font in font_preload %}
<link href="{{ font }}" rel="preload" as="font" type="font/woff2" crossorigin >
{% endfor %}
{% for style in styles %}
{{ 'merged' in style.href ? '<link href="'~style.href~'" rel="preload" as="style" >' }}
<link href="{{ style.href }}" rel="{{ style.rel }}" media="{{ style.media }}" >
{% endfor %}
<link rel="stylesheet" type="text/css" href="catalog/view/theme/unishop2/price-tablo-calculator.css">
<script src="/catalog/view/theme/unishop2/price-tablo.js"></script>
<script>const items_on_mobile = '{{ items_per_row_on_mobile }}', module_on_mobile = '{{ module_on_mobile }}', default_view = '{{ default_view }}', default_mobile_view = '{{ default_mobile_view }}';</script>
{% for script in scripts %}
{{ 'merged' in script ? '<link href="'~script~'" rel="preload" as="script" >' }}
<script src="{{ script }}"></script>
{% endfor %}
{% if user_js %}
<script>{{ user_js }}</script>
{% endif %}
{% for analytic in analytics %}
{{ analytic }}
{% endfor %}
{{ menu_expanded ? '<style>@media (min-width:992px) {header .menu1 .menu__collapse {display:block !important}}</style>' }}
<noscript><style>.uni-module__wrapper{opacity:1}</style></noscript>
<style>
#cookie-notification {
display: none;
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: #f1f1f1;
padding: 15px;
box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
z-index: 1000;
text-align: center;
}
#cookie-notification p {
margin: 0 0 10px 0;
}
#accept-cookies {
background: #05ac43;
color: #fafafa;
border: none;
padding: 8px 16px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 14px;
margin: 4px 2px;
cursor: pointer;
border-radius: 4px;
}
</style>
</head>
<body {{ class ? ' class="'~class~'"' }}>
<!-- Yandex.Metrika counter -->
<script type="text/javascript">
(function(m,e,t,r,i,k,a){
m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
m[i].l=1*new Date();
for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)
})(window, document,'script','https://mc.yandex.ru/metrika/tag.js?id=104243405', 'ym');
ym(104243405, 'init', {ssr:true, webvisor:true, clickmap:true, ecommerce:"dataLayer", accurateTrackBounce:true, trackLinks:true});
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/104243405" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
<header>
<div id="top" class="top-menu {{ (headerlinks and currency and language) is empty and (wishlist.position and compare.position) == 2 and account.position == 0 ? ' visible-on-mobile' }}" >
<div class="container">
<div class="top-menu__links">
{{ currency }}
{% if headerlinks %}
<div class="top-links btn-group">
<button class="top-menu__btn dropdown-toggle" data-toggle="dropdown"><i class="fas fa-bars"></i></button>
<ul class="top-links__ul dropdown-menu dropdown-menu-left">
{% for headerlink in headerlinks %}
<li class="top-links__li"><a class="top-links__a" href="{{ headerlink.link }}" title="{{ headerlink.title }}">{{ headerlink.title }}</a></li>
{% endfor %}
</ul>
</div>
{% endif %}
{% if callback %}
<div class="header-phones__li">
<a onclick="uniRequestOpen(['mail', 'phone', 'comment']);" class="header-phones__callback"><span class="header-phones__span">{{ text_header_callback }}</span></a>
</div>
{% endif %}
</div>
<div class="top-menu__buttons">
{% if wishlist %}
<div class="top-menu__wishlist status-{{ wishlist.position }}" data-products="{{ wishlist.products }}">
<div class="btn-group">
<button class="top-menu__btn top-menu__wishlist-btn uni-href" data-href="{{ wishlist.href }}"><i class="far fa-heart"></i><span class="top-menu__btn-text">{{ wishlist.text }}</span><span class="top-menu__wishlist-total uni-badge">{{ wishlist.total }}</span></button>
</div>
</div>
{% endif %}
{% if compare %}
<div class="top-menu__compare status-{{ compare.position }}" data-products="{{ compare.products }}">
<div class="btn-group">
<button class="top-menu__btn top-menu__compare-btn uni-href" data-href="{{ compare.href }}"><i class="top-menu__compare-icon fas fa-align-right"></i><span class="top-menu__btn-text">{{ compare.text }}</span><span class="top-menu__compare-total uni-badge">{{ compare.total }}</span></button>
</div>
</div>
{% endif %}
{{ language }}
<div class="top-menu__account status-{{ account.position }}">
<div id="account" class="btn-group">
<button class="top-menu__btn dropdown-toggle" data-toggle="dropdown"><i class="far fa-user"></i><span class="top-menu__btn-text">{{ logged ? customer_name : text_account }}</span></button>
<ul class="dropdown-menu dropdown-menu-right">
{% if logged %}
<li><a href="{{ account.link }}"><i class="far fa-fw fa-user"></i>{{ text_account }}</a></li>
<li><a href="{{ order }}"><i class="fas fa-fw fa-history"></i>{{ text_order }}</a></li>
{% if account.transaction_link %}<li><a href="{{ transaction }}"><i class="fas fa-fw fa-exchange-alt"></i>{{ text_transaction }}</a></li>{% endif %}
{% if account.download_link %}<li><a href="{{ download }}"><i class="fas fa-fw fa-download"></i>{{ text_download }}</a></li>{% endif %}
<hr style="margin:5px 0" />
<li><a href="{{ logout }}"><i class="fas fa-fw fa-sign-out-alt"></i>{{ text_logout }}</a></li>
{% else %}
<li><a {% if account.popup_login %}onclick="uniLoginOpen();"{% else %} href="{{ login }}"{% endif %}><i class="fas fa-fw fa-sign-in-alt"></i>{{ text_login }}</a></li>
<li><a {% if account.popup_register %}onclick="uniRegisterOpen();"{% else %} href="{{ register }}" {% endif %}><i class="fas fa-fw fa-user-plus"></i>{{ text_register }}</a></li>
{% endif %}
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="header-block row-flex">
<div class="header-block__item header-block__item-logo {{ menu_positions == 0 ? '' }}">
<div id="logo" class="header-logo">
{% if logo %}
{% if og_url is defined and home == og_url %}
<img src="{{ logo }}" title="{{ name }}" alt="{{ name }}" class="header-logo__img img-responsive" width="{{ logo_width }}" height="{{ logo_height }}" >
{% else %}
<a href="{{ home }}"><img src="{{ logo }}" title="{{ name }}" alt="{{ name }}" width="{{ logo_width }}" height="{{ logo_height }}" class="img-responsive" ></a>
{% endif %}
{% endif %}
</div>
</div>
{% if menu_positions %}
<div class="header-block__item header-block__item-menu hidden-xs hidden-sm">
<button class="header-menu__btn"><i class="header-menu__icon fas fa-fw fa-bars"></i>{{ text_menu }}</button>
</div>
{% endif %}
<div id="search" class="header-block__item header-block__item-search {{ search_phone_change ? ' order-2' }} hidden-xs hidden-sm">
{{ search }}
</div>
{% if text_in_add_contacts_position and text_in_add_contacts %}
<div class="header-block__item header-block__item-telephone {{ search_phone_change ? ' order-1' }}">
{{ text_in_add_contacts }}
</div>
{% endif %}
<div class="header-block__item header-block__item-telephone header-phones__additionals {{ search_phone_change ? ' order-1' }}">
<div class="header-phones {{ contacts.addit or text_in_add_contacts or callback ? ' has-addit' }}">
{#}
<span class="header-phones__main {{ contacts.second ? ' two-line'}} uni-href" {{ contacts.main.0.href ? ' data-href="'~contacts.main[0].href~'"' }} data-target="_blank" >{{ contacts.main.0.number }}</span>
{#}
{% if contacts.second %}<br />
<span class="header-phones__main two-line uni-href" {{ contacts.second.href ? ' data-href="'~contacts.second.href~'"' }} data-target="_blank" >{{ contacts.second.number }}</span>
{% endif %}
{{ contacts.number }}
{% if contacts.addit or text_in_add_contacts %}
{% if not contacts.second is empty %}
{% for key, contact in contacts.addit %}
<li class="header-phones__li {{ contact.main is defined and contacts.second is empty ? ' visible-xs' }}">
<a class="header-phones__a uni-href" {{ contact.href ? ' data-href="'~contact.href~'"' }} data-target="_blank">
{% if contact.icon and 'fa-' in contact.icon %}
<i class="{{ contact.icon }}"></i>
{% elseif contact.icon %}
<img src="image/{{ contact.icon }}" alt="" />
{% endif %}
{{ contact.text ? contact.text : contact.number }}
</a>
</li>
{% endfor %}
{% endif %}
{% endif %}
{% if contacts.main|length > 1 and contacts.second is empty %}
<ul class="">
{% for key, contact in contacts.main %}
<li class="header-phones__li {{ contact.main is defined and contacts.second is empty ? ' visible-xs' }}">
<a class="header-phones__a uni-href" {{ contact.href ? ' data-href="'~contact.href~'"' }} data-target="_blank">
{% if contact.icon and 'fa-' in contact.icon %}
<i class="{{ contact.icon }}" title="{{ contact.number }}"></i>
{% endif %}
{{ contact.number }}
</a>
</li>
{% endfor %}
</ul>
{% endif %}
{% if contact.main and contacts.second is empty %}
{% for key, contact in contacts.main %}
<li class="header-phones__li {{ contact.main is defined and contacts.second is empty ? ' visible-xs' }}">
<a class="header-phones__a uni-href" {{ contact.href ? ' data-href="'~contact.href~'"' }} data-target="_blank">
{% if contact.icon and 'fa-' in contact.icon %}
<i class="{{ contact.icon }}" title="{{ contact.number }}"></i>
{% endif %}
{{ contact.number }}
</a>
</li>
{% endfor %}
{% endif %}
</div>
</div>
<div class="header-block__item header-block__item-telephone {{ search_phone_change ? ' order-1' }}">
{% if contacts.main|length > 1 and contacts.second is empty %}
<ul class="header-phones {{ contacts.addit or text_in_add_contacts or callback ? ' has-addit' }}">
{% for key, contact in contacts.addit %}
<li class="header-phones__li {{ contact.main is defined and contacts.second is empty ? ' visible-xs' }}">
<a class="header-phones__a uni-href" {{ contact.href ? ' data-href="'~contact.href~'"' }}>
{% if contact.icon and 'fa-' in contact.icon %}
<i class="{{ contact.icon }}"></i>
{% elseif contact.icon %}
<img src="image/{{ contact.icon }}" alt="" />
{% endif %}
{{ contact.text ? contact.text : contact.number }}
</a>
</li>
{% endfor %}
</ul>
{% endif %}
</div>
{% if account.position == 2 %}
<div class="header-block__item header-block__item-account">
{% if logged %}
<div class="header-account" title="{{ customer_name }}">
<i class="header-account__icon fas fa-user dropdown-toggle" data-toggle="dropdown"></i>
<ul class="dropdown-menu dropdown-menu-right">
<li><a href="{{ account.link }}"><i class="far fa-fw fa-user"></i>{{ text_account }}</a></li>
<li><a href="{{ order }}"><i class="fas fa-fw fa-history"></i>{{ text_order }}</a></li>
{% if account.transaction_link %}<li><a href="{{ transaction }}"><i class="fas fa-fw fa-exchange-alt"></i>{{ text_transaction }}</a></li>{% endif %}
{% if account.download_link %}<li><a href="{{ download }}"><i class="fas fa-fw fa-download"></i>{{ text_download }}</a></li>{% endif %}
<hr style="margin:5px 0" />
<li><a href="{{ logout }}"><i class="fas fa-fw fa-sign-out-alt"></i>{{ text_logout }}</a></li>
</ul>
</div>
{% else %}
<div class="header-account uni-href" {% if account.popup_login %}onclick="uniLoginOpen();"{% else %} data-href="{{ login }}"{% endif %} title="{{ text_account }}"><i class="header-account__icon far fa-user"></i></div>
{% endif %}
</div>
{% endif %}
{% if wishlist and wishlist.position == 2 %}
<div class="header-block__item header-block__item-wishlist">
<div class="header-wishlist uni-href" data-href="{{ wishlist.href }}" title="{{ wishlist.text }}"><i class="header-wishlist__icon far fa-heart"></i><span class="header-wishlist__total-items">{{ wishlist.total }}</span></div>
</div>
{% endif %}
{% if compare and compare.position == 2 %}
<div class="header-block__item header-block__item-compare">
<div class="header-compare uni-href" data-href="{{ compare.href }}" title="{{ compare.text }}"><i class="header-compare__icon fas fa-align-right"></i><span class="header-compare__total-items">{{ compare.total }}</span></div>
</div>
{% endif %}
<div class="header-block__item header-block__item-cart">{{ cart }}</div>
</div>
</div>
<div class="container">
<div class="row">
{{ menu }}
<div id="search2" class="visible-xs visible-sm"></div>
<script>$('#search .header-search').clone().appendTo('#search2');</script>
</div>
</div>
</header>
<main>