var/cache/dev/twig/c2/c220d64e16701dceaabcdeba18573a26dd7ee128234860d0e736b2d91783d1e1.php line 252

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/mobile/offer/category.html.twig */
  14. class __TwigTemplate_d4685344a53bea4ef9035dbe79e812b444f528b3424915435660267be4a8993a 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.             'styles' => [$this'block_styles'],
  24.             'title' => [$this'block_title'],
  25.             'content' => [$this'block_content'],
  26.             'javascripts' => [$this'block_javascripts'],
  27.             'popup' => [$this'block_popup'],
  28.             'brandingBanner' => [$this'block_brandingBanner'],
  29.             'RTBHouse' => [$this'block_RTBHouse'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context)
  33.     {
  34.         // line 1
  35.         return "Slivki/mobile/base.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/mobile/offer/category.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/mobile/offer/category.html.twig"));
  44.         $this->parent $this->loadTemplate("Slivki/mobile/base.html.twig""Slivki/mobile/offer/category.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_styles($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""styles"));
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""styles"));
  59.         // line 4
  60.         echo "    ";
  61.         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.'4$this->source); })())), 0)))) {
  62.             // line 5
  63.             echo "        <link rel=\"stylesheet\" href=\"/css/swiper/swiper.min.css\" />
  64.     ";
  65.         }
  66.         // line 7
  67.         echo "    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.css\" />
  68.     ";
  69.         // line 8
  70.         $this->displayParentBlock("styles"$context$blocks);
  71.         echo "
  72. ";
  73.         
  74.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  75.         
  76.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  77.     }
  78.     // line 11
  79.     public function block_title($context, array $blocks = [])
  80.     {
  81.         $macros $this->macros;
  82.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  83.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  84.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  85.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  86.         $this->displayParentBlock("title"$context$blocks);
  87.         (((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.'11$this->source); })()), 1)))) ? (print (twig_escape_filter($this->env, (" - Страница №" . (isset($context["currentPage"]) || array_key_exists("currentPage"$context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.'11$this->source); })())), "html"nulltrue))) : (print ("")));
  88.         
  89.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  90.         
  91.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  92.     }
  93.     // line 13
  94.     public function block_content($context, array $blocks = [])
  95.     {
  96.         $macros $this->macros;
  97.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  98.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  99.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  100.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  101.         // line 14
  102.         echo "    <input id=\"isCategoryPageMobile\" type=\"hidden\">
  103.     ";
  104.         // line 15
  105.         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.'15$this->source); })())), 0)))) {
  106.             // line 16
  107.             echo "        <div id=\"mainHotFeed\" class=\"px-1 position-relative\">
  108.             <h6 class=\"clearfix\">
  109.                 <span class=\"blink text-slivki\">·</span>
  110.                 <div class=\"d-inline-block alt-bold-font\">ГОРЯЩИЕ И НОВЫЕ ТУРЫ</div>
  111.             </h6>
  112.             <div id=\"mainHotFeedSlider\" class=\"swiper-container\" data-offset=\"0\" data-type=\"";
  113.             // line 21
  114.             echo twig_escape_filter($this->envtwig_constant("Slivki\\Entity\\HotFeed::TYPE_OFFER_TOURISM_PAGE"), "html"nulltrue);
  115.             echo "\">
  116.                 <div class=\"swiper-wrapper\">
  117.                     ";
  118.             // line 23
  119.             echo (isset($context["tourismHotFeed"]) || array_key_exists("tourismHotFeed"$context) ? $context["tourismHotFeed"] : (function () { throw new RuntimeError('Variable "tourismHotFeed" does not exist.'23$this->source); })());
  120.             echo "
  121.                 </div>
  122.                 <div class=\"swiper-button swiper-button-prev\"></div>
  123.                 <div class=\"swiper-button swiper-button-next\"></div>
  124.             </div>
  125.         </div>
  126.     ";
  127.         }
  128.         // line 30
  129.         echo "
  130.     <div class=\"px-1\">
  131.         ";
  132.         // line 32
  133.         $context["categoryBanner"] = (((twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'32$this->source); })()), "user", [], "any"falsefalsefalse32) && 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); })()), "user", [], "any"falsefalsefalse32), "hasRole", [=> twig_constant("\\Slivki\\Entity\\UserGroup::ROLE_ADS_FREE")], "method"falsefalsefalse32))) ? ("") : ($this->extensions['Slivki\Twig\SlivkiTwigExtension']->getCategoryBanner(        // line 33
  134. (isset($context["categoryID"]) || array_key_exists("categoryID"$context) ? $context["categoryID"] : (function () { throw new RuntimeError('Variable "categoryID" does not exist.'33$this->source); })()))));
  135.         // line 34
  136.         echo "        ";
  137.         echo twig_replace_filter((isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'34$this->source); })()), ["<div id=\"categoryBannerPlaceholder\"></div>" => (isset($context["categoryBanner"]) || array_key_exists("categoryBanner"$context) ? $context["categoryBanner"] : (function () { throw new RuntimeError('Variable "categoryBanner" does not exist.'34$this->source); })())]);
  138.         echo "
  139.     </div>
  140.     ";
  141.         // line 37
  142.         if (array_key_exists("lastMonthPurchaseCount"$context)) {
  143.             // line 38
  144.             echo "        <input id=\"lastMonthPurchaseCount\" type=\"hidden\" value=\"";
  145.             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.'38$this->source); })())), "html"nulltrue);
  146.             echo "\">
  147.     ";
  148.         }
  149.         
  150.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  151.         
  152.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  153.     }
  154.     // line 42
  155.     public function block_javascripts($context, array $blocks = [])
  156.     {
  157.         $macros $this->macros;
  158.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  159.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  160.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  161.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  162.         // line 43
  163.         echo "    ";
  164.         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.'43$this->source); })())), 0)))) {
  165.             // line 44
  166.             echo "        <script src=\"/js/swiper-js/swiper.min.js\"></script>
  167.     ";
  168.         }
  169.         // line 46
  170.         echo "    <script src=\"https://api-maps.yandex.ru/2.1/?lang=ru_RU\" type=\"text/javascript\"></script>
  171.     <script src=\"https://yastatic.net/es5-shims/0.0.2/es5-shims.min.js\"></script>
  172.     <script src=\"https://yastatic.net/share2/share.js\"></script>
  173.     <script src=\"//mourner.github.io/simplify-js/simplify.js\"></script>
  174.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.js\"></script>
  175.     ";
  176.         // line 51
  177.         $this->displayParentBlock("javascripts"$context$blocks);
  178.         echo "
  179.     <script type=\"module\" src=\"/mobile/js/category.min.js?v=";
  180.         // line 52
  181.         echo twig_escape_filter($this->env, (isset($context["mobile_category_js_version"]) || array_key_exists("mobile_category_js_version"$context) ? $context["mobile_category_js_version"] : (function () { throw new RuntimeError('Variable "mobile_category_js_version" does not exist.'52$this->source); })()), "html"nulltrue);
  182.         echo "\"></script>
  183.     <script type=\"module\" type=\"text/javascript\" src=\"/js/work_examples/work_examples.js?v=";
  184.         // line 53
  185.         echo twig_escape_filter($this->env, (isset($context["work_examples_js_version"]) || array_key_exists("work_examples_js_version"$context) ? $context["work_examples_js_version"] : (function () { throw new RuntimeError('Variable "work_examples_js_version" does not exist.'53$this->source); })()), "html"nulltrue);
  186.         echo "\"></script>
  187. ";
  188.         
  189.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  190.         
  191.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  192.     }
  193.     // line 56
  194.     public function block_popup($context, array $blocks = [])
  195.     {
  196.         $macros $this->macros;
  197.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  198.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""popup"));
  199.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  200.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""popup"));
  201.         // line 57
  202.         echo "    ";
  203.         $this->displayParentBlock("popup"$context$blocks);
  204.         echo "
  205.     ";
  206.         // line 58
  207.         $this->loadTemplate("Slivki/mobile/share_block.html.twig""Slivki/mobile/offer/category.html.twig"58)->display($context);
  208.         
  209.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  210.         
  211.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  212.     }
  213.     // line 60
  214.     public function block_brandingBanner($context, array $blocks = [])
  215.     {
  216.         $macros $this->macros;
  217.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  218.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""brandingBanner"));
  219.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  220.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""brandingBanner"));
  221.         // line 61
  222.         echo "    ";
  223.         if ( !(twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'61$this->source); })()), "user", [], "any"falsefalsefalse61) && 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.'61$this->source); })()), "user", [], "any"falsefalsefalse61), "hasRole", [=> twig_constant("\\Slivki\\Entity\\UserGroup::ROLE_ADS_FREE")], "method"falsefalsefalse61))) {
  224.             // line 62
  225.             echo "        ";
  226.             $context["brandingBanner"] = $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getBrandingBanner($this->envtwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'62$this->source); })()), "user", [], "any"falsefalsefalse62), ((array_key_exists("brandingBannerCategoryIDs"$context)) ? ((isset($context["brandingBannerCategoryIDs"]) || array_key_exists("brandingBannerCategoryIDs"$context) ? $context["brandingBannerCategoryIDs"] : (function () { throw new RuntimeError('Variable "brandingBannerCategoryIDs" does not exist.'62$this->source); })())) : ([])));
  227.             // line 63
  228.             echo "        ";
  229.             if (((isset($context["brandingBanner"]) || array_key_exists("brandingBanner"$context) ? $context["brandingBanner"] : (function () { throw new RuntimeError('Variable "brandingBanner" does not exist.'63$this->source); })()) && twig_get_attribute($this->env$this->source, (isset($context["brandingBanner"]) || array_key_exists("brandingBanner"$context) ? $context["brandingBanner"] : (function () { throw new RuntimeError('Variable "brandingBanner" does not exist.'63$this->source); })()), "getMobileDivider", [], "method"falsefalsefalse63))) {
  230.                 // line 64
  231.                 echo "            <input type=\"hidden\" id=\"brandingBannerImage\" value=\"";
  232.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["brandingBanner"]) || array_key_exists("brandingBanner"$context) ? $context["brandingBanner"] : (function () { throw new RuntimeError('Variable "brandingBanner" does not exist.'64$this->source); })()), "getMobileDivider", [], "method"falsefalsefalse64), "html"nulltrue);
  233.                 echo "\"
  234.                    data-oid=\"";
  235.                 // line 65
  236.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["brandingBanner"]) || array_key_exists("brandingBanner"$context) ? $context["brandingBanner"] : (function () { throw new RuntimeError('Variable "brandingBanner" does not exist.'65$this->source); })()), "getID", [], "method"falsefalsefalse65), "html"nulltrue);
  237.                 echo "\" data-id=\"";
  238.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["brandingBanner"]) || array_key_exists("brandingBanner"$context) ? $context["brandingBanner"] : (function () { throw new RuntimeError('Variable "brandingBanner" does not exist.'65$this->source); })()), "getBannerID", [], "method"falsefalsefalse65), "html"nulltrue);
  239.                 echo "\"
  240.                    data-branding=\"";
  241.                 // line 66
  242.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["brandingBanner"]) || array_key_exists("brandingBanner"$context) ? $context["brandingBanner"] : (function () { throw new RuntimeError('Variable "brandingBanner" does not exist.'66$this->source); })()), "getBannerID", [], "method"falsefalsefalse66), "html"nulltrue);
  243.                 echo "\" data-url=\"";
  244.                 echo twig_escape_filter($this->envtwig_trim_filter(twig_get_attribute($this->env$this->source, (isset($context["brandingBanner"]) || array_key_exists("brandingBanner"$context) ? $context["brandingBanner"] : (function () { throw new RuntimeError('Variable "brandingBanner" does not exist.'66$this->source); })()), "getUrl", [], "method"falsefalsefalse66)), "html"nulltrue);
  245.                 echo "\"
  246.                    data-right-side-url=\"";
  247.                 // line 67
  248.                 echo twig_escape_filter($this->envtwig_trim_filter(twig_get_attribute($this->env$this->source, (isset($context["brandingBanner"]) || array_key_exists("brandingBanner"$context) ? $context["brandingBanner"] : (function () { throw new RuntimeError('Variable "brandingBanner" does not exist.'67$this->source); })()), "getRightSideUrl", [], "method"falsefalsefalse67)), "html"nulltrue);
  249.                 echo "\">
  250.         ";
  251.             }
  252.             // line 69
  253.             echo "    ";
  254.         }
  255.         
  256.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  257.         
  258.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  259.     }
  260.     // line 71
  261.     public function block_RTBHouse($context, array $blocks = [])
  262.     {
  263.         $macros $this->macros;
  264.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  265.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""RTBHouse"));
  266.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  267.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""RTBHouse"));
  268.         // line 72
  269.         echo "    ";
  270.         if ((=== twig_compare((isset($context["categoryID"]) || array_key_exists("categoryID"$context) ? $context["categoryID"] : (function () { throw new RuntimeError('Variable "categoryID" does not exist.'72$this->source); })()), twig_constant("Slivki\\Entity\\Category::NEW_OFFER_CATEGORY_ID")))) {
  271.             // line 73
  272.             echo "        <script>
  273.             try{ (function() {
  274.                 var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = []; rtbhTags.push(\"pr_\"+hash+\"_newoffers\"); rtbhTags.push(\"pr_\"+hash+\"_uid_\"+document.getElementById('rtbhUID').value);
  275.                 var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key); if (!lid) {
  276.                     lid = \"\"; var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
  277.                     for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
  278.                 rtbhTags.push(\"pr_\"+hash+\"_lid_\" + lid);
  279.                 var ifr = document.createElement(\"iframe\"),
  280.                     sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
  281.                     su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
  282.                     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]);}
  283.                 ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
  284.                 ifr.setAttribute(\"src\", ifrSrc); ifr.setAttribute(\"width\", \"1\");
  285.                 ifr.setAttribute(\"height\", \"1\"); ifr.setAttribute(\"scrolling\", \"no\");
  286.                 ifr.setAttribute(\"frameBorder\", \"0\"); ifr.setAttribute(\"style\", \"display:none\");
  287.                 ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\"); if(document.body){document.body.appendChild(ifr);}
  288.                 else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
  289.             })();} catch(e) {} </script>
  290.     ";
  291.         } else {
  292.             // line 92
  293.             echo "        <script>
  294.             try{ (function() {
  295.                 var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = []; rtbhTags.push(\"pr_\"+hash+\"_category2_\"+document.getElementById('categoryID').value); rtbhTags.push(\"pr_\"+hash+\"_uid_\"+document.getElementById('rtbhUID').value);
  296.                 var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key); if (!lid) {
  297.                     lid = \"\"; var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
  298.                     for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
  299.                 rtbhTags.push(\"pr_\"+hash+\"_lid_\" + lid);
  300.                 var ifr = document.createElement(\"iframe\"),
  301.                     sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
  302.                     su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
  303.                     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]);}
  304.                 ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
  305.                 ifr.setAttribute(\"src\", ifrSrc); ifr.setAttribute(\"width\", \"1\");
  306.                 ifr.setAttribute(\"height\", \"1\"); ifr.setAttribute(\"scrolling\", \"no\");
  307.                 ifr.setAttribute(\"frameBorder\", \"0\"); ifr.setAttribute(\"style\", \"display:none\");
  308.                 ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\"); if(document.body){document.body.appendChild(ifr);}
  309.                 else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
  310.             })();} catch(e) {} </script>
  311.     ";
  312.         }
  313.         
  314.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  315.         
  316.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  317.     }
  318.     public function getTemplateName()
  319.     {
  320.         return "Slivki/mobile/offer/category.html.twig";
  321.     }
  322.     public function isTraitable()
  323.     {
  324.         return false;
  325.     }
  326.     public function getDebugInfo()
  327.     {
  328.         return array (  338 => 92,  317 => 73,  314 => 72,  304 => 71,  293 => 69,  288 => 67,  282 => 66,  276 => 65,  271 => 64,  268 => 63,  265 => 62,  262 => 61,  252 => 60,  242 => 58,  237 => 57,  227 => 56,  215 => 53,  211 => 52,  207 => 51,  200 => 46,  196 => 44,  193 => 43,  183 => 42,  169 => 38,  167 => 37,  160 => 34,  158 => 33,  157 => 32,  153 => 30,  143 => 23,  138 => 21,  131 => 16,  129 => 15,  126 => 14,  116 => 13,  96 => 11,  84 => 8,  81 => 7,  77 => 5,  74 => 4,  64 => 3,  41 => 1,);
  329.     }
  330.     public function getSourceContext()
  331.     {
  332.         return new Source("{% extends 'Slivki/mobile/base.html.twig' %}
  333. {% block styles %}
  334.     {% if tourismHotFeed is defined and tourismHotFeed|length > 0 %}
  335.         <link rel=\"stylesheet\" href=\"/css/swiper/swiper.min.css\" />
  336.     {% endif %}
  337.     <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.css\" />
  338.     {{ parent() }}
  339. {% endblock %}
  340. {% block title %}{{ parent() }}{{ currentPage is defined and currentPage != 1 ? ' - Страница №' ~ currentPage }}{% endblock %}
  341. {% block content %}
  342.     <input id=\"isCategoryPageMobile\" type=\"hidden\">
  343.     {% if tourismHotFeed is defined and tourismHotFeed|length > 0 %}
  344.         <div id=\"mainHotFeed\" class=\"px-1 position-relative\">
  345.             <h6 class=\"clearfix\">
  346.                 <span class=\"blink text-slivki\">·</span>
  347.                 <div class=\"d-inline-block alt-bold-font\">ГОРЯЩИЕ И НОВЫЕ ТУРЫ</div>
  348.             </h6>
  349.             <div id=\"mainHotFeedSlider\" class=\"swiper-container\" data-offset=\"0\" data-type=\"{{ constant('Slivki\\\\Entity\\\\HotFeed::TYPE_OFFER_TOURISM_PAGE') }}\">
  350.                 <div class=\"swiper-wrapper\">
  351.                     {{ tourismHotFeed|raw }}
  352.                 </div>
  353.                 <div class=\"swiper-button swiper-button-prev\"></div>
  354.                 <div class=\"swiper-button swiper-button-next\"></div>
  355.             </div>
  356.         </div>
  357.     {% endif %}
  358.     <div class=\"px-1\">
  359.         {% set categoryBanner = app.user and app.user.hasRole(constant('\\\\Slivki\\\\Entity\\\\UserGroup::ROLE_ADS_FREE')) ? ''
  360.             : getCategoryBanner(categoryID) %}
  361.         {{ category|replace({'<div id=\"categoryBannerPlaceholder\"></div>': categoryBanner})|raw }}
  362.     </div>
  363.     {% if lastMonthPurchaseCount is defined %}
  364.         <input id=\"lastMonthPurchaseCount\" type=\"hidden\" value=\"{{ lastMonthPurchaseCount|json_encode }}\">
  365.     {% endif %}
  366. {% endblock %}
  367. {% block javascripts %}
  368.     {% if tourismHotFeed is defined and tourismHotFeed|length > 0 %}
  369.         <script src=\"/js/swiper-js/swiper.min.js\"></script>
  370.     {% endif %}
  371.     <script src=\"https://api-maps.yandex.ru/2.1/?lang=ru_RU\" type=\"text/javascript\"></script>
  372.     <script src=\"https://yastatic.net/es5-shims/0.0.2/es5-shims.min.js\"></script>
  373.     <script src=\"https://yastatic.net/share2/share.js\"></script>
  374.     <script src=\"//mourner.github.io/simplify-js/simplify.js\"></script>
  375.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.js\"></script>
  376.     {{ parent() }}
  377.     <script type=\"module\" src=\"/mobile/js/category.min.js?v={{ mobile_category_js_version }}\"></script>
  378.     <script type=\"module\" type=\"text/javascript\" src=\"/js/work_examples/work_examples.js?v={{ work_examples_js_version }}\"></script>
  379. {% endblock %}
  380. {% block popup %}
  381.     {{ parent() }}
  382.     {% include 'Slivki/mobile/share_block.html.twig' %}
  383. {% endblock %}
  384. {% block brandingBanner %}
  385.     {% if not (app.user and app.user.hasRole(constant('\\\\Slivki\\\\Entity\\\\UserGroup::ROLE_ADS_FREE'))) %}
  386.         {% set brandingBanner = getBrandingBanner(app.user, brandingBannerCategoryIDs is defined ? brandingBannerCategoryIDs : []) %}
  387.         {% if brandingBanner and brandingBanner.getMobileDivider() %}
  388.             <input type=\"hidden\" id=\"brandingBannerImage\" value=\"{{ brandingBanner.getMobileDivider() }}\"
  389.                    data-oid=\"{{ brandingBanner.getID() }}\" data-id=\"{{ brandingBanner.getBannerID() }}\"
  390.                    data-branding=\"{{ brandingBanner.getBannerID() }}\" data-url=\"{{ brandingBanner.getUrl()|trim }}\"
  391.                    data-right-side-url=\"{{ brandingBanner.getRightSideUrl()|trim }}\">
  392.         {% endif %}
  393.     {% endif %}
  394. {% endblock %}
  395. {% block RTBHouse %}
  396.     {% if categoryID == constant('Slivki\\\\Entity\\\\Category::NEW_OFFER_CATEGORY_ID') %}
  397.         <script>
  398.             try{ (function() {
  399.                 var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = []; rtbhTags.push(\"pr_\"+hash+\"_newoffers\"); rtbhTags.push(\"pr_\"+hash+\"_uid_\"+document.getElementById('rtbhUID').value);
  400.                 var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key); if (!lid) {
  401.                     lid = \"\"; var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
  402.                     for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
  403.                 rtbhTags.push(\"pr_\"+hash+\"_lid_\" + lid);
  404.                 var ifr = document.createElement(\"iframe\"),
  405.                     sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
  406.                     su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
  407.                     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]);}
  408.                 ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
  409.                 ifr.setAttribute(\"src\", ifrSrc); ifr.setAttribute(\"width\", \"1\");
  410.                 ifr.setAttribute(\"height\", \"1\"); ifr.setAttribute(\"scrolling\", \"no\");
  411.                 ifr.setAttribute(\"frameBorder\", \"0\"); ifr.setAttribute(\"style\", \"display:none\");
  412.                 ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\"); if(document.body){document.body.appendChild(ifr);}
  413.                 else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
  414.             })();} catch(e) {} </script>
  415.     {% else %}
  416.         <script>
  417.             try{ (function() {
  418.                 var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = []; rtbhTags.push(\"pr_\"+hash+\"_category2_\"+document.getElementById('categoryID').value); rtbhTags.push(\"pr_\"+hash+\"_uid_\"+document.getElementById('rtbhUID').value);
  419.                 var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key); if (!lid) {
  420.                     lid = \"\"; var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
  421.                     for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
  422.                 rtbhTags.push(\"pr_\"+hash+\"_lid_\" + lid);
  423.                 var ifr = document.createElement(\"iframe\"),
  424.                     sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
  425.                     su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
  426.                     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]);}
  427.                 ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
  428.                 ifr.setAttribute(\"src\", ifrSrc); ifr.setAttribute(\"width\", \"1\");
  429.                 ifr.setAttribute(\"height\", \"1\"); ifr.setAttribute(\"scrolling\", \"no\");
  430.                 ifr.setAttribute(\"frameBorder\", \"0\"); ifr.setAttribute(\"style\", \"display:none\");
  431.                 ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\"); if(document.body){document.body.appendChild(ifr);}
  432.                 else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
  433.             })();} catch(e) {} </script>
  434.     {% endif %}
  435. {% endblock %}""Slivki/mobile/offer/category.html.twig""/mnt/data/virtwww/test/templates/Slivki/mobile/offer/category.html.twig");
  436.     }
  437. }