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.             ";
  200.             // line 67
  201.             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.'67$this->source); })()), "user", [], "any"falsefalsefalse67)) {
  202.                 // line 68
  203.                 echo "                <a href=\"";
  204.                 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.'68$this->source); })()), "html"nulltrue);
  205.                 echo "/WatchList\"><i class=\"slivki-icon-eye-1\"></i> Недавно просмотренные акции</a>
  206.             ";
  207.             } else {
  208.                 // line 70
  209.                 echo "                <a data-toggle=\"modal\" data-target=\".modal-auth\"><i class=\"slivki-icon-eye-1\"></i> Недавно просмотренные акции</a>
  210.                     ";
  211.             }
  212.             // line 72
  213.             echo "        </div>
  214.     ";
  215.         } elseif ((=== twig_compare(twig_length_filter($this->env,         // line 73
  216. (isset($context["topLevelCategoryIDList"]) || array_key_exists("topLevelCategoryIDList"$context) ? $context["topLevelCategoryIDList"] : (function () { throw new RuntimeError('Variable "topLevelCategoryIDList" does not exist.'73$this->source); })())), 2))) {
  217.             // line 74
  218.             echo "        <div class=\"px-2 w-100\">
  219.             <a id=\"moreCategories\" class=\"btn bg-slivki btn-block my-2 more-categories-button\" href=\"#\">Еще категории</a>
  220.         </div>
  221.     ";
  222.         }
  223.         // line 78
  224.         echo "
  225.     <input id=\"topLevelCategoryIDList\" type=\"hidden\" value=\"";
  226.         // line 79
  227.         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.'79$this->source); })())), "html"nulltrue);
  228.         echo "\">
  229. ";
  230.         
  231.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  232.         
  233.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  234.     }
  235.     // line 83
  236.     public function block_popup($context, array $blocks = [])
  237.     {
  238.         $macros $this->macros;
  239.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  240.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""popup"));
  241.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  242.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""popup"));
  243.         // line 84
  244.         echo "    ";
  245.         $this->displayParentBlock("popup"$context$blocks);
  246.         echo "
  247.     ";
  248.         // line 85
  249.         $this->loadTemplate("Slivki/mobile/select_city.html.twig""Slivki/mobile/index.html.twig"85)->display($context);
  250.         // line 86
  251.         echo "    ";
  252.         echo $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getMainMenu($this->envfalsefalse);
  253.         echo "
  254. ";
  255.         
  256.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  257.         
  258.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  259.     }
  260.     // line 89
  261.     public function block_javascripts($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""javascripts"));
  266.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  267.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  268.         // line 90
  269.         echo "    <script src=\"/js/swiper-js/swiper.min.js\"></script>
  270.     ";
  271.         // line 91
  272.         $this->displayParentBlock("javascripts"$context$blocks);
  273.         echo "
  274.     <script src=\"/mobile/js/index.js?v=4\"></script>
  275.     ";
  276.         // line 93
  277.         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.'93$this->source); })()))) {
  278.             // line 94
  279.             echo "        <script src=\"//api-maps.yandex.ru/2.1.29/?lang=ru-RU\" type=\"text/javascript\"></script>
  280.         <script src=\"//mourner.github.io/simplify-js/simplify.js\"></script>
  281.         <script type=\"module\" src=\"/mobile/js/category.min.js?v=";
  282.             // line 96
  283.             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.'96$this->source); })()), "html"nulltrue);
  284.             echo "\"></script>
  285.     ";
  286.         }
  287.         
  288.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  289.         
  290.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  291.     }
  292.     // line 100
  293.     public function block_RTBHouse($context, array $blocks = [])
  294.     {
  295.         $macros $this->macros;
  296.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  297.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""RTBHouse"));
  298.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  299.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""RTBHouse"));
  300.         // line 101
  301.         echo "    <script>
  302.         try{ (function() {
  303.             var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = []; rtbhTags.push(\"pr_\"+hash+\"_home\"); rtbhTags.push(\"pr_\"+hash+\"_uid_\"+document.getElementById('rtbhUID').value);
  304.             var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key); if (!lid) {
  305.                 lid = \"\"; var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
  306.                 for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
  307.             rtbhTags.push(\"pr_\"+hash+\"_lid_\" + lid);
  308.             var ifr = document.createElement(\"iframe\"),
  309.                 sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
  310.                 su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
  311.                 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]);}
  312.             ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
  313.             ifr.setAttribute(\"src\", ifrSrc); ifr.setAttribute(\"width\", \"1\");
  314.             ifr.setAttribute(\"height\", \"1\"); ifr.setAttribute(\"scrolling\", \"no\");
  315.             ifr.setAttribute(\"frameBorder\", \"0\"); ifr.setAttribute(\"style\", \"display:none\");
  316.             ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\"); if(document.body){document.body.appendChild(ifr);}
  317.             else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
  318.         })();} catch(e) {} </script>
  319. ";
  320.         
  321.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  322.         
  323.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  324.     }
  325.     public function getTemplateName()
  326.     {
  327.         return "Slivki/mobile/index.html.twig";
  328.     }
  329.     public function isTraitable()
  330.     {
  331.         return false;
  332.     }
  333.     public function getDebugInfo()
  334.     {
  335.         return array (  341 => 101,  331 => 100,  318 => 96,  314 => 94,  312 => 93,  307 => 91,  304 => 90,  294 => 89,  281 => 86,  279 => 85,  274 => 84,  264 => 83,  251 => 79,  248 => 78,  242 => 74,  240 => 73,  237 => 72,  233 => 70,  227 => 68,  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,);
  336.     }
  337.     public function getSourceContext()
  338.     {
  339.         return new Source("{% extends 'Slivki/mobile/base.html.twig' %}
  340. {% block styles %}
  341.     <link rel=\"stylesheet\" href=\"/css/swiper/swiper.min.css\" />
  342.     {{ parent() }}
  343. {% endblock %}
  344. {% block topContent %}
  345.     {% include \"Slivki/mobile#{regional_template_path}/top_block.html.twig\" %}
  346.     {% if mainHotFeed != '' %}
  347.         <div id=\"mainHotFeed\" class=\"px-1 position-relative\">
  348.             <h6 class=\"clearfix\">
  349.                 <span class=\"blink text-slivki\">·</span>
  350.                 <div class=\"d-inline-block alt-bold-font\">ГОРЯЧАЯ ЛЕНТА</div>
  351.             </h6>
  352.             <div id=\"mainHotFeedSlider\" class=\"swiper-container\" data-offset=\"0\" data-type=\"{{ constant('Slivki\\\\Entity\\\\HotFeed::TYPE_MAIN_PAGE') }}\">
  353.                 <div class=\"swiper-wrapper\">
  354.                     {{ mainHotFeed|raw }}
  355.                 </div>
  356.                 <div class=\"swiper-button swiper-button-prev\"></div>
  357.                 <div class=\"swiper-button swiper-button-next\"></div>
  358.             </div>
  359.         </div>
  360.     {% endif %}
  361. {% endblock %}
  362. {% block content %}
  363.     <div class=\"content-title alt-font text-slivki\" data-html=\"true\" data-original-title=\"Промокоды<br> Уникальные предложения!<br> Лучшие цены!<br>\" data-placement=\"bottom\" data-toggle=\"tooltip\">
  364.         <h1>{{ metaInfo.title }}</h1>
  365.         {{ smallCity is not defined or not smallCity ? ' (' ~ getActiveOffersCount(cityID) ~ ')' }}
  366.     </div>
  367.     <div class=\"categories-list{{ topLevelCategoryIDList|length == 1 ? ' one-category-city' }}\">
  368.         {% for categoryID, categoryBox in categoryBoxList %}
  369.             {% set categoryBanner = app.user and app.user.hasRole(constant('\\\\Slivki\\\\Entity\\\\UserGroup::ROLE_ADS_FREE')) ? ''
  370.                 : getCategoryBanner(categoryID) %}
  371.             {{ categoryBox|replace({'<div id=\"categoryBannerPlaceholder\"></div>': categoryBanner})|raw }}
  372.         {% endfor %}
  373.     </div>
  374.     {% if topLevelCategoryIDList|length > 1 %}
  375.         <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>
  376.     {% endif %}
  377.     {% if cityID == constant('Slivki\\\\Entity\\\\City::DEFAULT_CITY_ID') %}
  378.         <div id=\"mainBottomBlock\" class=\"my-1 w-100\">
  379.             <div class=\"row no-gutters\">
  380.                 <div class=\"col-6\">
  381.                     <a id=\"moreCategories\" href=\"#\">Еще акции<br/>с промокодами</a>
  382.                 </div>
  383.                 <div class=\"col-6\">
  384.                     <a class=\"mr-0\" href=\"{{ path('sales') }}\">Новости<br/>скидок</a>
  385.                 </div>
  386.             </div>
  387.             <div class=\"row no-gutters\">
  388.                 <div class=\"col-4\">
  389.                     <a class=\"text-white\" style=\"background-image: url(/images/landing_photoguides.jpg)\"
  390.                        href=\"{{ getURL(constant('Slivki\\\\Repository\\\\SeoRepository::RESOURCE_URL_SALE_CATEGORY'), constant('Slivki\\\\Entity\\\\Category::PHOTOGUIDE_SALE_CATEGORY_ID')) }}\">Фотогиды</a>
  391.                 </div>
  392.                 <div class=\"col-4\">
  393.                     <a class=\"text-white\" style=\"background-image: url(/images/landing_fliers.jpg)\"
  394.                        href=\"{{ path('flierLanding') }}\">Листовки</a>
  395.                 </div>
  396.                 <div class=\"col-4\">
  397.                     <a class=\"mr-0 text-white\" style=\"background-image: url(/images/landing_sushi.jpg)\"
  398.                        href=\"/eda/sushi\">Суши</a>
  399.                 </div>
  400.             </div>
  401.             {% if app.user %}
  402.                 <a href=\"{{ base_url }}/WatchList\"><i class=\"slivki-icon-eye-1\"></i> Недавно просмотренные акции</a>
  403.             {% else %}
  404.                 <a data-toggle=\"modal\" data-target=\".modal-auth\"><i class=\"slivki-icon-eye-1\"></i> Недавно просмотренные акции</a>
  405.                     {% endif %}
  406.         </div>
  407.     {% elseif topLevelCategoryIDList|length > 2 %}
  408.         <div class=\"px-2 w-100\">
  409.             <a id=\"moreCategories\" class=\"btn bg-slivki btn-block my-2 more-categories-button\" href=\"#\">Еще категории</a>
  410.         </div>
  411.     {% endif %}
  412.     <input id=\"topLevelCategoryIDList\" type=\"hidden\" value=\"{{ topLevelCategoryIDList|json_encode }}\">
  413. {% endblock %}
  414. {% block popup %}
  415.     {{ parent() }}
  416.     {% include 'Slivki/mobile/select_city.html.twig' %}
  417.     {{ getMainMenu(false, false) }}
  418. {% endblock %}
  419. {% block javascripts %}
  420.     <script src=\"/js/swiper-js/swiper.min.js\"></script>
  421.     {{ parent() }}
  422.     <script src=\"/mobile/js/index.js?v=4\"></script>
  423.     {% if smallCity is defined and smallCity %}
  424.         <script src=\"//api-maps.yandex.ru/2.1.29/?lang=ru-RU\" type=\"text/javascript\"></script>
  425.         <script src=\"//mourner.github.io/simplify-js/simplify.js\"></script>
  426.         <script type=\"module\" src=\"/mobile/js/category.min.js?v={{ mobile_category_js_version }}\"></script>
  427.     {% endif %}
  428. {% endblock %}
  429. {% block RTBHouse %}
  430.     <script>
  431.         try{ (function() {
  432.             var prefix = \"\", hash = \"TS5TS2S9bdSbgKBA4Q2H\", rtbhTags = []; rtbhTags.push(\"pr_\"+hash+\"_home\"); rtbhTags.push(\"pr_\"+hash+\"_uid_\"+document.getElementById('rtbhUID').value);
  433.             var key = \"__rtbhouse.lid\", lid = window.localStorage.getItem(key); if (!lid) {
  434.                 lid = \"\"; var pool = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";
  435.                 for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length)); window.localStorage.setItem(key, lid);}
  436.             rtbhTags.push(\"pr_\"+hash+\"_lid_\" + lid);
  437.             var ifr = document.createElement(\"iframe\"),
  438.                 sr = encodeURIComponent(document.referrer ? document.referrer : \"\"),
  439.                 su = encodeURIComponent(document.location.href ? document.location.href : \"\"),
  440.                 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]);}
  441.             ifrSrc += \"&su=\" + su + \"&sr=\" + sr + \"&ts=\" + tmstmp;
  442.             ifr.setAttribute(\"src\", ifrSrc); ifr.setAttribute(\"width\", \"1\");
  443.             ifr.setAttribute(\"height\", \"1\"); ifr.setAttribute(\"scrolling\", \"no\");
  444.             ifr.setAttribute(\"frameBorder\", \"0\"); ifr.setAttribute(\"style\", \"display:none\");
  445.             ifr.setAttribute(\"referrerpolicy\", \"no-referrer-when-downgrade\"); if(document.body){document.body.appendChild(ifr);}
  446.             else{window.addEventListener('DOMContentLoaded', function(){document.body.appendChild(ifr);});}
  447.         })();} catch(e) {} </script>
  448. {% endblock %}""Slivki/mobile/index.html.twig""/mnt/data/virtwww/dima/templates/Slivki/mobile/index.html.twig");
  449.     }
  450. }