var/cache/dev/twig/da/dab106b8865f0453e945a1eeebd59c820187ef041af9a7f520d6c0ddf231495f.php line 51

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/sale/index.html.twig */
  14. class __TwigTemplate_824381add1cebee8f52e118f099253c66a7720ab3a8fddba4784b6a25ede9a65 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.             'content' => [$this'block_content'],
  25.             'popup' => [$this'block_popup'],
  26.             'javascripts' => [$this'block_javascripts'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "Slivki/mobile/base.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/mobile/sale/index.html.twig"));
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/mobile/sale/index.html.twig"));
  41.         $this->parent $this->loadTemplate("Slivki/mobile/base.html.twig""Slivki/mobile/sale/index.html.twig"1);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  45.         
  46.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  47.     }
  48.     // line 3
  49.     public function block_styles($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""styles"));
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""styles"));
  56.         // line 4
  57.         echo "    <link rel=\"stylesheet\" href=\"/css/swiper/swiper.min.css\" />
  58.     ";
  59.         // line 5
  60.         $this->displayParentBlock("styles"$context$blocks);
  61.         echo "
  62. ";
  63.         
  64.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  65.         
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  67.     }
  68.     // line 8
  69.     public function block_content($context, array $blocks = [])
  70.     {
  71.         $macros $this->macros;
  72.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  73.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  74.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  75.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  76.         // line 9
  77.         echo "    <input id=\"categoryID\" type=\"hidden\" value=\"";
  78.         echo twig_escape_filter($this->env, (isset($context["currentCategoryID"]) || array_key_exists("currentCategoryID"$context) ? $context["currentCategoryID"] : (function () { throw new RuntimeError('Variable "currentCategoryID" does not exist.'9$this->source); })()), "html"nulltrue);
  79.         echo "\"/>
  80.     <nav aria-label=\"breadcrumb\">
  81.         <ol class=\"breadcrumb m-0 py-1 px-2 bg-white\">
  82.             <li class=\"breadcrumb-item\"><a href=\"";
  83.         // line 12
  84.         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.'12$this->source); })()), "html"nulltrue);
  85.         echo "\">Главная</a></li>
  86.             ";
  87.         // line 13
  88.         if ((=== twig_compare((isset($context["currentCategoryID"]) || array_key_exists("currentCategoryID"$context) ? $context["currentCategoryID"] : (function () { throw new RuntimeError('Variable "currentCategoryID" does not exist.'13$this->source); })()), 0))) {
  89.             // line 14
  90.             echo "                ";
  91.             if ((array_key_exists("isChildOfVideoGuide"$context) && (isset($context["isChildOfVideoGuide"]) || array_key_exists("isChildOfVideoGuide"$context) ? $context["isChildOfVideoGuide"] : (function () { throw new RuntimeError('Variable "isChildOfVideoGuide" does not exist.'14$this->source); })()))) {
  92.                 // line 15
  93.                 echo "                    <li class=\"breadcrumb-item\">
  94.                         <a href=\"";
  95.                 // line 16
  96.                 echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getURL("Slivki:Sale:category"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["videoguideCategory"]) || array_key_exists("videoguideCategory"$context) ? $context["videoguideCategory"] : (function () { throw new RuntimeError('Variable "videoguideCategory" does not exist.'16$this->source); })()), "category", [], "any"falsefalsefalse16), "getID", [], "method"falsefalsefalse16)), "html"nulltrue);
  97.                 echo "\">
  98.                             ";
  99.                 // line 17
  100.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["videoguideCategory"]) || array_key_exists("videoguideCategory"$context) ? $context["videoguideCategory"] : (function () { throw new RuntimeError('Variable "videoguideCategory" does not exist.'17$this->source); })()), "category", [], "any"falsefalsefalse17), "getName", [], "method"falsefalsefalse17), "html"nulltrue);
  101.                 echo "
  102.                         </a>
  103.                     </li>
  104.                 ";
  105.             } else {
  106.                 // line 21
  107.                 echo "                    <li class=\"breadcrumb-item\"><a href=\"";
  108.                 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.'21$this->source); })()), "html"nulltrue);
  109.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sales");
  110.                 echo "\">Новости скидок</a></li>
  111.                 ";
  112.             }
  113.             // line 23
  114.             echo "                ";
  115.             if (array_key_exists("parentCategory"$context)) {
  116.                 // line 24
  117.                 echo "                    <li class=\"breadcrumb-item\"><a href=\"";
  118.                 echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getURL("Slivki:Sale:category"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["parentCategory"]) || array_key_exists("parentCategory"$context) ? $context["parentCategory"] : (function () { throw new RuntimeError('Variable "parentCategory" does not exist.'24$this->source); })()), "category", [], "any"falsefalsefalse24), "getID", [], "method"falsefalsefalse24)), "html"nulltrue);
  119.                 echo "\">";
  120.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["parentCategory"]) || array_key_exists("parentCategory"$context) ? $context["parentCategory"] : (function () { throw new RuntimeError('Variable "parentCategory" does not exist.'24$this->source); })()), "category", [], "any"falsefalsefalse24), "getName", [], "method"falsefalsefalse24), "html"nulltrue);
  121.                 echo "</a></li>
  122.                 ";
  123.             }
  124.             // line 26
  125.             echo "                <li class=\"breadcrumb-item text-muted\">";
  126.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["currentCategory"]) || array_key_exists("currentCategory"$context) ? $context["currentCategory"] : (function () { throw new RuntimeError('Variable "currentCategory" does not exist.'26$this->source); })()), "category", [], "any"falsefalsefalse26), "getName", [], "method"falsefalsefalse26), "html"nulltrue);
  127.             echo "</li>
  128.             ";
  129.         } else {
  130.             // line 28
  131.             echo "                <li class=\"breadcrumb-item text-muted\">Новости скидок</li>
  132.             ";
  133.         }
  134.         // line 30
  135.         echo "        </ol>
  136.     </nav>
  137.     <div class=\"content-title alt-font\">
  138.         <h1>";
  139.         // line 33
  140.         (((=== twig_compare((isset($context["currentCategoryID"]) || array_key_exists("currentCategoryID"$context) ? $context["currentCategoryID"] : (function () { throw new RuntimeError('Variable "currentCategoryID" does not exist.'33$this->source); })()), 0))) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["currentCategory"]) || array_key_exists("currentCategory"$context) ? $context["currentCategory"] : (function () { throw new RuntimeError('Variable "currentCategory" does not exist.'33$this->source); })()), "category", [], "any"falsefalsefalse33), "getName", [], "method"falsefalsefalse33), "html"nulltrue))) : (print ("Новости скидок")));
  141.         echo "</h1>
  142.         (";
  143.         // line 34
  144.         echo twig_escape_filter($this->env, (((=== twig_compare((isset($context["currentCategoryID"]) || array_key_exists("currentCategoryID"$context) ? $context["currentCategoryID"] : (function () { throw new RuntimeError('Variable "currentCategoryID" does not exist.'34$this->source); })()), 0))) ? (twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["currentCategory"]) || array_key_exists("currentCategory"$context) ? $context["currentCategory"] : (function () { throw new RuntimeError('Variable "currentCategory" does not exist.'34$this->source); })()), "entityList", [], "any"falsefalsefalse34))) : ($this->extensions['Slivki\Twig\SlivkiTwigExtension']->getActiveSalesCount())), "html"nulltrue);
  145.         echo ")
  146.     </div>
  147.     ";
  148.         // line 36
  149.         if ((array_key_exists("firstBanner"$context) && (isset($context["firstBanner"]) || array_key_exists("firstBanner"$context) ? $context["firstBanner"] : (function () { throw new RuntimeError('Variable "firstBanner" does not exist.'36$this->source); })()))) {
  150.             // line 37
  151.             echo "        ";
  152.             $this->loadTemplate("Slivki/mobile/banner/banner.html.twig""Slivki/mobile/sale/index.html.twig"37)->display(twig_to_array(["banner" => (isset($context["firstBanner"]) || array_key_exists("firstBanner"$context) ? $context["firstBanner"] : (function () { throw new RuntimeError('Variable "firstBanner" does not exist.'37$this->source); })())]));
  153.             // line 38
  154.             echo "    ";
  155.         }
  156.         // line 39
  157.         echo "
  158.     ";
  159.         // line 40
  160.         if (( !array_key_exists("isVideoguideCategory"$context) ||  !(isset($context["isVideoguideCategory"]) || array_key_exists("isVideoguideCategory"$context) ? $context["isVideoguideCategory"] : (function () { throw new RuntimeError('Variable "isVideoguideCategory" does not exist.'40$this->source); })()))) {
  161.             // line 41
  162.             echo "        <div id=\"mustBeFixedContainer\">
  163.             <div id=\"mustBeFixed\" class=\"py-1\">
  164.                 <ul class=\"capsule-menu\">
  165.                     ";
  166.             // line 44
  167.             ob_start();
  168.             // line 45
  169.             echo "                        ";
  170.             $context['_parent'] = $context;
  171.             $context['_seq'] = twig_ensure_traversable((isset($context["saleMenu"]) || array_key_exists("saleMenu"$context) ? $context["saleMenu"] : (function () { throw new RuntimeError('Variable "saleMenu" does not exist.'45$this->source); })()));
  172.             foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  173.                 // line 46
  174.                 echo "                            <li>
  175.                                 <a href=\"";
  176.                 // line 47
  177.                 echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getURL("Slivki:Sale:category"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["category"], "category", [], "any"falsefalsefalse47), "getID", [], "method"falsefalsefalse47)), "html"nulltrue);
  178.                 echo "\" ";
  179.                 echo (((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["category"], "category", [], "any"falsefalsefalse47), "getID", [], "method"falsefalsefalse47), (isset($context["currentCategoryID"]) || array_key_exists("currentCategoryID"$context) ? $context["currentCategoryID"] : (function () { throw new RuntimeError('Variable "currentCategoryID" does not exist.'47$this->source); })())))) ? ("class=\"active\"") : (""));
  180.                 echo ">
  181.                                     ";
  182.                 // line 48
  183.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["category"], "category", [], "any"falsefalsefalse48), "getName", [], "method"falsefalsefalse48), "html"nulltrue);
  184.                 echo " <span>";
  185.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["category"], "category", [], "any"falsefalsefalse48), "getEntityCount", [], "method"falsefalsefalse48), "html"nulltrue);
  186.                 echo "</span>
  187.                                 </a>
  188.                             </li>
  189.                         ";
  190.             }
  191.             $_parent $context['_parent'];
  192.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  193.             $context array_intersect_key($context$_parent) + $_parent;
  194.             // line 52
  195.             echo "                    ";
  196.             $___internal_parse_0_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  197.             // line 44
  198.             echo twig_spaceless($___internal_parse_0_);
  199.             // line 53
  200.             echo "                </ul>
  201.             </div>
  202.         </div>
  203.     ";
  204.         } else {
  205.             // line 57
  206.             echo "        ";
  207.             $this->loadTemplate("Slivki/mobile/sale/videoguide/menu.html.twig""Slivki/mobile/sale/index.html.twig"57)->display($context);
  208.             // line 58
  209.             echo "    ";
  210.         }
  211.         // line 59
  212.         echo "
  213.     <div class=\"px-2 mb-2\">
  214.         ";
  215.         // line 61
  216.         if (( !array_key_exists("isVideoguideCategory"$context) ||  !(isset($context["isVideoguideCategory"]) || array_key_exists("isVideoguideCategory"$context) ? $context["isVideoguideCategory"] : (function () { throw new RuntimeError('Variable "isVideoguideCategory" does not exist.'61$this->source); })()))) {
  217.             // line 62
  218.             echo "            ";
  219.             $this->loadTemplate("Slivki/mobile/sale/category_map.html.twig""Slivki/mobile/sale/index.html.twig"62)->display($context);
  220.             // line 63
  221.             echo "        ";
  222.         }
  223.         // line 64
  224.         echo "
  225.         ";
  226.         // line 65
  227.         if (array_key_exists("mainHotFeed"$context)) {
  228.             // line 66
  229.             echo "            <div id=\"mainHotFeed\" class=\"px-1 position-relative\">
  230.                 <h6 class=\"clearfix\">
  231.                     <span class=\"blink text-slivki\">·</span>
  232.                     <div class=\"d-inline-block alt-bold-font\">ГОРЯЧАЯ ЛЕНТА</div>
  233.                 </h6>
  234.                 <div id=\"mainHotFeedSlider\" class=\"swiper-container\" data-offset=\"0\" data-type=\"";
  235.             // line 71
  236.             echo twig_escape_filter($this->envtwig_constant("Slivki\\Entity\\HotFeed::TYPE_MAIN_PAGE"), "html"nulltrue);
  237.             echo "\">
  238.                     <div class=\"swiper-wrapper\">
  239.                         ";
  240.             // line 73
  241.             echo (isset($context["mainHotFeed"]) || array_key_exists("mainHotFeed"$context) ? $context["mainHotFeed"] : (function () { throw new RuntimeError('Variable "mainHotFeed" does not exist.'73$this->source); })());
  242.             echo "
  243.                     </div>
  244.                     <div class=\"swiper-button swiper-button-prev\"></div>
  245.                     <div class=\"swiper-button swiper-button-next\"></div>
  246.                 </div>
  247.             </div>
  248.         ";
  249.         }
  250.         // line 80
  251.         echo "
  252.         ";
  253.         // line 81
  254.         $this->loadTemplate("Slivki/mobile/sale/category.html.twig""Slivki/mobile/sale/index.html.twig"81)->display($context);
  255.         // line 82
  256.         echo "
  257.         ";
  258.         // line 83
  259.         if ((=== twig_compare((isset($context["currentCategoryID"]) || array_key_exists("currentCategoryID"$context) ? $context["currentCategoryID"] : (function () { throw new RuntimeError('Variable "currentCategoryID" does not exist.'83$this->source); })()), 0))) {
  260.             // line 84
  261.             echo "            <img class=\"d-block my-3 mx-auto\" id='saleCategoryListLoader' src='/images/image-preview-ajax-loader.gif' alt='Загрузка...'/>
  262.         ";
  263.         }
  264.         // line 86
  265.         echo "    </div>
  266. ";
  267.         
  268.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  269.         
  270.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  271.     }
  272.     // line 89
  273.     public function block_popup($context, array $blocks = [])
  274.     {
  275.         $macros $this->macros;
  276.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  277.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""popup"));
  278.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  279.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""popup"));
  280.         // line 90
  281.         echo "    ";
  282.         $this->displayParentBlock("popup"$context$blocks);
  283.         echo "
  284.     ";
  285.         // line 91
  286.         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.'91$this->source); })()), "user", [], "any"falsefalsefalse91)) {
  287.             // line 92
  288.             echo "        ";
  289.             $this->loadTemplate("Slivki/popups/comment_only_registered_popup.html.twig""Slivki/mobile/sale/index.html.twig"92)->display(twig_array_merge($context, ["id" => "onlyRegistered"]));
  290.             // line 93
  291.             echo "    ";
  292.         }
  293.         
  294.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  295.         
  296.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  297.     }
  298.     // line 96
  299.     public function block_javascripts($context, array $blocks = [])
  300.     {
  301.         $macros $this->macros;
  302.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  303.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  304.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  305.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  306.         // line 97
  307.         echo "    <script src=\"/js/swiper-js/swiper.min.js\"></script>
  308.     <script src=\"https://api-maps.yandex.ru/2.1/?lang=ru_RU\" type=\"text/javascript\"></script>
  309.     <script src=\"//mourner.github.io/simplify-js/simplify.js\"></script>
  310.     ";
  311.         // line 100
  312.         $this->displayParentBlock("javascripts"$context$blocks);
  313.         echo "
  314.     <script src=\"/mobile/js/sales.min.js?v=";
  315.         // line 101
  316.         echo twig_escape_filter($this->env, (isset($context["mobile_sales_js_version"]) || array_key_exists("mobile_sales_js_version"$context) ? $context["mobile_sales_js_version"] : (function () { throw new RuntimeError('Variable "mobile_sales_js_version" does not exist.'101$this->source); })()), "html"nulltrue);
  317.         echo "\"></script>
  318. ";
  319.         
  320.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  321.         
  322.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  323.     }
  324.     public function getTemplateName()
  325.     {
  326.         return "Slivki/mobile/sale/index.html.twig";
  327.     }
  328.     public function isTraitable()
  329.     {
  330.         return false;
  331.     }
  332.     public function getDebugInfo()
  333.     {
  334.         return array (  345 => 101,  341 => 100,  336 => 97,  326 => 96,  315 => 93,  312 => 92,  310 => 91,  305 => 90,  295 => 89,  284 => 86,  280 => 84,  278 => 83,  275 => 82,  273 => 81,  270 => 80,  260 => 73,  255 => 71,  248 => 66,  246 => 65,  243 => 64,  240 => 63,  237 => 62,  235 => 61,  231 => 59,  228 => 58,  225 => 57,  219 => 53,  217 => 44,  214 => 52,  202 => 48,  196 => 47,  193 => 46,  188 => 45,  186 => 44,  181 => 41,  179 => 40,  176 => 39,  173 => 38,  170 => 37,  168 => 36,  163 => 34,  159 => 33,  154 => 30,  150 => 28,  144 => 26,  136 => 24,  133 => 23,  126 => 21,  119 => 17,  115 => 16,  112 => 15,  109 => 14,  107 => 13,  103 => 12,  96 => 9,  86 => 8,  74 => 5,  71 => 4,  61 => 3,  38 => 1,);
  335.     }
  336.     public function getSourceContext()
  337.     {
  338.         return new Source("{% extends 'Slivki/mobile/base.html.twig' %}
  339. {% block styles %}
  340.     <link rel=\"stylesheet\" href=\"/css/swiper/swiper.min.css\" />
  341.     {{ parent() }}
  342. {% endblock %}
  343. {% block content %}
  344.     <input id=\"categoryID\" type=\"hidden\" value=\"{{ currentCategoryID }}\"/>
  345.     <nav aria-label=\"breadcrumb\">
  346.         <ol class=\"breadcrumb m-0 py-1 px-2 bg-white\">
  347.             <li class=\"breadcrumb-item\"><a href=\"{{ base_url }}\">Главная</a></li>
  348.             {% if currentCategoryID > 0 %}
  349.                 {% if isChildOfVideoGuide is defined and isChildOfVideoGuide %}
  350.                     <li class=\"breadcrumb-item\">
  351.                         <a href=\"{{ getURL(\"Slivki:Sale:category\", videoguideCategory.category.getID()) }}\">
  352.                             {{ videoguideCategory.category.getName() }}
  353.                         </a>
  354.                     </li>
  355.                 {% else %}
  356.                     <li class=\"breadcrumb-item\"><a href=\"{{ base_url }}{{ path('sales') }}\">Новости скидок</a></li>
  357.                 {% endif %}
  358.                 {% if parentCategory is defined %}
  359.                     <li class=\"breadcrumb-item\"><a href=\"{{ getURL(\"Slivki:Sale:category\", parentCategory.category.getID()) }}\">{{ parentCategory.category.getName() }}</a></li>
  360.                 {% endif %}
  361.                 <li class=\"breadcrumb-item text-muted\">{{ currentCategory.category.getName() }}</li>
  362.             {% else %}
  363.                 <li class=\"breadcrumb-item text-muted\">Новости скидок</li>
  364.             {% endif %}
  365.         </ol>
  366.     </nav>
  367.     <div class=\"content-title alt-font\">
  368.         <h1>{{ currentCategoryID > 0 ? currentCategory.category.getName() : 'Новости скидок' }}</h1>
  369.         ({{ currentCategoryID > 0 ? currentCategory.entityList|length : getActiveSalesCount() }})
  370.     </div>
  371.     {% if firstBanner is defined and firstBanner %}
  372.         {% include 'Slivki/mobile/banner/banner.html.twig' with {'banner': firstBanner} only %}
  373.     {% endif %}
  374.     {% if isVideoguideCategory is not defined or not isVideoguideCategory %}
  375.         <div id=\"mustBeFixedContainer\">
  376.             <div id=\"mustBeFixed\" class=\"py-1\">
  377.                 <ul class=\"capsule-menu\">
  378.                     {% apply spaceless %}
  379.                         {% for category in saleMenu %}
  380.                             <li>
  381.                                 <a href=\"{{ getURL(\"Slivki:Sale:category\", category.category.getID()) }}\" {{ category.category.getID() == currentCategoryID ? 'class=\"active\"'}}>
  382.                                     {{ category.category.getName() }} <span>{{ category.category.getEntityCount() }}</span>
  383.                                 </a>
  384.                             </li>
  385.                         {% endfor %}
  386.                     {% endapply %}
  387.                 </ul>
  388.             </div>
  389.         </div>
  390.     {% else %}
  391.         {% include 'Slivki/mobile/sale/videoguide/menu.html.twig' %}
  392.     {% endif %}
  393.     <div class=\"px-2 mb-2\">
  394.         {% if isVideoguideCategory is not defined or not isVideoguideCategory %}
  395.             {% include 'Slivki/mobile/sale/category_map.html.twig' %}
  396.         {% endif %}
  397.         {% if mainHotFeed is defined %}
  398.             <div id=\"mainHotFeed\" class=\"px-1 position-relative\">
  399.                 <h6 class=\"clearfix\">
  400.                     <span class=\"blink text-slivki\">·</span>
  401.                     <div class=\"d-inline-block alt-bold-font\">ГОРЯЧАЯ ЛЕНТА</div>
  402.                 </h6>
  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.         {% include 'Slivki/mobile/sale/category.html.twig' %}
  413.         {% if currentCategoryID == 0 %}
  414.             <img class=\"d-block my-3 mx-auto\" id='saleCategoryListLoader' src='/images/image-preview-ajax-loader.gif' alt='Загрузка...'/>
  415.         {% endif %}
  416.     </div>
  417. {% endblock %}
  418. {% block popup %}
  419.     {{ parent() }}
  420.     {% if not app.user %}
  421.         {% include 'Slivki/popups/comment_only_registered_popup.html.twig' with {'id': 'onlyRegistered'} %}
  422.     {% endif %}
  423. {% endblock %}
  424. {% block javascripts %}
  425.     <script src=\"/js/swiper-js/swiper.min.js\"></script>
  426.     <script src=\"https://api-maps.yandex.ru/2.1/?lang=ru_RU\" type=\"text/javascript\"></script>
  427.     <script src=\"//mourner.github.io/simplify-js/simplify.js\"></script>
  428.     {{ parent() }}
  429.     <script src=\"/mobile/js/sales.min.js?v={{ mobile_sales_js_version }}\"></script>
  430. {% endblock %}""Slivki/mobile/sale/index.html.twig""/mnt/data/virtwww/test/templates/Slivki/mobile/sale/index.html.twig");
  431.     }
  432. }