src/DcSiteBundle/Resources/views/Suzuki/base.html.twig line 1

Open in your IDE?
  1. {% extends '@Core/DCSite/core-dc-template.html.twig' %}
  2. {% block head %}
  3.     <meta name="facebook-domain-verification" content="p0hoq41os7dpggz2826dy1vpgxpvey" />
  4.     <link rel="icon" href="{{ asset('bundles/dcsite/img/suzuki/favicon.ico') }}" type="image/x-icon" />
  5.     {% block seo %}
  6.     {% endblock seo %}
  7.     <meta name="google-site-verification" content="_GAHCI6uLSMaQ77ZtFNpQECn5UGLhV_r7wBnRjfavq0" />
  8.     <meta name="google-site-verification" content="neAqM24Bf2cd7ouC68fjEQDiEjwm65MlNjKuh4UZaMU" />
  9.     {% include '@DcSite/Suzuki/preloader-css.html.twig' %}
  10.     {% if INCLUDE_ANALYTICS %}
  11.         {% include '@DcSite/Modules/google-tag-manager.html.twig' with { 'domain': dealer.domain, 'gtmIdCode': 'GTM-5DR5JV5' } %}
  12.     {% endif %}
  13.     <script type="text/javascript">
  14.         (function (d,s,u,e,p) {
  15.           p=d.getElementsByTagName(s)[0],e=d.createElement(s),e.async=1,e.src=u,p.parentNode.insertBefore(e, p);
  16.         })(document, 'script', 'https://script.ringostat.com/v4/42/4234e6b6d20b1be1e743cf20ad1e021990d13c32.js');
  17.         var pw = function() {if (typeof(ringostatAnalytics) === "undefined") {setTimeout(pw,100);} else {ringostatAnalytics.sendHit('pageview');}};
  18.         pw();
  19.     </script>
  20. {% endblock head %}
  21. {% block body %}
  22.     {% if INCLUDE_ANALYTICS %}
  23.     <!-- Google Tag Manager (noscript) -->
  24.     <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5DR5JV5"
  25.                       height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  26.     <!-- End Google Tag Manager (noscript) -->
  27.     {% endif %}
  28.     <div class="container-fluid h-100">
  29.         <div class="row h-100 flex-column flex-nowrap">
  30.             {% include '@DcSite/Suzuki/header.html.twig' %}
  31.             <main>
  32.                 {% block content %}
  33.                 {% endblock content %}
  34.             </main>
  35.             {% include '@DcSite/Suzuki/footer-new.html.twig' %}
  36.             {% include '@DcSite/Suzuki/leads.html.twig' %}
  37.             {% include '@DcSiteBundle/Modules/callback/widget.html.twig' %}
  38.             {% include '@DcSite/Modules/sps-popup.html.twig' %}
  39. {#            {% include '@My/Modules/cookies-warning.html.twig' %}#}
  40.         </div>
  41.     </div>
  42.     <div id="vidi-pulse" style="display: none;">
  43.         <div class="pulse1"></div>
  44.         <a class="pulse-icon" href="tel:+380442247700"></a>
  45.     </div>
  46.     {% block css %}
  47.     {% endblock %}
  48. {% endblock body %}
  49. {% block coreBottomJs %}
  50.     {% include '@DcSite/Modules/suChat/index.html.twig' with {'chatCode' : '6f308fc1-59b9-4f68-a500-5149decc0a58'} %}
  51.     <script>
  52.         app.onCustomEvent('coreCssLoaded', function () {
  53.             $('#preloader').hide();
  54.         });
  55.         app.onCustomEvent('appInit', function () {
  56.             app.loadCss('{{ asset('/bundles/dcsite/css/suzuki/style.css') }}');
  57.             app.loadCss('{{ asset('/bundles/dcsite/css/suzuki/modules/color.css') }}');
  58.             app.loadCss('{{ asset('/bundles/dcsite/css/suzuki/modules/btn.css') }}');
  59.             app.loadCss('{{ asset('/bundles/dcsite/css/suzuki/modules/lead-magnets.css') }}');
  60.             app.loadCss('{{ asset('/bundles/dcsite/css/modules/callback/timer-call.css') }}');
  61.             $('.dropdown-menu').on('click', function (e) {
  62.                 if ($(this).hasClass('dropdown-menu-open')) {
  63.                     e.stopPropagation();
  64.                 }
  65.             });
  66.             $('.navbar-toggler').on('click', function () {
  67.                 $(this).toggleClass('collapsed');
  68.                 $('#mainNav').toggleClass('collapse');
  69.             });
  70.             $('.dropdown-menu').on('click', function (e) {
  71.                 if ($(this).hasClass('dropdown-menu-open')) {
  72.                     e.stopPropagation();
  73.                 }
  74.             });
  75.             app.loadJs('/bundles/dcsite/js/modules/callback/callback-vue.js', function () {
  76.                 callbackRequest({
  77.                     initUrl: '{{ path('callback_widget_init') }}',
  78.                     createUrl: '{{ path('callback_widget_create_request') }}',
  79.                     getStateUrl: '{{ path('callback_widget_get_state') }}',
  80.                     privacyUrl: '{{ privacyUrl }}',
  81.                     callBackMinute: '{{ 'callback_widget.title'|trans({}, 'dc_base')|raw }}',
  82.                     callBackWorkingHours: '{{ 'callback_widget.working_hours'|trans({}, 'dc_base') }}',
  83.                 });
  84.             });
  85.             {#app.loadJs('{{ asset('bundles/my/js/cookies-warning.js') }}', function () {#}
  86.             {#    initCookiesWarning({#}
  87.             {#        policyUrl: "{{ privacyUrl }}",#}
  88.             {#    });#}
  89.             {#});#}
  90.             (function() {
  91.                 "use strict";
  92.                 var toggles = document.querySelectorAll(".c-hamburger");
  93.                 for (var i = toggles.length - 1; i >= 0; i--) {
  94.                     var toggle = toggles[i];
  95.                     toggleHandler(toggle);
  96.                 };
  97.                 function toggleHandler(toggle) {
  98.                     toggle.addEventListener( "click", function(e) {
  99.                         e.preventDefault();
  100.                         (this.classList.contains("is-active") === true) ? this.classList.remove("is-active") : this.classList.add("is-active");
  101.                     });
  102.                 }
  103.             })();
  104.             $('.js-scroll-link').click(function(e) {
  105.                 e.preventDefault();
  106.                 var blockId = $(this).attr('href');
  107.                 $('html, body').stop().animate({
  108.                     scrollTop: $(blockId).offset().top-50
  109.                 }, 750);
  110.             });
  111.         });
  112.     </script>
  113.     <script type="application/ld+json">
  114.         {
  115.             "@context": "https://schema.org/",
  116.             "@type": "WebSite",
  117.             "name": "{{ dealer.brand.name }}",
  118.             "url": "{{ app.request.uri }}"
  119.         }
  120.     </script>
  121.     <script type="application/ld+json">
  122. {
  123.   "@context": "https://schema.org",
  124.   "@type": "AutoDealer",
  125.   "name": "{{ dealer.brand.name }}",
  126.   "image": "//{{ app.request.httpHost }}{{ sonata_path(dealer.brand.logo, 'reference') }}",
  127.   "url": "{{ app.request.uri }}",
  128.   "telephone": "{{ dealer.phone }}",
  129.   "address": {
  130.     "@type": "PostalAddress",
  131.     "streetAddress": " {{ dealer.addressUa }}",
  132.     "addressLocality": "Київ"
  133.   },
  134.   "sameAs": [
  135.     "{{ dealer.linkFacebook }}",
  136.     "{{ dealer.linkInstagram }}",
  137.     "{{ dealer.linkYoutube }}"
  138.   ]
  139. }
  140.     </script>
  141.     <script type="application/ld+json">
  142.         {
  143.             "@context": "https://schema.org",
  144.             "@type": "Organization",
  145.             "url": "{{ app.request.uri }}",
  146.             "logo": "{{ absolute_url(asset('bundles/dcsite/img/suzuki/logo-suzuki.jpg')) }}"
  147.         }
  148.     </script>
  149.     {% block pageJS %}
  150.     {% endblock pageJS %}
  151. {% endblock coreBottomJs %}