src/DcSiteBundle/Resources/views/Peugeot/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="dls15eedkukpp4pon7ihd9qjillrjt">
  14.     <meta name="google-site-verification" content="P1pE9DRwQgxNdwPh3yYNqTstD43jb05n6ELTVdnYo_8">
  15.     <meta name="google-site-verification" content="Vu80BJNRKlMpkc58IJHMXO5qIz7jagRprt2OGA1t9XM">
  16.     <link rel="icon" href="{{ asset('bundles/dcsite/img/peugeot/icon/favicon.png') }}" type="image/x-icon">
  17.     <link rel="stylesheet" type="text/css" href="/dist/{{ MODE }}/dcsite/peugeot/css/peugeot.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><img alt="facebook" height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=138883367349937&ev=PageView&noscript=1"/></noscript>
  33.         <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KB5QHFB" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  34.         <script type="text/javascript">
  35.             (function (d,s,u,e,p) {
  36.               p=d.getElementsByTagName(s)[0],e=d.createElement(s),e.async=1,e.src=u,p.parentNode.insertBefore(e, p);
  37.             })(document, 'script', 'https://script.ringostat.com/v4/e7/e70e9e88c640783b14c5d9ca9c5a3c2cf5db41ee.js');
  38.             var pw = function() {if (typeof(ringostatAnalytics) === "undefined") {setTimeout(pw,100);} else {ringostatAnalytics.sendHit('pageview');}};
  39.             pw();
  40.         </script>
  41.         {% include '@DcSite/Modules/pixel-code.html.twig' %}
  42.         {% include '@DcSite/Modules/google-tag-manager.html.twig' with { 'domain': dealer.domain, 'gtmIdCode': 'GTM-KB5QHFB' } %}
  43.     {% endif %}
  44. </head>
  45. <body>
  46. {% if INCLUDE_ANALYTICS %}
  47. <!-- Google Tag Manager (noscript) -->
  48. <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KB5QHFB"
  49.                   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/Peugeot/header-new.html.twig' %}
  58.             <main class="main">
  59.                 {% block content %}
  60.                 {% endblock content %}
  61.             </main>
  62.             {% include '@DcSite/Peugeot/leads.html.twig' %}
  63.             {% include '@DcSite/Peugeot/footer-new.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': '+380445913000'} %}
  69.             {% include '@My/Modules/auth.html.twig' %}
  70. {#            {% include '@My/Modules/cookies-warning.html.twig' %}#}
  71.         </div>
  72.     </div>
  73. </div>
  74. <iframe style="display: none" src="{{ path('my_ios_cross_domain_auth') }}"></iframe>
  75. {% set urlResult = backLoginUrl is defined and backLoginUrl ? backLoginUrl : path('my_about_car') %}
  76. <script>
  77.     window.INCLUDE_ANALYTICS = {{ INCLUDE_ANALYTICS ? 'true' : 'false' }};
  78. </script>
  79. <script src="/dist/{{ MODE }}/dcsite/peugeot/js/peugeot.js?{{ VERSION }}"></script>
  80. <script src="/dist/{{ MODE }}/core/js/modules.js?{{ VERSION }}"></script>
  81. <script>
  82.     window.dataLayer = window.dataLayer || [];
  83.     window.app = {
  84.         options: {
  85.             version: '{{ VERSION }}',
  86.             locale: '{{ app.request.locale }}'
  87.         },
  88.         user: {
  89.             id: {% if app.user %} {{ app.user.id }} {% else %}null{% endif %},
  90.             name: {% if app.user %} '{{ app.user.fullName }}' {% else %}null{% endif %}
  91.         }
  92.     };
  93.     $(() => {
  94.         window.app.message = core.modules.initMessage({
  95.             templateUrl: "{{ path('core_message_load_template') }}",
  96.             text: {
  97.                 btnCancel: "{{ 'app.message.cancel'|trans({},'core') }}"
  98.             }
  99.         });
  100.         window.app.http = core.modules.initHttp({
  101.             requestErrorText: "{{ 'app.http.server_error'|trans({},'core') }}"
  102.         });
  103.         window.app.preLoader = core.modules.initPreloader({
  104.             templateUrl: "{{ path('core_preloader_load_template') }}"
  105.         });
  106.         window.app.leadForms = core.modules.initLeadForms({
  107.             captchaUrl: '{{ path('base_capthcha_init') }}',
  108.             text: {
  109.                 successTitle: '{{ 'modules.sps_form_title'|trans({}, 'dc_base') }}',
  110.                 successText: '{{ 'modules.sps_form_subtitle'|trans({}, 'dc_base') }}',
  111.                 buttonText: '{{ 'pages.base.ok'|trans({}, 'dc_base') }}'
  112.             },
  113.             href: {
  114.                 buttonSuccess: null,
  115.             },
  116.         });
  117.         window.app.Favorit = core.modules.initFavorite({
  118.             addUrl: "{{ path('portal_add_favl') }}",
  119.             removeUrl: "{{ path('portal_remove_favl') }}"
  120.         });
  121.         window.Track = core.modules.initTrack();
  122.         {#core.modules.initCookies({#}
  123.         {#    policyUrl: "{{ privacyUrl }}"#}
  124.         {#});#}
  125.         core.modules.initCallbacks({
  126.             initUrl: '{{ path('callback_widget_init') }}',
  127.             createUrl: '{{ path('callback_widget_create_request') }}',
  128.             getStateUrl: '{{ path('callback_widget_get_state') }}',
  129.             privacyUrl: '{{ privacyUrl }}',
  130.             callBackMinute: '{{ 'callback_widget.title'|trans({}, 'dc_base')|raw }}',
  131.             callBackWorkingHours: '{{ 'callback_widget.working_hours'|trans({}, 'dc_base') }}'
  132.         });
  133.         dcsite.peugeot.init();
  134.         dcsite.peugeot.initMenu({
  135.             initUrl: "{{ path('peugeot_init_menu') }}"
  136.         });
  137.     });
  138. </script>
  139. <script>
  140.     const observer = new MutationObserver(() => {
  141.         const backdrops = document.querySelectorAll('.modal-backdrop');
  142.         if (backdrops.length > 1) {
  143.             [...backdrops].slice(0, -1).forEach(el => el.remove());
  144.         }
  145.     });
  146.     observer.observe(document.body, { childList: true, subtree: true });
  147. </script>
  148. {% if app.user %}
  149.     <script type="text/javascript">
  150.         window.dataLayer.push({'user_id': {{ app.user.id }}});
  151.     </script>
  152. {% endif %}
  153. {% include '@DcSite/Modules/suChat/index.html.twig' with {'chatCode' : 'cb3f965d-a25c-45a9-aa59-761e93e5a622'} %}
  154. <script type="application/ld+json">
  155.     {
  156.     "@context": "https://schema.org/",
  157.     "@type": "WebSite",
  158.     "name": "{{ dealer.brand.name }}",
  159.     "url": "{{ app.request.uri }}"
  160.     }
  161. </script>
  162. <script type="application/ld+json">
  163.     {
  164.     "@context": "https://schema.org",
  165.     "@type": "AutoDealer",
  166.     "name": "{{ dealer.brand.name }}",
  167.     "image": "//{{ app.request.httpHost }}{{ sonata_path(dealer.brand.logo, 'reference') }}",
  168.     "url": "{{ app.request.uri }}",
  169.     "telephone": "{{ dealer.phone }}",
  170.     "address": {
  171.     "@type": "PostalAddress",
  172.     "streetAddress": " {{ dealer.addressUa }}",
  173.     "addressLocality": "Київ"
  174.     },
  175.     "sameAs": [
  176.     "{{ dealer.linkFacebook }}",
  177.     "{{ dealer.linkInstagram }}",
  178.     "{{ dealer.linkYoutube }}"
  179.     ]
  180.     }
  181. </script>
  182. <script type="application/ld+json">
  183.     {
  184.     "@context": "https://schema.org",
  185.     "@type": "Organization",
  186.     "url": "{{ app.request.uri }}",
  187.     "logo": "{{ absolute_url(asset('bundles/dcsite/img/peugeot/peugeot-logo.png')) }}"
  188.     }
  189. </script>
  190. {% block script %}
  191. {% endblock script %}
  192. </body>
  193. </html>