src/DcSiteBundle/Resources/views/Unicommerce/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.     {% if app.environment == 'dev' %}
  5.         <meta name="robots" content="noindex, nofollow">
  6.         <meta name="google-site-verification" content="FWJj2KVU8sswZ4I7nJAffMG7Tj8xgkCr3XX-FgBmAus" />
  7.     {% endif %}
  8.     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  9.     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1.0"/>
  10.     <meta http-equiv=X-UA-Compatible content="IE=edge">
  11.     <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
  12.     <link rel="icon" type="image/png" sizes="32x32" href="/icon-32x32.png">
  13.     <link rel="icon" type="image/png" sizes="16x16" href="/icon-16x16.png">
  14.     <link rel="stylesheet" type="text/css"
  15.           href="/dist/{{ MODE }}/dcsite/unicommerce/css/unicommerce.css?{{ VERSION }}">
  16.     {% block canonical %}
  17.         {% include '@DcSite/Modules/canonical.html.twig' %}
  18.     {% endblock canonical %}
  19.     {% block head %}
  20.     {% endblock head %}
  21.     {% block ogtagStatic %}
  22.         {% include '@DcSite/Modules/og-tag.html.twig' %}
  23.     {% endblock ogtagStatic %}
  24.     {% block ogtagDynamicImage %}
  25.         {% 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 %}
  26.     {% endblock ogtagDynamicImage %}
  27.     {% block ogtagDynamic %}
  28.     {% endblock ogtagDynamic %}
  29.     <!-- Google Tag Manager (noscript) -->
  30.     <noscript>
  31.         <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TMFTS4NC"
  32.                 height="0" width="0" style="display:none;visibility:hidden"></iframe>
  33.     </noscript>
  34.     <!-- End Google Tag Manager (noscript) -->
  35.     <meta name="google-site-verification" content="871PbzYe1ar560vaq-1G7PmMIQqv3_lkYSUyJBbsF9M" />
  36.     {% include '@DcSite/Modules/pixel-code.html.twig' %}
  37.     {% include '@DcSite/Modules/google-tag-manager.html.twig' with { 'domain': 'specteh-vidi.com.ua', 'gtmIdCode': 'GTM-TMFTS4NC' } %}
  38. </head>
  39. <body>
  40.     <!-- Google Tag Manager (noscript) -->
  41.     <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TMFTS4NC"
  42.                       height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  43.     <!-- End Google Tag Manager (noscript) -->
  44.     {% block socialPreview %}{% endblock socialPreview %}
  45.     <div class="wrapper">
  46.         {% include '@DcSite/Unicommerce/header.html.twig' %}
  47.         <main class="main">
  48.             {% block content %}
  49.             {% endblock content %}
  50.         </main>
  51.         {% include '@DcSite/Unicommerce/footer.html.twig' %}
  52.         {% include '@DcSite/Toyota_Borispol/Modules/lifting-up.html.twig' %}
  53.         {% include '@DcSite/Modules/callback/widget.html.twig' %}
  54.         {% include '@DcSiteBundle/Modules/preloader.html.twig' %}
  55.         {% include '@My/Modules/auth.html.twig' %}
  56.         {% include '@DcSite/Modules/vidiCoreMessageWrapper.html.twig' %}
  57.         {% include '@DcSiteBundle/Modules/sps-popup.html.twig' %}
  58.     {#    {% include '@My/Modules/cookies-warning.html.twig' %}#}
  59.     </div>
  60.     <iframe style="display: none" src="{{ path('my_ios_cross_domain_auth') }}"></iframe>
  61.     {% set urlResult = backLoginUrl is defined and backLoginUrl ? backLoginUrl : path('my_about_car') %}
  62. <script src="/dist/{{ MODE }}/dcsite/unicommerce/js/unicommerce.js?{{ VERSION }}"></script>
  63. <script>
  64.     window.dataLayer = window.dataLayer || [];
  65.     {% if app.user %}
  66.     window.dataLayer.push({'user_id': {{ app.user.id }}});
  67.     {% endif %}
  68.     window.app = {
  69.         options: {
  70.             version: '{{ VERSION }}',
  71.             locale: '{{ app.request.locale }}'
  72.         },
  73.         user: {
  74.             id: {% if app.user %} {{ app.user.id }} {% else %}null{% endif %},
  75.             name: {% if app.user %} '{{ app.user.fullName }}' {% else %}null{% endif %}
  76.         }
  77.     };
  78.     $(() => {
  79.         {#window.core.modules.initCookies({#}
  80.         {#    policyUrl: "{{ path('unicommerce_privacy-policy') }}"#}
  81.         {#});#}
  82.         window.core.modules.initCallbacks({
  83.             initUrl: "{{ path('callback_widget_init') }}",
  84.             createUrl: "{{ path('callback_widget_create_request') }}",
  85.             getStateUrl: "{{ path('callback_widget_get_state') }}",
  86.             callBackMinute: "{{ 'callback_widget.title'|trans({}, 'dc_base')|raw }}",
  87.             callBackWorkingHours: "{{ 'callback_widget.working_hours'|trans({}, 'dc_base') }}"
  88.         });
  89.         window.core.modules.initAuthRegistration({
  90.             locale: "{{ app.request.locale }}",
  91.             fbAuthUrl: "{{ path('my_auth_fb_user') }}",
  92.             googleAuthUrl: "{{ path('my_auth_google_user') }}",
  93.             registerConfoirmUrl: "{{ path('my_register_confirm') }}",
  94.             profileUrl: '{{ urlResult }}',
  95.             getCodeUrl: "{{ path('my_register_get_code') }}",
  96.             resendCodeUrl: "{{ path('my_register_resend_reg_code') }}",
  97.             loginCodeUrl: "{{ path('core_register_code_login') }}",
  98.             messageRegisterSuccessTitle: "{{ 'app.message.register.success_title'|trans({},'core') }}",
  99.             messageRegisterSuccessText: "{{ 'app.message.register.success_text'|trans({},'core') }}",
  100.             messageLoginErrorPassword: "{{ 'app.message.login.error_password'|trans({}, 'core') }}",
  101.             messageLoginErrorEmail: "{{ 'app.message.login.error_email'|trans({}, 'core') }}"
  102.         });
  103.         window.core.modules.initAuthChangePhone({
  104.             locale: "{{ app.request.locale }}",
  105.             messageLoginErrorEmail: "{{ 'app.message.login.error_email'|trans({}, 'core') }}",
  106.             getCodeChangePhoneUrl: "{{ path('my_change_phone_get_code') }}",
  107.             setNewPhoneUrl: "{{ path('my_change_phone_set_phone') }}",
  108.             loginCodeUrl: "{{ path('core_register_code_login') }}",
  109.             confirmNewPhoneUrl: "{{ path('my_confirm_new_phone') }}",
  110.             profileUrl: "{{ path('my_about_car') }}"
  111.         });
  112.         window.app.message = window.core.modules.initMessage({
  113.             templateUrl: "{{ path('core_message_load_template') }}",
  114.             text: {
  115.                 btnCancel: "{{ 'app.message.cancel'|trans({},'core') }}"
  116.             }
  117.         });
  118.         window.app.http = window.core.modules.initHttp({
  119.             requestErrorText: "{{ 'app.http.server_error'|trans({},'core') }}"
  120.         });
  121.         window.app.preLoader = window.core.modules.initPreloader({
  122.             templateUrl: "{{ path('core_preloader_load_template') }}"
  123.         });
  124.         window.app.leadForms = window.core.modules.initLeadForms({
  125.             captchaUrl: '{{ path('base_capthcha_init') }}',
  126.             text: {
  127.                 successTitle: '{{ 'modules.sps_form_title'|trans({}, 'dc_base') }}',
  128.                 successText: '{{ 'modules.sps_form_subtitle'|trans({}, 'dc_base') }}',
  129.                 buttonText: '{{ 'pages.base.ok'|trans({}, 'dc_base') }}'
  130.             },
  131.             href: {
  132.                 buttonSuccess: null,
  133.             },
  134.         });
  135.         window.app.Favorit = window.core.modules.initFavorite({
  136.             addUrl: "{{ path('portal_add_favl') }}",
  137.             removeUrl: "{{ path('portal_remove_favl') }}"
  138.         })
  139.         window.Track = window.core.modules.initTrack()
  140.     });
  141. </script>
  142. {% block script %}
  143. {% endblock script %}
  144. </body>
  145. </html>