var/cache/dev/twig/54/54157fffd8f835b43786431310360ba09affd872982f02e8fa0dd128aada3481.php line 44

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Slivki/offers/category_page.html.twig */
  14. class __TwigTemplate_2c3a56e9e5d7fc0f42445c8835ef4615ba734018918ea5a55bbcbedffc811b94 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'left_sidebar' => [$this'block_left_sidebar'],
  25.             'mainColumnClass' => [$this'block_mainColumnClass'],
  26.             'topContentBlock' => [$this'block_topContentBlock'],
  27.             'main_content' => [$this'block_main_content'],
  28.             'javascripts' => [$this'block_javascripts'],
  29.             'RTBHouse' => [$this'block_RTBHouse'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context)
  33.     {
  34.         // line 1
  35.         return "Slivki/index.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = [])
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/offers/category_page.html.twig"));
  42.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/offers/category_page.html.twig"));
  44.         $this->parent $this->loadTemplate("Slivki/index.html.twig""Slivki/offers/category_page.html.twig"1);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  48.         
  49.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  50.     }
  51.     // line 3
  52.     public function block_title($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  59.         $this->displayParentBlock("title"$context$blocks);
  60.         (((array_key_exists("currentPage"$context) && (!== 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"nulltrue))) : (print ("")));
  61.         
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  63.         
  64.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  65.     }
  66.     // line 5
  67.     public function block_left_sidebar($context, array $blocks = [])
  68.     {
  69.         $macros $this->macros;
  70.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  71.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""left_sidebar"));
  72.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  73.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""left_sidebar"));
  74.         // line 6
  75.         echo "    ";
  76.         if ((=== 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); })())))) {
  77.             // line 7
  78.             echo "        ";
  79.             echo $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getSidebar($this->envtwig_constant("\\Slivki\\Entity\\Category::NEW_YEAR_SALE_CATEGORY_ID"));
  80.             echo "
  81.     ";
  82.         } else {
  83.             // line 9
  84.             echo "        ";
  85.             $this->displayParentBlock("left_sidebar"$context$blocks);
  86.             echo "
  87.     ";
  88.         }
  89.         
  90.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  91.         
  92.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  93.     }
  94.     // line 12
  95.     public function block_mainColumnClass($context, array $blocks = [])
  96.     {
  97.         $macros $this->macros;
  98.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  99.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainColumnClass"));
  100.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  101.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainColumnClass"));
  102.         $this->displayParentBlock("mainColumnClass"$context$blocks);
  103.         echo "category-page";
  104.         
  105.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  106.         
  107.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  108.     }
  109.     // line 13
  110.     public function block_topContentBlock($context, array $blocks = [])
  111.     {
  112.         $macros $this->macros;
  113.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  114.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""topContentBlock"));
  115.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  116.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""topContentBlock"));
  117.         // line 14
  118.         echo "    ";
  119.         if ((array_key_exists("tourismHotFeed"$context) && (=== 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)))) {
  120.             // line 15
  121.             echo "        <div class=\"top-content-block clearfix category-hotfeed-wrapper\">
  122.             <div id=\"mainHotFeed\">
  123.                 <div class=\"title\"><i>&nbsp;</i> ГОРЯЩИЕ И НОВЫЕ ТУРЫ</div>
  124.                 <div class=\"tourism-hotfeed swiper-container\" id=\"mainHotFeedSlider\" data-offset=\"0\" data-type=\"";
  125.             // line 18
  126.             echo twig_escape_filter($this->envtwig_constant("Slivki\\Entity\\HotFeed::TYPE_OFFER_TOURISM_PAGE"), "html"nulltrue);
  127.             echo "\">
  128.                     <div class=\"swiper-wrapper\">
  129.                         ";
  130.             // line 20
  131.             echo (isset($context["tourismHotFeed"]) || array_key_exists("tourismHotFeed"$context) ? $context["tourismHotFeed"] : (function () { throw new RuntimeError('Variable "tourismHotFeed" does not exist.'20$this->source); })());
  132.             echo "
  133.                     </div>
  134.                     <div class=\"swiper-button swiper-button-prev\"></div>
  135.                     <div class=\"swiper-button swiper-button-next\"></div>
  136.                 </div>
  137.             </div>
  138.         </div>
  139.     ";
  140.         }
  141.         
  142.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  143.         
  144.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  145.     }
  146.     // line 29
  147.     public function block_main_content($context, array $blocks = [])
  148.     {
  149.         $macros $this->macros;
  150.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  151.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_content"));
  152.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  153.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_content"));
  154.         // line 30
  155.         echo "    ";
  156.         // line 31
  157.         echo "    ";
  158.         if ((=== 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")))) {
  159.             // line 32
  160.             echo "        ";
  161.             $context["abValue"] = twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse32), "get", [=> "rodenTeaserBannerABTest"=> "0"], "method"falsefalsefalse32);
  162.             // line 33
  163.             echo "        ";
  164.             $context["utmCampaign"] = "utm_campaign=abw-woman";
  165.             // line 34
  166.             echo "        ";
  167.             $context["imgUri"] = "/roden-lady.jpg";
  168.             // line 35
  169.             echo "        ";
  170.             if ((=== 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))) {
  171.                 // line 36
  172.                 echo "            ";
  173.                 $context["utmCampaign"] = "utm_campaign=abw-vip";
  174.                 // line 37
  175.                 echo "            ";
  176.                 $context["imgUri"] = "/roden-vip.jpg";
  177.                 // line 38
  178.                 echo "            ";
  179.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse38), "set", [=> "rodenTeaserBannerABTest"=> 1], "method"falsefalsefalse38), "html"nulltrue);
  180.                 echo "
  181.         ";
  182.             } else {
  183.                 // line 40
  184.                 echo "            ";
  185.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse40), "set", [=> "rodenTeaserBannerABTest"=> 0], "method"falsefalsefalse40), "html"nulltrue);
  186.                 echo "
  187.         ";
  188.             }
  189.             // line 42
  190.             echo "        ";
  191.             $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); })())]);
  192.             // line 43
  193.             echo "        ";
  194.             $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"falsefalsefalse43) && twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse43), "hasRole", [=> twig_constant("\\Slivki\\Entity\\UserGroup::ROLE_ADS_FREE")], "method"falsefalsefalse43))) ? ("") : ($this->extensions['Slivki\Twig\SlivkiTwigExtension']->getCategoryBanner(            // line 44
  195. (isset($context["categoryID"]) || array_key_exists("categoryID"$context) ? $context["categoryID"] : (function () { throw new RuntimeError('Variable "categoryID" does not exist.'44$this->source); })()))));
  196.             // line 45
  197.             echo "        ";
  198.             $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); })())]);
  199.             // line 46
  200.             echo "    ";
  201.         }
  202.         // line 47
  203.         echo "    ";
  204.         // line 48
  205.         echo "
  206.     ";
  207.         // line 49
  208.         echo (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'49$this->source); })());
  209.         echo "
  210.     ";
  211.         // line 51
  212.         if (array_key_exists("lastMonthPurchaseCount"$context)) {
  213.             // line 52
  214.             echo "        <input id=\"lastMonthPurchaseCount\" type=\"hidden\" value=\"";
  215.             echo twig_escape_filter($this->envjson_encode((isset($context["lastMonthPurchaseCount"]) || array_key_exists("lastMonthPurchaseCount"$context) ? $context["lastMonthPurchaseCount"] : (function () { throw new RuntimeError('Variable "lastMonthPurchaseCount" does not exist.'52$this->source); })())), "html"nulltrue);
  216.             echo "\">
  217.     ";
  218.         }
  219.         
  220.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  221.         
  222.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  223.     }
  224.     // line 56
  225.     public function block_javascripts($context, array $blocks = [])
  226.     {
  227.         $macros $this->macros;
  228.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  229.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  230.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  231.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  232.         // line 57
  233.         echo "    ";
  234.         $this->displayParentBlock("javascripts"$context$blocks);
  235.         echo "
  236. ";
  237.         // line 59
  238.         echo "        <script src=\"//mourner.github.io/simplify-js/simplify.js\"></script>
  239.         <script type=\"text/javascript\" src=\"//yastatic.net/share2/share.js\" charset=\"utf-8\"></script>
  240.         <script type=\"module\" src=\"/js/category.js?v=";
  241.         // line 61
  242.         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.'61$this->source); })()), "html"nulltrue);
  243.         echo "\" type=\"text/javascript\"></script>
  244.         <script type=\"module\" type=\"text/javascript\" src=\"/js/work_examples/work_examples.js?v=";
  245.         // line 62
  246.         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.'62$this->source); })()), "html"nulltrue);
  247.         echo "\"></script>
  248. ";
  249.         
  250.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  251.         
  252.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  253.     }
  254.     // line 65
  255.     public function block_RTBHouse($context, array $blocks = [])
  256.     {
  257.         $macros $this->macros;
  258.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  259.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""RTBHouse"));
  260.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  261.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""RTBHouse"));
  262.         // line 66
  263.         echo "    ";
  264.         if ((=== twig_compare((isset($context["categoryID"]) || array_key_exists("categoryID"$context) ? $context["categoryID"] : (function () { throw new RuntimeError('Variable "categoryID" does not exist.'66$this->source); })()), twig_constant("Slivki\\Entity\\Category::NEW_OFFER_CATEGORY_ID")))) {
  265.             // line 67
  266.             echo "        <script>
  267.             try{ (function() {
  268.                 var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = []; rtbhTags.push(\"pr_\"+hash+\"_newoffers\"); rtbhTags.push(\"pr_\"+hash+\"_uid_\"+document.getElementById('rtbhUID').value);
  269.                 var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key); if (!lid) {
  270.                     lid = \"\"; var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
  271.                     for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
  272.                 rtbhTags.push(\"pr_\"+hash+\"_lid_\" + lid);
  273.                 var ifr = document.createElement(\"iframe\"),
  274.                     sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
  275.                     su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
  276.                     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]);}
  277.                 ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
  278.                 ifr.setAttribute(\"src\", ifrSrc); ifr.setAttribute(\"width\", \"1\");
  279.                 ifr.setAttribute(\"height\", \"1\"); ifr.setAttribute(\"scrolling\", \"no\");
  280.                 ifr.setAttribute(\"frameBorder\", \"0\"); ifr.setAttribute(\"style\", \"display:none\");
  281.                 ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\"); if(document.body){document.body.appendChild(ifr);}
  282.                 else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
  283.             })();} catch(e) {} </script>
  284.     ";
  285.         } else {
  286.             // line 86
  287.             echo "        <script>
  288.             try{ (function() {
  289.                 var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = []; rtbhTags.push(\"pr_\"+hash+\"_category2_\"+document.getElementById('categoryID').value); rtbhTags.push(\"pr_\"+hash+\"_uid_\"+document.getElementById('rtbhUID').value);
  290.                 var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key); if (!lid) {
  291.                     lid = \"\"; var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
  292.                     for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
  293.                 rtbhTags.push(\"pr_\"+hash+\"_lid_\" + lid);
  294.                 var ifr = document.createElement(\"iframe\"),
  295.                     sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
  296.                     su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
  297.                     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]);}
  298.                 ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
  299.                 ifr.setAttribute(\"src\", ifrSrc); ifr.setAttribute(\"width\", \"1\");
  300.                 ifr.setAttribute(\"height\", \"1\"); ifr.setAttribute(\"scrolling\", \"no\");
  301.                 ifr.setAttribute(\"frameBorder\", \"0\"); ifr.setAttribute(\"style\", \"display:none\");
  302.                 ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\"); if(document.body){document.body.appendChild(ifr);}
  303.                 else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
  304.             })();} catch(e) {} </script>
  305.     ";
  306.         }
  307.         
  308.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  309.         
  310.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  311.     }
  312.     public function getTemplateName()
  313.     {
  314.         return "Slivki/offers/category_page.html.twig";
  315.     }
  316.     public function isTraitable()
  317.     {
  318.         return false;
  319.     }
  320.     public function getDebugInfo()
  321.     {
  322.         return array (  332 => 86,  311 => 67,  308 => 66,  298 => 65,  286 => 62,  282 => 61,  278 => 59,  273 => 57,  263 => 56,  249 => 52,  247 => 51,  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,);
  323.     }
  324.     public function getSourceContext()
  325.     {
  326.         return new Source("{% extends 'Slivki/index.html.twig' %}
  327. {% block title %}{{ parent() }}{{ currentPage is defined and currentPage != 1 ? ' - Страница №' ~ currentPage }}{% endblock %}
  328. {% block left_sidebar %}
  329.     {% if constant('\\\\Slivki\\\\Entity\\\\Category::NEW_YEAR_CATEGORY_ID') == categoryID %}
  330.         {{ getSidebar(constant('\\\\Slivki\\\\Entity\\\\Category::NEW_YEAR_SALE_CATEGORY_ID')) }}
  331.     {% else %}
  332.         {{ parent() }}
  333.     {% endif %}
  334. {% endblock %}
  335. {% block mainColumnClass %}{{ parent() }}category-page{% endblock %}
  336. {% block topContentBlock %}
  337.     {% if tourismHotFeed is defined and tourismHotFeed|length > 0 %}
  338.         <div class=\"top-content-block clearfix category-hotfeed-wrapper\">
  339.             <div id=\"mainHotFeed\">
  340.                 <div class=\"title\"><i>&nbsp;</i> ГОРЯЩИЕ И НОВЫЕ ТУРЫ</div>
  341.                 <div class=\"tourism-hotfeed swiper-container\" id=\"mainHotFeedSlider\" data-offset=\"0\" data-type=\"{{ constant('Slivki\\\\Entity\\\\HotFeed::TYPE_OFFER_TOURISM_PAGE') }}\">
  342.                     <div class=\"swiper-wrapper\">
  343.                         {{ tourismHotFeed|raw }}
  344.                     </div>
  345.                     <div class=\"swiper-button swiper-button-prev\"></div>
  346.                     <div class=\"swiper-button swiper-button-next\"></div>
  347.                 </div>
  348.             </div>
  349.         </div>
  350.     {% endif %}
  351. {% endblock %}
  352. {% block main_content %}
  353.     {# rodenTeaserBannerABTest #}
  354.     {% if categoryID == constant('Slivki\\\\Entity\\\\Category::TOP_CATEGORY_ID') %}
  355.         {% set abValue = app.session.get('rodenTeaserBannerABTest', '0') %}
  356.         {% set utmCampaign = 'utm_campaign=abw-woman' %}
  357.         {% set imgUri = '/roden-lady.jpg' %}
  358.         {% if abValue == 0 %}
  359.             {% set utmCampaign = 'utm_campaign=abw-vip' %}
  360.             {% set imgUri = '/roden-vip.jpg' %}
  361.             {{ app.session.set('rodenTeaserBannerABTest', 1) }}
  362.         {% else %}
  363.             {{ app.session.set('rodenTeaserBannerABTest', 0) }}
  364.         {% endif %}
  365.         {% set category = category|replace({'utm_campaign=roden_pop': utmCampaign, '/slivki-img/1496324948_.jpg': imgUri}) %}
  366.         {% set categoryBanner = app.user and app.user.hasRole(constant('\\\\Slivki\\\\Entity\\\\UserGroup::ROLE_ADS_FREE')) ? ''
  367.             : getCategoryBanner(categoryID) %}
  368.         {% set category = category|replace({'<div id=\"category-banner-placeholder\" style=\"display:none\"></div>': categoryBanner}) %}
  369.     {% endif %}
  370.     {# end rodenTeaserBannerABTest #}
  371.     {{ category|raw }}
  372.     {% if lastMonthPurchaseCount is defined %}
  373.         <input id=\"lastMonthPurchaseCount\" type=\"hidden\" value=\"{{ lastMonthPurchaseCount|json_encode }}\">
  374.     {% endif %}
  375. {% endblock %}
  376. {% block javascripts %}
  377.     {{ parent() }}
  378. {#        <script src=\"//api-maps.yandex.ru/2.1.29/?lang=ru-RU\" type=\"text/javascript\"></script>#}
  379.         <script src=\"//mourner.github.io/simplify-js/simplify.js\"></script>
  380.         <script type=\"text/javascript\" src=\"//yastatic.net/share2/share.js\" charset=\"utf-8\"></script>
  381.         <script type=\"module\" src=\"/js/category.js?v={{ category_js_version }}\" type=\"text/javascript\"></script>
  382.         <script type=\"module\" type=\"text/javascript\" src=\"/js/work_examples/work_examples.js?v={{ work_examples_js_version }}\"></script>
  383. {% endblock %}
  384. {% block RTBHouse %}
  385.     {% if categoryID == constant('Slivki\\\\Entity\\\\Category::NEW_OFFER_CATEGORY_ID') %}
  386.         <script>
  387.             try{ (function() {
  388.                 var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = []; rtbhTags.push(\"pr_\"+hash+\"_newoffers\"); rtbhTags.push(\"pr_\"+hash+\"_uid_\"+document.getElementById('rtbhUID').value);
  389.                 var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key); if (!lid) {
  390.                     lid = \"\"; var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
  391.                     for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
  392.                 rtbhTags.push(\"pr_\"+hash+\"_lid_\" + lid);
  393.                 var ifr = document.createElement(\"iframe\"),
  394.                     sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
  395.                     su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
  396.                     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]);}
  397.                 ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
  398.                 ifr.setAttribute(\"src\", ifrSrc); ifr.setAttribute(\"width\", \"1\");
  399.                 ifr.setAttribute(\"height\", \"1\"); ifr.setAttribute(\"scrolling\", \"no\");
  400.                 ifr.setAttribute(\"frameBorder\", \"0\"); ifr.setAttribute(\"style\", \"display:none\");
  401.                 ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\"); if(document.body){document.body.appendChild(ifr);}
  402.                 else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
  403.             })();} catch(e) {} </script>
  404.     {% else %}
  405.         <script>
  406.             try{ (function() {
  407.                 var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = []; rtbhTags.push(\"pr_\"+hash+\"_category2_\"+document.getElementById('categoryID').value); rtbhTags.push(\"pr_\"+hash+\"_uid_\"+document.getElementById('rtbhUID').value);
  408.                 var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key); if (!lid) {
  409.                     lid = \"\"; var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
  410.                     for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
  411.                 rtbhTags.push(\"pr_\"+hash+\"_lid_\" + lid);
  412.                 var ifr = document.createElement(\"iframe\"),
  413.                     sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
  414.                     su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
  415.                     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]);}
  416.                 ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
  417.                 ifr.setAttribute(\"src\", ifrSrc); ifr.setAttribute(\"width\", \"1\");
  418.                 ifr.setAttribute(\"height\", \"1\"); ifr.setAttribute(\"scrolling\", \"no\");
  419.                 ifr.setAttribute(\"frameBorder\", \"0\"); ifr.setAttribute(\"style\", \"display:none\");
  420.                 ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\"); if(document.body){document.body.appendChild(ifr);}
  421.                 else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
  422.             })();} catch(e) {} </script>
  423.     {% endif %}
  424. {% endblock %}""Slivki/offers/category_page.html.twig""/mnt/data/virtwww/dima/templates/Slivki/offers/category_page.html.twig");
  425.     }
  426. }