src/DcSiteBundle/Resources/views/Peugeot/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="dls15eedkukpp4pon7ihd9qjillrjt" />
  4.     <meta name="google-site-verification" content="P1pE9DRwQgxNdwPh3yYNqTstD43jb05n6ELTVdnYo_8"/>
  5.     <meta name="google-site-verification" content="Vu80BJNRKlMpkc58IJHMXO5qIz7jagRprt2OGA1t9XM" />
  6.     <link rel="icon" href="{{ asset('bundles/dcsite/img/peugeot/icon/favicon.png') }}" type="image/x-icon" />
  7.     {% block seo %}
  8.         <title>{{ 'seo.main.title'|trans({}, 'dc_peugeot') }}</title>
  9.         <meta name="description" content="{{ 'seo.main.desc'|trans({}, 'dc_peugeot') }}" />
  10.         <meta name="keywords" content="" />
  11.     {% endblock seo %}
  12.     {% include '@DcSite/Peugeot/preloader-css.html.twig' %}
  13.     {% if INCLUDE_ANALYTICS %}
  14.         {% include '@DcSite/Modules/google-tag-manager.html.twig' with { 'domain': dealer.domain, 'gtmIdCode': 'GTM-KB5QHFB' } %}
  15.     {% endif %}
  16.     <script type="text/javascript">
  17.         (function (d,s,u,e,p) {
  18.           p=d.getElementsByTagName(s)[0],e=d.createElement(s),e.async=1,e.src=u,p.parentNode.insertBefore(e, p);
  19.         })(document, 'script', 'https://script.ringostat.com/v4/e7/e70e9e88c640783b14c5d9ca9c5a3c2cf5db41ee.js');
  20.         var pw = function() {if (typeof(ringostatAnalytics) === "undefined") {setTimeout(pw,100);} else {ringostatAnalytics.sendHit('pageview');}};
  21.         pw();
  22.     </script>
  23. {% endblock head %}
  24. {% block body %}
  25.     {% if INCLUDE_ANALYTICS %}
  26.     <!-- Google Tag Manager (noscript) -->
  27.     <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KB5QHFB"
  28.                       height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  29.     <!-- End Google Tag Manager (noscript) -->
  30.     {% endif %}
  31.     <div class="container-fluid h-100">
  32.         <div class="row h-100 flex-column flex-nowrap">
  33.             <main>
  34.                 {% include '@DcSite/Peugeot/header.html.twig' %}
  35.                 {% block content %}
  36.                 {% endblock content %}
  37.             </main>
  38.             {% include '@DcSite/Peugeot/leads.html.twig' %}
  39.             {% include '@DcSite/Peugeot/footer-new.html.twig' %}
  40.             {% include '@DcSite/Modules/feedback-popup.html.twig' %}
  41.             {% include '@DcSite/Modules/order-call-popup.html.twig' %}
  42.             {% include '@DcSiteBundle/Modules/callback/widget.html.twig' %}
  43.             {% include '@DcSite/Modules/sps-popup.html.twig' %}
  44. {#            {% include '@My/Modules/cookies-warning.html.twig' %}#}
  45.         </div>
  46.     </div>
  47.     <div id="vidi-pulse" style="display: none;">
  48.         <div class="pulse1"></div>
  49.         <a class="pulse-icon" href="tel:+380445913000"></a>
  50.     </div>
  51.     {% block css %}
  52.     {% endblock %}
  53. {% endblock body %}
  54. {% block coreBottomJs %}
  55.     {% include '@DcSite/Modules/suChat/index.html.twig' with {'chatCode' : 'cb3f965d-a25c-45a9-aa59-761e93e5a622'} %}
  56.     <script>
  57.         app.onCustomEvent('coreCssLoaded', function () {
  58.             $('#preloader').hide();
  59.         });
  60.         app.onCustomEvent('appInit', function () {
  61.             app.loadCss('{{ asset('/bundles/dcsite/css/peugeot/style.css') }}');
  62.             app.loadCss('{{ asset('/bundles/dcsite/css/peugeot/modules/color.css') }}');
  63.             app.loadCss('{{ asset('/bundles/dcsite/css/peugeot/modules/btn.css') }}');
  64.             app.loadCss('{{ asset('/bundles/dcsite/css/peugeot/modules/lead-magnets.css') }}');
  65.             app.loadCss('{{ asset('/bundles/dcsite/css/modules/callback/timer-call.css') }}');
  66.             app.loadJs('{{ asset('bundles/dcsite/js/peugeot/peugeot-menu.js') }}',function () {
  67.                 initMenu({
  68.                     initUrl: "{{ path('peugeot_init_menu') }}",
  69.                 });
  70.             });
  71.             app.loadJs('/bundles/dcsite/js/modules/callback/callback-vue.js', function () {
  72.                 callbackRequest({
  73.                     initUrl: '{{ path('callback_widget_init') }}',
  74.                     createUrl: '{{ path('callback_widget_create_request') }}',
  75.                     getStateUrl: '{{ path('callback_widget_get_state') }}',
  76.                     privacyUrl: '{{ privacyUrl }}',
  77.                     callBackMinute: '{{ 'callback_widget.title'|trans({}, 'dc_base')|raw }}',
  78.                     callBackWorkingHours: '{{ 'callback_widget.working_hours'|trans({}, 'dc_base') }}',
  79.                 });
  80.             });
  81.             $('.dropdown-menu').on('click', function(e) {
  82.                 if($(this).hasClass('dropdown-menu-open')) {
  83.                     e.stopPropagation();
  84.                 }
  85.             });
  86.             $('.mob-menu-item').on('click', function(e){
  87.                 var target = $(this).attr('href');
  88.                 $(target).toggleClass('show');
  89.                 e.preventDefault();
  90.                 e.stopPropagation();
  91.             });
  92.             $('.navbar-toggler').on('click', function(){
  93.                 $(this).toggleClass('collapsed');
  94.                 $('#mainNav').toggleClass('collapse');
  95.             });
  96.             {#app.loadJs('{{ asset('bundles/my/js/cookies-warning.js') }}', function () {#}
  97.             {#    initCookiesWarning({#}
  98.             {#        policyUrl: "{{ privacyUrl }}",#}
  99.             {#    });#}
  100.             {#});#}
  101.             var readmore = function(target) {
  102.                 $("#aside-seo-content .seo-btn").on("click", function() {
  103.                     var $this = $(this);
  104.                     if ($this.hasClass("more")) {
  105.                         $this
  106.                             .removeClass("more")
  107.                             .addClass("less")
  108.                             .text("{{ 'main.seo_close'|trans({}, 'dc_peugeot') }}");
  109.                         target.collapse("show");
  110.                     } else {
  111.                         $this
  112.                             .removeClass("less")
  113.                             .addClass("more")
  114.                             .text("{{ 'main.details'|trans({}, 'dc_peugeot') }}");
  115.                         target.collapse("hide");
  116.                     }
  117.                 });
  118.             };
  119.             var target = $("#aside-seo-content p:nth-child(n+3)");
  120.             readmore(target);
  121.             $('.js-scroll-link').click(function(e) {
  122.                 e.preventDefault();
  123.                 var blockId = $(this).attr('href');
  124.                 $('html, body').stop().animate({
  125.                     scrollTop: $(blockId).offset().top-50
  126.                 }, 750);
  127.             });
  128.         });
  129.     </script>
  130.     <script type="application/ld+json">
  131.         {
  132.             "@context": "https://schema.org/",
  133.             "@type": "WebSite",
  134.             "name": "{{ dealer.brand.name }}",
  135.             "url": "{{ app.request.uri }}"
  136.         }
  137.     </script>
  138.     <script type="application/ld+json">
  139. {
  140.   "@context": "https://schema.org",
  141.   "@type": "AutoDealer",
  142.   "name": "{{ dealer.brand.name }}",
  143.   "image": "//{{ app.request.httpHost }}{{ sonata_path(dealer.brand.logo, 'reference') }}",
  144.   "url": "{{ app.request.uri }}",
  145.   "telephone": "{{ dealer.phone }}",
  146.   "address": {
  147.     "@type": "PostalAddress",
  148.     "streetAddress": " {{ dealer.addressUa }}",
  149.     "addressLocality": "Київ"
  150.   },
  151.   "sameAs": [
  152.     "{{ dealer.linkFacebook }}",
  153.     "{{ dealer.linkInstagram }}",
  154.     "{{ dealer.linkYoutube }}"
  155.   ]
  156. }
  157.     </script>
  158.     <script type="application/ld+json">
  159.         {
  160.             "@context": "https://schema.org",
  161.             "@type": "Organization",
  162.             "url": "{{ app.request.uri }}",
  163.             "logo": "{{ absolute_url(asset('bundles/dcsite/img/peugeot/peugeot-logo.png')) }}"
  164.         }
  165.     </script>
  166.     {% block pageJS %}
  167.     {% endblock pageJS %}
  168. {% endblock coreBottomJs %}