src/DcSiteBundle/Resources/views/Subaru/template.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="{% if app.request.locale == 'ua' %}uk-ua{% else %}ru-ua{% endif %}">
  3. <head>
  4.     <link rel="preconnect" href="https://www.googletagmanager.com">
  5.     <link rel="alternate" type="application/rss+xml" title="{{ dealer.name }}" href="https://{{ dealer.domain }}/rss/"/>
  6.     {% if app.environment == 'dev' %}
  7.         <meta name="robots" content="noindex, nofollow">
  8.         <meta name="google-site-verification" content="FWJj2KVU8sswZ4I7nJAffMG7Tj8xgkCr3XX-FgBmAus" />
  9.     {% endif %}
  10.     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  11.     <meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no,user-scalable=0">
  12.     <meta http-equiv=X-UA-Compatible content="IE=edge">
  13.     <meta name="facebook-domain-verification" content="7g2yvfpqbfekkocacvoixfr0z3vs8x">
  14.     <meta name="google-site-verification" content="varBzPHi83bl6aF1vpltwGqtqJJSSn3FlN87C7RvIkQ">
  15.     <meta name="google-site-verification" content="qEE0CVWvg3OHsfU44eaHube6jxfkrAGbC1BxokH3f0g">
  16.     <link rel="icon" href="{{ asset('bundles/dcsite/img/subaru/favicon.png') }}" type="image/x-icon">
  17.     <link rel="stylesheet" type="text/css" href="/dist/{{ MODE }}/dcsite/subaru/css/subaru.css?{{ VERSION }}">
  18.     {% block canonical %}
  19.     {% include '@DcSite/Modules/canonical.html.twig' %}
  20.     {% endblock canonical %}
  21.     {% block head %}
  22.     {% endblock head %}
  23.     {% block ogtagStatic %}
  24.         {% include '@DcSite/Modules/og-tag.html.twig' %}
  25.     {% endblock ogtagStatic %}
  26.     {% block ogtagDynamicImage %}
  27.         {% if dealer.brand %}<meta property="og:image" content="{{ app.request.httpHost }}{{ sonata_path(dealer.brand.logo, 'reference') }}">{% else %}<meta property="og:image" content="/bundles/portal/img/front/logo.jpg" />{% endif %}
  28.     {% endblock ogtagDynamicImage %}
  29.     {% block ogtagDynamic %}
  30.     {% endblock ogtagDynamic %}
  31.     {% if INCLUDE_ANALYTICS %}
  32.         <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M5VPCWL" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  33.         <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NSP62K6" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  34.         <noscript><img alt="facebook" height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=1180312335690752&ev=PageView&noscript=1"></noscript>
  35.         <script type="text/javascript">
  36.             (function (d,s,u,e,p) {
  37.               p=d.getElementsByTagName(s)[0],e=d.createElement(s),e.async=1,e.src=u,p.parentNode.insertBefore(e, p);
  38.             })(document, 'script', 'https://script.ringostat.com/v4/3b/3b079687397824d6fa570dd71f4dd254f984ce9b.js');
  39.             var pw = function() {if (typeof(ringostatAnalytics) === "undefined") {setTimeout(pw,100);} else {ringostatAnalytics.sendHit('pageview');}};
  40.             pw();
  41.         </script>
  42.         {% include '@DcSite/Modules/pixel-code.html.twig' %}
  43.         {% include '@DcSite/Modules/google-tag-manager.html.twig' with { 'domain': dealer.domain, 'gtmIdCode': 'GTM-M5VPCWL' } %}
  44.     {% endif %}
  45. </head>
  46. <body>
  47. {% if INCLUDE_ANALYTICS %}
  48.     <!-- Google Tag Manager (noscript) -->
  49.     <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M5VPCWL" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  50.     <!-- End Google Tag Manager (noscript) -->
  51. {% endif %}
  52. {% block socialPreview %}
  53. {% endblock socialPreview %}
  54. <div class="wrapper">
  55.     <div class="container-fluid h-100" >
  56.         <div class="row h-100 flex-column flex-nowrap">
  57.             {% include '@DcSite/Subaru/header-webpack.html.twig' %}
  58.             <main class="main">
  59.                 {% block content %}
  60.                 {% endblock content %}
  61.             </main>
  62.             {% include '@DcSite/Subaru/footer-webpack.html.twig' %}
  63.             {% include '@DcSite/Subaru/leads.html.twig' %}
  64.             {% include '@DcSite/Modules/order-call-popup.html.twig' %}
  65.             {% include '@DcSite/Modules/callback/widget.html.twig' %}
  66.             {% include '@DcSite/Modules/sps-popup.html.twig' %}
  67.             {% include '@DcSite/Modules/vidiCoreMessageWrapper.html.twig' %}
  68.             {% include '@DcSite/Modules/vidiPulse.html.twig' with {'phone': '+380445030330'} %}
  69.             {% include '@My/Modules/auth.html.twig' %}
  70. {#            {% include '@My/Modules/cookies-warning.html.twig' %}#}
  71.             <button class="scroll-top"></button>
  72.         </div>
  73.     </div>
  74. </div>
  75. <iframe style="display: none" src="{{ path('my_ios_cross_domain_auth') }}"></iframe>
  76. {% set urlResult = backLoginUrl is defined and backLoginUrl ? backLoginUrl : path('my_about_car') %}
  77. <script>
  78.     window.INCLUDE_ANALYTICS = {{ INCLUDE_ANALYTICS ? 'true' : 'false' }};
  79. </script>
  80. <script src="/dist/{{ MODE }}/dcsite/subaru/js/subaru.js?{{ VERSION }}"></script>
  81. <script src="/dist/{{ MODE }}/core/js/modules.js?{{ VERSION }}"></script>
  82. <script>
  83.     window.dataLayer = window.dataLayer || [];
  84.     window.app = {
  85.         options: {
  86.             version: '{{ VERSION }}',
  87.             locale: '{{ app.request.locale }}',
  88.             refererAuth: '{{ path('my_login_page') }}?referer={{ app.request.uri }}'
  89.         },
  90.         user: {
  91.             id: {% if app.user %} {{ app.user.id }} {% else %}null{% endif %},
  92.             name: {% if app.user %} '{{ app.user.fullName }}' {% else %}null{% endif %}
  93.         }
  94.     };
  95.     $(() => {
  96.         window.app.message = core.modules.initMessage({
  97.             templateUrl: "{{ path('core_message_load_template') }}",
  98.             text: {
  99.                 btnCancel: "{{ 'app.message.cancel'|trans({},'core') }}"
  100.             }
  101.         });
  102.         window.app.http = core.modules.initHttp({
  103.             requestErrorText: "{{ 'app.http.server_error'|trans({},'core') }}"
  104.         });
  105.         window.app.preLoader = core.modules.initPreloader({
  106.             templateUrl: "{{ path('core_preloader_load_template') }}"
  107.         });
  108.         window.app.leadForms = core.modules.initLeadForms({
  109.             captchaUrl: '{{ path('base_capthcha_init') }}',
  110.             text: {
  111.                 successTitle: '{{ 'modules.sps_form_title'|trans({}, 'dc_base') }}',
  112.                 successText: '{{ 'modules.sps_form_subtitle'|trans({}, 'dc_base') }}',
  113.                 buttonText: '{{ 'pages.base.ok'|trans({}, 'dc_base') }}'
  114.             },
  115.             href: {
  116.                 buttonSuccess: null,
  117.             },
  118.         });
  119.         window.app.Favorit = core.modules.initFavorite({
  120.             addUrl: "{{ path('portal_add_favl') }}",
  121.             removeUrl: "{{ path('portal_remove_favl') }}"
  122.         });
  123.         window.Track = core.modules.initTrack();
  124.         {#core.modules.initCookies({#}
  125.         {#    policyUrl: "{{ privacyUrl }}"#}
  126.         {#});#}
  127.         core.modules.initCallbacks({
  128.             initUrl: '{{ path('callback_widget_init') }}',
  129.             createUrl: '{{ path('callback_widget_create_request') }}',
  130.             getStateUrl: '{{ path('callback_widget_get_state') }}',
  131.             privacyUrl: '{{ privacyUrl }}',
  132.             callBackMinute: '{{ 'callback_widget.title'|trans({}, 'dc_base')|raw }}',
  133.             callBackWorkingHours: '{{ 'callback_widget.working_hours'|trans({}, 'dc_base') }}'
  134.         });
  135.     });
  136. </script>
  137. <script>
  138.     const observer = new MutationObserver(() => {
  139.         const backdrops = document.querySelectorAll('.modal-backdrop');
  140.         if (backdrops.length > 1) {
  141.             [...backdrops].slice(0, -1).forEach(el => el.remove());
  142.         }
  143.     });
  144.     observer.observe(document.body, { childList: true, subtree: true });
  145. </script>
  146. {% if app.user %}
  147. <script type="text/javascript">
  148.     window.dataLayer.push({'user_id': {{ app.user.id }}});
  149. </script>
  150. {% endif %}
  151. {% include '@DcSite/Modules/suChat/index.html.twig' with {'chatCode' : '76bbf8a9-e994-4004-8b1e-d622f4354df9'} %}
  152. <script type="application/ld+json">
  153.     {
  154.     "@context": "https://schema.org/",
  155.     "@type": "WebSite",
  156.     "name": "{{ dealer.brand.name }}",
  157.     "url": "{{ app.request.uri }}"
  158.     }
  159. </script>
  160. <script type="application/ld+json">
  161.     {
  162.     "@context": "https://schema.org",
  163.     "@type": "AutoDealer",
  164.     "name": "{{ dealer.brand.name }}",
  165.     "image": "{{ absolute_url(asset('bundles/dcsite/img/subaru/logo.png')) }}",
  166.     "url": "{{ app.request.uri }}",
  167.     "telephone": "{{ dealer.phone }}",
  168.     "address": {
  169.     "@type": "PostalAddress",
  170.     "streetAddress": " {{ dealer.addressUa }}",
  171.     "addressLocality": "Київ"
  172.     },
  173.     "sameAs": [
  174.     "{{ dealer.linkFacebook }}",
  175.     "{{ dealer.linkInstagram }}",
  176.     "{{ dealer.linkYoutube }}"
  177.     ]
  178.     }
  179. </script>
  180. <script type="application/ld+json">
  181.     {
  182.     "@context": "https://schema.org",
  183.     "@type": "Organization",
  184.     "url": "{{ app.request.uri }}",
  185.     "logo": "{{ absolute_url(asset('bundles/dcsite/img/subaru/logo.png')) }}"
  186.     }
  187. </script>
  188. {% block script %}
  189. {% endblock script %}
  190. </body>
  191. </html>