src/DcSiteBundle/Resources/views/Opel/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.     <link rel="preconnect" href="https://fonts.googleapis.com">
  14.     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  15.     <link rel="apple-touch-icon" sizes="180x180" href="/bundles/dcsite/img/opel/favicon/apple-touch-icon.png">
  16.     <link rel="icon" type="image/png" sizes="32x32" href="/bundles/dcsite/img/opel/favicon/favicon-32x32.png">
  17.     <link rel="icon" type="image/png" sizes="16x16" href="/bundles/dcsite/img/opel/favicon/favicon-16x16.png">
  18.     <link rel="manifest" href="/bundles/dcsite/img/opel/favicon/site.webmanifest">
  19.     <link rel="mask-icon" href="/bundles/dcsite/img/opel/favicon/safari-pinned-tab.svg" color="#000000">
  20.     <meta name="msapplication-TileColor" content="#f7ff14">
  21.     <meta name="theme-color" content="#ffffff">
  22.     <meta name="google-site-verification" content="ezMlWNH_2JJl3gZJXHcTgPmyCjXKkkE6VLSuZj_Dm5g">
  23.     <meta name="google-site-verification" content="PSTryPa94y72QcllqQsU7Yh9GP0XyWdd0kzxHBxdasg">
  24.     <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap" rel="stylesheet">
  25.     <link rel="stylesheet" type="text/css" href="/dist/{{ MODE }}/dcsite/opel/css/opel.css?{{ VERSION }}">
  26.     {% block canonical %}
  27.     {% include '@DcSite/Modules/canonical.html.twig' %}
  28.     {% endblock canonical %}
  29.     {% block head %}
  30.     {% endblock head %}
  31.     {% block ogtagStatic %}
  32.         {% include '@DcSite/Modules/og-tag.html.twig' %}
  33.     {% endblock ogtagStatic %}
  34.     {% block ogtagDynamicImage %}
  35.         {% 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 %}
  36.     {% endblock ogtagDynamicImage %}
  37.     {% block ogtagDynamic %}
  38.     {% endblock ogtagDynamic %}
  39.     {% if INCLUDE_ANALYTICS %}
  40.         <noscript><img alt="facebook" height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=588810969075902&ev=PageView&noscript=1"/></noscript>
  41.         <script type="text/javascript">
  42.             (function (d,s,u,e,p) {
  43.               p=d.getElementsByTagName(s)[0],e=d.createElement(s),e.async=1,e.src=u,p.parentNode.insertBefore(e, p);
  44.             })(document, 'script', 'https://script.ringostat.com/v4/eb/ebe4aba3f4effa68c49ea2b0e089d2bd0082dfd1.js');
  45.             var pw = function() {if (typeof(ringostatAnalytics) === "undefined") {setTimeout(pw,100);} else {ringostatAnalytics.sendHit('pageview');}};
  46.             pw();
  47.         </script>
  48.         {% include '@DcSite/Modules/pixel-code.html.twig' %}
  49.         {% include '@DcSite/Modules/google-tag-manager.html.twig' with { 'domain': dealer.domain, 'gtmIdCode': 'GTM-NLF4MK6' } %}
  50.     {% endif %}
  51. </head>
  52. <body>
  53. {% if INCLUDE_ANALYTICS %}
  54. <!-- Google Tag Manager (noscript) -->
  55. <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NLF4MK6"
  56.                   height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  57. <!-- End Google Tag Manager (noscript) -->
  58. {% endif %}
  59. {% block socialPreview %}
  60. {% endblock socialPreview %}
  61. <div class="wrapper">
  62.     <div class="container-fluid h-100">
  63.         <div class="row flex-column flex-nowrap page-wrapper">
  64.             {% include '@DcSite/Opel/header.html.twig' %}
  65.             <main class="main">
  66.                 {% block content %}
  67.                 {% endblock content %}
  68.             </main>
  69.             {% include '@DcSite/Opel/leads.html.twig' %}
  70.             {% include '@DcSite/Opel/footer.html.twig' %}
  71.             {% include '@DcSite/Modules/order-call-popup.html.twig' %}
  72.             {% include '@DcSite/Modules/callback/widget.html.twig' %}
  73.             {% include '@DcSite/Modules/sps-popup.html.twig' %}
  74.             {% include '@DcSite/Modules/vidiCoreMessageWrapper.html.twig' %}
  75.             {% include '@My/Modules/auth.html.twig' %}
  76. {#            {% include '@My/Modules/cookies-warning.html.twig' %}#}
  77.         </div>
  78.     </div>
  79. </div>
  80. <iframe style="display: none" src="{{ path('my_ios_cross_domain_auth') }}"></iframe>
  81. {% set urlResult = backLoginUrl is defined and backLoginUrl ? backLoginUrl : path('my_about_car') %}
  82. <script>
  83.     window.INCLUDE_ANALYTICS = {{ INCLUDE_ANALYTICS ? 'true' : 'false' }};
  84. </script>
  85. <script src="/dist/{{ MODE }}/dcsite/opel/js/opel.js?{{ VERSION }}"></script>
  86. <script>
  87.     window.dataLayer = window.dataLayer || [];
  88.     window.app = {
  89.         options: {
  90.             version: '{{ VERSION }}',
  91.             locale: '{{ app.request.locale }}'
  92.         },
  93.         user: {
  94.             id: {% if app.user %} {{ app.user.id }} {% else %}null{% endif %},
  95.             name: {% if app.user %} '{{ app.user.fullName }}' {% else %}null{% endif %}
  96.         }
  97.     };
  98.     $(() => {
  99.         window.app.message = core.modules.initMessage({
  100.             templateUrl: "{{ path('core_message_load_template') }}",
  101.             text: {
  102.                 btnCancel: "{{ 'app.message.cancel'|trans({},'core') }}"
  103.             }
  104.         });
  105.         window.app.http = core.modules.initHttp({
  106.             requestErrorText: "{{ 'app.http.server_error'|trans({},'core') }}"
  107.         });
  108.         window.app.preLoader = core.modules.initPreloader({
  109.             templateUrl: "{{ path('core_preloader_load_template') }}"
  110.         });
  111.         window.app.leadForms = core.modules.initLeadForms({
  112.             captchaUrl: '{{ path('base_capthcha_init') }}',
  113.             text: {
  114.                 successTitle: '{{ 'modules.sps_form_title'|trans({}, 'dc_base') }}',
  115.                 successText: '{{ 'modules.sps_form_subtitle'|trans({}, 'dc_base') }}',
  116.                 buttonText: '{{ 'pages.base.ok'|trans({}, 'dc_base') }}'
  117.             },
  118.             href: {
  119.                 buttonSuccess: null,
  120.             },
  121.         });
  122.         window.app.Favorit = core.modules.initFavorite({
  123.             addUrl: "{{ path('portal_add_favl') }}",
  124.             removeUrl: "{{ path('portal_remove_favl') }}"
  125.         });
  126.         window.Track = core.modules.initTrack();
  127.         {#core.modules.initCookies({#}
  128.         {#    policyUrl: "{{ privacyUrl }}"#}
  129.         {#});#}
  130.         core.modules.initCallbacks({
  131.             initUrl: '{{ path('callback_widget_init') }}',
  132.             createUrl: '{{ path('callback_widget_create_request') }}',
  133.             getStateUrl: '{{ path('callback_widget_get_state') }}',
  134.             privacyUrl: '{{ privacyUrl }}',
  135.             callBackMinute: '{{ 'callback_widget.title'|trans({}, 'dc_base')|raw }}',
  136.             callBackWorkingHours: '{{ 'callback_widget.working_hours'|trans({}, 'dc_base') }}'
  137.         });
  138.     });
  139. </script>
  140. {% if app.user %}
  141.     <script type="text/javascript">
  142.         window.dataLayer.push({'user_id': {{ app.user.id }}});
  143.     </script>
  144. {% endif %}
  145. {% include '@DcSite/Modules/suChat/index.html.twig' with {'chatCode' : '4f471e02-fb62-4e41-b9cd-bb82f5e1cc91'} %}
  146. <script type="application/ld+json">
  147.     {
  148.     "@context": "https://schema.org/",
  149.     "@type": "WebSite",
  150.     "name": "{{ dealer.brand.name }}",
  151.     "url": "{{ app.request.uri }}"
  152.     }
  153. </script>
  154. <script type="application/ld+json">
  155.     {
  156.     "@context": "https://schema.org",
  157.     "@type": "AutoDealer",
  158.     "name": "{{ dealer.brand.name }}",
  159.     "image": "//{{ app.request.httpHost }}{{ sonata_path(dealer.brand.logo, 'reference') }}",
  160.     "url": "{{ app.request.uri }}",
  161.     "telephone": "{{ dealer.phone }}",
  162.     "address": {
  163.     "@type": "PostalAddress",
  164.     "streetAddress": " {{ dealer.addressUa }}",
  165.     "addressLocality": "Київ"
  166.     },
  167.     "sameAs": [
  168.     "{{ dealer.linkFacebook }}",
  169.     "{{ dealer.linkInstagram }}",
  170.     "{{ dealer.linkYoutube }}"
  171.     ]
  172.     }
  173. </script>
  174. <script type="application/ld+json">
  175.     {
  176.     "@context": "https://schema.org",
  177.     "@type": "Organization",
  178.     "url": "{{ app.request.uri }}",
  179.     "logo": "{{ absolute_url(asset('bundles/dcsite/img/opel/logo.png')) }}"
  180.     }
  181. </script>
  182. {% block script %}
  183. {% endblock script %}
  184. </body>
  185. </html>