src/DcSiteBundle/Resources/views/Honda/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="44quea1h9ba7yodf487tjul4dtksul">
  14.     <meta name="google-site-verification" content="8ii796vVbEt2prGqA1zDAXjZqKv_EYO6sy-hAFMmFBs">
  15.     <meta name="google-site-verification" content="ItTYkkrQrerWTZ7rmgrezP8XRg5hdHEKQcmoH5q0En0">
  16.     <link rel="icon" href="{{ asset('bundles/dcsite/img/honda/favicon.ico') }}" type="image/x-icon">
  17.     <link rel="stylesheet" type="text/css" href="/dist/{{ MODE }}/dcsite/honda/css/honda.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=897469847734109&ev=PageView&noscript=1"/></noscript>
  33.         <!-- Ringostat -->
  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/01/0124d96001ceeef86105e1fbb1296d5202fe3daf.js');
  38.             var pw = function() {if (typeof(ringostatAnalytics) === "undefined") {setTimeout(pw,100);} else {ringostatAnalytics.sendHit('pageview');}};
  39.             pw();
  40.         </script>
  41.         <!-- End Ringostat -->
  42.         {% include '@DcSite/Modules/pixel-code.html.twig' %}
  43.         {% include '@DcSite/Modules/google-tag-manager.html.twig' with { 'domain': dealer.domain, 'gtmIdCode': 'GTM-PGCH7JP' } %}
  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-PGCH7JP"
  50.                       height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  51.     <!-- End Google Tag Manager (noscript) -->
  52. {% endif %}
  53. {% block socialPreview %}
  54. {% endblock socialPreview %}
  55. <div class="wrapper">
  56.     <div class="container-fluid h-100">
  57.         <div class="row h-100 flex-column flex-nowrap">
  58.             {% include '@DcSite/Honda/header-webpack.html.twig' %}
  59.             <main class="main">
  60.                 {% block content %}
  61.                 {% endblock content %}
  62.             </main>
  63.             {% include '@DcSite/Honda/lead-magnets.html.twig' %}
  64.             {% include '@DcSite/Modules/feedback-popup.html.twig' %}
  65.             {% include '@DcSite/Modules/order-call-popup.html.twig' %}
  66.             {% include '@DcSite/Modules/callback/widget.html.twig' %}
  67.             {% include '@DcSite/Modules/sps-popup.html.twig' %}
  68.             {% include '@DcSite/Modules/vidiCoreMessageWrapper.html.twig' %}
  69.             {% include '@DcSite/Modules/vidiPulse.html.twig' with {'phone': dealer.phone} %}
  70.             {% include '@My/Modules/auth.html.twig' %}
  71. {#            {% include '@My/Modules/cookies-warning.html.twig' %}#}
  72.         </div>
  73.     </div>
  74.       {% include '@DcSite/Honda/footer-new.html.twig' %}
  75. </div>
  76. <iframe style="display: none" src="{{ path('my_ios_cross_domain_auth') }}"></iframe>
  77. {% set urlResult = backLoginUrl is defined and backLoginUrl ? backLoginUrl : path('my_about_car') %}
  78. <script>
  79.     window.INCLUDE_ANALYTICS = {{ INCLUDE_ANALYTICS ? 'true' : 'false' }};
  80. </script>
  81. <script src="/dist/{{ MODE }}/dcsite/honda/js/honda.js?{{ VERSION }}"></script>
  82. <script src="/dist/{{ MODE }}/core/js/modules.js?{{ VERSION }}"></script>
  83. <script>
  84.     window.dataLayer = window.dataLayer || [];
  85.     window.app = {
  86.         options: {
  87.             version: '{{ VERSION }}',
  88.             locale: '{{ app.request.locale }}'
  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.         {#core.modules.initCookies({#}
  97.         {#    policyUrl: "{{ privacyUrl }}"#}
  98.         {#});#}
  99.         core.modules.initCallbacks({
  100.             initUrl: '{{ path('callback_widget_init') }}',
  101.             createUrl: '{{ path('callback_widget_create_request') }}',
  102.             getStateUrl: '{{ path('callback_widget_get_state') }}',
  103.             privacyUrl: '{{ privacyUrl }}',
  104.             callBackMinute: '{{ 'callback_widget.title'|trans({}, 'dc_base')|raw }}',
  105.             callBackWorkingHours: '{{ 'callback_widget.working_hours'|trans({}, 'dc_base') }}'
  106.         });
  107.         window.app.message = core.modules.initMessage({
  108.             templateUrl: "{{ path('core_message_load_template') }}",
  109.             text: {
  110.                 btnCancel: "{{ 'app.message.cancel'|trans({},'core') }}"
  111.             }
  112.         });
  113.         window.app.http = core.modules.initHttp({
  114.             requestErrorText: "{{ 'app.http.server_error'|trans({},'core') }}"
  115.         });
  116.         window.app.preLoader = core.modules.initPreloader({
  117.             templateUrl: "{{ path('core_preloader_load_template') }}"
  118.         });
  119.         window.app.leadForms = core.modules.initLeadForms({
  120.             captchaUrl: '{{ path('base_capthcha_init') }}',
  121.             text: {
  122.                 successTitle: '{{ 'modules.sps_form_title'|trans({}, 'dc_base') }}',
  123.                 successText: '{{ 'modules.sps_form_subtitle'|trans({}, 'dc_base') }}',
  124.                 buttonText: '{{ 'pages.base.ok'|trans({}, 'dc_base') }}'
  125.             },
  126.             href: {
  127.                 buttonSuccess: null,
  128.             },
  129.         });
  130.         window.app.Favorit = core.modules.initFavorite({
  131.             addUrl: "{{ path('portal_add_favl') }}",
  132.             removeUrl: "{{ path('portal_remove_favl') }}"
  133.         });
  134.         window.Track = core.modules.initTrack();
  135.         dcsite.honda.init();
  136.         dcsite.honda.initMenu({
  137.             initUrl: '{{ path('honda_menu') }}'
  138.         });
  139.     });
  140. </script>
  141. <script>
  142.     const observer = new MutationObserver(() => {
  143.         const backdrops = document.querySelectorAll('.modal-backdrop');
  144.         if (backdrops.length > 1) {
  145.             [...backdrops].slice(0, -1).forEach(el => el.remove());
  146.         }
  147.     });
  148.     observer.observe(document.body, { childList: true, subtree: true });
  149. </script>
  150. {% if app.user %}
  151.     <script type="text/javascript">
  152.         window.dataLayer.push({'user_id': {{ app.user.id }}});
  153.     </script>
  154. {% endif %}
  155. {% include '@DcSite/Modules/suChat/index.html.twig' with {'chatCode' : 'c94c24f5-47e6-4021-9f60-fbe14803ae11'} %}
  156. <script type="application/ld+json">
  157.     {
  158.     "@context": "https://schema.org/",
  159.     "@type": "WebSite",
  160.     "name": "{{ dealer.brand.name }}",
  161.     "url": "{{ app.request.uri }}"
  162.     }
  163. </script>
  164. <script type="application/ld+json">
  165.     {
  166.     "@context": "https://schema.org",
  167.     "@type": "AutoDealer",
  168.     "name": "{{ dealer.brand.name }}",
  169.     "image": "{{ absolute_url(asset('bundles/dcsite/img/honda/logo.png')) }}",
  170.     "url": "{{ app.request.uri }}",
  171.     "telephone": "{{ dealer.phone }}",
  172.     "address": {
  173.     "@type": "PostalAddress",
  174.     "streetAddress": " {{ dealer.addressUa }}",
  175.     "addressLocality": "Київ"
  176.     },
  177.     "sameAs": [
  178.     "{{ dealer.linkFacebook }}",
  179.     "{{ dealer.linkInstagram }}",
  180.     "{{ dealer.linkYoutube }}"
  181.     ]
  182.     }
  183. </script>
  184. <script type="application/ld+json">
  185.     {
  186.     "@context": "https://schema.org",
  187.     "@type": "Organization",
  188.     "url": "https://honda-kiev.com.ua/ua/",
  189.     "logo": "{{ absolute_url(asset('bundles/dcsite/img/honda/logo.png')) }}"
  190.     }
  191. </script>
  192. {% block script %}
  193. {% endblock script %}
  194. </body>
  195. </html>