var/cache/dev/twig/2f/2fc87c74a2114f83426abcfd11c39739bdd54d2967c61db426b29fe1e54a0320.php line 237

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/index.html.twig */
  14. class __TwigTemplate_202ab0e4cfe620ffca40ad4af51aaa2776a994e6e2b55efd2c3bc5329655a407 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.             'meta' => [$this'block_meta'],
  24.             'stylesheets' => [$this'block_stylesheets'],
  25.             'left_sidebar' => [$this'block_left_sidebar'],
  26.             'topContentBlock' => [$this'block_topContentBlock'],
  27.             'mainHotFeedBlock' => [$this'block_mainHotFeedBlock'],
  28.             'main_content' => [$this'block_main_content'],
  29.             'javascripts' => [$this'block_javascripts'],
  30.             'popups' => [$this'block_popups'],
  31.             'RTBHouse' => [$this'block_RTBHouse'],
  32.         ];
  33.     }
  34.     protected function doGetParent(array $context)
  35.     {
  36.         // line 1
  37.         return "base.html.twig";
  38.     }
  39.     protected function doDisplay(array $context, array $blocks = [])
  40.     {
  41.         $macros $this->macros;
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/index.html.twig"));
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/index.html.twig"));
  46.         $this->parent $this->loadTemplate("base.html.twig""Slivki/index.html.twig"1);
  47.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  48.         
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  50.         
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  52.     }
  53.     // line 3
  54.     public function block_meta($context, array $blocks = [])
  55.     {
  56.         $macros $this->macros;
  57.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta"));
  59.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta"));
  61.         // line 4
  62.         echo "    ";
  63.         $this->displayParentBlock("meta"$context$blocks);
  64.         echo "
  65.     <meta name=\"verify-admitad\" content=\"422955a37d\" />
  66. ";
  67.         
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  69.         
  70.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  71.     }
  72.     // line 8
  73.     public function block_stylesheets($context, array $blocks = [])
  74.     {
  75.         $macros $this->macros;
  76.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  77.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  78.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  79.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  80.         // line 9
  81.         echo "    <link rel=\"stylesheet\" type=\"text/css\" href=\"https://cdn.jsdelivr.net/jquery.slick/1.6.0/slick.css\"/>
  82.     <link rel=\"stylesheet\" href=\"/css/swiper/swiper.min.css\" />
  83.     ";
  84.         // line 11
  85.         $this->displayParentBlock("stylesheets"$context$blocks);
  86.         echo "
  87. ";
  88.         
  89.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  90.         
  91.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  92.     }
  93.     // line 14
  94.     public function block_left_sidebar($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""left_sidebar"));
  99.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  100.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""left_sidebar"));
  101.         // line 15
  102.         echo "    ";
  103.         $this->loadTemplate("left_sidebar.html.twig""Slivki/index.html.twig"15)->display($context);
  104.         
  105.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  106.         
  107.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  108.     }
  109.     // line 18
  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 19
  118.         echo "    <div class=\"top-content-block clearfix\">
  119.         <div class=\"content--main news-and-comments-block px-2\">
  120.             <div class=\"content-wrapper\">
  121.                 ";
  122.         // line 22
  123.         if ($this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SHOW_TOP_NEWS_BLOCK"))) {
  124.             // line 23
  125.             echo "                    ";
  126.             $this->loadTemplate("Slivki/news/top_news.html.twig""Slivki/index.html.twig"23)->display(twig_array_merge($context, ["salesList" => (isset($context["salesList"]) || array_key_exists("salesList"$context) ? $context["salesList"] : (function () { throw new RuntimeError('Variable "salesList" does not exist.'23$this->source); })())]));
  127.             // line 24
  128.             echo "                    ";
  129.             $this->loadTemplate("Slivki/comments/live_comments.html.twig""Slivki/index.html.twig"24)->display(twig_array_merge($context, ["lastComments" => (isset($context["lastComments"]) || array_key_exists("lastComments"$context) ? $context["lastComments"] : (function () { throw new RuntimeError('Variable "lastComments" does not exist.'24$this->source); })())]));
  130.             // line 25
  131.             echo "                ";
  132.         } else {
  133.             // line 26
  134.             echo "                    ";
  135.             $this->loadTemplate("Slivki/uz/top_block.html.twig""Slivki/index.html.twig"26)->display($context);
  136.             // line 27
  137.             echo "                ";
  138.         }
  139.         // line 28
  140.         echo "                <div class=\"clear\"></div>
  141.             </div>
  142.         </div>
  143.         <div class=\"content--aside\">
  144.             ";
  145.         // line 32
  146.         echo (isset($context["sidebarBanner"]) || array_key_exists("sidebarBanner"$context) ? $context["sidebarBanner"] : (function () { throw new RuntimeError('Variable "sidebarBanner" does not exist.'32$this->source); })());
  147.         echo "
  148.         </div>
  149.         <div class=\"clear\"></div>
  150.     </div>
  151.     <input type=\"hidden\" id=\"mainPage\"/>
  152. ";
  153.         
  154.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  155.         
  156.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  157.     }
  158.     // line 40
  159.     public function block_mainHotFeedBlock($context, array $blocks = [])
  160.     {
  161.         $macros $this->macros;
  162.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  163.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainHotFeedBlock"));
  164.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  165.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainHotFeedBlock"));
  166.         // line 41
  167.         echo "    ";
  168.         if (array_key_exists("mainHotFeed"$context)) {
  169.             // line 42
  170.             echo "        <div id=\"mainHotFeed\">
  171.             ";
  172.             // line 43
  173.             if ($this->extensions['Slivki\Twig\SlivkiTwigExtension']->isMobileDevice()) {
  174.                 // line 44
  175.                 echo "                <div class=\"title\"><i>&nbsp;</i> ГОРЯЧАЯ ЛЕНТА</div>
  176.             ";
  177.             }
  178.             // line 46
  179.             echo "            <div id=\"mainHotFeedSlider\" class=\"swiper-container\" data-offset=\"0\" data-type=\"";
  180.             echo twig_escape_filter($this->envtwig_constant("Slivki\\Entity\\HotFeed::TYPE_MAIN_PAGE"), "html"nulltrue);
  181.             echo "\">
  182.                 <div class=\"swiper-wrapper\">
  183.                     ";
  184.             // line 48
  185.             echo (isset($context["mainHotFeed"]) || array_key_exists("mainHotFeed"$context) ? $context["mainHotFeed"] : (function () { throw new RuntimeError('Variable "mainHotFeed" does not exist.'48$this->source); })());
  186.             echo "
  187.                 </div>
  188.                 <div class=\"swiper-button swiper-button-prev\"></div>
  189.                 <div class=\"swiper-button swiper-button-next\"></div>
  190.             </div>
  191.         </div>
  192.     ";
  193.         }
  194.         
  195.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  196.         
  197.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  198.     }
  199.     // line 57
  200.     public function block_main_content($context, array $blocks = [])
  201.     {
  202.         $macros $this->macros;
  203.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  204.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_content"));
  205.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  206.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_content"));
  207.         // line 58
  208.         echo "    ";
  209.         if ((twig_get_attribute($this->env$this->source, (isset($context["metaInfo"]) || array_key_exists("metaInfo"$context) ? $context["metaInfo"] : (function () { throw new RuntimeError('Variable "metaInfo" does not exist.'58$this->source); })()), "title", [], "any"falsefalsefalse58) && (!== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["metaInfo"]) || array_key_exists("metaInfo"$context) ? $context["metaInfo"] : (function () { throw new RuntimeError('Variable "metaInfo" does not exist.'58$this->source); })()), "title", [], "any"falsefalsefalse58), "")))) {
  210.             // line 59
  211.             echo "        <div class=\"content-block-title\" data-html=\"true\" data-original-title=\"Промокоды  <br>  Уникальные предложения!  <br>  Лучшие цены!  <br> \" data-placement=\"bottom\" data-toggle=\"tooltip\">
  212.             <h1>";
  213.             // line 60
  214.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["metaInfo"]) || array_key_exists("metaInfo"$context) ? $context["metaInfo"] : (function () { throw new RuntimeError('Variable "metaInfo" does not exist.'60$this->source); })()), "title", [], "any"falsefalsefalse60), "html"nulltrue);
  215.             echo "</h1> (";
  216.             echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getActiveOffersCount((isset($context["cityID"]) || array_key_exists("cityID"$context) ? $context["cityID"] : (function () { throw new RuntimeError('Variable "cityID" does not exist.'60$this->source); })())), "html"nulltrue);
  217.             echo ")
  218.         </div>
  219.     ";
  220.         }
  221.         // line 63
  222.         echo "    ";
  223.         $this->loadTemplate("Slivki/offers/category_list.html.twig""Slivki/index.html.twig"63)->display(twig_array_merge($context, (isset($context["categoryBoxList"]) || array_key_exists("categoryBoxList"$context) ? $context["categoryBoxList"] : (function () { throw new RuntimeError('Variable "categoryBoxList" does not exist.'63$this->source); })())));
  224.         // line 64
  225.         echo "    <div class=\"d-none\">
  226.         ";
  227.         // line 65
  228.         $context['_parent'] = $context;
  229.         $context['_seq'] = twig_ensure_traversable((isset($context["topLevelCategoryIDList"]) || array_key_exists("topLevelCategoryIDList"$context) ? $context["topLevelCategoryIDList"] : (function () { throw new RuntimeError('Variable "topLevelCategoryIDList" does not exist.'65$this->source); })()));
  230.         foreach ($context['_seq'] as $context["_key"] => $context["categoryID"]) {
  231.             // line 66
  232.             echo "            <li data-oid=\"";
  233.             echo twig_escape_filter($this->env$context["categoryID"], "html"nulltrue);
  234.             echo "\" class=\"root-category-li\"></li>
  235.         ";
  236.         }
  237.         $_parent $context['_parent'];
  238.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['categoryID'], $context['_parent'], $context['loop']);
  239.         $context array_intersect_key($context$_parent) + $_parent;
  240.         // line 68
  241.         echo "    </div>
  242. ";
  243.         
  244.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  245.         
  246.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  247.     }
  248.     // line 71
  249.     public function block_javascripts($context, array $blocks = [])
  250.     {
  251.         $macros $this->macros;
  252.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  253.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  254.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  255.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  256.         // line 72
  257.         echo "    <script type=\"text/javascript\" src=\"https://cdn.jsdelivr.net/jquery.slick/1.6.0/slick.min.js\"></script>
  258.     <script src=\"/js/swiper-js/swiper.min.js\"></script>
  259.     ";
  260.         // line 74
  261.         $this->displayParentBlock("javascripts"$context$blocks);
  262.         echo "
  263.     <script type=\"text/javascript\">
  264.         \$(function () { //WTF?
  265.             scrollDecriptionCategory();
  266.         });
  267.     </script>
  268.     ";
  269.         // line 80
  270.         if ((array_key_exists("smallCity"$context) && (isset($context["smallCity"]) || array_key_exists("smallCity"$context) ? $context["smallCity"] : (function () { throw new RuntimeError('Variable "smallCity" does not exist.'80$this->source); })()))) {
  271.             // line 81
  272.             echo "        <script src=\"//api-maps.yandex.ru/2.1.29/?lang=ru-RU\" type=\"text/javascript\"></script>
  273.         <script src=\"//mourner.github.io/simplify-js/simplify.js\"></script>
  274.         <script type=\"module\" src=\"/js/category.js?v=";
  275.             // line 83
  276.             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.'83$this->source); })()), "html"nulltrue);
  277.             echo "\" type=\"text/javascript\"></script>
  278.     ";
  279.         }
  280.         
  281.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  282.         
  283.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  284.     }
  285.     // line 87
  286.     public function block_popups($context, array $blocks = [])
  287.     {
  288.         $macros $this->macros;
  289.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  290.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""popups"));
  291.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  292.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""popups"));
  293.         // line 88
  294.         echo "    ";
  295.         $this->displayParentBlock("popups"$context$blocks);
  296.         echo "
  297.     ";
  298.         // line 89
  299.         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.'89$this->source); })()), "user", [], "any"falsefalsefalse89) || (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.'89$this->source); })()), "user", [], "any"falsefalsefalse89) &&  !$this->env->getRuntime('Slivki\Twig\SubscriptionTwigRuntime')->isSubscriber(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.'89$this->source); })()), "user", [], "any"falsefalsefalse89))))) {
  300.             // line 90
  301.             echo "        ";
  302.             $this->loadTemplate("Slivki/popups/popup_subscribe.html.twig""Slivki/index.html.twig"90)->display($context);
  303.             // line 91
  304.             echo "    ";
  305.         }
  306.         // line 92
  307.         echo "    ";
  308.         $this->loadTemplate("Slivki/popups/video_guide_popup.html.twig""Slivki/index.html.twig"92)->display($context);
  309.         // line 93
  310.         echo "    ";
  311.         $this->loadTemplate("Slivki/popups/subscription_success.html.twig""Slivki/index.html.twig"93)->display($context);
  312.         
  313.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  314.         
  315.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  316.     }
  317.     // line 96
  318.     public function block_RTBHouse($context, array $blocks = [])
  319.     {
  320.         $macros $this->macros;
  321.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  322.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""RTBHouse"));
  323.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  324.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""RTBHouse"));
  325.         // line 97
  326.         echo "    <script>
  327.         try{ (function() {
  328.             var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = []; rtbhTags.push(\"pr_\"+hash+\"_home\"); rtbhTags.push(\"pr_\"+hash+\"_uid_\"+document.getElementById('rtbhUID').value);
  329.             var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key); if (!lid) {
  330.                 lid = \"\"; var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
  331.                 for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
  332.             rtbhTags.push(\"pr_\"+hash+\"_lid_\" + lid);
  333.             var ifr = document.createElement(\"iframe\"),
  334.                 sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
  335.                 su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
  336.                 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]);}
  337.             ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
  338.             ifr.setAttribute(\"src\", ifrSrc); ifr.setAttribute(\"width\", \"1\");
  339.             ifr.setAttribute(\"height\", \"1\"); ifr.setAttribute(\"scrolling\", \"no\");
  340.             ifr.setAttribute(\"frameBorder\", \"0\"); ifr.setAttribute(\"style\", \"display:none\");
  341.             ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\"); if(document.body){document.body.appendChild(ifr);}
  342.             else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
  343.         })();} catch(e) {} </script>
  344. ";
  345.         
  346.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  347.         
  348.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  349.     }
  350.     public function getTemplateName()
  351.     {
  352.         return "Slivki/index.html.twig";
  353.     }
  354.     public function isTraitable()
  355.     {
  356.         return false;
  357.     }
  358.     public function getDebugInfo()
  359.     {
  360.         return array (  380 => 97,  370 => 96,  359 => 93,  356 => 92,  353 => 91,  350 => 90,  348 => 89,  343 => 88,  333 => 87,  320 => 83,  316 => 81,  314 => 80,  305 => 74,  301 => 72,  291 => 71,  280 => 68,  271 => 66,  267 => 65,  264 => 64,  261 => 63,  253 => 60,  250 => 59,  247 => 58,  237 => 57,  219 => 48,  213 => 46,  209 => 44,  207 => 43,  204 => 42,  201 => 41,  191 => 40,  175 => 32,  169 => 28,  166 => 27,  163 => 26,  160 => 25,  157 => 24,  154 => 23,  152 => 22,  147 => 19,  137 => 18,  126 => 15,  116 => 14,  104 => 11,  100 => 9,  90 => 8,  76 => 4,  66 => 3,  43 => 1,);
  361.     }
  362.     public function getSourceContext()
  363.     {
  364.         return new Source("{% extends 'base.html.twig' %}
  365. {% block meta %}
  366.     {{ parent() }}
  367.     <meta name=\"verify-admitad\" content=\"422955a37d\" />
  368. {% endblock %}
  369. {% block stylesheets %}
  370.     <link rel=\"stylesheet\" type=\"text/css\" href=\"https://cdn.jsdelivr.net/jquery.slick/1.6.0/slick.css\"/>
  371.     <link rel=\"stylesheet\" href=\"/css/swiper/swiper.min.css\" />
  372.     {{ parent() }}
  373. {% endblock %}
  374. {% block left_sidebar %}
  375.     {% include 'left_sidebar.html.twig' %}
  376. {% endblock %}
  377. {% block topContentBlock %}
  378.     <div class=\"top-content-block clearfix\">
  379.         <div class=\"content--main news-and-comments-block px-2\">
  380.             <div class=\"content-wrapper\">
  381.                 {% if isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SHOW_TOP_NEWS_BLOCK')) %}
  382.                     {% include 'Slivki/news/top_news.html.twig' with { 'salesList': salesList } %}
  383.                     {% include 'Slivki/comments/live_comments.html.twig' with { 'lastComments': lastComments } %}
  384.                 {% else %}
  385.                     {% include 'Slivki/uz/top_block.html.twig' %}
  386.                 {% endif %}
  387.                 <div class=\"clear\"></div>
  388.             </div>
  389.         </div>
  390.         <div class=\"content--aside\">
  391.             {{ sidebarBanner|raw }}
  392.         </div>
  393.         <div class=\"clear\"></div>
  394.     </div>
  395.     <input type=\"hidden\" id=\"mainPage\"/>
  396. {% endblock %}
  397. {% block mainHotFeedBlock %}
  398.     {% if mainHotFeed is defined %}
  399.         <div id=\"mainHotFeed\">
  400.             {% if isMobileDevice() %}
  401.                 <div class=\"title\"><i>&nbsp;</i> ГОРЯЧАЯ ЛЕНТА</div>
  402.             {% endif %}
  403.             <div id=\"mainHotFeedSlider\" class=\"swiper-container\" data-offset=\"0\" data-type=\"{{ constant('Slivki\\\\Entity\\\\HotFeed::TYPE_MAIN_PAGE') }}\">
  404.                 <div class=\"swiper-wrapper\">
  405.                     {{ mainHotFeed|raw }}
  406.                 </div>
  407.                 <div class=\"swiper-button swiper-button-prev\"></div>
  408.                 <div class=\"swiper-button swiper-button-next\"></div>
  409.             </div>
  410.         </div>
  411.     {% endif %}
  412. {% endblock %}
  413. {% block main_content %}
  414.     {% if metaInfo.title and metaInfo.title != '' %}
  415.         <div class=\"content-block-title\" data-html=\"true\" data-original-title=\"Промокоды  <br>  Уникальные предложения!  <br>  Лучшие цены!  <br> \" data-placement=\"bottom\" data-toggle=\"tooltip\">
  416.             <h1>{{ metaInfo.title }}</h1> ({{ getActiveOffersCount(cityID) }})
  417.         </div>
  418.     {% endif %}
  419.     {% include 'Slivki/offers/category_list.html.twig' with categoryBoxList %}
  420.     <div class=\"d-none\">
  421.         {% for categoryID in topLevelCategoryIDList %}
  422.             <li data-oid=\"{{ categoryID }}\" class=\"root-category-li\"></li>
  423.         {% endfor %}
  424.     </div>
  425. {% endblock %}
  426. {% block javascripts %}
  427.     <script type=\"text/javascript\" src=\"https://cdn.jsdelivr.net/jquery.slick/1.6.0/slick.min.js\"></script>
  428.     <script src=\"/js/swiper-js/swiper.min.js\"></script>
  429.     {{ parent() }}
  430.     <script type=\"text/javascript\">
  431.         \$(function () { //WTF?
  432.             scrollDecriptionCategory();
  433.         });
  434.     </script>
  435.     {% if smallCity is defined and smallCity %}
  436.         <script src=\"//api-maps.yandex.ru/2.1.29/?lang=ru-RU\" type=\"text/javascript\"></script>
  437.         <script src=\"//mourner.github.io/simplify-js/simplify.js\"></script>
  438.         <script type=\"module\" src=\"/js/category.js?v={{ category_js_version }}\" type=\"text/javascript\"></script>
  439.     {% endif %}
  440. {% endblock %}
  441. {% block popups %}
  442.     {{ parent() }}
  443.     {% if not app.user or (app.user and not isSubscriber(app.user)) %}
  444.         {% include 'Slivki/popups/popup_subscribe.html.twig' %}
  445.     {% endif %}
  446.     {% include 'Slivki/popups/video_guide_popup.html.twig' %}
  447.     {% include 'Slivki/popups/subscription_success.html.twig' %}
  448. {% endblock %}
  449. {% block RTBHouse %}
  450.     <script>
  451.         try{ (function() {
  452.             var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = []; rtbhTags.push(\"pr_\"+hash+\"_home\"); rtbhTags.push(\"pr_\"+hash+\"_uid_\"+document.getElementById('rtbhUID').value);
  453.             var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key); if (!lid) {
  454.                 lid = \"\"; var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
  455.                 for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
  456.             rtbhTags.push(\"pr_\"+hash+\"_lid_\" + lid);
  457.             var ifr = document.createElement(\"iframe\"),
  458.                 sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
  459.                 su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
  460.                 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]);}
  461.             ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
  462.             ifr.setAttribute(\"src\", ifrSrc); ifr.setAttribute(\"width\", \"1\");
  463.             ifr.setAttribute(\"height\", \"1\"); ifr.setAttribute(\"scrolling\", \"no\");
  464.             ifr.setAttribute(\"frameBorder\", \"0\"); ifr.setAttribute(\"style\", \"display:none\");
  465.             ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\"); if(document.body){document.body.appendChild(ifr);}
  466.             else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
  467.         })();} catch(e) {} </script>
  468. {% endblock %}""Slivki/index.html.twig""/mnt/data/virtwww/vlad-slivki/templates/Slivki/index.html.twig");
  469.     }
  470. }