src/DcSiteBundle/Resources/views/Ford/base.html.twig line 1

Open in your IDE?
  1. {% extends '@Core/DCSite/core-dc-template.html.twig' %}
  2. {% block head %}
  3.     <meta name="facebook-domain-verification" content="6qp4qshbjbkjcu9651lin5hcmu19mz" />
  4.     {% block seo %}
  5.         <title>{{ seoMeta.title ?? 'pages.seo.title'|trans({},'dc_ford') }}</title>
  6.         <meta name="description" content="{{ seoMeta.description ?? 'pages.seo.description'|trans({'%phone%': dealer.phone},'dc_ford') }}"/>
  7.     {% endblock seo %}
  8.     <meta name="google-site-verification" content="7lIOhuv-ROj_IvvkuSDv0vM9rKCywDn4f0MnO_r0OFk" />
  9.     <meta name="google-site-verification" content="q-ZRYblGxqh7-UU_G4JVT9KkfkbWGX37UZQshwRuJC4" />
  10.     <link rel="icon" href="{{ asset('bundles/dcsite/img/ford/favicon/favicon.ico') }}" type="image/x-icon" />
  11.     <link rel="apple-touch-icon" sizes="60x60" href="{{ asset('bundles/dcsite/img/ford/favicon/apple-touch-icon.png') }}">
  12.     <link rel="icon" type="image/png" sizes="32x32" href="{{ asset('bundles/dcsite/img/ford/favicon/favicon-32x32.png') }}">
  13.     <link rel="icon" type="image/png" sizes="16x16" href="{{ asset('bundles/dcsite/img/ford/favicon/favicon-16x16.png') }}">
  14.     <link rel="manifest" href="{{ asset('bundles/dcsite/img/ford/favicon/site.webmanifest') }}">
  15.     <link rel="mask-icon" href="{{ asset('bundles/dcsite/img/ford/favicon/safari-pinned-tab.svg') }}" color="#5bbad5">
  16.     <meta name="msapplication-TileColor" content="#ffffff">
  17.     <meta name="theme-color" content="#ffffff">
  18.     {% include '@DcSite/Ford/preloader-css.html.twig' %}
  19.     {% if INCLUDE_ANALYTICS %}
  20.     {% include '@DcSite/Modules/google-tag-manager.html.twig' with { 'domain': dealer.domain, 'gtmIdCode': 'GTM-MFLHHN7' } %}
  21.     {% endif %}
  22. {% endblock head %}
  23. {% block body %}
  24.     {% if INCLUDE_ANALYTICS %}
  25. <!-- Google Tag Manager (noscript) -->
  26. <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MFLHHN7"
  27.                   height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  28. <!-- End Google Tag Manager (noscript) -->
  29.     {% endif %}
  30.     <section class="header_top-info">
  31.     <div class="container">
  32.         <div class="row">
  33.             <div class="col-lg-10 col-xl-8 ">
  34.                 <a href="{{ path('ford_contacts') }}" class="header_top-info-link">
  35.                     <svg width="14" height="14" viewbox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
  36.                         <path d="M12.25 5.83337C12.25 9.91671 7 13.4167 7 13.4167C7 13.4167 1.75 9.91671 1.75 5.83337C1.75 4.44099 2.30312 3.10563 3.28769 2.12106C4.27226 1.1365 5.60761 0.583374 7 0.583374C8.39239 0.583374 9.72774 1.1365 10.7123 2.12106C11.6969 3.10563 12.25 4.44099 12.25 5.83337Z" stroke="#3C3947" stroke-linecap="round" stroke-linejoin="round"/>
  37.                         <path d="M7 7.58337C7.9665 7.58337 8.75 6.79987 8.75 5.83337C8.75 4.86688 7.9665 4.08337 7 4.08337C6.0335 4.08337 5.25 4.86688 5.25 5.83337C5.25 6.79987 6.0335 7.58337 7 7.58337Z" stroke="#3C3947" stroke-linecap="round" stroke-linejoin="round"/>
  38.                     </svg>
  39.                     {{ 'pages.base.short_adress'|trans({},'dc_ford') }}
  40.                 </a>
  41.                 <a href="tel:{{ dealer.phone }}" class="header_top-info-link">
  42.                     <svg width="14" height="14" viewbox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
  43.                         <path d="M12.8338 9.87002V11.62C12.8345 11.7825 12.8012 11.9433 12.7361 12.0921C12.671 12.241 12.5756 12.3746 12.4559 12.4844C12.3362 12.5943 12.1948 12.6779 12.0409 12.7299C11.887 12.782 11.724 12.8013 11.5622 12.7867C9.76714 12.5916 8.04291 11.9783 6.52799 10.9958C5.11856 10.1002 3.9236 8.90528 3.02799 7.49585C2.04214 5.97405 1.42863 4.24143 1.23716 2.43835C1.22258 2.27704 1.24175 2.11446 1.29345 1.96096C1.34515 1.80747 1.42824 1.66642 1.53744 1.54679C1.64663 1.42717 1.77954 1.3316 1.9277 1.26615C2.07586 1.20071 2.23602 1.16684 2.39799 1.16668H4.14799C4.43109 1.1639 4.70554 1.26415 4.92018 1.44874C5.13483 1.63334 5.27504 1.88969 5.31466 2.17002C5.38852 2.73005 5.5255 3.27994 5.72299 3.80918C5.80147 4.01797 5.81846 4.24488 5.77194 4.46303C5.72541 4.68118 5.61733 4.88141 5.46049 5.04002L4.71966 5.78085C5.55006 7.24125 6.75926 8.45044 8.21966 9.28085L8.96049 8.54002C9.11909 8.38318 9.31933 8.27509 9.53748 8.22857C9.75562 8.18205 9.98253 8.19903 10.1913 8.27752C10.7206 8.475 11.2705 8.61199 11.8305 8.68585C12.1139 8.72582 12.3726 8.86855 12.5576 9.08689C12.7426 9.30522 12.8409 9.58393 12.8338 9.87002Z" stroke="#3C3947" stroke-linecap="round" stroke-linejoin="round"/>
  44.                     </svg>
  45.                     {{ dealer.phone }}
  46.                 </a>
  47.             </div>
  48.             <div class="col-lg-2 col-xl-4 text-right basket_row">
  49.                 <div class="site_btn-enter" id="enterBtn">
  50.                     {% if app.user %}
  51.                         <a class="site_btn-enter-btn --loggedin" target="_blank" href="{{ path('my_profile_dashboard') }}" rel="nofollow">
  52.                             <svg width="16" height="16" viewbox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
  53.                                 <path d="M13.3334 14V12.6667C13.3334 11.9594 13.0525 11.2811 12.5524 10.781C12.0523 10.281 11.374 10 10.6667 10H5.33341C4.62617 10 3.94789 10.281 3.4478 10.781C2.9477 11.2811 2.66675 11.9594 2.66675 12.6667V14" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  54.                                 <path d="M7.99992 7.33333C9.47268 7.33333 10.6666 6.13943 10.6666 4.66667C10.6666 3.19391 9.47268 2 7.99992 2C6.52716 2 5.33325 3.19391 5.33325 4.66667C5.33325 6.13943 6.52716 7.33333 7.99992 7.33333Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  55.                             </svg>
  56.                             <span class="header_icon-title">{{ app.user.name }}</span>
  57.                         </a>
  58.                     {% else %}
  59.                         <a class="site_btn-enter-btn" href="{{ path('my_login_page') }}?referer={{ app.request.uri }}" rel="nofollow">
  60.                             <svg width="16" height="16" viewbox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
  61.                                 <path d="M13.3334 14V12.6667C13.3334 11.9594 13.0525 11.2811 12.5524 10.781C12.0523 10.281 11.374 10 10.6667 10H5.33341C4.62617 10 3.94789 10.281 3.4478 10.781C2.9477 11.2811 2.66675 11.9594 2.66675 12.6667V14" stroke="#2E6785" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  62.                                 <path d="M7.99992 7.33333C9.47268 7.33333 10.6666 6.13943 10.6666 4.66667C10.6666 3.19391 9.47268 2 7.99992 2C6.52716 2 5.33325 3.19391 5.33325 4.66667C5.33325 6.13943 6.52716 7.33333 7.99992 7.33333Z" stroke="#2E6785" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  63.                             </svg>
  64.                             <span class="header_icon-title">{{ 'header.login'|trans({}, 'portal_base') }}</span>
  65.                         </a>
  66.                     {% endif %}
  67.                 </div>
  68.                 {% include '@DcSiteBundle/Modules/basket/basket-menu.html.twig' with {href : path('ford_basket') } %}
  69.             </div>
  70.         </div>
  71.     </div>
  72. </section>
  73. <header class="header" id="header">
  74.     <div class="container">
  75.         <div class="row align-items-center">
  76.             <div class="align-items-center brand d-flex mt-0" style="margin-right: 25px;">
  77.                 <a href="{{ path('ford_homepage') }}">
  78.                     <img src="{{ asset('bundles/dcsite/img/ford/logo/ford_logo-new.png') }}" itemprop="logo" alt="{{ dealer }} logo" title="ViDi Cray Motors">
  79.                 </a>
  80.             </div>
  81.             <nav class="menu" id="menu" itemscope="" itemtype="http://www.schema.org/SiteNavigationElement" role="navigation">
  82.                 <div class="d-none d-lg-flex menu-top">
  83.                     <section class="widget qtranxs_widget">
  84.                         {% block locales %}
  85.                             {% if app.request.getLocale() == 'ru' %}
  86.                                 <ul class="language-chooser language-chooser-text qtranxs_language_chooser">
  87.                                     {% for locale in allowed_locales %}
  88.                                         {% if locale != app.request.getLocale() %}
  89.                                             <li class="lang-ua active">
  90.                                                 <a href="{{ absolute_url( path( app.request.attributes.get('_route'), app.request.attributes.get('_route_params')|merge({'_locale': locale}) ) ) }}" hreflang="{% if locale == 'ua' %}uk{% else %}{{ locale }}{% endif %}" title="{{ ('site.locale.'~locale)|trans({},'dc_base') }} ({{ locale }})" class="qtranxs_text qtranxs_text_ua">
  91.                                                     <span>
  92.                                                         {{ ('site.locale.'~locale)|trans({},'dc_base') }}</span>
  93.                                                 </a>
  94.                                             </li>
  95.                                         {% else %}
  96.                                             <li class="lang-ua">
  97.                                                 <a hreflang="{% if locale == 'ua' %}uk{% else %}{{ locale }}{% endif %}" title="{{ ('site.locale.'~locale)|trans({},'dc_base') }} ({{ locale }})" class="qtranxs_text qtranxs_text_ua">
  98.                                                     <span>{{ ('site.locale.'~locale)|trans({},'dc_base') }}</span>
  99.                                                 </a>
  100.                                             </li>
  101.                                         {% endif %}
  102.                                     {% endfor %}
  103.                                 </ul>
  104.                             {% endif %}
  105.                             <div class="qtranxs_widget_end"></div>
  106.                         {% endblock locales %}
  107.                     </section>
  108.                     <div class="header-magnets-contacts d-none d-md-flex">
  109.                         <a href="{{ path('ford_service_consultation') }}" class="btn btn-link btn-219">
  110.                             <span class="icomoon icomoon-wheel"></span>
  111.                             {{ 'pages.base.test_drive'|trans({},'dc_ford') }}
  112.                         </a>
  113.                         <a href="{{ path('ford_service_to') }}" class="btn btn-link btn-244">
  114.                             <span class="icomoon icomoon-spanner"></span>
  115.                             {{ 'pages.base.service_form'|trans({}, 'dc_ford') }}
  116.                         </a>
  117.                         <div class="contacts-phone">
  118.                             <span class="contacts-ico-phone"></span>
  119.                             <div class="phone-toggle">
  120.                                 <button type="button" class="btn btn-default dropdown-toggle header-phone-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  121.                                     {{ 'pages.about_us.contacts.contact_tel'|trans({},'dc_ford') }}<span class="caret"></span>
  122.                                 </button>
  123.                                 <ul class="dropdown-menu">
  124.                                     <li class="head-service-phone">
  125.                                         <span class="title-phone">{{ 'pages.departments.dept_1'|trans({},'dc_base') }}</span>
  126.                                         <a href="tel:{{ dealer.phone }}">
  127.                                             <span class="contacts-ico-phone"></span>
  128.                                             {{ dealer.phone }}
  129.                                         </a>
  130.                                     </li>
  131.                                     <li>
  132.                                         <span class="title-phone">{{ 'pages.departments.dept_2'|trans({},'dc_base') }}</span>
  133.                                         <a href="tel:{{ dealer.phoneService }}">
  134.                                             <span class="contacts-ico-phone"></span>
  135.                                             {{ dealer.phoneService }}
  136.                                         </a>
  137.                                     </li>
  138.                                 </ul>
  139.                             </div>
  140.                         </div>
  141.                     </div>
  142.                 </div>
  143.                 <hr class="d-none d-lg-block">
  144.                 <div class="navbar navbar-expand-lg menu-bottom">
  145.                     <div class="d-flex d-lg-none w-100 justify-content-end align-items-center navbar-light btn-mob-wrapp">
  146.                         <section class="widget qtranxs_widget">
  147.                             <ul class="language-chooser language-chooser-text qtranxs_language_chooser">
  148.                                 <li>
  149.                                     {% include '@DcSiteBundle/Modules/basket/basket-menu.html.twig' with {href : path('ford_basket') } %}</li>
  150.                             </ul>
  151.                             <div class="qtranxs_widget_end"></div>
  152.                         </section>
  153.                         <a class="navbar-toggler" href="{{ path('ford_list_cars') }}">
  154.                             <span class="sr-only">Toggle navigation</span>
  155.                             <span class="icon-car"></span>
  156.                         </a>
  157.                         <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar-collapse-header" aria-controls="navbar-collapse-header" aria-expanded="false" data-parent="#menu">
  158.                             <span class="sr-only">Toggle navigation</span>
  159.                             <span class="icon-bar"></span>
  160.                             <span class="icon-bar"></span>
  161.                             <span class="icon-bar"></span>
  162.                         </button>
  163.                     </div>
  164.                     {% include '@DcSiteBundle/Ford/menu.html.twig' %}
  165.                 </div>
  166.             </nav>
  167.             <div class="brand vidi-logo d-none d-md-block mt-0" style="margin-left: 25px;">
  168.                 <a href="{{ path('ford_homepage') }}">
  169.                     <img src="{{ asset('bundles/dcsite/img/logo-vidi-big.jpg') }}" alt="">
  170.                 </a>
  171.             </div>
  172.         </div>
  173.     </div>
  174. </header>
  175. {% block content %}
  176. {% endblock content %}
  177. {% include '@DcSite/Ford/footer-new.html.twig' %}
  178. {% include '@DcSite/Modules/feedback-popup.html.twig' %}
  179. {% include '@DcSite/Modules/order-call-popup.html.twig' %}
  180. {% include '@DcSite/Modules/sps-popup.html.twig' %}
  181. {% include '@DcSite/Ford/leads.html.twig' %}
  182. {% include '@DcSiteBundle/Modules/callback/widget.html.twig' %}
  183. {#{% include '@My/Modules/cookies-warning.html.twig' %}#}
  184.     <div id="vidi-pulse" style="display: none;">
  185.         <div class="pulse1"></div>
  186.         <a class="pulse-icon" href="tel:+380442390997"></a>
  187.     </div>
  188. {% block css %}
  189. {% endblock %}
  190. {% endblock body %}
  191. {% block coreBottomJs %}
  192.     <script>
  193.         app.onCustomEvent('coreCssLoaded', function () {
  194.             $('#preloader').hide();
  195.         });
  196.         app.onCustomEvent('appInit', function () {
  197.             app.loadCss('{{ asset('/bundles/dcsite/css/ford/base.css') }}');
  198.             app.loadCss('{{ asset('/bundles/dcsite/css/ford/modules/color.css') }}');
  199.             app.loadCss('{{ asset('/bundles/dcsite/css/ford/modules/btn.css') }}');
  200.             app.loadCss('{{ asset('/bundles/dcsite/css/ford/form.css') }}');
  201.             app.loadCss('{{ asset('/bundles/dcsite/css/ford/lead-magnets.css') }}');
  202.             app.loadCss('{{ asset('/bundles/dcsite/css/modules/callback/timer-call.css') }}');
  203.             {#app.loadJs('{{ asset('bundles/my/js/cookies-warning.js') }}', function () {#}
  204.             {#    initCookiesWarning({#}
  205.             {#        policyUrl: "{{ privacyUrl }}",#}
  206.             {#    });#}
  207.             {#});#}
  208.             app.loadJs('/bundles/dcsite/js/modules/callback/callback-vue.js', function () {
  209.                 callbackRequest({
  210.                     initUrl: '{{ path('callback_widget_init') }}',
  211.                     createUrl: '{{ path('callback_widget_create_request') }}',
  212.                     getStateUrl: '{{ path('callback_widget_get_state') }}',
  213.                     privacyUrl: '{{ privacyUrl }}',
  214.                     callBackMinute: '{{ 'callback_widget.title'|trans({}, 'dc_base')|raw }}',
  215.                     callBackWorkingHours: '{{ 'callback_widget.working_hours'|trans({}, 'dc_base') }}',
  216.                 });
  217.             });
  218.             $('.questions-frame-wrapper .show-btn').on('click',function () {
  219.                 $('.questions-frame-wrapper').toggleClass('open');
  220.                 $(this).toggleClass('active');
  221.             });
  222.             $('.questions-frame-close').on('click',function (e) {
  223.                 e.preventDefault();
  224.                 e.stopPropagation();
  225.                 $('.questions-frame-wrapper').removeClass('open');
  226.                 $('.questions-frame-wrapper .show-btn').removeClass('active');
  227.             });
  228.             $('.js-scroll-link').click(function(e) {
  229.                 e.preventDefault();
  230.                 var blockId = $(this).attr('href');
  231.                 $('html, body').stop().animate({
  232.                     scrollTop: $(blockId).offset().top-50
  233.                 }, 750);
  234.             });
  235.         });
  236.     </script>
  237.     <script type="application/ld+json">
  238.         {
  239.             "@context": "https://schema.org/",
  240.             "@type": "WebSite",
  241.             "name": "{{ dealer.brand.name }}",
  242.             "url": "{{ app.request.uri }}"
  243.         }
  244.     </script>
  245.     <script type="application/ld+json">
  246. {
  247.   "@context": "https://schema.org",
  248.   "@type": "AutoDealer",
  249.   "name": "{{ dealer.brand.name }}",
  250.   "image": "{{ asset('bundles/dcsite/img/ford/dealer-logo.png') }}",
  251.   "url": "{{ app.request.uri }}",
  252.   "telephone": "{{ dealer.phone }}",
  253.   "address": {
  254.     "@type": "PostalAddress",
  255.     "streetAddress": " {{ dealer.addressUa }}",
  256.     "addressLocality": "Київ"
  257.   },
  258.   "sameAs": [
  259.     "{{ dealer.linkFacebook }}",
  260.     "{{ dealer.linkInstagram }}",
  261.     "{{ dealer.linkYoutube }}"
  262.   ]
  263. }
  264.     </script>
  265.     <script type="application/ld+json">
  266.         {
  267.             "@context": "https://schema.org",
  268.             "@type": "Organization",
  269.             "url": "https://ford-vidi.com.ua/ua/",
  270.             "logo": "{{ absolute_url(asset('bundles/dcsite/img/ford/dealer-logo.png')) }}"
  271.         }
  272.     </script>
  273.     {% include '@DcSite/Modules/suChat/index.html.twig' with {'chatCode' : '1edb7f96-937a-47e3-8996-b74c62fad4d5'} %}
  274.     {% block pageJS %}
  275.     {% endblock pageJS %}
  276. {% endblock coreBottomJs %}