src/PortalBundle/Resources/views/Unicomers/unicomers.html.twig line 1

Open in your IDE?
  1. {% extends '@Portal/base.html.twig' %}
  2. {% block seo %}
  3.     <title>{{ 'seo.unicomers.title'|trans({}, 'portal_base') }}</title>
  4.     <meta name="description" content="{{ 'seo.unicomers.description'|trans({},'portal_base') }}"/>
  5. {% endblock %}
  6. {% block css %}
  7.     <link rel="stylesheet" href="{{ asset('bundles/portal/css/finance/style.css') }}">
  8.     <link rel="stylesheet" href="{{ asset('bundles/portal/css/finance/corporate.css') }}">
  9.     <link rel="stylesheet" href="{{ asset('bundles/portal/css/finance/unicomers.css') }}">
  10.     <link rel="stylesheet" href="{{ asset('bundles/portal/css/unicomerce-consult-form.css') }}">
  11.     <link rel="stylesheet" type="text/css" href="{{ asset('/bundles/core/css/bootstrap_build/carousel.css') }}">
  12.     <link rel="stylesheet" type="text/css" href="{{ asset('/bundles/core/css/modules/gallery/lightslider.css') }}">
  13. {% endblock %}
  14. {% block content %}
  15.     <section class="breadcrumbs__new">
  16.         <div class="container">
  17.             <ol class="vidi_breadcrumbs__new" itemscope itemtype="https://schema.org/BreadcrumbList">
  18.                 <li class="marker__none" itemprop="itemListElement" itemscope
  19.                     itemtype="https://schema.org/ListItem">
  20.                     <a itemprop="item" href="{{ path('portal_homepage') }}">
  21.                         <span class="breadcrumbs__link" itemprop="name">VIDI.UA</span></a>
  22.                     <meta itemprop="position" content="1"/>
  23.                 </li>
  24.                 <div class="arrow-bc"></div>
  25.                 <li itemprop="item" class="marker__none" itemprop="itemListElement" itemscope
  26.                     itemtype="https://schema.org/ListItem">
  27.                     <span style="color: #ABABAB" class="breadcrumbs__link" itemprop="name">{{ 'service.service'|trans({}, 'portal_base') }}</span>
  28.                     <meta itemprop="position" content="2"/>
  29.                 </li>
  30.                 <div class="arrow-bc"></div>
  31.                 <li itemprop="item" class="marker__none" itemprop="itemListElement" itemscope
  32.                     itemtype="https://schema.org/ListItem">
  33.                     <span style="color: #ABABAB" class="breadcrumbs__link" itemprop="name">{{ 'unicomers.unicomers_title3'|trans({}, 'portal_base') }}</span>
  34.                     <meta itemprop="position" content="3"/>
  35.                 </li>
  36.             </ol>
  37.         </div>
  38.     </section>
  39.     {% if app.request.locale == 'ru' %}
  40.         {% include '@Portal/Unicomers/translations/unicomers_ru.html.twig' %}
  41.     {% else %}
  42.         {% include '@Portal/Unicomers/translations/unicomers_ua.html.twig' %}
  43.     {% endif %}
  44. {% endblock %}
  45. {% block pageJS %}
  46.     <script>
  47.         app.onCustomEvent('appInit', function () {
  48.             app.loadJs("{{ asset('/bundles/core/js/modules/gallery/lightslider.js') }}", function () {
  49.                 $('#lightSlider').lightSlider({
  50.                     auto:true,
  51.                     loop:true,
  52.                     item:4,
  53.                     controls: true,
  54.                     slideMove:1,
  55.                     adaptiveHeight: true,
  56.                     pager: false,
  57.                     speed:900,
  58.                     responsive : [
  59.                         {
  60.                             breakpoint: 1100,
  61.                             settings: {
  62.                                 item:3,
  63.                                 pager: false,
  64.                                 slideMove:1
  65.                             }
  66.                         },
  67.                         {
  68.                             breakpoint:800,
  69.                             settings: {
  70.                                 item:2,
  71.                                 slideMove:1,
  72.                                 pager: false,
  73.                                 slideMargin:6
  74.                             }
  75.                         },
  76.                         {
  77.                             breakpoint:480,
  78.                             settings: {
  79.                                 item:1,
  80.                                 pager: false,
  81.                                 slideMove:1
  82.                             }
  83.                         }
  84.                     ]
  85.                 });
  86.             });
  87.             $('#unicomerceConsultService').on('submit', function (e) {
  88.                 e.preventDefault();
  89.                 e.stopPropagation();
  90.                 var form = $(this);
  91.                 var data = form.serialize();
  92.                 app.http.send({
  93.                     method: 'POST',
  94.                     url: form.data('id'),
  95.                     data: data,
  96.                     success: function () {
  97.                         app.leadForms.showSuccessMessage();
  98.                         $('#orderCall').modal('hide');
  99.                         $('#commercialModal').modal('hide');
  100.                         try {
  101.                             dataLayer.push({'event' : 'event-to-go', 'eventAction': 'submit', 'eventCategory' : 'corporate', 'eventLabel' : 'corporate' });
  102.                         } catch (e) {
  103.                             console.error('dataLayer event error');
  104.                         }
  105.                     }
  106.                 });
  107.             });
  108.             $('#unicomersCallOrder').on('submit', function (e) {
  109.                 e.preventDefault();
  110.                 e.stopPropagation();
  111.                 var form = $(this);
  112.                 var data = form.serialize();
  113.                 app.http.send({
  114.                     method: 'POST',
  115.                     url: form.data('id'),
  116.                     data: data,
  117.                     success: function () {
  118.                         app.leadForms.showSuccessMessage();
  119.                         $('#orderCall').modal('hide');
  120.                         $('#commercialModal').modal('hide');
  121.                         try {
  122.                             dataLayer.push({'event' : 'event-to-go', 'eventAction': 'submit', 'eventCategory' : 'call-order', 'eventLabel' : 'call-order-corporate' });
  123.                         } catch (e) {
  124.                             console.error('dataLayer event error');
  125.                         }
  126.                     }
  127.                 });
  128.             });
  129.         });
  130.     </script>
  131. {% endblock %}