<?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/offers/category_page.html.twig */
class __TwigTemplate_2c3a56e9e5d7fc0f42445c8835ef4615ba734018918ea5a55bbcbedffc811b94 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'left_sidebar' => [$this, 'block_left_sidebar'],
'mainColumnClass' => [$this, 'block_mainColumnClass'],
'topContentBlock' => [$this, 'block_topContentBlock'],
'main_content' => [$this, 'block_main_content'],
'javascripts' => [$this, 'block_javascripts'],
'RTBHouse' => [$this, 'block_RTBHouse'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "Slivki/index.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/offers/category_page.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/offers/category_page.html.twig"));
$this->parent = $this->loadTemplate("Slivki/index.html.twig", "Slivki/offers/category_page.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_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.', 3, $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.', 3, $this->source); })())), "html", null, true))) : (print ("")));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
public function block_left_sidebar($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", "left_sidebar"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "left_sidebar"));
// line 6
echo " ";
if ((0 === twig_compare(twig_constant("\\Slivki\\Entity\\Category::NEW_YEAR_CATEGORY_ID"), (isset($context["categoryID"]) || array_key_exists("categoryID", $context) ? $context["categoryID"] : (function () { throw new RuntimeError('Variable "categoryID" does not exist.', 6, $this->source); })())))) {
// line 7
echo " ";
echo $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getSidebar($this->env, twig_constant("\\Slivki\\Entity\\Category::NEW_YEAR_SALE_CATEGORY_ID"));
echo "
";
} else {
// line 9
echo " ";
$this->displayParentBlock("left_sidebar", $context, $blocks);
echo "
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 12
public function block_mainColumnClass($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", "mainColumnClass"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainColumnClass"));
$this->displayParentBlock("mainColumnClass", $context, $blocks);
echo "category-page";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 13
public function block_topContentBlock($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", "topContentBlock"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "topContentBlock"));
// line 14
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.', 14, $this->source); })())), 0)))) {
// line 15
echo " <div class=\"top-content-block clearfix category-hotfeed-wrapper\">
<div id=\"mainHotFeed\">
<div class=\"title\"><i> </i> ГОРЯЩИЕ И НОВЫЕ ТУРЫ</div>
<div class=\"tourism-hotfeed swiper-container\" id=\"mainHotFeedSlider\" data-offset=\"0\" data-type=\"";
// line 18
echo twig_escape_filter($this->env, twig_constant("Slivki\\Entity\\HotFeed::TYPE_OFFER_TOURISM_PAGE"), "html", null, true);
echo "\">
<div class=\"swiper-wrapper\">
";
// line 20
echo (isset($context["tourismHotFeed"]) || array_key_exists("tourismHotFeed", $context) ? $context["tourismHotFeed"] : (function () { throw new RuntimeError('Variable "tourismHotFeed" does not exist.', 20, $this->source); })());
echo "
</div>
<div class=\"swiper-button swiper-button-prev\"></div>
<div class=\"swiper-button swiper-button-next\"></div>
</div>
</div>
</div>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 29
public function block_main_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", "main_content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main_content"));
// line 30
echo " ";
// line 31
echo " ";
if ((0 === twig_compare((isset($context["categoryID"]) || array_key_exists("categoryID", $context) ? $context["categoryID"] : (function () { throw new RuntimeError('Variable "categoryID" does not exist.', 31, $this->source); })()), twig_constant("Slivki\\Entity\\Category::TOP_CATEGORY_ID")))) {
// line 32
echo " ";
$context["abValue"] = 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); })()), "session", [], "any", false, false, false, 32), "get", [0 => "rodenTeaserBannerABTest", 1 => "0"], "method", false, false, false, 32);
// line 33
echo " ";
$context["utmCampaign"] = "utm_campaign=abw-woman";
// line 34
echo " ";
$context["imgUri"] = "/roden-lady.jpg";
// line 35
echo " ";
if ((0 === twig_compare((isset($context["abValue"]) || array_key_exists("abValue", $context) ? $context["abValue"] : (function () { throw new RuntimeError('Variable "abValue" does not exist.', 35, $this->source); })()), 0))) {
// line 36
echo " ";
$context["utmCampaign"] = "utm_campaign=abw-vip";
// line 37
echo " ";
$context["imgUri"] = "/roden-vip.jpg";
// line 38
echo " ";
echo twig_escape_filter($this->env, 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.', 38, $this->source); })()), "session", [], "any", false, false, false, 38), "set", [0 => "rodenTeaserBannerABTest", 1 => 1], "method", false, false, false, 38), "html", null, true);
echo "
";
} else {
// line 40
echo " ";
echo twig_escape_filter($this->env, 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.', 40, $this->source); })()), "session", [], "any", false, false, false, 40), "set", [0 => "rodenTeaserBannerABTest", 1 => 0], "method", false, false, false, 40), "html", null, true);
echo "
";
}
// line 42
echo " ";
$context["category"] = twig_replace_filter((isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 42, $this->source); })()), ["utm_campaign=roden_pop" => (isset($context["utmCampaign"]) || array_key_exists("utmCampaign", $context) ? $context["utmCampaign"] : (function () { throw new RuntimeError('Variable "utmCampaign" does not exist.', 42, $this->source); })()), "/slivki-img/1496324948_.jpg" => (isset($context["imgUri"]) || array_key_exists("imgUri", $context) ? $context["imgUri"] : (function () { throw new RuntimeError('Variable "imgUri" does not exist.', 42, $this->source); })())]);
// line 43
echo " ";
$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.', 43, $this->source); })()), "user", [], "any", false, false, false, 43) && 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.', 43, $this->source); })()), "user", [], "any", false, false, false, 43), "hasRole", [0 => twig_constant("\\Slivki\\Entity\\UserGroup::ROLE_ADS_FREE")], "method", false, false, false, 43))) ? ("") : ($this->extensions['Slivki\Twig\SlivkiTwigExtension']->getCategoryBanner( // line 44
(isset($context["categoryID"]) || array_key_exists("categoryID", $context) ? $context["categoryID"] : (function () { throw new RuntimeError('Variable "categoryID" does not exist.', 44, $this->source); })()))));
// line 45
echo " ";
$context["category"] = twig_replace_filter((isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 45, $this->source); })()), ["<div id=\"category-banner-placeholder\" style=\"display:none\"></div>" => (isset($context["categoryBanner"]) || array_key_exists("categoryBanner", $context) ? $context["categoryBanner"] : (function () { throw new RuntimeError('Variable "categoryBanner" does not exist.', 45, $this->source); })())]);
// line 46
echo " ";
}
// line 47
echo " ";
// line 48
echo "
";
// line 49
if ((array_key_exists("isWorst", $context) && (isset($context["isWorst"]) || array_key_exists("isWorst", $context) ? $context["isWorst"] : (function () { throw new RuntimeError('Variable "isWorst" does not exist.', 49, $this->source); })()))) {
// line 50
echo " <p class=\"text-danger text-center\">Информация об акциях с плохими условиями видна только Партнерам сайта. Пользователям информация недоступна.</p>
";
}
// line 52
echo "
";
// line 53
echo (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 53, $this->source); })());
echo "
";
// line 55
if (array_key_exists("lastMonthPurchaseCount", $context)) {
// line 56
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.', 56, $this->source); })())), "html", null, true);
echo "\">
";
}
// line 58
echo " ";
if (array_key_exists("worstViewer", $context)) {
// line 59
echo " <input id=\"worstViewer\" type=\"hidden\">
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 63
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 64
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
// line 66
echo " <script src=\"//mourner.github.io/simplify-js/simplify.js\"></script>
<script type=\"text/javascript\" src=\"//yastatic.net/share2/share.js\" charset=\"utf-8\"></script>
";
// line 68
if ((0 !== twig_compare((isset($context["categoryID"]) || array_key_exists("categoryID", $context) ? $context["categoryID"] : (function () { throw new RuntimeError('Variable "categoryID" does not exist.', 68, $this->source); })()), twig_constant("Slivki\\Entity\\Category::TOURISM_CATEGORY_ID")))) {
// line 69
echo " <script type=\"module\" src=\"/js/category.js?v=";
echo twig_escape_filter($this->env, (isset($context["category_js_version"]) || array_key_exists("category_js_version", $context) ? $context["category_js_version"] : (function () { throw new RuntimeError('Variable "category_js_version" does not exist.', 69, $this->source); })()), "html", null, true);
echo "\" type=\"text/javascript\"></script>
";
}
// line 71
echo " <script type=\"module\" type=\"text/javascript\" src=\"/js/work_examples/work_examples.js?v=";
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.', 71, $this->source); })()), "html", null, true);
echo "\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 74
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 75
echo " ";
if ((0 === twig_compare((isset($context["categoryID"]) || array_key_exists("categoryID", $context) ? $context["categoryID"] : (function () { throw new RuntimeError('Variable "categoryID" does not exist.', 75, $this->source); })()), twig_constant("Slivki\\Entity\\Category::NEW_OFFER_CATEGORY_ID")))) {
// line 76
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 95
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/offers/category_page.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 353 => 95, 332 => 76, 329 => 75, 319 => 74, 306 => 71, 300 => 69, 298 => 68, 294 => 66, 289 => 64, 279 => 63, 267 => 59, 264 => 58, 258 => 56, 256 => 55, 251 => 53, 248 => 52, 244 => 50, 242 => 49, 239 => 48, 237 => 47, 234 => 46, 231 => 45, 229 => 44, 227 => 43, 224 => 42, 218 => 40, 212 => 38, 209 => 37, 206 => 36, 203 => 35, 200 => 34, 197 => 33, 194 => 32, 191 => 31, 189 => 30, 179 => 29, 160 => 20, 155 => 18, 150 => 15, 147 => 14, 137 => 13, 117 => 12, 103 => 9, 97 => 7, 94 => 6, 84 => 5, 64 => 3, 41 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'Slivki/index.html.twig' %}
{% block title %}{{ parent() }}{{ currentPage is defined and currentPage != 1 ? ' - Страница №' ~ currentPage }}{% endblock %}
{% block left_sidebar %}
{% if constant('\\\\Slivki\\\\Entity\\\\Category::NEW_YEAR_CATEGORY_ID') == categoryID %}
{{ getSidebar(constant('\\\\Slivki\\\\Entity\\\\Category::NEW_YEAR_SALE_CATEGORY_ID')) }}
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}
{% block mainColumnClass %}{{ parent() }}category-page{% endblock %}
{% block topContentBlock %}
{% if tourismHotFeed is defined and tourismHotFeed|length > 0 %}
<div class=\"top-content-block clearfix category-hotfeed-wrapper\">
<div id=\"mainHotFeed\">
<div class=\"title\"><i> </i> ГОРЯЩИЕ И НОВЫЕ ТУРЫ</div>
<div class=\"tourism-hotfeed swiper-container\" id=\"mainHotFeedSlider\" 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>
</div>
{% endif %}
{% endblock %}
{% block main_content %}
{# rodenTeaserBannerABTest #}
{% if categoryID == constant('Slivki\\\\Entity\\\\Category::TOP_CATEGORY_ID') %}
{% set abValue = app.session.get('rodenTeaserBannerABTest', '0') %}
{% set utmCampaign = 'utm_campaign=abw-woman' %}
{% set imgUri = '/roden-lady.jpg' %}
{% if abValue == 0 %}
{% set utmCampaign = 'utm_campaign=abw-vip' %}
{% set imgUri = '/roden-vip.jpg' %}
{{ app.session.set('rodenTeaserBannerABTest', 1) }}
{% else %}
{{ app.session.set('rodenTeaserBannerABTest', 0) }}
{% endif %}
{% set category = category|replace({'utm_campaign=roden_pop': utmCampaign, '/slivki-img/1496324948_.jpg': imgUri}) %}
{% set categoryBanner = app.user and app.user.hasRole(constant('\\\\Slivki\\\\Entity\\\\UserGroup::ROLE_ADS_FREE')) ? ''
: getCategoryBanner(categoryID) %}
{% set category = category|replace({'<div id=\"category-banner-placeholder\" style=\"display:none\"></div>': categoryBanner}) %}
{% endif %}
{# end rodenTeaserBannerABTest #}
{% if isWorst is defined and isWorst %}
<p class=\"text-danger text-center\">Информация об акциях с плохими условиями видна только Партнерам сайта. Пользователям информация недоступна.</p>
{% endif %}
{{ category|raw }}
{% if lastMonthPurchaseCount is defined %}
<input id=\"lastMonthPurchaseCount\" type=\"hidden\" value=\"{{ lastMonthPurchaseCount|json_encode }}\">
{% endif %}
{% if worstViewer is defined %}
<input id=\"worstViewer\" type=\"hidden\">
{% endif %}
{% endblock %}
{% block javascripts %}
{{ parent() }}
{# <script src=\"//api-maps.yandex.ru/2.1.29/?lang=ru-RU\" type=\"text/javascript\"></script>#}
<script src=\"//mourner.github.io/simplify-js/simplify.js\"></script>
<script type=\"text/javascript\" src=\"//yastatic.net/share2/share.js\" charset=\"utf-8\"></script>
{% if categoryID != constant('Slivki\\\\Entity\\\\Category::TOURISM_CATEGORY_ID') %}
<script type=\"module\" src=\"/js/category.js?v={{ category_js_version }}\" type=\"text/javascript\"></script>
{% endif %}
<script type=\"module\" type=\"text/javascript\" src=\"/js/work_examples/work_examples.js?v={{ work_examples_js_version }}\"></script>
{% 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/offers/category_page.html.twig", "/mnt/data/virtwww/vlad-slivki/templates/Slivki/offers/category_page.html.twig");
}
}