<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Slivki/sale/hyper_shop.html.twig */
class __TwigTemplate_b61130cd73954b141865140dd631b4310bb0a5640ce1ee9aed2b803d12d5c6c5 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheets' => [$this, 'block_stylesheets'],
'mainColumnClass' => [$this, 'block_mainColumnClass'],
'left_sidebar' => [$this, 'block_left_sidebar'],
'main_content' => [$this, 'block_main_content'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Slivki/sale/hyper_shop.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Slivki/sale/hyper_shop.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "Slivki/sale/hyper_shop.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 4
echo " ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
<link rel=\"stylesheet\" type=\"text/css\" href=\"https://cdn.jsdelivr.net/jquery.slick/1.6.0/slick.css\"/>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 8
public function block_mainColumnClass($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainColumnClass"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainColumnClass"));
$this->displayParentBlock("mainColumnClass", $context, $blocks);
echo " one-column hyper-shop";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 10
public function block_left_sidebar($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "left_sidebar"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "left_sidebar"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 12
public function block_main_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main_content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main_content"));
// line 13
echo " <div class=\"stock-group-header with-search\">
<div class=\"breadcrumbs\">
<a href=\"";
// line 15
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", null, true);
echo "\">Главная</a>
<i class=\"fa fa-angle-right\"></i> Листовки
</div>
<div class=\"title\"><h1>Популярные</h1> (";
// line 18
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", null, true);
echo ")</div>
<div class=\"flier-total-visit-count\">
<span data-toggle=\"tooltip\" data-placement=\"left\" data-original-title='";
// line 20
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", null, true);
echo "\"'><i class=\"slivki-icon-users\"></i>";
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", null, true);
echo "</span><br>
<span data-toggle=\"tooltip\" data-placement=\"left\" data-original-title='";
// line 21
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", null, true);
echo "'><i class=\"slivki-icon-paper\"></i>";
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", null, true);
echo "</span>
</div>
<div class=\"clear\"></div>
</div>
<div id=\"flierSlider\" class=\"flier-list\">
";
// line 26
echo (isset($context["fliersSliderData"]) || array_key_exists("fliersSliderData", $context) ? $context["fliersSliderData"] : (function () { throw new RuntimeError('Variable "fliersSliderData" does not exist.', 26, $this->source); })());
echo "
</div>
";
// line 28
if ((1 === 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))) {
// line 29
echo " <div id=\"flierProductBlock\">
<div id=\"flierProductTeaserList\">
";
// line 31
ob_start();
// line 32
echo " ";
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["saleProduct"]) {
// line 33
echo " ";
$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", false, false, false, 33))]));
// line 34
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['saleProduct'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 35
echo " ";
$___internal_parse_0_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 31
echo twig_spaceless($___internal_parse_0_);
// line 36
echo " </div>
<div class=\"text-center\">
<a href=\"";
// line 38
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", null, true);
echo "/product-search\" class=\"button button-violet\">Еще ";
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", null, true);
echo " товар";
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->pluralFilter([0 => "", 1 => "а", 2 => "ов"], (isset($context["productCount"]) || array_key_exists("productCount", $context) ? $context["productCount"] : (function () { throw new RuntimeError('Variable "productCount" does not exist.', 38, $this->source); })())), "html", null, true);
echo "</a>
</div>
</div>
";
}
// line 42
echo "
<div id=\"saleIndexTeasers\">
";
// line 44
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 45
echo " <div class=\"flier-list-wrap\">
<div class=\"title\">";
// line 46
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["category"], "category", [], "any", false, false, false, 46), "getName", [], "method", false, false, false, 46), "html", null, true);
echo " (";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["category"], "category", [], "any", false, false, false, 46), "getEntityCount", [], "method", false, false, false, 46), "html", null, true);
echo ")</div>
<div class=\"flier-list\">
";
// line 48
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["category"], "saleList", [], "any", false, false, false, 48));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["sale"]) {
// line 49
echo " ";
$this->loadTemplate("Slivki/sale/flier.html.twig", "Slivki/sale/hyper_shop.html.twig", 49)->display(twig_array_merge($context, ["lazyLoad" => true]));
// line 50
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['sale'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 51
echo " ";
if ((1 === twig_compare(twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "saleList", [], "any", false, false, false, 51)), 3))) {
// line 52
echo " <div class=\"stock-group-item-sale flier flier-category-teaser\">
<a href=\"";
// line 53
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getURL("Slivki:Sale:category", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["category"], "category", [], "any", false, false, false, 53), "getID", [], "method", false, false, false, 53)), "html", null, true);
echo "\">Перейти в \"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["category"], "category", [], "any", false, false, false, 53), "getName", [], "method", false, false, false, 53), "html", null, true);
echo "\"</a>
</div>
";
}
// line 56
echo " </div>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 59
echo " </div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 62
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 63
echo " <script src=\"https://cdn.jsdelivr.net/jquery.slick/1.6.0/slick.min.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.countdown/2.2.0/jquery.countdown.min.js\"></script>
";
// line 65
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script>
\$(function() {
\$('#flierProductTeaserList').sameHeight({
elements: '.teaser-description p',
useMinHeight: true,
flexible: true,
multiLine: true
});
calcProductsDistance();
});
function calcProductsDistance() {
if (!calculatedLocation) {
document.addEventListener('geoLocation.init', function() {
calcProductsDistance();
});
} else {
\$('.geo-location-data').each(function () {
\$(this).prev().find('img').replaceWith(getDistanceToOffer(\$(this)));
});
}
}
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Slivki/sale/hyper_shop.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block stylesheets %}
{{ parent() }}
<link rel=\"stylesheet\" type=\"text/css\" href=\"https://cdn.jsdelivr.net/jquery.slick/1.6.0/slick.css\"/>
{% endblock %}
{% block mainColumnClass %}{{ parent() }} one-column hyper-shop{% endblock %}
{% block left_sidebar %}{% endblock %}
{% block main_content %}
<div class=\"stock-group-header with-search\">
<div class=\"breadcrumbs\">
<a href=\"{{ base_url }}\">Главная</a>
<i class=\"fa fa-angle-right\"></i> Листовки
</div>
<div class=\"title\"><h1>Популярные</h1> ({{ fliersCount }})</div>
<div class=\"flier-total-visit-count\">
<span data-toggle=\"tooltip\" data-placement=\"left\" data-original-title='{{ saleVisitCountTooltip }}\"'><i class=\"slivki-icon-users\"></i>{{ saleVisitCount }}</span><br>
<span data-toggle=\"tooltip\" data-placement=\"left\" data-original-title='{{ visitedSalesTooltip }}'><i class=\"slivki-icon-paper\"></i>{{ visitedSales }}</span>
</div>
<div class=\"clear\"></div>
</div>
<div id=\"flierSlider\" class=\"flier-list\">
{{ fliersSliderData|raw }}
</div>
{% if saleProductList|length > 0 %}
<div id=\"flierProductBlock\">
<div id=\"flierProductTeaserList\">
{% apply spaceless %}
{% for saleProduct in saleProductList %}
{% include 'Slivki/flier_goods/teaser.html.twig' with {'teaserLink': getURL(constant('Slivki\\\\Repository\\\\SeoRepository::RESOURCE_URL_SALE_PRODUCT_DETAILS'), saleProduct.getID())} %}
{% endfor %}
{% endapply %}
</div>
<div class=\"text-center\">
<a href=\"{{ base_url }}/product-search\" class=\"button button-violet\">Еще {{ productCount }} товар{{ ['', 'а', 'ов']|plural(productCount) }}</a>
</div>
</div>
{% endif %}
<div id=\"saleIndexTeasers\">
{% for category in flierCategoryList %}
<div class=\"flier-list-wrap\">
<div class=\"title\">{{ category.category.getName() }} ({{ category.category.getEntityCount() }})</div>
<div class=\"flier-list\">
{% for sale in category.saleList %}
{% include 'Slivki/sale/flier.html.twig' with {'lazyLoad': true} %}
{% endfor %}
{% if category.saleList|length > 3 %}
<div class=\"stock-group-item-sale flier flier-category-teaser\">
<a href=\"{{ getURL(\"Slivki:Sale:category\", category.category.getID()) }}\">Перейти в \"{{ category.category.getName() }}\"</a>
</div>
{% endif %}
</div>
</div>
{% endfor %}
</div>
{% endblock %}
{% block javascripts %}
<script src=\"https://cdn.jsdelivr.net/jquery.slick/1.6.0/slick.min.js\"></script>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.countdown/2.2.0/jquery.countdown.min.js\"></script>
{{ parent() }}
<script>
\$(function() {
\$('#flierProductTeaserList').sameHeight({
elements: '.teaser-description p',
useMinHeight: true,
flexible: true,
multiLine: true
});
calcProductsDistance();
});
function calcProductsDistance() {
if (!calculatedLocation) {
document.addEventListener('geoLocation.init', function() {
calcProductsDistance();
});
} else {
\$('.geo-location-data').each(function () {
\$(this).prev().find('img').replaceWith(getDistanceToOffer(\$(this)));
});
}
}
</script>
{% endblock %}", "Slivki/sale/hyper_shop.html.twig", "/mnt/data/virtwww/test1/templates/Slivki/sale/hyper_shop.html.twig");
}
}