{% extends '@Web/layout.html.twig' %}
{% block title %}
{{ meta.title | raw }}
{% endblock %}
{% block meta %}
<meta name="keywords" content="{{ meta.keywords | raw }}" />
<meta name="description" content="{{ meta.description | raw }}" />
{% endblock %}
{% block stylesheets %}
{{ parent() }}
<link rel="stylesheet" href="{{ asset('_css/pages.min.css') }}" />
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script type="text/javascript" src="//media.twiliocdn.com/sdk/js/client/releases/1.10.0/twilio.min.js"></script>
<script src="{{ asset('_js/contact.js') }}"></script>
{% endblock %}
{% block content %}
{% set isRTWidget = useRTWidget() %}
<div class="pages page-contacts">
<h1>{{ 'page_contacts.header' | trans }}</h1>
</div>
<div class="page-contacts js-page-contacts container-fluid clearfix">
<div class="contacts-cell row clearfix">{# убрал row #}
{% set noChoose = '' %}
{% set currentCountryId = '0' %}
{% if availableLanguages | length == 1 %}
{% set noChoose = 'no-active' %}
{% endif %}
<div class="col-xs-12 col-sm-5 col-md-4 lang-list">
<h5>{{ 'header_country' | trans }}</h5>
{# сформировать списки стран #}
{% set basicCountries = [] %}
{% set secondaryCountries = [] %}
{% set currCountryLocale = '' %}
{% for key, country in countryList %}
{#{% if key == 'fi' or key == 'fr' or key == 'de' or key == 'it' or key == 'nl' or key == 'gb' or key == 'us' %}#}
{#{% set basicCountries = basicCountries | merge([{'key': key, 'country': country}]) %}#}
{#{% endif %}#}
{% if locale == key | lower %}
{% set currCountryLocale = country['locale'] %}
{% endif %}
{% endfor %}
<div class="simple-list-drop-container country-block-contact js-country-block-contact">
<div class="list-drop-active" role="show-list-drop">
<input type="text" class="active-status" />
</div>
<ul class="simple-list-drop">
{% for newcountry in basicCountries if newcountry.key != 'en' %}
{% set key = newcountry.key %}
{% set country = newcountry.country %}
{% set activeClass = '' %}
{% if countryCode == key | lower %}
{% set activeClass = ' active js-default-option' %}
{% set currentCountryId = newcountry['country']['id'] %}
{% endif %}
<li class="simple-list-item{{ activeClass }}"
data-prior-lang="{{ country['locales'] is defined ? country['locales'] : 'en' }}"
data-simpledrop-value="{{ key }}"
data-simpledrop-text="{{ country['name'] }}"
>
<span class="thumb flag flag-{{ key }}"></span>
{{ country['name'] }}
</li>
{% endfor %}
<li class="divider"></li>
{% for key, country in countryList %}
{% set activeClass = '' %}
{% if countryCode == key | lower %}
{% set activeClass = 'active ' %}
{% set currentCountryId = country['id'] %}
{% endif %}
<li class="{{ activeClass }}simple-list-item"
data-prior-lang="{{ country['locales'] is defined ? country['locales'] : 'en' }}"
data-simpledrop-value="{{ key }}"
data-simpledrop-text="{{ country['name'] }}"
>
<span class="thumb flag flag-{{ key }}"></span>
{{ country['name'] }}
</li>
{% endfor %}
</ul>
</div>
<h5>{{ 'contacts.change_lang' | trans }}</h5>
<div class="change-lang-wrapper">
<ul class="change-lang-cont js-change-lang-cont list-unstyled">
{% for langCountry in availableLanguages %}
{% for key, lang in localeNames %}
{% if key == langCountry %}
{% set activeClass = '' %}
{% if langCountry == locale %}
{% set activeClass = ' active' %}
{% endif %}
<li{% if noChoose or activeClass %} class="{{ noChoose }}{{ activeClass }}"{% endif %}
data-val="{{ langCountry }}"
>{{ lang }}</li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>
</div>
</div>
<div class="col-xs-12 col-sm-7 col-md-8">
<div class="row">
<div class="contacts-blocks-main-wrapper">
<div class="contacts-blocks-inner-wrapper">
<div class="contact-page-block-wrapper big-block-wrapper">
<div class="contact-block-background hidden"></div>
<div class="contact-page-block">
<div class="wrap-icon big-icon chat-wrap-icon">
{% if isRTWidget %}
<a id="chat-widget-contacts" class="big-icon-link chat-link">
{% else %}
<a id="chat-widget-contacts" target="_blank" href="{{ path('app_chatb_chatbpage') }}" class="big-icon-link chat-link">
{% endif %}
{% include '@Web/SVGIconsCode/contact-chat.html.twig' %}
<span>{{ 'contacts.chat' | trans }}</span>
<span class="chat-cons-status"
data-text-online="{{ 'online' | trans }}"
data-text-offline="{{ 'offline' | trans }}"
></span>
</a>
</div>
</div>
</div>{#
#}<div class="contact-page-block-wrapper big-block-wrapper">
<div class="contact-block-background hidden"></div>
<div class="contact-page-block">
<div class="wrap-icon big-icon">
{% set isDev = '' %}
{% if te.request.get('dev') %}
{% set isDev = 'true' %}
{% endif %}
<a href="#" class="big-icon-link free-call-link js-free-call-link" data-is-dev="{{ isDev }}">
<div class="call-icon-wrapper">
{% include '@Web/SVGIconsCode/contact-free-call.html.twig' %}
<span class="status-circle"
data-text-online="on"
data-text-offline="off"
></span>
</div>
<span>{{ 'contacts.free_call' | trans }}</span>
</a>
</div>
</div>
</div>{#
#}<div class="contact-page-block-wrapper medium-block-wrapper">
<div class="contact-block-background"></div>
<div class="contact-page-block">
<div class="wrap-icon">
<a href="tel:{{ phone }}" id="mobilePhoneNumber" class="big-icon-link mobile-phone-number">
{% include '@Web/SVGIconsCode/contact-mobile.html.twig' %}
<span>{{ phone }}</span>
</a>
</div>
</div>
</div>{#
#}<div class="contact-page-block-wrapper medium-block-wrapper">
<div class="contact-block-background"></div>
<div class="contact-page-block">
<div class="wrap-icon">
{% set mailTo = 'mailto:' ~ email %}
{# нужно, чтобы адрес эл. почты не выходил за пределы экрана на маленьких экранах #}
{% set font_small = '' %}
{# для Голландии уменьшить размер шрифта эл. адреса #}
{% set isNl = '' %}
{% set userLocale = userLocale() %}
{% if userLocale == 'nl' or userLocale == 'fi' or userLocale == 'de' or userLocale == 'fr' %}
{% set font_small = ' font-small' %}
{% if userLocale == 'nl' %}
{% set isNl = ' nl' %}
{% endif %}
{% endif %}
<a class="big-icon-link email-link{{ font_small }}{{ isNl }}" href="{{ mailTo }}">
{% include '@Web/SVGIconsCode/contact-email.html.twig' %}
<span>{{ email }}</span>
</a>
</div>
{% set local = userLocale() %}
</div>
</div>{#
#}<div class="contact-page-block-wrapper medium-block-wrapper">
<div class="contact-page-block">
<div class="wrap-icon social-link js-social-media-block">
<a target="_blank" href="https://www.pinterest.com/tileexpert/pins/" class="pinterest-link">
{% include '@Web/SVGIconsCode/contact-social-pinterest.html.twig' %}
</a>
{% if userLocale == 'ru' %}
<a target="_blank" href="https://www.instagram.com/tileexpertrussia" class="instagram-link">
{% include '@Web/SVGIconsCode/contact-social-instagram.html.twig' %}
</a>
{% else %}
<a target="_blank" href="https://instagram.com/tile.expert/" class="instagram-link">
{% include '@Web/SVGIconsCode/contact-social-instagram.html.twig' %}
</a>
{% endif %}
<div class="clearfix"></div>
<a target="_blank" href="https://twitter.com/TILE_EXPERT" class="twitter-link">
{% include '@Web/SVGIconsCode/contact-social-twitter.html.twig' %}
</a>
{% if userLocale == 'ru' %}
<a target="_blank" href="https://www.facebook.com/tileexpertrussia" class="facebook-link">
{% include '@Web/SVGIconsCode/contact-social-facebook.html.twig' %}
</a>
{% else %}
<a target="_blank" href="https://www.facebook.com/tile.expert" class="facebook-link">
{% include '@Web/SVGIconsCode/contact-social-facebook.html.twig' %}
</a>
{% endif %}
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="schedule">
{% if holidaysString | length > 0 and holidaysString != '-' %}
<div class="holidays">
<span class="s-left">{{ 'contacts_holidays' | trans }}</span> <span class="s-right">{{ holidaysString }}</span>
</div>
{% endif %}
{% if halfHolidaysString | length > 0 and halfHolidaysString != '-' %}
<div class="holidays">
<span class="s-left">{{ 'contacts_half_holidays' | trans }}</span> <span class="s-right">{{ halfHolidaysString }}</span>
</div>
{% endif %}
<div class="workdays">
<span class="s-left">{{ 'contacts_workingdays' | trans }}</span>
{% if isUnionWorkDaysAndWeekend %}
<span class="s-right"> {{ 'weekday.1' | trans }} - {{ 'weekday.0' | trans }}: {{ unionTime }} ({{ capital }})</span>
{% else %}
<span class="s-right"> {{ 'weekday.1' | trans }} - {{ 'weekday.5' | trans }}: {{ workDaysTime }}{% if weekendIsOnline %}; {{ 'weekday.6' | trans }} - {{ 'weekday.0' | trans }}: {{ weekendDaysTime }}{% endif %} ({{ capital }})</span>
{% endif %}
</div>
{# <br>#}
{# {% if 'it' == getCurLocale() %}#}
{# <div>#}
{# <span>#}
{# {{ 'it_cons_vacation' | trans }}#}
{# </span>#}
{# </div>#}
{# {% endif %}#}
</div>
</div>
</div>
</div>
{% include 'contacts/online_call_block.html.twig' %}
</div>
{% endblock %}