{% extends 'Slivki/mobile/base.html.twig' %}
{% block styles %}
{% if tourismHotFeed is defined and tourismHotFeed|length > 0 %}
<link rel="stylesheet" href="/css/swiper/swiper.min.css" />
{% endif %}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.css" />
{{ parent() }}
{% endblock %}
{% block title %}{{ parent() }}{{ currentPage is defined and currentPage != 1 ? ' - Страница №' ~ currentPage }}{% endblock %}
{% block content %}
<input id="isCategoryPageMobile" type="hidden">
{% if tourismHotFeed is defined and tourismHotFeed|length > 0 %}
<div id="mainHotFeed" class="px-1 position-relative">
<h6 class="clearfix">
<span class="blink text-slivki">·</span>
<div class="d-inline-block alt-bold-font">ГОРЯЩИЕ И НОВЫЕ ТУРЫ</div>
</h6>
<div id="mainHotFeedSlider" class="swiper-container" data-offset="0" data-type="{{ constant('Slivki\\Entity\\HotFeed::TYPE_OFFER_TOURISM_PAGE') }}">
<div class="swiper-wrapper">
{{ tourismHotFeed|raw }}
</div>
<div class="swiper-button swiper-button-prev"></div>
<div class="swiper-button swiper-button-next"></div>
</div>
</div>
{% endif %}
<div class="px-1">
{% set categoryBanner = app.user and app.user.hasRole(constant('\\Slivki\\Entity\\UserGroup::ROLE_ADS_FREE')) ? ''
: getCategoryBanner(categoryID) %}
{{ category|replace({'<div id="categoryBannerPlaceholder"></div>': categoryBanner})|raw }}
</div>
{% if lastMonthPurchaseCount is defined %}
<input id="lastMonthPurchaseCount" type="hidden" value="{{ lastMonthPurchaseCount|json_encode }}">
{% endif %}
{% endblock %}
{% block javascripts %}
{% if tourismHotFeed is defined and tourismHotFeed|length > 0 %}
<script src="/js/swiper-js/swiper.min.js"></script>
{% endif %}
<script src="https://api-maps.yandex.ru/2.1/?lang=ru_RU" type="text/javascript"></script>
<script src="https://yastatic.net/es5-shims/0.0.2/es5-shims.min.js"></script>
<script src="https://yastatic.net/share2/share.js"></script>
<script src="//mourner.github.io/simplify-js/simplify.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.js"></script>
{{ parent() }}
<script type="module" src="/mobile/js/category.min.js?v={{ mobile_category_js_version }}"></script>
<script type="module" type="text/javascript" src="/js/work_examples/work_examples.js?v={{ work_examples_js_version }}"></script>
{% endblock %}
{% block popup %}
{{ parent() }}
{% include 'Slivki/mobile/share_block.html.twig' %}
{% endblock %}
{% block brandingBanner %}
{% if not (app.user and app.user.hasRole(constant('\\Slivki\\Entity\\UserGroup::ROLE_ADS_FREE'))) %}
{% set brandingBanner = getBrandingBanner(app.user, brandingBannerCategoryIDs is defined ? brandingBannerCategoryIDs : []) %}
{% if brandingBanner and brandingBanner.getMobileDivider() %}
<input type="hidden" id="brandingBannerImage" value="{{ brandingBanner.getMobileDivider() }}"
data-oid="{{ brandingBanner.getID() }}" data-id="{{ brandingBanner.getBannerID() }}"
data-branding="{{ brandingBanner.getBannerID() }}" data-url="{{ brandingBanner.getUrl()|trim }}"
data-right-side-url="{{ brandingBanner.getRightSideUrl()|trim }}">
{% endif %}
{% endif %}
{% endblock %}
{% block RTBHouse %}
{% if categoryID == constant('Slivki\\Entity\\Category::NEW_OFFER_CATEGORY_ID') %}
<script>
try{ (function() {
var prefix = "", hash = "TS5TS2S9bdSbgKBA4Q2H", rtbhTags = []; rtbhTags.push("pr_"+hash+"_newoffers"); rtbhTags.push("pr_"+hash+"_uid_"+document.getElementById('rtbhUID').value);
var key = "__rtbhouse.lid", lid = window.localStorage.getItem(key); if (!lid) {
lid = ""; var pool = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
rtbhTags.push("pr_"+hash+"_lid_" + lid);
var ifr = document.createElement("iframe"),
sr = encodeURIComponent(document.referrer ? document.referrer : ""),
su = encodeURIComponent(document.location.href ? document.location.href : ""),
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]);}
ifrSrc += "&su=" + su + "&sr=" + sr + "&ts=" + tmstmp;
ifr.setAttribute("src", ifrSrc); ifr.setAttribute("width", "1");
ifr.setAttribute("height", "1"); ifr.setAttribute("scrolling", "no");
ifr.setAttribute("frameBorder", "0"); ifr.setAttribute("style", "display:none");
ifr.setAttribute("referrerpolicy", "no-referrer-when-downgrade"); if(document.body){document.body.appendChild(ifr);}
else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
})();} catch(e) {} </script>
{% else %}
<script>
try{ (function() {
var prefix = "", hash = "TS5TS2S9bdSbgKBA4Q2H", rtbhTags = []; rtbhTags.push("pr_"+hash+"_category2_"+document.getElementById('categoryID').value); rtbhTags.push("pr_"+hash+"_uid_"+document.getElementById('rtbhUID').value);
var key = "__rtbhouse.lid", lid = window.localStorage.getItem(key); if (!lid) {
lid = ""; var pool = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
rtbhTags.push("pr_"+hash+"_lid_" + lid);
var ifr = document.createElement("iframe"),
sr = encodeURIComponent(document.referrer ? document.referrer : ""),
su = encodeURIComponent(document.location.href ? document.location.href : ""),
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]);}
ifrSrc += "&su=" + su + "&sr=" + sr + "&ts=" + tmstmp;
ifr.setAttribute("src", ifrSrc); ifr.setAttribute("width", "1");
ifr.setAttribute("height", "1"); ifr.setAttribute("scrolling", "no");
ifr.setAttribute("frameBorder", "0"); ifr.setAttribute("style", "display:none");
ifr.setAttribute("referrerpolicy", "no-referrer-when-downgrade"); if(document.body){document.body.appendChild(ifr);}
else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
})();} catch(e) {} </script>
{% endif %}
{% endblock %}