<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Slivki/mobile/offer/category.html.twig */
class __TwigTemplate_d4685344a53bea4ef9035dbe79e812b444f528b3424915435660267be4a8993a extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'styles' => [$this, 'block_styles'],
'title' => [$this, 'block_title'],
'content' => [$this, 'block_content'],
'javascripts' => [$this, 'block_javascripts'],
'popup' => [$this, 'block_popup'],
'brandingBanner' => [$this, 'block_brandingBanner'],
'RTBHouse' => [$this, 'block_RTBHouse'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "Slivki/mobile/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Slivki/mobile/offer/category.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Slivki/mobile/offer/category.html.twig"));
$this->parent = $this->loadTemplate("Slivki/mobile/base.html.twig", "Slivki/mobile/offer/category.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_styles($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "styles"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "styles"));
// line 4
echo " ";
if ((array_key_exists("tourismHotFeed", $context) && (1 === twig_compare(twig_length_filter($this->env, (isset($context["tourismHotFeed"]) || array_key_exists("tourismHotFeed", $context) ? $context["tourismHotFeed"] : (function () { throw new RuntimeError('Variable "tourismHotFeed" does not exist.', 4, $this->source); })())), 0)))) {
// line 5
echo " <link rel=\"stylesheet\" href=\"/css/swiper/swiper.min.css\" />
";
}
// line 7
echo " <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.css\" />
";
// line 8
$this->displayParentBlock("styles", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 11
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$this->displayParentBlock("title", $context, $blocks);
(((array_key_exists("currentPage", $context) && (0 !== twig_compare((isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 11, $this->source); })()), 1)))) ? (print (twig_escape_filter($this->env, (" - Страница №" . (isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 11, $this->source); })())), "html", null, true))) : (print ("")));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 13
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 14
echo " <input id=\"isCategoryPageMobile\" type=\"hidden\">
";
// line 15
if ((array_key_exists("tourismHotFeed", $context) && (1 === twig_compare(twig_length_filter($this->env, (isset($context["tourismHotFeed"]) || array_key_exists("tourismHotFeed", $context) ? $context["tourismHotFeed"] : (function () { throw new RuntimeError('Variable "tourismHotFeed" does not exist.', 15, $this->source); })())), 0)))) {
// line 16
echo " <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=\"";
// line 21
echo twig_escape_filter($this->env, twig_constant("Slivki\\Entity\\HotFeed::TYPE_OFFER_TOURISM_PAGE"), "html", null, true);
echo "\">
<div class=\"swiper-wrapper\">
";
// line 23
echo (isset($context["tourismHotFeed"]) || array_key_exists("tourismHotFeed", $context) ? $context["tourismHotFeed"] : (function () { throw new RuntimeError('Variable "tourismHotFeed" does not exist.', 23, $this->source); })());
echo "
</div>
<div class=\"swiper-button swiper-button-prev\"></div>
<div class=\"swiper-button swiper-button-next\"></div>
</div>
</div>
";
}
// line 30
echo "
<div class=\"px-1\">
";
// line 32
$context["categoryBanner"] = (((twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 32, $this->source); })()), "user", [], "any", false, false, false, 32) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 32, $this->source); })()), "user", [], "any", false, false, false, 32), "hasRole", [0 => twig_constant("\\Slivki\\Entity\\UserGroup::ROLE_ADS_FREE")], "method", false, false, false, 32))) ? ("") : ($this->extensions['Slivki\Twig\SlivkiTwigExtension']->getCategoryBanner( // line 33
(isset($context["categoryID"]) || array_key_exists("categoryID", $context) ? $context["categoryID"] : (function () { throw new RuntimeError('Variable "categoryID" does not exist.', 33, $this->source); })()))));
// line 34
echo " ";
echo twig_replace_filter((isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 34, $this->source); })()), ["<div id=\"categoryBannerPlaceholder\"></div>" => (isset($context["categoryBanner"]) || array_key_exists("categoryBanner", $context) ? $context["categoryBanner"] : (function () { throw new RuntimeError('Variable "categoryBanner" does not exist.', 34, $this->source); })())]);
echo "
</div>
";
// line 37
if (array_key_exists("lastMonthPurchaseCount", $context)) {
// line 38
echo " <input id=\"lastMonthPurchaseCount\" type=\"hidden\" value=\"";
echo twig_escape_filter($this->env, json_encode((isset($context["lastMonthPurchaseCount"]) || array_key_exists("lastMonthPurchaseCount", $context) ? $context["lastMonthPurchaseCount"] : (function () { throw new RuntimeError('Variable "lastMonthPurchaseCount" does not exist.', 38, $this->source); })())), "html", null, true);
echo "\">
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 42
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 43
echo " ";
if ((array_key_exists("tourismHotFeed", $context) && (1 === twig_compare(twig_length_filter($this->env, (isset($context["tourismHotFeed"]) || array_key_exists("tourismHotFeed", $context) ? $context["tourismHotFeed"] : (function () { throw new RuntimeError('Variable "tourismHotFeed" does not exist.', 43, $this->source); })())), 0)))) {
// line 44
echo " <script src=\"/js/swiper-js/swiper.min.js\"></script>
";
}
// line 46
echo " <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>
";
// line 51
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script type=\"module\" src=\"/mobile/js/category.min.js?v=";
// line 52
echo twig_escape_filter($this->env, (isset($context["mobile_category_js_version"]) || array_key_exists("mobile_category_js_version", $context) ? $context["mobile_category_js_version"] : (function () { throw new RuntimeError('Variable "mobile_category_js_version" does not exist.', 52, $this->source); })()), "html", null, true);
echo "\"></script>
<script type=\"module\" type=\"text/javascript\" src=\"/js/work_examples/work_examples.js?v=";
// line 53
echo twig_escape_filter($this->env, (isset($context["work_examples_js_version"]) || array_key_exists("work_examples_js_version", $context) ? $context["work_examples_js_version"] : (function () { throw new RuntimeError('Variable "work_examples_js_version" does not exist.', 53, $this->source); })()), "html", null, true);
echo "\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 56
public function block_popup($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "popup"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "popup"));
// line 57
echo " ";
$this->displayParentBlock("popup", $context, $blocks);
echo "
";
// line 58
$this->loadTemplate("Slivki/mobile/share_block.html.twig", "Slivki/mobile/offer/category.html.twig", 58)->display($context);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 60
public function block_brandingBanner($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "brandingBanner"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "brandingBanner"));
// line 61
echo " ";
if ( !(twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 61, $this->source); })()), "user", [], "any", false, false, false, 61) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 61, $this->source); })()), "user", [], "any", false, false, false, 61), "hasRole", [0 => twig_constant("\\Slivki\\Entity\\UserGroup::ROLE_ADS_FREE")], "method", false, false, false, 61))) {
// line 62
echo " ";
$context["brandingBanner"] = $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getBrandingBanner($this->env, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 62, $this->source); })()), "user", [], "any", false, false, false, 62), ((array_key_exists("brandingBannerCategoryIDs", $context)) ? ((isset($context["brandingBannerCategoryIDs"]) || array_key_exists("brandingBannerCategoryIDs", $context) ? $context["brandingBannerCategoryIDs"] : (function () { throw new RuntimeError('Variable "brandingBannerCategoryIDs" does not exist.', 62, $this->source); })())) : ([])));
// line 63
echo " ";
if (((isset($context["brandingBanner"]) || array_key_exists("brandingBanner", $context) ? $context["brandingBanner"] : (function () { throw new RuntimeError('Variable "brandingBanner" does not exist.', 63, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["brandingBanner"]) || array_key_exists("brandingBanner", $context) ? $context["brandingBanner"] : (function () { throw new RuntimeError('Variable "brandingBanner" does not exist.', 63, $this->source); })()), "getMobileDivider", [], "method", false, false, false, 63))) {
// line 64
echo " <input type=\"hidden\" id=\"brandingBannerImage\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["brandingBanner"]) || array_key_exists("brandingBanner", $context) ? $context["brandingBanner"] : (function () { throw new RuntimeError('Variable "brandingBanner" does not exist.', 64, $this->source); })()), "getMobileDivider", [], "method", false, false, false, 64), "html", null, true);
echo "\"
data-oid=\"";
// line 65
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["brandingBanner"]) || array_key_exists("brandingBanner", $context) ? $context["brandingBanner"] : (function () { throw new RuntimeError('Variable "brandingBanner" does not exist.', 65, $this->source); })()), "getID", [], "method", false, false, false, 65), "html", null, true);
echo "\" data-id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["brandingBanner"]) || array_key_exists("brandingBanner", $context) ? $context["brandingBanner"] : (function () { throw new RuntimeError('Variable "brandingBanner" does not exist.', 65, $this->source); })()), "getBannerID", [], "method", false, false, false, 65), "html", null, true);
echo "\"
data-branding=\"";
// line 66
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["brandingBanner"]) || array_key_exists("brandingBanner", $context) ? $context["brandingBanner"] : (function () { throw new RuntimeError('Variable "brandingBanner" does not exist.', 66, $this->source); })()), "getBannerID", [], "method", false, false, false, 66), "html", null, true);
echo "\" data-url=\"";
echo twig_escape_filter($this->env, twig_trim_filter(twig_get_attribute($this->env, $this->source, (isset($context["brandingBanner"]) || array_key_exists("brandingBanner", $context) ? $context["brandingBanner"] : (function () { throw new RuntimeError('Variable "brandingBanner" does not exist.', 66, $this->source); })()), "getUrl", [], "method", false, false, false, 66)), "html", null, true);
echo "\"
data-right-side-url=\"";
// line 67
echo twig_escape_filter($this->env, twig_trim_filter(twig_get_attribute($this->env, $this->source, (isset($context["brandingBanner"]) || array_key_exists("brandingBanner", $context) ? $context["brandingBanner"] : (function () { throw new RuntimeError('Variable "brandingBanner" does not exist.', 67, $this->source); })()), "getRightSideUrl", [], "method", false, false, false, 67)), "html", null, true);
echo "\">
";
}
// line 69
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 71
public function block_RTBHouse($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "RTBHouse"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "RTBHouse"));
// line 72
echo " ";
if ((0 === twig_compare((isset($context["categoryID"]) || array_key_exists("categoryID", $context) ? $context["categoryID"] : (function () { throw new RuntimeError('Variable "categoryID" does not exist.', 72, $this->source); })()), twig_constant("Slivki\\Entity\\Category::NEW_OFFER_CATEGORY_ID")))) {
// line 73
echo " <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 {
// line 92
echo " <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>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Slivki/mobile/offer/category.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 338 => 92, 317 => 73, 314 => 72, 304 => 71, 293 => 69, 288 => 67, 282 => 66, 276 => 65, 271 => 64, 268 => 63, 265 => 62, 262 => 61, 252 => 60, 242 => 58, 237 => 57, 227 => 56, 215 => 53, 211 => 52, 207 => 51, 200 => 46, 196 => 44, 193 => 43, 183 => 42, 169 => 38, 167 => 37, 160 => 34, 158 => 33, 157 => 32, 153 => 30, 143 => 23, 138 => 21, 131 => 16, 129 => 15, 126 => 14, 116 => 13, 96 => 11, 84 => 8, 81 => 7, 77 => 5, 74 => 4, 64 => 3, 41 => 1,);
}
public function getSourceContext()
{
return new Source("{% 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 %}", "Slivki/mobile/offer/category.html.twig", "/mnt/data/virtwww/test/templates/Slivki/mobile/offer/category.html.twig");
}
}