var/cache/dev/twig/94/94d70f411f6b2434e1ce1ba1d5e0eea2d2ac769b67d86bdc533dfb57965e9231.php line 52

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/sale/hyper_shop.html.twig */
  14. class __TwigTemplate_b61130cd73954b141865140dd631b4310bb0a5640ce1ee9aed2b803d12d5c6c5 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.             'stylesheets' => [$this'block_stylesheets'],
  24.             'mainColumnClass' => [$this'block_mainColumnClass'],
  25.             'left_sidebar' => [$this'block_left_sidebar'],
  26.             'main_content' => [$this'block_main_content'],
  27.             'javascripts' => [$this'block_javascripts'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 1
  33.         return "base.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/sale/hyper_shop.html.twig"));
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/sale/hyper_shop.html.twig"));
  42.         $this->parent $this->loadTemplate("base.html.twig""Slivki/sale/hyper_shop.html.twig"1);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  46.         
  47.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  48.     }
  49.     // line 3
  50.     public function block_stylesheets($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  57.         // line 4
  58.         echo "    ";
  59.         $this->displayParentBlock("stylesheets"$context$blocks);
  60.         echo "
  61.     <link rel=\"stylesheet\" type=\"text/css\" href=\"https://cdn.jsdelivr.net/jquery.slick/1.6.0/slick.css\"/>
  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_mainColumnClass($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""mainColumnClass"));
  74.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  75.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainColumnClass"));
  76.         $this->displayParentBlock("mainColumnClass"$context$blocks);
  77.         echo " one-column hyper-shop";
  78.         
  79.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  80.         
  81.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  82.     }
  83.     // line 10
  84.     public function block_left_sidebar($context, array $blocks = [])
  85.     {
  86.         $macros $this->macros;
  87.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  88.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""left_sidebar"));
  89.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  90.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""left_sidebar"));
  91.         
  92.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  93.         
  94.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  95.     }
  96.     // line 12
  97.     public function block_main_content($context, array $blocks = [])
  98.     {
  99.         $macros $this->macros;
  100.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  101.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_content"));
  102.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  103.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_content"));
  104.         // line 13
  105.         echo "    <div class=\"stock-group-header with-search\">
  106.         <div class=\"breadcrumbs\">
  107.             <a href=\"";
  108.         // line 15
  109.         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.'15$this->source); })()), "html"nulltrue);
  110.         echo "\">Главная</a>
  111.             <i class=\"fa fa-angle-right\"></i> Листовки
  112.         </div>
  113.         <div class=\"title\"><h1>Популярные</h1> (";
  114.         // line 18
  115.         echo twig_escape_filter($this->env, (isset($context["fliersCount"]) || array_key_exists("fliersCount"$context) ? $context["fliersCount"] : (function () { throw new RuntimeError('Variable "fliersCount" does not exist.'18$this->source); })()), "html"nulltrue);
  116.         echo ")</div>
  117.         <div class=\"flier-total-visit-count\">
  118.             <span data-toggle=\"tooltip\" data-placement=\"left\" data-original-title='";
  119.         // line 20
  120.         echo twig_escape_filter($this->env, (isset($context["saleVisitCountTooltip"]) || array_key_exists("saleVisitCountTooltip"$context) ? $context["saleVisitCountTooltip"] : (function () { throw new RuntimeError('Variable "saleVisitCountTooltip" does not exist.'20$this->source); })()), "html"nulltrue);
  121.         echo "\"'><i class=\"slivki-icon-users\"></i>";
  122.         echo twig_escape_filter($this->env, (isset($context["saleVisitCount"]) || array_key_exists("saleVisitCount"$context) ? $context["saleVisitCount"] : (function () { throw new RuntimeError('Variable "saleVisitCount" does not exist.'20$this->source); })()), "html"nulltrue);
  123.         echo "</span><br>
  124.             <span data-toggle=\"tooltip\" data-placement=\"left\" data-original-title='";
  125.         // line 21
  126.         echo twig_escape_filter($this->env, (isset($context["visitedSalesTooltip"]) || array_key_exists("visitedSalesTooltip"$context) ? $context["visitedSalesTooltip"] : (function () { throw new RuntimeError('Variable "visitedSalesTooltip" does not exist.'21$this->source); })()), "html"nulltrue);
  127.         echo "'><i class=\"slivki-icon-paper\"></i>";
  128.         echo twig_escape_filter($this->env, (isset($context["visitedSales"]) || array_key_exists("visitedSales"$context) ? $context["visitedSales"] : (function () { throw new RuntimeError('Variable "visitedSales" does not exist.'21$this->source); })()), "html"nulltrue);
  129.         echo "</span>
  130.         </div>
  131.         <div class=\"clear\"></div>
  132.     </div>
  133.     <div id=\"flierSlider\" class=\"flier-list\">
  134.         ";
  135.         // line 26
  136.         echo (isset($context["fliersSliderData"]) || array_key_exists("fliersSliderData"$context) ? $context["fliersSliderData"] : (function () { throw new RuntimeError('Variable "fliersSliderData" does not exist.'26$this->source); })());
  137.         echo "
  138.     </div>
  139.     ";
  140.         // line 28
  141.         if ((=== twig_compare(twig_length_filter($this->env, (isset($context["saleProductList"]) || array_key_exists("saleProductList"$context) ? $context["saleProductList"] : (function () { throw new RuntimeError('Variable "saleProductList" does not exist.'28$this->source); })())), 0))) {
  142.             // line 29
  143.             echo "        <div id=\"flierProductBlock\">
  144.             <div id=\"flierProductTeaserList\">
  145.                 ";
  146.             // line 31
  147.             ob_start();
  148.             // line 32
  149.             echo "                ";
  150.             $context['_parent'] = $context;
  151.             $context['_seq'] = twig_ensure_traversable((isset($context["saleProductList"]) || array_key_exists("saleProductList"$context) ? $context["saleProductList"] : (function () { throw new RuntimeError('Variable "saleProductList" does not exist.'32$this->source); })()));
  152.             $context['loop'] = [
  153.               'parent' => $context['_parent'],
  154.               'index0' => 0,
  155.               'index'  => 1,
  156.               'first'  => true,
  157.             ];
  158.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  159.                 $length count($context['_seq']);
  160.                 $context['loop']['revindex0'] = $length 1;
  161.                 $context['loop']['revindex'] = $length;
  162.                 $context['loop']['length'] = $length;
  163.                 $context['loop']['last'] = === $length;
  164.             }
  165.             foreach ($context['_seq'] as $context["_key"] => $context["saleProduct"]) {
  166.                 // line 33
  167.                 echo "                    ";
  168.                 $this->loadTemplate("Slivki/flier_goods/teaser.html.twig""Slivki/sale/hyper_shop.html.twig"33)->display(twig_array_merge($context, ["teaserLink" => $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getURL(twig_constant("Slivki\\Repository\\SeoRepository::RESOURCE_URL_SALE_PRODUCT_DETAILS"), twig_get_attribute($this->env$this->source$context["saleProduct"], "getID", [], "method"falsefalsefalse33))]));
  169.                 // line 34
  170.                 echo "                ";
  171.                 ++$context['loop']['index0'];
  172.                 ++$context['loop']['index'];
  173.                 $context['loop']['first'] = false;
  174.                 if (isset($context['loop']['length'])) {
  175.                     --$context['loop']['revindex0'];
  176.                     --$context['loop']['revindex'];
  177.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  178.                 }
  179.             }
  180.             $_parent $context['_parent'];
  181.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['saleProduct'], $context['_parent'], $context['loop']);
  182.             $context array_intersect_key($context$_parent) + $_parent;
  183.             // line 35
  184.             echo "                ";
  185.             $___internal_parse_0_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  186.             // line 31
  187.             echo twig_spaceless($___internal_parse_0_);
  188.             // line 36
  189.             echo "            </div>
  190.             <div class=\"text-center\">
  191.                 <a href=\"";
  192.             // line 38
  193.             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.'38$this->source); })()), "html"nulltrue);
  194.             echo "/product-search\" class=\"button button-violet\">Еще ";
  195.             echo twig_escape_filter($this->env, (isset($context["productCount"]) || array_key_exists("productCount"$context) ? $context["productCount"] : (function () { throw new RuntimeError('Variable "productCount" does not exist.'38$this->source); })()), "html"nulltrue);
  196.             echo " товар";
  197.             echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->pluralFilter([=> ""=> "а"=> "ов"], (isset($context["productCount"]) || array_key_exists("productCount"$context) ? $context["productCount"] : (function () { throw new RuntimeError('Variable "productCount" does not exist.'38$this->source); })())), "html"nulltrue);
  198.             echo "</a>
  199.             </div>
  200.         </div>
  201.     ";
  202.         }
  203.         // line 42
  204.         echo "
  205.     <div id=\"saleIndexTeasers\">
  206.         ";
  207.         // line 44
  208.         $context['_parent'] = $context;
  209.         $context['_seq'] = twig_ensure_traversable((isset($context["flierCategoryList"]) || array_key_exists("flierCategoryList"$context) ? $context["flierCategoryList"] : (function () { throw new RuntimeError('Variable "flierCategoryList" does not exist.'44$this->source); })()));
  210.         $context['loop'] = [
  211.           'parent' => $context['_parent'],
  212.           'index0' => 0,
  213.           'index'  => 1,
  214.           'first'  => true,
  215.         ];
  216.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  217.             $length count($context['_seq']);
  218.             $context['loop']['revindex0'] = $length 1;
  219.             $context['loop']['revindex'] = $length;
  220.             $context['loop']['length'] = $length;
  221.             $context['loop']['last'] = === $length;
  222.         }
  223.         foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  224.             // line 45
  225.             echo "            <div class=\"flier-list-wrap\">
  226.                 <div class=\"title\">";
  227.             // line 46
  228.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["category"], "category", [], "any"falsefalsefalse46), "getName", [], "method"falsefalsefalse46), "html"nulltrue);
  229.             echo " (";
  230.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["category"], "category", [], "any"falsefalsefalse46), "getEntityCount", [], "method"falsefalsefalse46), "html"nulltrue);
  231.             echo ")</div>
  232.                 <div class=\"flier-list\">
  233.                     ";
  234.             // line 48
  235.             $context['_parent'] = $context;
  236.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["category"], "saleList", [], "any"falsefalsefalse48));
  237.             $context['loop'] = [
  238.               'parent' => $context['_parent'],
  239.               'index0' => 0,
  240.               'index'  => 1,
  241.               'first'  => true,
  242.             ];
  243.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  244.                 $length count($context['_seq']);
  245.                 $context['loop']['revindex0'] = $length 1;
  246.                 $context['loop']['revindex'] = $length;
  247.                 $context['loop']['length'] = $length;
  248.                 $context['loop']['last'] = === $length;
  249.             }
  250.             foreach ($context['_seq'] as $context["_key"] => $context["sale"]) {
  251.                 // line 49
  252.                 echo "                        ";
  253.                 $this->loadTemplate("Slivki/sale/flier.html.twig""Slivki/sale/hyper_shop.html.twig"49)->display(twig_array_merge($context, ["lazyLoad" => true]));
  254.                 // line 50
  255.                 echo "                    ";
  256.                 ++$context['loop']['index0'];
  257.                 ++$context['loop']['index'];
  258.                 $context['loop']['first'] = false;
  259.                 if (isset($context['loop']['length'])) {
  260.                     --$context['loop']['revindex0'];
  261.                     --$context['loop']['revindex'];
  262.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  263.                 }
  264.             }
  265.             $_parent $context['_parent'];
  266.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['sale'], $context['_parent'], $context['loop']);
  267.             $context array_intersect_key($context$_parent) + $_parent;
  268.             // line 51
  269.             echo "                    ";
  270.             if ((=== twig_compare(twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "saleList", [], "any"falsefalsefalse51)), 3))) {
  271.                 // line 52
  272.                 echo "                        <div class=\"stock-group-item-sale flier flier-category-teaser\">
  273.                             <a href=\"";
  274.                 // line 53
  275.                 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"falsefalsefalse53), "getID", [], "method"falsefalsefalse53)), "html"nulltrue);
  276.                 echo "\">Перейти в \"";
  277.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["category"], "category", [], "any"falsefalsefalse53), "getName", [], "method"falsefalsefalse53), "html"nulltrue);
  278.                 echo "\"</a>
  279.                         </div>
  280.                     ";
  281.             }
  282.             // line 56
  283.             echo "                </div>
  284.             </div>
  285.         ";
  286.             ++$context['loop']['index0'];
  287.             ++$context['loop']['index'];
  288.             $context['loop']['first'] = false;
  289.             if (isset($context['loop']['length'])) {
  290.                 --$context['loop']['revindex0'];
  291.                 --$context['loop']['revindex'];
  292.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  293.             }
  294.         }
  295.         $_parent $context['_parent'];
  296.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  297.         $context array_intersect_key($context$_parent) + $_parent;
  298.         // line 59
  299.         echo "    </div>
  300. ";
  301.         
  302.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  303.         
  304.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  305.     }
  306.     // line 62
  307.     public function block_javascripts($context, array $blocks = [])
  308.     {
  309.         $macros $this->macros;
  310.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  311.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  312.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  313.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  314.         // line 63
  315.         echo "    <script src=\"https://cdn.jsdelivr.net/jquery.slick/1.6.0/slick.min.js\"></script>
  316.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.countdown/2.2.0/jquery.countdown.min.js\"></script>
  317.     ";
  318.         // line 65
  319.         $this->displayParentBlock("javascripts"$context$blocks);
  320.         echo "
  321.     <script>
  322.         \$(function() {
  323.             \$('#flierProductTeaserList').sameHeight({
  324.                 elements: '.teaser-description p',
  325.                 useMinHeight: true,
  326.                 flexible: true,
  327.                 multiLine: true
  328.             });
  329.             calcProductsDistance();
  330.         });
  331.         function calcProductsDistance() {
  332.             if (!calculatedLocation) {
  333.                 document.addEventListener('geoLocation.init', function() {
  334.                     calcProductsDistance();
  335.                 });
  336.             } else {
  337.                 \$('.geo-location-data').each(function () {
  338.                     \$(this).prev().find('img').replaceWith(getDistanceToOffer(\$(this)));
  339.                 });
  340.             }
  341.         }
  342.     </script>
  343. ";
  344.         
  345.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  346.         
  347.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  348.     }
  349.     public function getTemplateName()
  350.     {
  351.         return "Slivki/sale/hyper_shop.html.twig";
  352.     }
  353.     public function isTraitable()
  354.     {
  355.         return false;
  356.     }
  357.     public function getDebugInfo()
  358.     {
  359.         return array (  353 => 65,  349 => 63,  339 => 62,  328 => 59,  312 => 56,  304 => 53,  301 => 52,  298 => 51,  284 => 50,  281 => 49,  264 => 48,  257 => 46,  254 => 45,  237 => 44,  233 => 42,  222 => 38,  218 => 36,  216 => 31,  213 => 35,  199 => 34,  196 => 33,  178 => 32,  176 => 31,  172 => 29,  170 => 28,  165 => 26,  155 => 21,  149 => 20,  144 => 18,  138 => 15,  134 => 13,  124 => 12,  106 => 10,  86 => 8,  72 => 4,  62 => 3,  39 => 1,);
  360.     }
  361.     public function getSourceContext()
  362.     {
  363.         return new Source("{% extends 'base.html.twig' %}
  364. {% block stylesheets %}
  365.     {{ parent() }}
  366.     <link rel=\"stylesheet\" type=\"text/css\" href=\"https://cdn.jsdelivr.net/jquery.slick/1.6.0/slick.css\"/>
  367. {% endblock %}
  368. {% block mainColumnClass %}{{ parent() }} one-column hyper-shop{% endblock %}
  369. {% block left_sidebar %}{% endblock %}
  370. {% block main_content %}
  371.     <div class=\"stock-group-header with-search\">
  372.         <div class=\"breadcrumbs\">
  373.             <a href=\"{{ base_url }}\">Главная</a>
  374.             <i class=\"fa fa-angle-right\"></i> Листовки
  375.         </div>
  376.         <div class=\"title\"><h1>Популярные</h1> ({{ fliersCount }})</div>
  377.         <div class=\"flier-total-visit-count\">
  378.             <span data-toggle=\"tooltip\" data-placement=\"left\" data-original-title='{{ saleVisitCountTooltip }}\"'><i class=\"slivki-icon-users\"></i>{{ saleVisitCount }}</span><br>
  379.             <span data-toggle=\"tooltip\" data-placement=\"left\" data-original-title='{{ visitedSalesTooltip }}'><i class=\"slivki-icon-paper\"></i>{{ visitedSales }}</span>
  380.         </div>
  381.         <div class=\"clear\"></div>
  382.     </div>
  383.     <div id=\"flierSlider\" class=\"flier-list\">
  384.         {{ fliersSliderData|raw }}
  385.     </div>
  386.     {% if saleProductList|length > 0 %}
  387.         <div id=\"flierProductBlock\">
  388.             <div id=\"flierProductTeaserList\">
  389.                 {% apply spaceless %}
  390.                 {% for saleProduct in saleProductList %}
  391.                     {% include 'Slivki/flier_goods/teaser.html.twig' with {'teaserLink': getURL(constant('Slivki\\\\Repository\\\\SeoRepository::RESOURCE_URL_SALE_PRODUCT_DETAILS'), saleProduct.getID())} %}
  392.                 {% endfor %}
  393.                 {% endapply %}
  394.             </div>
  395.             <div class=\"text-center\">
  396.                 <a href=\"{{ base_url }}/product-search\" class=\"button button-violet\">Еще {{ productCount }} товар{{ ['', 'а', 'ов']|plural(productCount) }}</a>
  397.             </div>
  398.         </div>
  399.     {% endif %}
  400.     <div id=\"saleIndexTeasers\">
  401.         {% for category in flierCategoryList %}
  402.             <div class=\"flier-list-wrap\">
  403.                 <div class=\"title\">{{ category.category.getName() }} ({{ category.category.getEntityCount() }})</div>
  404.                 <div class=\"flier-list\">
  405.                     {% for sale in category.saleList %}
  406.                         {% include 'Slivki/sale/flier.html.twig' with {'lazyLoad': true} %}
  407.                     {% endfor %}
  408.                     {% if category.saleList|length > 3 %}
  409.                         <div class=\"stock-group-item-sale flier flier-category-teaser\">
  410.                             <a href=\"{{ getURL(\"Slivki:Sale:category\", category.category.getID()) }}\">Перейти в \"{{ category.category.getName() }}\"</a>
  411.                         </div>
  412.                     {% endif %}
  413.                 </div>
  414.             </div>
  415.         {% endfor %}
  416.     </div>
  417. {% endblock %}
  418. {% block javascripts %}
  419.     <script src=\"https://cdn.jsdelivr.net/jquery.slick/1.6.0/slick.min.js\"></script>
  420.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.countdown/2.2.0/jquery.countdown.min.js\"></script>
  421.     {{ parent() }}
  422.     <script>
  423.         \$(function() {
  424.             \$('#flierProductTeaserList').sameHeight({
  425.                 elements: '.teaser-description p',
  426.                 useMinHeight: true,
  427.                 flexible: true,
  428.                 multiLine: true
  429.             });
  430.             calcProductsDistance();
  431.         });
  432.         function calcProductsDistance() {
  433.             if (!calculatedLocation) {
  434.                 document.addEventListener('geoLocation.init', function() {
  435.                     calcProductsDistance();
  436.                 });
  437.             } else {
  438.                 \$('.geo-location-data').each(function () {
  439.                     \$(this).prev().find('img').replaceWith(getDistanceToOffer(\$(this)));
  440.                 });
  441.             }
  442.         }
  443.     </script>
  444. {% endblock %}""Slivki/sale/hyper_shop.html.twig""/mnt/data/virtwww/test1/templates/Slivki/sale/hyper_shop.html.twig");
  445.     }
  446. }