templates/Slivki/mobile/offer/details.html.twig line 1

Open in your IDE?
  1. {% set phoneNumbersWithoutGeoLocations = offer.getPhoneNumbersWithoutGeoLocations() %}
  2. {% extends 'Slivki/mobile/base.html.twig' %}
  3. {% block styles %}
  4.     <link rel="stylesheet" href="/css/swiper/swiper.min.css" />
  5.     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.css" />
  6.     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.css" />
  7.     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick-theme.min.css" />
  8.     <link rel="stylesheet" href="/admin/plugins/datetimepicker/css/bootstrap-datetimepicker.min.css">
  9.     <link rel="stylesheet" href="/admin/plugins/datatables/jquery.dataTables.min.css"/>
  10.     <link rel="stylesheet" href="/admin/plugins/colorpicker/bootstrap-colorpicker.min.css"/>
  11.     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.css">
  12.     {{ parent() }}
  13.     <link href="/css/delivery.min.css?v={{ delivery_css_version }}" rel="stylesheet" type="text/css"/>
  14.     <link href="/mobile/css/offers.min.css?v={{ mobile_offers_css }}" rel="stylesheet" type="text/css"/>
  15.     <link href="/css/foodForGift.css?v={{ food_for_gift_css }}" rel="stylesheet" type="text/css"/>
  16.     <link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
  17.           rel="stylesheet">
  18.     <link href=" /mobile/css/statistics_modal.css?v=3" rel="stylesheet" type="text/css" />
  19. {% endblock %}
  20. {% block messenger %}{% endblock %}
  21. {% block ogimage %}
  22.     {% if detailMediaList|length > 0 %}
  23.         <meta property="og:image"
  24.               content="{{ app.request.getSchemeAndHttpHost() }}{{ getImageURL(detailMediaList|first, 522, 322) }}"/>
  25.         <meta property="og:image:width" content="522"/>
  26.         <meta property="og:image:height" content="322"/>
  27.     {% else %}
  28.         {{ parent() }}
  29.     {% endif %}
  30. {% endblock %}
  31. {% set isBatchCodesAllowed = app.user and app.user.isBatchCodesAllowed %}
  32. {% block content %}
  33.     {% set isPickupEnabled = offer.getOnlineOrderSettings().isPickupEnabled() is defined ? offer.getOnlineOrderSettings().isPickupEnabled() %}
  34.     {% set isDeliveryEnabled = offer.getOnlineOrderSettings().isDeliveryEnabled() is defined ? offer.getOnlineOrderSettings().isDeliveryEnabled() %}
  35.     {% if parentCategoryList %}
  36.         {% include 'Slivki/mobile/breadcrumbs.html.twig' with { 'parentCategoryList': parentCategoryList, 'supplierCategoryData': offer.getSupplierCategoryData() } only %}
  37.     {% endif %}
  38.     {% if isPickupEnabled or isDeliveryEnabled %}
  39.         <input id="deliveryMethodEnabled" type="hidden" value="{{ isDeliveryEnabled == '' ? '2' : '1' }}">
  40.     {% endif %}
  41.     <input id="offerPage" type="hidden" value="">
  42.     <input id="offerID" type="hidden" value="{{ offer.getID() }}">
  43.     <input type="hidden" id="stock-id" value="{{ offer.getID() }}">
  44.     <input type="hidden" id="stock-link" value="{{ app.request.getSchemeAndHttpHost() ~ app.request.getRequestUri() }}">
  45.     <div type="hidden" id="mobileVersionIndicator"></div>
  46.     {% if app.user and isSubscriber(app.user) %}
  47.         <input id="allowedCodesCountBySubscription" type="hidden" value="{{ allowedCodesCountBySubscription }}">
  48.     {% endif %}
  49.     {% if app.user %}
  50.         <input id="splitTotalCodesCountByUser" type="hidden" value="{{ app.user.getCodesCountByOffer(offer) }}">
  51.         <input type="hidden" id="customerID" value="{{ app.user.getID() }}"/>
  52.     {% endif %}
  53.     <meta content="{{ metaInfo.metaDescription }}"/>
  54.     <div id="offerDetails">
  55.         <div class="collapse-more-button"></div>
  56.         {% set isOfferFavourite = app.user ? app.user.isOfferFavourite(offer) : false %}
  57.         <div class="no-gutters pb-2">
  58.             <div class="col-12 col-sm-4">
  59.                 <div id="offerImageSlider" class="m-0 swiper-container">
  60.                     <div class="back-button" onclick="history.back();">
  61.                         <img src="/images/back-white.svg"/>
  62.                     </div>
  63.                     {% if app.user() %}
  64.                         <div class="fovoutite-block"
  65.                              onclick="onFavouriteClickOffer({{ offer.getID() }}, {{ isOfferFavourite ? 'true' : 'false' }})">
  66.                             <img width="18" height="18"
  67.                                  src="{{ isOfferFavourite ? '/images/heart_active.svg' : '/images/heart.svg' }}"/>
  68.                         </div>
  69.                     {% endif %}
  70.                     <div class="discount-block">
  71.                         {{ offer.isWithoutCodes() ? 'пока без скидки' : offer.getDiscount() }}
  72.                     </div>
  73.                     {% if is_granted('ROLE_ADMIN') and not offer.isWithoutCodes() %}
  74.                         <div id="statisticsButton" data-toggle="modal" data-target="#statisticOffersPopup">
  75.                             <img width="37" height="37" src="/images/statistics.png"/>
  76.                         </div>
  77.                     {% endif %}
  78.                     <div class="swiper-wrapper">
  79.                         {% set medias = offer.getDetailMedias() %}
  80.                         {% set mediaCount = medias|length %}
  81.                         {% if mediaCount > 1 %}
  82.                             {% for media in medias %}
  83.                                 <div class="swiper-slide">
  84.                                     <img class="img-fluid lazyload" alt="{{ media.getDescription() }}"
  85.                                          src="{{ getImageURL(media, 1044, 644) }}"/>
  86.                                 </div>
  87.                             {% endfor %}
  88.                         {% elseif mediaCount == 1 %}
  89.                             <div>
  90.                                 <img class="img-fluid lazyload" alt="{{ medias[0].getDescription() }}"
  91.                                      src="{{ getImageURL(medias[0], 1044, 644) }}"/>
  92.                             </div>
  93.                         {% endif %}
  94.                     </div>
  95.                     {% if mediaCount > 1 %}
  96.                     <div class="swiper-pagination mt-2"></div>
  97.                     <div class="swiper-button-next"></div>
  98.                     <div class="swiper-button-prev"></div>
  99.                     {% endif %}
  100.                 </div>
  101.             </div>
  102.             <div class="container-offers">
  103.                     <div class="tags-offers">
  104.                         {% if not offer.isWithoutCodes() %}
  105.                             <div class="tags-offers-item"
  106.                          data-toggle="tooltip"
  107.                          data-placement="top"
  108.                          data-html="true"
  109.                          data-original-title="Взято кодов <br> Всего {{ multiplePoolOfferUsedCodesCount is defined ? multiplePoolOfferUsedCodesCount : usedCodesCount }} </br> За сутки {{ todayPurchaseCount }} </br> За месяц {{ getOfferMonthlyPurchaseCount(offer.getID(), 30) }}">
  110.                         <img src="/images/offers/icon_people.svg"/>
  111.                         <p class="mb-0">{{ multiplePoolOfferUsedCodesCount is defined ? multiplePoolOfferUsedCodesCount : usedCodesCount }}</p>
  112.                     </div>
  113.                         {% endif %}
  114.                             <div class="tags-offers-item view-count" class="view-count d-flex"
  115.                          data-toggle="tooltip"
  116.                          data-placement="top"
  117.                          data-html="true"
  118.                          data-original-title="Просмотров <br> Всего {{ visitCount }} </br> За сутки {{ todayVisitCount }}">
  119.                         <img src="/images/offers/statistic_1.svg"/>
  120.                         <p class="mb-0">{{ visitCount }}</p>
  121.                     </div>
  122.                         {% if not offer.isWithoutCodes() %}
  123.                             <div class="tags-offers-item"
  124.                          data-toggle="tooltip"
  125.                          data-placement="top"
  126.                          data-html="true"
  127.                          data-original-title="Кол-во продаж к кол-ву просмотров. <br> Конверсия за 30 дней">
  128.                         <img src="/images/offers/conversion.svg"/>
  129.                         <p class="mb-0">{{ getOfferConversion(offer.getID()) }}%</p>
  130.                     </div>
  131.                         {% endif %}
  132.                     <div class="tags-offers-item rating-block"
  133.                          data-html="true"
  134.                          data-toggle="tooltip"
  135.                          data-placement="top"
  136.                          data-original-title="Рейтинг компании <br> за 90 дней">
  137.                         <span>★</span>
  138.                         <p class="mb-0">{{ offer.getRating() }}</p>
  139.                     </div>
  140.                         {% if not offer.isWithoutCodes() %}
  141.                     <div class="tags-offers-item day-to-end"
  142.                          data-toggle="tooltip"
  143.                          data-placement="top"
  144.                          data-html="true"
  145.                          data-original-title="Дней до окончания <br> действия акции">
  146.                         <img src="/images/offers/icon_time.svg"/>
  147.                         <p class="mb-0">
  148.                             {% if daysLeft > 0 %}
  149.                                 {{ daysLeft }} {{ ['день', 'дня', 'дней']|plural(daysLeft) }}
  150.                             {% elseif daysLeft == 0 %}
  151.                                 <input type="hidden" id="daysLeft" value="{{ daysLeft }} &nbsp;"/>
  152.                                 <input type="hidden" id="hoursLeft" value="{{ hoursLeft }} &nbsp;"/>
  153.                                 <input type="hidden" id="minutesLeft" value="{{ minutesLeft }} &nbsp;"/>
  154.                                 <input type="hidden" id="secondsLeft"
  155.                                        value="{{ offer.getActiveTill().diff(date()).format('%s') }}"/>
  156.                                 <span id="hours">{{ hoursLeft }}&nbsp</span>час{{ ['', 'а', 'ов']|plural(hoursLeft) }}&nbsp;
  157.                             {% endif %}
  158.                         </p>
  159.                     </div>
  160.                         {% endif %}
  161.                 </div>
  162.                 <p class="tittle-offers js-tittle-offer" style="color: {{ offer.getTitleFontColor() }};">{{ offer.getTitle()|raw }}</p>
  163.                 <div class="offers-description">
  164.                     {% if not pastOffer and offer.getFreeCodesCount() > 0 %}
  165.                         <div class="pb-3 d-flex border-bottom-gray">
  166.                             <div class="col px-0 price-services-tittle">Стоимость:</div>
  167.                             <del id="offerRegularPrice"
  168.                                  class="regular-price-offer">{{ offer.getRegularPrice() }}</del>
  169.                             &nbsp;&nbsp;
  170.                             <div class="price-services-new">{{ offer.getOfferPrice()|replace({'(': '<span id="details-offer-price">(', ')': ')</span>'})|raw }}</div>
  171.                             <input type="hidden" id="codeCost" value="{{ codeCost }}">
  172.                         </div>
  173.                     {% else %}
  174.                         <div class="card border-0 mt-3">
  175.                             <div class="card-body p-0 pl-2 text-center">
  176.                                 <i class="slivki-icon-minus-circled text-danger d-block h1 mb-0"></i>
  177.                                 Акция завершена
  178.                             </div>
  179.                         </div>
  180.                     {% endif %}
  181.                 </div>
  182.             </div>
  183.         </div>
  184.         {% if not pastOffer and offer.getFreeCodesCount() > 0 and offer.isOnlineOrderGiftEnabled() and offer.isFoodOnlineOrderAllowedOnSite()  %}
  185.         <div class="col my-2">
  186.             <a class="button-gift" data-toggle="modal" data-target="#choiceGiftModal">
  187.                 <div class="button-gift-text">
  188.                     <p class="mb-0">ЕДА В ПОДАРОК 😋</p>
  189.                     <p class="mb-0">Подарю сам или подарят мне</p>
  190.                 </div>
  191.                 <div class="button-gift-item-button">
  192.                     <div class="new">NEW</div>
  193.                 </div>
  194.             </a>
  195.         </div>
  196.         {% endif %}
  197.         <div class="sticky-element">
  198.             <div class="sticky-anchor"></div>
  199.             <div id="offerNavigation">
  200.                 <ul class="nav-list">
  201.                     {% if not app.user %}
  202.                         {% if offer.isTireOnlineOrderAllowedOnSite() %}
  203.                             <li class="nav-item"><a href="#" onclick="$('.modal-auth').modal()" class="nav-links online-tire"><img
  204.                                             src="../images/online-order.svg"
  205.                                             alt="Онлайн-запись">
  206.                                     Онлайн-запись
  207.                                 </a>
  208.                             </li>
  209.                         {% endif %}
  210.                     {% else %}
  211.                         {% if offer.isTireOnlineOrderAllowedOnSite() %}
  212.                             <li class="nav-item"><a href="/online-zapis/{{ offer.getID() }}" class="nav-links online-tire"><img
  213.                                             src="../images/online-order.svg"
  214.                                             alt="Онлайн-запись">
  215.                                     Онлайн-запись
  216.                                 </a>
  217.                             </li>
  218.                         {% endif %}
  219.                     {% endif %}
  220.                     <li class="nav-item"><a href="#offerDescriptionTab" class="nav-links active">
  221.                             Условия
  222.                         </a>
  223.                     </li>
  224.                     <li class="nav-item"><a href="#offerAddressTab" class="nav-links ">
  225.                             Контакты
  226.                         </a>
  227.                     </li>
  228.                     <li class="nav-item"><a href="#offerCommentTab" class="nav-links"><span></span>
  229.                             Отзывы
  230.                         </a>
  231.                     </li>
  232.                 </ul>
  233.             </div>
  234.         </div>
  235.             <div id="offerAccordion" class="accordion mt-2 px-2">
  236.                 {% if not offer.isWithoutCodes() %}
  237.                     <div id="fixedButtonsBottom" class="accordion fixed py-3">
  238.                     {% if not offer.isBuyCodeDisable() %}
  239.                         <div id="buyButtonCard" class="card">
  240.                             <div class="card-header">
  241.                                 {% if offer.getID() == constant('Slivki\\Entity\\Offer::BOOKING_OFFER_ID') %}
  242.                                     <a href="#" class="m-0 card-link bg-slivki" data-toggle="modal" data-target="#bookingItemPopup">
  243.                                         {{ offer.getBuyCodeButtonText() and offer.getBuyCodeButtonText() != '' ? offer.getBuyCodeButtonText() : 'Забронировать номер' }}
  244.                                     </a>
  245.                                 {% else %}
  246.                                     {% if not pastOffer and freeCodesCount > 0 %}
  247.                                         {% if not app.user %}
  248.                                             <a href="#" class="m-0 card-link bg-slivki by-code-button text-uppercase" onclick="$('.modal-auth').modal()">
  249.                                                 {% if offerIsFreeForUser %}
  250.                                                     БЕСПЛАТНЫЙ ПРОМОКОД
  251.                                                 {% else %}
  252.                                                     {{ buyButtonLabel }}
  253.                                                 {% endif %}
  254.                                             </a>
  255.                                         {% else %}
  256.                                             <a href="javascript:void(0)" id="buyCodeButtonFake" class="m-0 d-none card-link bg-slivki by-code-button">
  257.                                                 <img class="fixed-size" width="14" src="/images/loading-animation.gif" alt=""/>
  258.                                             </a>
  259.                                             {% if (offer.getID() == constant('Slivki\\Entity\\Offer::PETROL_OFFER_ID')) %}
  260.                                                 <a href="#" onclick="showFakeButton(); if (window.google_tag_manager) {ga('send', 'event', 'Buy code', 'Click', '{{ getURL("Slivki:Default:details", offer.getID()) }}');} document.location='/oplata-promokoda-azs'"
  261.                                                    class="m-0 card-link bg-slivki by-code-button" id="buyCodeButton">
  262.                                                     {% if offerIsFreeForUser %}
  263.                                                         БЕСПЛАТНЫЙ ПРОМОКОД
  264.                                                     {% else %}
  265.                                                         {{ buyButtonLabel }}
  266.                                                     {% endif %}
  267.                                                 </a>
  268.                                             {% else %}
  269.                                                 {% if isAllowedByOnlyCode %}
  270.                                                     {% if app.user and (isSubscriber(app.user) or isBatchCodesAllowed) and not offerIsFreeForUser and not offer.isBuyCodeInAppOnly() %}
  271.                                                         <a href="#" onclick="$('#buyPromoPopup').modal()"
  272.                                                            class="m-0 card-link bg-slivki by-code-button text-uppercase my-1" id="buyCodeButton">
  273.                                                             {{ buyButtonLabel }}
  274.                                                         </a>
  275.                                                     {% else %}
  276.                                                         {% if not app.user %}
  277.                                                             <a href="#" onclick="$('.modal-auth').modal()"
  278.                                                                class="m-0 card-link bg-slivki by-code-button text-uppercase my-1" id="buyCodeButton">
  279.                                                                 {{ buyButtonLabel }}
  280.                                                             </a>
  281.                                                         {% endif %}
  282.                                                         {% if offer.isBuyCodeInAppOnly() %}
  283.                                                             <a class="m-0 card-link bg-slivki by-code-button text-uppercase my-1" id="buyCodeButton"
  284.                                                                onclick="$('#byCodesAlwaysApp').modal()">
  285.                                                                 {{ buyButtonLabel }}
  286.                                                             </a>
  287.                                                         {% elseif not offer.isBuyCodeInAppOnly() %}
  288.                                                             {% if isServerFeatureEnabled(constant('Slivki\\Enum\\SwitcherFeatures::PAYMENT_PAYME')) or isServerFeatureEnabled(constant('Slivki\\Enum\\SwitcherFeatures::PAYMENT_CLICK'))  %}
  289.                                                                 <a href="#"
  290.                                                                    class="m-0 card-link bg-slivki by-code-button text-uppercase my-1" id="buyCodeButtonPayMeMobile" data-target="#buyPromoPopupPayMe" data-toggle="modal">
  291.                                                                     {{ buyButtonLabel }}
  292.                                                                 </a>
  293.                                                             {% else %}
  294.                                                                 <a href="#" onclick="if (window.google_tag_manager) {ga('send', 'event', 'Buy code', 'Click', '{{ getURL("Slivki:Default:details", offer.getID()) }}');} showFakeButton();ym(20933521,'reachGoal','getcode-click'); document.location='{{ buyCodePopup == '#confirmBox' and canBuyFromBalance ? '/oplata-balance/' : '/oplata/'}}{{ offer.getID() }}'"
  295.                                                                    class="m-0 card-link bg-slivki by-code-button text-uppercase my-1" id="buyCodeButton">
  296.                                                                     {{ buyButtonLabel }}
  297.                                                                 </a>
  298.                                                             {% endif %}
  299.                                                         {% endif %}
  300.                                                     {% endif %}
  301.                                                 {% endif %}
  302.                                             {% endif %}
  303.                                         {% endif %}
  304.                                     {% else %}
  305.                                         <a href="{{ categoryURL }}" class="m-0 card-link bg-slivki color-white">Посмотреть похожие предложения</a>
  306.                                     {% endif %}
  307.                                 {% endif %}
  308.                             </div>
  309.                         </div>
  310.                     {% endif %}
  311.                     {% if items|length > 0 %}
  312.                         <div id="buyItemsButtonCard" class="card">
  313.                             <div class="card-header">
  314.                                 <a href="#" id="buyItemsButton" class="m-0 card-link bg-slivki" data-toggle="modal" data-target="#offerItemsPopup">
  315.                                     {{ offer.getBuyItemsButtonText() and offer.getBuyItemsButtonText() != '' ? offer.getBuyItemsButtonText() : 'Оплатить сейчас по карте' }}
  316.                                 </a>
  317.                             </div>
  318.                         </div>
  319.                     {% endif %}
  320.                     {% if hasDelivery is defined and offer.getFreeCodesCount() > 0 %}
  321.                     <div id="deliveryButtonCard" class="card">
  322.                         <div class="card-header bg-transparent">
  323.                             {% if not app.user %}
  324.                                     {% if constant('Slivki\\Entity\\Offer::FREESTYLE_CERTIFICATE_OFFER_ID') == offer.getID() %}
  325.                                         <a href="#" onclick="$('.modal-auth').modal()" class="card-link ml-0 py-3 bg-violet text-white rounded-14 text-uppercase{{ not offer.hasFreeCodes() ? ' opacity-05'}}">
  326.                                             ПОЛУЧИТЬ СКИДКУ {{ offer.getDiscount() }}
  327.                                         </a>
  328.                                     {% else %}
  329.                                             {% if offer.isGiftCertificateOnlineOrderAllowedOnSite() and not offer.isFoodOnlineOrderAllowedOnSite() and offer.getID() != 283213 and offer.getID() != 288763 and offer.getID() != 288779 and offer.getID() != 288772 %}
  330.                                                 <a id="deliveryBtn" href="{{ deliveryLink }}" class="js-buy-online card-link py-3 bg-violet text-white rounded-14 text-uppercase{{ not offer.hasFreeCodes() ? ' opacity-05'}}">
  331.                                                 Оплатить онлайн {{ offer.getDiscount() }}
  332.                                                 </a>
  333.                                             {% elseif offer.isGiftCertificateOffer() and offer.getID() == 288763 or offer.isGiftCertificateOffer() and offer.getID() == 288779 or offer.isGiftCertificateOffer() and offer.getID() == 288772  %}
  334.                                                 <a id="deliveryBtn" href="{{ deliveryLink }}" class="js-buy-online card-link py-3 bg-violet text-white rounded-14 text-uppercase{{ not offer.hasFreeCodes() ? ' opacity-05'}}">
  335.                                                 Получить скидку  {{ offer.getDiscount() }}
  336.                                                 </a>
  337.                                             {% elseif not offer.isGiftCertificateOffer() and not offer.isTireOnlineOrderAllowedOnSite() %}
  338.                                                 <a id="deliveryBtn" href="{{ deliveryLink }}" class="js-buy-online card-link py-3 bg-violet text-white rounded-14 text-uppercase{{ not offer.hasFreeCodes() ? ' opacity-05'}}">
  339.                                                 Заказать онлайн {{ offer.getDiscount() }}
  340.                                                 </a>
  341.                                             {% endif %}
  342.                                     {% endif %}
  343.                             {% else %}
  344.                                     {% if offer.getID() in constant('Slivki\\Entity\\Offer::FREESTYLE_OFFER_IDS') %}
  345.                                         {% set deliveryBuyOnlyCodeLink = getLinkGiftCertificateOnlineOrderByOnlyCode(offer) %}
  346.                                         <a href="{{ deliveryBuyOnlyCodeLink }}"
  347.                                            onclick="document.location = `{{ deliveryBuyOnlyCodeLink }}`"
  348.                                            class="card-link ml-0 py-3 bg-violet text-white rounded-14 text-uppercase{{ not offer.hasFreeCodes() ? ' opacity-05' }}">
  349.                                             ПОЛУЧИТЬ СКИДКУ {{ offer.getDiscount() }}
  350.                                         </a>
  351.                                     {% else %}
  352.                                         {% if offer.isGiftCertificateOnlineOrderAllowedOnSite() and not offer.isFoodOnlineOrderAllowedOnSite() %}
  353.                                                 {% if offer.isGiftCertificateOnlineOrderAllowedOnSite() and offer.getID() != 283213 and offer.getID() != 288763 and offer.getID() != 288779 and offer.getID() != 288772 or offer.isGiftCertificateOffer() and not offer.isFoodOnlineOrderAllowedOnSite() %}
  354.                                                     <a href="{{ getLinkGiftCertificateOnlineOrder(offer) }}"
  355.                                                     onclick="document.location = `{{ getLinkGiftCertificateOnlineOrder(offer) }}`"
  356.                                                     class="js-buy-online card-link py-3 bg-violet text-white rounded-14 text-uppercase{{ not offer.hasFreeCodes() ? ' opacity-05' }}">
  357.                                                     Оплатить онлайн {{ offer.getDiscount() }}
  358.                                                     </a>
  359.                                                 {% elseif offer.isGiftCertificateOffer() and offer.getID() == 288763 or offer.isGiftCertificateOffer() and offer.getID() == 288779 or offer.isGiftCertificateOffer() and offer.getID() == 288772 %}
  360.                                                     <a href="{{ getLinkGiftCertificateOnlineOrder(offer) }}"
  361.                                                     onclick="document.location = `{{ getLinkGiftCertificateOnlineOrder(offer) }}`"
  362.                                                     class="js-buy-online card-link py-3 bg-violet text-white rounded-14 text-uppercase{{ not offer.hasFreeCodes() ? ' opacity-05' }}">
  363.                                                     Получить скидку  {{ offer.getDiscount() }}
  364.                                                     </a>
  365.                                                 {% endif %}
  366.                                         {% else %}
  367.                                             {% if not offer.isTireOnlineOrderAllowedOnSite() %}
  368.                                             <a href="{{ deliveryLink }}"
  369.                                                onclick="document.location = `{{ deliveryLink }}`"
  370.                                                class="js-buy-online card-link py-3 bg-violet text-white rounded-14 text-uppercase{{ not offer.hasFreeCodes() ? ' opacity-05' }}">
  371.                                                     Заказать онлайн {{ offer.getDiscount() }}
  372.                                             </a>
  373.                                             {% endif %}
  374.                                         {% endif %}
  375.                                     {% endif %}
  376.                                 {% endif %}
  377.                         </div>
  378.                     </div>
  379.                 {% endif %}
  380.             </div>
  381.                 {% endif %}
  382.             <div class="container-offers my-0 mx-0">
  383.                 <div id="offerDescriptionTab" class="mx-2 active" style="max-height: fit-content;">
  384.                     <div class="offer-titles mt-2"><h5>Условия</h5></div>
  385.                     {% if not offer.isWithoutCodes() and offer.getID() != 140553 %}
  386.                         {% set codeTill = offer.getCodeActiveTill() %}
  387.                         {% set codeFrom = offer.getActiveTill()|date_modify('-1 day') %}
  388.                         {% set codeFrom = codeFrom > codeTill ? codeTill : codeFrom %}
  389.                         {% if not offer.isHideFeatures() %}
  390.                             <p>- Получить промокод можно до {{ codeFrom|date('d.m') }}, воспользоваться {{ offer.getID() != 134390 ? 'до' }} {{ codeTill|date('d.m.y') }}.
  391.                             <br/>
  392.                         {% endif %}
  393.                         {% if offer.isShowPriceInConditions() and not offerIsFreeForUser %}
  394.                             - Стоимость промокода: {{ codeCost }} руб.
  395.                         {% endif %}</p>
  396.                     {% endif %}
  397.                     {{ offer.getConditions()|raw }}
  398.                     {# Таблица с прейскурантом для акции с квестами "Ящик Пандоры" #}
  399.                     {% if offer.getID() == 143528 %}
  400.                 <br>
  401.                     {% include 'Slivki/offers/table_for_pandorra_box_offer2.html.twig' %}
  402.                     <br>
  403.                         {% elseif offer.getID() == 282234 %}
  404.                             {% include 'Slivki/offers/table_for_pandorra_box_offer4.html.twig' %}
  405.                         {% endif %}
  406.                         {% if not offer.isHideFeatures() %}
  407.                             {% if not offer.isWithoutCodes() %}
  408.                                 {% include "Slivki#{regional_template_path}/phrase_subscription_in_offer_page.html.twig" %}
  409.                             {% endif %}
  410.                             <br>
  411.                             <div class="offer-titles"><h5>Особенности</h5></div>
  412.                             <div class="offer-details-conditions">
  413.                                 {% if not offer.isWithoutCodes() %}
  414.                                     - Скидка предоставляется только при наличии промокода.
  415.                                 {% endif %}
  416.                                 {{ offer.getFeatures()|raw }}
  417.                             </div>
  418.                     - Поставщик несет полную ответственность перед потребителем за достоверность информации.
  419.                     {% endif %}
  420.                     <div id="endOfOfferCondition"></div>
  421.                 </div>
  422.             </div>
  423.             {% if offer.getShopMedias()|length > 0 %}
  424.                 <div class="gallery-title offer-titles"><h5>Галерея</h5></div>
  425.             {% endif %}
  426.             <div class="my-4 screenshots {{ offer.getShopMedias()|length == 0 or freeCodesCount == 0 ? 'empty' }}">
  427.                 {% if offer.getShopMedias()|length > 0 %}
  428.                     <div class="screenshot-container">
  429.                         {% if  galleryVideos.getVideos() is defined and galleryVideos.getVideos()|length > 0 %}
  430.                             <div class="screenshot screenshot-story" data-toggle="modal" data-target="#detailsStoryPopup">
  431.                                 <img src="{{ galleryVideos.getImageUrl() }}" width="158"
  432.                                      alt="Видео" border="0"/>
  433.                                 <div class="screenshot-story-btn"></div>
  434.                                 <div class="screenshot-story-tittle">{{ galleryVideos.getTitle() }}</div>
  435.                             </div>
  436.                         {% endif %}
  437.                         {% for media in offer.getShopMedias() %}
  438.                             <div class="screenshot">
  439.                                 <a data-fancybox="gallery1" href="{{ getImageURL(media, 0, 0) }}"
  440.                                    title="{{ media.getDescription() }}">
  441.                                     <img src="{{ getImageURL(media, 300, 0) }}" width="158"
  442.                                          alt="{{ media.getDescription() }}" border="0"/>
  443.                                 </a>
  444.                             </div>
  445.                         {% endfor %}
  446.                     </div>
  447.                 {% endif %}
  448.             </div>
  449.             <div id="examplesOfWorksBlock" class="examples-block-mobile">
  450.                 <div class="headerBlockCategory examples d-none bg-white px-0 pb-0 examples-block-mobile-header">
  451.                     <div class="offer-titles m-0"><h5>Примеры работ{#<div class="example-of-works-count-container"><span>1234</span></div>#}</h5></div>
  452.                     <div class="examples-works-tooltip-filter">
  453.                         <div class="tooltip-content">
  454.                             <div class="tooltip-title border-bottom-f d-flex">Показать сначала:</div>
  455.                             <div class="radio">
  456.                                 <input id="dateFilter" type="radio" checked name="filter" data-direction="DESC" value="workExample.createdAt">
  457.                                 <label for="dateFilter" class="cursor-pointer">По дате добавления</label>
  458.                             </div>
  459.                             <div class="radio">
  460.                                 <input id="locationFilter" type="radio" name="filter" data-direction="ASC" value="distance">
  461.                                 <label for="locationFilter" class="cursor-pointer">Поблизости</label>
  462.                             </div>
  463.                             <div class="radio">
  464.                                 <input id="priceUpFilter" type="radio" name="filter" data-direction="ASC" value="workExample.price">
  465.                                 <label for="priceUpFilter" class="cursor-pointer">По возврастанию цены</label>
  466.                             </div>
  467.                             <div class="radio">
  468.                                 <input id="priceDownFilter" type="radio" name="filter" data-direction="DESC" value="workExample.price">
  469.                                 <label for="priceDownFilter" class="cursor-pointer">По убыванию цены</label>
  470.                             </div>
  471.                             <div class="tooltip-title border-top-f d-flex">Диапазон цены:</div>
  472.                             <div id="workExamplePriceRangeInputs" class="price-range-inputs d-flex">
  473.                                 <div class="price-range-input"><input type="number" placeholder="Цена от" id="priceFrom" name="priceFrom" min="0" max="199" step="1"></div>
  474.                                 <div class="price-range-input"><input type="number" placeholder="Цена до" id="priceTo" name="priceTo" min="0" max="200" step="1"></div>
  475.                             </div>
  476.                             <div id="workExampleRangeSlider" class="range-slider">
  477.                                 <div class="range-labels">
  478.                                     <span id="workSimplesRangeLableStart" class="range-label range-label-start"></span>
  479.                                     <span>-</span>
  480.                                     <span id="workSimplesRangeLableEnd" class="range-label range-label-end"></span>
  481.                                 </div>
  482.                                 <input class="work-simples-input" type="range" min="" value="0" max="" name="" id="startRange">
  483.                                 <input class="work-simples-input" type="range" min="" value="" max="" name="" id="finishRange">
  484.                                 <div class="track-wrapper">
  485.                                     <div class="track"></div>
  486.                                     <div id="workSimplesSliderBetween" class="range-between"></div>
  487.                                     <div id="workSimplesTumbLeft" class="thumb left"></div>
  488.                                     <div id="workSimplesTumbRight" class="thumb right"></div>
  489.                                 </div>
  490.                             </div>
  491.                             <div id="buttonFilterBoxExamplesWork" class="buttonFilterBox">Показать</div>
  492.                         </div>
  493.                         <div id="buttonFilterBoxExamplesWork" class="examples-works-filter"></div>
  494.                     </div>
  495.                 </div>
  496.                 {% include 'Slivki/works-examples/examples_of_works_gallery.html.twig' %}
  497.             </div>
  498.             <div id="beautyMastersBlock" class="beauty-masters-container beauty-masters-offer mob">
  499.                 <div id="beautyMastersHeader" class="tittleBlockCategory position-relative offer-titles mb-2 mt-0 d-none"><h5>Мастера</h5></div>
  500.                 {% include 'Slivki/beauty/beauty_masters.html.twig' %}
  501.             </div>
  502.             <div id="offersDescription" class="offers-conditions mt-2 js-parallax-banner-after" style="padding-bottom: 22px;">
  503.                 {% if offer.isShowProductsInOfferDescription() %}
  504.                     <div id="foodItemsBlock" class="my-3">
  505.                         <div class="offer-titles mt-2"><h5>Описание</h5></div>
  506.                         {% if isPickupEnabled and isDeliveryEnabled %}
  507.                             <div id="fixedFiltersOffer" class="w-auto px-2 d-flex" style="position: relative;background: linear-gradient(180deg, #A839FF 0%, #6747e5 100%), #6747E5;border-radius: 8px;padding: 10px 0;">
  508.                                 <div class="w-100 switch-delivery-pickup-block px-0 ">
  509.                                     <a data-type-delivery="1" class="switch-delivery-pickup-item button-tab-delivery delivery-type active">
  510.                                         <p class="m-0">Доставка</p>
  511.                                         <small>удобно👌</small>
  512.                                     </a>
  513.                                     <a data-type-delivery="2" class="switch-delivery-pickup-item pickup-type button-tab-pickup">
  514.                                         <p class="m-0"> Самовывоз</p>
  515.                                         <small>еще дешевле🔥</small>
  516.                                     </a>
  517.                                 </div>
  518.                             </div>
  519.                         {% endif %}
  520.                         <div id="foodBlock"></div>
  521.                         <div id="foodOptionsBlock"></div>
  522.                     </div>
  523.                 {% endif %}
  524.                 <div class="description" id="descriptionText">
  525.                     {% for offerDescription in offer.getDescriptionList() %}
  526.                         {% set offerDescriptionSliderImages = offerDescription.getEntityDescriptionSliderImages() %}
  527.                         {% if offerDescriptionSliderImages|length > 0 %}
  528.                             <div class="sale-description-carousel">
  529.                                 <div id="saleDescriptionSliderFor{{ offerDescription.getID() }}"
  530.                                      class="sale-description-slider-for">
  531.                                     {% for offerDescriptionSliderImage in offerDescriptionSliderImages %}
  532.                                         <div><img data-lazy="{{ offerDescriptionSliderImage.getImageUrl() }}"/>
  533.                                         </div>
  534.                                     {% endfor %}
  535.                                 </div>
  536.                             </div>
  537.                         {% endif %}
  538.                         {{ addLazyAndLightboxImagesInDescription(offerDescription.getDescription())|raw }}
  539.                     {% endfor %}
  540.                 </div>
  541.             </div>
  542.             <div id="offerAddressTab" class="mx-1 mt-5">
  543.                 <div class="offer-titles"><h5 class="mb-2">Контакты</h5></div>
  544.                 <div class="mb-4 logo-title">
  545.                     {{ offer.getLogo()|raw }}
  546.                 </div>
  547.                 <div class="p-m-0">
  548.                     {% if geoLocations.count() > 0 %}
  549.                         {% if geoLocations|length > 0 %}
  550.                             <div id="offerGeoLocationData" data-json="{{ offerGeoLocationData }}"></div>
  551.                             <div id="offerMapWrapper" class="category-map-wrapper my-3">
  552.                                 <div id="offerMap" class="category-map"></div>
  553.                                 <a id="setUserLocationBtn" href="#">Указать местоположение</a>
  554.                                 <div id="zoomIn"></div>
  555.                                 <div id="zoomOut"></div>
  556.                                 <a id="mapEnterFullscreen" href="#" class="fullscreen-map-button">Развернуть</a>
  557.                                 <a id="mapExitFullscreen" href="#" class="fullscreen-map-button">Свернуть</a>
  558.                             </div>
  559.                         {% endif %}
  560.                     {% endif %}
  561.                     {% for geoLocation in geoLocations %}
  562.                         <div class="mb-3 my-3">
  563.                             <div class="sf-bold-font">{{ geoLocation.getCity() }}, {{ geoLocation.getStreet() }}, {{ geoLocation.getHouse() }} {{ geoLocation.getLabel() }}</div>
  564.                             {% set phoneNumbers = geoLocation.getPhoneNumbers() %}
  565.                             {% if phoneNumbers|length > 0 %}
  566.                             {% endif %}
  567.                             {% for phoneNumber in phoneNumbers %}
  568.                                 {% include 'Slivki/mobile/offer/phone_number_btn.html.twig' with {'phoneNumber': phoneNumber} only %}
  569.                             {% endfor %}
  570.                             {% if geoLocation.getWorkingHours()|trim != '' %}
  571.                                 <div>Время работы:</div> {{ geoLocation.getWorkingHours()|raw }}
  572.                             {% endif %}
  573.                         </div>
  574.                     {% endfor %}
  575.                     {% if phoneNumbersWithoutGeoLocations|length > 0 %}
  576.                     {% if geoLocations|length > 0 %}
  577.                         <br>
  578.                     {% endif %}
  579.                     <div id="phoneOffers" class="mb-2">
  580.                         <div class="mb-2">
  581.                             <strong>Телефон{{ phoneNumbersWithoutGeoLocations|length > 1 ? 'ы' }}:</strong>
  582.                         </div>
  583.                         {% for phoneNumber in phoneNumbersWithoutGeoLocations %}
  584.                             {% include 'Slivki/mobile/offer/phone_number_btn.html.twig' with {'phoneNumber': phoneNumber} only %}
  585.                         {% endfor %}
  586.                     </div>
  587.                 </div>
  588.                 {% endif %}
  589.                 {% set commonWoringHours = offer.getCommonWorkingHours() %}
  590.                 {% if commonWoringHours != '' %}
  591.                     <br>
  592.                     <div><strong>Время работы:</strong></div>
  593.                     {{ commonWoringHours|raw }}
  594.                     <br><br>
  595.                 {% endif %}
  596.                 {{ offer.getLegal()|raw }}
  597.                 {% if offer.getTelegram() != null or offer.getViber() != null %}
  598.                     <div class="contact-container d-flex flex-column py-2 px-1">
  599.                         <div class="contact-item" data-toggle="modal" data-target="#contactPopup">
  600.                             <p>Написать</p>
  601.                         </div>
  602.                     </div>
  603.                 {% endif %}
  604.             </div>
  605.             {% include 'Slivki/offers/share.html.twig' %}
  606.         </div>
  607.         <div id="offerCommentTab" class="pt-2 px-0">
  608.             <div>
  609.                 {{ comments|raw }}
  610.             </div>
  611.         </div>
  612.     </div>
  613.     </div>
  614.     {% if preview %}
  615.         <input type="hidden" id="offerPreview" value="1">
  616.     {% else %}
  617.         <input type="hidden" id="offerPreview" value="0">
  618.     {% endif %}
  619.     </div>
  620.     {% if showGlobalcard %}
  621.         {% include 'Slivki/mobile/offer/globalcard.html.twig' %}
  622.     {% elseif showGlobalcardFitness %}
  623.         {% include 'Slivki/mobile/offer/globalcard_fitness.html.twig' %}
  624.     {% endif %}
  625. {% endblock %}
  626. {% block popup %}
  627.     {% include 'Slivki/popups/header_offers.html.twig' %}
  628.     {% include 'Slivki/popups/mail_offers.html.twig' %}
  629.     {% include "Slivki#{regional_template_path}/jivosite/modal_mobile.html.twig" %}
  630.     {% if  galleryVideos.getVideos() is defined and galleryVideos.getVideos()|length > 0 %}
  631.         {% include 'Slivki/popups/details-story-popup.html.twig' %}
  632.     {% endif %}
  633.     {% include 'Slivki/orderAsGift/foodForGift.html.twig' with {'deliveryLink': deliveryLink} %}
  634.     {% if isServerFeatureEnabled(constant('Slivki\\Enum\\SwitcherFeatures::PAYMENT_PAYME')) %}
  635.         {% include 'Slivki/uz/mobile/buy_promo.twig' %}
  636.     {% endif %}
  637.     {% if app.user %}
  638.         {% include 'Slivki/popups/rating_edit_popup.html.twig' %}
  639.         {% include 'Slivki/mobile/popup/popup_subscription_limited.html.twig' %}
  640.         {% include 'Slivki/mobile/subscription/buy_promo_popup.html.twig' %}
  641.         {% include 'Slivki/mobile/popup/confirm_subscription_card_popup.html.twig' with {'creditCards': app.user.getActiveCreditCards()} %}
  642.         {% include 'Slivki/mobile/popup/buy_codes_avways_app.html.twig' %}
  643.         {% include 'Slivki/popups/add_favourite_popup.html.twig' %}
  644.         {% include 'Slivki/popups/delete_favourite_popup.html.twig' %}
  645.         {% include 'Slivki/popups/delete_comment_popup.html.twig' with {id: 'deleteCommentConfirmPopup'} %}
  646.     {% else %}
  647.         {% include 'Slivki/popups/comment_only_registered_popup.html.twig' with {'id': 'onlyRegistered'} %}
  648.     {% endif %}
  649.     {% include 'Slivki/popups/comment_media_block_popup.html.twig' %}
  650.     {% include 'Slivki/mobile/popup/add_comment_popup.html.twig' %}
  651.     {% include 'Slivki/popups/edit_comment_popup.html.twig' with {'id': 'editVoteBox'} %}
  652.     {% include 'Slivki/popups/comment_censor_message.html.twig' with {'id': 'commentCensorMessage'} %}
  653.     {% include 'Slivki/mobile/share_block.html.twig' %}
  654.     {% include 'Slivki/mobile/popup/statistics_popup.html.twig' %}
  655.     {% include 'Slivki/mobile/delivery/modal/details.html.twig' with {'isOfferPage': true} %}
  656.     {% if items|length > 0 %}
  657.         {% include 'Slivki/mobile/offer/extension/item/items_popup.html.twig' %}
  658.     {% endif %}
  659.     {% if offer.getID() == constant('Slivki\\Entity\\Offer::BOOKING_OFFER_ID') %}
  660.         {% include 'Slivki/mobile/offer/booking_popup.html.twig' %}
  661.     {% endif %}
  662.     {{ parent() }}
  663.     {% if offer.isGiftCertificateOffer() %}
  664.         {% include 'Slivki/popups/step_buy_certificate.twig' with {'deliveryLink': deliveryLink} %}
  665.     {% endif %}
  666.     {% include 'Slivki/mobile/popup/loading_popup.html.twig' %}
  667.     {% include 'Slivki/mobile/popup/contact_popup.html.twig' %}
  668. {% endblock %}
  669. {% block brandingBanner %}
  670.     {% if not (app.user and app.user.hasRole(constant('\\Slivki\\Entity\\UserGroup::ROLE_ADS_FREE'))) %}
  671.         {% set brandingBanner = getBrandingBanner(app.user, brandingBannerCategoryIDs is defined ? brandingBannerCategoryIDs : [], offer is defined ? offer.getID()) %}
  672.         {% if brandingBanner and brandingBanner.getMobileDivider() %}
  673.             <input type="hidden" id="brandingBannerImage" value="{{ brandingBanner.getMobileDivider() }}"
  674.                    data-oid="{{ brandingBanner.getID() }}" data-id="{{ brandingBanner.getBannerID() }}"
  675.                    data-branding="{{ brandingBanner.getBannerID() }}" data-url="{{ brandingBanner.getUrl()|trim }}"
  676.                    data-right-side-url="{{ brandingBanner.getRightSideUrl()|trim }}">
  677.         {% endif %}
  678.     {% endif %}
  679. {% endblock %}
  680. {% block javascripts %}
  681.     {{ parent() }}
  682.     <script src="/js/jquery.jcarousel.min.js?v=1"></script>
  683.     <script src="/js/story-slider/story-slider-js.js?v={{ story_slider_js_version }}"></script>
  684.     <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.lazyload/1.9.1/jquery.lazyload.min.js"
  685.             integrity="sha512-jNDtFf7qgU0eH/+Z42FG4fw3w7DM/9zbgNPe3wfJlCylVDTT3IgKW5r92Vy9IHa6U50vyMz5gRByIu4YIXFtaQ=="
  686.             crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  687.     <script type="text/javascript">
  688.         $(function () {
  689.             $('#floatingBanner').addClass('offer-details-floating-banner');
  690.         });
  691.     </script>
  692.     <!-- Moment -->
  693.     <script src="/admin/plugins/moment/moment-with-locales.js"></script>
  694.     <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.bundle.min.js"></script>
  695.     <script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.js"></script>
  696.     <script src="/js/swiper-js/swiper.min.js"></script>
  697.     <script src="/js/offer-new.js?v={{ offer_new_js_version }}"/>
  698.     <script src="https://api-maps.yandex.ru/2.1/?lang=ru_RU" type="text/javascript"></script>
  699.     <script src="https://yastatic.net/es5-shims/0.0.2/es5-shims.min.js"></script>
  700.     <script src="https://yastatic.net/share2/share.js"></script>
  701.     <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.countdown/2.2.0/jquery.countdown.js"></script>
  702.     <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.maskedinput/1.4.1/jquery.maskedinput.min.js"></script>
  703.     <script src="https://cdnjs.cloudflare.com/ajax/libs/fecha/2.3.3/fecha.min.js"></script>
  704.     <script src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js"></script>
  705.     <!-- date-time-picker -->
  706.     <script src="/admin/plugins/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
  707.     <!-- colorpicker -->
  708.     <script src="/admin/plugins/colorpicker/bootstrap-colorpicker.min.js"></script>
  709.     <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-toast-plugin/1.3.2/jquery.toast.min.js"
  710.             integrity="sha512-zlWWyZq71UMApAjih4WkaRpikgY9Bz1oXIW5G0fED4vk14JjGlQ1UmkGM392jEULP8jbNMiwLWdM8Z87Hu88Fw=="
  711.             crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  712.     <script src="/mobile/js/offer.min.js?v={{ offer_js_version }}"></script>
  713.     <script type="text/javascript" src="/js/statistics_offer/statistics_offer.js?v={{ statistics_offer_js_version }}" charset="utf-8"></script>
  714.     <script src="https://cdnjs.cloudflare.com/ajax/libs/easy-pie-chart/2.1.6/jquery.easypiechart.min.js" integrity="sha512-DHNepbIus9t4e6YoMBSJLwl+nnm0tIwMBonsQQ+W9NKN6gVVVbomJs9Ii3mQ+HzGZiU5FyJLdnAz9a63ZgZvTQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  715.     <script src="https://cdnjs.cloudflare.com/ajax/libs/easy-pie-chart/2.1.6/easypiechart.min.js" integrity="sha512-1yldf7W5suy0ko2u4OGU1qyeGrzh9+A3uyWGH4ws8MbndaWxZsgnzy6uqqBq7NUU/ImI1Js5kqDbunovCN1JqA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  716.     <script src="/js/ajaxupload.3.5.js?v=1"></script>
  717.     <script src="/js/mobile-rating.js?v=2"></script>
  718.     <script>
  719.         uploadPhoto('/comment/image_upload', '/comment/image_remove');
  720.         initImageRemove();
  721.     </script>
  722.     <script type="text/javascript">
  723.         {% if app.request.query.has('checkOrder') %}
  724.         initCheckOfferOrderStatus({{ app.request.get('checkOrder') }});
  725.         {% endif %}
  726.     </script>
  727.     <script src="/js/offer/offerDescriptionItems.js?v={{ offer_description_items_js_version }}"></script>
  728.     <script type="module" src="/js/work_examples/work_examples.js?v={{ work_examples_js_version }}"></script>
  729.     <script type="module" src="/js/beauty/masters.js?v={{ beauty_masters_js_version }}"></script>
  730. {% endblock %}
  731. {% block RTBHouse %}
  732.     <script>
  733.         try{ (function() {
  734.             var prefix = "", hash = "TS5TS2S9bdSbgKBA4Q2H", rtbhTags = []; rtbhTags.push("pr_"+hash+"_offer_"+document.getElementById('offerID').value); rtbhTags.push("pr_"+hash+"_uid_"+document.getElementById('rtbhUID').value);
  735.             var key = "__rtbhouse.lid", lid = window.localStorage.getItem(key); if (!lid) {
  736.                 lid = ""; var pool = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  737.                 for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
  738.             rtbhTags.push("pr_"+hash+"_lid_" + lid);
  739.             var ifr = document.createElement("iframe"),
  740.                 sr = encodeURIComponent(document.referrer ? document.referrer : ""),
  741.                 su = encodeURIComponent(document.location.href ? document.location.href : ""),
  742.                 ifrSrc = "https://"+prefix+"creativecdn.com/tags?type=iframe", tmstmp = encodeURIComponent("" + Date.now()); for(var i=0; i<rtbhTags.length; i++) {ifrSrc += "&id=" + encodeURIComponent(rtbhTags[i]);}
  743.             ifrSrc += "&su=" + su + "&sr=" + sr + "&ts=" + tmstmp;
  744.             ifr.setAttribute("src", ifrSrc); ifr.setAttribute("width", "1");
  745.             ifr.setAttribute("height", "1"); ifr.setAttribute("scrolling", "no");
  746.             ifr.setAttribute("frameBorder", "0"); ifr.setAttribute("style", "display:none");
  747.             ifr.setAttribute("referrerpolicy", "no-referrer-when-downgrade"); if(document.body){document.body.appendChild(ifr);}
  748.             else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
  749.         })();} catch(e) {} </script>
  750. {% endblock %}