var/cache/dev/twig/82/82e6e79418028fb5554ff9f0969f7c0f9c3a60e363f693ce4a61b2d654279f69.php line 53

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/index.html.twig */
  14. class __TwigTemplate_7be20ac6bfd69464f454c666c9f7a8c5874966beffd0be811f93793c9e76c58f 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.             'topContent' => [$this'block_topContent'],
  25.             'content' => [$this'block_content'],
  26.             'popup' => [$this'block_popup'],
  27.             'javascripts' => [$this'block_javascripts'],
  28.             'RTBHouse' => [$this'block_RTBHouse'],
  29.         ];
  30.     }
  31.     protected function doGetParent(array $context)
  32.     {
  33.         // line 1
  34.         return "Slivki/mobile/base.html.twig";
  35.     }
  36.     protected function doDisplay(array $context, array $blocks = [])
  37.     {
  38.         $macros $this->macros;
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/mobile/index.html.twig"));
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/mobile/index.html.twig"));
  43.         $this->parent $this->loadTemplate("Slivki/mobile/base.html.twig""Slivki/mobile/index.html.twig"1);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  47.         
  48.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  49.     }
  50.     // line 3
  51.     public function block_styles($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""styles"));
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""styles"));
  58.         // line 4
  59.         echo "    <link rel=\"stylesheet\" href=\"/css/swiper/swiper.min.css\" />
  60.     ";
  61.         // line 5
  62.         $this->displayParentBlock("styles"$context$blocks);
  63.         echo "
  64. ";
  65.         
  66.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  67.         
  68.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  69.     }
  70.     // line 8
  71.     public function block_topContent($context, array $blocks = [])
  72.     {
  73.         $macros $this->macros;
  74.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  75.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""topContent"));
  76.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  77.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""topContent"));
  78.         // line 9
  79.         echo "    ";
  80.         $this->loadTemplate((("Slivki/mobile" . (isset($context["regional_template_path"]) || array_key_exists("regional_template_path"$context) ? $context["regional_template_path"] : (function () { throw new RuntimeError('Variable "regional_template_path" does not exist.'9$this->source); })())) . "/top_block.html.twig"), "Slivki/mobile/index.html.twig"9)->display($context);
  81.         // line 10
  82.         echo "    ";
  83.         if ((!== twig_compare((isset($context["mainHotFeed"]) || array_key_exists("mainHotFeed"$context) ? $context["mainHotFeed"] : (function () { throw new RuntimeError('Variable "mainHotFeed" does not exist.'10$this->source); })()), ""))) {
  84.             // line 11
  85.             echo "        <div id=\"mainHotFeed\" class=\"px-1 position-relative\">
  86.             <h6 class=\"clearfix\">
  87.                 <span class=\"blink text-slivki\">·</span>
  88.                 <div class=\"d-inline-block alt-bold-font\">ГОРЯЧАЯ ЛЕНТА</div>
  89.             </h6>
  90.             <div id=\"mainHotFeedSlider\" class=\"swiper-container\" data-offset=\"0\" data-type=\"";
  91.             // line 16
  92.             echo twig_escape_filter($this->envtwig_constant("Slivki\\Entity\\HotFeed::TYPE_MAIN_PAGE"), "html"nulltrue);
  93.             echo "\">
  94.                 <div class=\"swiper-wrapper\">
  95.                     ";
  96.             // line 18
  97.             echo (isset($context["mainHotFeed"]) || array_key_exists("mainHotFeed"$context) ? $context["mainHotFeed"] : (function () { throw new RuntimeError('Variable "mainHotFeed" does not exist.'18$this->source); })());
  98.             echo "
  99.                 </div>
  100.                 <div class=\"swiper-button swiper-button-prev\"></div>
  101.                 <div class=\"swiper-button swiper-button-next\"></div>
  102.             </div>
  103.         </div>
  104.     ";
  105.         }
  106.         
  107.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  108.         
  109.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  110.     }
  111.     // line 27
  112.     public function block_content($context, array $blocks = [])
  113.     {
  114.         $macros $this->macros;
  115.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  116.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  117.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  118.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  119.         // line 28
  120.         echo "    <div class=\"content-title alt-font text-slivki\" data-html=\"true\" data-original-title=\"Промокоды<br> Уникальные предложения!<br> Лучшие цены!<br>\" data-placement=\"bottom\" data-toggle=\"tooltip\">
  121.         <h1>";
  122.         // line 29
  123.         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.'29$this->source); })()), "title", [], "any"falsefalsefalse29), "html"nulltrue);
  124.         echo "</h1>
  125.         ";
  126.         // line 30
  127.         ((( !array_key_exists("smallCity"$context) ||  !(isset($context["smallCity"]) || array_key_exists("smallCity"$context) ? $context["smallCity"] : (function () { throw new RuntimeError('Variable "smallCity" does not exist.'30$this->source); })()))) ? (print (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.'30$this->source); })()))) . ")"), "html"nulltrue))) : (print ("")));
  128.         echo "
  129.     </div>
  130.     <div class=\"categories-list";
  131.         // line 32
  132.         echo (((=== twig_compare(twig_length_filter($this->env, (isset($context["topLevelCategoryIDList"]) || array_key_exists("topLevelCategoryIDList"$context) ? $context["topLevelCategoryIDList"] : (function () { throw new RuntimeError('Variable "topLevelCategoryIDList" does not exist.'32$this->source); })())), 1))) ? (" one-category-city") : (""));
  133.         echo "\">
  134.         ";
  135.         // line 33
  136.         $context['_parent'] = $context;
  137.         $context['_seq'] = twig_ensure_traversable((isset($context["categoryBoxList"]) || array_key_exists("categoryBoxList"$context) ? $context["categoryBoxList"] : (function () { throw new RuntimeError('Variable "categoryBoxList" does not exist.'33$this->source); })()));
  138.         foreach ($context['_seq'] as $context["categoryID"] => $context["categoryBox"]) {
  139.             // line 34
  140.             echo "            ";
  141.             $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.'34$this->source); })()), "user", [], "any"falsefalsefalse34) && 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.'34$this->source); })()), "user", [], "any"falsefalsefalse34), "hasRole", [=> twig_constant("\\Slivki\\Entity\\UserGroup::ROLE_ADS_FREE")], "method"falsefalsefalse34))) ? ("") : ($this->extensions['Slivki\Twig\SlivkiTwigExtension']->getCategoryBanner(            // line 35
  142. $context["categoryID"])));
  143.             // line 36
  144.             echo "            ";
  145.             echo twig_replace_filter($context["categoryBox"], ["<div id=\"categoryBannerPlaceholder\"></div>" => (isset($context["categoryBanner"]) || array_key_exists("categoryBanner"$context) ? $context["categoryBanner"] : (function () { throw new RuntimeError('Variable "categoryBanner" does not exist.'36$this->source); })())]);
  146.             echo "
  147.         ";
  148.         }
  149.         $_parent $context['_parent'];
  150.         unset($context['_seq'], $context['_iterated'], $context['categoryID'], $context['categoryBox'], $context['_parent'], $context['loop']);
  151.         $context array_intersect_key($context$_parent) + $_parent;
  152.         // line 38
  153.         echo "    </div>
  154.     ";
  155.         // line 39
  156.         if ((=== twig_compare(twig_length_filter($this->env, (isset($context["topLevelCategoryIDList"]) || array_key_exists("topLevelCategoryIDList"$context) ? $context["topLevelCategoryIDList"] : (function () { throw new RuntimeError('Variable "topLevelCategoryIDList" does not exist.'39$this->source); })())), 1))) {
  157.             // line 40
  158.             echo "        <div id=\"mainPageLoader\" class=\"w-100\"><img class=\"d-block d-none mx-auto my-3\" src=\"/images/preloader-mob.svg\" width=\"30\" height=\"30\"></div>
  159.     ";
  160.         }
  161.         // line 42
  162.         echo "
  163.     ";
  164.         // line 43
  165.         if ((=== twig_compare((isset($context["cityID"]) || array_key_exists("cityID"$context) ? $context["cityID"] : (function () { throw new RuntimeError('Variable "cityID" does not exist.'43$this->source); })()), twig_constant("Slivki\\Entity\\City::DEFAULT_CITY_ID")))) {
  166.             // line 44
  167.             echo "        <div id=\"mainBottomBlock\" class=\"my-1 w-100\">
  168.             <div class=\"row no-gutters\">
  169.                 <div class=\"col-6\">
  170.                     <a id=\"moreCategories\" href=\"#\">Еще акции<br/>с промокодами</a>
  171.                 </div>
  172.                 <div class=\"col-6\">
  173.                     <a class=\"mr-0\" href=\"";
  174.             // line 50
  175.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sales");
  176.             echo "\">Новости<br/>скидок</a>
  177.                 </div>
  178.             </div>
  179.             <div class=\"row no-gutters\">
  180.                 <div class=\"col-4\">
  181.                     <a class=\"text-white\" style=\"background-image: url(/images/landing_photoguides.jpg)\"
  182.                        href=\"";
  183.             // line 56
  184.             echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getURL(twig_constant("Slivki\\Repository\\SeoRepository::RESOURCE_URL_SALE_CATEGORY"), twig_constant("Slivki\\Entity\\Category::PHOTOGUIDE_SALE_CATEGORY_ID")), "html"nulltrue);
  185.             echo "\">Фотогиды</a>
  186.                 </div>
  187.                 <div class=\"col-4\">
  188.                     <a class=\"text-white\" style=\"background-image: url(/images/landing_fliers.jpg)\"
  189.                        href=\"";
  190.             // line 60
  191.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("flierLanding");
  192.             echo "\">Листовки</a>
  193.                 </div>
  194.                 <div class=\"col-4\">
  195.                     <a class=\"mr-0 text-white\" style=\"background-image: url(/images/landing_sushi.jpg)\"
  196.                        href=\"/eda/sushi\">Суши</a>
  197.                 </div>
  198.             </div>
  199.             <a href=\"";
  200.             // line 67
  201.             echo twig_escape_filter($this->env, (isset($context["base_url"]) || array_key_exists("base_url"$context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.'67$this->source); })()), "html"nulltrue);
  202.             echo "/WatchList\"><i class=\"slivki-icon-eye-1\"></i> Недавно просмотренные акции</a>
  203.         </div>
  204.     ";
  205.         } elseif ((=== twig_compare(twig_length_filter($this->env,         // line 69
  206. (isset($context["topLevelCategoryIDList"]) || array_key_exists("topLevelCategoryIDList"$context) ? $context["topLevelCategoryIDList"] : (function () { throw new RuntimeError('Variable "topLevelCategoryIDList" does not exist.'69$this->source); })())), 2))) {
  207.             // line 70
  208.             echo "        <div class=\"px-2 w-100\">
  209.             <a id=\"moreCategories\" class=\"btn bg-slivki btn-block my-2 more-categories-button\" href=\"#\">Еще категории</a>
  210.         </div>
  211.     ";
  212.         }
  213.         // line 74
  214.         echo "
  215.     <input id=\"topLevelCategoryIDList\" type=\"hidden\" value=\"";
  216.         // line 75
  217.         echo twig_escape_filter($this->envjson_encode((isset($context["topLevelCategoryIDList"]) || array_key_exists("topLevelCategoryIDList"$context) ? $context["topLevelCategoryIDList"] : (function () { throw new RuntimeError('Variable "topLevelCategoryIDList" does not exist.'75$this->source); })())), "html"nulltrue);
  218.         echo "\">
  219. ";
  220.         
  221.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  222.         
  223.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  224.     }
  225.     // line 79
  226.     public function block_popup($context, array $blocks = [])
  227.     {
  228.         $macros $this->macros;
  229.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  230.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""popup"));
  231.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  232.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""popup"));
  233.         // line 80
  234.         echo "    ";
  235.         $this->displayParentBlock("popup"$context$blocks);
  236.         echo "
  237.     ";
  238.         // line 81
  239.         $this->loadTemplate("Slivki/mobile/select_city.html.twig""Slivki/mobile/index.html.twig"81)->display($context);
  240.         // line 82
  241.         echo "    ";
  242.         echo $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getMainMenu($this->envfalsefalse);
  243.         echo "
  244. ";
  245.         
  246.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  247.         
  248.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  249.     }
  250.     // line 85
  251.     public function block_javascripts($context, array $blocks = [])
  252.     {
  253.         $macros $this->macros;
  254.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  255.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  256.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  257.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  258.         // line 86
  259.         echo "    <script src=\"/js/swiper-js/swiper.min.js\"></script>
  260.     ";
  261.         // line 87
  262.         $this->displayParentBlock("javascripts"$context$blocks);
  263.         echo "
  264.     <script src=\"/mobile/js/index.js?v=4\"></script>
  265.     ";
  266.         // line 89
  267.         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.'89$this->source); })()))) {
  268.             // line 90
  269.             echo "        <script src=\"//api-maps.yandex.ru/2.1.29/?lang=ru-RU\" type=\"text/javascript\"></script>
  270.         <script src=\"//mourner.github.io/simplify-js/simplify.js\"></script>
  271.         <script type=\"module\" src=\"/mobile/js/category.min.js?v=";
  272.             // line 92
  273.             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.'92$this->source); })()), "html"nulltrue);
  274.             echo "\"></script>
  275.     ";
  276.         }
  277.         
  278.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  279.         
  280.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  281.     }
  282.     // line 96
  283.     public function block_RTBHouse($context, array $blocks = [])
  284.     {
  285.         $macros $this->macros;
  286.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  287.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""RTBHouse"));
  288.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  289.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""RTBHouse"));
  290.         // line 97
  291.         echo "    <script>
  292.         try{ (function() {
  293.             var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = []; rtbhTags.push(\"pr_\"+hash+\"_home\"); rtbhTags.push(\"pr_\"+hash+\"_uid_\"+document.getElementById('rtbhUID').value);
  294.             var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key); if (!lid) {
  295.                 lid = \"\"; var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
  296.                 for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
  297.             rtbhTags.push(\"pr_\"+hash+\"_lid_\" + lid);
  298.             var ifr = document.createElement(\"iframe\"),
  299.                 sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
  300.                 su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
  301.                 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]);}
  302.             ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
  303.             ifr.setAttribute(\"src\", ifrSrc); ifr.setAttribute(\"width\", \"1\");
  304.             ifr.setAttribute(\"height\", \"1\"); ifr.setAttribute(\"scrolling\", \"no\");
  305.             ifr.setAttribute(\"frameBorder\", \"0\"); ifr.setAttribute(\"style\", \"display:none\");
  306.             ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\"); if(document.body){document.body.appendChild(ifr);}
  307.             else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
  308.         })();} catch(e) {} </script>
  309. ";
  310.         
  311.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  312.         
  313.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  314.     }
  315.     public function getTemplateName()
  316.     {
  317.         return "Slivki/mobile/index.html.twig";
  318.     }
  319.     public function isTraitable()
  320.     {
  321.         return false;
  322.     }
  323.     public function getDebugInfo()
  324.     {
  325.         return array (  331 => 97,  321 => 96,  308 => 92,  304 => 90,  302 => 89,  297 => 87,  294 => 86,  284 => 85,  271 => 82,  269 => 81,  264 => 80,  254 => 79,  241 => 75,  238 => 74,  232 => 70,  230 => 69,  225 => 67,  215 => 60,  208 => 56,  199 => 50,  191 => 44,  189 => 43,  186 => 42,  182 => 40,  180 => 39,  177 => 38,  168 => 36,  166 => 35,  164 => 34,  160 => 33,  156 => 32,  151 => 30,  147 => 29,  144 => 28,  134 => 27,  116 => 18,  111 => 16,  104 => 11,  101 => 10,  98 => 9,  88 => 8,  76 => 5,  73 => 4,  63 => 3,  40 => 1,);
  326.     }
  327.     public function getSourceContext()
  328.     {
  329.         return new Source("{% extends 'Slivki/mobile/base.html.twig' %}
  330. {% block styles %}
  331.     <link rel=\"stylesheet\" href=\"/css/swiper/swiper.min.css\" />
  332.     {{ parent() }}
  333. {% endblock %}
  334. {% block topContent %}
  335.     {% include \"Slivki/mobile#{regional_template_path}/top_block.html.twig\" %}
  336.     {% if mainHotFeed != '' %}
  337.         <div id=\"mainHotFeed\" class=\"px-1 position-relative\">
  338.             <h6 class=\"clearfix\">
  339.                 <span class=\"blink text-slivki\">·</span>
  340.                 <div class=\"d-inline-block alt-bold-font\">ГОРЯЧАЯ ЛЕНТА</div>
  341.             </h6>
  342.             <div id=\"mainHotFeedSlider\" class=\"swiper-container\" data-offset=\"0\" data-type=\"{{ constant('Slivki\\\\Entity\\\\HotFeed::TYPE_MAIN_PAGE') }}\">
  343.                 <div class=\"swiper-wrapper\">
  344.                     {{ mainHotFeed|raw }}
  345.                 </div>
  346.                 <div class=\"swiper-button swiper-button-prev\"></div>
  347.                 <div class=\"swiper-button swiper-button-next\"></div>
  348.             </div>
  349.         </div>
  350.     {% endif %}
  351. {% endblock %}
  352. {% block content %}
  353.     <div class=\"content-title alt-font text-slivki\" data-html=\"true\" data-original-title=\"Промокоды<br> Уникальные предложения!<br> Лучшие цены!<br>\" data-placement=\"bottom\" data-toggle=\"tooltip\">
  354.         <h1>{{ metaInfo.title }}</h1>
  355.         {{ smallCity is not defined or not smallCity ? ' (' ~ getActiveOffersCount(cityID) ~ ')' }}
  356.     </div>
  357.     <div class=\"categories-list{{ topLevelCategoryIDList|length == 1 ? ' one-category-city' }}\">
  358.         {% for categoryID, categoryBox in categoryBoxList %}
  359.             {% set categoryBanner = app.user and app.user.hasRole(constant('\\\\Slivki\\\\Entity\\\\UserGroup::ROLE_ADS_FREE')) ? ''
  360.                 : getCategoryBanner(categoryID) %}
  361.             {{ categoryBox|replace({'<div id=\"categoryBannerPlaceholder\"></div>': categoryBanner})|raw }}
  362.         {% endfor %}
  363.     </div>
  364.     {% if topLevelCategoryIDList|length > 1 %}
  365.         <div id=\"mainPageLoader\" class=\"w-100\"><img class=\"d-block d-none mx-auto my-3\" src=\"/images/preloader-mob.svg\" width=\"30\" height=\"30\"></div>
  366.     {% endif %}
  367.     {% if cityID == constant('Slivki\\\\Entity\\\\City::DEFAULT_CITY_ID') %}
  368.         <div id=\"mainBottomBlock\" class=\"my-1 w-100\">
  369.             <div class=\"row no-gutters\">
  370.                 <div class=\"col-6\">
  371.                     <a id=\"moreCategories\" href=\"#\">Еще акции<br/>с промокодами</a>
  372.                 </div>
  373.                 <div class=\"col-6\">
  374.                     <a class=\"mr-0\" href=\"{{ path('sales') }}\">Новости<br/>скидок</a>
  375.                 </div>
  376.             </div>
  377.             <div class=\"row no-gutters\">
  378.                 <div class=\"col-4\">
  379.                     <a class=\"text-white\" style=\"background-image: url(/images/landing_photoguides.jpg)\"
  380.                        href=\"{{ getURL(constant('Slivki\\\\Repository\\\\SeoRepository::RESOURCE_URL_SALE_CATEGORY'), constant('Slivki\\\\Entity\\\\Category::PHOTOGUIDE_SALE_CATEGORY_ID')) }}\">Фотогиды</a>
  381.                 </div>
  382.                 <div class=\"col-4\">
  383.                     <a class=\"text-white\" style=\"background-image: url(/images/landing_fliers.jpg)\"
  384.                        href=\"{{ path('flierLanding') }}\">Листовки</a>
  385.                 </div>
  386.                 <div class=\"col-4\">
  387.                     <a class=\"mr-0 text-white\" style=\"background-image: url(/images/landing_sushi.jpg)\"
  388.                        href=\"/eda/sushi\">Суши</a>
  389.                 </div>
  390.             </div>
  391.             <a href=\"{{ base_url }}/WatchList\"><i class=\"slivki-icon-eye-1\"></i> Недавно просмотренные акции</a>
  392.         </div>
  393.     {% elseif topLevelCategoryIDList|length > 2 %}
  394.         <div class=\"px-2 w-100\">
  395.             <a id=\"moreCategories\" class=\"btn bg-slivki btn-block my-2 more-categories-button\" href=\"#\">Еще категории</a>
  396.         </div>
  397.     {% endif %}
  398.     <input id=\"topLevelCategoryIDList\" type=\"hidden\" value=\"{{ topLevelCategoryIDList|json_encode }}\">
  399. {% endblock %}
  400. {% block popup %}
  401.     {{ parent() }}
  402.     {% include 'Slivki/mobile/select_city.html.twig' %}
  403.     {{ getMainMenu(false, false) }}
  404. {% endblock %}
  405. {% block javascripts %}
  406.     <script src=\"/js/swiper-js/swiper.min.js\"></script>
  407.     {{ parent() }}
  408.     <script src=\"/mobile/js/index.js?v=4\"></script>
  409.     {% if smallCity is defined and smallCity %}
  410.         <script src=\"//api-maps.yandex.ru/2.1.29/?lang=ru-RU\" type=\"text/javascript\"></script>
  411.         <script src=\"//mourner.github.io/simplify-js/simplify.js\"></script>
  412.         <script type=\"module\" src=\"/mobile/js/category.min.js?v={{ mobile_category_js_version }}\"></script>
  413.     {% endif %}
  414. {% endblock %}
  415. {% block RTBHouse %}
  416.     <script>
  417.         try{ (function() {
  418.             var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = []; rtbhTags.push(\"pr_\"+hash+\"_home\"); 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. {% endblock %}""Slivki/mobile/index.html.twig""/mnt/data/virtwww/slivki/templates/Slivki/mobile/index.html.twig");
  435.     }
  436. }