templates/contacts/contacts.html.twig line 1

Open in your IDE?
  1. {% extends '@Web/layout.html.twig' %}
  2. {% block title %}
  3.     {{ meta.title | raw }}
  4. {% endblock %}
  5. {% block meta %}
  6.     <meta name="keywords" content="{{ meta.keywords | raw }}" />
  7.     <meta name="description" content="{{ meta.description | raw }}" />
  8. {% endblock %}
  9. {% block stylesheets %}
  10.     {{ parent() }}
  11.     <link rel="stylesheet" href="{{ asset('_css/pages.min.css') }}" />
  12. {% endblock %}
  13. {% block javascripts %}
  14.     {{ parent() }}
  15.     <script type="text/javascript" src="//media.twiliocdn.com/sdk/js/client/releases/1.10.0/twilio.min.js"></script>
  16.     <script src="{{ asset('_js/contact.js') }}"></script>
  17. {% endblock %}
  18. {% block content %}
  19.     {% set isRTWidget = useRTWidget() %}
  20.     <div class="pages page-contacts">
  21.         <h1>{{ 'page_contacts.header' | trans }}</h1>
  22.     </div>
  23.     <div class="page-contacts js-page-contacts container-fluid clearfix">
  24.         <div class="contacts-cell row clearfix">{# убрал row #}
  25.             {% set noChoose = '' %}
  26.             {% set currentCountryId = '0' %}
  27.             {% if availableLanguages | length == 1 %}
  28.                 {% set noChoose = 'no-active' %}
  29.             {% endif %}
  30.             <div class="col-xs-12 col-sm-5 col-md-4 lang-list">
  31.                 <h5>{{ 'header_country' | trans }}</h5>
  32.                 {# сформировать списки стран #}
  33.                 {% set basicCountries = [] %}
  34.                 {% set secondaryCountries = [] %}
  35.                 {% set currCountryLocale = '' %}
  36.                 {% for key, country in countryList %}
  37.                     {#{% if key == 'fi' or key == 'fr' or key == 'de' or key == 'it' or key == 'nl' or key == 'gb' or key == 'us' %}#}
  38.                         {#{% set basicCountries = basicCountries | merge([{'key': key, 'country': country}]) %}#}
  39.                     {#{% endif %}#}
  40.                     {% if locale == key | lower %}
  41.                         {% set currCountryLocale = country['locale'] %}
  42.                     {% endif %}
  43.                 {% endfor %}
  44.                 <div class="simple-list-drop-container country-block-contact js-country-block-contact">
  45.                     <div class="list-drop-active" role="show-list-drop">
  46.                         <input type="text" class="active-status" />
  47.                     </div>
  48.                     <ul class="simple-list-drop">
  49.                         {% for newcountry in basicCountries if newcountry.key != 'en' %}
  50.                             {% set key = newcountry.key %}
  51.                             {% set country = newcountry.country %}
  52.                             {% set activeClass = '' %}
  53.                             {% if countryCode == key | lower %}
  54.                                 {% set activeClass = ' active js-default-option' %}
  55.                                 {% set currentCountryId = newcountry['country']['id'] %}
  56.                             {% endif %}
  57.                             <li class="simple-list-item{{ activeClass }}"
  58.                                 data-prior-lang="{{ country['locales'] is defined ? country['locales'] : 'en' }}"
  59.                                 data-simpledrop-value="{{ key }}"
  60.                                 data-simpledrop-text="{{ country['name'] }}"
  61.                             >
  62.                                 <span class="thumb flag flag-{{ key }}"></span>
  63.                                 {{ country['name'] }}
  64.                             </li>
  65.                         {% endfor %}
  66.                         <li class="divider"></li>
  67.                         {% for key, country in countryList %}
  68.                             {% set activeClass = '' %}
  69.                             {% if countryCode == key | lower %}
  70.                                  {% set activeClass = 'active ' %}
  71.                                 {% set currentCountryId =  country['id'] %}
  72.                             {% endif %}
  73.                             <li class="{{ activeClass }}simple-list-item"
  74.                                 data-prior-lang="{{ country['locales'] is defined ? country['locales'] : 'en' }}"
  75.                                 data-simpledrop-value="{{ key }}"
  76.                                 data-simpledrop-text="{{ country['name'] }}"
  77.                             >
  78.                                 <span class="thumb flag flag-{{ key }}"></span>
  79.                                 {{ country['name'] }}
  80.                             </li>
  81.                         {% endfor %}
  82.                     </ul>
  83.                 </div>
  84.                 <h5>{{ 'contacts.change_lang' | trans }}</h5>
  85.                 <div class="change-lang-wrapper">
  86.                     <ul class="change-lang-cont js-change-lang-cont list-unstyled">
  87.                         {% for langCountry in availableLanguages %}
  88.                             {% for key, lang in localeNames %}
  89.                                 {% if key == langCountry %}
  90.                                     {% set activeClass = '' %}
  91.                                     {% if langCountry == locale %}
  92.                                         {% set activeClass = ' active' %}
  93.                                     {% endif %}
  94.                                     <li{% if noChoose or activeClass %} class="{{ noChoose }}{{ activeClass }}"{% endif %}
  95.                                         data-val="{{ langCountry }}"
  96.                                     >{{ lang }}</li>
  97.                                 {% endif %}
  98.                             {% endfor %}
  99.                         {% endfor %}
  100.                     </ul>
  101.                 </div>
  102.             </div>
  103.             <div class="col-xs-12 col-sm-7 col-md-8">
  104.                 <div class="row">
  105.                     <div class="contacts-blocks-main-wrapper">
  106.                         <div class="contacts-blocks-inner-wrapper">
  107.                             <div class="contact-page-block-wrapper big-block-wrapper">
  108.                                 <div class="contact-block-background hidden"></div>
  109.                                 <div class="contact-page-block">
  110.                                     <div class="wrap-icon big-icon chat-wrap-icon">
  111.                                         {% if isRTWidget %}
  112.                                             <a id="chat-widget-contacts" class="big-icon-link chat-link">
  113.                                         {% else %}
  114.                                             <a id="chat-widget-contacts" target="_blank" href="{{ path('app_chatb_chatbpage') }}" class="big-icon-link chat-link">
  115.                                         {% endif %}
  116.                                             {% include '@Web/SVGIconsCode/contact-chat.html.twig' %}
  117.                                             <span>{{ 'contacts.chat' | trans }}</span>
  118.                                             <span class="chat-cons-status"
  119.                                                   data-text-online="{{ 'online' | trans }}"
  120.                                                   data-text-offline="{{ 'offline' | trans }}"
  121.                                             ></span>
  122.                                         </a>
  123.                                     </div>
  124.                                 </div>
  125.                             </div>{#
  126.                             #}<div class="contact-page-block-wrapper big-block-wrapper">
  127.                                 <div class="contact-block-background hidden"></div>
  128.                                 <div class="contact-page-block">
  129.                                     <div class="wrap-icon big-icon">
  130.                                         {% set isDev = '' %}
  131.                                         {% if te.request.get('dev') %}
  132.                                             {% set isDev = 'true' %}
  133.                                         {% endif %}
  134.                                         <a href="#" class="big-icon-link free-call-link js-free-call-link" data-is-dev="{{ isDev }}">
  135.                                             <div class="call-icon-wrapper">
  136.                                                 {% include '@Web/SVGIconsCode/contact-free-call.html.twig' %}
  137.                                                 <span class="status-circle"
  138.                                                       data-text-online="on"
  139.                                                       data-text-offline="off"
  140.                                                 ></span>
  141.                                             </div>
  142.                                             <span>{{ 'contacts.free_call' | trans }}</span>
  143.                                         </a>
  144.                                     </div>
  145.                                 </div>
  146.                             </div>{#
  147.                             #}<div class="contact-page-block-wrapper medium-block-wrapper">
  148.                                 <div class="contact-block-background"></div>
  149.                                 <div class="contact-page-block">
  150.                                     <div class="wrap-icon">
  151.                                         <a href="tel:{{ phone }}" id="mobilePhoneNumber" class="big-icon-link mobile-phone-number">
  152.                                             {% include '@Web/SVGIconsCode/contact-mobile.html.twig' %}
  153.                                             <span>{{ phone }}</span>
  154.                                         </a>
  155.                                     </div>
  156.                                 </div>
  157.                             </div>{#
  158.                             #}<div class="contact-page-block-wrapper medium-block-wrapper">
  159.                                 <div class="contact-block-background"></div>
  160.                                 <div class="contact-page-block">
  161.                                     <div class="wrap-icon">
  162.                                         {% set mailTo = 'mailto:' ~ email %}
  163.                                         {# нужно, чтобы адрес эл. почты не выходил за пределы экрана на маленьких экранах #}
  164.                                         {% set font_small = '' %}
  165.                                         {# для Голландии уменьшить размер шрифта эл. адреса #}
  166.                                         {% set isNl = '' %}
  167.                                         {% set userLocale = userLocale() %}
  168.                                         {% if userLocale == 'nl' or userLocale == 'fi' or userLocale == 'de' or userLocale == 'fr' %}
  169.                                             {% set font_small = ' font-small' %}
  170.                                             {% if userLocale == 'nl' %}
  171.                                                 {% set isNl = ' nl' %}
  172.                                             {% endif %}
  173.                                         {% endif %}
  174.                                         <a class="big-icon-link email-link{{ font_small }}{{ isNl }}" href="{{ mailTo }}">
  175.                                             {% include '@Web/SVGIconsCode/contact-email.html.twig' %}
  176.                                             <span>{{ email }}</span>
  177.                                         </a>
  178.                                     </div>
  179.                                     {% set local = userLocale() %}
  180.                                 </div>
  181.                             </div>{#
  182.                             #}<div class="contact-page-block-wrapper medium-block-wrapper">
  183.                                 <div class="contact-page-block">
  184.                                     <div class="wrap-icon social-link js-social-media-block">
  185.                                         <a target="_blank" href="https://www.pinterest.com/tileexpert/pins/" class="pinterest-link">
  186.                                             {% include '@Web/SVGIconsCode/contact-social-pinterest.html.twig' %}
  187.                                         </a>
  188.                                         {% if userLocale == 'ru' %}
  189.                                             <a target="_blank" href="https://www.instagram.com/tileexpertrussia" class="instagram-link">
  190.                                                 {% include '@Web/SVGIconsCode/contact-social-instagram.html.twig' %}
  191.                                             </a>
  192.                                         {% else %}
  193.                                             <a target="_blank" href="https://instagram.com/tile.expert/" class="instagram-link">
  194.                                                 {% include '@Web/SVGIconsCode/contact-social-instagram.html.twig' %}
  195.                                             </a>
  196.                                         {% endif %}
  197.                                         <div class="clearfix"></div>
  198.                                         <a target="_blank" href="https://twitter.com/TILE_EXPERT" class="twitter-link">
  199.                                             {% include '@Web/SVGIconsCode/contact-social-twitter.html.twig' %}
  200.                                         </a>
  201.                                         {% if userLocale == 'ru' %}
  202.                                             <a target="_blank" href="https://www.facebook.com/tileexpertrussia" class="facebook-link">
  203.                                                 {% include '@Web/SVGIconsCode/contact-social-facebook.html.twig' %}
  204.                                             </a>
  205.                                         {% else %}
  206.                                             <a target="_blank" href="https://www.facebook.com/tile.expert" class="facebook-link">
  207.                                                 {% include '@Web/SVGIconsCode/contact-social-facebook.html.twig' %}
  208.                                             </a>
  209.                                         {% endif %}
  210.                                     </div>
  211.                                 </div>
  212.                             </div>
  213.                         </div>
  214.                     </div>
  215.                 </div>
  216.                 <div class="row">
  217.                     <div class="schedule">
  218.                         {% if holidaysString | length > 0 and holidaysString != '-' %}
  219.                             <div class="holidays">
  220.                                 <span class="s-left">{{ 'contacts_holidays' | trans }}</span>&nbsp;<span class="s-right">{{ holidaysString }}</span>
  221.                             </div>
  222.                         {% endif %}
  223.                         {% if halfHolidaysString | length > 0 and halfHolidaysString != '-' %}
  224.                             <div class="holidays">
  225.                                 <span class="s-left">{{ 'contacts_half_holidays' | trans }}</span>&nbsp;<span class="s-right">{{ halfHolidaysString }}</span>
  226.                             </div>
  227.                         {% endif %}
  228.                         <div class="workdays">
  229.                             <span class="s-left">{{ 'contacts_workingdays' | trans }}</span>
  230.                             {% if isUnionWorkDaysAndWeekend %}
  231.                                 <span class="s-right"> {{ 'weekday.1' | trans }} - {{ 'weekday.0' | trans }}: {{ unionTime }} ({{ capital }})</span>
  232.                             {% else %}
  233.                                 <span class="s-right"> {{ 'weekday.1' | trans }} - {{ 'weekday.5' | trans }}: {{ workDaysTime }}{% if weekendIsOnline %}; {{ 'weekday.6' | trans }} - {{ 'weekday.0' | trans }}: {{ weekendDaysTime }}{% endif %} ({{ capital }})</span>
  234.                             {% endif %}
  235.                         </div>
  236. {#                        <br>#}
  237. {#                        {% if 'it' == getCurLocale() %}#}
  238. {#                            <div>#}
  239. {#                                    <span>#}
  240. {#                                        {{ 'it_cons_vacation' | trans }}#}
  241. {#                                    </span>#}
  242. {#                            </div>#}
  243. {#                        {% endif %}#}
  244.                     </div>
  245.                 </div>
  246.             </div>
  247.         </div>
  248.         {% include 'contacts/online_call_block.html.twig' %}
  249.     </div>
  250. {% endblock %}