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

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.         $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.'30$this->source); })()), "user", [], "any"falsefalsefalse30) && 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.'30$this->source); })()), "user", [], "any"falsefalsefalse30), "hasRole", [=> twig_constant("\\Slivki\\Entity\\UserGroup::ROLE_ADS_FREE")], "method"falsefalsefalse30))) ? ("") : ($this->extensions['Slivki\Twig\SlivkiTwigExtension']->getCategoryBanner(        // line 31
  157. (isset($context["categoryID"]) || array_key_exists("categoryID"$context) ? $context["categoryID"] : (function () { throw new RuntimeError('Variable "categoryID" does not exist.'31$this->source); })()))));
  158.         // line 32
  159.         echo "    ";
  160.         $context["category"] = twig_replace_filter((isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'32$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.'32$this->source); })())]);
  161.         // line 33
  162.         echo "
  163.     ";
  164.         // line 34
  165.         echo (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'34$this->source); })());
  166.         echo "
  167.     ";
  168.         // line 36
  169.         if (array_key_exists("lastMonthPurchaseCount"$context)) {
  170.             // line 37
  171.             echo "        <input id=\"lastMonthPurchaseCount\" type=\"hidden\" value=\"";
  172.             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.'37$this->source); })())), "html"nulltrue);
  173.             echo "\">
  174.     ";
  175.         }
  176.         
  177.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  178.         
  179.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  180.     }
  181.     // line 41
  182.     public function block_javascripts($context, array $blocks = [])
  183.     {
  184.         $macros $this->macros;
  185.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  186.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  187.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  188.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  189.         // line 42
  190.         echo "    ";
  191.         $this->displayParentBlock("javascripts"$context$blocks);
  192.         echo "
  193. ";
  194.         // line 44
  195.         echo "        <script src=\"//mourner.github.io/simplify-js/simplify.js\"></script>
  196.         <script type=\"text/javascript\" src=\"//yastatic.net/share2/share.js\" charset=\"utf-8\"></script>
  197.         <script type=\"module\" src=\"/js/category.js?v=";
  198.         // line 46
  199.         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.'46$this->source); })()), "html"nulltrue);
  200.         echo "\" type=\"text/javascript\"></script>
  201.         <script type=\"module\" type=\"text/javascript\" src=\"/js/work_examples/work_examples.js?v=";
  202.         // line 47
  203.         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.'47$this->source); })()), "html"nulltrue);
  204.         echo "\"></script>
  205. ";
  206.         
  207.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  208.         
  209.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  210.     }
  211.     // line 50
  212.     public function block_RTBHouse($context, array $blocks = [])
  213.     {
  214.         $macros $this->macros;
  215.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  216.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""RTBHouse"));
  217.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  218.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""RTBHouse"));
  219.         // line 51
  220.         echo "    ";
  221.         if ((=== twig_compare((isset($context["categoryID"]) || array_key_exists("categoryID"$context) ? $context["categoryID"] : (function () { throw new RuntimeError('Variable "categoryID" does not exist.'51$this->source); })()), twig_constant("Slivki\\Entity\\Category::NEW_OFFER_CATEGORY_ID")))) {
  222.             // line 52
  223.             echo "        <script>
  224.             try{ (function() {
  225.                 var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = []; rtbhTags.push(\"pr_\"+hash+\"_newoffers\"); rtbhTags.push(\"pr_\"+hash+\"_uid_\"+document.getElementById('rtbhUID').value);
  226.                 var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key); if (!lid) {
  227.                     lid = \"\"; var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
  228.                     for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
  229.                 rtbhTags.push(\"pr_\"+hash+\"_lid_\" + lid);
  230.                 var ifr = document.createElement(\"iframe\"),
  231.                     sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
  232.                     su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
  233.                     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]);}
  234.                 ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
  235.                 ifr.setAttribute(\"src\", ifrSrc); ifr.setAttribute(\"width\", \"1\");
  236.                 ifr.setAttribute(\"height\", \"1\"); ifr.setAttribute(\"scrolling\", \"no\");
  237.                 ifr.setAttribute(\"frameBorder\", \"0\"); ifr.setAttribute(\"style\", \"display:none\");
  238.                 ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\"); if(document.body){document.body.appendChild(ifr);}
  239.                 else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
  240.             })();} catch(e) {} </script>
  241.     ";
  242.         } else {
  243.             // line 71
  244.             echo "        <script>
  245.             try{ (function() {
  246.                 var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = []; rtbhTags.push(\"pr_\"+hash+\"_category2_\"+document.getElementById('categoryID').value); rtbhTags.push(\"pr_\"+hash+\"_uid_\"+document.getElementById('rtbhUID').value);
  247.                 var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key); if (!lid) {
  248.                     lid = \"\"; var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
  249.                     for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
  250.                 rtbhTags.push(\"pr_\"+hash+\"_lid_\" + lid);
  251.                 var ifr = document.createElement(\"iframe\"),
  252.                     sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
  253.                     su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
  254.                     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]);}
  255.                 ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
  256.                 ifr.setAttribute(\"src\", ifrSrc); ifr.setAttribute(\"width\", \"1\");
  257.                 ifr.setAttribute(\"height\", \"1\"); ifr.setAttribute(\"scrolling\", \"no\");
  258.                 ifr.setAttribute(\"frameBorder\", \"0\"); ifr.setAttribute(\"style\", \"display:none\");
  259.                 ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\"); if(document.body){document.body.appendChild(ifr);}
  260.                 else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
  261.             })();} catch(e) {} </script>
  262.     ";
  263.         }
  264.         
  265.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  266.         
  267.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  268.     }
  269.     public function getTemplateName()
  270.     {
  271.         return "Slivki/offers/category_page.html.twig";
  272.     }
  273.     public function isTraitable()
  274.     {
  275.         return false;
  276.     }
  277.     public function getDebugInfo()
  278.     {
  279.         return array (  289 => 71,  268 => 52,  265 => 51,  255 => 50,  243 => 47,  239 => 46,  235 => 44,  230 => 42,  220 => 41,  206 => 37,  204 => 36,  199 => 34,  196 => 33,  193 => 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,);
  280.     }
  281.     public function getSourceContext()
  282.     {
  283.         return new Source("{% extends 'Slivki/index.html.twig' %}
  284. {% block title %}{{ parent() }}{{ currentPage is defined and currentPage != 1 ? ' - Страница №' ~ currentPage }}{% endblock %}
  285. {% block left_sidebar %}
  286.     {% if constant('\\\\Slivki\\\\Entity\\\\Category::NEW_YEAR_CATEGORY_ID') == categoryID %}
  287.         {{ getSidebar(constant('\\\\Slivki\\\\Entity\\\\Category::NEW_YEAR_SALE_CATEGORY_ID')) }}
  288.     {% else %}
  289.         {{ parent() }}
  290.     {% endif %}
  291. {% endblock %}
  292. {% block mainColumnClass %}{{ parent() }}category-page{% endblock %}
  293. {% block topContentBlock %}
  294.     {% if tourismHotFeed is defined and tourismHotFeed|length > 0 %}
  295.         <div class=\"top-content-block clearfix category-hotfeed-wrapper\">
  296.             <div id=\"mainHotFeed\">
  297.                 <div class=\"title\"><i>&nbsp;</i> ГОРЯЩИЕ И НОВЫЕ ТУРЫ</div>
  298.                 <div class=\"tourism-hotfeed swiper-container\" id=\"mainHotFeedSlider\" data-offset=\"0\" data-type=\"{{ constant('Slivki\\\\Entity\\\\HotFeed::TYPE_OFFER_TOURISM_PAGE') }}\">
  299.                     <div class=\"swiper-wrapper\">
  300.                         {{ tourismHotFeed|raw }}
  301.                     </div>
  302.                     <div class=\"swiper-button swiper-button-prev\"></div>
  303.                     <div class=\"swiper-button swiper-button-next\"></div>
  304.                 </div>
  305.             </div>
  306.         </div>
  307.     {% endif %}
  308. {% endblock %}
  309. {% block main_content %}
  310.     {% set categoryBanner = app.user and app.user.hasRole(constant('\\\\Slivki\\\\Entity\\\\UserGroup::ROLE_ADS_FREE')) ? ''
  311.         : getCategoryBanner(categoryID) %}
  312.     {% set category = category|replace({'<div id=\"category-banner-placeholder\" style=\"display:none\"></div>': categoryBanner}) %}
  313.     {{ category|raw }}
  314.     {% if lastMonthPurchaseCount is defined %}
  315.         <input id=\"lastMonthPurchaseCount\" type=\"hidden\" value=\"{{ lastMonthPurchaseCount|json_encode }}\">
  316.     {% endif %}
  317. {% endblock %}
  318. {% block javascripts %}
  319.     {{ parent() }}
  320. {#        <script src=\"//api-maps.yandex.ru/2.1.29/?lang=ru-RU\" type=\"text/javascript\"></script>#}
  321.         <script src=\"//mourner.github.io/simplify-js/simplify.js\"></script>
  322.         <script type=\"text/javascript\" src=\"//yastatic.net/share2/share.js\" charset=\"utf-8\"></script>
  323.         <script type=\"module\" src=\"/js/category.js?v={{ category_js_version }}\" type=\"text/javascript\"></script>
  324.         <script type=\"module\" type=\"text/javascript\" src=\"/js/work_examples/work_examples.js?v={{ work_examples_js_version }}\"></script>
  325. {% endblock %}
  326. {% block RTBHouse %}
  327.     {% if categoryID == constant('Slivki\\\\Entity\\\\Category::NEW_OFFER_CATEGORY_ID') %}
  328.         <script>
  329.             try{ (function() {
  330.                 var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = []; rtbhTags.push(\"pr_\"+hash+\"_newoffers\"); rtbhTags.push(\"pr_\"+hash+\"_uid_\"+document.getElementById('rtbhUID').value);
  331.                 var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key); if (!lid) {
  332.                     lid = \"\"; var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
  333.                     for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
  334.                 rtbhTags.push(\"pr_\"+hash+\"_lid_\" + lid);
  335.                 var ifr = document.createElement(\"iframe\"),
  336.                     sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
  337.                     su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
  338.                     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]);}
  339.                 ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
  340.                 ifr.setAttribute(\"src\", ifrSrc); ifr.setAttribute(\"width\", \"1\");
  341.                 ifr.setAttribute(\"height\", \"1\"); ifr.setAttribute(\"scrolling\", \"no\");
  342.                 ifr.setAttribute(\"frameBorder\", \"0\"); ifr.setAttribute(\"style\", \"display:none\");
  343.                 ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\"); if(document.body){document.body.appendChild(ifr);}
  344.                 else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
  345.             })();} catch(e) {} </script>
  346.     {% else %}
  347.         <script>
  348.             try{ (function() {
  349.                 var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = []; rtbhTags.push(\"pr_\"+hash+\"_category2_\"+document.getElementById('categoryID').value); rtbhTags.push(\"pr_\"+hash+\"_uid_\"+document.getElementById('rtbhUID').value);
  350.                 var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key); if (!lid) {
  351.                     lid = \"\"; var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
  352.                     for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
  353.                 rtbhTags.push(\"pr_\"+hash+\"_lid_\" + lid);
  354.                 var ifr = document.createElement(\"iframe\"),
  355.                     sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
  356.                     su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
  357.                     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]);}
  358.                 ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
  359.                 ifr.setAttribute(\"src\", ifrSrc); ifr.setAttribute(\"width\", \"1\");
  360.                 ifr.setAttribute(\"height\", \"1\"); ifr.setAttribute(\"scrolling\", \"no\");
  361.                 ifr.setAttribute(\"frameBorder\", \"0\"); ifr.setAttribute(\"style\", \"display:none\");
  362.                 ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\"); if(document.body){document.body.appendChild(ifr);}
  363.                 else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
  364.             })();} catch(e) {} </script>
  365.     {% endif %}
  366. {% endblock %}""Slivki/offers/category_page.html.twig""/mnt/data/virtwww/dima/templates/Slivki/offers/category_page.html.twig");
  367.     }
  368. }