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.         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); })()))) {
  209.             // line 50
  210.             echo "        <p class=\"text-danger text-center\">Информация об акциях с плохими условиями видна только Партнерам сайта. Пользователям информация недоступна.</p>
  211.     ";
  212.         }
  213.         // line 52
  214.         echo "
  215.     ";
  216.         // line 53
  217.         echo (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'53$this->source); })());
  218.         echo "
  219.     ";
  220.         // line 55
  221.         if (array_key_exists("lastMonthPurchaseCount"$context)) {
  222.             // line 56
  223.             echo "        <input id=\"lastMonthPurchaseCount\" type=\"hidden\" value=\"";
  224.             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.'56$this->source); })())), "html"nulltrue);
  225.             echo "\">
  226.     ";
  227.         }
  228.         // line 58
  229.         echo "    ";
  230.         if (array_key_exists("worstViewer"$context)) {
  231.             // line 59
  232.             echo "        <input id=\"worstViewer\" type=\"hidden\">
  233.     ";
  234.         }
  235.         
  236.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  237.         
  238.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  239.     }
  240.     // line 63
  241.     public function block_javascripts($context, array $blocks = [])
  242.     {
  243.         $macros $this->macros;
  244.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  245.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  246.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  247.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  248.         // line 64
  249.         echo "    ";
  250.         $this->displayParentBlock("javascripts"$context$blocks);
  251.         echo "
  252. ";
  253.         // line 66
  254.         echo "        <script src=\"//mourner.github.io/simplify-js/simplify.js\"></script>
  255.         <script type=\"text/javascript\" src=\"//yastatic.net/share2/share.js\" charset=\"utf-8\"></script>
  256.         ";
  257.         // line 68
  258.         if ((!== 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")))) {
  259.             // line 69
  260.             echo "            <script type=\"module\" src=\"/js/category.js?v=";
  261.             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"nulltrue);
  262.             echo "\" type=\"text/javascript\"></script>
  263.         ";
  264.         }
  265.         // line 71
  266.         echo "        <script type=\"module\" type=\"text/javascript\" src=\"/js/work_examples/work_examples.js?v=";
  267.         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"nulltrue);
  268.         echo "\"></script>
  269. ";
  270.         
  271.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  272.         
  273.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  274.     }
  275.     // line 74
  276.     public function block_RTBHouse($context, array $blocks = [])
  277.     {
  278.         $macros $this->macros;
  279.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  280.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""RTBHouse"));
  281.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  282.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""RTBHouse"));
  283.         // line 75
  284.         echo "    ";
  285.         if ((=== 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")))) {
  286.             // line 76
  287.             echo "        <script>
  288.             try{ (function() {
  289.                 var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = []; rtbhTags.push(\"pr_\"+hash+\"_newoffers\"); 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.         } else {
  307.             // line 95
  308.             echo "        <script>
  309.             try{ (function() {
  310.                 var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = []; rtbhTags.push(\"pr_\"+hash+\"_category2_\"+document.getElementById('categoryID').value); rtbhTags.push(\"pr_\"+hash+\"_uid_\"+document.getElementById('rtbhUID').value);
  311.                 var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key); if (!lid) {
  312.                     lid = \"\"; var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
  313.                     for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
  314.                 rtbhTags.push(\"pr_\"+hash+\"_lid_\" + lid);
  315.                 var ifr = document.createElement(\"iframe\"),
  316.                     sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
  317.                     su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
  318.                     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]);}
  319.                 ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
  320.                 ifr.setAttribute(\"src\", ifrSrc); ifr.setAttribute(\"width\", \"1\");
  321.                 ifr.setAttribute(\"height\", \"1\"); ifr.setAttribute(\"scrolling\", \"no\");
  322.                 ifr.setAttribute(\"frameBorder\", \"0\"); ifr.setAttribute(\"style\", \"display:none\");
  323.                 ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\"); if(document.body){document.body.appendChild(ifr);}
  324.                 else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
  325.             })();} catch(e) {} </script>
  326.     ";
  327.         }
  328.         
  329.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  330.         
  331.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  332.     }
  333.     public function getTemplateName()
  334.     {
  335.         return "Slivki/offers/category_page.html.twig";
  336.     }
  337.     public function isTraitable()
  338.     {
  339.         return false;
  340.     }
  341.     public function getDebugInfo()
  342.     {
  343.         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,);
  344.     }
  345.     public function getSourceContext()
  346.     {
  347.         return new Source("{% extends 'Slivki/index.html.twig' %}
  348. {% block title %}{{ parent() }}{{ currentPage is defined and currentPage != 1 ? ' - Страница №' ~ currentPage }}{% endblock %}
  349. {% block left_sidebar %}
  350.     {% if constant('\\\\Slivki\\\\Entity\\\\Category::NEW_YEAR_CATEGORY_ID') == categoryID %}
  351.         {{ getSidebar(constant('\\\\Slivki\\\\Entity\\\\Category::NEW_YEAR_SALE_CATEGORY_ID')) }}
  352.     {% else %}
  353.         {{ parent() }}
  354.     {% endif %}
  355. {% endblock %}
  356. {% block mainColumnClass %}{{ parent() }}category-page{% endblock %}
  357. {% block topContentBlock %}
  358.     {% if tourismHotFeed is defined and tourismHotFeed|length > 0 %}
  359.         <div class=\"top-content-block clearfix category-hotfeed-wrapper\">
  360.             <div id=\"mainHotFeed\">
  361.                 <div class=\"title\"><i>&nbsp;</i> ГОРЯЩИЕ И НОВЫЕ ТУРЫ</div>
  362.                 <div class=\"tourism-hotfeed swiper-container\" id=\"mainHotFeedSlider\" data-offset=\"0\" data-type=\"{{ constant('Slivki\\\\Entity\\\\HotFeed::TYPE_OFFER_TOURISM_PAGE') }}\">
  363.                     <div class=\"swiper-wrapper\">
  364.                         {{ tourismHotFeed|raw }}
  365.                     </div>
  366.                     <div class=\"swiper-button swiper-button-prev\"></div>
  367.                     <div class=\"swiper-button swiper-button-next\"></div>
  368.                 </div>
  369.             </div>
  370.         </div>
  371.     {% endif %}
  372. {% endblock %}
  373. {% block main_content %}
  374.     {# rodenTeaserBannerABTest #}
  375.     {% if categoryID == constant('Slivki\\\\Entity\\\\Category::TOP_CATEGORY_ID') %}
  376.         {% set abValue = app.session.get('rodenTeaserBannerABTest', '0') %}
  377.         {% set utmCampaign = 'utm_campaign=abw-woman' %}
  378.         {% set imgUri = '/roden-lady.jpg' %}
  379.         {% if abValue == 0 %}
  380.             {% set utmCampaign = 'utm_campaign=abw-vip' %}
  381.             {% set imgUri = '/roden-vip.jpg' %}
  382.             {{ app.session.set('rodenTeaserBannerABTest', 1) }}
  383.         {% else %}
  384.             {{ app.session.set('rodenTeaserBannerABTest', 0) }}
  385.         {% endif %}
  386.         {% set category = category|replace({'utm_campaign=roden_pop': utmCampaign, '/slivki-img/1496324948_.jpg': imgUri}) %}
  387.         {% set categoryBanner = app.user and app.user.hasRole(constant('\\\\Slivki\\\\Entity\\\\UserGroup::ROLE_ADS_FREE')) ? ''
  388.             : getCategoryBanner(categoryID) %}
  389.         {% set category = category|replace({'<div id=\"category-banner-placeholder\" style=\"display:none\"></div>': categoryBanner}) %}
  390.     {% endif %}
  391.     {# end rodenTeaserBannerABTest #}
  392.     {% if isWorst is defined and isWorst %}
  393.         <p class=\"text-danger text-center\">Информация об акциях с плохими условиями видна только Партнерам сайта. Пользователям информация недоступна.</p>
  394.     {% endif %}
  395.     {{ category|raw }}
  396.     {% if lastMonthPurchaseCount is defined %}
  397.         <input id=\"lastMonthPurchaseCount\" type=\"hidden\" value=\"{{ lastMonthPurchaseCount|json_encode }}\">
  398.     {% endif %}
  399.     {% if worstViewer is defined %}
  400.         <input id=\"worstViewer\" type=\"hidden\">
  401.     {% endif %}
  402. {% endblock %}
  403. {% block javascripts %}
  404.     {{ parent() }}
  405. {#        <script src=\"//api-maps.yandex.ru/2.1.29/?lang=ru-RU\" type=\"text/javascript\"></script>#}
  406.         <script src=\"//mourner.github.io/simplify-js/simplify.js\"></script>
  407.         <script type=\"text/javascript\" src=\"//yastatic.net/share2/share.js\" charset=\"utf-8\"></script>
  408.         {% if categoryID != constant('Slivki\\\\Entity\\\\Category::TOURISM_CATEGORY_ID') %}
  409.             <script type=\"module\" src=\"/js/category.js?v={{ category_js_version }}\" type=\"text/javascript\"></script>
  410.         {% endif %}
  411.         <script type=\"module\" type=\"text/javascript\" src=\"/js/work_examples/work_examples.js?v={{ work_examples_js_version }}\"></script>
  412. {% endblock %}
  413. {% block RTBHouse %}
  414.     {% if categoryID == constant('Slivki\\\\Entity\\\\Category::NEW_OFFER_CATEGORY_ID') %}
  415.         <script>
  416.             try{ (function() {
  417.                 var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = []; rtbhTags.push(\"pr_\"+hash+\"_newoffers\"); rtbhTags.push(\"pr_\"+hash+\"_uid_\"+document.getElementById('rtbhUID').value);
  418.                 var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key); if (!lid) {
  419.                     lid = \"\"; var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
  420.                     for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
  421.                 rtbhTags.push(\"pr_\"+hash+\"_lid_\" + lid);
  422.                 var ifr = document.createElement(\"iframe\"),
  423.                     sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
  424.                     su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
  425.                     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]);}
  426.                 ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
  427.                 ifr.setAttribute(\"src\", ifrSrc); ifr.setAttribute(\"width\", \"1\");
  428.                 ifr.setAttribute(\"height\", \"1\"); ifr.setAttribute(\"scrolling\", \"no\");
  429.                 ifr.setAttribute(\"frameBorder\", \"0\"); ifr.setAttribute(\"style\", \"display:none\");
  430.                 ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\"); if(document.body){document.body.appendChild(ifr);}
  431.                 else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
  432.             })();} catch(e) {} </script>
  433.     {% else %}
  434.         <script>
  435.             try{ (function() {
  436.                 var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = []; rtbhTags.push(\"pr_\"+hash+\"_category2_\"+document.getElementById('categoryID').value); rtbhTags.push(\"pr_\"+hash+\"_uid_\"+document.getElementById('rtbhUID').value);
  437.                 var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key); if (!lid) {
  438.                     lid = \"\"; var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
  439.                     for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
  440.                 rtbhTags.push(\"pr_\"+hash+\"_lid_\" + lid);
  441.                 var ifr = document.createElement(\"iframe\"),
  442.                     sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
  443.                     su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
  444.                     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]);}
  445.                 ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
  446.                 ifr.setAttribute(\"src\", ifrSrc); ifr.setAttribute(\"width\", \"1\");
  447.                 ifr.setAttribute(\"height\", \"1\"); ifr.setAttribute(\"scrolling\", \"no\");
  448.                 ifr.setAttribute(\"frameBorder\", \"0\"); ifr.setAttribute(\"style\", \"display:none\");
  449.                 ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\"); if(document.body){document.body.appendChild(ifr);}
  450.                 else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
  451.             })();} catch(e) {} </script>
  452.     {% endif %}
  453. {% endblock %}""Slivki/offers/category_page.html.twig""/mnt/data/virtwww/vlad-slivki/templates/Slivki/offers/category_page.html.twig");
  454.     }
  455. }